2025-03-22 00:49:46 +01:00

3 lines
1.1 MiB

/*! For license information please see main.22fc3e30.js.LICENSE.txt */
(()=>{var e={32292:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});n(65043);var r=n(70579);const i=e=>{let{text:t=""}=e;return(0,r.jsx)("div",{className:"c-banner",children:(0,r.jsx)("span",{children:t})})}},10746:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(64600),i=n.n(r),o=n(60170);const a=new Headers({"Content-Type":"application/vnd.api+json"});var s=n(65043),u=n(47065),l=n(38784);var c=n(70579);const f=(0,u.Tl)("translations")((e=>{let{text:t,userID:n,projectSlug:r,t:u}=e;const[f,p]=(0,s.useState)(!1),[d,h]=(0,s.useState)(""),[g,v]=(0,s.useState)("prompt"),y=(0,s.useRef)(null),m="string"===typeof r,b=r?"https://github.com/RaspberryPiLearning/".concat(r):null,w=m?"URL: ".concat(window.location.pathname,"\n\n\n").concat(d):d,_=e=>i()({["c-project-footer__feedback-".concat(e)]:!0,["c-project-footer__feedback-".concat(e,"--hidden")]:e!==g}),S=(0,s.useCallback)((async()=>{const e={message:w,userID:n};m&&(e.project_slug=r,e.step_number=5),await(e=>{const t="".concat("https://learning-admin.raspberrypi.org","/api/v1/feedbacks");return Promise.resolve(fetch(t,{method:"POST",headers:a,body:JSON.stringify({data:{type:"api/v1/feedbacks",attributes:e}})}).then((e=>{if(e.status===o.A.createdStatus)return e.json();const t=new Error(e.statusText);throw t.response=e,t})).catch((e=>console.error("Request failed:",e))))})(e),v("thanks")}),[w,m,r,n]);return(0,s.useEffect)((()=>{f&&S()}),[f,S]),(0,s.useEffect)((()=>{"form"===g&&y.current.focus()}),[g,y]),(0,c.jsxs)("footer",{className:"c-project-footer",children:[(0,c.jsx)("p",{children:u(t)}),(0,c.jsxs)("button",{className:_("prompt"),onClick:()=>v("form"),children:[u("project.footer.feedback.button.text")," "]}),(0,c.jsxs)("form",{className:_("form"),onSubmit:e=>{e.preventDefault(),p(!0)},children:[(0,c.jsx)("textarea",{ref:y,className:"c-project-footer__feedback-textarea","aria-labelledby":"textarea-label",cols:"40",disabled:f,onChange:e=>{h(e.target.value)},placeholder:"".concat(u("project.footer.feedback.placeholder.text")),rows:"6",value:d}),(0,c.jsx)("p",{id:"textarea-label",children:u("project.footer.feedback.prompt.text")}),(0,c.jsx)("button",{className:"c-project-footer__feedback-submit",disabled:f||!d,type:"submit",children:u(f?"project.footer.feedback.button.disabled.text":"project.footer.feedback.button.text")})]}),(0,c.jsx)("div",{className:_("thanks"),children:u("project.footer.feedback.thank-you.text")}),(0,c.jsx)(l.A,{projectRepoUrl:b}),(0,c.jsx)("div",{className:"c-project-footer-policy",children:[{key:"accessibility",text:"project.footer.license.accessibility",href:"https://www.raspberrypi.org/accessibility/"},{key:"cookies",text:"project.footer.license.cookies",href:"https://www.raspberrypi.org/cookies/"},{key:"privacy",text:"project.footer.license.privacy",href:"https://www.raspberrypi.org/privacy/"},{key:"translations",text:"project.footer.translations.text",href:"/en/projects/translating-for-raspberry-pi"}].map((e=>(0,c.jsx)("p",{children:(0,c.jsx)("a",{className:"c-project-footer__link",href:e.href,children:u(e.text)})},e.key)))})]})}))},79728:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u});n(65043);var r=n(41591),i=n(47065),o=n(22166),a=n(74080),s=n(70579);const u=(0,o.Ng)((e=>{var t,n;return{profile:(null===e||void 0===e||null===(t=e.authentication)||void 0===t||null===(n=t.user)||void 0===n?void 0:n.profile)||!1}}))((0,i.Tl)("translations")((e=>{let{t:t,title:n,description:i,image:o,i18n:u}=e;const l=(e=>{const t=a.parse(e);var n="".concat(t.protocol,"//").concat(t.hostname);return n=t.port?"".concat(n,":").concat(t.port):n,(n=t.path?"".concat(n).concat(t.pathname):n).replace(/\/+$/,"")})(window.location.href);return(0,s.jsxs)(r.m,{htmlAttributes:{lang:u.language},children:[(0,s.jsx)("title",{children:n||t("meta.default.title")}),(0,s.jsx)("meta",{name:"description",content:i||t("meta.default.description")}),(0,s.jsx)("meta",{property:"og:title",content:n||t("meta.default.title")}),(0,s.jsx)("meta",{property:"og:description",content:i||t("meta.default.description")}),(0,s.jsx)("link",{rel:"canonical",href:l}),(0,s.jsx)("meta",{property:"og:url",content:l}),o&&(0,s.jsx)("meta",{property:"og:image",content:o})]})})))},47896:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(65043);var r=n(70579);const i=e=>{let{type:t,className:n=""}=e;switch(t){case"arrow-down":return(0,r.jsx)("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12 15.375L6 9.37501L7.4 7.97501L12 12.575L16.6 7.97501L18 9.37501L12 15.375Z",fill:"#212121"})});case"cross":return(0,r.jsx)("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"white"})});case"magnifying-glass":return(0,r.jsx)("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.146 15.371 4.888 14.113C3.62933 12.8543 3 11.3167 3 9.5C3 7.68333 3.62933 6.14567 4.888 4.887C6.146 3.629 7.68333 3 9.5 3C11.3167 3 12.8543 3.629 14.113 4.887C15.371 6.14567 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8127 13.5627 12.688 12.688C13.5627 11.8127 14 10.75 14 9.5C14 8.25 13.5627 7.18733 12.688 6.312C11.8127 5.43733 10.75 5 9.5 5C8.25 5 7.18733 5.43733 6.312 6.312C5.43733 7.18733 5 8.25 5 9.5C5 10.75 5.43733 11.8127 6.312 12.688C7.18733 13.5627 8.25 14 9.5 14Z",fill:"white"})});case"tick":return(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M9.54998 18L3.84998 12.3L5.27498 10.875L9.54998 15.15L18.725 5.97501L20.15 7.40001L9.54998 18Z",fill:"#ffffff"})});case"sync":return(0,r.jsx)("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M14 4H20V6H17.25L17.65 6.35C18.4667 7.16667 19.0627 8.054 19.438 9.012C19.8127 9.97067 20 10.95 20 11.95C20 13.8 19.4457 15.4457 18.337 16.887C17.229 18.329 15.7833 19.2833 14 19.75V17.65C15.2 17.2167 16.1667 16.4793 16.9 15.438C17.6333 14.396 18 13.2333 18 11.95C18 11.2 17.8583 10.4707 17.575 9.762C17.2917 9.054 16.85 8.4 16.25 7.8L16 7.55V10H14V4ZM10 20H4V18H6.75L6.35 17.65C5.48333 16.8833 4.875 16.0083 4.525 15.025C4.175 14.0417 4 13.05 4 12.05C4 10.2 4.554 8.554 5.662 7.112C6.77067 5.67067 8.21667 4.71667 10 4.25V6.35C8.8 6.78333 7.83333 7.52067 7.1 8.562C6.36667 9.604 6 10.7667 6 12.05C6 12.8 6.14167 13.529 6.425 14.237C6.70833 14.9457 7.15 15.6 7.75 16.2L8 16.45V14H10V20Z",fill:"#ffffff"})});case"print":return(0,r.jsx)("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M16 8V5H8V8H6V3H18V8H16ZM18 12.5C18.2833 12.5 18.5207 12.404 18.712 12.212C18.904 12.0207 19 11.7833 19 11.5C19 11.2167 18.904 10.979 18.712 10.787C18.5207 10.5957 18.2833 10.5 18 10.5C17.7167 10.5 17.4793 10.5957 17.288 10.787C17.096 10.979 17 11.2167 17 11.5C17 11.7833 17.096 12.0207 17.288 12.212C17.4793 12.404 17.7167 12.5 18 12.5ZM16 19V15H8V19H16ZM18 21H6V17H2V8H22V17H18V21ZM20 15V10H4V15H6V13H18V15H20ZM4 10H20H6H4Z",fill:"#212121"})});case"compass":return(0,r.jsx)("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:"compass",children:(0,r.jsx)("path",{d:"M6.5 17.5L14 14L17.5 6.5L10 10L6.5 17.5ZM12 13C11.7167 13 11.4793 12.904 11.288 12.712C11.096 12.5207 11 12.2833 11 12C11 11.7167 11.096 11.479 11.288 11.287C11.4793 11.0957 11.7167 11 12 11C12.2833 11 12.521 11.0957 12.713 11.287C12.9043 11.479 13 11.7167 13 12C13 12.2833 12.9043 12.5207 12.713 12.712C12.521 12.904 12.2833 13 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6873 5.825 19.975 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.31233 8.1 2.787C9.31667 2.26233 10.6167 2 12 2C13.3833 2 14.6833 2.26233 15.9 2.787C17.1167 3.31233 18.175 4.025 19.075 4.925C19.975 5.825 20.6873 6.88333 21.212 8.1C21.7373 9.31667 22 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6873 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6873 15.9 21.212C14.6833 21.7373 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"#212121"})});case"palette":return(0,r.jsx)("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:"palette",children:(0,r.jsx)("path",{d:"M12 22C10.6333 22 9.34167 21.7373 8.125 21.212C6.90833 20.6873 5.846 19.9707 4.938 19.062C4.02933 18.154 3.31267 17.0917 2.788 15.875C2.26267 14.6583 2 13.3667 2 12C2 10.6167 2.27067 9.31667 2.812 8.1C3.354 6.88333 4.08767 5.825 5.013 4.925C5.93767 4.025 7.01667 3.31233 8.25 2.787C9.48333 2.26233 10.8 2 12.2 2C13.5333 2 14.7917 2.22933 15.975 2.688C17.1583 3.146 18.1957 3.77933 19.087 4.588C19.979 5.396 20.6873 6.35433 21.212 7.463C21.7373 8.571 22 9.76667 22 11.05C22 12.9667 21.4167 14.4373 20.25 15.462C19.0833 16.4873 17.6667 17 16 17H14.15C14 17 13.896 17.0417 13.838 17.125C13.7793 17.2083 13.75 17.3 13.75 17.4C13.75 17.6 13.875 17.8873 14.125 18.262C14.375 18.6373 14.5 19.0667 14.5 19.55C14.5 20.3833 14.2707 21 13.812 21.4C13.354 21.8 12.75 22 12 22ZM6.5 13C6.93333 13 7.29167 12.8583 7.575 12.575C7.85833 12.2917 8 11.9333 8 11.5C8 11.0667 7.85833 10.7083 7.575 10.425C7.29167 10.1417 6.93333 10 6.5 10C6.06667 10 5.70833 10.1417 5.425 10.425C5.14167 10.7083 5 11.0667 5 11.5C5 11.9333 5.14167 12.2917 5.425 12.575C5.70833 12.8583 6.06667 13 6.5 13ZM9.5 9C9.93333 9 10.2917 8.85833 10.575 8.575C10.8583 8.29167 11 7.93333 11 7.5C11 7.06667 10.8583 6.70833 10.575 6.425C10.2917 6.14167 9.93333 6 9.5 6C9.06667 6 8.70833 6.14167 8.425 6.425C8.14167 6.70833 8 7.06667 8 7.5C8 7.93333 8.14167 8.29167 8.425 8.575C8.70833 8.85833 9.06667 9 9.5 9ZM14.5 9C14.9333 9 15.2917 8.85833 15.575 8.575C15.8583 8.29167 16 7.93333 16 7.5C16 7.06667 15.8583 6.70833 15.575 6.425C15.2917 6.14167 14.9333 6 14.5 6C14.0667 6 13.7083 6.14167 13.425 6.425C13.1417 6.70833 13 7.06667 13 7.5C13 7.93333 13.1417 8.29167 13.425 8.575C13.7083 8.85833 14.0667 9 14.5 9ZM17.5 13C17.9333 13 18.2917 12.8583 18.575 12.575C18.8583 12.2917 19 11.9333 19 11.5C19 11.0667 18.8583 10.7083 18.575 10.425C18.2917 10.1417 17.9333 10 17.5 10C17.0667 10 16.7083 10.1417 16.425 10.425C16.1417 10.7083 16 11.0667 16 11.5C16 11.9333 16.1417 12.2917 16.425 12.575C16.7083 12.8583 17.0667 13 17.5 13ZM12 20C12.15 20 12.271 19.9583 12.363 19.875C12.4543 19.7917 12.5 19.6833 12.5 19.55C12.5 19.3167 12.375 19.0417 12.125 18.725C11.875 18.4083 11.75 17.9333 11.75 17.3C11.75 16.6 11.9917 16.0417 12.475 15.625C12.9583 15.2083 13.55 15 14.25 15H16C17.1 15 18.0417 14.679 18.825 14.037C19.6083 13.3957 20 12.4 20 11.05C20 9.03333 19.2293 7.354 17.688 6.012C16.146 4.67067 14.3167 4 12.2 4C9.93333 4 8 4.775 6.4 6.325C4.8 7.875 4 9.76667 4 12C4 14.2167 4.77933 16.1043 6.338 17.663C7.896 19.221 9.78333 20 12 20Z",fill:"#212121"})});case"rocket":return(0,r.jsx)("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",title:"rocket",children:(0,r.jsx)("path",{d:"M5.64999 10.025L7.59999 10.85C7.83332 10.3833 8.07499 9.93332 8.32499 9.49998C8.57499 9.06665 8.84999 8.63332 9.14999 8.19998L7.74999 7.92498L5.64999 10.025ZM9.19999 12.1L12.05 14.925C12.75 14.6583 13.5 14.25 14.3 13.7C15.1 13.15 15.85 12.525 16.55 11.825C17.7167 10.6583 18.6293 9.36265 19.288 7.93798C19.946 6.51265 20.2333 5.19998 20.15 3.99998C18.95 3.91665 17.6333 4.20398 16.2 4.86198C14.7667 5.52065 13.4667 6.43332 12.3 7.59998C11.6 8.29998 10.975 9.04998 10.425 9.84998C9.87499 10.65 9.46665 11.4 9.19999 12.1ZM13.65 10.475C13.2667 10.0917 13.075 9.62065 13.075 9.06198C13.075 8.50398 13.2667 8.03332 13.65 7.64998C14.0333 7.26665 14.5083 7.07498 15.075 7.07498C15.6417 7.07498 16.1167 7.26665 16.5 7.64998C16.8833 8.03332 17.075 8.50398 17.075 9.06198C17.075 9.62065 16.8833 10.0917 16.5 10.475C16.1167 10.8583 15.6417 11.05 15.075 11.05C14.5083 11.05 14.0333 10.8583 13.65 10.475ZM14.125 18.5L16.225 16.4L15.95 15C15.5167 15.3 15.0833 15.5707 14.65 15.812C14.2167 16.054 13.7667 16.2916 13.3 16.525L14.125 18.5ZM21.95 2.17498C22.2667 4.19165 22.071 6.15398 21.363 8.06198C20.6543 9.97065 19.4333 11.7916 17.7 13.525L18.2 16C18.2667 16.3333 18.25 16.6583 18.15 16.975C18.05 17.2917 17.8833 17.5666 17.65 17.8L13.45 22L11.35 17.075L7.07499 12.8L2.14999 10.7L6.32499 6.49998C6.55832 6.26665 6.83765 6.09998 7.16299 5.99998C7.48765 5.89998 7.81665 5.88332 8.14999 5.94998L10.625 6.44998C12.3583 4.71665 14.175 3.49165 16.075 2.77498C17.975 2.05832 19.9333 1.85832 21.95 2.17498ZM3.92499 15.975C4.50832 15.3917 5.22065 15.0957 6.06199 15.087C6.90399 15.079 7.61665 15.3667 8.19999 15.95C8.78332 16.5333 9.07065 17.2456 9.06199 18.087C9.05399 18.929 8.75832 19.6416 8.17499 20.225C7.75832 20.6416 7.06265 21 6.08799 21.3C5.11265 21.6 3.76665 21.8666 2.04999 22.1C2.28332 20.3833 2.54999 19.0373 2.84999 18.062C3.14999 17.0873 3.50832 16.3917 3.92499 15.975ZM5.34999 17.375C5.18332 17.5417 5.01665 17.846 4.84999 18.288C4.68332 18.7293 4.56665 19.175 4.49999 19.625C4.94999 19.5583 5.39599 19.446 5.83799 19.288C6.27932 19.1293 6.58332 18.9666 6.74999 18.8C6.94999 18.6 7.05832 18.3583 7.07499 18.075C7.09165 17.7916 6.99999 17.55 6.79999 17.35C6.59999 17.15 6.35832 17.054 6.07499 17.062C5.79165 17.0707 5.54999 17.175 5.34999 17.375Z",fill:"#212121"})});case"chevron-right":return(0,r.jsx)("svg",{className:n,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M15.6667 30L13.3333 27.6667L21 20L13.3333 12.3333L15.6667 10L25.6667 20L15.6667 30Z",fill:"#212121"})});case"copy":return(0,r.jsx)("svg",{className:n,width:"17",height:"20",viewBox:"0 0 17 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M6 16C5.45 16 4.97933 15.8043 4.588 15.413C4.196 15.021 4 14.55 4 14V2C4 1.45 4.196 0.979 4.588 0.587C4.97933 0.195667 5.45 0 6 0H15C15.55 0 16.021 0.195667 16.413 0.587C16.8043 0.979 17 1.45 17 2V14C17 14.55 16.8043 15.021 16.413 15.413C16.021 15.8043 15.55 16 15 16H6ZM6 14H15V2H6V14ZM2 20C1.45 20 0.979 19.8043 0.587 19.413C0.195667 19.021 0 18.55 0 18V4H2V18H13V20H2ZM6 2V14V2Z",fill:"white"})});case"external-link":return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:(0,r.jsx)("path",{d:"M5 3.5C3.90694 3.5 3 4.40694 3 5.5V19.5C3 20.5931 3.90694 21.5 5 21.5H19C20.0931 21.5 21 20.5931 21 19.5V12.5H19V19.5H5V5.5H12V3.5H5ZM14 3.5V5.5H17.5859L8.29297 14.793L9.70703 16.207L19 6.91406V10.5H21V3.5H14Z",fill:"white"})});default:return null}}},38784:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(60170),i=n(65043),o=n(47065),a=n(70579);const s=(0,o.Tl)("translations")((e=>{let{projectRepoUrl:t,t:n}=e;return(0,a.jsxs)("p",{children:[n("project.footer.license.published")," ",(0,a.jsx)("a",{className:"c-project-footer__link c-project-footer__link--rpi",href:r.A.raspberryPiUrl,children:"Raspberry Pi Foundation"}),t?(0,a.jsxs)(i.Fragment,{children:[" ",n("project.footer.license.under")," ",(0,a.jsx)("a",{className:"c-project-footer__link c-project-footer__link--creative-commons",href:r.A.creativeCommonsUrl,children:"Creative Commons license"}),".",(0,a.jsx)("br",{}),(0,a.jsx)("a",{className:"c-project-footer__link c-project-footer__link--github",href:t,children:n("project.footer.license.link.text")})]}):null]})}))},66915:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(65043);class i extends r.Component{constructor(){super(...arguments),this.state={waiting:!0}}componentDidMount(){this.timer=setTimeout((()=>{this.setState({waiting:!1})}),this.props.wait)}componentWillUnmount(){clearTimeout(this.timer)}render(){return this.state.waiting?null:this.props.children}}i.defaultProps={wait:250};const o=i;var a=n(70579);const s=250,u=e=>{let{display:t=!0,delay:n=s}=e;return(0,a.jsx)(o,{wait:n,children:(0,a.jsx)("div",{className:"computer display-".concat(t),children:(0,a.jsx)("div",{className:"screen"})})})}},10509:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(60170),i=n(15792),o=(n(65043),n(47065));var a=n(70579);const s=()=>{let e,t,n=[],r=Math.ceil(10*Math.random())+5;for(let i=0;i<r;i+=1)e=Math.floor(172*Math.random()),t=Math.floor(93*Math.random()),n.push((0,a.jsx)("span",{className:"c-error__dialog",style:{left:e,top:t}},i));return n},u=(0,o.Tl)("translations")((e=>{let{error:t,t:n}=e;if(!t)return(0,a.jsx)("div",{});let o=n("no-match.title.text");return t.status!==r.A.notFoundStatus&&(o=n("error-boundary.message")),(0,a.jsx)("div",{className:"c-error c-error--".concat(t.status),children:(0,a.jsxs)("div",{className:"c-error__wrapper u-clearfix",children:[(0,a.jsx)("div",{className:"c-error__image",children:(0,a.jsx)("span",{className:"c-error__screen",children:s()})}),(0,a.jsxs)("div",{className:"c-error__body",children:[(0,a.jsx)(i.tw,{element:"h1",children:o}),t.status===r.A.notFoundStatus?"":(0,a.jsx)(i.Ab,{element:"p",children:n("no-match.message.notified")}),(0,a.jsx)(i.Ab,{element:"p",children:n("no-match.message.text")}),(0,a.jsx)(i.$n,{to:"/",children:n("no-match.button.text")})]})]})})}))},15814:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c});var r=n(64600),i=n.n(r);n(65043);var o=n(70579);const a=e=>Object.keys(e).map((t=>(0,o.jsx)("option",{value:t,children:e[t]},t))),s=e=>{let{changeHandler:t,className:n,label:r,name:s,options:u,value:l,blankText:c}=e;return(0,o.jsxs)("select",{"aria-label":r,className:i()(n,"c-dropdown"),name:s,onChange:e=>t(e.target.value),value:l,children:[Boolean(c)&&(0,o.jsxs)("option",{children:["-- ",c," --"]}),a(u)]})};var u=n(77629),l=n(47065);const c=(0,l.Tl)("translations")((e=>{let{i18n:t,t:n,filter:r}=e;const i=n("language-selector.options",{returnObjects:!0});let a=r?r(i):i;return(0,o.jsx)(s,{changeHandler:e=>((e,t)=>{if(!t)return null;let n=window.location.pathname.split("/");return n[1]=t,n=n.join("/"),(0,u.A)(e).push({pathname:n}),null})(t,e),label:n("language-selector.label"),name:"locale",options:{...a},value:t.language,blankText:n("language-selector.label")})}))},92910:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(65043),i=n(32292),o=n(47896),a=n(47065),s=n(35475),u=n(15814),l=n(64600),c=n.n(l),f=n(70579);const p=e=>{const{listKey:t,locale:n,linkTo:r,external:i=!1,onClick:o,className:a="",translateKey:u,t:l}=e,p=n?"/".concat(n,"/").concat(r):r,d={className:c()("c-site-header__nav-link",a),...i||o?{href:p}:{to:p},...o&&{onClick:o}},h=i||o?(0,f.jsx)("a",{...d,children:l("navigation.".concat(u))}):(0,f.jsx)(s.N_,{...d,children:l("navigation.".concat(u))});return(0,f.jsx)("li",{className:"c-site-header-nav__item","data-js":"nav-item","data-section":t,children:h})};var d=n(40500),h=n(43761),g=n(22166),v=n(10936),y=n(63114);const m=e=>{e.preventDefault(),localStorage.setItem("authReturnUrl",window.location.href),d.NU.signinRedirect()},b=(e,t)=>n=>{var r;n.preventDefault(),e("sessionProgress",{path:"/"}),d.NU.signoutRedirect({id_token_hint:null===t||void 0===t||null===(r=t.user)||void 0===r?void 0:r.id_token}),d.NU.removeUser()},w=(0,a.Tl)("translations")((0,g.Ng)((e=>{const{authentication:t}=e;return{authentication:t}}))((e=>{let{authentication:t,dispatch:n,locale:i,t:o}=e;const[a,s,u]=(0,h.A)(["sessionProgress"]),[l,c]=(0,r.useState)("loggedOut"),d={loggedIn:{yourProjects:{to:"projects/progress",locale:i,className:"c-site-header__nav-link--button"},profile:{to:"https://my.raspberrypi.org/profile/edit",external:!0},logout:{to:"logout",onClick:b(u,t)}},loggedOut:{login:{to:"login",onClick:m}}};return(0,r.useEffect)((()=>{var e;null!==t&&void 0!==t&&null!==(e=t.user)&&void 0!==e&&e.access_token&&a.sessionProgress&&n((e=>{let{session_progress:t,authToken:n}=e;return(0,y.j)({endpoint:"/reconcile_users_badges",method:"POST",types:[v.ob,v.dw,v.TU],data:{session_progress:t},authToken:n})})({session_progress:a.sessionProgress,authToken:t.user.access_token}))}),[t,a.sessionProgress,n]),(0,r.useEffect)((()=>{t.user?c("loggedIn"):c("loggedOut")}),[t.user]),(0,f.jsx)(f.Fragment,{children:Object.entries(d[l]).map((e=>{let[t,n]=e;return(0,f.jsx)(p,{listKey:"".concat(t,"-item"),linkTo:n.to,translateKey:t,t:o,...n.external&&{external:n.external},...n.onClick&&{onClick:n.onClick},...n.locale&&{locale:i},...n.className&&{className:n.className}},"".concat(t,"-item"))}))})})));const _=n.p+"static/media/rpf.4913a547895720ff30c1e24890f9b0e8.svg",S={pathways:{to:"paths"},projects:{to:"projects"}},E=e=>{let{navItemKey:t,locale:n,t:i}=e;const a=(0,r.useRef)(null);return(0,f.jsx)("div",{role:"button",onKeyDown:e=>{var t;return"Enter"===e.key?null===(t=a.current)||void 0===t?void 0:t.click():null},tabIndex:0,children:(0,f.jsxs)("label",{className:"c-site-header__dropdown",children:[(0,f.jsx)("input",{className:"c-site-header__nav-link c-site-header__dropdown-button u-hidden",type:"checkbox",ref:a}),(0,f.jsxs)("div",{className:"c-site-header__dropdown-background",children:[i("navigation.".concat(t)),(0,f.jsx)(o.A,{type:"arrow-down",className:"c-site-header__toggle-trigger-icon"})]}),(0,f.jsx)("ul",{className:"c-site-header__dropdown-content",children:Object.entries(S[t].dropdown).map((e=>{let[r,o]=e;return(0,f.jsx)(p,{listKey:"".concat(t,"__").concat(r,"-dropdown-link"),locale:n,linkTo:o.to,translateKey:r,t:i},"".concat(t,"__").concat(r,"-dropdown-link"))}))}),(0,f.jsx)("ul",{className:"c-site-header__nested-links",children:Object.entries(S[t].dropdown).map((e=>{let[r,o]=e;return(0,f.jsx)(p,{listKey:"".concat(t,"__").concat(r,"-nested-link"),locale:n,linkTo:o.to,translateKey:r,t:i},"".concat(t,"__").concat(r,"-nested-link"))}))})]})})},x=(0,a.Tl)("translations")((e=>{let{i18n:t,t:n}=e;const o=(0,s.ok)()[0].get("branch")||"",[a,l]=(0,r.useState)(!1);return(0,f.jsxs)("header",{className:"c-site-header",id:"c-site-header",role:"banner","data-nav-open":a,children:[(0,f.jsx)("a",{className:"c-site-header__skiptocontent-link",href:"#skiptocontent",children:"Skip to main content"}),(0,f.jsxs)("div",{className:"c-site-header__container",children:[(0,f.jsx)("div",{className:"c-site-header__home-link",children:(0,f.jsx)("a",{className:"c-site-header__rpf-link",href:"https://raspberrypi.org",children:(0,f.jsx)("img",{alt:"Raspberry Pi Foundation",className:"c-site-header__rpf-logomark",src:_,"aria-label":"Raspberry Pi Foundation home page"})})}),(0,f.jsx)("div",{className:"c-site-header__toggle",children:(0,f.jsx)("button",{"aria-label":"Open Navigation",onClick:()=>{l(!a)},"aria-pressed":a,className:"c-site-header__toggle-button",type:"button"})}),(0,f.jsx)("div",{className:"site-header__nav",children:(0,f.jsx)("nav",{"aria-label":"Navigation",className:"site-header-nav","data-js":"nav","data-active-panel":"",children:(0,f.jsxs)("ul",{className:"c-site-header-nav__list",children:[(0,f.jsx)(p,{listKey:"home-item",locale:t.language,linkTo:"",translateKey:"home",t:n},"home-item"),(0,f.jsxs)(r.Fragment,{children:[Object.entries(S).map((e=>{let[r,i]=e;return null!==i&&void 0!==i&&i.to?(0,f.jsx)(p,{listKey:"".concat(r,"-item"),locale:t.language,linkTo:i.to,translateKey:r,t:n},"".concat(r,"-item")):(0,f.jsx)("li",{className:"c-site-header-nav__item","data-js":"nav-item","data-section":r,children:(null===i||void 0===i?void 0:i.dropdown)&&(0,f.jsx)(E,{navItemKey:r,locale:t.language,t:n})},"".concat(r,"-item"))})),(0,f.jsx)(w,{className:"c-site-header__nav-link",locale:t.language})]})]})})}),(0,f.jsxs)("div",{className:"c-site-header__language-selector",children:[(0,f.jsx)("span",{className:"c-site-header__language-selector--language",children:n("language-selector.language")}),(0,f.jsx)(u.Ay,{})]})]}),o&&(0,f.jsx)(i.l,{text:"".concat(n("dev.branch_banner"),": ").concat(o)})]})}))},7146:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>l,DB:()=>f,If:()=>d,OM:()=>c,Rv:()=>a,gJ:()=>o,lm:()=>y,q$:()=>s,sJ:()=>v,t8:()=>g});const r=n(10617),i="syntax-highlighted",o=()=>{window.Prism.plugins.NormalizeWhitespace.setDefaults({"left-trim":!1,"remove-indent":!1}),window.Prism.hooks.add("before-highlight",(e=>{e.code=e.code.replace(/^\n+/,"")})),window.Prism.hooks.add("after-highlight",(e=>{e.element.classList.add(i)}))},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=['pre code:not([class*="language-blocks"])','code[class*="language-"]:not([class*="language-blocks"])'].join(", "),r=e.querySelectorAll(n);if(r.length>0)for(const o of r)!t&&o.classList.contains(i)||Prism.highlightElement(o)},s=e=>"undefined"!==typeof e.challenge&&e.challenge,u=e=>e.classList.contains("js-project-panel--initialise-swiper")||e.classList.contains("js-project-panel--swiper-initialised"),l=e=>"string"===typeof(null===e||void 0===e?void 0:e.knowledgeQuiz),c=e=>{var t,n;return"undefined"!==typeof e.completion&&"Array"===(null===(t=e.completion)||void 0===t||null===(n=t.constructor)||void 0===n?void 0:n.name)&&e.completion.includes("external")&&!e.quiz&&"string"!==typeof e.knowledgeQuiz},f=e=>"string"===typeof(null===e||void 0===e?void 0:e.badgeTemplateId)&&"string"===typeof(null===e||void 0===e?void 0:e.providerId),p=e=>{const t=e.target;if(!t.classList.contains("js-project-panel__toggle"))return;t.classList.toggle("c-project-panel__heading--has-close-icon");const n=t.nextElementSibling;n.classList.toggle("u-hidden"),n.classList.contains("u-hidden")||a(n,!0),u(n)&&(e=>{const t=e.querySelector(".c-project-panel__swiper");null!==t&&(new r(t,{a11y:!0,containerModifierClass:"c-project-panel__swiper--",navigation:{disabledClass:"c-project-panel__swiper-button--disabled",nextEl:t.querySelector(".c-project-panel__swiper-button--next"),prevEl:t.querySelector(".c-project-panel__swiper-button--prev")},pagination:{clickable:!0,bulletActiveClass:"c-project-panel__swiper-bullet--active",bulletClass:"c-project-panel__swiper-bullet",el:t.querySelector(".c-project-panel__swiper-pagination"),hideOnClick:!1,type:"bullets"},setWrapperSize:!0,slideClass:"c-project-panel__swiper-slide",spaceBetween:80,wrapperClass:"c-project-panel__swiper-wrapper"}),e.classList.remove("js-project-panel--initialise-swiper"),e.classList.add("js-project-panel--swiper-initialised"))})(n),m(e,u(n))},d=()=>{const e=document.querySelectorAll(".scratch-preview iframe");for(let t of e)t.parentNode.removeChild(t)},h=e=>{const t=e.target,n=document.querySelector(".c-project-quiz__content"),r=document.querySelectorAll(".c-project-quiz__label"),i=document.querySelectorAll(".c-project-quiz__input"),o=document.createElement("div");if(t.classList.contains("c-project-quiz__label")){t.classList.add("c-project-quiz__label--active"),t.nextElementSibling.classList.add("c-project-quiz__input--active");for(let e of r)e.classList.contains("c-project-quiz__label--active")||e.classList.add("c-project-quiz__label--disabled");for(let e of i)e.classList.contains("c-project-quiz__input--active")||(e.disabled=!0,n.removeEventListener("click",h));o.classList.add("c-project-quiz__thank-you-box"),o.innerHTML="Thank you!",n.appendChild(o)}},g=()=>{a(),(()=>{const e=document.querySelector(".c-project-quiz__content");null!==e&&e.addEventListener("click",h)})(),(()=>{const e=document.querySelector(".c-project__content");null!==e&&e.addEventListener("click",p)})()},v=e=>e?parseInt(e,10):0,y=(e,t)=>e>t?"left":"right",m=(e,t)=>{const n=e.target.textContent.trim();window.ga&&window.ga("send",{hitType:"event",eventCategory:"Project ".concat(t?"hint":"ingredient"),eventAction:"Clicked ".concat(t?"hint":"ingredient ".concat(n)),eventLabel:e.target.baseURI})}},40500:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,F0:()=>i.OidcProvider,Ff:()=>i.reducer,Fq:()=>i.CallbackComponent,JM:()=>s,NU:()=>u});var r=n(66958),i=n(41817);const o="".concat(window.location.protocol,"//").concat(window.location.hostname).concat(window.location.port?":".concat(window.location.port):""),a={client_id:"projects",redirect_uri:"".concat(o,"/rpi/callback"),post_logout_redirect_uri:o,response_type:"code",scope:"openid profile force-consent allow-u13-login",authority:"https://auth-v1.raspberrypi.org",silent_redirect_uri:"".concat(o,"/rpi/silent_renew"),automaticSilentRenew:!0,filterProtocolClaims:!1,loadUserInfo:!1,monitorSession:!1,userStore:new r.WebStorageStateStore({store:window.localStorage}),extraQueryParams:{brand:"projects",login_options:"v1_signup"}},s={brand:"projects",login_options:"force_signup,v1_signup"},u=(0,i.createUserManager)(a);u.events.addAccessTokenExpired((()=>{u.signinSilent()}));const l=e=>{(0,i.loadUser)(e,u)}},60170:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={okStatus:200,createdStatus:201,noContentStatus:204,redirectedStatus:300,notFoundStatus:404,internalServerErrorStatus:500,initialScrollDuration:150,stepScrollDuration:250,transitionEnterTimeout:325,transitionExitTimeout:325,creativeCommonsUrl:"https://creativecommons.org/licenses/by-sa/4.0/",raspberryPiUrl:"https://www.raspberrypi.org",projectCompleteSlug:"complete",projectCompleteTitle:"Project Complete",reducers:{badge:{initialState:{badge:{},badgeFetched:!1,error:null,loading:!1,issued:!1}},collections:{initialState:{entities:{},error:null,ids:[],links:{},loading:!0,meta:{}}},collection:{initialState:{currentLocale:"en",error:null,loading:!0,title:"",description:"",pathways:[],additionalPathways:[]}},featured:{initialState:{currentLocale:"en",error:null,ids:[],loading:!1,entities:{}}},pathway:{initialState:{currentLocale:"en",description:"",error:null,loading:!0,projectsIds:[],title:"",slug:"",header:[]}},progress:{initialState:{currentLocale:"en",currentStep:0,error:null,loading:!1,sending:!1,sent:!0,slug:null}},project:{initialState:{currentLocale:"en",currentStepPosition:0,error:null,loading:!0,project:{},projectFetched:0,slideDirection:"left",slug:null}},quiz:{initialState:{currentLocale:"en",error:null,fullPath:"",loading:!1,passScore:0,questions:[],slideDirection:"left"}},quizAttempt:{initialState:{user_id:0,session_id:"0",id:null,locale:"en",quiz_length:0,quiz_version:1,skipped:0,correct:0,incorrect:0,completed:!1,currentQuestion:0,answers:{}}},user:{initialState:{error:null,loading:!1}}}}},77629:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(40344),i=n.n(r),o=n(22740),a=n.n(o);function s(e){return"/"===e.charAt(0)}function u(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&s(e),o=t&&s(t),a=i||o;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var l=void 0;if(r.length){var c=r[r.length-1];l="."===c||".."===c||""===c}else l=!1;for(var f=0,p=r.length;p>=0;p--){var d=r[p];"."===d?u(r,p):".."===d?(u(r,p),f++):f&&(u(r,p),f--)}if(!a)for(;f--;f)r.unshift("..");!a||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return l&&"/"!==h.substr(-1)&&(h+="/"),h};"function"===typeof Symbol&&Symbol.iterator;var c=function(e){return"/"===e.charAt(0)?e:"/"+e},f=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},p=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},d=function(e,t,n,r){var i=void 0;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=p({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=l(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i};const h=function(){var e=null,t=[];return{setPrompt:function(t){return i()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,o):(i()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}};var g=!("undefined"===typeof window||!window.document||!window.document.createElement),v=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},y=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},m=function(e,t){return t(window.confirm(e))},b="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},w=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},_="popstate",S="hashchange",E=function(){try{return window.history.state||{}}catch(e){return{}}};const x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(g,"Browser history needs a DOM");var t,n=window.history,r=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),s=e.forceRefresh,u=void 0!==s&&s,l=e.getUserConfirmation,p=void 0===l?m:l,x=e.keyLength,T=void 0===x?6:x,k=e.basename?"/"===(t=c(e.basename)).charAt(t.length-1)?t.slice(0,-1):t:"",C=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return i()(!k||f(a,k),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+k+'".'),k&&(a=function(e,t){return f(e,t)?e.substr(t.length):e}(a,k)),d(a,r,n)},O=function(){return Math.random().toString(36).substr(2,T)},A=h(),P=function(e){w(V,e),V.length=n.length,A.notifyListeners(V.location,V.action)},I=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(C(e.state))},j=function(){N(C(E()))},M=!1,N=function(e){if(M)M=!1,P();else{A.confirmTransitionTo(e,"POP",p,(function(t){t?P({action:"POP",location:e}):F(e)}))}},F=function(e){var t=V.location,n=L.indexOf(t.key);-1===n&&(n=0);var r=L.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(M=!0,U(i))},R=C(E()),L=[R.key],D=function(e){return k+function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}(e)},U=function(e){n.go(e)},z=0,B=function(e){1===(z+=e)?(v(window,_,I),o&&v(window,S,j)):0===z&&(y(window,_,I),o&&y(window,S,j))},H=!1,V={length:n.length,action:"POP",location:R,createHref:D,push:function(e,t){i()(!("object"===("undefined"===typeof e?"undefined":b(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o="PUSH",a=d(e,t,O(),V.location);A.confirmTransitionTo(a,o,p,(function(e){if(e){var t=D(a),s=a.key,l=a.state;if(r)if(n.pushState({key:s,state:l},null,t),u)window.location.href=t;else{var c=L.indexOf(V.location.key),f=L.slice(0,-1===c?0:c+1);f.push(a.key),L=f,P({action:o,location:a})}else i()(void 0===l,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=t}}))},replace:function(e,t){i()(!("object"===("undefined"===typeof e?"undefined":b(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o="REPLACE",a=d(e,t,O(),V.location);A.confirmTransitionTo(a,o,p,(function(e){if(e){var t=D(a),s=a.key,l=a.state;if(r)if(n.replaceState({key:s,state:l},null,t),u)window.location.replace(t);else{var c=L.indexOf(V.location.key);-1!==c&&(L[c]=a.key),P({action:o,location:a})}else i()(void 0===l,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(t)}}))},go:U,goBack:function(){return U(-1)},goForward:function(){return U(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=A.setPrompt(e);return H||(B(1),H=!0),function(){return H&&(H=!1,B(-1)),t()}},listen:function(e){var t=A.appendListener(e);return B(1),function(){B(-1),t()}}};return V};Object.assign;"function"===typeof Symbol&&Symbol.iterator,Object.assign;let T;const k=e=>(T||(T=x(),T.listen((t=>{const n=e.language,r=t.pathname.split("/")[1];r!==n&&e.changeLanguage(r)}))),T)},88844:(e,t,n)=>{"use strict";var r=n(32605),i=n(64600),o=n.n(i),a=n(65043),s=n(66915),u=n(10509),l=n(51554),c=n.n(l);const f=c()({loader:()=>Promise.all([n.e(735),n.e(412)]).then(n.bind(n,84094)),error:u.A,loading:s.A}),p=c()({loader:()=>n.e(709).then(n.bind(n,53704)),error:u.A,loading:s.A}),d=c()({loader:()=>Promise.all([n.e(35),n.e(382),n.e(922),n.e(831)]).then(n.bind(n,74148)),error:u.A,loading:s.A}),h=c()({loader:()=>Promise.all([n.e(35),n.e(382),n.e(922),n.e(831)]).then(n.bind(n,1344)),error:u.A,loading:s.A}),g=c()({loader:()=>Promise.all([n.e(875),n.e(624)]).then(n.bind(n,73270)),error:u.A,loading:s.A}),v=(c()({loader:()=>n.e(359).then(n.bind(n,61880)),error:u.A,loading:s.A}),c()({loader:()=>Promise.all([n.e(735),n.e(348),n.e(875),n.e(543)]).then(n.bind(n,33243)),error:u.A,loading:s.A})),y=c()({loader:()=>Promise.all([n.e(382),n.e(419)]).then(n.bind(n,3526)),error:u.A,loading:s.A}),m=c()({loader:()=>n.e(675).then(n.bind(n,67986)),error:u.A,loading:s.A}),b=c()({loader:()=>Promise.all([n.e(922),n.e(206)]).then(n.bind(n,21286)),error:u.A,loading:s.A}),w=c()({loader:()=>Promise.all([n.e(382),n.e(419)]).then(n.bind(n,43233)),error:u.A,loading:s.A}),_=c()({loader:()=>Promise.all([n.e(735),n.e(412)]).then(n.bind(n,47263)),error:u.A,loading:s.A}),S=c()({loader:()=>n.e(582).then(n.bind(n,17228)),error:u.A,loading:s.A});var E=n(65173),x=n.n(E),T=n(73216),k=n(70579);const C=["microbit-game-controller","n-days-of-christmas","sweet-shop-reaction-game"],O=e=>{let{to:t}=e;return window.location.replace(t),null};O.propTypes={to:x().string};const A=()=>C.map(((e,t)=>(0,k.jsx)(T.qh,{path:"/:locale/projects/".concat(e),element:(0,k.jsx)(O,{to:"https://github.com/raspberrypilearning/".concat(e)})},t))),P=e=>e.map((e=>(0,k.jsx)(T.qh,{path:e.from,element:(0,k.jsx)(T.C5,{to:e.to})},e.from))),I=[{from:"/en/projects/rpi-python-build-an-octapi",to:"/en/projects/build-an-octapi"},{from:"/en/projects/rpi-python-tweeting-babbage",to:"/en/projects/tweeting-babbage"},{from:"/en/projects/rpi-python-tweeting-babbage",to:"/en/projects/tweeting-babbage"},{from:"/en/projects/rpi-python-google-aiy",to:"/en/projects/google-voice-aiy"},{from:"/en/projects/rpi-python-gpio-music-box",to:"/en/projects/gpio-music-box"},{from:"/en/projects/rpi-python-hamster-party-cam",to:"/en/projects/hamster-party-cam"},{from:"/en/projects/rpi-python-octapi-public-key-cryptography",to:"/en/projects/octapi-public-key-cryptography"},{from:"/en/projects/rpi-python-parent-detector",to:"/en/projects/parent-detector"},{from:"/en/projects/rpi-python-whoopi-cushion",to:"/en/projects/whoopi-cushion"},{from:"/en/projects/generic-javascript-cat-meme-generator",to:"/en/projects/cat-meme-generator"},{from:"/en/projects/generic-scratch-space-maze",to:"/en/projects/space-maze"},{from:"/en/projects/rpi-python-people-in-space-indicator",to:"/en/projects/people-in-space-indicator"}],j=()=>P(I),M=["codeclub","coderdojo"],N=e=>{let{to:t}=e;return window.location.replace(t),null};N.propTypes={to:x().string};const F=()=>M.map(((e,t)=>(0,k.jsx)(T.qh,{path:"/:locale/".concat(e),element:(0,k.jsx)(N,{to:"https://codeclub.org/learn-to-code"})},t)));var R=n(10746),L=n(92910),D=n(60170),U=n(77629),z=n(47065),B=n(35475);const H=(0,z.Tl)("translations")((e=>{let{t:t}=e;return(0,k.jsxs)("div",{children:[(0,k.jsx)(L.A,{locale:"en"}),(0,k.jsx)(u.A,{error:{status:D.A.notFoundStatus,message:t("no-match.title.text")}}),(0,k.jsx)(R.A,{text:"project.footer.feedback.homepage.text",userID:"no-match-footer-user-id"})]})})),V=(0,z.Tl)("translations")((e=>{let{i18n:t}=e;return(0,k.jsx)(B.Kd,{history:(0,U.A)(t),children:(0,k.jsx)(a.Suspense,{fallback:(0,k.jsx)("p",{children:" Loading..."}),children:(0,k.jsxs)(T.BV,{children:[(0,k.jsx)(T.qh,{path:"rpi/silent_renew",element:(0,k.jsx)(p,{})}),j(),A(),(0,k.jsx)(T.qh,{path:"/",element:(0,k.jsx)(T.C5,{to:"/en"})}),(0,k.jsx)(T.qh,{path:"/:locale",element:(0,k.jsx)(d,{})}),(0,k.jsx)(T.qh,{path:"/:locale/exercises/:slug/:complete?",element:(0,k.jsx)(h,{})}),F(),(0,k.jsx)(T.qh,{path:"/:locale/paths",element:(0,k.jsx)(b,{})}),(0,k.jsx)(T.qh,{path:":locale/jam",element:(0,k.jsx)(T.C5,{to:"jam"})}),(0,k.jsx)(T.qh,{path:":locale/collections",element:(0,k.jsx)(b,{})}),(0,k.jsx)(T.qh,{path:":locale/collections/:slug",element:(0,k.jsx)(m,{})}),(0,k.jsx)(T.qh,{path:":locale/projects",element:(0,k.jsx)(w,{})}),(0,k.jsx)(T.qh,{path:":locale/projects/favourites",element:(0,k.jsx)(y,{tab:"favourites"})}),(0,k.jsx)(T.qh,{path:":locale/projects/progress",element:(0,k.jsx)(y,{tab:"progress"})}),(0,k.jsx)(T.qh,{path:":locale/projects/finished",element:(0,k.jsx)(y,{tab:"finished"})}),(0,k.jsx)(T.qh,{path:":locale/projects/:slug/print",element:(0,k.jsx)(_,{})}),(0,k.jsx)(T.qh,{path:":locale/projects/:slug/complete",element:(0,k.jsx)(v,{})}),(0,k.jsxs)(T.qh,{path:":locale/projects/:slug",children:[(0,k.jsx)(T.qh,{path:":position",element:(0,k.jsx)(v,{})}),(0,k.jsx)(T.qh,{path:"editor",element:(0,k.jsx)(S,{})}),(0,k.jsx)(T.qh,{index:!0,element:(0,k.jsx)(v,{})})]}),(0,k.jsx)(T.qh,{path:":locale/:pathwayType/:slug",element:(0,k.jsx)(g,{})}),(0,k.jsx)(T.qh,{path:"rpi/callback",element:(0,k.jsx)(f,{})}),(0,k.jsx)(T.qh,{element:(0,k.jsx)(H,{})})]})})})}));var q=n(43761),W=n(92073);const K=()=>{const[e,t]=(0,q.A)(["sessionProgress"]);return e.sessionProgress||t("sessionProgress",(0,W.A)(),{path:"/"}),null};var G=n(79728);const Y=(0,z.Tl)("translations")((e=>{let{i18n:t}=e;const n=o()("c-i18n-root",{"c-i18n-root--rtl":"rtl"===t.dir()});return(0,k.jsx)(r.u_,{state:{id:"GTM-PXJKRGC"},children:(0,k.jsxs)("div",{className:n,dir:t.dir(),children:[(0,k.jsx)(K,{}),(0,k.jsx)(G.Ay,{i18n:t}),(0,k.jsx)(V,{})]})})}));n(85393),n(89410),n(84312),n(68634),n(71450),n(81556),n(58414);const $="8.34.0",J=globalThis;function Q(e,t,n){const r=n||J,i=r.__SENTRY__=r.__SENTRY__||{},o=i[$]=i[$]||{};return o[e]||(o[e]=t())}const Z="production";function X(){return ee(J),J}function ee(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||$,t[$]=t[$]||{}}const te=Object.prototype.toString;function ne(e){switch(te.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return pe(e,Error)}}function re(e,t){return te.call(e)==="[object ".concat(t,"]")}function ie(e){return re(e,"ErrorEvent")}function oe(e){return re(e,"DOMError")}function ae(e){return re(e,"String")}function se(e){return"object"===typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ue(e){return null===e||se(e)||"object"!==typeof e&&"function"!==typeof e}function le(e){return re(e,"Object")}function ce(e){return"undefined"!==typeof Event&&pe(e,Event)}function fe(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function pe(e,t){try{return e instanceof t}catch(n){return!1}}function de(e){return!("object"!==typeof e||null===e||!e.__isVue&&!e._isVue)}const he=J,ge=80;function ve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",u=s.length;let l;const c=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||ge;for(;n&&o++<r&&(l=ye(n,c),!("html"===l||o>1&&a+i.length*u+l.length>=f));)i.push(l),a+=l.length,n=n.parentNode;return i.reverse().join(s)}catch(n){return"<unknown>"}}function ye(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(he.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(i&&i.length)i.forEach((e=>{r.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else{n.id&&r.push("#".concat(n.id));const e=n.className;if(e&&ae(e)){const t=e.split(/\s+/);for(const e of t)r.push(".".concat(e))}}const o=["aria-label","type","name","title","alt"];for(const a of o){const e=n.getAttribute(a);e&&r.push("[".concat(a,'="').concat(e,'"]'))}return r.join("")}const me="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,be=["debug","info","warn","error","log","assert","trace"],we={};function _e(e){if(!("console"in J))return e();const t=J.console,n={},r=Object.keys(we);r.forEach((e=>{const r=we[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const Se=Q("logger",(function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return me?be.forEach((n=>{t[n]=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e&&_e((()=>{J.console[n]("".concat("Sentry Logger ","[").concat(n,"]:"),...r)}))}})):be.forEach((e=>{t[e]=()=>{}})),t}));function Ee(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof e||0===t||e.length<=t?e:"".concat(e.slice(0,t),"...")}function xe(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const t=e[i];try{de(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(r){n.push("[value cannot be serialized]")}}return n.join(t)}function Te(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!ae(e)&&(re(t,"RegExp")?t.test(e):!!ae(t)&&(n?e===t:e.includes(t)))}function ke(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((n=>Te(e,n,t)))}function Ce(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"===typeof i&&Ae(i,r),e[t]=i}function Oe(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){me&&Se.log('Failed to add non-enumerable property "'.concat(t,'" to object'),e)}}function Ae(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Oe(e,"__sentry_original__",t)}catch(n){}}function Pe(e){return e.__sentry_original__}function Ie(e){if(ne(e))return{message:e.message,name:e.name,stack:e.stack,...Me(e)};if(ce(e)){const t={type:e.type,target:je(e.target),currentTarget:je(e.currentTarget),...Me(e)};return"undefined"!==typeof CustomEvent&&pe(e,CustomEvent)&&(t.detail=e.detail),t}return e}function je(e){try{return t=e,"undefined"!==typeof Element&&pe(t,Element)?ve(e):Object.prototype.toString.call(e)}catch(n){return"<unknown>"}var t}function Me(e){if("object"===typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Ne(e){return Fe(e,new Map)}function Fe(e,t){if(function(e){if(!le(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const i of Object.getOwnPropertyNames(e))"undefined"!==typeof e[i]&&(r[i]=Fe(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(Fe(e,t))})),r}return e}function Re(){const e=J,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function Le(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function De(e){const{message:t,event_id:n}=e;if(t)return t;const r=Le(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ue(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function ze(e,t){const n=Le(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function Be(e){if(e&&e.__sentry_captured__)return!0;try{Oe(e,"__sentry_captured__",!0)}catch(t){}return!1}function He(e){return Array.isArray(e)?e:[e]}function Ve(){return{traceId:Re(),spanId:Re().substring(16)}}const qe=1e3;function We(){return Date.now()/qe}const Ke=function(){const{performance:e}=J;if(!e||!e.now)return We;const t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/qe}();let Ge;(()=>{const{performance:e}=J;if(!e||!e.now)return void(Ge="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,a=e.timing&&e.timing.navigationStart,s="number"===typeof a?Math.abs(a+n-r):t;o||s<t?i<=s?(Ge="timeOrigin",e.timeOrigin):Ge="navigationStart":Ge="dateNow"})();function Ye(e){const t=Ke(),n={sid:Re(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Ne({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?"".concat(e.did):void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&$e(n,e),n}function $e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ke(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Re()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const Je="_sentrySpan";function Qe(e,t){t?Oe(e,Je,t):delete e[Je]}function Ze(e){return e[Je]}class Xe{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ve()}clone(){const e=new Xe;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Qe(e,Ze(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&$e(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"===typeof e?e(this):e,[n,r]=t instanceof et?[t.getScopeData(),t.getRequestSession()]:le(t)?[e,e.requestSession]:[],{tags:i,extra:o,user:a,contexts:s,level:u,fingerprint:l=[],propagationContext:c}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Qe(this,void 0),this._attachments=[],this._propagationContext=Ve(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"===typeof t?t:100;if(n<=0)return this;const r={timestamp:We(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Ze(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Re();if(!this._client)return Se.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Re();if(!this._client)return Se.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Re();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Se.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const et=Xe;class tt{constructor(e,t){let n,r;n=e||new et,r=t||new et,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(r){throw this._popScope(),r}return fe(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function nt(){const e=ee(X());return e.stack=e.stack||new tt(Q("defaultCurrentScope",(()=>new et)),Q("defaultIsolationScope",(()=>new et)))}function rt(e){return nt().withScope(e)}function it(e,t){const n=nt();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function ot(e){return nt().withScope((()=>e(nt().getIsolationScope())))}function at(e){const t=ee(e);return t.acs?t.acs:{withIsolationScope:ot,withScope:rt,withSetScope:it,withSetIsolationScope:(e,t)=>ot(t),getCurrentScope:()=>nt().getScope(),getIsolationScope:()=>nt().getIsolationScope()}}function st(){return at(X()).getCurrentScope()}function ut(){return at(X()).getIsolationScope()}function lt(){return st().getClient()}const ct=50,ft="?",pt=/\(error: (.*)\)/,dt=/captureMessage|captureException/;function ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=[],o=e.split("\n");for(let a=t;a<o.length;a++){const e=o[a];if(e.length>1024)continue;const t=pt.test(e)?e.replace(pt,"$1"):e;if(!t.match(/\S*Error: /)){for(const e of r){const n=e(t);if(n){i.push(n);break}}if(i.length>=ct+n)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(gt(t).function||"")&&t.pop();t.reverse(),dt.test(gt(t).function||"")&&(t.pop(),dt.test(gt(t).function||"")&&t.pop());return t.slice(0,ct).map((e=>({...e,filename:e.filename||gt(t).filename,function:e.function||ft})))}(i.slice(n))}}function gt(e){return e[e.length-1]||{}}const vt="<anonymous>";function yt(e){try{return e&&"function"===typeof e&&e.name||vt}catch(t){return vt}}function mt(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(n){return}}}function bt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return _t("",e,t,n)}catch(r){return{ERROR:"**non-serializable** (".concat(r,")")}}}function wt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400;const r=bt(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?wt(e,t-1,n):r;var i}function _t(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){const e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}();const[o,a]=i;if(null==t||["boolean","string"].includes(typeof t)||"number"===typeof t&&Number.isFinite(t))return t;const s=function(e,t){try{if("domain"===e&&t&&"object"===typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!==typeof global&&t===global)return"[Global]";if("undefined"!==typeof window&&t===window)return"[Window]";if("undefined"!==typeof document&&t===document)return"[Document]";if(de(t))return"[VueViewModel]";if(le(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"===typeof t&&!Number.isFinite(t))return"[".concat(t,"]");if("function"===typeof t)return"[Function: ".concat(yt(t),"]");if("symbol"===typeof t)return"[".concat(String(t),"]");if("bigint"===typeof t)return"[BigInt: ".concat(String(t),"]");const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?"[HTMLElement: ".concat(r,"]"):"[object ".concat(r,"]")}catch(r){return"**non-serializable** (".concat(r,")")}var n}(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const u="number"===typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===u)return s.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&"function"===typeof l.toJSON)try{return _t("",l.toJSON(),u-1,r,i)}catch(d){}const c=Array.isArray(t)?[]:{};let f=0;const p=Ie(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(f>=r){c[h]="[MaxProperties ~]";break}const e=p[h];c[h]=_t(h,e,u-1,r,i),f++}return a(t),c}var St;function Et(e){return new Tt((t=>{t(e)}))}function xt(e){return new Tt(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(St||(St={}));class Tt{constructor(e){Tt.prototype.__init.call(this),Tt.prototype.__init2.call(this),Tt.prototype.__init3.call(this),Tt.prototype.__init4.call(this),this._state=St.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new Tt(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Tt(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(St.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(St.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===St.PENDING&&(fe(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===St.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===St.RESOLVED&&e[1](this._value),this._state===St.REJECTED&&e[2](this._value),e[0]=!0)}))}}}const kt="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Ct(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Tt(((i,o)=>{const a=e[r];if(null===t||"function"!==typeof a)i(t);else{const s=a({...t},n);kt&&a.id&&null===s&&Se.log('Event processor "'.concat(a.id,'" dropped event')),fe(s)?s.then((t=>Ct(e,t,n,r+1).then(i))).then(null,o):Ct(e,s,n,r+1).then(i).then(null,o)}}))}const Ot="sentry-",At=/^sentry-/;function Pt(e){const t=function(e){if(!e||!ae(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce(((e,t)=>{const n=It(t);return Object.entries(n).forEach((t=>{let[n,r]=t;e[n]=r})),e}),{});return It(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,t)=>{let[n,r]=t;if(n.match(At)){e[n.slice(Ot.length)]=r}return e}),{});return Object.keys(n).length>0?n:void 0}function It(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,t)=>{let[n,r]=t;return n&&r&&(e[n]=r),e}),{})}const jt="sentry.source",Mt="sentry.sample_rate",Nt="sentry.op",Ft="sentry.origin";const Rt="_sentryMetrics";function Lt(e){const t=e[Rt];if(!t)return;const n={};for(const[,[r,i]]of t){(n[r]||(n[r]=[])).push(Ne(i))}return n}const Dt=0,Ut=1;const zt=1;function Bt(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=qt(e);return Ne({parent_span_id:r,span_id:t,trace_id:n})}function Ht(e){return"number"===typeof e?Vt(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Vt(e.getTime()):Ke()}function Vt(e){return e>9999999999?e/1e3:e}function qt(e){if(function(e){return"function"===typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}(e)){const{attributes:r,startTime:i,name:o,endTime:a,parentSpanId:s,status:u}=e;return Ne({span_id:t,trace_id:n,data:r,description:o,parent_span_id:s,start_timestamp:Ht(i),timestamp:Ht(a)||void 0,status:Kt(u),op:r[Nt],origin:r[Ft],_metrics_summary:Lt(e)})}return{span_id:t,trace_id:n}}catch(t){return{}}}function Wt(e){const{traceFlags:t}=e.spanContext();return t===zt}function Kt(e){if(e&&e.code!==Dt)return e.code===Ut?"ok":e.message||"unknown_error"}const Gt="_sentryRootSpan";function Yt(e){return e[Gt]||e}const $t="_frozenDsc";function Jt(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=Ne({environment:n.environment||Z,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function Qt(e){const t=lt();if(!t)return{};const n=Jt(qt(e).trace_id||"",t),r=Yt(e),i=r[$t];if(i)return i;const o=r.spanContext().traceState,a=o&&o.get("sentry.dsc"),s=a&&Pt(a);if(s)return s;const u=qt(r),l=u.data||{},c=l[Mt];null!=c&&(n.sample_rate="".concat(c));const f=l[jt],p=u.description;return"url"!==f&&p&&(n.transaction=p),function(e){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=lt(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}()&&(n.sampled=String(Wt(r))),t.emit("createDsc",n,r),n}function Zt(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,u=Ne(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const l=Ne(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const c=Ne(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});const f=Ne(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts});a&&(e.level=a);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:Bt(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Qt(t),...e.sdkProcessingMetadata};const n=Yt(t),r=qt(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),function(e,t){e.fingerprint=e.fingerprint?He(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,o)}function Xt(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:l,eventProcessors:c,attachments:f,propagationContext:p,transactionName:d,span:h}=t;en(e,"extra",n),en(e,"tags",r),en(e,"user",i),en(e,"contexts",o),en(e,"sdkProcessingMetadata",s),a&&(e.level=a),d&&(e.transactionName=d),h&&(e.span=h),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function en(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function tn(e,t,n,r,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,u={...t,event_id:t.event_id||n.event_id||Re(),timestamp:t.timestamp||We()},l=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:Z);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=Ee(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Ee(a.value,o));const s=e.request;s&&s.url&&(s.url=Ee(s.url,o))}(u,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(u,l),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=J._sentryDebugIds;if(!n)return;let r;const i=nn.get(t);i?r=i:(r=new Map,nn.set(t,r));const o=Object.entries(n).reduce(((e,n)=>{let i,[o,a]=n;const s=r.get(o);s?i=s:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const n=i[t];if(n.filename){e[n.filename]=a;break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(a){}}(u,e.stackParser);const c=function(e,t){if(!t)return e;const n=e?e.clone():new et;return n.update(t),n}(r,n.captureContext);n.mechanism&&ze(u,n.mechanism);const f=i?i.getEventProcessors():[],p=Q("globalScope",(()=>new et)).getScopeData();if(o){Xt(p,o.getScopeData())}if(c){Xt(p,c.getScopeData())}const d=[...n.attachments||[],...p.attachments];d.length&&(n.attachments=d),Zt(u,p);return Ct([...f,...p.eventProcessors],u,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((e=>{let[t,r]=e;n.push({type:"sourcemap",code_file:t,debug_id:r})}))}(e),"number"===typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:bt(e.data,t,n)}})))},...e.user&&{user:bt(e.user,t,n)},...e.contexts&&{contexts:bt(e.contexts,t,n)},...e.extra&&{extra:bt(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=bt(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:bt(e.data,t,n)}}))));return r}(e,a,s):e)))}const nn=new WeakMap;function rn(e){if(e)return function(e){return e instanceof et||"function"===typeof e}(e)||function(e){return Object.keys(e).some((e=>on.includes(e)))}(e)?{captureContext:e}:e}const on=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function an(e,t){return st().captureException(e,rn(t))}function sn(e,t){return st().captureEvent(e,t)}function un(e){const t=lt(),n=ut(),r=st(),{release:i,environment:o=Z}=t&&t.getOptions()||{},{userAgent:a}=J.navigator||{},s=Ye({release:i,environment:o,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),u=n.getSession();return u&&"ok"===u.status&&$e(u,{status:"exited"}),ln(),n.setSession(s),r.setSession(s),s}function ln(){const e=ut(),t=st(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),$e(e,n)}(n),cn(),e.setSession(),t.setSession()}function cn(){const e=ut(),t=st(),n=lt(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function fn(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?ln():cn()}const pn=[];function dn(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"===typeof n?He(n(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(r),o=i.findIndex((e=>"Debug"===e.name));if(o>-1){const[e]=i.splice(o,1);i.push(e)}return i}function hn(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function gn(e,t,n){if(n[t.name])kt&&Se.log("Integration skipped because it was already installed: ".concat(t.name));else{if(n[t.name]=t,-1===pn.indexOf(t.name)&&"function"===typeof t.setupOnce&&(t.setupOnce(),pn.push(t.name)),t.setup&&"function"===typeof t.setup&&t.setup(e),"function"===typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"===typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}kt&&Se.log("Integration installed: ".concat(t.name))}}const vn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],yn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"InboundFilters",processEvent(t,n,r){const i=r.getOptions(),o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:vn],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return kt&&Se.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(De(e))),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(r){}n&&n.value&&(t.push(n.value),n.type&&t.push("".concat(n.type,": ").concat(n.value)));return t}(e).some((e=>ke(e,t)))}(e,t.ignoreErrors))return kt&&Se.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(De(e))),!0;if(function(e){if(e.type)return!1;if(!e.exception||!e.exception.values||0===e.exception.values.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return kt&&Se.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: ".concat(De(e))),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&ke(n,t)}(e,t.ignoreTransactions))return kt&&Se.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(De(e))),!0;if(function(e,t){if(!t||!t.length)return!1;const n=mn(e);return!!n&&ke(n,t)}(e,t.denyUrls))return kt&&Se.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(De(e),".\nUrl: ").concat(mn(e))),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=mn(e);return!n||ke(n,t)}(e,t.allowUrls))return kt&&Se.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(De(e),".\nUrl: ").concat(mn(e))),!0;return!1}(t,o)?null:t}}};function mn(e){try{let n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return kt&&Se.error("Cannot extract url for event ".concat(De(e))),null}}let bn;const wn=new WeakMap,_n=()=>({name:"FunctionToString",setupOnce(){bn=Function.prototype.toString;try{Function.prototype.toString=function(){const e=Pe(this),t=wn.has(lt())&&void 0!==e?e:this;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return bn.apply(t,r)}}catch(e){}},setup(e){wn.set(e,!0)}}),Sn=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!xn(e,t))return!1;if(!En(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=Tn(t),r=Tn(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!xn(e,t))return!1;if(!En(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return kt&&Se.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}};function En(e,t){let n=mt(e),r=mt(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const e=r[i],t=n[i];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function xn(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function Tn(e){return e.exception&&e.exception.values&&e.exception.values[0]}function kn(e,t){!0===t.debug&&(kt?Se.enable():_e((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));st().update(t.initialScope);const n=new e(t);return function(e){st().setClient(e)}(n),n.init(),n}const Cn=J;function On(){if(!("fetch"in Cn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function An(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const Pn={},In={};function jn(e,t){Pn[e]=Pn[e]||[],Pn[e].push(t)}function Mn(e,t){In[e]||(t(),In[e]=!0)}function Nn(e,t){const n=e&&Pn[e];if(n)for(const i of n)try{i(t)}catch(r){me&&Se.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(yt(i),"\nError:"),r)}}const Fn=J;const Rn=J;let Ln;function Dn(e){const t="history";jn(t,e),Mn(t,Un)}function Un(){if(!function(){const e=Fn.chrome,t=e&&e.app&&e.app.runtime,n="history"in Fn&&!!Fn.history.pushState&&!!Fn.history.replaceState;return!t&&n}())return;const e=Rn.onpopstate;function t(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.length>2?n[2]:void 0;if(i){const e=Ln,t=String(i);Ln=t;Nn("history",{from:e,to:t})}return e.apply(this,n)}}Rn.onpopstate=function(){const t=Rn.location.href,n=Ln;Ln=t;if(Nn("history",{from:n,to:t}),e)try{for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(this,i)}catch(a){}},Ce(Rn.history,"pushState",t),Ce(Rn.history,"replaceState",t)}const zn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Bn(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return"".concat(s,"://").concat(u).concat(t&&i?":".concat(i):"")+"@".concat(n).concat(o?":".concat(o):"","/").concat(r?"".concat(r,"/"):r).concat(a)}function Hn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Vn(e){const t="string"===typeof e?function(e){const t=zn.exec(e);if(!t)return void _e((()=>{console.error("Invalid Sentry Dsn: ".concat(e))}));const[n,r,i="",o="",a="",s=""]=t.slice(1);let u="",l=s;const c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Hn({host:o,pass:i,path:u,projectId:l,port:a,protocol:n,publicKey:r})}(e):Hn(e);if(t&&function(e){if(!me)return!0;const{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(Se.error("Invalid Sentry Dsn: ".concat(t," missing")),!0)))&&(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?!t||!isNaN(parseInt(t,10))||(Se.error("Invalid Sentry Dsn: Invalid port ".concat(t)),!1):(Se.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):(Se.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1))}(t))return t}function qn(e){return[e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]}function Wn(e,t){const[n,r]=e;return[n,[...r,t]]}function Kn(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function Gn(e){return J.__SENTRY__&&J.__SENTRY__.encodePolyfill?J.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function Yn(e){const[t,n]=e;let r=JSON.stringify(t);function i(e){"string"===typeof r?r="string"===typeof e?r+e:[Gn(r),e]:r.push("string"===typeof e?Gn(e):e)}for(const a of n){const[e,t]=a;if(i("\n".concat(JSON.stringify(e),"\n")),"string"===typeof t||t instanceof Uint8Array)i(t);else{let e;try{e=JSON.stringify(t)}catch(o){e=JSON.stringify(bt(t))}i(e)}}return"string"===typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(r)}function $n(e){const t="string"===typeof e.data?Gn(e.data):e.data;return[Ne({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Jn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Qn(e){return Jn[e]}function Zn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}class Xn extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const er="7";function tr(e){const t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/")}function nr(e,t){return n={sentry_key:e.publicKey,sentry_version:er,...t&&{sentry_client:"".concat(t.name,"/").concat(t.version)}},Object.keys(n).map((e=>"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(n[e])))).join("&");var n}function rr(e,t,n){return t||"".concat(function(e){return"".concat(tr(e)).concat(e.projectId,"/envelope/")}(e),"?").concat(nr(e,n))}function ir(e,t,n,r){const i=Zn(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Bn(r)},...i&&{trace:Ne({...i})}}}(e,i,r,t);delete e.sdkProcessingMetadata;return qn(a,[[{type:o},e]])}const or="Not capturing exception because it's already been captured.";class ar{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Vn(e.dsn):kt&&Se.warn("No DSN provided, client will not send events."),this._dsn){const t=rr(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const r=Re();if(Be(e))return kt&&Se.log(or),r;const i={event_id:r,...t};return this._process(this.eventFromException(e,i).then((e=>this._captureEvent(e,i,n)))),i.event_id}captureMessage(e,t,n,r){const i={event_id:Re(),...n},o=se(e)?e:String(e),a=ue(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then((e=>this._captureEvent(e,i,r)))),i.event_id}captureEvent(e,t,n){const r=Re();if(t&&t.originalException&&Be(t.originalException))return kt&&Se.log(or),r;const i={event_id:r,...t},o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||n)),i.event_id}captureSession(e){"string"!==typeof e.release?kt&&Se.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),$e(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):Et(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((e=>{let{name:t}=e;return t.startsWith("Spotlight")})))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];gn(this,e,this._integrations),t||hn(this,[e])}sendEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,t);let n=ir(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of t.attachments||[])n=Wn(n,$n(i));const r=this.sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const i=Zn(n);return qn({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Bn(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"===typeof n?n:1,i="".concat(e,":").concat(t);kt&&Se.log('Recording outcome: "'.concat(i,'"').concat(r>1?" (".concat(r," times)"):"")),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=this._hooks[e];i&&i.forEach((e=>e(...n)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(kt&&Se.error("Error while sending event:",e),e))):(kt&&Se.error("Transport disabled"),Et({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&gn(e,t,n)})),n}(this,e),hn(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&($e(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Tt((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ut();const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),tn(i,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:n,spanId:r,parentSpanId:i,dsc:o}=t;e.contexts={trace:Ne({trace_id:n,span_id:r,parent_span_id:i}),...e.contexts};const a=o||Jt(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(kt){const t=e;"log"===t.logLevel?Se.log(t.message):Se.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=ur(e),a=sr(e),s=e.type||"error",u="before send for type `".concat(s,"`"),l="undefined"===typeof i?void 0:function(e){if("boolean"===typeof e)return Number(e);const t="string"===typeof e?parseFloat(e):e;if(!("number"!==typeof t||isNaN(t)||t<0||t>1))return t;kt&&Se.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(e)," of type ").concat(JSON.stringify(typeof e),"."))}(i);if(a&&"number"===typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",e),xt(new Xn("Discarding event because it's not included in the random sample (sampling rate = ".concat(i,")"),"log"));const c="replay_event"===s?"replay":s,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,f).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new Xn("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n,r){const{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:a}=t;if(sr(n)&&i)return i(n,r);if(ur(n)){if(n.spans&&a){const t=[];for(const r of n.spans){const n=a(r);n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(o){if(n.spans){const e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(n,r)}}return n}(this,r,n,t);return function(e,t){const n="".concat(t," must return `null` or a valid event.");if(fe(e))return e.then((e=>{if(!le(e)&&null!==e)throw new Xn(n);return e}),(e=>{throw new Xn("".concat(t," rejected with ").concat(e))}));if(!le(e)&&null!==e)throw new Xn(n);return e}(i,u)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,e),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new Xn("".concat(u," returned `null`, will not send event."),"log")}const i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,r),o){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const a=r.transaction_info;if(o&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Xn)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Xn("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((e=>{let[t,n]=e;const[r,i]=t.split(":");return{reason:r,category:i,quantity:n}}))}_flushOutcomes(){kt&&Se.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(kt&&Se.log("No outcomes to send"));if(!this._dsn)return void(kt&&Se.log("No dsn provided, will not send outcomes"));kt&&Se.log("Sending outcomes:",e);const t=(n=e,qn((r=this._options.tunnel&&Bn(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||We(),discarded_events:n}]]));var n,r,i;this.sendEnvelope(t)}}function sr(e){return void 0===e.type}function ur(e){return"transaction"===e.type}function lr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm";const i=e._metadata||{};i.sdk||(i.sdk={name:"sentry.javascript.".concat(t),packages:n.map((e=>({name:"".concat(r,":@sentry/").concat(e),version:$}))),version:$}),e._metadata=i}const cr="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function fr(e,t){const n=hr(e,t),r={type:yr(t),value:mr(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function pr(e,t,n,r){const i=lt(),o=i&&i.getOptions().normalizeDepth,a=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return}(t),s={__serialized__:wt(t,o)};if(a)return{exception:{values:[fr(e,a)]},extra:s};const u={exception:{values:[{type:ce(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:_r(t,{isUnhandledRejection:r})}]},extra:s};if(n){const t=hr(e,n);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}function dr(e,t){return{exception:{values:[fr(e,t)]}}}function hr(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&gr.test(e.message))return 1;return 0}(t),i=function(e){if("number"===typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,i)}catch(o){}return[]}const gr=/Minified React error #\d+;/i;function vr(e){return"undefined"!==typeof WebAssembly&&"undefined"!==typeof WebAssembly.Exception&&e instanceof WebAssembly.Exception}function yr(e){const t=e&&e.name;if(!t&&vr(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function mr(e){const t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:vr(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function br(e,t,n,r,i){let o;if(ie(t)&&t.error){return dr(e,t.error)}if(oe(t)||re(t,"DOMException")){const i=t;if("stack"in t)o=dr(e,t);else{const t=i.name||(oe(i)?"DOMError":"DOMException"),a=i.message?"".concat(t,": ").concat(i.message):t;o=wr(e,a,n,r),Ue(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":"".concat(i.code)}),o}if(ne(t))return dr(e,t);if(le(t)||ce(t)){return o=pr(e,t,n,i),ze(o,{synthetic:!0}),o}return o=wr(e,t,n,r),Ue(o,"".concat(t),void 0),ze(o,{synthetic:!0}),o}function wr(e,t,n,r){const i={};if(r&&n){const r=hr(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(se(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function _r(e,t){let{isUnhandledRejection:n}=t;const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40;const n=Object.keys(Ie(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Ee(r,t);for(let i=n.length;i>0;i--){const e=n.slice(0,i).join(", ");if(!(e.length>t))return i===n.length?e:Ee(e,t)}return""}(e),i=n?"promise rejection":"exception";if(ie(e))return"Event `ErrorEvent` captured as ".concat(i," with message `").concat(e.message,"`");if(ce(e)){const t=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e);return"Event `".concat(t,"` (type=").concat(e.type,") captured as ").concat(i)}return"Object captured as ".concat(i," with keys: ").concat(r)}const Sr=J;let Er=0;function xr(){return Er>0}function Tr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!==typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"===typeof t?t:e;if(Pe(e))return e}catch(i){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);const i=r.map((e=>Tr(e,t)));return e.apply(this,i)}catch(i){throw Er++,setTimeout((()=>{Er--})),function(){const e=at(X());for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(2===n.length){const[t,r]=n;return t?e.withSetScope(t,r):e.withScope(r)}e.withScope(n[0])}((e=>{e.addEventProcessor((e=>(t.mechanism&&(Ue(e,void 0,void 0),ze(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),an(i)})),i}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(o){}Ae(r,e),Oe(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(o){}return r}class kr extends ar{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};lr(t,"browser",["browser"],Sr.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Sr.document&&Sr.document.addEventListener("visibilitychange",(()=>{"hidden"===Sr.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const i=br(e,t,n&&n.syntheticException||void 0,r);return ze(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Et(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;const o=wr(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Et(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(cr&&Se.warn("SDK not enabled, will not capture user feedback."));const t=function(e,t){let{metadata:n,tunnel:r,dsn:i}=t;const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!r&&!!i&&{dsn:Bn(i)}},a=function(e){return[{type:"user_report"},e]}(e);return qn(o,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}const Cr=1e3;let Or,Ar,Pr;function Ir(){if(!Rn.document)return;const e=Nn.bind(null,"dom"),t=jr(e,!0);Rn.document.addEventListener("click",t,!1),Rn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Rn[t]&&Rn[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Ce(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=jr(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(o){}return t.call(this,n,r,i)}})),Ce(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(i){}return e.call(this,t,n,r)}})))}))}function jr(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(t){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;Oe(n,"_sentryCaptured",!0),r&&!r._sentryId&&Oe(r,"_sentryId",Re());const i="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Ar)return!1;try{if(!e.target||e.target._sentryId!==Pr)return!1}catch(t){}return!0}(n)){e({event:n,name:i,global:t}),Ar=n.type,Pr=r?r._sentryId:void 0}clearTimeout(Or),Or=Rn.setTimeout((()=>{Pr=void 0,Ar=void 0}),Cr)}}const Mr="__sentry_xhr_v3__";function Nr(){if(!Rn.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=1e3*Ke(),i=ae(n[0])?n[0].toUpperCase():void 0,o=function(e){if(ae(e))return e;try{return e.toString()}catch(t){}return}(n[1]);if(!i||!o)return e.apply(t,n);t[Mr]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[Mr];if(e&&4===t.readyState){try{e.status_code=t.status}catch(n){}Nn("xhr",{endTimestamp:1e3*Ke(),startTimestamp:r,xhr:t})}};return"onreadystatechange"in t&&"function"===typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,i]=n,o=t[Mr];return o&&ae(r)&&ae(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[Mr];if(!r)return e.apply(t,n);void 0!==n[0]&&(r.body=n[0]);return Nn("xhr",{startTimestamp:1e3*Ke(),xhr:t}),e.apply(t,n)}})}const Fr=100;function Rr(e,t){const n=lt(),r=ut();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Fr}=n.getOptions();if(o<=0)return;const a={timestamp:We(),...e},s=i?_e((()=>i(a,t))):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function Lr(){"console"in J&&be.forEach((function(e){e in J.console&&Ce(J.console,e,(function(t){return we[e]=t,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Nn("console",{args:n,level:e});const i=we[e];i&&i.apply(J.console,n)}}))}))}function Dr(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&!function(){if("string"===typeof EdgeRuntime)return!0;if(!On())return!1;if(An(Cn.fetch))return!0;let e=!1;const t=Cn.document;if(t&&"function"===typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=An(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){me&&Se.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}()||Ce(J,"fetch",(function(t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const{method:o,url:a}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:zr(t),method:Ur(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:zr(t),method:Ur(t,"method")?String(t.method).toUpperCase():"GET"}}(r),s={args:r,fetchData:{method:o,url:a},startTimestamp:1e3*Ke()};e||Nn("fetch",{...s});const u=(new Error).stack;return t.apply(J,r).then((async t=>(e?e(t):Nn("fetch",{...s,endTimestamp:1e3*Ke(),response:t}),t)),(e=>{throw Nn("fetch",{...s,endTimestamp:1e3*Ke(),error:e}),ne(e)&&void 0===e.stack&&(e.stack=u,Oe(e,"framesToPop",1)),e}))}}))}function Ur(e,t){return!!e&&"object"===typeof e&&!!e[t]}function zr(e){return"string"===typeof e?e:e?Ur(e,"url")?e.url:e.toString?e.toString():"":""}const Br=["fatal","error","warning","log","info","debug"];function Hr(e){return"warn"===e?"warning":Br.includes(e)?e:"log"}function Vr(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}function qr(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Wr=1024,Kr=function(){const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"Breadcrumbs",setup(t){var n;e.console&&function(e){const t="console";jn(t,e),Mn(t,Lr)}(function(e){return function(t){if(lt()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Hr(t.level),message:xe(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message="Assertion failed: ".concat(xe(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1)}Rr(n,{input:t.args,level:t.level})}}(t)),e.dom&&(n=function(e,t){return function(n){if(lt()!==e)return;let r,i,o="object"===typeof t?t.serializeAttribute:void 0,a="object"===typeof t&&"number"===typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>Wr&&(cr&&Se.warn("`dom.maxStringLength` cannot exceed ".concat(Wr,", but a value of ").concat(a," was configured. Sentry will use ").concat(Wr," instead.")),a=Wr),"string"===typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=ve(t,{keyAttrs:o,maxStringLength:a}),i=function(e){if(!he.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch(u){r="<unknown>"}if(0===r.length)return;const s={category:"ui.".concat(n.name),message:r};i&&(s.data={"ui.component_name":i}),Rr(s,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),jn("dom",n),Mn("dom",Ir)),e.xhr&&function(e){jn("xhr",e),Mn("xhr",Nr)}(function(e){return function(t){if(lt()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Mr];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:u}=i,l={method:o,url:a,status_code:s},c={xhr:t.xhr,input:u,startTimestamp:n,endTimestamp:r};Rr({category:"xhr",data:l,type:"http",level:Vr(s)},c)}}(t)),e.fetch&&function(e,t){const n="fetch";jn(n,e),Mn(n,(()=>Dr(void 0,t)))}(function(e){return function(t){if(lt()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){Rr({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response,i={...t.fetchData,status_code:e&&e.status},o={input:t.args,response:e,startTimestamp:n,endTimestamp:r};Rr({category:"fetch",data:i,type:"http",level:Vr(i.status_code)},o)}}}(t)),e.history&&Dn(function(e){return function(t){if(lt()!==e)return;let n=t.from,r=t.to;const i=qr(Sr.location.href);let o=n?qr(n):void 0;const a=qr(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Rr({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(e){return function(t){lt()===e&&Rr({category:"sentry.".concat("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:De(t)},{event:t})}}(t))}}};const Gr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Yr=function(){const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&Ce(Sr,"setTimeout",$r),e.setInterval&&Ce(Sr,"setInterval",$r),e.requestAnimationFrame&&Ce(Sr,"requestAnimationFrame",Jr),e.XMLHttpRequest&&"XMLHttpRequest"in Sr&&Ce(XMLHttpRequest.prototype,"send",Qr);const t=e.eventTarget;if(t){(Array.isArray(t)?t:Gr).forEach(Zr)}}}};function $r(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n[0];return n[0]=Tr(i,{mechanism:{data:{function:yt(e)},handled:!1,type:"instrument"}}),e.apply(this,n)}}function Jr(e){return function(t){return e.apply(this,[Tr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:yt(e)},handled:!1,type:"instrument"}})])}}function Qr(e){return function(){const t=this;["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in t&&"function"===typeof t[e]&&Ce(t,e,(function(t){const n={mechanism:{data:{function:e,handler:yt(t)},handled:!1,type:"instrument"}},r=Pe(t);return r&&(n.mechanism.data.handler=yt(r)),Tr(t,n)}))}));for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.apply(this,r)}}function Zr(e){const t=Sr,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Ce(n,"addEventListener",(function(t){return function(n,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=Tr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:yt(r),target:e},handled:!1,type:"instrument"}}))}catch(o){}return t.apply(this,[n,Tr(r,{mechanism:{data:{function:"addEventListener",handler:yt(r),target:e},handled:!1,type:"instrument"}}),i])}})),Ce(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(o){}return e.call(this,t,i,r)}})))}let Xr=null;function ei(){Xr=J.onerror,J.onerror=function(e,t,n,r,i){return Nn("error",{column:r,error:i,line:n,msg:e,url:t}),!(!Xr||Xr.__SENTRY_LOADER__)&&Xr.apply(this,arguments)},J.onerror.__SENTRY_INSTRUMENTED__=!0}let ti=null;function ni(){ti=J.onunhandledrejection,J.onunhandledrejection=function(e){return Nn("unhandledrejection",e),!(ti&&!ti.__SENTRY_LOADER__)||ti.apply(this,arguments)},J.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const ri=function(){const e={onerror:!0,onunhandledrejection:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(e){!function(e){const t="error";jn(t,e),Mn(t,ei)}((t=>{const{stackParser:n,attachStacktrace:r}=oi();if(lt()!==e||xr())return;const{msg:i,url:o,line:a,column:s,error:u}=t,l=function(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,f=ae(t)&&t.length>0?t:function(){try{return he.document.location.href}catch(e){return""}}();0===u.length&&u.push({colno:l,filename:f,function:ft,in_app:!0,lineno:c});return e}(br(n,u||i,void 0,r,!1),o,a,s);l.level="error",sn(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}))}(t),ii("onerror")),e.onunhandledrejection&&(!function(e){!function(e){const t="unhandledrejection";jn(t,e),Mn(t,ni)}((t=>{const{stackParser:n,attachStacktrace:r}=oi();if(lt()!==e||xr())return;const i=function(e){if(ue(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}(t),o=ue(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(i))}]}}:br(n,i,void 0,r,!0);o.level="error",sn(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),ii("onunhandledrejection"))}}};function ii(e){cr&&Se.log("Global Handler attached: ".concat(e))}function oi(){const e=lt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const ai=()=>({name:"HttpContext",preprocessEvent(e){if(!Sr.navigator&&!Sr.location&&!Sr.document)return;const t=e.request&&e.request.url||Sr.location&&Sr.location.href,{referrer:n}=Sr.document||{},{userAgent:r}=Sr.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function si(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(!o.exception||!o.exception.values||!a||!pe(a.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var u,l;s&&(o.exception.values=(u=ui(e,t,i,a.originalException,r,o.exception.values,s,0),l=n,u.map((e=>(e.value&&(e.value=Ee(e.value,l)),e)))))}function ui(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let u=[...o];if(pe(r[i],Error)){li(a,s);const o=e(t,r[i]),l=u.length;ci(o,i,l,s),u=ui(e,t,n,r[i],i,[o,...u],o,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(pe(r,Error)){li(a,s);const l=e(t,r),c=u.length;ci(l,"errors[".concat(o,"]"),c,s),u=ui(e,t,n,r,i,[l,...u],l,c)}})),u}function li(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function ci(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const fi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){const o=i.getOptions();si(fr,o.stackParser,o.maxValueLength,n,t,e,r)}}};function pi(e,t,n,r){const i={filename:e,function:"<anonymous>"===t?ft:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const di=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gi=/\((\S*)(?::(\d+))(?::(\d+))\)/,vi=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yi=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,mi=ht(...[[30,e=>{const t=di.exec(e);if(t){const[,e,n,r]=t;return pi(e,ft,+n,+r)}const n=hi.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=gi.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=bi(n[1]||ft,n[2]);return pi(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=vi.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=yi.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||ft;return[n,e]=bi(n,e),pi(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),bi=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:ft,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},wi="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,_i={};function Si(e){const t=_i[e];if(t)return t;let n=Rn[e];if(An(n))return _i[e]=n.bind(Rn);const r=Rn.document;if(r&&"function"===typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(i){wi&&Se.warn("Could not create sandbox iframe for ".concat(e," check, bailing to window.").concat(e,": "),i)}return n?_i[e]=n.bind(Rn):n}function Ei(e){_i[e]=void 0}function xi(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return xt(new Xn("Not adding Promise because buffer limit was reached."));const i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new Tt(((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Et(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}const Ti=6e4;function ki(e,t){let{statusCode:n,headers:r}=t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();const o={...e},a=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(a)for(const u of a.trim().split(",")){const[e,t,,,n]=u.split(":",5),r=parseInt(e,10),a=1e3*(isNaN(r)?60:r);if(t)for(const s of t.split(";"))"metric_bucket"===s&&n&&!n.split(";").includes("custom")||(o[s]=i+a);else o.all=i+a}else s?o.all=i+function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();const n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;const r=Date.parse("".concat(e));return isNaN(r)?Ti:r-t}(s,i):429===n&&(o.all=i+6e4);return o}const Ci=64;function Oi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xi(e.bufferSize||Ci),r={};return{send:function(i){const o=[];if(Kn(i,((t,n)=>{const i=Qn(n);if(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){const r=Ai(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)})),0===o.length)return Et({});const a=qn(i[0],o),s=t=>{Kn(a,((n,r)=>{const i=Ai(n,r);e.recordDroppedEvent(t,Qn(r),i)}))};return n.add((()=>t({body:Yn(a)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&kt&&Se.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=ki(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Xn)return kt&&Se.error("Skipped sending event because buffer is full."),s("queue_overflow"),Et({});throw e}))},flush:e=>n.drain(e)}}function Ai(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Pi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Si("fetch"),n=0,r=0;return Oi(e,(function(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Ei("fetch"),xt("No fetch implementation available");try{return t(e.url,a).then((e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(s){return Ei("fetch"),n-=o,r--,xt(s)}}))}function Ii(){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={defaultIntegrations:[yn(),_n(),Yr(),Kr(),ri(),fi(),Sn(),ai()],release:"string"===typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Sr.SENTRY_RELEASE&&Sr.SENTRY_RELEASE.id?Sr.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});if(function(){const e="undefined"!==typeof Sr.window&&Sr;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=Sr.location&&Sr.location.href||"",i=!!n&&Sr===Sr.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>r.startsWith("".concat(e,"//")))),o="undefined"!==typeof e.nw;return!!n&&!i&&!o}())return void _e((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));cr&&(On()||Se.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const t={...e,stackParser:(n=e.stackParser||mi,Array.isArray(n)?ht(...n):n),integrations:dn(e),transport:e.transport||Pi};var n;const r=kn(kr,t);return e.autoSessionTracking&&function(){if("undefined"===typeof Sr.document)return void(cr&&Se.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));un({ignoreDuration:!0}),fn(),Dn((e=>{let{from:t,to:n}=e;void 0!==t&&t!==n&&(un({ignoreDuration:!0}),fn())}))}(),r}n(9454);var ji=n(84391),Mi=n(22166),Ni=n(64303),Fi=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ri={INIT:"@@redux/INIT"+Fi(),REPLACE:"@@redux/REPLACE"+Fi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Fi()}};function Li(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Di(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function Ui(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Bi=n(40500),Hi=n(53536);const Vi=e=>t=>n=>{var r,i;const{authentication:o={}}=e.getState();Boolean(null===o||void 0===o||null===(r=o.user)||void 0===r||null===(i=r.profile)||void 0===i?void 0:i.uuid)&&(localStorage.setItem("authReturnUrl","/"),Bi.NU.signinRedirect());const a=(0,Hi.get)(n,"actions",{});if(a&&null!==n&&void 0!==n&&n.type&&(0,Hi.has)(a,n.type)){const r=(0,Hi.get)(a,n.type);if(null!==r&&void 0!==r&&r.action)return t(n),e.dispatch(r.action)}return t(n)},qi=e=>e.json().catch((()=>{})),Wi=e=>{if(e.status>=D.A.okStatus&&e.status<D.A.redirectedStatus)return e;const t=new Error(e.statusText);throw t.status=e.status,t.response=e,t};var Ki=n(10936);const Gi=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"data.attributes";if(!e.data)return null;if(!Array.isArray(e.data))return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data.attributes";const n={...(0,Hi.get)(e,t)};return e.data.relationships&&Object.keys(e.data.relationships).map((t=>n["".concat(t,"Ids")]=e.data.relationships[t].data.map((e=>e.id)))),n}(e,n);const r={meta:{},links:{}};return e.data&&e.data.forEach(((e,n)=>{r[e.type]=r[e.type]||{},e.attributes.id=e.id,t?r[e.type][e.id]=e.attributes:r[e.type][n]=e.attributes})),e.links&&(r.links=e.links),r},Yi="".concat("https://learning-admin.raspberrypi.org","/api/v1"),$i=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"data.attributes",s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"included";const u=(e=>{let t;try{t=new URL(e)}catch(n){return!1}return"http:"===t.protocol||"https:"===t.protocol})(t)?t:"".concat(Yi).concat(t),l={method:e,headers:{}},c=(e=>{let{data:t,parseResponse:n=!1}=e;return e=>n?{...t,...e}:t})({data:i,parseResponse:o.parseResponse});n&&(l.headers={Authorization:n});let f={};return"GET"===e?f=fetch(u,l).then(Wi).then(qi).then((e=>{const t=Object.assign({},Gi(e,r,a));return s in e&&(t.included=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"type",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"attributes";const r={};return Array.isArray(e)&&e.forEach((e=>{e[t]in r||(r[e[t]]=[]),r[e[t]].push(e[n])})),r}(e[s])),t})):(l.headers["Content-Type"]="application/json",l.body=JSON.stringify(i),f=fetch(u,l).then(Wi).then(qi).then(c)),f.catch((e=>(e.status&&e.status===D.A.notFoundStatus||function(e,t){const n="string"===typeof t?t:void 0,r="string"!==typeof t?{captureContext:t}:void 0;st().captureMessage(e,n,r)}("API Error",{extra:{error:e}}),e.status&&e.response?e.response.json().then((t=>Promise.reject({message:e.message,status:e.status,body:Object.assign({},Gi(t))}))):Promise.reject({message:e.message,status:null,body:{}}))))},Ji=(e,t)=>{const n=t[Ki.oE];if("undefined"===typeof n)return e(t);const{types:r,method:i,endpoint:o,authToken:a,mapIds:s,data:u,options:l={},normalizePath:c="data.attributes",actions:f,...p}=n;if(!Array.isArray(r)||3!==r.length)throw new Error("Expected an array of three action types.");if("string"!==typeof o)throw new Error("Specify a string endpoint URL.");const d=e=>{const n=Object.assign({},t,e);return delete n[Ki.oE],n},[h,g,v]=r;return e(d({type:h,...n})),$i(i,o,a,s,u,l,c).then((t=>{e(d({response:t,type:g,extras:p,actions:f}))}),(t=>{e(d({type:v,error:t||{message:"Something went wrong",status:500},actions:f}))}))},Qi=(e,t)=>{const r=t[Ki.uS];if("undefined"===typeof r)return e(t);const{types:i,slug:o,options:a={},actions:s,...u}=r;if(!Array.isArray(i)||3!==i.length)throw new Error("Expected an array of three action types.");const l=e=>{const n=Object.assign({},t,e);return delete n[Ki.uS],n},[c,f,p]=i;return e(l({type:c,...r})),(e=>{const t=new Promise(((t,r)=>{n(68524)("./".concat(e,"/manifest.json")).then((e=>{setTimeout((()=>t(e)),500)})).catch((()=>{r("manifest not found")}))})),r=new Promise(((t,r)=>{n(53351)("./".concat(e,"/code.js")).then((e=>{t(e.default)})).catch((()=>{r("Code not found")}))}));return Promise.all([t,r]).then((e=>{const t={...e[0],code:e[1]};return Promise.resolve(t)})).catch((e=>Promise.reject({message:"Not found",status:404,body:{}})))})(o).then((t=>{e(l({response:t,type:f,extras:u,actions:s}))}),(t=>{e(l({type:p,error:t||{message:"Something went wrong",status:500},actions:s}))}))},Zi=[()=>(0,Hi.curry)(Ji),()=>(0,Hi.curry)(Qi),Vi],Xi=(e,t)=>Object.assign({},e,t),eo=D.A.reducers.badge.initialState;const to=D.A.reducers.collection.initialState;const no=D.A.reducers.collections.initialState;const ro=D.A.reducers.collection.initialState;const io=D.A.reducers.collections.initialState;const oo=D.A.reducers.featured.initialState;const ao=D.A.reducers.pathway.initialState;const so=D.A.reducers.collections.initialState;const uo=D.A.reducers.collections.initialState;var lo=n(7146),co=n(81197);const fo=D.A.reducers.project.initialState;const po=D.A.reducers.progress.initialState;const ho=D.A.reducers.collections.initialState;const go=D.A.reducers.quiz.initialState;const vo=D.A.reducers.quizAttempt.initialState;const yo=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:Ri.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof n(void 0,{type:Ri.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+Ri.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(s){o=s}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var u=a[s],l=n[u],c=e[u],f=l(c,t);if("undefined"===typeof f){var p=Di(u,t);throw new Error(p)}i[u]=f,r=r||f!==c}return r?i:e}}({favourites:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:io,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.aJ:return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,error:null,loading:!0});case Ki.Bv:{const n=t.response.project||{},r=Object.values(n).map((e=>e.id));return Xi(e,{entities:n,ids:r,loading:!1})}case Ki.Wz:return Xi(e,{entities:{},error:t.error,ids:[],loading:!1});case Ki.Wf:case Ki.Gp:return Xi(e,{loading:!0});case Ki.Dm:{const n=e.ids.slice();return n.includes(t.response.id)||n.push(t.response.id.toString()),Xi(e,{entities:{...e.entities,[t.response.id]:{...e.entities[t.response.id]}},loading:!1,ids:n})}case Ki.VJ:{const n=e.ids.filter((e=>e!==t.response.id.toString())),{[t.response.id]:r,...i}=e.entities;return Xi(e,{entities:i,loading:!1,ids:n})}case Ki.vj:return Xi(e,{error:t.error,loading:!1});default:return e}},featured:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.op:return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,error:null,loading:!0});case Ki.dM:{const n=t.response.projects||[],r=Object.values(n).map((e=>e.id));return Xi(e,{entities:n,ids:r,loading:!1})}case Ki.MF:return Xi(e,{entities:{},error:t.error,ids:[],loading:!1});default:return e}},badge:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.Ez:return Xi(e,eo);case Ki.XB:return Xi(e,{error:null,loading:!0,badge:{},badgeFetched:!1,issued:!1});case Ki.Oz:return Xi(e,{badge:t.response,badgeFetched:!0,issued:!0,loading:!1});case Ki.b3:return Xi(e,{badge:t.response,badgeFetched:!0,issued:!1,loading:!1});case Ki.Nb:{const n=t.error.body||{};return Xi(e,{error:t.error,loading:!1,badge:n})}case Ki.QR:{const n=t.error.body||{};return Xi(e,{error:t.error,loading:!1,badge:n})}default:return e}},collection:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:to,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.o0:return Xi(e,{...D.A.reducers.collection.initialState,currentLocale:t.currentLocale||e.currentLocale,loading:!0});case Ki.Vj:{const{pathways:{data:n=[]}={},additionalPathways:{data:r=[]}={},pathwayProgress:i={},additionalPathwayProgress:o={},...a}=t.response||{},s=n.map((e=>{var t;let{id:n,attributes:r,relationships:o}=e;return{id:n,linkUrl:"/pathways/".concat(r.slug),heroImage:r.heroImage||"https://projects-static.raspberrypi.org/pathways/assets/".concat(r.slug,".png"),...r,relationships:o,progress:(null===(t=i[n])||void 0===t?void 0:t.steps)||[]}})),u=r.map((e=>{var t;let{id:n,attributes:r,relationships:i}=e;return{id:n,linkUrl:"/pathways/".concat(r.slug),heroImage:r.heroImage||"https://projects-static.raspberrypi.org/collections/assets/".concat(a.slug,"_placeholder.png"),...r,relationships:i,progress:(null===(t=o[n])||void 0===t?void 0:t.steps)||[]}}));return Xi(e,{...a,pathways:s,additionalPathways:u,loading:!1})}case Ki.Aq:return Xi(e,{...D.A.reducers.collection.initialState,error:t.error,loading:!1});default:return e}},collections:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:no,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.N1:return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,error:null,loading:!0});case Ki.Su:{const n=t.response.collections||{},r=Object.assign(...Object.entries(n).map((e=>{let[t,n]=e;return{[t]:{heroImage:"https://projects-static.raspberrypi.org/collections/assets/".concat(n.slug,".png"),...n}}})));return Xi(e,{entities:r,links:t.response.links,loading:!1,meta:t.response.meta})}case Ki.$Z:return Xi(e,{entities:{},error:t.error,links:{},loading:!1,meta:{}});default:return e}},exercise:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ro,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.i6:return Xi(e,{...D.A.reducers.collection.initialState,currentLocale:t.currentLocale||e.currentLocale,loading:!0});case Ki.po:{const{slug:n,...r}=t.response||{};return Xi(e,{...r,loading:!1})}case Ki.gT:return Xi(e,{...D.A.reducers.collection.initialState,error:t.error,loading:!1});default:return e}},pathway:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ao,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.If:return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,description:"",error:null,loading:!0,projectsIds:[],title:"",slug:"",header:[]});case Ki.xX:{const n=t.response||{};return Xi(e,{...n,loading:!1})}case Ki.s:return Xi(e,{error:t.error,loading:!1,projectsIds:[]});default:return e}},pathways:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:so,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.nt:return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,error:null,loading:!0});case Ki.cp:{const n=t.response.pathways||{},r=Object.assign(...Object.entries(n).map((e=>{let[t,n]=e;return{[t]:{linkUrl:"/pathways/".concat(n.slug),heroImage:"https://projects-static.raspberrypi.org/pathways/assets/".concat(n.slug,".png"),...n}}})));return Xi(e,{entities:r,links:t.response.links,loading:!1,meta:t.response.meta})}case Ki.L3:return Xi(e,{entities:{},error:t.error,links:{},loading:!1,meta:{}});default:return e}},projectProgress:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:po,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.jm:return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,error:null,loading:!0});case Ki.kE:return Xi(e,{slug:t.response.repositoryName,currentStep:t.response.step,loading:!1});case Ki.d$:return Xi(e,{error:t.error,loading:!1});case Ki.jv:return Xi(e,{error:null,sending:!0,sent:!1});case Ki.U6:return Xi(e,{sending:!1,sent:!0,currentStep:t.response.step});case Ki.ul:return Xi(e,{error:t.error,sending:!1,sent:!0});case Ki.qi:return Xi(e,{sent:!1});default:return e}},progress:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.BC:return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,error:null,loading:!0});case Ki.kv:{const n=t.response.project||{},r=Object.values(n).map((e=>e.id));return Xi(e,{entities:n,ids:r,loading:!1})}case Ki.Lv:return Xi(e,{entities:{},error:t.error,ids:[],loading:!1});case Ki.jv:return Xi(e,{error:null,sending:!0,sent:!1});case Ki.U6:{const n=e.ids.slice(),r=t.response.projectId.toString();let i=n.indexOf(r);return-1===i&&(i=n.length,n.push(r)),Xi(e,{entities:{...e.entities,[i]:{...e.entities[i],currentStep:t.response.step,quizCompleted:t.response.quizCompleted||!1}},loading:!1,ids:n})}case Ki.ul:return Xi(e,{error:t.error,loading:!1});default:return e}},project:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.Fn:{const n=(0,lo.sJ)(t.currentStepPosition);return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,currentStepPosition:n,error:null,loading:!0,project:{},projectFetched:0,slideDirection:"left",slug:t.slug})}case Ki.qQ:{var n,r,i;const o=Xi(t.response.content,{id:t.response.id,locale:t.response.locale,archived:t.response.archived,unskippable:t.response.unskippable,included:null===(n=t.response)||void 0===n?void 0:n.included,pathwayStep:null===(r=t.response)||void 0===r?void 0:r.pathwayStep});return Xi(e,{nextStepTitle:o.steps[e.currentStepPosition+1]?o.steps[e.currentStepPosition+1].title:co.Ay.t("project.steps.navigation.whats-next"),previousStepTitle:null===(i=o.steps[e.currentStepPosition-1])||void 0===i?void 0:i.title,project:o,projectFetched:1,loading:!1})}case Ki.Tl:{const n=t.error.body||{},r=!!t.error.body;return Xi(e,{currentStepPosition:null,error:t.error,loading:!1,project:n,projectFetched:r&&t.error.body.availableLocales?1:-1,slug:null})}case Ki.qi:{var o;const n=(0,lo.sJ)(t.currentStepPosition),r=e.project.steps&&e.project.steps[n+1]?e.project.steps[n+1].title:co.Ay.t("project.steps.navigation.whats-next"),i=e.project.steps&&(null===(o=e.project.steps[n-1])||void 0===o?void 0:o.title),a=(0,lo.lm)(n,e.currentStepPosition);return Xi(e,{currentStepPosition:n,nextStepTitle:r,previousStepTitle:i,slideDirection:a})}default:return e}},projects:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ho,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.wD:return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,error:null,loading:!0});case Ki.jj:return Xi(e,{entities:t.response.projects||{},links:t.response.links,loading:!1,meta:t.response.meta});case Ki._w:return Xi(e,{entities:{},error:t.error,links:{},loading:!1,meta:{}});case Ki.mB:return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,error:null,loading:!0});case Ki.OF:return Xi(e,{entities:t.response.projects||{},links:t.response.links,loading:!1,meta:t.response.meta});case Ki.D9:return Xi(e,{entities:{},error:t.error,links:{},loading:!1,meta:{}});default:return e}},quiz:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:go,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.Bj:return Xi(e,{currentLocale:t.currentLocale||e.currentLocale,error:null,loading:!0});case Ki.qD:{const n=t.response.content||{};return Xi(n,{currentLocale:t.extras.currentLocale||e.currentLocale,fullPath:"".concat(t.extras.currentProject,"/quizzes/").concat(n.path),id:t.response.id,loading:!1,slideDirection:"left"})}case Ki.pf:return Xi(e,{error:t.error,loading:!1,questions:[]});default:return e}},quizAttempt:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ki.TA:return Xi(vo,{user_id:t.userId,session_id:t.sessionId,quiz_length:t.quizLength,quiz_version:t.quizVersion,locale:t.currentLocale||e.currentLocale});case Ki.gq:{const n=e.quiz_length,{questionNumber:r}=t,i=Math.min(Math.max(0,r),n);return Xi(e,{currentQuestion:i})}case Ki.lO:{const{question:n,answer:r,result:i,attempt:o}=t;return Xi(e,{...o,answers:{...e.answers,[n]:[...e.answers[n]||[],{answer:r,result:i}]}})}case Ki.OZ:return Xi(e,{error:null});case Ki.LY:{const n=t.response.attempt_id||e.id;return Xi(e,{id:n,error:null})}case Ki.FK:return Xi(e,{error:t.error});default:return e}},authentication:Bi.Ff});class mo extends a.Component{constructor(e){super(e),this.state={hasError:!1}}componentDidCatch(e,t){this.setState({hasError:!0}),an(e,{extra:t})}render(){return this.state.hasError?(0,k.jsx)(u.A,{error:{status:500,message:this.props.t("error-boundary.message")}}):this.props.children}}const bo=(0,z.Tl)("translations")(mo);var wo=n(48801),_o=n.n(wo),So=n(75641),Eo=n.n(So);const xo={name:"customDetector",lookup:()=>window.location.pathname.split("/")[1]},To=new(_o());To.addDetector(xo),co.Ay.use(Eo()).use(To).use(z.Rh).init({fallbackLng:"en",ns:["translations"],defaultNS:"translations",debug:!1,detection:{order:["customDetector"]},interpolation:{escapeValue:!1},react:{useSuspense:!0}});"container"in document.documentElement.style||n.e(119).then(n.bind(n,30119)),window.addEventListener("CookiebotOnConsentReady",(()=>{window.Cookiebot.consent.statistics&&n.e(621).then(n.bind(n,95621)).then((e=>e.init()))})),function(e){const t={...e};var n,r;lr(t,"react"),n="react",r={version:a.version},ut().setContext(n,r),Ii(t)}({dsn:"https://d40346592202445d84f573aae73cff38@sentry.io/182298"});const ko=function e(t,n,r){var i;if("function"===typeof n&&"function"===typeof r||"function"===typeof r&&"function"===typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"===typeof n&&"undefined"===typeof r&&(r=n,n=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error("Expected the enhancer to be a function.");return r(e)(t,n)}if("function"!==typeof t)throw new Error("Expected the reducer to be a function.");var o=t,a=n,s=[],u=s,l=!1;function c(){u===s&&(u=s.slice())}function f(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function p(e){if("function"!==typeof e)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return c(),u.push(e),function(){if(t){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,c();var n=u.indexOf(e);u.splice(n,1)}}}function d(e){if(!Li(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,a=o(a,e)}finally{l=!1}for(var t=s=u,n=0;n<t.length;n++){(0,t[n])()}return e}return d({type:Ri.INIT}),(i={dispatch:d,subscribe:p,getState:f,replaceReducer:function(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,d({type:Ri.REPLACE})}})[Ni.A]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[Ni.A]=function(){return this},e},i}(yo,(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||zi)(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ui(e,t,n[t])}))}return e}({},n,{dispatch:r=zi.apply(void 0,o)(n.dispatch)})}}}(...Zi)));(0,Bi.Ay)(ko);ji.createRoot(document.getElementById("root")).render((0,k.jsx)(bo,{children:(0,k.jsx)(Mi.Kq,{store:ko,children:(0,k.jsx)(Bi.F0,{userManager:Bi.NU,store:ko,children:(0,k.jsx)(Y,{})})})}))},63114:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(10936);const i=e=>{let{method:t="GET",endpoint:n,types:i,data:o={},...a}=e;return{[r.oE]:{method:t,endpoint:n,types:i,data:o,...a}}}},10936:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>f,Aq:()=>j,BC:()=>C,Bj:()=>Q,Bv:()=>b,D9:()=>k,Dm:()=>te,Ez:()=>H,FK:()=>de,Fn:()=>U,Gp:()=>ne,If:()=>R,L3:()=>h,LY:()=>pe,Lv:()=>A,MF:()=>E,N1:()=>l,Nb:()=>K,OF:()=>T,OZ:()=>fe,Oz:()=>q,QR:()=>G,Su:()=>c,TA:()=>i,TU:()=>ce,Tl:()=>B,U6:()=>ae,VJ:()=>re,Vj:()=>I,Wf:()=>ee,Wz:()=>w,XB:()=>V,_w:()=>y,aJ:()=>m,b3:()=>W,cp:()=>d,d$:()=>J,dM:()=>S,dw:()=>le,gT:()=>F,gq:()=>a,i6:()=>M,jj:()=>v,jm:()=>Y,jv:()=>oe,kE:()=>$,kv:()=>O,lO:()=>o,mB:()=>x,nt:()=>p,o0:()=>P,oE:()=>s,ob:()=>ue,op:()=>_,pf:()=>X,po:()=>N,qD:()=>Z,qQ:()=>z,qi:()=>r,s:()=>D,uS:()=>u,ul:()=>se,vj:()=>ie,wD:()=>g,xX:()=>L});const r="SET_PROJECT_STEP",i="INIT_QUIZ_ATTEMPT",o="ADD_ANSWER_TO_CURRENT_ATTEMPT",a="SET_CURRENT_QUESTION",s="CALL_API",u="LOAD_FILE",l="FETCH_COLLECTIONS_REQUEST",c="RECEIVE_COLLECTIONS",f="RECEIVE_COLLECTIONS_ERROR",p="FETCH_PATHWAYS_REQUEST",d="RECEIVE_PATHWAYS",h="RECEIVE_PATHWAYS_ERROR",g="FETCH_PROJECTS_REQUEST",v="RECEIVE_PROJECTS",y="RECEIVE_PROJECTS_ERROR",m="FETCH_FAVOURITES_REQUEST",b="RECEIVE_FAVOURITES",w="RECEIVE_FAVOURITES_ERROR",_="FETCH_FEATURED_REQUEST",S="RECEIVE_FEATURED",E="RECEIVE_FEATURED_ERROR",x="SEARCH_PROJECTS_REQUEST",T="SEARCH_PROJECTS_RESPONSE",k="SEARCH_PROJECTS_ERROR",C="FETCH_PROGRESS_REQUEST",O="RECEIVE_PROGRESS",A="RECEIVE_PROGRESS_ERROR",P="FETCH_COLLECTION_REQUEST",I="RECEIVE_COLLECTION",j="RECEIVE_COLLECTION_ERROR",M="FETCH_EXERCISE_REQUEST",N="RECEIVE_EXERCISE",F="RECEIVE_EXERCISE_ERROR",R="FETCH_PATHWAY_REQUEST",L="RECEIVE_PATHWAY",D="RECEIVE_PATHWAY_ERROR",U="FETCH_PROJECT_REQUEST",z="RECEIVE_PROJECT",B="RECEIVE_PROJECT_ERROR",H="CLEAR_BADGE_STATE",V="FETCH_BADGE_REQUEST",q="RECEIVE_ISSUED_BADGE",W="RECEIVE_BADGE_TEMPLATE",K="RECEIVE_ISSUED_BADGE_ERROR",G="RECEIVE_BADGE_TEMPLATE_ERROR",Y="FETCH_PROJECT_PROGRESS_REQUEST",$="RECEIVE_PROJECT_PROGRESS",J="RECEIVE_PROJECT_PROGRESS_ERROR",Q="FETCH_QUIZ_REQUEST",Z="RECEIVE_QUIZ",X="RECEIVE_QUIZ_ERROR",ee="SEND_FAVOURITES_REQUEST",te="SENT_FAVOURITES_OK",ne="SEND_DELETE_FAVOURITES_REQUEST",re="SENT_DELETE_FAVOURITES_OK",ie="SEND_FAVOURITES_ERROR",oe="SEND_PROGRESS_REQUEST",ae="SENT_PROGRESS_OK",se="SEND_PROGRESS_ERROR",ue="SEND_RECONCILE_USER_REQUEST",le="SENT_RECONCILE_USER_OK",ce="SEND_RECONCILE_USER_ERROR",fe="SEND_QUIZ_ANSWER_REQUEST",pe="SENT_QUIZ_ANSWER_OK",de="SEND_QUIZ_ANSWER_ERROR"},32605:(e,t,n)=>{"use strict";n.d(t,{CI:()=>h,u_:()=>d});var r=n(65043);function i(){return i=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},i.apply(this,arguments)}var o="https://www.googletagmanager.com",a=function(e){return{getDataLayerScript:function(){var t,n,r=document.createElement("script");return e.nonce&&r.setAttribute("nonce",e.nonce),r.innerHTML=(t=e.dataLayer,void 0===(n=e.dataLayerName)&&(n="dataLayer"),"window."+n+" = window."+n+" || [];"+(t?"window."+n+".push("+JSON.stringify(t)+")":"")),r},getNoScript:function(){var t=document.createElement("noscript");return t.innerHTML=function(e,t,n){void 0===n&&(n=o);var r="";return t&&(r="&gtm_auth="+t.gtm_auth+"&gtm_preview="+t.gtm_preview+"&gtm_cookies_win=x"),'<iframe src="'+n+"/ns.html?id="+e+r+'" height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>'}(e.id,e.environment,e.customDomain),t},getScript:function(){var t=document.createElement("script");return e.nonce&&t.setAttribute("nonce",e.nonce),t.innerHTML=function(e,t,n,r,i){void 0===r&&(r=o),void 0===i&&(i="gtm.js");var a="";return n&&(a='+"&gtm_auth='+n.gtm_auth+"&gtm_preview="+n.gtm_preview+'&gtm_cookies_win=x"'),"\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '"+r+"/"+i+"?id='+i+dl"+a+";f.parentNode.insertBefore(j,f);\n })(window,document,'script','"+e+"','"+t+"');\n "}(e.dataLayerName,e.id,e.environment,e.customDomain,e.customScriptName),t}}},s=function(e){var t=e.dataLayer,n=e.dataLayerName,r=e.environment,i=e.nonce,o=e.id,s=e.customDomain,u=e.customScriptName,l=a({dataLayer:t,dataLayerName:n,environment:r,nonce:i,id:o,customDomain:s,customScriptName:u}),c=l.getDataLayerScript(),f=l.getScript(),p=l.getNoScript();document.head.insertBefore(c,document.head.childNodes[0]),document.head.insertBefore(f,document.head.childNodes[1]),document.body.insertBefore(p,document.body.childNodes[0])},u=function(e){var t=e.dataLayerName,n=e.data;window[t]?window[t].push(n):console.warn("dataLayer "+t+" does not exist, has script be initialized")},l={dataLayer:void 0,dataLayerName:"dataLayer",environment:void 0,nonce:void 0,id:"",injectScript:!0},c=(0,r.createContext)(l),f=(0,r.createContext)(void 0);function p(e,t){return u({data:t,dataLayerName:null==e?void 0:e.dataLayerName}),e}function d(e){var t=e.state,n=e.children,o=(0,r.useReducer)(p,i({},l,t)),a=o[0],u=o[1];return(0,r.useEffect)((function(){if(t&&0!=t.injectScript){var e=i({},a,t);s(e)}}),[JSON.stringify(t)]),r.createElement(c.Provider,{value:a},r.createElement(f.Provider,{value:u},n))}function h(){var e=(0,r.useContext)(f);if(void 0===e)throw new Error("dispatchGTMEvent must be used within a GTMProvider");return e}},31387:(e,t,n)=>{"use strict";function r(){return r=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},r.apply(this,arguments)}var i;n.d(t,{AO:()=>f,Gh:()=>F,HS:()=>R,Oi:()=>s,Rr:()=>p,pX:()=>B,pb:()=>I,rc:()=>i,tH:()=>z,tW:()=>O,ue:()=>g,yD:()=>N,zR:()=>a}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const o="popstate";function a(e){return void 0===e&&(e={}),d((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return c("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:f(t)}),null,e)}function s(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function u(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function l(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?p(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function d(e,t,n,a){void 0===a&&(a={});let{window:u=document.defaultView,v5Compat:p=!1}=a,d=u.history,h=i.Pop,g=null,v=y();function y(){return(d.state||{idx:null}).idx}function m(){h=i.Pop;let e=y(),t=null==e?null:e-v;v=e,g&&g({action:h,location:w.location,delta:t})}function b(e){let t="null"!==u.location.origin?u.location.origin:u.location.href,n="string"===typeof e?e:f(e);return n=n.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,d.replaceState(r({},d.state,{idx:v}),""));let w={get action(){return h},get location(){return e(u,d)},listen(e){if(g)throw new Error("A history only accepts one active listener");return u.addEventListener(o,m),g=e,()=>{u.removeEventListener(o,m),g=null}},createHref:e=>t(u,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=i.Push;let r=c(w.location,e,t);n&&n(r,e),v=y()+1;let o=l(r,v),a=w.createHref(r);try{d.pushState(o,"",a)}catch(s){if(s instanceof DOMException&&"DataCloneError"===s.name)throw s;u.location.assign(a)}p&&g&&g({action:h,location:w.location,delta:1})},replace:function(e,t){h=i.Replace;let r=c(w.location,e,t);n&&n(r,e),v=y();let o=l(r,v),a=w.createHref(r);d.replaceState(o,"",a),p&&g&&g({action:h,location:w.location,delta:0})},go:e=>d.go(e)};return w}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function g(e,t,n){return void 0===n&&(n="/"),v(e,t,n,!1)}function v(e,t,n,r){let i=I(("string"===typeof t?p(t):t).pathname||"/",n);if(null==i)return null;let o=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let s=0;null==a&&s<o.length;++s){let e=P(i);a=C(o[s],e,r)}return a}function y(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(s(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let u=R([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),y(e.children,t,l,u)),(null!=e.path||e.index)&&t.push({path:u,score:k(u,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of m(e.path))i(e,t,r);else i(e,t)})),t}function m(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=m(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const b=/^:[\w-]+$/,w=3,_=2,S=1,E=10,x=-2,T=e=>"*"===e;function k(e,t){let n=e.split("/"),r=n.length;return n.some(T)&&(r+=x),t&&(r+=_),n.filter((e=>!T(e))).reduce(((e,t)=>e+(b.test(t)?w:""===t?S:E)),r)}function C(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],u=s===r.length-1,l="/"===o?t:t.slice(o.length)||"/",c=A({path:e.relativePath,caseSensitive:e.caseSensitive,end:u},l),f=e.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=A({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},l)),!c)return null;Object.assign(i,c.params),a.push({params:i,pathname:R([o,c.pathname]),pathnameBase:L(R([o,c.pathnameBase])),route:f}),"/"!==c.pathnameBase&&(o=R([o,c.pathnameBase]))}return a}function O(e,t){void 0===t&&(t={});let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(u(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",i=e=>null==e?"":"string"===typeof e?e:String(e);return r+n.split(/\/+/).map(((e,n,r)=>{if(n===r.length-1&&"*"===e){return i(t["*"])}const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,n]=o;let r=t[e];return s("?"===n||null!=r,'Missing ":'+e+'" param'),i(r)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function A(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);u("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const u=s[n];return e[r]=i&&!u?void 0:(u||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function P(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function j(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function M(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function N(e,t){let n=M(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function F(e,t,n,i){let o;void 0===i&&(i=!1),"string"===typeof e?o=p(e):(o=r({},e),s(!o.pathname||!o.pathname.includes("?"),j("?","pathname","search",o)),s(!o.pathname||!o.pathname.includes("#"),j("#","pathname","hash",o)),s(!o.search||!o.search.includes("#"),j("#","search","hash",o)));let a,u=""===e||""===o.pathname,l=u?"/":o.pathname;if(null==l)a=n;else{let e=t.length-1;if(!i&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?p(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:D(r),hash:U(i)}}(o,a),f=l&&"/"!==l&&l.endsWith("/"),d=(u||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!d||(c.pathname+="/"),c}const R=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",U=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class z extends Error{}function B(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const H=["post","put","patch","delete"],V=(new Set(H),["get",...H]);new Set(V),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},39814:(e,t,n)=>{"use strict";function r(e){o.length||(i(),!0),o[o.length]=e}e.exports=r;var i,o=[],a=0;function s(){for(;a<o.length;){var e=a;if(a+=1,o[e].call(),a>1024){for(var t=0,n=o.length-a;t<n;t++)o[t]=o[t+a];o.length-=a,a=0}}o.length=0,a=0,!1}var u="undefined"!==typeof n.g?n.g:self,l=u.MutationObserver||u.WebKitMutationObserver;function c(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}i="function"===typeof l?function(e){var t=1,n=new l(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(s):c(s),r.requestFlush=i,r.makeRequestCallFromTimer=c},12028:(e,t,n)=>{"use strict";var r=n(60002),i=n(61712),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},61712:(e,t,n)=>{"use strict";var r=n(63864),i=n(60002),o=n(75438),a=n(54902),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(u,s),c=n(82090),f=i("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=l(r,u,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var p=function(){return l(r,s,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},64600:(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)&&n.length){var a=i.apply(null,n);a&&e.push(a)}else if("object"===o)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},15114:(e,t)=>{"use strict";t.q=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var r={},i=t||{},a=e.split(";"),s=i.decode||n,u=0;u<a.length;u++){var l=a[u],c=l.indexOf("=");if(!(c<0)){var f=l.substring(0,c).trim();if(void 0==r[f]){var p=l.substring(c+1,l.length).trim();'"'===p[0]&&(p=p.slice(1,-1)),r[f]=o(p,s)}}}return r},t.l=function(e,t,n){var o=n||{},a=o.encode||r;if("function"!==typeof a)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var s=a(t);if(s&&!i.test(s))throw new TypeError("argument val is invalid");var u=e+"="+s;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(l)}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");u+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");u+="; Path="+o.path}if(o.expires){if("function"!==typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");u+="; Expires="+o.expires.toUTCString()}o.httpOnly&&(u+="; HttpOnly");o.secure&&(u+="; Secure");if(o.sameSite){switch("string"===typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var n=decodeURIComponent,r=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function o(e,t){try{return t(e)}catch(n){return e}}},85393:(e,t,n)=>{n(21032),n(55158),n(42678),n(15775),n(85290),n(83978),n(74274),n(63793),n(71682),n(21580),n(34282),n(80371),n(52588),n(82443),n(7776),n(73229),n(10039),n(24343),n(97277),n(53616),n(32994),n(27892),n(89173).Array},89410:(e,t,n)=>{n(9087),n(21032),n(14043),n(38237),n(89173).Map},84312:(e,t,n)=>{n(9087),n(21032),n(14043),n(81115),n(89173).Set},68634:(e,t,n)=>{n(73751),n(9087),n(89173).Symbol},71450:(e,t,n)=>{n(6546),n(10267),n(76861),n(89173).Array},81556:(e,t,n)=>{n(31449),n(89173).Object.values},37652:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},60599:(e,t,n)=>{var r=n(63759)("unscopables"),i=Array.prototype;void 0==i[r]&&n(12730)(i,r,{}),e.exports=function(e){i[r][e]=!0}},45797:e=>{e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},30853:(e,t,n)=>{var r=n(36040);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},44111:(e,t,n)=>{"use strict";var r=n(68027),i=n(28704),o=n(58116);e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),u=i(t,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:i(l,a))-u,a-s),f=1;for(u<s&&s<u+c&&(f=-1,u+=c-1,s+=c-1);c-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},72063:(e,t,n)=>{"use strict";var r=n(68027),i=n(28704),o=n(58116);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);l>s;)t[s++]=e;return t}},63435:(e,t,n)=>{var r=n(25586),i=n(58116),o=n(28704);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},9874:(e,t,n)=>{var r=n(57621),i=n(12372),o=n(68027),a=n(58116),s=n(9911);e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,c=4==e,f=6==e,p=5==e||f,d=t||s;return function(t,s,h){for(var g,v,y=o(t),m=i(y),b=r(s,h,3),w=a(m.length),_=0,S=n?d(t,w):u?d(t,0):void 0;w>_;_++)if((p||_ in m)&&(v=b(g=m[_],_,y),e))if(n)S[_]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:S.push(g)}else if(c)return!1;return f?-1:l||c?c:S}}},93252:(e,t,n)=>{var r=n(37652),i=n(68027),o=n(12372),a=n(58116);e.exports=function(e,t,n,s,u){r(t);var l=i(e),c=o(l),f=a(l.length),p=u?f-1:0,d=u?-1:1;if(n<2)for(;;){if(p in c){s=c[p],p+=d;break}if(p+=d,u?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:f>p;p+=d)p in c&&(s=t(s,c[p],p,l));return s}},28295:(e,t,n)=>{var r=n(36040),i=n(27154),o=n(63759)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},9911:(e,t,n)=>{var r=n(28295);e.exports=function(e,t){return new(r(e))(t)}},58097:(e,t,n)=>{var r=n(3444),i=n(63759)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},3444:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},14556:(e,t,n)=>{"use strict";var r=n(12718).f,i=n(72506),o=n(66254),a=n(57621),s=n(45797),u=n(15785),l=n(50966),c=n(45471),f=n(95971),p=n(73358),d=n(30387).fastKey,h=n(30289),g=p?"_s":"size",v=function(e,t){var n,r=d(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=r&&u(r,n,e[l],e)}));return o(c.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=h(this,t),r=v(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(h(this,t),e)}}),p&&r(c.prototype,"size",{get:function(){return h(this,t)[g]}}),c},def:function(e,t,n){var r,i,o=v(e,t);return o?o.v=n:(e._l=o={i:i=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[g]++,"F"!==i&&(e._i[i]=o)),e},getEntry:v,setStrong:function(e,t,n){l(e,t,(function(e,n){this._t=h(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?c(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,c(1))}),n?"entries":"values",!n,!0),f(t)}}},13750:(e,t,n)=>{"use strict";var r=n(76101),i=n(67060),o=n(88972),a=n(66254),s=n(30387),u=n(15785),l=n(45797),c=n(36040),f=n(83881),p=n(85214),d=n(35973),h=n(14589);e.exports=function(e,t,n,g,v,y){var m=r[e],b=m,w=v?"set":"add",_=b&&b.prototype,S={},E=function(e){var t=_[e];o(_,e,"delete"==e||"has"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(y||_.forEach&&!f((function(){(new b).entries().next()})))){var x=new b,T=x[w](y?{}:-0,1)!=x,k=f((function(){x.has(1)})),C=p((function(e){new b(e)})),O=!y&&f((function(){for(var e=new b,t=5;t--;)e[w](t,t);return!e.has(-0)}));C||((b=t((function(t,n){l(t,b,e);var r=h(new m,t,b);return void 0!=n&&u(n,v,r[w],r),r}))).prototype=_,_.constructor=b),(k||O)&&(E("delete"),E("has"),v&&E("get")),(O||T)&&E(w),y&&_.clear&&delete _.clear}else b=g.getConstructor(t,e,v,w),a(b.prototype,n),s.NEED=!0;return d(b,e),S[e]=b,i(i.G+i.W+i.F*(b!=m),S),y||g.setStrong(b,e,v),b}},89173:e=>{var t=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=t)},25534:(e,t,n)=>{"use strict";var r=n(12718),i=n(61529);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},57621:(e,t,n)=>{var r=n(37652);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},49649:e=>{e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},73358:(e,t,n)=>{e.exports=!n(83881)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},81101:(e,t,n)=>{var r=n(36040),i=n(76101).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},67573:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},44208:(e,t,n)=>{var r=n(92426),i=n(35421),o=n(44786);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},67060:(e,t,n)=>{var r=n(76101),i=n(89173),o=n(12730),a=n(88972),s=n(57621),u="prototype",l=function(e,t,n){var c,f,p,d,h=e&l.F,g=e&l.G,v=e&l.S,y=e&l.P,m=e&l.B,b=g?r:v?r[t]||(r[t]={}):(r[t]||{})[u],w=g?i:i[t]||(i[t]={}),_=w[u]||(w[u]={});for(c in g&&(n=t),n)p=((f=!h&&b&&void 0!==b[c])?b:n)[c],d=m&&f?s(p,r):y&&"function"==typeof p?s(Function.call,p):p,b&&a(b,c,p,e&l.U),w[c]!=p&&o(w,c,d),y&&_[c]!=p&&(_[c]=p)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},83881:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},42545:(e,t,n)=>{"use strict";var r=n(27154),i=n(36040),o=n(58116),a=n(57621),s=n(63759)("isConcatSpreadable");e.exports=function e(t,n,u,l,c,f,p,d){for(var h,g,v=c,y=0,m=!!p&&a(p,d,3);y<l;){if(y in u){if(h=m?m(u[y],y,n):u[y],g=!1,i(h)&&(g=void 0!==(g=h[s])?!!g:r(h)),g&&f>0)v=e(t,n,h,o(h.length),v,f-1)-1;else{if(v>=9007199254740991)throw TypeError();t[v]=h}v++}y++}return v}},15785:(e,t,n)=>{var r=n(57621),i=n(63921),o=n(38109),a=n(30853),s=n(58116),u=n(67011),l={},c={},f=e.exports=function(e,t,n,f,p){var d,h,g,v,y=p?function(){return e}:u(e),m=r(n,f,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(d=s(e.length);d>b;b++)if((v=t?m(a(h=e[b])[0],h[1]):m(e[b]))===l||v===c)return v}else for(g=y.call(e);!(h=g.next()).done;)if((v=i(g,m,h.value,t))===l||v===c)return v};f.BREAK=l,f.RETURN=c},43878:(e,t,n)=>{e.exports=n(13767)("native-function-to-string",Function.toString)},76101:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},40964:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},12730:(e,t,n)=>{var r=n(12718),i=n(61529);e.exports=n(73358)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},31371:(e,t,n)=>{var r=n(76101).document;e.exports=r&&r.documentElement},38871:(e,t,n)=>{e.exports=!n(73358)&&!n(83881)((function(){return 7!=Object.defineProperty(n(81101)("div"),"a",{get:function(){return 7}}).a}))},14589:(e,t,n)=>{var r=n(36040),i=n(95867).set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},12372:(e,t,n)=>{var r=n(3444);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},38109:(e,t,n)=>{var r=n(91271),i=n(63759)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},27154:(e,t,n)=>{var r=n(3444);e.exports=Array.isArray||function(e){return"Array"==r(e)}},36040:e=>{e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},63921:(e,t,n)=>{var r=n(30853);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e.return;throw void 0!==o&&r(o.call(e)),a}}},48265:(e,t,n)=>{"use strict";var r=n(72506),i=n(61529),o=n(35973),a={};n(12730)(a,n(63759)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},50966:(e,t,n)=>{"use strict";var r=n(47755),i=n(67060),o=n(88972),a=n(12730),s=n(91271),u=n(48265),l=n(35973),c=n(26928),f=n(63759)("iterator"),p=!([].keys&&"next"in[].keys()),d="keys",h="values",g=function(){return this};e.exports=function(e,t,n,v,y,m,b){u(n,t,v);var w,_,S,E=function(e){if(!p&&e in C)return C[e];switch(e){case d:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",T=y==h,k=!1,C=e.prototype,O=C[f]||C["@@iterator"]||y&&C[y],A=O||E(y),P=y?T?E("entries"):A:void 0,I="Array"==t&&C.entries||O;if(I&&(S=c(I.call(new e)))!==Object.prototype&&S.next&&(l(S,x,!0),r||"function"==typeof S[f]||a(S,f,g)),T&&O&&O.name!==h&&(k=!0,A=function(){return O.call(this)}),r&&!b||!p&&!k&&C[f]||a(C,f,A),s[t]=A,s[x]=g,y)if(w={values:T?A:E(h),keys:m?A:E(d),entries:P},b)for(_ in w)_ in C||o(C,_,w[_]);else i(i.P+i.F*(p||k),t,w);return w}},85214:(e,t,n)=>{var r=n(63759)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},45471:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},91271:e=>{e.exports={}},47755:e=>{e.exports=!1},30387:(e,t,n)=>{var r=n(49338)("meta"),i=n(36040),o=n(40964),a=n(12718).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(83881)((function(){return u(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return l&&f.NEED&&u(e)&&!o(e,r)&&c(e),e}}},72506:(e,t,n)=>{var r=n(30853),i=n(49349),o=n(67573),a=n(42993)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(81101)("iframe"),r=o.length;for(t.style.display="none",n(31371).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},12718:(e,t,n)=>{var r=n(30853),i=n(38871),o=n(56547),a=Object.defineProperty;t.f=n(73358)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},49349:(e,t,n)=>{var r=n(12718),i=n(30853),o=n(92426);e.exports=n(73358)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},2008:(e,t,n)=>{var r=n(44786),i=n(61529),o=n(25586),a=n(56547),s=n(40964),u=n(38871),l=Object.getOwnPropertyDescriptor;t.f=n(73358)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},53572:(e,t,n)=>{var r=n(25586),i=n(45658).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(t){return a.slice()}}(e):i(r(e))}},45658:(e,t,n)=>{var r=n(72630),i=n(67573).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},35421:(e,t)=>{t.f=Object.getOwnPropertySymbols},26928:(e,t,n)=>{var r=n(40964),i=n(68027),o=n(42993)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},72630:(e,t,n)=>{var r=n(40964),i=n(25586),o=n(63435)(!1),a=n(42993)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},92426:(e,t,n)=>{var r=n(72630),i=n(67573);e.exports=Object.keys||function(e){return r(e,i)}},44786:(e,t)=>{t.f={}.propertyIsEnumerable},91115:(e,t,n)=>{var r=n(73358),i=n(92426),o=n(25586),a=n(44786).f;e.exports=function(e){return function(t){for(var n,s=o(t),u=i(s),l=u.length,c=0,f=[];l>c;)n=u[c++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}}},61529:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},66254:(e,t,n)=>{var r=n(88972);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},88972:(e,t,n)=>{var r=n(76101),i=n(12730),o=n(40964),a=n(49338)("src"),s=n(43878),u="toString",l=(""+s).split(u);n(89173).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},95867:(e,t,n)=>{var r=n(36040),i=n(30853),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(57621)(Function.call,n(2008).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},95971:(e,t,n)=>{"use strict";var r=n(76101),i=n(12718),o=n(73358),a=n(63759)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},35973:(e,t,n)=>{var r=n(12718).f,i=n(40964),o=n(63759)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},42993:(e,t,n)=>{var r=n(13767)("keys"),i=n(49338);e.exports=function(e){return r[e]||(r[e]=i(e))}},13767:(e,t,n)=>{var r=n(89173),i=n(76101),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(47755)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},65417:(e,t,n)=>{"use strict";var r=n(83881);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},48009:(e,t,n)=>{var r=n(79500),i=n(49649);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},28704:(e,t,n)=>{var r=n(79500),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},79500:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},25586:(e,t,n)=>{var r=n(12372),i=n(49649);e.exports=function(e){return r(i(e))}},58116:(e,t,n)=>{var r=n(79500),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},68027:(e,t,n)=>{var r=n(49649);e.exports=function(e){return Object(r(e))}},56547:(e,t,n)=>{var r=n(36040);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},49338:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},30289:(e,t,n)=>{var r=n(36040);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},80835:(e,t,n)=>{var r=n(76101),i=n(89173),o=n(47755),a=n(13813),s=n(12718).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},13813:(e,t,n)=>{t.f=n(63759)},63759:(e,t,n)=>{var r=n(13767)("wks"),i=n(49338),o=n(76101).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},67011:(e,t,n)=>{var r=n(58097),i=n(63759)("iterator"),o=n(91271);e.exports=n(89173).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},10039:(e,t,n)=>{var r=n(67060);r(r.P,"Array",{copyWithin:n(44111)}),n(60599)("copyWithin")},80371:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(4);r(r.P+r.F*!n(65417)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},24343:(e,t,n)=>{var r=n(67060);r(r.P,"Array",{fill:n(72063)}),n(60599)("fill")},21580:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(2);r(r.P+r.F*!n(65417)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},53616:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(60599)(o)},97277:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(60599)(o)},63793:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(0),o=n(65417)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},42678:(e,t,n)=>{"use strict";var r=n(57621),i=n(67060),o=n(68027),a=n(63921),s=n(38109),u=n(58116),l=n(25534),c=n(67011);i(i.S+i.F*!n(85214)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,p=o(e),d="function"==typeof this?this:Array,h=arguments.length,g=h>1?arguments[1]:void 0,v=void 0!==g,y=0,m=c(p);if(v&&(g=r(g,h>2?arguments[2]:void 0,2)),void 0==m||d==Array&&s(m))for(n=new d(t=u(p.length));t>y;y++)l(n,y,v?g(p[y],y):p[y]);else for(f=m.call(p),n=new d;!(i=f.next()).done;y++)l(n,y,v?a(f,g,[i.value,y],!0):i.value);return n.length=y,n}})},7776:(e,t,n)=>{"use strict";var r=n(67060),i=n(63435)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(65417)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},55158:(e,t,n)=>{var r=n(67060);r(r.S,"Array",{isArray:n(27154)})},27892:(e,t,n)=>{"use strict";var r=n(60599),i=n(45471),o=n(91271),a=n(25586);e.exports=n(50966)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},85290:(e,t,n)=>{"use strict";var r=n(67060),i=n(25586),o=[].join;r(r.P+r.F*(n(12372)!=Object||!n(65417)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},73229:(e,t,n)=>{"use strict";var r=n(67060),i=n(25586),o=n(79500),a=n(58116),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(65417)(s)),"Array",{lastIndexOf:function(e){if(u)return s.apply(this,arguments)||0;var t=i(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},71682:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(1);r(r.P+r.F*!n(65417)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},15775:(e,t,n)=>{"use strict";var r=n(67060),i=n(25534);r(r.S+r.F*n(83881)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},82443:(e,t,n)=>{"use strict";var r=n(67060),i=n(93252);r(r.P+r.F*!n(65417)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},52588:(e,t,n)=>{"use strict";var r=n(67060),i=n(93252);r(r.P+r.F*!n(65417)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},83978:(e,t,n)=>{"use strict";var r=n(67060),i=n(31371),o=n(3444),a=n(28704),s=n(58116),u=[].slice;r(r.P+r.F*n(83881)((function(){i&&u.call(i)})),"Array",{slice:function(e,t){var n=s(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return u.call(this,e,t);for(var i=a(e,n),l=a(t,n),c=s(l-i),f=new Array(c),p=0;p<c;p++)f[p]="String"==r?this.charAt(i+p):this[i+p];return f}})},34282:(e,t,n)=>{"use strict";var r=n(67060),i=n(9874)(3);r(r.P+r.F*!n(65417)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},74274:(e,t,n)=>{"use strict";var r=n(67060),i=n(37652),o=n(68027),a=n(83881),s=[].sort,u=[1,2,3];r(r.P+r.F*(a((function(){u.sort(void 0)}))||!a((function(){u.sort(null)}))||!n(65417)(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},32994:(e,t,n)=>{n(95971)("Array")},38237:(e,t,n)=>{"use strict";var r=n(14556),i=n(30289),o="Map";e.exports=n(13750)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},9087:(e,t,n)=>{"use strict";var r=n(58097),i={};i[n(63759)("toStringTag")]="z",i+""!="[object z]"&&n(88972)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},81115:(e,t,n)=>{"use strict";var r=n(14556),i=n(30289);e.exports=n(13750)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},21032:(e,t,n)=>{"use strict";var r=n(48009)(!0);n(50966)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},73751:(e,t,n)=>{"use strict";var r=n(76101),i=n(40964),o=n(73358),a=n(67060),s=n(88972),u=n(30387).KEY,l=n(83881),c=n(13767),f=n(35973),p=n(49338),d=n(63759),h=n(13813),g=n(80835),v=n(44208),y=n(27154),m=n(30853),b=n(36040),w=n(68027),_=n(25586),S=n(56547),E=n(61529),x=n(72506),T=n(53572),k=n(2008),C=n(35421),O=n(12718),A=n(92426),P=k.f,I=O.f,j=T.f,M=r.Symbol,N=r.JSON,F=N&&N.stringify,R="prototype",L=d("_hidden"),D=d("toPrimitive"),U={}.propertyIsEnumerable,z=c("symbol-registry"),B=c("symbols"),H=c("op-symbols"),V=Object[R],q="function"==typeof M&&!!C.f,W=r.QObject,K=!W||!W[R]||!W[R].findChild,G=o&&l((function(){return 7!=x(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=P(V,t);r&&delete V[t],I(e,t,n),r&&e!==V&&I(V,t,r)}:I,Y=function(e){var t=B[e]=x(M[R]);return t._k=e,t},$=q&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},J=function(e,t,n){return e===V&&J(H,t,n),m(e),t=S(t,!0),m(n),i(B,t)?(n.enumerable?(i(e,L)&&e[L][t]&&(e[L][t]=!1),n=x(n,{enumerable:E(0,!1)})):(i(e,L)||I(e,L,E(1,{})),e[L][t]=!0),G(e,t,n)):I(e,t,n)},Q=function(e,t){m(e);for(var n,r=v(t=_(t)),i=0,o=r.length;o>i;)J(e,n=r[i++],t[n]);return e},Z=function(e){var t=U.call(this,e=S(e,!0));return!(this===V&&i(B,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,L)&&this[L][e])||t)},X=function(e,t){if(e=_(e),t=S(t,!0),e!==V||!i(B,t)||i(H,t)){var n=P(e,t);return!n||!i(B,t)||i(e,L)&&e[L][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=j(_(e)),r=[],o=0;n.length>o;)i(B,t=n[o++])||t==L||t==u||r.push(t);return r},te=function(e){for(var t,n=e===V,r=j(n?H:_(e)),o=[],a=0;r.length>a;)!i(B,t=r[a++])||n&&!i(V,t)||o.push(B[t]);return o};q||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===V&&t.call(H,n),i(this,L)&&i(this[L],e)&&(this[L][e]=!1),G(this,e,E(1,n))};return o&&K&&G(V,e,{configurable:!0,set:t}),Y(e)})[R],"toString",(function(){return this._k})),k.f=X,O.f=J,n(45658).f=T.f=ee,n(44786).f=Z,C.f=te,o&&!n(47755)&&s(V,"propertyIsEnumerable",Z,!0),h.f=function(e){return Y(d(e))}),a(a.G+a.W+a.F*!q,{Symbol:M});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)d(ne[re++]);for(var ie=A(d.store),oe=0;ie.length>oe;)g(ie[oe++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(z,e+="")?z[e]:z[e]=M(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){K=!0},useSimple:function(){K=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?x(e):Q(x(e),t)},defineProperty:J,defineProperties:Q,getOwnPropertyDescriptor:X,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=l((function(){C.f(1)}));a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return C.f(w(e))}}),N&&a(a.S+a.F*(!q||l((function(){var e=M();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!$(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,F.apply(N,r)}}),M[R][D]||n(12730)(M[R],D,M[R].valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},10267:(e,t,n)=>{"use strict";var r=n(67060),i=n(42545),o=n(68027),a=n(58116),s=n(37652),u=n(9911);r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return s(e),t=a(r.length),n=u(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n(60599)("flatMap")},76861:(e,t,n)=>{"use strict";var r=n(67060),i=n(42545),o=n(68027),a=n(58116),s=n(79500),u=n(9911);r(r.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=a(t.length),r=u(t,0);return i(r,t,t,n,0,void 0===e?1:s(e)),r}}),n(60599)("flatten")},6546:(e,t,n)=>{"use strict";var r=n(67060),i=n(63435)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(60599)("includes")},31449:(e,t,n)=>{var r=n(67060),i=n(91115)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},14043:(e,t,n)=>{for(var r=n(27892),i=n(92426),o=n(88972),a=n(76101),s=n(12730),u=n(91271),l=n(63759),c=l("iterator"),f=l("toStringTag"),p=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(d),g=0;g<h.length;g++){var v,y=h[g],m=d[y],b=a[y],w=b&&b.prototype;if(w&&(w[c]||s(w,c,p),w[f]||s(w,f,y),u[y]=p,m))for(v in r)w[v]||o(w,v,r[v],!0)}},74992:(e,t,n)=>{"use strict";var r=n(82090),i=n(62557),o=n(54902),a=n(95558);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new o("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===l&&f?f.configurable:!l,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===u&&f?f.writable:!u});else{if(!c&&(s||u||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},82090:(e,t,n)=>{"use strict";var r=n(60002)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(i){r=!1}e.exports=r},79820:e=>{"use strict";e.exports=EvalError},29304:e=>{"use strict";e.exports=Error},1725:e=>{"use strict";e.exports=RangeError},75077:e=>{"use strict";e.exports=ReferenceError},62557:e=>{"use strict";e.exports=SyntaxError},54902:e=>{"use strict";e.exports=TypeError},63094:e=>{"use strict";e.exports=URIError},17724:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=n(0,i.length-a.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,r(a,arguments));return Object(t)===t?t:this}return i.apply(e,r(a,arguments))})),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},63864:(e,t,n)=>{"use strict";var r=n(17724);e.exports=Function.prototype.bind||r},60002:(e,t,n)=>{"use strict";var r,i=n(29304),o=n(79820),a=n(1725),s=n(75077),u=n(62557),l=n(54902),c=n(63094),f=Function,p=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(t){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(F){d=null}var h=function(){throw new l},g=d?function(){try{return h}catch(e){try{return d(arguments,"callee").get}catch(t){return h}}}():h,v=n(72108)(),y=n(80951)(),m=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),b={},w="undefined"!==typeof Uint8Array&&m?m(Uint8Array):r,_={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":v&&m?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&m?m(m([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&v&&m?m((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&v&&m?m((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&m?m(""[Symbol.iterator]()):r,"%Symbol%":v?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":g,"%TypedArray%":w,"%TypeError%":l,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(m)try{null.error}catch(F){var S=m(m(F));_["%Error.prototype%"]=S}var E=function e(t){var n;if("%AsyncFunction%"===t)n=p("async function () {}");else if("%GeneratorFunction%"===t)n=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=p("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&m&&(n=m(i.prototype))}return _[t]=n,n},x={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(63864),k=n(34384),C=T.call(Function.call,Array.prototype.concat),O=T.call(Function.apply,Array.prototype.splice),A=T.call(Function.call,String.prototype.replace),P=T.call(Function.call,String.prototype.slice),I=T.call(Function.call,RegExp.prototype.exec),j=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,N=function(e,t){var n,r=e;if(k(x,r)&&(r="%"+(n=x[r])[0]+"%"),k(_,r)){var i=_[r];if(i===b&&(i=E(r)),"undefined"===typeof i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return A(e,j,(function(e,t,n,i){r[r.length]=n?A(i,M,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=N("%"+r+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(r=c[0],O(n,C([0,1],c)));for(var f=1,p=!0;f<n.length;f+=1){var h=n[f],g=P(h,0,1),v=P(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&p||(s=!0),k(_,o="%"+(r+="."+h)+"%"))a=_[o];else if(null!=a){if(!(h in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(d&&f+1>=n.length){var y=d(a,h);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[h]}else p=k(a,h),a=a[h];p&&!s&&(_[o]=a)}}return a}},95558:(e,t,n)=>{"use strict";var r=n(60002)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},12101:(e,t,n)=>{"use strict";var r=n(82090),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},80951:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},72108:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(99534);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},99534:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},34384:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(63864);e.exports=o.call(r,i)},80219:(e,t,n)=>{"use strict";var r=n(53763),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=d(n);i&&i!==h&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),g=u(n),v=0;v<a.length;++v){var y=a[v];if(!o[y]&&(!r||!r[y])&&(!g||!g[y])&&(!s||!s[y])){var m=p(n,y);try{l(t,y,m)}catch(b){}}}}return t}},54983:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case v:case g:case u:return e;default:return t}}case i:return t}}}function S(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||_(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===d||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===m||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},53763:(e,t,n)=>{"use strict";e.exports=n(54983)},21915:(e,t,n)=>{e.exports={parse:n(48244),stringify:n(86250)}},88017:(e,t,n)=>{var r=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,i=n(11844);e.exports=function(e){var t,n=0,o=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(r,(function(r){if("="===r)return o=!0,void n++;o?0===n?((i[r]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=r):(a.attrs[t]=r.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(a.attrs[t]=t),t=r),n++,o=!1})),a}},48244:(e,t,n)=>{var r=/(?:<!--[\S\s]*?-->|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,i=n(88017),o=Object.create?Object.create(null):{};function a(e,t,n,r,i){var o=t.indexOf("<",r),a=t.slice(r,-1===o?void 0:o);/^\s*$/.test(a)&&(a=" "),(!i&&o>-1&&n+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}e.exports=function(e,t){t||(t={}),t.components||(t.components=o);var n,s=[],u=-1,l=[],c={},f=!1;return e.replace(r,(function(r,o){if(f){if(r!=="</"+n.name+">")return;f=!1}var p,d="/"!==r.charAt(1),h=0===r.indexOf("\x3c!--"),g=o+r.length,v=e.charAt(g);d&&!h&&(u++,"tag"===(n=i(r)).type&&t.components[n.name]&&(n.type="component",f=!0),n.voidElement||f||!v||"<"===v||a(n.children,e,u,g,t.ignoreWhitespace),c[n.tagName]=n,0===u&&s.push(n),(p=l[u-1])&&p.children.push(n),l[u]=n),(h||!d||n.voidElement)&&(h||u--,!f&&"<"!==v&&v&&a(p=-1===u?s:l[u].children,e,u,g,t.ignoreWhitespace))})),!s.length&&e.length&&a(s,e,0,0,t.ignoreWhitespace),s}},86250:e=>{function t(e,n){switch(n.type){case"text":return e+n.content;case"tag":return e+="<"+n.name+(n.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(n.attrs):"")+(n.voidElement?"/>":">"),n.voidElement?e:e+n.children.reduce(t,"")+"</"+n.name+">"}}e.exports=function(e){return e.reduce((function(e,n){return e+t("",n)}),"")}},52511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t,n,r){var i=void 0;if(n){var o=new Date;o.setTime(o.getTime()+60*n*1e3),i="; expires="+o.toGMTString()}else i="";r=r?"domain="+r+";":"",document.cookie=e+"="+t+i+";"+r+"path=/"},r=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null};t.default={name:"cookie",lookup:function(e){var t=void 0;if(e.lookupCookie&&"undefined"!==typeof document){var n=r(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!==typeof document&&n(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}}},13838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"htmlTag",lookup:function(e){var t=void 0,n=e.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(t=n.getAttribute("lang")),t}}},15301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;try{n="undefined"!==window&&null!==window.localStorage;var r="i18next.translate.boo";window.localStorage.setItem(r,"foo"),window.localStorage.removeItem(r)}catch(i){n=!1}t.default={name:"localStorage",lookup:function(e){var t=void 0;if(e.lookupLocalStorage&&n){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&n&&window.localStorage.setItem(t.lookupLocalStorage,e)}}},16984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"navigator",lookup:function(e){var t=[];if("undefined"!==typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}}},93658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"path",lookup:function(e){var t=void 0;if("undefined"!==typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);n instanceof Array&&(t="number"===typeof e.lookupFromUrlIndex?n[e.lookupFromPathIndex].replace("/",""):n[0].replace("/",""))}return t}}},97572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"querystring",lookup:function(e){var t=void 0;if("undefined"!==typeof window)for(var n=window.location.search.substring(1).split("&"),r=0;r<n.length;r++){var i=n[r].indexOf("=");if(i>0)n[r].substring(0,i)===e.lookupQuerystring&&(t=n[r].substring(i+1))}return t}}},31659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"subdomain",lookup:function(e){var t=void 0;if("undefined"!==typeof window){var n=window.location.pathname.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"===typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}}},93193:(e,t,n)=>{"use strict";var r=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}}(),i=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(57444)),o=p(n(52511)),a=p(n(97572)),s=p(n(15301)),u=p(n(16984)),l=p(n(13838)),c=p(n(93658)),f=p(n(31659));function p(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return r(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=i.defaults(t,this.options||{},{order:["querystring","cookie","localStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.i18nOptions=n,this.addDetector(o.default),this.addDetector(a.default),this.addDetector(s.default),this.addDetector(u.default),this.addDetector(l.default),this.addDetector(c.default),this.addDetector(f.default)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"===typeof r&&(r=[r]),r&&(n=n.concat(r))}}));var r=void 0;if(n.forEach((function(e){if(!r){var n=t.services.languageUtils.formatLanguageCode(e);t.services.languageUtils.isWhitelisted(n)&&(r=n)}})),!r){var i=this.i18nOptions.fallbackLng;"string"===typeof i&&(i=[i]),i||(i=[]),r="[object Array]"===Object.prototype.toString.apply(i)?i[0]:i[0]||i.default&&i.default[0]}return r}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();d.type="languageDetector",t.default=d},57444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=function(e){return r.call(i.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},t.extend=function(e){return r.call(i.call(arguments,1),(function(t){if(t)for(var n in t)e[n]=t[n]})),e};var n=[],r=n.forEach,i=n.slice},48801:(e,t,n)=>{e.exports=n(93193).default},26287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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};function r(e,t){if(t&&"object"===("undefined"===typeof t?"undefined":n(t))){var r="",i=encodeURIComponent;for(var o in t)r+="&"+i(o)+"="+i(t[o]);if(!r)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+r.slice(1)}return e}t.default=function(e,t,i,o,a){o&&"object"===("undefined"===typeof o?"undefined":n(o))&&(a||(o._t=new Date),o=r("",o).slice(1)),t.queryStringParams&&(e=r(e,t.queryStringParams));try{var s;(s=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(o?"POST":"GET",e,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,o&&s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var u=t.customHeaders;if(u)for(var l in u)s.setRequestHeader(l,u[l]);s.onreadystatechange=function(){s.readyState>3&&i&&i(s.responseText,s)},s.send(o)}catch(c){console&&console.log(c)}}},67345:(e,t,n)=>{"use strict";var r,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=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(74396)),a=n(26287),s=(r=a)&&r.__esModule?r:{default:r};var u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init(t,n),this.type="backend"}return i(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=e,this.options=o.defaults(t,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:s.default})}},{key:"readMulti",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath(e,t));var i=this.services.interpolator.interpolate(r,{lng:e.join("+"),ns:t.join("+")});this.loadUrl(i,n)}},{key:"read",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath([e],[t]));var i=this.services.interpolator.interpolate(r,{lng:e,ns:t});this.loadUrl(i,n)}},{key:"loadUrl",value:function(e,t){var n=this;this.options.ajax(e,this.options,(function(r,i){if(i.status>=500&&i.status<600)return t("failed loading "+e,!0);if(i.status>=400&&i.status<500)return t("failed loading "+e,!1);var o=void 0,a=void 0;try{o=n.options.parse(r,e)}catch(s){a="failed parsing "+e+" to json"}if(a)return t(a,!1);t(null,o)}))}},{key:"create",value:function(e,t,n,r){var i=this;"string"===typeof e&&(e=[e]);var o={};o[n]=r||"",e.forEach((function(e){var n=i.services.interpolator.interpolate(i.options.addPath,{lng:e,ns:t});i.options.ajax(n,i.options,(function(e,t){}),o)}))}}]),e}();u.type="backend",t.default=u},74396:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=function(e){return r.call(i.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},t.extend=function(e){return r.call(i.call(arguments,1),(function(t){if(t)for(var n in t)e[n]=t[n]})),e};var n=[],r=n.forEach,i=n.slice},75641:(e,t,n)=>{e.exports=n(67345).default},81197:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>V});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};var i={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var n;console&&console[e]&&(n=console)[e].apply(n,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))}};const o=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init(t,n)}return e.prototype.init=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||i,this.options=t,this.debug=t.debug},e.prototype.setDebug=function(e){this.debug=e},e.prototype.log=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)},e.prototype.warn=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)},e.prototype.error=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")},e.prototype.deprecate=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)},e.prototype.forward=function(e,t,n,r){return r&&!this.debug?null:("string"===typeof e[0]&&(e[0]=""+n+this.prefix+" "+e[0]),this.logger[t](e))},e.prototype.create=function(t){return new e(this.logger,r({prefix:this.prefix+":"+t+":"},this.options))},e}());const a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.observers={}}return e.prototype.on=function(e,t){var n=this;e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}))},e.prototype.off=function(e,t){var n=this;this.observers[e]&&this.observers[e].forEach((function(){if(t){var r=n.observers[e].indexOf(t);r>-1&&n.observers[e].splice(r,1)}else delete n.observers[e]}))},e.prototype.emit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){var r;t.apply(t,(r=[e]).concat.apply(r,n))}))},e}();function s(e){return null==e?"":""+e}function u(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"===typeof e}for(var o="string"!==typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return i()?{}:{obj:e,k:r(o.shift())}}function l(e,t,n){var r=u(e,t,Object);r.obj[r.k]=n}function c(e,t){var n=u(e,t),r=n.obj,i=n.k;if(r)return r[i]}function f(e,t,n){for(var r in t)r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):f(e[r],t[r],n):e[r]=t[r];return e}function p(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function h(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(function(e){return d[e]})):e}var g=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};function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}const y=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));return i.data=n||{},i.options=r,i}return v(t,e),t.prototype.addNamespaces=function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)},t.prototype.removeNamespaces=function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)},t.prototype.getResource=function(e,t,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).keySeparator||this.options.keySeparator;void 0===r&&(r=".");var i=[e,t];return n&&"string"!==typeof n&&(i=i.concat(n)),n&&"string"===typeof n&&(i=i.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(i=e.split(".")),c(this.data,i)},t.prototype.addResource=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),l(this.data,a,r),i.silent||this.emit("added",e,t,n,r)},t.prototype.addResources=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"===typeof n[i]&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)},t.prototype.addResourceBundle=function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=c(this.data,a)||{};r?f(s,n,i):s=g({},s,n),l(this.data,a,s),o.silent||this.emit("added",e,t,n)},t.prototype.removeResourceBundle=function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)},t.prototype.hasResourceBundle=function(e,t){return void 0!==this.getResource(e,t)},t.prototype.getResourceBundle=function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?g({},this.getResource(e,t)):this.getResource(e,t)},t.prototype.toJSON=function(){return this.data},t}(a),m={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}};var b=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},w="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};function _(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}var S=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));return function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector"],n,i),i.options=r,i.logger=o.create("translator"),i}return _(t,e),t.prototype.changeLanguage=function(e){e&&(this.language=e)},t.prototype.exists=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res},t.prototype.extractFromKey=function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var r=t.keySeparator||this.options.keySeparator||".",i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}},t.prototype.translate=function(e,t){var n=this;if("object"!==("undefined"===typeof t?"undefined":w(t))&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),void 0===e||null===e||""===e)return"";"number"===typeof e&&(e=String(e)),"string"===typeof e&&(e=[e]);var r=t.keySeparator||this.options.keySeparator||".",i=this.extractFromKey(e[e.length-1],t),o=i.key,a=i.namespaces,s=a[a.length-1],u=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(l){var c=t.nsSeparator||this.options.nsSeparator;return s+c+o}return o}var f=this.resolve(e,t),p=f&&f.res,d=f&&f.usedKey||o,h=Object.prototype.toString.apply(p),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays;if(p&&("string"!==typeof p&&"boolean"!==typeof p&&"number"!==typeof p)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&(!g||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,p,t):"key '"+o+" ("+this.language+")' returned an object instead of string.";if(t.keySeparator||this.options.keySeparator){var v="[object Array]"===h?[]:{};for(var y in p)if(Object.prototype.hasOwnProperty.call(p,y)){var m=""+d+r+y;v[y]=this.translate(m,b({},t,{joinArrays:!1,ns:a})),v[y]===m&&(v[y]=p[y])}p=v}}else if(g&&"[object Array]"===h)(p=p.join(g))&&(p=this.extendTranslation(p,e,t));else{var _=!1,S=!1;this.isValidLookup(p)||void 0===t.defaultValue||(_=!0,p=t.defaultValue),this.isValidLookup(p)||(S=!0,p=o);var E=t.defaultValue&&t.defaultValue!==p&&this.options.updateMissing;if(S||_||E){this.logger.log(E?"updateKey":"missingKey",u,s,o,E?t.defaultValue:p);var x=[],T=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&T&&T[0])for(var k=0;k<T.length;k++)x.push(T[k]);else"all"===this.options.saveMissingTo?x=this.languageUtils.toResolveHierarchy(t.lng||this.language):x.push(t.lng||this.language);var C=function(e,r){n.options.missingKeyHandler?n.options.missingKeyHandler(e,s,r,E?t.defaultValue:p,E,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,s,r,E?t.defaultValue:p,E,t),n.emit("missingKey",e,s,r,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&t.count?x.forEach((function(e){n.pluralResolver.getPluralFormsOfKey(e,o).forEach((function(t){return C([e],t)}))})):C(x,o))}p=this.extendTranslation(p,e,t),S&&p===o&&this.options.appendNamespaceToMissingKey&&(p=s+":"+o),S&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p},t.prototype.extendTranslation=function(e,t,n){var r=this;n.interpolation&&this.interpolator.init(b({},n,{interpolation:b({},this.options.interpolation,n.interpolation)}));var i=n.replace&&"string"!==typeof n.replace?n.replace:n;this.options.interpolation.defaultVariables&&(i=b({},this.options.interpolation.defaultVariables,i)),e=this.interpolator.interpolate(e,i,n.lng||this.language),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){return r.translate.apply(r,arguments)}),n)),n.interpolation&&this.interpolator.reset();var o=n.postProcess||this.options.postProcess,a="string"===typeof o?[o]:o;return void 0!==e&&null!==e&&a&&a.length&&!1!==n.applyPostProcessor&&(e=m.handle(a,e,t,n,this)),e},t.prototype.resolve=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=void 0,i=void 0;return"string"===typeof e&&(e=[e]),e.forEach((function(e){if(!t.isValidLookup(r)){var o=t.extractFromKey(e,n),a=o.key;i=a;var s=o.namespaces;t.options.fallbackNS&&(s=s.concat(t.options.fallbackNS));var u=void 0!==n.count&&"string"!==typeof n.count,l=void 0!==n.context&&"string"===typeof n.context&&""!==n.context,c=n.lngs?n.lngs:t.languageUtils.toResolveHierarchy(n.lng||t.language);s.forEach((function(e){t.isValidLookup(r)||c.forEach((function(i){if(!t.isValidLookup(r)){var o=a,s=[o],c=void 0;u&&(c=t.pluralResolver.getSuffix(i,n.count)),u&&l&&s.push(o+c),l&&s.push(o+=""+t.options.contextSeparator+n.context),u&&s.push(o+=c);for(var f=void 0;f=s.pop();)t.isValidLookup(r)||(r=t.getResource(i,e,f,n))}}))}))}})),{res:r,usedKey:i}},t.prototype.isValidLookup=function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)},t.prototype.getResource=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.resourceStore.getResource(e,t,n,r)},t}(a);const E=S;function x(e){return e.charAt(0).toUpperCase()+e.slice(1)}const T=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=o.create("languageUtils")}return e.prototype.getScriptPartFromCode=function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))},e.prototype.getLanguagePartFromCode=function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])},e.prototype.formatLanguageCode=function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=x(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=x(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=x(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e},e.prototype.isWhitelisted=function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1},e.prototype.getFallbackCodes=function(e,t){if(!e)return[];if("string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]},e.prototype.toResolveHierarchy=function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isWhitelisted(e)?i.push(e):n.logger.warn("rejecting non-whitelisted language code: "+e))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"===typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i},e}();var k=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","he","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21}],C={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)}};const O=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.languageUtils=t,this.options=n,this.logger=o.create("pluralResolver"),this.rules=function(){var e={};return k.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:C[t.fc]}}))})),e}()}return e.prototype.addRule=function(e,t){this.rules[e]=t},e.prototype.getRule=function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]},e.prototype.needsPlural=function(e){var t=this.getRule(e);return t&&t.numbers.length>1},e.prototype.getPluralFormsOfKey=function(e,t){var n=this,r=[],i=this.getRule(e);return i?(i.numbers.forEach((function(i){var o=n.getSuffix(e,i);r.push(""+t+o)})),r):r},e.prototype.getSuffix=function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"===typeof o?"_plural_"+o.toString():a():"v2"===this.options.compatibilityJSON||2===r.numbers.length&&1===r.numbers[0]||2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: "+e),""},e}();var 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};const P=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.logger=o.create("interpolator"),this.init(t,!0)}return e.prototype.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments[1]&&(this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.escape=e.interpolation&&e.interpolation.escape||h),e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.prefix=t.prefix?p(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?p(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?p(t.nestingPrefix):t.nestingPrefixEscaped||p("$t("),this.nestingSuffix=t.nestingSuffix?p(t.nestingSuffix):t.nestingSuffixEscaped||p(")"),this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.resetRegExp()},e.prototype.reset=function(){this.options&&this.init(this.options)},e.prototype.resetRegExp=function(){var e=this.prefix+"(.+?)"+this.suffix;this.regexp=new RegExp(e,"g");var t=""+this.prefix+this.unescapePrefix+"(.+?)"+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(t,"g");var n=this.nestingPrefix+"(.+?)"+this.nestingSuffix;this.nestingRegexp=new RegExp(n,"g")},e.prototype.interpolate=function(e,t,n){var r=this,i=void 0,o=void 0,a=void 0;function u(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(r.formatSeparator)<0)return c(t,e);var i=e.split(r.formatSeparator),o=i.shift().trim(),a=i.join(r.formatSeparator).trim();return r.format(c(t,o),a,n)};for(this.resetRegExp(),a=0;(i=this.regexpUnescape.exec(e))&&(o=l(i[1].trim()),e=e.replace(i[0],o),this.regexpUnescape.lastIndex=0,!(++a>=this.maxReplaces)););for(a=0;i=this.regexp.exec(e);){if("string"!==typeof(o=l(i[1].trim()))&&(o=s(o)),!o)if("function"===typeof this.options.missingInterpolationHandler){var f=this.options.missingInterpolationHandler(e,i);o="string"===typeof f?f:""}else this.logger.warn("missed to pass in variable "+i[1]+" for interpolating "+e),o="";if(o=this.escapeValue?u(this.escape(o)):u(o),e=e.replace(i[0],o),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e},e.prototype.nest=function(e,t){var n=void 0,r=void 0,i=A({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});function o(e,t){if(e.indexOf(",")<0)return e;var n=e.split(",");e=n.shift();var r=n.join(",");r=(r=this.interpolate(r,i)).replace(/'/g,'"');try{i=JSON.parse(r),t&&(i=A({},t,i))}catch(o){this.logger.error("failed parsing options string in nesting for key "+e,o)}return e}for(i.applyPostProcessor=!1;n=this.nestingRegexp.exec(e);){if((r=t(o.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=s(r)),r||(this.logger.warn("missed to resolve "+n[1]+" for nesting "+e),r=""),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e},e}();var I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function M(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}const N=function(e){function t(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));return s.backend=n,s.store=r,s.languageUtils=i.languageUtils,s.options=a,s.logger=o.create("backendConnector"),s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(i,a.backend,a),s}return M(t,e),t.prototype.queueLoad=function(e,t,n){var r=this,i=[],o=[],a=[],s=[];return e.forEach((function(e){var n=!0;t.forEach((function(t){var a=e+"|"+t;r.store.hasResourceBundle(e,t)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?o.indexOf(a)<0&&o.push(a):(r.state[a]=1,n=!1,o.indexOf(a)<0&&o.push(a),i.indexOf(a)<0&&i.push(a),s.indexOf(t)<0&&s.push(t)))})),n||a.push(e)})),(i.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:n}),{toLoad:i,pending:o,toLoadLanguages:a,toLoadNamespaces:s}},t.prototype.loaded=function(e,t,n){var r=this,i=e.split("|"),o=j(i,2),a=o[0],s=o[1];t&&this.emit("failedLoading",a,s,t),n&&this.store.addResourceBundle(a,s,n),this.state[e]=t?-1:2,this.queue.forEach((function(n){!function(e,t,n,r){var i=u(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}(n.loaded,[a],s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(r.emit("loaded",n.loaded),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.queue=this.queue.filter((function(e){return!e.done}))},t.prototype.read=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=this,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=arguments[5];return e.length?this.backend[n](e,t,(function(s,u){s&&u&&r<5?setTimeout((function(){i.read.call(i,e,t,n,r+1,2*o,a)}),o):a(s,u)})):a(null,{})},t.prototype.load=function(e,t,n){var r=this;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var i=this.queueLoad(e,t,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach((function(e){r.loadOne(e)}))},t.prototype.reload=function(e,t){var n=this;this.backend||this.logger.warn("No backend was added via i18next.use. Will not load resources."),"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]),e.forEach((function(e){t.forEach((function(t){n.loadOne(e+"|"+t,"re")}))}))},t.prototype.loadOne=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=j(r,2),o=i[0],a=i[1];this.read(o,a,"read",null,null,(function(r,i){r&&t.logger.warn(n+"loading namespace "+a+" for language "+o+" failed",r),!r&&i&&t.logger.log(n+"loaded namespace "+a+" for language "+o,i),t.loaded(e,r,i)}))},t.prototype.saveMissing=function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,I({},o,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r)},t}(a);function F(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e}var 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},L=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};function D(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function U(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}}(e,t))}function z(){}var B=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=D(this,e.call(this));if(i.options=F(n),i.services={},i.logger=o,i.modules={external:[]},r&&!i.isInitialized&&!n.isClone){var a;if(!i.options.initImmediate)return a=i.init(n,r),D(i,a);setTimeout((function(){i.init(n,r)}),0)}return i}return U(t,e),t.prototype.init=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1];function r(e){return e?"function"===typeof e?new e:e:null}if("function"===typeof t&&(n=t,t={}),this.options=L({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};return e[1]&&(t.defaultValue=e[1]),e[2]&&(t.tDescription=e[2]),t},interpolation:{escapeValue:!0,format:function(e,t,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}},this.options,F(t)),this.format=this.options.interpolation.format,n||(n=z),!this.options.isClone){this.modules.logger?o.init(r(this.modules.logger),this.options):o.init(null,this.options);var i=new T(this.options);this.store=new y(this.options.resources,this.options);var a=this.services;a.logger=o,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new O(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new P(this.options),a.backendConnector=new N(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.translator=new E(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=function(){e.changeLanguage(e.options.lng,(function(t,r){e.isInitialized=!0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),n(t,r)}))};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),this},t.prototype.loadResources=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z;if(this.options.resources)t(null);else{if(this.language&&"cimode"===this.language.toLowerCase())return t();var n=[],r=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(e){n.indexOf(e)<0&&n.push(e)}))};if(this.language)r(this.language);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return r(e)}));this.options.preload&&this.options.preload.forEach((function(e){return r(e)})),this.services.backendConnector.load(n,this.options.ns,t)}},t.prototype.reloadResources=function(e,t){e||(e=this.languages),t||(t=this.options.ns),this.services.backendConnector.reload(e,t)},t.prototype.use=function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"postProcessor"===e.type&&m.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this},t.prototype.changeLanguage=function(e,t){var n=this,r=function(e){e&&(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.translator.language||n.translator.changeLanguage(e),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(e)),n.loadResources((function(r){!function(e,r){n.translator.changeLanguage(r),r&&(n.emit("languageChanged",r),n.logger.log("languageChanged",r)),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(r,e)}))};e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect())},t.prototype.getFixedT=function(e,t){var n=this,r=function e(t,r){for(var i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];var s=L({},r);return"object"!==("undefined"===typeof r?"undefined":R(r))&&(s=n.options.overloadTranslationOptionHandler([t,r].concat(o))),s.lng=s.lng||e.lng,s.lngs=s.lngs||e.lngs,s.ns=s.ns||e.ns,n.t(t,s)};return"string"===typeof e?r.lng=e:r.lngs=e,r.ns=t,r},t.prototype.t=function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)},t.prototype.exists=function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)},t.prototype.setDefaultNamespace=function(e){this.options.defaultNS=e},t.prototype.loadNamespaces=function(e,t){var n=this;if(!this.options.ns)return t&&t();"string"===typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources(t)},t.prototype.loadLanguages=function(e,t){"string"===typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter((function(e){return n.indexOf(e)<0}));if(!r.length)return t();this.options.preload=n.concat(r),this.loadResources(t)},t.prototype.dir=function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"},t.prototype.createInstance=function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments[1])},t.prototype.cloneInstance=function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,i=L({},this.options,n,{isClone:!0}),o=new t(i);return["store","services","language"].forEach((function(t){o[t]=e[t]})),o.translator=new E(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o},t}(a);const H=new B,V=H;H.changeLanguage.bind(H),H.cloneInstance.bind(H),H.createInstance.bind(H),H.dir.bind(H),H.exists.bind(H),H.getFixedT.bind(H),H.init.bind(H),H.loadLanguages.bind(H),H.loadNamespaces.bind(H),H.loadResources.bind(H),H.off.bind(H),H.on.bind(H),H.setDefaultNamespace.bind(H),H.t.bind(H),H.use.bind(H)},22740:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},53536:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=16,l=32,c=64,f=128,p=256,d=1/0,h=9007199254740991,g=NaN,v=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",l],["partialRight",c],["rearg",p]],m="[object Arguments]",b="[object Array]",w="[object Boolean]",_="[object Date]",S="[object Error]",E="[object Function]",x="[object GeneratorFunction]",T="[object Map]",k="[object Number]",C="[object Object]",O="[object Promise]",A="[object RegExp]",P="[object Set]",I="[object String]",j="[object Symbol]",M="[object WeakMap]",N="[object ArrayBuffer]",F="[object DataView]",R="[object Float32Array]",L="[object Float64Array]",D="[object Int8Array]",U="[object Int16Array]",z="[object Int32Array]",B="[object Uint8Array]",H="[object Uint8ClampedArray]",V="[object Uint16Array]",q="[object Uint32Array]",W=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,J=RegExp(Y.source),Q=RegExp($.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Te="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ie="['\u2019]",je="["+xe+"]",Me="["+Pe+"]",Ne="["+Te+"]",Fe="\\d+",Re="["+ke+"]",Le="["+Ce+"]",De="[^"+xe+Pe+Fe+ke+Ce+Oe+"]",Ue="\\ud83c[\\udffb-\\udfff]",ze="[^"+xe+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Oe+"]",qe="\\u200d",We="(?:"+Le+"|"+De+")",Ke="(?:"+Ve+"|"+De+")",Ge="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ye="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Ne+"|"+Ue+")"+"?",Je="["+Ae+"]?",Qe=Je+$e+("(?:"+qe+"(?:"+[ze,Be,He].join("|")+")"+Je+$e+")*"),Ze="(?:"+[Re,Be,He].join("|")+")"+Qe,Xe="(?:"+[ze+Ne+"?",Ne,Be,He,je].join("|")+")",et=RegExp(Ie,"g"),tt=RegExp(Ne,"g"),nt=RegExp(Ue+"(?="+Ue+")|"+Xe+Qe,"g"),rt=RegExp([Ve+"?"+Le+"+"+Ge+"(?="+[Me,Ve,"$"].join("|")+")",Ke+"+"+Ye+"(?="+[Me,Ve+We,"$"].join("|")+")",Ve+"?"+We+"+"+Ge,Ve+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fe,Ze].join("|"),"g"),it=RegExp("["+qe+xe+Te+Ae+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,ut={};ut[R]=ut[L]=ut[D]=ut[U]=ut[z]=ut[B]=ut[H]=ut[V]=ut[q]=!0,ut[m]=ut[b]=ut[N]=ut[w]=ut[F]=ut[_]=ut[S]=ut[E]=ut[T]=ut[k]=ut[C]=ut[A]=ut[P]=ut[I]=ut[M]=!1;var lt={};lt[m]=lt[b]=lt[N]=lt[F]=lt[w]=lt[_]=lt[R]=lt[L]=lt[D]=lt[U]=lt[z]=lt[T]=lt[k]=lt[C]=lt[A]=lt[P]=lt[I]=lt[j]=lt[B]=lt[H]=lt[V]=lt[q]=!0,lt[S]=lt[E]=lt[M]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,pt=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,gt=dt||ht||Function("return this")(),vt=t&&!t.nodeType&&t,yt=vt&&e&&!e.nodeType&&e,mt=yt&&yt.exports===vt,bt=mt&&dt.process,wt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),_t=wt&&wt.isArrayBuffer,St=wt&&wt.isDate,Et=wt&&wt.isMap,xt=wt&&wt.isRegExp,Tt=wt&&wt.isSet,kt=wt&&wt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function jt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Mt(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Nt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Ft(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Rt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Lt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Dt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Gt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ht(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Vt(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ht(e,Wt,n)}function qt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Wt(e){return e!==e}function Kt(e,t){var n=null==e?0:e.length;return n?Jt(e,t)/n:g}function Gt(e){return function(t){return null==t?i:t[e]}}function Yt(e){return function(t){return null==e?i:e[t]}}function $t(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Jt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,vn(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function en(e,t){return Ft(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var on=Yt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+ct[e]}function un(e){return it.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function fn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return un(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):zt(e)}function gn(e){return un(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function vn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var yn=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var mn=function e(t){var n=(t=null==t?gt:mn.defaults(gt.Object(),t,mn.pick(gt,at))).Array,r=t.Date,se=t.Error,xe=t.Function,Te=t.Math,ke=t.Object,Ce=t.RegExp,Oe=t.String,Ae=t.TypeError,Pe=n.prototype,Ie=xe.prototype,je=ke.prototype,Me=t["__core-js_shared__"],Ne=Ie.toString,Fe=je.hasOwnProperty,Re=0,Le=function(){var e=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),De=je.toString,Ue=Ne.call(ke),ze=gt._,Be=Ce("^"+Ne.call(Fe).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=mt?t.Buffer:i,Ve=t.Symbol,qe=t.Uint8Array,We=He?He.allocUnsafe:i,Ke=cn(ke.getPrototypeOf,ke),Ge=ke.create,Ye=je.propertyIsEnumerable,$e=Pe.splice,Je=Ve?Ve.isConcatSpreadable:i,Qe=Ve?Ve.iterator:i,Ze=Ve?Ve.toStringTag:i,Xe=function(){try{var e=fo(ke,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=r&&r.now!==gt.Date.now&&r.now,ct=t.setTimeout!==gt.setTimeout&&t.setTimeout,dt=Te.ceil,ht=Te.floor,vt=ke.getOwnPropertySymbols,yt=He?He.isBuffer:i,bt=t.isFinite,wt=Pe.join,zt=cn(ke.keys,ke),Yt=Te.max,bn=Te.min,wn=r.now,_n=t.parseInt,Sn=Te.random,En=Pe.reverse,xn=fo(t,"DataView"),Tn=fo(t,"Map"),kn=fo(t,"Promise"),Cn=fo(t,"Set"),On=fo(t,"WeakMap"),An=fo(ke,"create"),Pn=On&&new On,In={},jn=Do(xn),Mn=Do(Tn),Nn=Do(kn),Fn=Do(Cn),Rn=Do(On),Ln=Ve?Ve.prototype:i,Dn=Ln?Ln.valueOf:i,Un=Ln?Ln.toString:i;function zn(e){if(ts(e)&&!qa(e)&&!(e instanceof qn)){if(e instanceof Vn)return e;if(Fe.call(e,"__wrapped__"))return Uo(e)}return new Vn(e)}var Bn=function(){function e(){}return function(t){if(!es(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Hn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Wn(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])}}function Kn(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])}}function Gn(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])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Kn(e);this.size=t.size}function Jn(e,t){var n=qa(e),r=!n&&Va(e),i=!n&&!r&&Ya(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?Qt(e.length,Oe):[],u=s.length;for(var l in e)!t&&!Fe.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bo(l,u))||s.push(l);return s}function Qn(e){var t=e.length;return t?e[Yr(0,t-1)]:i}function Zn(e,t){return Fo(Ai(e),sr(t,0,e.length))}function Xn(e){return Fo(Ai(e))}function er(e,t,n){(n!==i&&!za(e[t],n)||n===i&&!(t in e))&&or(e,t,n)}function tr(e,t,n){var r=e[t];Fe.call(e,t)&&za(r,n)&&(n!==i||t in e)||or(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function rr(e,t,n,r){return pr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function ir(e,t){return e&&Pi(t,Is(t),e)}function or(e,t,n){"__proto__"==t&&Xe?Xe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,o=t.length,a=n(o),s=null==e;++r<o;)a[r]=s?i:ks(e,t[r]);return a}function sr(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ur(e,t,n,r,o,a){var s,u=1&t,l=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!es(e))return e;var f=qa(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Fe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Ai(e,s)}else{var p=go(e),d=p==E||p==x;if(Ya(e))return Ei(e,u);if(p==C||p==m||d&&!o){if(s=l||d?{}:yo(e),!u)return l?function(e,t){return Pi(e,ho(e),t)}(e,function(e,t){return e&&Pi(t,js(t),e)}(s,e)):function(e,t){return Pi(e,po(e),t)}(e,ir(s,e))}else{if(!lt[p])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case N:return xi(e);case w:case _:return new r(+e);case F:return function(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case L:case D:case U:case z:case B:case H:case V:case q:return Ti(e,n);case T:return new r;case k:case I:return new r(e);case A:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new r;case j:return i=e,Dn?ke(Dn.call(i)):{}}var i}(e,p,u)}}a||(a=new $n);var h=a.get(e);if(h)return h;a.set(e,s),as(e)?e.forEach((function(r){s.add(ur(r,t,n,r,e,a))})):ns(e)&&e.forEach((function(r,i){s.set(i,ur(r,t,n,i,e,a))}));var g=f?i:(c?l?io:ro:l?js:Is)(e);return At(g||e,(function(r,i){g&&(r=e[i=r]),tr(s,i,ur(r,t,n,i,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Ae(o);return Io((function(){e.apply(i,n)}),t)}function fr(e,t,n,r){var i=-1,o=Mt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=Ft(t,Xt(n))),r?(o=Nt,a=!1):t.length>=200&&(o=tn,a=!1,t=new Yn(t));e:for(;++i<s;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f===f){for(var p=l;p--;)if(t[p]===f)continue e;u.push(c)}else o(t,f,r)||u.push(c)}return u}zn.templateSettings={escape:Z,evaluate:X,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Hn.prototype,zn.prototype.constructor=zn,Vn.prototype=Bn(Hn.prototype),Vn.prototype.constructor=Vn,qn.prototype=Bn(Hn.prototype),qn.prototype.constructor=qn,Wn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return n===a?i:n}return Fe.call(t,e)?t[e]:i},Wn.prototype.has=function(e){var t=this.__data__;return An?t[e]!==i:Fe.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&t===i?a:t,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Kn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?i:t[n][1]},Kn.prototype.has=function(e){return nr(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Tn||Kn),string:new Wn}},Gn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return lo(this,e).get(e)},Gn.prototype.has=function(e){return lo(this,e).has(e)},Gn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Kn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var pr=Mi(wr),dr=Mi(_r,!0);function hr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s===s&&!us(s):n(s,u)))var u=s,l=a}return l}function vr(e,t){var n=[];return pr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=mo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):Rt(i,s):r||(i[i.length]=s)}return i}var mr=Ni(),br=Ni(!0);function wr(e,t){return e&&mr(e,t,Is)}function _r(e,t){return e&&br(e,t,Is)}function Sr(e,t){return jt(t,(function(t){return Qa(e[t])}))}function Er(e,t){for(var n=0,r=(t=bi(t,e)).length;null!=e&&n<r;)e=e[Lo(t[n++])];return n&&n==r?e:i}function xr(e,t,n){var r=t(e);return qa(e)?r:Rt(r,n(e))}function Tr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ze&&Ze in ke(e)?function(e){var t=Fe.call(e,Ze),n=e[Ze];try{e[Ze]=i;var r=!0}catch(a){}var o=De.call(e);r&&(t?e[Ze]=n:delete e[Ze]);return o}(e):function(e){return De.call(e)}(e)}function kr(e,t){return e>t}function Cr(e,t){return null!=e&&Fe.call(e,t)}function Or(e,t){return null!=e&&t in ke(e)}function Ar(e,t,r){for(var o=r?Nt:Mt,a=e[0].length,s=e.length,u=s,l=n(s),c=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Ft(p,Xt(t))),c=bn(p.length,c),l[u]=!r&&(t||a>=120&&p.length>=120)?new Yn(u&&p):i}p=e[0];var d=-1,h=l[0];e:for(;++d<a&&f.length<c;){var g=p[d],v=t?t(g):g;if(g=r||0!==g?g:0,!(h?tn(h,v):o(f,v,r))){for(u=s;--u;){var y=l[u];if(!(y?tn(y,v):o(e[u],v,r)))continue e}h&&h.push(v),f.push(g)}}return f}function Pr(e,t,n){var r=null==(e=Oo(e,t=bi(t,e)))?e:e[Lo(Jo(t))];return null==r?i:Ct(r,e,n)}function Ir(e){return ts(e)&&Tr(e)==m}function jr(e,t,n,r,o){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!==e&&t!==t:function(e,t,n,r,o,a){var s=qa(e),u=qa(t),l=s?b:go(e),c=u?b:go(t),f=(l=l==m?C:l)==C,p=(c=c==m?C:c)==C,d=l==c;if(d&&Ya(e)){if(!Ya(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new $n),s||ls(e)?to(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case F:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!o(new qe(e),new qe(t)));case w:case _:case k:return za(+e,+t);case S:return e.name==t.name&&e.message==t.message;case A:case I:return e==t+"";case T:var s=ln;case P:var u=1&r;if(s||(s=pn),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=to(s(e),s(t),r,i,o,a);return a.delete(e),c;case j:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,l,n,r,o,a);if(!(1&n)){var h=f&&Fe.call(e,"__wrapped__"),g=p&&Fe.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,y=g?t.value():t;return a||(a=new $n),o(v,y,n,r,a)}}if(!d)return!1;return a||(a=new $n),function(e,t,n,r,o,a){var s=1&n,u=ro(e),l=u.length,c=ro(t),f=c.length;if(l!=f&&!s)return!1;var p=l;for(;p--;){var d=u[p];if(!(s?d in t:Fe.call(t,d)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);var y=s;for(;++p<l;){var m=e[d=u[p]],b=t[d];if(r)var w=s?r(b,m,d,t,e,a):r(m,b,d,e,t,a);if(!(w===i?m===b||o(m,b,n,r,a):w)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var _=e.constructor,S=t.constructor;_==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof S&&S instanceof S||(v=!1)}return a.delete(e),a.delete(t),v}(e,t,n,r,o,a)}(e,t,n,r,jr,o))}function Mr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=ke(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var l=(u=n[o])[0],c=e[l],f=u[1];if(s&&u[2]){if(c===i&&!(l in e))return!1}else{var p=new $n;if(r)var d=r(c,f,l,e,t,p);if(!(d===i?jr(f,c,3,r,p):d))return!1}}return!0}function Nr(e){return!(!es(e)||(t=e,Le&&Le in t))&&(Qa(e)?Be:me).test(Do(e));var t}function Fr(e){return"function"==typeof e?e:null==e?ru:"object"==typeof e?qa(e)?Br(e[0],e[1]):zr(e):pu(e)}function Rr(e){if(!xo(e))return zt(e);var t=[];for(var n in ke(e))Fe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=xo(e),n=[];for(var r in e)("constructor"!=r||!t&&Fe.call(e,r))&&n.push(r);return n}function Dr(e,t){return e<t}function Ur(e,t){var r=-1,i=Ka(e)?n(e.length):[];return pr(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function zr(e){var t=co(e);return 1==t.length&&t[0][2]?ko(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Br(e,t){return _o(e)&&To(t)?ko(Lo(e),t):function(n){var r=ks(n,e);return r===i&&r===t?Cs(n,e):jr(t,r,3)}}function Hr(e,t,n,r,o){e!==t&&mr(t,(function(a,s){if(o||(o=new $n),es(a))!function(e,t,n,r,o,a,s){var u=Ao(e,n),l=Ao(t,n),c=s.get(l);if(c)return void er(e,n,c);var f=a?a(u,l,n+"",e,t,s):i,p=f===i;if(p){var d=qa(l),h=!d&&Ya(l),g=!d&&!h&&ls(l);f=l,d||h||g?qa(u)?f=u:Ga(u)?f=Ai(u):h?(p=!1,f=Ei(l,!0)):g?(p=!1,f=Ti(l,!0)):f=[]:is(l)||Va(l)?(f=u,Va(u)?f=ys(u):es(u)&&!Qa(u)||(f=yo(l))):p=!1}p&&(s.set(l,f),o(f,l,r,a,s),s.delete(l));er(e,n,f)}(e,t,s,n,Hr,r,o);else{var u=r?r(Ao(e,s),a,s+"",e,t,o):i;u===i&&(u=a),er(e,s,u)}}),js)}function Vr(e,t){var n=e.length;if(n)return bo(t+=t<0?n:0,n)?e[t]:i}function qr(e,t,n){t=t.length?Ft(t,(function(e){return qa(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[ru];var r=-1;t=Ft(t,Xt(uo()));var i=Ur(e,(function(e,n,i){var o=Ft(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=ki(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Er(e,a);n(s,a)&&Xr(o,bi(a,e),s)}return o}function Kr(e,t,n,r){var i=r?qt:Vt,o=-1,a=t.length,s=e;for(e===t&&(t=Ai(t)),n&&(s=Ft(e,Xt(n)));++o<a;)for(var u=0,l=t[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==e&&$e.call(s,u,1),$e.call(e,u,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;bo(i)?$e.call(e,i,1):fi(e,i)}}return e}function Yr(e,t){return e+ht(Sn()*(t-e+1))}function $r(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return jo(Co(e,t,ru),e+"")}function Qr(e){return Qn(zs(e))}function Zr(e,t){var n=zs(e);return Fo(n,sr(t,0,n.length))}function Xr(e,t,n,r){if(!es(e))return e;for(var o=-1,a=(t=bi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var l=Lo(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var f=u[l];(c=r?r(f,l,u):i)===i&&(c=es(f)?f:bo(t[o+1])?[]:{})}tr(u,l,c),u=u[l]}return e}var ei=Pn?function(e,t){return Pn.set(e,t),e}:ru,ti=Xe?function(e,t){return Xe(e,"toString",{configurable:!0,enumerable:!1,value:eu(t),writable:!0})}:ru;function ni(e){return Fo(zs(e))}function ri(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function ii(e,t){var n;return pr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function oi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ai(e,t,ru,n)}function ai(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,u=null===t,l=us(t),c=t===i;o<a;){var f=ht((o+a)/2),p=n(e[f]),d=p!==i,h=null===p,g=p===p,v=us(p);if(s)var y=r||g;else y=c?g&&(r||d):u?g&&d&&(r||!h):l?g&&d&&!h&&(r||!v):!h&&!v&&(r?p<=t:p<t);y?o=f+1:a=f}return bn(a,4294967294)}function si(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ui(e){return"number"==typeof e?e:us(e)?g:+e}function li(e){if("string"==typeof e)return e;if(qa(e))return Ft(e,li)+"";if(us(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ci(e,t,n){var r=-1,i=Mt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=Nt;else if(o>=200){var l=t?null:$i(e);if(l)return pn(l);a=!1,i=tn,u=new Yn}else u=t?[]:s;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(c)}else i(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s}function fi(e,t){return null==(e=Oo(e,t=bi(t,e)))||delete e[Lo(Jo(t))]}function pi(e,t,n,r){return Xr(e,t,n(Er(e,t)),r)}function di(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ri(e,r?0:o,r?o+1:i):ri(e,r?o+1:0,r?i:o)}function hi(e,t){var n=e;return n instanceof qn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function gi(e,t,r){var i=e.length;if(i<2)return i?ci(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=fr(a[o]||s,e[u],t,r));return ci(yr(a,1),t,r)}function vi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function yi(e){return Ga(e)?e:[]}function mi(e){return"function"==typeof e?e:ru}function bi(e,t){return qa(e)?e:_o(e,t)?[e]:Ro(ms(e))}var wi=Jr;function _i(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ri(e,t,n)}var Si=nt||function(e){return gt.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function xi(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Ti(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=us(e),s=t!==i,u=null===t,l=t===t,c=us(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}function Ci(e,t,r,i){for(var o=-1,a=e.length,s=r.length,u=-1,l=t.length,c=Yt(a-s,0),f=n(l+c),p=!i;++u<l;)f[u]=t[u];for(;++o<s;)(p||o<a)&&(f[r[o]]=e[o]);for(;c--;)f[u++]=e[o++];return f}function Oi(e,t,r,i){for(var o=-1,a=e.length,s=-1,u=r.length,l=-1,c=t.length,f=Yt(a-u,0),p=n(f+c),d=!i;++o<f;)p[o]=e[o];for(var h=o;++l<c;)p[h+l]=t[l];for(;++s<u;)(d||o<a)&&(p[h+r[s]]=e[o++]);return p}function Ai(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Pi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=r?r(n[u],e[u],u,n,e):i;l===i&&(l=e[u]),o?or(n,u,l):tr(n,u,l)}return n}function Ii(e,t){return function(n,r){var i=qa(n)?Ot:rr,o=t?t():{};return i(n,e,uo(r,2),o)}}function ji(e){return Jr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&wo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=ke(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Mi(e,t){return function(n,r){if(null==n)return n;if(!Ka(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=ke(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ni(e){return function(t,n,r){for(var i=-1,o=ke(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Fi(e){return function(t){var n=un(t=ms(t))?gn(t):i,r=n?n[0]:t.charAt(0),o=n?_i(n,1).join(""):t.slice(1);return r[e]()+o}}function Ri(e){return function(t){return Lt(Qs(Vs(t).replace(et,"")),e,"")}}function Li(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function Di(e){return function(t,n,r){var o=ke(t);if(!Ka(t)){var a=uo(n,3);t=Is(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Ui(e){return no((function(t){var n=t.length,r=n,a=Vn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ae(o);if(a&&!u&&"wrapper"==ao(s))var u=new Vn([],!0)}for(r=u?r:n;++r<n;){var l=ao(s=t[r]),c="wrapper"==l?oo(s):i;u=c&&So(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ao(c[0])].apply(u,c[3]):1==s.length&&So(s)?u[l]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qa(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function zi(e,t,r,o,a,s,u,l,c,p){var d=t&f,h=1&t,g=2&t,v=24&t,y=512&t,m=g?i:Li(e);return function f(){for(var b=arguments.length,w=n(b),_=b;_--;)w[_]=arguments[_];if(v)var S=so(f),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(o&&(w=Ci(w,o,a,v)),s&&(w=Oi(w,s,u,v)),b-=E,v&&b<p){var x=fn(w,S);return Gi(e,t,zi,f.placeholder,r,w,x,l,c,p-b)}var T=h?r:this,k=g?T[e]:e;return b=w.length,l?w=function(e,t){var n=e.length,r=bn(t.length,n),o=Ai(e);for(;r--;){var a=t[r];e[r]=bo(a,n)?o[a]:i}return e}(w,l):y&&b>1&&w.reverse(),d&&c<b&&(w.length=c),this&&this!==gt&&this instanceof f&&(k=m||Li(k)),k.apply(T,w)}}function Bi(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Hi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=li(n),r=li(r)):(n=ui(n),r=ui(r)),o=e(n,r)}return o}}function Vi(e){return no((function(t){return t=Ft(t,Xt(uo())),Jr((function(n){var r=this;return e(t,(function(e){return Ct(e,r,n)}))}))}))}function qi(e,t){var n=(t=t===i?" ":li(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,dt(e/hn(t)));return un(t)?_i(gn(r),0,e).join(""):r.slice(0,e)}function Wi(e){return function(t,r,o){return o&&"number"!=typeof o&&wo(t,r,o)&&(r=o=i),t=ds(t),r===i?(r=t,t=0):r=ds(r),function(e,t,r,i){for(var o=-1,a=Yt(dt((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,o=o===i?t<r?1:-1:ds(o),e)}}function Ki(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Gi(e,t,n,r,o,a,s,u,f,p){var d=8&t;t|=d?l:c,4&(t&=~(d?c:l))||(t&=-4);var h=[e,t,o,d?a:i,d?s:i,d?i:a,d?i:s,u,f,p],g=n.apply(i,h);return So(e)&&Po(g,h),g.placeholder=r,Mo(g,e,t)}function Yi(e){var t=Te[e];return function(e,n){if(e=vs(e),(n=null==n?0:bn(hs(n),292))&&bt(e)){var r=(ms(e)+"e").split("e");return+((r=(ms(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $i=Cn&&1/pn(new Cn([,-0]))[1]==d?function(e){return new Cn(e)}:uu;function Ji(e){return function(t){var n=go(t);return n==T?ln(t):n==P?dn(t):function(e,t){return Ft(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qi(e,t,r,a,d,h,g,v){var y=2&t;if(!y&&"function"!=typeof e)throw new Ae(o);var m=a?a.length:0;if(m||(t&=-97,a=d=i),g=g===i?g:Yt(hs(g),0),v=v===i?v:hs(v),m-=d?d.length:0,t&c){var b=a,w=d;a=d=i}var _=y?i:oo(e),S=[e,t,r,a,d,b,w,h,g,v];if(_&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==f&&8==n||r==f&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ci(l,u,t[4]):u,e[4]=l?fn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Oi(l,u,t[6]):u,e[6]=l?fn(e[5],s):t[6]);(u=t[7])&&(e[7]=u);r&f&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(S,_),e=S[0],t=S[1],r=S[2],a=S[3],d=S[4],!(v=S[9]=S[9]===i?y?0:e.length:Yt(S[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==u?function(e,t,r){var o=Li(e);return function a(){for(var s=arguments.length,u=n(s),l=s,c=so(a);l--;)u[l]=arguments[l];var f=s<3&&u[0]!==c&&u[s-1]!==c?[]:fn(u,c);return(s-=f.length)<r?Gi(e,t,zi,a.placeholder,i,u,f,i,i,r-s):Ct(this&&this!==gt&&this instanceof a?o:e,this,u)}}(e,t,v):t!=l&&33!=t||d.length?zi.apply(i,S):function(e,t,r,i){var o=1&t,a=Li(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=i.length,f=n(c+u),p=this&&this!==gt&&this instanceof t?a:e;++l<c;)f[l]=i[l];for(;u--;)f[l++]=arguments[++s];return Ct(p,o?r:this,f)}}(e,t,r,a);else var E=function(e,t,n){var r=1&t,i=Li(e);return function t(){return(this&&this!==gt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return Mo((_?ei:Po)(E,S),e,t)}function Zi(e,t,n,r){return e===i||za(e,je[n])&&!Fe.call(r,n)?t:e}function Xi(e,t,n,r,o,a){return es(e)&&es(t)&&(a.set(t,e),Hr(e,t,i,Xi,a),a.delete(t)),e}function eo(e){return is(e)?i:e}function to(e,t,n,r,o,a){var s=1&n,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var p=-1,d=!0,h=2&n?new Yn:i;for(a.set(e,t),a.set(t,e);++p<u;){var g=e[p],v=t[p];if(r)var y=s?r(v,g,p,t,e,a):r(g,v,p,e,t,a);if(y!==i){if(y)continue;d=!1;break}if(h){if(!Ut(t,(function(e,t){if(!tn(h,t)&&(g===e||o(g,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(g!==v&&!o(g,v,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function no(e){return jo(Co(e,i,Wo),e+"")}function ro(e){return xr(e,Is,po)}function io(e){return xr(e,js,ho)}var oo=Pn?function(e){return Pn.get(e)}:uu;function ao(e){for(var t=e.name+"",n=In[t],r=Fe.call(In,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function so(e){return(Fe.call(zn,"placeholder")?zn:e).placeholder}function uo(){var e=zn.iteratee||iu;return e=e===iu?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function co(e){for(var t=Is(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,To(i)]}return t}function fo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Nr(n)?n:i}var po=vt?function(e){return null==e?[]:(e=ke(e),jt(vt(e),(function(t){return Ye.call(e,t)})))}:gu,ho=vt?function(e){for(var t=[];e;)Rt(t,po(e)),e=Ke(e);return t}:gu,go=Tr;function vo(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,o=!1;++r<i;){var a=Lo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Xa(i)&&bo(a,i)&&(qa(e)||Va(e))}function yo(e){return"function"!=typeof e.constructor||xo(e)?{}:Bn(Ke(e))}function mo(e){return qa(e)||Va(e)||!!(Je&&e&&e[Je])}function bo(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function wo(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?Ka(n)&&bo(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function _o(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||(ne.test(e)||!te.test(e)||null!=t&&e in ke(t))}function So(e){var t=ao(e),n=zn[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=oo(n);return!!r&&e===r[0]}(xn&&go(new xn(new ArrayBuffer(1)))!=F||Tn&&go(new Tn)!=T||kn&&go(kn.resolve())!=O||Cn&&go(new Cn)!=P||On&&go(new On)!=M)&&(go=function(e){var t=Tr(e),n=t==C?e.constructor:i,r=n?Do(n):"";if(r)switch(r){case jn:return F;case Mn:return T;case Nn:return O;case Fn:return P;case Rn:return M}return t});var Eo=Me?Qa:vu;function xo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||je)}function To(e){return e===e&&!es(e)}function ko(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in ke(n)))}}function Co(e,t,r){return t=Yt(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=Yt(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=n(t+1);++o<t;)u[o]=i[o];return u[t]=r(s),Ct(e,this,u)}}function Oo(e,t){return t.length<2?e:Er(e,ri(t,0,-1))}function Ao(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Po=No(ei),Io=ct||function(e,t){return gt.setTimeout(e,t)},jo=No(ti);function Mo(e,t,n){var r=t+"";return jo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return At(y,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function No(e){var t=0,n=0;return function(){var r=wn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Fo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Yr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ro=function(e){var t=Na(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,i){t.push(r?i.replace(de,"$1"):n||e)})),t}));function Lo(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Do(e){if(null!=e){try{return Ne.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Uo(e){if(e instanceof qn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=Ai(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zo=Jr((function(e,t){return Ga(e)?fr(e,yr(t,1,Ga,!0)):[]})),Bo=Jr((function(e,t){var n=Jo(t);return Ga(n)&&(n=i),Ga(e)?fr(e,yr(t,1,Ga,!0),uo(n,2)):[]})),Ho=Jr((function(e,t){var n=Jo(t);return Ga(n)&&(n=i),Ga(e)?fr(e,yr(t,1,Ga,!0),i,n):[]}));function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=Yt(r+i,0)),Ht(e,uo(t,3),i)}function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=hs(n),o=n<0?Yt(r+o,0):bn(o,r-1)),Ht(e,uo(t,3),o,!0)}function Wo(e){return(null==e?0:e.length)?yr(e,1):[]}function Ko(e){return e&&e.length?e[0]:i}var Go=Jr((function(e){var t=Ft(e,yi);return t.length&&t[0]===e[0]?Ar(t):[]})),Yo=Jr((function(e){var t=Jo(e),n=Ft(e,yi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ar(n,uo(t,2)):[]})),$o=Jr((function(e){var t=Jo(e),n=Ft(e,yi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ar(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qo=Jr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}var Xo=no((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Gr(e,Ft(t,(function(e){return bo(e,n)?+e:e})).sort(ki)),r}));function ea(e){return null==e?e:En.call(e)}var ta=Jr((function(e){return ci(yr(e,1,Ga,!0))})),na=Jr((function(e){var t=Jo(e);return Ga(t)&&(t=i),ci(yr(e,1,Ga,!0),uo(t,2))})),ra=Jr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,ci(yr(e,1,Ga,!0),i,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=jt(e,(function(e){if(Ga(e))return t=Yt(e.length,t),!0})),Qt(t,(function(t){return Ft(e,Gt(t))}))}function oa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Ft(n,(function(e){return Ct(t,i,e)}))}var aa=Jr((function(e,t){return Ga(e)?fr(e,t):[]})),sa=Jr((function(e){return gi(jt(e,Ga))})),ua=Jr((function(e){var t=Jo(e);return Ga(t)&&(t=i),gi(jt(e,Ga),uo(t,2))})),la=Jr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,gi(jt(e,Ga),i,t)})),ca=Jr(ia);var fa=Jr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,oa(e,n)}));function pa(e){var t=zn(e);return t.__chain__=!0,t}function da(e,t){return t(e)}var ha=no((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof qn&&bo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:da,args:[o],thisArg:i}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ga=Ii((function(e,t,n){Fe.call(e,n)?++e[n]:or(e,n,1)}));var va=Di(Vo),ya=Di(qo);function ma(e,t){return(qa(e)?At:pr)(e,uo(t,3))}function ba(e,t){return(qa(e)?Pt:dr)(e,uo(t,3))}var wa=Ii((function(e,t,n){Fe.call(e,n)?e[n].push(t):or(e,n,[t])}));var _a=Jr((function(e,t,r){var i=-1,o="function"==typeof t,a=Ka(e)?n(e.length):[];return pr(e,(function(e){a[++i]=o?Ct(t,e,r):Pr(e,t,r)})),a})),Sa=Ii((function(e,t,n){or(e,n,t)}));function Ea(e,t){return(qa(e)?Ft:Ur)(e,uo(t,3))}var xa=Ii((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ta=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wo(e,t[0],t[1])?t=[]:n>2&&wo(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,yr(t,1),[])})),ka=it||function(){return gt.Date.now()};function Ca(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Qi(e,f,i,i,i,i,t)}function Oa(e,t){var n;if("function"!=typeof t)throw new Ae(o);return e=hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Aa=Jr((function(e,t,n){var r=1;if(n.length){var i=fn(n,so(Aa));r|=l}return Qi(e,r,t,n,i)})),Pa=Jr((function(e,t,n){var r=3;if(n.length){var i=fn(n,so(Pa));r|=l}return Qi(t,r,e,n,i)}));function Ia(e,t,n){var r,a,s,u,l,c,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ae(o);function g(t){var n=r,o=a;return r=a=i,f=t,u=e.apply(o,n)}function v(e){var n=e-c;return c===i||n>=t||n<0||d&&e-f>=s}function y(){var e=ka();if(v(e))return m(e);l=Io(y,function(e){var n=t-(e-c);return d?bn(n,s-(e-f)):n}(e))}function m(e){return l=i,h&&r?g(e):(r=a=i,u)}function b(){var e=ka(),n=v(e);if(r=arguments,a=this,c=e,n){if(l===i)return function(e){return f=e,l=Io(y,t),p?g(e):u}(c);if(d)return Si(l),l=Io(y,t),g(c)}return l===i&&(l=Io(y,t)),u}return t=vs(t)||0,es(n)&&(p=!!n.leading,s=(d="maxWait"in n)?Yt(vs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){l!==i&&Si(l),f=0,r=c=a=l=i},b.flush=function(){return l===i?u:m(ka())},b}var ja=Jr((function(e,t){return cr(e,1,t)})),Ma=Jr((function(e,t,n){return cr(e,vs(t)||0,n)}));function Na(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Na.Cache||Gn),n}function Fa(e){if("function"!=typeof e)throw new Ae(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=Gn;var Ra=wi((function(e,t){var n=(t=1==t.length&&qa(t[0])?Ft(t[0],Xt(uo())):Ft(yr(t,1),Xt(uo()))).length;return Jr((function(r){for(var i=-1,o=bn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Ct(e,this,r)}))})),La=Jr((function(e,t){var n=fn(t,so(La));return Qi(e,l,i,t,n)})),Da=Jr((function(e,t){var n=fn(t,so(Da));return Qi(e,c,i,t,n)})),Ua=no((function(e,t){return Qi(e,p,i,i,i,t)}));function za(e,t){return e===t||e!==e&&t!==t}var Ba=Ki(kr),Ha=Ki((function(e,t){return e>=t})),Va=Ir(function(){return arguments}())?Ir:function(e){return ts(e)&&Fe.call(e,"callee")&&!Ye.call(e,"callee")},qa=n.isArray,Wa=_t?Xt(_t):function(e){return ts(e)&&Tr(e)==N};function Ka(e){return null!=e&&Xa(e.length)&&!Qa(e)}function Ga(e){return ts(e)&&Ka(e)}var Ya=yt||vu,$a=St?Xt(St):function(e){return ts(e)&&Tr(e)==_};function Ja(e){if(!ts(e))return!1;var t=Tr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Qa(e){if(!es(e))return!1;var t=Tr(e);return t==E||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==hs(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=Et?Xt(Et):function(e){return ts(e)&&go(e)==T};function rs(e){return"number"==typeof e||ts(e)&&Tr(e)==k}function is(e){if(!ts(e)||Tr(e)!=C)return!1;var t=Ke(e);if(null===t)return!0;var n=Fe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Ue}var os=xt?Xt(xt):function(e){return ts(e)&&Tr(e)==A};var as=Tt?Xt(Tt):function(e){return ts(e)&&go(e)==P};function ss(e){return"string"==typeof e||!qa(e)&&ts(e)&&Tr(e)==I}function us(e){return"symbol"==typeof e||ts(e)&&Tr(e)==j}var ls=kt?Xt(kt):function(e){return ts(e)&&Xa(e.length)&&!!ut[Tr(e)]};var cs=Ki(Dr),fs=Ki((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ka(e))return ss(e)?gn(e):Ai(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=go(e);return(t==T?ln:t==P?pn:zs)(e)}function ds(e){return e?(e=vs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hs(e){var t=ds(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?sr(hs(e),0,v):0}function vs(e){if("number"==typeof e)return e;if(us(e))return g;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ye.test(e);return n||be.test(e)?pt(e.slice(2),n?2:8):ve.test(e)?g:+e}function ys(e){return Pi(e,js(e))}function ms(e){return null==e?"":li(e)}var bs=ji((function(e,t){if(xo(t)||Ka(t))Pi(t,Is(t),e);else for(var n in t)Fe.call(t,n)&&tr(e,n,t[n])})),ws=ji((function(e,t){Pi(t,js(t),e)})),_s=ji((function(e,t,n,r){Pi(t,js(t),e,r)})),Ss=ji((function(e,t,n,r){Pi(t,Is(t),e,r)})),Es=no(ar);var xs=Jr((function(e,t){e=ke(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&wo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=js(a),u=-1,l=s.length;++u<l;){var c=s[u],f=e[c];(f===i||za(f,je[c])&&!Fe.call(e,c))&&(e[c]=a[c])}return e})),Ts=Jr((function(e){return e.push(i,Xi),Ct(Ns,i,e)}));function ks(e,t,n){var r=null==e?i:Er(e,t);return r===i?n:r}function Cs(e,t){return null!=e&&vo(e,t,Or)}var Os=Bi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),eu(ru)),As=Bi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Fe.call(e,t)?e[t].push(n):e[t]=[n]}),uo),Ps=Jr(Pr);function Is(e){return Ka(e)?Jn(e):Rr(e)}function js(e){return Ka(e)?Jn(e,!0):Lr(e)}var Ms=ji((function(e,t,n){Hr(e,t,n)})),Ns=ji((function(e,t,n,r){Hr(e,t,n,r)})),Fs=no((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ft(t,(function(t){return t=bi(t,e),r||(r=t.length>1),t})),Pi(e,io(e),n),r&&(n=ur(n,7,eo));for(var i=t.length;i--;)fi(n,t[i]);return n}));var Rs=no((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function Ls(e,t){if(null==e)return{};var n=Ft(io(e),(function(e){return[e]}));return t=uo(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Ds=Ji(Is),Us=Ji(js);function zs(e){return null==e?[]:en(e,Is(e))}var Bs=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)}));function Hs(e){return Js(ms(e).toLowerCase())}function Vs(e){return(e=ms(e))&&e.replace(_e,on).replace(tt,"")}var qs=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ks=Fi("toLowerCase");var Gs=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ys=Ri((function(e,t,n){return e+(n?" ":"")+Js(t)}));var $s=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Fi("toUpperCase");function Qs(e,t,n){return e=ms(e),(t=n?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var Zs=Jr((function(e,t){try{return Ct(e,i,t)}catch(n){return Ja(n)?n:new se(n)}})),Xs=no((function(e,t){return At(t,(function(t){t=Lo(t),or(e,t,Aa(e[t],e))})),e}));function eu(e){return function(){return e}}var tu=Ui(),nu=Ui(!0);function ru(e){return e}function iu(e){return Fr("function"==typeof e?e:ur(e,1))}var ou=Jr((function(e,t){return function(n){return Pr(n,e,t)}})),au=Jr((function(e,t){return function(n){return Pr(e,n,t)}}));function su(e,t,n){var r=Is(t),i=Sr(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Sr(t,Is(t)));var o=!(es(n)&&"chain"in n)||!!n.chain,a=Qa(e);return At(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ai(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function uu(){}var lu=Vi(Ft),cu=Vi(It),fu=Vi(Ut);function pu(e){return _o(e)?Gt(Lo(e)):function(e){return function(t){return Er(t,e)}}(e)}var du=Wi(),hu=Wi(!0);function gu(){return[]}function vu(){return!1}var yu=Hi((function(e,t){return e+t}),0),mu=Yi("ceil"),bu=Hi((function(e,t){return e/t}),1),wu=Yi("floor");var _u=Hi((function(e,t){return e*t}),1),Su=Yi("round"),Eu=Hi((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Ae(o);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ca,zn.assign=bs,zn.assignIn=ws,zn.assignInWith=_s,zn.assignWith=Ss,zn.at=Es,zn.before=Oa,zn.bind=Aa,zn.bindAll=Xs,zn.bindKey=Pa,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},zn.chain=pa,zn.chunk=function(e,t,r){t=(r?wo(e,t,r):t===i)?1:Yt(hs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=n(dt(o/t));a<o;)u[s++]=ri(e,a,a+=t);return u},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Rt(qa(r)?Ai(r):[r],yr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=uo();return e=t?Ft(e,(function(e){if("function"!=typeof e[1])throw new Ae(o);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Ct(i[0],this,n))return Ct(i[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Is(e);return function(n){return lr(n,e,t)}}(ur(e,1))},zn.constant=eu,zn.countBy=ga,zn.create=function(e,t){var n=Bn(e);return null==t?n:ir(n,t)},zn.curry=function e(t,n,r){var o=Qi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},zn.curryRight=function e(t,n,r){var o=Qi(t,u,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},zn.debounce=Ia,zn.defaults=xs,zn.defaultsDeep=Ts,zn.defer=ja,zn.delay=Ma,zn.difference=zo,zn.differenceBy=Bo,zn.differenceWith=Ho,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=n||t===i?1:hs(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,0,(t=r-(t=n||t===i?1:hs(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?di(e,uo(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?di(e,uo(t,3),!0):[]},zn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&wo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=hs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:hs(r))<0&&(r+=o),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return(qa(e)?jt:vr)(e,uo(t,3))},zn.flatMap=function(e,t){return yr(Ea(e,t),1)},zn.flatMapDeep=function(e,t){return yr(Ea(e,t),d)},zn.flatMapDepth=function(e,t,n){return n=n===i?1:hs(n),yr(Ea(e,t),n)},zn.flatten=Wo,zn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,d):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===i?1:hs(t)):[]},zn.flip=function(e){return Qi(e,512)},zn.flow=tu,zn.flowRight=nu,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},zn.functions=function(e){return null==e?[]:Sr(e,Is(e))},zn.functionsIn=function(e){return null==e?[]:Sr(e,js(e))},zn.groupBy=wa,zn.initial=function(e){return(null==e?0:e.length)?ri(e,0,-1):[]},zn.intersection=Go,zn.intersectionBy=Yo,zn.intersectionWith=$o,zn.invert=Os,zn.invertBy=As,zn.invokeMap=_a,zn.iteratee=iu,zn.keyBy=Sa,zn.keys=Is,zn.keysIn=js,zn.map=Ea,zn.mapKeys=function(e,t){var n={};return t=uo(t,3),wr(e,(function(e,r,i){or(n,t(e,r,i),e)})),n},zn.mapValues=function(e,t){var n={};return t=uo(t,3),wr(e,(function(e,r,i){or(n,r,t(e,r,i))})),n},zn.matches=function(e){return zr(ur(e,1))},zn.matchesProperty=function(e,t){return Br(e,ur(t,1))},zn.memoize=Na,zn.merge=Ms,zn.mergeWith=Ns,zn.method=ou,zn.methodOf=au,zn.mixin=su,zn.negate=Fa,zn.nthArg=function(e){return e=hs(e),Jr((function(t){return Vr(t,e)}))},zn.omit=Fs,zn.omitBy=function(e,t){return Ls(e,Fa(uo(t)))},zn.once=function(e){return Oa(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?i:n)||(n=null==n?[]:[n]),qr(e,t,n))},zn.over=lu,zn.overArgs=Ra,zn.overEvery=cu,zn.overSome=fu,zn.partial=La,zn.partialRight=Da,zn.partition=xa,zn.pick=Rs,zn.pickBy=Ls,zn.property=pu,zn.propertyOf=function(e){return function(t){return null==e?i:Er(e,t)}},zn.pull=Qo,zn.pullAll=Zo,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,uo(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,i,n):e},zn.pullAt=Xo,zn.range=du,zn.rangeRight=hu,zn.rearg=Ua,zn.reject=function(e,t){return(qa(e)?jt:vr)(e,Fa(uo(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=uo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Gr(e,i),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Ae(o);return Jr(e,t=t===i?t:hs(t))},zn.reverse=ea,zn.sampleSize=function(e,t,n){return t=(n?wo(e,t,n):t===i)?1:hs(t),(qa(e)?Zn:Zr)(e,t)},zn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Xr(e,t,n,r)},zn.shuffle=function(e){return(qa(e)?Xn:ni)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wo(e,t,n)?(t=0,n=r):(t=null==t?0:hs(t),n=n===i?r:hs(n)),ri(e,t,n)):[]},zn.sortBy=Ta,zn.sortedUniq=function(e){return e&&e.length?si(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?si(e,uo(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&wo(e,t,n)&&(t=n=i),(n=n===i?v:n>>>0)?(e=ms(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=li(t))&&un(e)?_i(gn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Ae(o);return t=null==t?0:Yt(hs(t),0),Jr((function(n){var r=n[t],i=_i(n,0,t);return r&&Rt(i,r),Ct(e,this,i)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===i?1:hs(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=r-(t=n||t===i?1:hs(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?di(e,uo(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?di(e,uo(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ae(o);return es(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ia(e,t,{leading:r,maxWait:t,trailing:i})},zn.thru=da,zn.toArray=ps,zn.toPairs=Ds,zn.toPairsIn=Us,zn.toPath=function(e){return qa(e)?Ft(e,Lo):us(e)?[e]:Ai(Ro(ms(e)))},zn.toPlainObject=ys,zn.transform=function(e,t,n){var r=qa(e),i=r||Ya(e)||ls(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:es(e)&&Qa(o)?Bn(Ke(e)):{}}return(i?At:wr)(e,(function(e,r,i){return t(n,e,r,i)})),n},zn.unary=function(e){return Ca(e,1)},zn.union=ta,zn.unionBy=na,zn.unionWith=ra,zn.uniq=function(e){return e&&e.length?ci(e):[]},zn.uniqBy=function(e,t){return e&&e.length?ci(e,uo(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ci(e,i,t):[]},zn.unset=function(e,t){return null==e||fi(e,t)},zn.unzip=ia,zn.unzipWith=oa,zn.update=function(e,t,n){return null==e?e:pi(e,t,mi(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:pi(e,t,mi(n),r)},zn.values=zs,zn.valuesIn=function(e){return null==e?[]:en(e,js(e))},zn.without=aa,zn.words=Qs,zn.wrap=function(e,t){return La(mi(t),e)},zn.xor=sa,zn.xorBy=ua,zn.xorWith=la,zn.zip=ca,zn.zipObject=function(e,t){return vi(e||[],t||[],tr)},zn.zipObjectDeep=function(e,t){return vi(e||[],t||[],Xr)},zn.zipWith=fa,zn.entries=Ds,zn.entriesIn=Us,zn.extend=ws,zn.extendWith=_s,su(zn,zn),zn.add=yu,zn.attempt=Zs,zn.camelCase=Bs,zn.capitalize=Hs,zn.ceil=mu,zn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vs(n))===n?n:0),t!==i&&(t=(t=vs(t))===t?t:0),sr(vs(e),t,n)},zn.clone=function(e){return ur(e,4)},zn.cloneDeep=function(e){return ur(e,5)},zn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:i)},zn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:i)},zn.conformsTo=function(e,t){return null==t||lr(e,t,Is(t))},zn.deburr=Vs,zn.defaultTo=function(e,t){return null==e||e!==e?t:e},zn.divide=bu,zn.endsWith=function(e,t,n){e=ms(e),t=li(t);var r=e.length,o=n=n===i?r:sr(hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},zn.eq=za,zn.escape=function(e){return(e=ms(e))&&Q.test(e)?e.replace($,an):e},zn.escapeRegExp=function(e){return(e=ms(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},zn.every=function(e,t,n){var r=qa(e)?It:hr;return n&&wo(e,t,n)&&(t=i),r(e,uo(t,3))},zn.find=va,zn.findIndex=Vo,zn.findKey=function(e,t){return Bt(e,uo(t,3),wr)},zn.findLast=ya,zn.findLastIndex=qo,zn.findLastKey=function(e,t){return Bt(e,uo(t,3),_r)},zn.floor=wu,zn.forEach=ma,zn.forEachRight=ba,zn.forIn=function(e,t){return null==e?e:mr(e,uo(t,3),js)},zn.forInRight=function(e,t){return null==e?e:br(e,uo(t,3),js)},zn.forOwn=function(e,t){return e&&wr(e,uo(t,3))},zn.forOwnRight=function(e,t){return e&&_r(e,uo(t,3))},zn.get=ks,zn.gt=Ba,zn.gte=Ha,zn.has=function(e,t){return null!=e&&vo(e,t,Cr)},zn.hasIn=Cs,zn.head=Ko,zn.identity=ru,zn.includes=function(e,t,n,r){e=Ka(e)?e:zs(e),n=n&&!r?hs(n):0;var i=e.length;return n<0&&(n=Yt(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Vt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=Yt(r+i,0)),Vt(e,t,i)},zn.inRange=function(e,t,n){return t=ds(t),n===i?(n=t,t=0):n=ds(n),function(e,t,n){return e>=bn(t,n)&&e<Yt(t,n)}(e=vs(e),t,n)},zn.invoke=Ps,zn.isArguments=Va,zn.isArray=qa,zn.isArrayBuffer=Wa,zn.isArrayLike=Ka,zn.isArrayLikeObject=Ga,zn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Tr(e)==w},zn.isBuffer=Ya,zn.isDate=$a,zn.isElement=function(e){return ts(e)&&1===e.nodeType&&!is(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||ls(e)||Va(e)))return!e.length;var t=go(e);if(t==T||t==P)return!e.size;if(xo(e))return!Rr(e).length;for(var n in e)if(Fe.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return jr(e,t)},zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?jr(e,t,i,n):!!r},zn.isError=Ja,zn.isFinite=function(e){return"number"==typeof e&&bt(e)},zn.isFunction=Qa,zn.isInteger=Za,zn.isLength=Xa,zn.isMap=ns,zn.isMatch=function(e,t){return e===t||Mr(e,t,co(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Mr(e,t,co(t),n)},zn.isNaN=function(e){return rs(e)&&e!=+e},zn.isNative=function(e){if(Eo(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=rs,zn.isObject=es,zn.isObjectLike=ts,zn.isPlainObject=is,zn.isRegExp=os,zn.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=h},zn.isSet=as,zn.isString=ss,zn.isSymbol=us,zn.isTypedArray=ls,zn.isUndefined=function(e){return e===i},zn.isWeakMap=function(e){return ts(e)&&go(e)==M},zn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Tr(e)},zn.join=function(e,t){return null==e?"":wt.call(e,t)},zn.kebabCase=qs,zn.last=Jo,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=hs(n))<0?Yt(r+o,0):bn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ht(e,Wt,o,!0)},zn.lowerCase=Ws,zn.lowerFirst=Ks,zn.lt=cs,zn.lte=fs,zn.max=function(e){return e&&e.length?gr(e,ru,kr):i},zn.maxBy=function(e,t){return e&&e.length?gr(e,uo(t,2),kr):i},zn.mean=function(e){return Kt(e,ru)},zn.meanBy=function(e,t){return Kt(e,uo(t,2))},zn.min=function(e){return e&&e.length?gr(e,ru,Dr):i},zn.minBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Dr):i},zn.stubArray=gu,zn.stubFalse=vu,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=_u,zn.nth=function(e,t){return e&&e.length?Vr(e,hs(t)):i},zn.noConflict=function(){return gt._===this&&(gt._=ze),this},zn.noop=uu,zn.now=ka,zn.pad=function(e,t,n){e=ms(e);var r=(t=hs(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return qi(ht(i),n)+e+qi(dt(i),n)},zn.padEnd=function(e,t,n){e=ms(e);var r=(t=hs(t))?hn(e):0;return t&&r<t?e+qi(t-r,n):e},zn.padStart=function(e,t,n){e=ms(e);var r=(t=hs(t))?hn(e):0;return t&&r<t?qi(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(ms(e).replace(ae,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ds(e),t===i?(t=e,e=0):t=ds(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Sn();return bn(e+o*(t-e+ft("1e-"+((o+"").length-1))),t)}return Yr(e,t)},zn.reduce=function(e,t,n){var r=qa(e)?Lt:$t,i=arguments.length<3;return r(e,uo(t,4),n,i,pr)},zn.reduceRight=function(e,t,n){var r=qa(e)?Dt:$t,i=arguments.length<3;return r(e,uo(t,4),n,i,dr)},zn.repeat=function(e,t,n){return t=(n?wo(e,t,n):t===i)?1:hs(t),$r(ms(e),t)},zn.replace=function(){var e=arguments,t=ms(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,o=(t=bi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Lo(t[r])];a===i&&(r=o,a=n),e=Qa(a)?a.call(e):a}return e},zn.round=Su,zn.runInContext=e,zn.sample=function(e){return(qa(e)?Qn:Qr)(e)},zn.size=function(e){if(null==e)return 0;if(Ka(e))return ss(e)?hn(e):e.length;var t=go(e);return t==T||t==P?e.size:Rr(e).length},zn.snakeCase=Gs,zn.some=function(e,t,n){var r=qa(e)?Ut:ii;return n&&wo(e,t,n)&&(t=i),r(e,uo(t,3))},zn.sortedIndex=function(e,t){return oi(e,t)},zn.sortedIndexBy=function(e,t,n){return ai(e,t,uo(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=oi(e,t);if(r<n&&za(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return oi(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return ai(e,t,uo(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=oi(e,t,!0)-1;if(za(e[n],t))return n}return-1},zn.startCase=Ys,zn.startsWith=function(e,t,n){return e=ms(e),n=null==n?0:sr(hs(n),0,e.length),t=li(t),e.slice(n,n+t.length)==t},zn.subtract=Eu,zn.sum=function(e){return e&&e.length?Jt(e,ru):0},zn.sumBy=function(e,t){return e&&e.length?Jt(e,uo(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&wo(e,t,n)&&(t=i),e=ms(e),t=_s({},t,r,Zi);var o,a,s=_s({},t.imports,r.imports,Zi),u=Is(s),l=en(s,u),c=0,f=t.interpolate||Se,p="__p += '",d=Ce((t.escape||Se).source+"|"+f.source+"|"+(f===ee?he:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),h="//# sourceURL="+(Fe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(d,(function(t,n,r,i,s,u){return r||(r=i),p+=e.slice(c,u).replace(Ee,sn),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),p+="';\n";var g=Fe.call(t,"variable")&&t.variable;if(g){if(pe.test(g))throw new se("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(W,""):p).replace(K,"$1").replace(G,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Zs((function(){return xe(u,h+"return "+p).apply(i,l)}));if(v.source=p,Ja(v))throw v;return v},zn.times=function(e,t){if((e=hs(e))<1||e>h)return[];var n=v,r=bn(e,v);t=uo(t),e-=v;for(var i=Qt(r,t);++n<e;)t(n);return i},zn.toFinite=ds,zn.toInteger=hs,zn.toLength=gs,zn.toLower=function(e){return ms(e).toLowerCase()},zn.toNumber=vs,zn.toSafeInteger=function(e){return e?sr(hs(e),-9007199254740991,h):0===e?e:0},zn.toString=ms,zn.toUpper=function(e){return ms(e).toUpperCase()},zn.trim=function(e,t,n){if((e=ms(e))&&(n||t===i))return Zt(e);if(!e||!(t=li(t)))return e;var r=gn(e),o=gn(t);return _i(r,nn(r,o),rn(r,o)+1).join("")},zn.trimEnd=function(e,t,n){if((e=ms(e))&&(n||t===i))return e.slice(0,vn(e)+1);if(!e||!(t=li(t)))return e;var r=gn(e);return _i(r,0,rn(r,gn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=ms(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=li(t)))return e;var r=gn(e);return _i(r,nn(r,gn(t))).join("")},zn.truncate=function(e,t){var n=30,r="...";if(es(t)){var o="separator"in t?t.separator:o;n="length"in t?hs(t.length):n,r="omission"in t?li(t.omission):r}var a=(e=ms(e)).length;if(un(e)){var s=gn(e);a=s.length}if(n>=a)return e;var u=n-hn(r);if(u<1)return r;var l=s?_i(s,0,u).join(""):e.slice(0,u);if(o===i)return l+r;if(s&&(u+=l.length-u),os(o)){if(e.slice(u).search(o)){var c,f=l;for(o.global||(o=Ce(o.source,ms(ge.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var p=c.index;l=l.slice(0,p===i?u:p)}}else if(e.indexOf(li(o),u)!=u){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+r},zn.unescape=function(e){return(e=ms(e))&&J.test(e)?e.replace(Y,yn):e},zn.uniqueId=function(e){var t=++Re;return ms(e)+t},zn.upperCase=$s,zn.upperFirst=Js,zn.each=ma,zn.eachRight=ba,zn.first=Ko,su(zn,function(){var e={};return wr(zn,(function(t,n){Fe.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),At(["drop","take"],(function(e,t){qn.prototype[e]=function(n){n=n===i?1:Yt(hs(n),0);var r=this.__filtered__&&!t?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,v),type:e+(r.__dir__<0?"Right":"")}),r},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),At(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),At(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(ru)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Pr(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Fa(uo(e)))},qn.prototype.slice=function(e,t){e=hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(v)},wr(qn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof qn,l=s[0],c=u||qa(t),f=function(e){var t=o.apply(zn,Rt([e],s));return r&&p?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,g=u&&!d;if(!a&&c){t=g?t:new qn(this);var v=e.apply(t,s);return v.__actions__.push({func:da,args:[f],thisArg:i}),new Vn(v,p)}return h&&g?e.apply(this,s):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})})),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(qa(i)?i:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),wr(qn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Fe.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[zi(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ai(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=Yt(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,p=0,d=bn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return hi(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var g=-1,v=e[l+=t];++g<f;){var y=c[g],m=y.iteratee,b=y.type,w=m(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}h[p++]=v}return h},zn.prototype.at=ha,zn.prototype.chain=function(){return pa(this)},zn.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===i&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=Uo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:da,args:[ea],thisArg:i}),new Vn(t,this.__chain__)}return this.thru(ea)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Qe&&(zn.prototype[Qe]=function(){return this}),zn}();gt._=mn,(r=function(){return mn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},42123:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))n.call(o,l)&&(s[l]=o[l]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},68206:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&u&&"function"===typeof u.get?u.get:null,c=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,g=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,m=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,x=Array.prototype.join,T=Array.prototype.slice,k=Math.floor,C="function"===typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,A="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"===typeof Symbol&&"object"===typeof Symbol.iterator,I="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P||"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var i=String(r),o=m.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var F=n(42634),R=F.custom,L=H(R)?R:null;function D(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return b.call(String(e),/"/g,"&quot;")}function z(e){return"[object Array]"===W(e)&&(!I||!("object"===typeof e&&I in e))}function B(e){return"[object RegExp]"===W(e)&&(!I||!("object"===typeof e&&I in e))}function H(e){if(P)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!A)return!1;try{return A.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var u=r||{};if(q(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(u,"maxStringLength")&&("number"===typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!q(u,"customInspect")||u.customInspect;if("boolean"!==typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(u,"numericSeparator")&&"boolean"!==typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return G(t,u);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return w?N(t,S):S}if("bigint"===typeof t){var k=String(t)+"n";return w?N(t,k):k}var O="undefined"===typeof u.depth?5:u.depth;if("undefined"===typeof i&&(i=0),i>=O&&O>0&&"object"===typeof t)return z(t)?"[Array]":"[Object]";var R=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=x.call(Array(e.indent+1)," ")}return{base:n,prev:x.call(Array(t+1),n)}}(u,i);if("undefined"===typeof s)s=[];else if(K(s,t)>=0)return"[Circular]";function V(t,n,r){if(n&&(s=T.call(s)).push(n),r){var o={depth:u.depth};return q(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"===typeof t&&!B(t)){var Y=function(e){if(e.name)return e.name;var t=y.call(v.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,V);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+(ee.length>0?" { "+x.call(ee,", ")+" }":"")}if(H(t)){var te=P?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!==typeof t||P?te:$(te)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var ne="<"+_.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)ne+=" "+re[ie].name+"="+D(U(re[ie].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+_.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var oe=X(t,V);return R&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(oe)?"["+Z(oe,R)+"]":"[ "+x.call(oe,", ")+" ]"}if(function(e){return"[object Error]"===W(e)&&(!I||!("object"===typeof e&&I in e))}(t)){var ae=X(t,V);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(ae,", ")+" }":"{ ["+String(t)+"] "+x.call(E.call("[cause]: "+V(t.cause),ae),", ")+" }"}if("object"===typeof t&&g){if(L&&"function"===typeof t[L]&&F)return F(t,{depth:O-i});if("symbol"!==g&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{l.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,n){se.push(V(n,t,!0)+" => "+V(e,t))})),Q("Map",o.call(t),se,R)}if(function(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var ue=[];return c&&c.call(t,(function(e){ue.push(V(e,t))})),Q("Set",l.call(t),ue,R)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return J("WeakMap");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return J("WeakSet");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{return d.call(e),!0}catch(t){}return!1}(t))return J("WeakRef");if(function(e){return"[object Number]"===W(e)&&(!I||!("object"===typeof e&&I in e))}(t))return $(V(Number(t)));if(function(e){if(!e||"object"!==typeof e||!C)return!1;try{return C.call(e),!0}catch(t){}return!1}(t))return $(V(C.call(t)));if(function(e){return"[object Boolean]"===W(e)&&(!I||!("object"===typeof e&&I in e))}(t))return $(h.call(t));if(function(e){return"[object String]"===W(e)&&(!I||!("object"===typeof e&&I in e))}(t))return $(V(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===W(e)&&(!I||!("object"===typeof e&&I in e))}(t)&&!B(t)){var le=X(t,V),ce=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!ce&&I&&Object(t)===t&&I in t?m.call(W(t),8,-1):fe?"Object":"",de=(ce||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+x.call(E.call([],pe||[],fe||[]),": ")+"] ":"");return 0===le.length?de+"{}":R?de+"{"+Z(le,R)+"}":de+"{ "+x.call(le,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return V.call(e,t)}function W(e){return g.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function G(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return G(m.call(e,0,t.maxStringLength),t)+r}return D(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function $(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?Z(n,r):x.call(n,", "))+"}"}function Z(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+x.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=q(e,i)?t(e[i],e):""}var o,a="function"===typeof O?O(e):[];if(P){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)q(e,u)&&(n&&String(Number(u))===u&&u<e.length||P&&o["$"+u]instanceof Symbol||(S.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"===typeof O)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}},66958:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=22)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i={debug:function(){},info:function(){},warn:function(){},error:function(){}},o=void 0,a=void 0;(t.Log=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.reset=function(){a=3,o=i},e.debug=function(){if(a>=4){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o.debug.apply(o,Array.from(t))}},e.info=function(){if(a>=3){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o.info.apply(o,Array.from(t))}},e.warn=function(){if(a>=2){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o.warn.apply(o,Array.from(t))}},e.error=function(){if(a>=1){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o.error.apply(o,Array.from(t))}},r(e,null,[{key:"NONE",get:function(){return 0}},{key:"ERROR",get:function(){return 1}},{key:"WARN",get:function(){return 2}},{key:"INFO",get:function(){return 3}},{key:"DEBUG",get:function(){return 4}},{key:"level",get:function(){return a},set:function(e){if(!(0<=e&&e<=4))throw new Error("Invalid log level");a=e}},{key:"logger",get:function(){return o},set:function(e){if(!e.debug&&e.info&&(e.debug=e.info),!(e.debug&&e.info&&e.warn&&e.error))throw new Error("Invalid logger");o=e}}]),e}()).reset()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i={setInterval:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return setInterval(e,t)})),clearInterval:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return clearInterval(e)}))},o=!1,a=null;t.Global=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e._testing=function(){o=!0},e.setXMLHttpRequest=function(e){a=e},r(e,null,[{key:"location",get:function(){if(!o)return location}},{key:"localStorage",get:function(){if(!o&&"undefined"!=typeof window)return localStorage}},{key:"sessionStorage",get:function(){if(!o&&"undefined"!=typeof window)return sessionStorage}},{key:"XMLHttpRequest",get:function(){if(!o&&"undefined"!=typeof window)return a||XMLHttpRequest}},{key:"timer",get:function(){if(!o)return i}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataService=void 0;var r=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}}(),i=n(0),o=n(7),a=".well-known/openid-configuration";t.MetadataService=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=t,this._jsonService=new n(["application/jwk-set+json"])}return e.prototype.resetSigningKeys=function(){this._settings=this._settings||{},this._settings.signingKeys=void 0},e.prototype.getMetadata=function(){var e=this;return this._settings.metadata?(i.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(i.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then((function(t){i.Log.debug("MetadataService.getMetadata: json received");var n=e._settings.metadataSeed||{};return e._settings.metadata=Object.assign({},n,t),e._settings.metadata}))):(i.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},e.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},e.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},e.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},e.prototype.getTokenEndpoint=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",e)},e.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},e.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},e.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},e.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},e.prototype._getMetadataProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.Log.debug("MetadataService.getMetadataProperty for: "+e),this.getMetadata().then((function(n){if(i.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===n[e]){if(!0===t)return void i.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+e);throw i.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+e),new Error("Metadata does not contain property "+e)}return n[e]}))},e.prototype.getSigningKeys=function(){var e=this;return this._settings.signingKeys?(i.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then((function(t){return i.Log.debug("MetadataService.getSigningKeys: jwks_uri received",t),e._jsonService.getJson(t).then((function(t){if(i.Log.debug("MetadataService.getSigningKeys: key set received",t),!t.keys)throw i.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return e._settings.signingKeys=t.keys,e._settings.signingKeys}))}))},r(e,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(a)<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=a))),this._metadataUrl}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtility=void 0;var r=n(0),i=n(1);t.UrlUtility=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.addQueryParam=function(e,t,n){return e.indexOf("?")<0&&(e+="?"),"?"!==e[e.length-1]&&(e+="&"),e+=encodeURIComponent(t),(e+="=")+encodeURIComponent(n)},e.parseUrlFragment=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.Global;"string"!=typeof e&&(e=n.location.href);var o=e.lastIndexOf(t);o>=0&&(e=e.substr(o+1)),"?"===t&&(o=e.indexOf("#"))>=0&&(e=e.substr(0,o));for(var a,s={},u=/([^&=]+)=([^&]*)/g,l=0;a=u.exec(e);)if(s[decodeURIComponent(a[1])]=decodeURIComponent(a[2].replace(/\+/g," ")),l++>50)return r.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",e),{error:"Response exceeded expected number of parameters"};for(var c in s)return s;return{}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JoseUtil=void 0;var r=n(26),i=function(e){return e&&e.__esModule?e:{default:e}}(n(33));t.JoseUtil=(0,i.default)({jws:r.jws,KeyUtil:r.KeyUtil,X509:r.X509,crypto:r.crypto,hextob64u:r.hextob64u,b64tohex:r.b64tohex,AllowedSigningAlgs:r.AllowedSigningAlgs})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OidcClientSettings=void 0;var 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},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(0),a=n(23),s=n(6),u=n(24),l=n(2),c=".well-known/openid-configuration";t.OidcClientSettings=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.authority,i=t.metadataUrl,o=t.metadata,c=t.signingKeys,f=t.metadataSeed,p=t.client_id,d=t.client_secret,h=t.response_type,g=void 0===h?"id_token":h,v=t.scope,y=void 0===v?"openid":v,m=t.redirect_uri,b=t.post_logout_redirect_uri,w=t.client_authentication,_=void 0===w?"client_secret_post":w,S=t.prompt,E=t.display,x=t.max_age,T=t.ui_locales,k=t.acr_values,C=t.resource,O=t.response_mode,A=t.filterProtocolClaims,P=void 0===A||A,I=t.loadUserInfo,j=void 0===I||I,M=t.staleStateAge,N=void 0===M?900:M,F=t.clockSkew,R=void 0===F?300:F,L=t.clockService,D=void 0===L?new a.ClockService:L,U=t.userInfoJwtIssuer,z=void 0===U?"OP":U,B=t.mergeClaims,H=void 0!==B&&B,V=t.stateStore,q=void 0===V?new s.WebStorageStateStore:V,W=t.ResponseValidatorCtor,K=void 0===W?u.ResponseValidator:W,G=t.MetadataServiceCtor,Y=void 0===G?l.MetadataService:G,$=t.extraQueryParams,J=void 0===$?{}:$,Q=t.extraTokenParams,Z=void 0===Q?{}:Q;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._authority=n,this._metadataUrl=i,this._metadata=o,this._metadataSeed=f,this._signingKeys=c,this._client_id=p,this._client_secret=d,this._response_type=g,this._scope=y,this._redirect_uri=m,this._post_logout_redirect_uri=b,this._client_authentication=_,this._prompt=S,this._display=E,this._max_age=x,this._ui_locales=T,this._acr_values=k,this._resource=C,this._response_mode=O,this._filterProtocolClaims=!!P,this._loadUserInfo=!!j,this._staleStateAge=N,this._clockSkew=R,this._clockService=D,this._userInfoJwtIssuer=z,this._mergeClaims=!!H,this._stateStore=q,this._validator=new K(this),this._metadataService=new Y(this),this._extraQueryParams="object"===(void 0===J?"undefined":r(J))?J:{},this._extraTokenParams="object"===(void 0===Z?"undefined":r(Z))?Z:{}}return e.prototype.getEpochTime=function(){return this._clockService.getEpochTime()},i(e,[{key:"client_id",get:function(){return this._client_id},set:function(e){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=e}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"client_authentication",get:function(){return this._client_authentication}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(e){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=e}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(c)<0&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=c)),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(e){this._metadata=e}},{key:"metadataSeed",get:function(){return this._metadataSeed},set:function(e){this._metadataSeed=e}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(e){this._signingKeys=e}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"mergeClaims",get:function(){return this._mergeClaims}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(e){"object"===(void 0===e?"undefined":r(e))?this._extraQueryParams=e:this._extraQueryParams={}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(e){"object"===(void 0===e?"undefined":r(e))?this._extraTokenParams=e:this._extraTokenParams={}}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebStorageStateStore=void 0;var r=n(0),i=n(1);t.WebStorageStateStore=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,r=void 0===n?"oidc.":n,o=t.store,a=void 0===o?i.Global.localStorage:o;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._store=a,this._prefix=r}return e.prototype.set=function(e,t){return r.Log.debug("WebStorageStateStore.set",e),e=this._prefix+e,this._store.setItem(e,t),Promise.resolve()},e.prototype.get=function(e){r.Log.debug("WebStorageStateStore.get",e),e=this._prefix+e;var t=this._store.getItem(e);return Promise.resolve(t)},e.prototype.remove=function(e){r.Log.debug("WebStorageStateStore.remove",e),e=this._prefix+e;var t=this._store.getItem(e);return this._store.removeItem(e),Promise.resolve(t)},e.prototype.getAllKeys=function(){r.Log.debug("WebStorageStateStore.getAllKeys");for(var e=[],t=0;t<this._store.length;t++){var n=this._store.key(t);0===n.indexOf(this._prefix)&&e.push(n.substr(this._prefix.length))}return Promise.resolve(e)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonService=void 0;var r=n(0),i=n(1);t.JsonService=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Global.XMLHttpRequest,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t&&Array.isArray(t)?this._contentTypes=t.slice():this._contentTypes=[],this._contentTypes.push("application/json"),r&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=n,this._jwtHandler=r}return e.prototype.getJson=function(e,t){var n=this;if(!e)throw r.Log.error("JsonService.getJson: No url passed"),new Error("url");return r.Log.debug("JsonService.getJson, url: ",e),new Promise((function(i,o){var a=new n._XMLHttpRequest;a.open("GET",e);var s=n._contentTypes,u=n._jwtHandler;a.onload=function(){if(r.Log.debug("JsonService.getJson: HTTP response received, status",a.status),200===a.status){var t=a.getResponseHeader("Content-Type");if(t){var n=s.find((function(e){if(t.startsWith(e))return!0}));if("application/jwt"==n)return void u(a).then(i,o);if(n)try{return void i(JSON.parse(a.responseText))}catch(i){return r.Log.error("JsonService.getJson: Error parsing JSON response",i.message),void o(i)}}o(Error("Invalid response Content-Type: "+t+", from URL: "+e))}else o(Error(a.statusText+" ("+a.status+")"))},a.onerror=function(){r.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},t&&(r.Log.debug("JsonService.getJson: token passed, setting Authorization header"),a.setRequestHeader("Authorization","Bearer "+t)),a.send()}))},e.prototype.postForm=function(e,t,n){var i=this;if(!e)throw r.Log.error("JsonService.postForm: No url passed"),new Error("url");return r.Log.debug("JsonService.postForm, url: ",e),new Promise((function(o,a){var s=new i._XMLHttpRequest;s.open("POST",e);var u=i._contentTypes;s.onload=function(){if(r.Log.debug("JsonService.postForm: HTTP response received, status",s.status),200!==s.status){if(400===s.status&&(n=s.getResponseHeader("Content-Type"))&&u.find((function(e){if(n.startsWith(e))return!0})))try{var t=JSON.parse(s.responseText);if(t&&t.error)return r.Log.error("JsonService.postForm: Error from server: ",t.error),void a(new Error(t.error))}catch(o){return r.Log.error("JsonService.postForm: Error parsing JSON response",o.message),void a(o)}a(Error(s.statusText+" ("+s.status+")"))}else{var n;if((n=s.getResponseHeader("Content-Type"))&&u.find((function(e){if(n.startsWith(e))return!0})))try{return void o(JSON.parse(s.responseText))}catch(o){return r.Log.error("JsonService.postForm: Error parsing JSON response",o.message),void a(o)}a(Error("Invalid response Content-Type: "+n+", from URL: "+e))}},s.onerror=function(){r.Log.error("JsonService.postForm: network error"),a(Error("Network Error"))};var l="";for(var c in t){var f=t[c];f&&(l.length>0&&(l+="&"),l+=encodeURIComponent(c),l+="=",l+=encodeURIComponent(f))}s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),void 0!==n&&s.setRequestHeader("Authorization","Basic "+btoa(n)),s.send(l)}))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninRequest=void 0;var r=n(0),i=n(3),o=n(13);t.SigninRequest=function(){function e(t){var n=t.url,a=t.client_id,s=t.redirect_uri,u=t.response_type,l=t.scope,c=t.authority,f=t.data,p=t.prompt,d=t.display,h=t.max_age,g=t.ui_locales,v=t.id_token_hint,y=t.login_hint,m=t.acr_values,b=t.resource,w=t.response_mode,_=t.request,S=t.request_uri,E=t.extraQueryParams,x=t.request_type,T=t.client_secret,k=t.extraTokenParams,C=t.skipUserInfo;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw r.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!a)throw r.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!s)throw r.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!u)throw r.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!l)throw r.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!c)throw r.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var O=e.isOidc(u),A=e.isCode(u);w||(w=e.isCode(u)?"query":null),this.state=new o.SigninState({nonce:O,data:f,client_id:a,authority:c,redirect_uri:s,code_verifier:A,request_type:x,response_mode:w,client_secret:T,scope:l,extraTokenParams:k,skipUserInfo:C}),n=i.UrlUtility.addQueryParam(n,"client_id",a),n=i.UrlUtility.addQueryParam(n,"redirect_uri",s),n=i.UrlUtility.addQueryParam(n,"response_type",u),n=i.UrlUtility.addQueryParam(n,"scope",l),n=i.UrlUtility.addQueryParam(n,"state",this.state.id),O&&(n=i.UrlUtility.addQueryParam(n,"nonce",this.state.nonce)),A&&(n=i.UrlUtility.addQueryParam(n,"code_challenge",this.state.code_challenge),n=i.UrlUtility.addQueryParam(n,"code_challenge_method","S256"));var P={prompt:p,display:d,max_age:h,ui_locales:g,id_token_hint:v,login_hint:y,acr_values:m,resource:b,request:_,request_uri:S,response_mode:w};for(var I in P)P[I]&&(n=i.UrlUtility.addQueryParam(n,I,P[I]));for(var j in E)n=i.UrlUtility.addQueryParam(n,j,E[j]);this.url=n}return e.isOidc=function(e){return!!e.split(/\s+/g).filter((function(e){return"id_token"===e}))[0]},e.isOAuth=function(e){return!!e.split(/\s+/g).filter((function(e){return"token"===e}))[0]},e.isCode=function(e){return!!e.split(/\s+/g).filter((function(e){return"code"===e}))[0]},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;var r=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}}(),i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n(14));t.State=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,r=t.data,i=t.created,a=t.request_type;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._id=n||(0,o.default)(),this._data=r,this._created="number"==typeof i&&i>0?i:parseInt(Date.now()/1e3),this._request_type=a}return e.prototype.toStorageString=function(){return i.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},e.fromStorageString=function(t){return i.Log.debug("State.fromStorageString"),new e(JSON.parse(t))},e.clearStaleState=function(t,n){var r=Date.now()/1e3-n;return t.getAllKeys().then((function(n){i.Log.debug("State.clearStaleState: got keys",n);for(var o=[],a=function(a){var s=n[a];u=t.get(s).then((function(n){var o=!1;if(n)try{var a=e.fromStorageString(n);i.Log.debug("State.clearStaleState: got item from key: ",s,a.created),a.created<=r&&(o=!0)}catch(e){i.Log.error("State.clearStaleState: Error parsing state for key",s,e.message),o=!0}else i.Log.debug("State.clearStaleState: no item in storage for key: ",s),o=!0;if(o)return i.Log.debug("State.clearStaleState: removed item for key: ",s),t.remove(s)})),o.push(u)},s=0;s<n.length;s++){var u;a(s)}return i.Log.debug("State.clearStaleState: waiting on promise count:",o.length),Promise.all(o)}))},r(e,[{key:"id",get:function(){return this._id}},{key:"data",get:function(){return this._data}},{key:"created",get:function(){return this._created}},{key:"request_type",get:function(){return this._request_type}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OidcClient=void 0;var r=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}}(),i=n(0),o=n(5),a=n(12),s=n(8),u=n(34),l=n(35),c=n(36),f=n(13),p=n(9);t.OidcClient=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t instanceof o.OidcClientSettings?this._settings=t:this._settings=new o.OidcClientSettings(t)}return e.prototype.createSigninRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.response_type,r=t.scope,o=t.redirect_uri,a=t.data,u=t.state,l=t.prompt,c=t.display,f=t.max_age,p=t.ui_locales,d=t.id_token_hint,h=t.login_hint,g=t.acr_values,v=t.resource,y=t.request,m=t.request_uri,b=t.response_mode,w=t.extraQueryParams,_=t.extraTokenParams,S=t.request_type,E=t.skipUserInfo,x=arguments[1];i.Log.debug("OidcClient.createSigninRequest");var T=this._settings.client_id;n=n||this._settings.response_type,r=r||this._settings.scope,o=o||this._settings.redirect_uri,l=l||this._settings.prompt,c=c||this._settings.display,f=f||this._settings.max_age,p=p||this._settings.ui_locales,g=g||this._settings.acr_values,v=v||this._settings.resource,b=b||this._settings.response_mode,w=w||this._settings.extraQueryParams,_=_||this._settings.extraTokenParams;var k=this._settings.authority;return s.SigninRequest.isCode(n)&&"code"!==n?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then((function(t){i.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",t);var C=new s.SigninRequest({url:t,client_id:T,redirect_uri:o,response_type:n,scope:r,data:a||u,authority:k,prompt:l,display:c,max_age:f,ui_locales:p,id_token_hint:d,login_hint:h,acr_values:g,resource:v,request:y,request_uri:m,extraQueryParams:w,extraTokenParams:_,request_type:S,response_mode:b,client_secret:e._settings.client_secret,skipUserInfo:E}),O=C.state;return(x=x||e._stateStore).set(O.id,O.toStorageString()).then((function(){return C}))}))},e.prototype.readSigninResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug("OidcClient.readSigninResponseState");var r="query"===this._settings.response_mode||!this._settings.response_mode&&s.SigninRequest.isCode(this._settings.response_type)?"?":"#",o=new u.SigninResponse(e,r);return o.state?(t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(o.state).then((function(e){if(!e)throw i.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:f.SigninState.fromStorageString(e),response:o}}))):(i.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response")))},e.prototype.processSigninResponse=function(e,t){var n=this;return i.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(e,t,!0).then((function(e){var t=e.state,r=e.response;return i.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),n._validator.validateSigninResponse(t,r)}))},e.prototype.createSignoutRequest=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id_token_hint,r=t.data,o=t.state,a=t.post_logout_redirect_uri,s=t.extraQueryParams,u=t.request_type,c=arguments[1];return i.Log.debug("OidcClient.createSignoutRequest"),a=a||this._settings.post_logout_redirect_uri,s=s||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then((function(t){if(!t)throw i.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");i.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",t);var f=new l.SignoutRequest({url:t,id_token_hint:n,post_logout_redirect_uri:a,data:r||o,extraQueryParams:s,request_type:u}),p=f.state;return p&&(i.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(c=c||e._stateStore).set(p.id,p.toStorageString())),f}))},e.prototype.readSignoutResponseState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug("OidcClient.readSignoutResponseState");var r=new c.SignoutResponse(e);if(!r.state)return i.Log.debug("OidcClient.readSignoutResponseState: No state in response"),r.error?(i.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",r.error),Promise.reject(new a.ErrorResponse(r))):Promise.resolve({state:void 0,response:r});var o=r.state;return t=t||this._stateStore,(n?t.remove.bind(t):t.get.bind(t))(o).then((function(e){if(!e)throw i.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:p.State.fromStorageString(e),response:r}}))},e.prototype.processSignoutResponse=function(e,t){var n=this;return i.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(e,t,!0).then((function(e){var t=e.state,r=e.response;return t?(i.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),n._validator.validateSignoutResponse(t,r)):(i.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),r)}))},e.prototype.clearStaleState=function(e){return i.Log.debug("OidcClient.clearStaleState"),e=e||this._stateStore,p.State.clearStaleState(e,this.settings.staleStateAge)},r(e,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClient=void 0;var r=n(7),i=n(2),o=n(0);t.TokenClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw o.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n,this._metadataService=new a(this._settings)}return e.prototype.exchangeCode=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).grant_type=t.grant_type||"authorization_code",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret,t.redirect_uri=t.redirect_uri||this._settings.redirect_uri;var n=void 0,r=t._client_authentication||this._settings._client_authentication;return delete t._client_authentication,t.code?t.redirect_uri?t.code_verifier?t.client_id?t.client_secret||"client_secret_basic"!=r?("client_secret_basic"==r&&(n=t.client_id+":"+t.client_secret,delete t.client_id,delete t.client_secret),this._metadataService.getTokenEndpoint(!1).then((function(r){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),e._jsonService.postForm(r,t,n).then((function(e){return o.Log.debug("TokenClient.exchangeCode: response received"),e}))}))):(o.Log.error("TokenClient.exchangeCode: No client_secret passed"),Promise.reject(new Error("A client_secret is required"))):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},e.prototype.exchangeRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).grant_type=t.grant_type||"refresh_token",t.client_id=t.client_id||this._settings.client_id,t.client_secret=t.client_secret||this._settings.client_secret;var n=void 0,r=t._client_authentication||this._settings._client_authentication;return delete t._client_authentication,t.refresh_token?t.client_id?("client_secret_basic"==r&&(n=t.client_id+":"+t.client_secret,delete t.client_id,delete t.client_secret),this._metadataService.getTokenEndpoint(!1).then((function(r){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),e._jsonService.postForm(r,t,n).then((function(e){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),e}))}))):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorResponse=void 0;var r=n(0);t.ErrorResponse=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.error,o=n.error_description,a=n.error_uri,s=n.state,u=n.session_state;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!i)throw r.Log.error("No error passed to ErrorResponse"),new Error("error");var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o||i));return l.name="ErrorResponse",l.error=i,l.error_description=o,l.error_uri=a,l.state=s,l.session_state=u,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninState=void 0;var r=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}}(),i=n(0),o=n(9),a=n(4),s=function(e){return e&&e.__esModule?e:{default:e}}(n(14));t.SigninState=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.nonce,i=n.authority,o=n.client_id,u=n.redirect_uri,l=n.code_verifier,c=n.response_mode,f=n.client_secret,p=n.scope,d=n.extraTokenParams,h=n.skipUserInfo;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));if(!0===r?g._nonce=(0,s.default)():r&&(g._nonce=r),!0===l?g._code_verifier=(0,s.default)()+(0,s.default)()+(0,s.default)():l&&(g._code_verifier=l),g.code_verifier){var v=a.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=a.JoseUtil.hexToBase64Url(v)}return g._redirect_uri=u,g._authority=i,g._client_id=o,g._response_mode=c,g._client_secret=f,g._scope=p,g._extraTokenParams=d,g._skipUserInfo=h,g}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toStorageString=function(){return i.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},t.fromStorageString=function(e){return i.Log.debug("SigninState.fromStorageString"),new t(JSON.parse(e))},r(t,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),t}(o.State)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return("undefined"!=r&&null!==r&&void 0!==r.getRandomValues?i:o)().replace(/-/g,"")};var r="undefined"!=typeof window?window.crypto||window.msCrypto:null;function i(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^r.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}))}function o(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^16*Math.random()>>e/4).toString(16)}))}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.User=void 0;var r=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}}(),i=n(0);t.User=function(){function e(t){var n=t.id_token,r=t.session_state,i=t.access_token,o=t.refresh_token,a=t.token_type,s=t.scope,u=t.profile,l=t.expires_at,c=t.state;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id_token=n,this.session_state=r,this.access_token=i,this.refresh_token=o,this.token_type=a,this.scope=s,this.profile=u,this.expires_at=l,this.state=c}return e.prototype.toStorageString=function(){return i.Log.debug("User.toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})},e.fromStorageString=function(t){return i.Log.debug("User.fromStorageString"),new e(JSON.parse(t))},r(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTokenEvents=void 0;var r=n(0),i=n(46);t.AccessTokenEvents=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.accessTokenExpiringNotificationTime,r=void 0===n?60:n,o=t.accessTokenExpiringTimer,a=void 0===o?new i.Timer("Access token expiring"):o,s=t.accessTokenExpiredTimer,u=void 0===s?new i.Timer("Access token expired"):s;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._accessTokenExpiringNotificationTime=r,this._accessTokenExpiring=a,this._accessTokenExpired=u}return e.prototype.load=function(e){if(e.access_token&&void 0!==e.expires_in){var t=e.expires_in;if(r.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",t),t>0){var n=t-this._accessTokenExpiringNotificationTime;n<=0&&(n=1),r.Log.debug("AccessTokenEvents.load: registering expiring timer in:",n),this._accessTokenExpiring.init(n)}else r.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var i=t+1;r.Log.debug("AccessTokenEvents.load: registering expired timer in:",i),this._accessTokenExpired.init(i)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.unload=function(){r.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},e.prototype.addAccessTokenExpiring=function(e){this._accessTokenExpiring.addHandler(e)},e.prototype.removeAccessTokenExpiring=function(e){this._accessTokenExpiring.removeHandler(e)},e.prototype.addAccessTokenExpired=function(e){this._accessTokenExpired.addHandler(e)},e.prototype.removeAccessTokenExpired=function(e){this._accessTokenExpired.removeHandler(e)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;var r=n(0);t.Event=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t,this._callbacks=[]}return e.prototype.addHandler=function(e){this._callbacks.push(e)},e.prototype.removeHandler=function(e){var t=this._callbacks.findIndex((function(t){return t===e}));t>=0&&this._callbacks.splice(t,1)},e.prototype.raise=function(){r.Log.debug("Event: Raising event: "+this._name);for(var e=0;e<this._callbacks.length;e++){var t;(t=this._callbacks)[e].apply(t,arguments)}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionMonitor=void 0;var r=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}}(),i=n(0),o=n(19),a=n(1);t.SessionMonitor=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Global.timer;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=t,this._CheckSessionIFrameCtor=r,this._timer=s,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),Promise.resolve(this._userManager.getUser().then((function(e){e?n._start(e):n._settings.monitorAnonymousSession&&n._userManager.querySessionStatus().then((function(e){var t={session_state:e.session_state};e.sub&&e.sid&&(t.profile={sub:e.sub,sid:e.sid}),n._start(t)})).catch((function(e){i.Log.error("SessionMonitor ctor: error from querySessionStatus:",e.message)}))})).catch((function(e){i.Log.error("SessionMonitor ctor: error from getUser:",e.message)})))}return e.prototype._start=function(e){var t=this,n=e.session_state;n&&(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,i.Log.debug("SessionMonitor._start: session_state:",n,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,i.Log.debug("SessionMonitor._start: session_state:",n,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(n):this._metadataService.getCheckSessionIframe().then((function(e){if(e){i.Log.debug("SessionMonitor._start: Initializing check session iframe");var r=t._client_id,o=t._checkSessionInterval,a=t._stopCheckSessionOnError;t._checkSessionIFrame=new t._CheckSessionIFrameCtor(t._callback.bind(t),r,e,o,a),t._checkSessionIFrame.load().then((function(){t._checkSessionIFrame.start(n)}))}else i.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")})).catch((function(e){i.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",e.message)})))},e.prototype._stop=function(){var e=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(i.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var t=this._timer.setInterval((function(){e._timer.clearInterval(t),e._userManager.querySessionStatus().then((function(t){var n={session_state:t.session_state};t.sub&&t.sid&&(n.profile={sub:t.sub,sid:t.sid}),e._start(n)})).catch((function(e){i.Log.error("SessionMonitor: error from querySessionStatus:",e.message)}))}),1e3)},e.prototype._callback=function(){var e=this;this._userManager.querySessionStatus().then((function(t){var n=!0;t?t.sub===e._sub?(n=!1,e._checkSessionIFrame.start(t.session_state),t.sid===e._sid?i.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",t.session_state):(i.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",t.session_state),e._userManager.events._raiseUserSessionChanged())):i.Log.debug("SessionMonitor._callback: Different subject signed into OP:",t.sub):i.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),n&&(e._sub?(i.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),e._userManager.events._raiseUserSignedOut()):(i.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),e._userManager.events._raiseUserSignedIn()))})).catch((function(t){e._sub&&(i.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",t.message),e._userManager.events._raiseUserSignedOut())}))},r(e,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckSessionIFrame=void 0;var r=n(0);t.CheckSessionIFrame=function(){function e(t,n,r,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._callback=t,this._client_id=n,this._url=r,this._interval=i||2e3,this._stopOnError=o;var a=r.indexOf("/",r.indexOf("//")+2);this._frame_origin=r.substr(0,a),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.width=0,this._frame.height=0,this._frame.src=r}return e.prototype.load=function(){var e=this;return new Promise((function(t){e._frame.onload=function(){t()},window.document.body.appendChild(e._frame),e._boundMessageEvent=e._message.bind(e),window.addEventListener("message",e._boundMessageEvent,!1)}))},e.prototype._message=function(e){e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(r.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(r.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):r.Log.debug("CheckSessionIFrame: "+e.data+" message from check session op iframe"))},e.prototype.start=function(e){var t=this;if(this._session_state!==e){r.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=e;var n=function(){t._frame.contentWindow.postMessage(t._client_id+" "+t._session_state,t._frame_origin)};n(),this._timer=window.setInterval(n,this._interval)}},e.prototype.stop=function(){this._session_state=null,this._timer&&(r.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRevocationClient=void 0;var r=n(0),i=n(2),o=n(1);t.TokenRevocationClient=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw r.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=t,this._XMLHttpRequestCtor=n,this._metadataService=new a(this._settings)}return e.prototype.revoke=function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!e)throw r.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if("access_token"!==i&&"refresh_token"!=i)throw r.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then((function(o){if(o){r.Log.debug("TokenRevocationClient.revoke: Revoking "+i);var a=n._settings.client_id,s=n._settings.client_secret;return n._revoke(o,a,s,e,i)}if(t)throw r.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")}))},e.prototype._revoke=function(e,t,n,i,o){var a=this;return new Promise((function(s,u){var l=new a._XMLHttpRequestCtor;l.open("POST",e),l.onload=function(){r.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",l.status),200===l.status?s():u(Error(l.statusText+" ("+l.status+")"))},l.onerror=function(){r.Log.debug("TokenRevocationClient.revoke: Network Error."),u("Network Error")};var c="client_id="+encodeURIComponent(t);n&&(c+="&client_secret="+encodeURIComponent(n)),c+="&token_type_hint="+encodeURIComponent(o),c+="&token="+encodeURIComponent(i),l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.send(c)}))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupWindow=void 0;var r=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}}(),i=n(0);t.CordovaPopupWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise((function(e,t){n._resolve=e,n._reject=t})),this.features=t.popupWindowFeatures||"location=no,toolbar=no,zoom=no",this.target=t.popupWindowTarget||"_blank",this.redirect_uri=t.startUrl,i.Log.debug("CordovaPopupWindow.ctor: redirect_uri: "+this.redirect_uri)}return e.prototype._isInAppBrowserInstalled=function(e){return["cordova-plugin-inappbrowser","cordova-plugin-inappbrowser.inappbrowser","org.apache.cordova.inappbrowser"].some((function(t){return e.hasOwnProperty(t)}))},e.prototype.navigate=function(e){if(e&&e.url){if(!window.cordova)return this._error("cordova is undefined");var t=window.cordova.require("cordova/plugin_list").metadata;if(!1===this._isInAppBrowserInstalled(t))return this._error("InAppBrowser plugin not found");this._popup=cordova.InAppBrowser.open(e.url,this.target,this.features),this._popup?(i.Log.debug("CordovaPopupWindow.navigate: popup successfully created"),this._exitCallbackEvent=this._exitCallback.bind(this),this._loadStartCallbackEvent=this._loadStartCallback.bind(this),this._popup.addEventListener("exit",this._exitCallbackEvent,!1),this._popup.addEventListener("loadstart",this._loadStartCallbackEvent,!1)):this._error("Error opening popup window")}else this._error("No url provided");return this.promise},e.prototype._loadStartCallback=function(e){0===e.url.indexOf(this.redirect_uri)&&this._success({url:e.url})},e.prototype._exitCallback=function(e){this._error(e)},e.prototype._success=function(e){this._cleanup(),i.Log.debug("CordovaPopupWindow: Successful response from cordova popup window"),this._resolve(e)},e.prototype._error=function(e){this._cleanup(),i.Log.error(e),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup()},e.prototype._cleanup=function(){this._popup&&(i.Log.debug("CordovaPopupWindow: cleaning up popup"),this._popup.removeEventListener("exit",this._exitCallbackEvent,!1),this._popup.removeEventListener("loadstart",this._loadStartCallbackEvent,!1),this._popup.close()),this._popup=null},r(e,[{key:"promise",get:function(){return this._promise}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(10),o=n(5),a=n(6),s=n(37),u=n(38),l=n(16),c=n(2),f=n(48),p=n(49),d=n(19),h=n(20),g=n(18),v=n(1),y=n(15),m=n(50);t.default={Version:m.Version,Log:r.Log,OidcClient:i.OidcClient,OidcClientSettings:o.OidcClientSettings,WebStorageStateStore:a.WebStorageStateStore,InMemoryWebStorage:s.InMemoryWebStorage,UserManager:u.UserManager,AccessTokenEvents:l.AccessTokenEvents,MetadataService:c.MetadataService,CordovaPopupNavigator:f.CordovaPopupNavigator,CordovaIFrameNavigator:p.CordovaIFrameNavigator,CheckSessionIFrame:d.CheckSessionIFrame,TokenRevocationClient:h.TokenRevocationClient,SessionMonitor:g.SessionMonitor,Global:v.Global,User:y.User},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClockService=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.getEpochTime=function(){return Promise.resolve(Date.now()/1e3|0)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseValidator=void 0;var 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},i=n(0),o=n(2),a=n(25),s=n(11),u=n(12),l=n(4),c=["nonce","at_hash","iat","nbf","exp","aud","iss","c_hash"];t.ResponseValidator=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.UserInfoService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.JoseUtil,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.TokenClient;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw i.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=t,this._metadataService=new n(this._settings),this._userInfoService=new r(this._settings),this._joseUtil=u,this._tokenClient=new c(this._settings)}return e.prototype.validateSigninResponse=function(e,t){var n=this;return i.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(e,t).then((function(t){return i.Log.debug("ResponseValidator.validateSigninResponse: state processed"),n._validateTokens(e,t).then((function(t){return i.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),n._processClaims(e,t).then((function(e){return i.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),e}))}))}))},e.prototype.validateSignoutResponse=function(e,t){return e.id!==t.state?(i.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(i.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),t.state=e.data,t.error?(i.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",t.error),Promise.reject(new u.ErrorResponse(t))):Promise.resolve(t))},e.prototype._processSigninParams=function(e,t){if(e.id!==t.state)return i.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!e.client_id)return i.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!e.authority)return i.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==e.authority)return i.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=e.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==e.client_id)return i.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=e.client_id;return i.Log.debug("ResponseValidator._processSigninParams: state validated"),t.state=e.data,t.error?(i.Log.warn("ResponseValidator._processSigninParams: Response was error",t.error),Promise.reject(new u.ErrorResponse(t))):e.nonce&&!t.id_token?(i.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!e.nonce&&t.id_token?(i.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):e.code_verifier&&!t.code?(i.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!e.code_verifier&&t.code?(i.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(t.scope||(t.scope=e.scope),Promise.resolve(t))},e.prototype._processClaims=function(e,t){var n=this;if(t.isOpenIdConnect){if(i.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),t.profile=this._filterProtocolClaims(t.profile),!0!==e.skipUserInfo&&this._settings.loadUserInfo&&t.access_token)return i.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(t.access_token).then((function(e){return i.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),e.sub!==t.profile.sub?(i.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in id_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in id_token"))):(t.profile=n._mergeClaims(t.profile,e),i.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",t.profile),t)}));i.Log.debug("ResponseValidator._processClaims: not loading user info")}else i.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(t)},e.prototype._mergeClaims=function(e,t){var n=Object.assign({},e);for(var i in t){var o=t[i];Array.isArray(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];n[i]?Array.isArray(n[i])?n[i].indexOf(s)<0&&n[i].push(s):n[i]!==s&&("object"===(void 0===s?"undefined":r(s))&&this._settings.mergeClaims?n[i]=this._mergeClaims(n[i],s):n[i]=[n[i],s]):n[i]=s}}return n},e.prototype._filterProtocolClaims=function(e){i.Log.debug("ResponseValidator._filterProtocolClaims, incoming claims:",e);var t=Object.assign({},e);return this._settings._filterProtocolClaims?(c.forEach((function(e){delete t[e]})),i.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims filtered",t)):i.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims not filtered"),t},e.prototype._validateTokens=function(e,t){return t.code?(i.Log.debug("ResponseValidator._validateTokens: Validating code"),this._processCode(e,t)):t.id_token?t.access_token?(i.Log.debug("ResponseValidator._validateTokens: Validating id_token and access_token"),this._validateIdTokenAndAccessToken(e,t)):(i.Log.debug("ResponseValidator._validateTokens: Validating id_token"),this._validateIdToken(e,t)):(i.Log.debug("ResponseValidator._validateTokens: No code to process or id_token to validate"),Promise.resolve(t))},e.prototype._processCode=function(e,t){var n=this,o={client_id:e.client_id,client_secret:e.client_secret,code:t.code,redirect_uri:e.redirect_uri,code_verifier:e.code_verifier};return e.extraTokenParams&&"object"===r(e.extraTokenParams)&&Object.assign(o,e.extraTokenParams),this._tokenClient.exchangeCode(o).then((function(r){for(var o in r)t[o]=r[o];return t.id_token?(i.Log.debug("ResponseValidator._processCode: token response successful, processing id_token"),n._validateIdTokenAttributes(e,t)):(i.Log.debug("ResponseValidator._processCode: token response successful, returning response"),t)}))},e.prototype._validateIdTokenAttributes=function(e,t){var n=this;return this._metadataService.getIssuer().then((function(r){var o=e.client_id,a=n._settings.clockSkew;return i.Log.debug("ResponseValidator._validateIdTokenAttributes: Validaing JWT attributes; using clock skew (in seconds) of: ",a),n._settings.getEpochTime().then((function(s){return n._joseUtil.validateJwtAttributes(t.id_token,r,o,a,s).then((function(n){return e.nonce&&e.nonce!==n.nonce?(i.Log.error("ResponseValidator._validateIdTokenAttributes: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):n.sub?(t.profile=n,t):(i.Log.error("ResponseValidator._validateIdTokenAttributes: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))}))},e.prototype._validateIdTokenAndAccessToken=function(e,t){var n=this;return this._validateIdToken(e,t).then((function(e){return n._validateAccessToken(e)}))},e.prototype._getSigningKeyForJwt=function(e){var t=this;return this._metadataService.getSigningKeys().then((function(n){var r=e.header.kid;if(!n)return i.Log.error("ResponseValidator._validateIdToken: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));i.Log.debug("ResponseValidator._validateIdToken: Received signing keys");var o=void 0;if(r)o=n.filter((function(e){return e.kid===r}))[0];else{if((n=t._filterByAlg(n,e.header.alg)).length>1)return i.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));o=n[0]}return Promise.resolve(o)}))},e.prototype._getSigningKeyForJwtWithSingleRetry=function(e){var t=this;return this._getSigningKeyForJwt(e).then((function(n){return n?Promise.resolve(n):(t._metadataService.resetSigningKeys(),t._getSigningKeyForJwt(e))}))},e.prototype._validateIdToken=function(e,t){var n=this;if(!e.nonce)return i.Log.error("ResponseValidator._validateIdToken: No nonce on state"),Promise.reject(new Error("No nonce on state"));var r=this._joseUtil.parseJwt(t.id_token);return r&&r.header&&r.payload?e.nonce!==r.payload.nonce?(i.Log.error("ResponseValidator._validateIdToken: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):this._metadataService.getIssuer().then((function(o){return i.Log.debug("ResponseValidator._validateIdToken: Received issuer"),n._getSigningKeyForJwtWithSingleRetry(r).then((function(a){if(!a)return i.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var s=e.client_id,u=n._settings.clockSkew;return i.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",u),n._joseUtil.validateJwt(t.id_token,a,o,s,u).then((function(){return i.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),r.payload.sub?(t.profile=r.payload,t):(i.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))})):(i.Log.error("ResponseValidator._validateIdToken: Failed to parse id_token",r),Promise.reject(new Error("Failed to parse id_token")))},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return i.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",t),[];n="EC"}return i.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",n),e=e.filter((function(e){return e.kty===n})),i.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",n,e.length),e},e.prototype._validateAccessToken=function(e){if(!e.profile)return i.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!e.profile.at_hash)return i.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!e.id_token)return i.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var t=this._joseUtil.parseJwt(e.id_token);if(!t||!t.header)return i.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",t),Promise.reject(new Error("Failed to parse id_token"));var n=t.header.alg;if(!n||5!==n.length)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n),Promise.reject(new Error("Unsupported alg: "+n));var r=n.substr(2,3);if(!r)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,r),Promise.reject(new Error("Unsupported alg: "+n));if(256!==(r=parseInt(r))&&384!==r&&512!==r)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",n,r),Promise.reject(new Error("Unsupported alg: "+n));var o="sha"+r,a=this._joseUtil.hashString(e.access_token,o);if(!a)return i.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(new Error("Failed to validate at_hash"));var s=a.substr(0,a.length/2),u=this._joseUtil.hexToBase64Url(s);return u!==e.profile.at_hash?(i.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",u,e.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(i.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(e))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserInfoService=void 0;var r=n(7),i=n(2),o=n(0),a=n(4);t.UserInfoService=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.JoseUtil;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw o.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=t,this._jsonService=new n(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new s(this._settings),this._joseUtil=u}return e.prototype.getClaims=function(e){var t=this;return e?this._metadataService.getUserInfoEndpoint().then((function(n){return o.Log.debug("UserInfoService.getClaims: received userinfo url",n),t._jsonService.getJson(n,e).then((function(e){return o.Log.debug("UserInfoService.getClaims: claims received",e),e}))})):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},e.prototype._getClaimsFromJwt=function e(t){var n=this;try{var r=this._joseUtil.parseJwt(t.responseText);if(!r||!r.header||!r.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",r),Promise.reject(new Error("Failed to parse id_token"));var i=r.header.kid,a=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":a=this._metadataService.getIssuer();break;case"ANY":a=Promise.resolve(r.payload.iss);break;default:a=Promise.resolve(this._settings.userInfoJwtIssuer)}return a.then((function(e){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+e),n._metadataService.getSigningKeys().then((function(a){if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var s=void 0;if(i)s=a.filter((function(e){return e.kid===i}))[0];else{if((a=n._filterByAlg(a,r.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));s=a[0]}if(!s)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var u=n._settings.client_id,l=n._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",l),n._joseUtil.validateJwt(t.responseText,s,e,u,l,void 0,!0).then((function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),r.payload}))}))}))}catch(e){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",e.message),void reject(e)}},e.prototype._filterByAlg=function(e,t){var n=null;if(t.startsWith("RS"))n="RSA";else if(t.startsWith("PS"))n="PS";else{if(!t.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",t),[];n="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",n),e=e.filter((function(e){return e.kty===n})),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",n,e.length),e},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AllowedSigningAlgs=t.b64tohex=t.hextob64u=t.crypto=t.X509=t.KeyUtil=t.jws=void 0;var r=n(27);t.jws=r.jws,t.KeyUtil=r.KEYUTIL,t.X509=r.X509,t.crypto=r.crypto,t.hextob64u=r.hextob64u,t.b64tohex=r.b64tohex,t.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r={userAgent:!1},i={};if(void 0===o)var o={};o.lang={extend:function(t,n,i){if(!n||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var o=function(){};if(o.prototype=n.prototype,t.prototype=new o,t.prototype.constructor=t,t.superclass=n.prototype,n.prototype.constructor==Object.prototype.constructor&&(n.prototype.constructor=n),i){var a;for(a in i)t.prototype[a]=i[a];var s=function(){},u=["toString","valueOf"];try{/MSIE/.test(r.userAgent)&&(s=function(e,t){for(a=0;a<u.length;a+=1){var n=u[a],r=t[n];"function"==typeof r&&r!=Object.prototype[n]&&(e[n]=r)}})}catch(e){}s(t.prototype,i)}}};var a,s,u,l,c,f,p,d,h,g,v,y=y||(a=Math,u=(s={}).lib={},l=u.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=u.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=a.ceil(t/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(4294967296*a.random()|0);return new c.init(t,e)}}),f=s.enc={},p=f.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},d=f.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},g=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,i=this.blockSize,o=r/(4*i),s=(o=e?a.ceil(o):a.max((0|o)-this._minBufferSize,0))*i,u=a.min(4*s,r);if(s){for(var l=0;l<s;l+=i)this._doProcessBlock(n,l);var f=n.splice(0,s);t.sigBytes-=u}return new c.init(f,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),u.Hasher=g.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new v.HMAC.init(e,n).finalize(t)}}}),v=s.algo={},s);!function(e){var t,n=(t=y).lib,r=n.Base,i=n.WordArray;(t=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),t.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})}(),function(){var e=y,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp(),e=[];for(var i=0;i<n;i+=3)for(var o=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;4>a&&i+.75*a<n;a++)e.push(r.charAt(o>>>6*(3-a)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var n=e.length,r=this._map;(i=r.charAt(64))&&-1!=(i=e.indexOf(i))&&(n=i);for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r.indexOf(e.charAt(a-1))<<a%4*2,u=r.indexOf(e.charAt(a))>>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return t.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){for(var t=y,n=(i=t.lib).WordArray,r=i.Hasher,i=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},u=2,l=0;64>l;){var c;e:{c=u;for(var f=e.sqrt(c),p=2;p<=f;p++)if(!(c%p)){c=!1;break e}c=!0}c&&(8>l&&(o[l]=s(e.pow(u,.5))),a[l]=s(e.pow(u,1/3)),l++),u++}var d=[];i=i.SHA256=r.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],l=n[5],c=n[6],f=n[7],p=0;64>p;p++){if(16>p)d[p]=0|e[t+p];else{var h=d[p-15],g=d[p-2];d[p]=((h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3)+d[p-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+d[p-16]}h=f+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&l^~u&c)+a[p]+d[p],g=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&o^i&o),f=c,c=l,l=u,u=s+h|0,s=o,o=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0,n[5]=n[5]+l|0,n[6]=n[6]+c|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=r._createHelper(i),t.HmacSHA256=r._createHmacHelper(i)}(Math),function(){function e(){return r.create.apply(r,arguments)}for(var t=y,n=t.lib.Hasher,r=(o=t.x64).Word,i=o.WordArray,o=t.algo,a=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],s=[],u=0;80>u;u++)s[u]=e();o=o.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=(f=this._hash.words)[0],r=f[1],i=f[2],o=f[3],u=f[4],l=f[5],c=f[6],f=f[7],p=n.high,d=n.low,h=r.high,g=r.low,v=i.high,y=i.low,m=o.high,b=o.low,w=u.high,_=u.low,S=l.high,E=l.low,x=c.high,T=c.low,k=f.high,C=f.low,O=p,A=d,P=h,I=g,j=v,M=y,N=m,F=b,R=w,L=_,D=S,U=E,z=x,B=T,H=k,V=C,q=0;80>q;q++){var W=s[q];if(16>q)var K=W.high=0|e[t+2*q],G=W.low=0|e[t+2*q+1];else{K=((G=(K=s[q-15]).high)>>>1|(Y=K.low)<<31)^(G>>>8|Y<<24)^G>>>7;var Y=(Y>>>1|G<<31)^(Y>>>8|G<<24)^(Y>>>7|G<<25),$=((G=($=s[q-2]).high)>>>19|(J=$.low)<<13)^(G<<3|J>>>29)^G>>>6,J=(J>>>19|G<<13)^(J<<3|G>>>29)^(J>>>6|G<<26),Q=(G=s[q-7]).high,Z=(X=s[q-16]).high,X=X.low;K=(K=(K=K+Q+((G=Y+G.low)>>>0<Y>>>0?1:0))+$+((G+=J)>>>0<J>>>0?1:0))+Z+((G+=X)>>>0<X>>>0?1:0),W.high=K,W.low=G}Q=R&D^~R&z,X=L&U^~L&B,W=O&P^O&j^P&j;var ee=A&I^A&M^I&M,te=(Y=(O>>>28|A<<4)^(O<<30|A>>>2)^(O<<25|A>>>7),$=(A>>>28|O<<4)^(A<<30|O>>>2)^(A<<25|O>>>7),(J=a[q]).high),ne=J.low;Z=H+((R>>>14|L<<18)^(R>>>18|L<<14)^(R<<23|L>>>9))+((J=V+((L>>>14|R<<18)^(L>>>18|R<<14)^(L<<23|R>>>9)))>>>0<V>>>0?1:0),H=z,V=B,z=D,B=U,D=R,U=L,R=N+(Z=(Z=(Z=Z+Q+((J+=X)>>>0<X>>>0?1:0))+te+((J+=ne)>>>0<ne>>>0?1:0))+K+((J+=G)>>>0<G>>>0?1:0))+((L=F+J|0)>>>0<F>>>0?1:0)|0,N=j,F=M,j=P,M=I,P=O,I=A,O=Z+(W=Y+W+((G=$+ee)>>>0<$>>>0?1:0))+((A=J+G|0)>>>0<J>>>0?1:0)|0}d=n.low=d+A,n.high=p+O+(d>>>0<A>>>0?1:0),g=r.low=g+I,r.high=h+P+(g>>>0<I>>>0?1:0),y=i.low=y+M,i.high=v+j+(y>>>0<M>>>0?1:0),b=o.low=b+F,o.high=m+N+(b>>>0<F>>>0?1:0),_=u.low=_+L,u.high=w+R+(_>>>0<L>>>0?1:0),E=l.low=E+U,l.high=S+D+(E>>>0<U>>>0?1:0),T=c.low=T+B,c.high=x+z+(T>>>0<B>>>0?1:0),C=f.low=C+V,f.high=k+H+(C>>>0<V>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(o),t.HmacSHA512=n._createHmacHelper(o)}(),function(){var e=y,t=(i=e.x64).Word,n=i.WordArray,r=(i=e.algo).SHA512,i=i.SHA384=r.extend({_doReset:function(){this._hash=new n.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=r._createHelper(i),e.HmacSHA384=r._createHmacHelper(i)}();var m,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function w(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=b.charAt(n>>6)+b.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=b.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=b.charAt(n>>2)+b.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function _(e){var t,n,r,i="",o=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t)(r=b.indexOf(e.charAt(t)))<0||(0==o?(i+=O(r>>2),n=3&r,o=1):1==o?(i+=O(n<<2|r>>4),n=15&r,o=2):2==o?(i+=O(n),i+=O(r>>2),n=3&r,o=3):(i+=O(n<<2|r>>4),i+=O(15&r),o=0));return 1==o&&(i+=O(n<<2)),i}function S(e){var t,n=_(e),r=new Array;for(t=0;2*t<n.length;++t)r[t]=parseInt(n.substring(2*t,2*t+2),16);return r}function E(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function x(){return new E(null)}"Microsoft Internet Explorer"==r.appName?(E.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],l=this[e++]>>15,c=s*u+l*a;i=((u=a*u+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),n[r++]=1073741823&u}return i},m=30):"Netscape"!=r.appName?(E.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},m=26):(E.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],l=this[e++]>>14,c=s*u+l*a;i=((u=a*u+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*l,n[r++]=268435455&u}return i},m=28),E.prototype.DB=m,E.prototype.DM=(1<<m)-1,E.prototype.DV=1<<m,E.prototype.FV=Math.pow(2,52),E.prototype.F1=52-m,E.prototype.F2=2*m-52;var T,k,C=new Array;for(T="0".charCodeAt(0),k=0;k<=9;++k)C[T++]=k;for(T="a".charCodeAt(0),k=10;k<36;++k)C[T++]=k;for(T="A".charCodeAt(0),k=10;k<36;++k)C[T++]=k;function O(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function A(e,t){var n=C[e.charCodeAt(t)];return null==n?-1:n}function P(e){var t=x();return t.fromInt(e),t}function I(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function j(e){this.m=e}function M(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function N(e,t){return e&t}function F(e,t){return e|t}function R(e,t){return e^t}function L(e,t){return e&~t}function D(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function U(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function z(){}function B(e){return e}function H(e){this.r2=x(),this.q3=x(),E.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}j.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},j.prototype.revert=function(e){return e},j.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},j.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},j.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},M.prototype.convert=function(e){var t=x();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(E.ZERO)>0&&this.m.subTo(t,t),t},M.prototype.revert=function(e){var t=x();return e.copyTo(t),this.reduce(t),t},M.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},M.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},M.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},E.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},E.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},E.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var a=8==n?255&e[r]:A(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=n)>=this.DB&&(o-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&E.ZERO.subTo(this,this)},E.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},E.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},E.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},E.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},E.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},E.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},E.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&E.ZERO.subTo(t,t)},E.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},E.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=x());var o=x(),a=this.s,s=e.s,u=this.DB-I(r[r.t-1]);u>0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var l=o.t,c=o[l-1];if(0!=c){var f=c*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),p=this.FV/f,d=(1<<this.F1)/f,h=1<<this.F2,g=n.t,v=g-l,y=null==t?x():t;for(o.dlShiftTo(v,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),E.ONE.dlShiftTo(l,y),y.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--v>=0;){var m=n[--g]==c?this.DM:Math.floor(n[g]*p+(n[g-1]+h)*d);if((n[g]+=o.am(0,m,n,v,0,l))<m)for(o.dlShiftTo(v,y),n.subTo(y,n);n[g]<--m;)n.subTo(y,n)}null!=t&&(n.drShiftTo(l,t),a!=s&&E.ZERO.subTo(t,t)),n.t=l,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&E.ZERO.subTo(n,n)}}},E.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},E.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},E.prototype.exp=function(e,t){if(e>4294967295||e<1)return E.ONE;var n=x(),r=x(),i=t.convert(this),o=I(e)-1;for(i.copyTo(n);--o>=0;)if(t.sqrTo(n,r),(e&1<<o)>0)t.mulTo(r,i,n);else{var a=n;n=r,r=a}return t.revert(n)},E.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=O(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=O(n));return i?o:"0"},E.prototype.negate=function(){var e=x();return E.ZERO.subTo(this,e),e},E.prototype.abs=function(){return this.s<0?this.negate():this},E.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},E.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+I(this[this.t-1]^this.s&this.DM)},E.prototype.mod=function(e){var t=x();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(E.ZERO)>0&&e.subTo(t,t),t},E.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new j(t):new M(t),this.exp(e,n)},E.ZERO=P(0),E.ONE=P(1),z.prototype.convert=B,z.prototype.revert=B,z.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},z.prototype.sqrTo=function(e,t){e.squareTo(t)},H.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=x();return e.copyTo(t),this.reduce(t),t},H.prototype.revert=function(e){return e},H.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},H.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},H.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var V,q,W,K=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],G=(1<<26)/K[K.length-1];function Y(){this.i=0,this.j=0,this.S=new Array}function $(){!function(e){q[W++]^=255&e,q[W++]^=e>>8&255,q[W++]^=e>>16&255,q[W++]^=e>>24&255,W>=256&&(W-=256)}((new Date).getTime())}if(E.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},E.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=P(n),i=x(),o=x(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(e).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(e)+a},E.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),i=!1,o=0,a=0,s=0;s<e.length;++s){var u=A(e,s);u<0?"-"==e.charAt(s)&&0==this.signum()&&(i=!0):(a=t*a+u,++o>=n&&(this.dMultiply(r),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),i&&E.ZERO.subTo(this,this)},E.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(E.ONE.shiftLeft(e-1),F,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(E.ONE.shiftLeft(e-1),this);else{var r=new Array,i=7&e;r.length=1+(e>>3),t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},E.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},E.prototype.changeBit=function(e,t){var n=E.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},E.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},E.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},E.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},E.prototype.multiplyLowerTo=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},E.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},E.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},E.prototype.millerRabin=function(e){var t=this.subtract(E.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);(e=e+1>>1)>K.length&&(e=K.length);for(var i=x(),o=0;o<e;++o){i.fromInt(K[Math.floor(Math.random()*K.length)]);var a=i.modPow(r,this);if(0!=a.compareTo(E.ONE)&&0!=a.compareTo(t)){for(var s=1;s++<n&&0!=a.compareTo(t);)if(0==(a=a.modPowInt(2,this)).compareTo(E.ONE))return!1;if(0!=a.compareTo(t))return!1}}return!0},E.prototype.clone=function(){var e=x();return this.copyTo(e),e},E.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},E.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},E.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},E.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},E.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},E.prototype.equals=function(e){return 0==this.compareTo(e)},E.prototype.min=function(e){return this.compareTo(e)<0?this:e},E.prototype.max=function(e){return this.compareTo(e)>0?this:e},E.prototype.and=function(e){var t=x();return this.bitwiseTo(e,N,t),t},E.prototype.or=function(e){var t=x();return this.bitwiseTo(e,F,t),t},E.prototype.xor=function(e){var t=x();return this.bitwiseTo(e,R,t),t},E.prototype.andNot=function(e){var t=x();return this.bitwiseTo(e,L,t),t},E.prototype.not=function(){for(var e=x(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},E.prototype.shiftLeft=function(e){var t=x();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},E.prototype.shiftRight=function(e){var t=x();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},E.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+D(this[e]);return this.s<0?this.t*this.DB:-1},E.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=U(this[n]^t);return e},E.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},E.prototype.setBit=function(e){return this.changeBit(e,F)},E.prototype.clearBit=function(e){return this.changeBit(e,L)},E.prototype.flipBit=function(e){return this.changeBit(e,R)},E.prototype.add=function(e){var t=x();return this.addTo(e,t),t},E.prototype.subtract=function(e){var t=x();return this.subTo(e,t),t},E.prototype.multiply=function(e){var t=x();return this.multiplyTo(e,t),t},E.prototype.divide=function(e){var t=x();return this.divRemTo(e,t,null),t},E.prototype.remainder=function(e){var t=x();return this.divRemTo(e,null,t),t},E.prototype.divideAndRemainder=function(e){var t=x(),n=x();return this.divRemTo(e,t,n),new Array(t,n)},E.prototype.modPow=function(e,t){var n,r,i=e.bitLength(),o=P(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new j(t):t.isEven()?new H(t):new M(t);var a=new Array,s=3,u=n-1,l=(1<<n)-1;if(a[1]=r.convert(this),n>1){var c=x();for(r.sqrTo(a[1],c);s<=l;)a[s]=x(),r.mulTo(c,a[s-2],a[s]),s+=2}var f,p,d=e.t-1,h=!0,g=x();for(i=I(e[d])-1;d>=0;){for(i>=u?f=e[d]>>i-u&l:(f=(e[d]&(1<<i+1)-1)<<u-i,d>0&&(f|=e[d-1]>>this.DB+i-u)),s=n;0==(1&f);)f>>=1,--s;if((i-=s)<0&&(i+=this.DB,--d),h)a[f].copyTo(o),h=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(p=o,o=g,g=p),r.mulTo(g,a[f],o)}for(;d>=0&&0==(e[d]&1<<i);)r.sqrTo(o,g),p=o,o=g,g=p,--i<0&&(i=this.DB-1,--d)}return r.revert(o)},E.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return E.ZERO;for(var n=e.clone(),r=this.clone(),i=P(1),o=P(0),a=P(0),s=P(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;r.isEven();)r.rShiftTo(1,r),t?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(e,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);n.compareTo(r)>=0?(n.subTo(r,n),t&&i.subTo(a,i),o.subTo(s,o)):(r.subTo(n,r),t&&a.subTo(i,a),s.subTo(o,s))}return 0!=r.compareTo(E.ONE)?E.ZERO:s.compareTo(e)>=0?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s},E.prototype.pow=function(e){return this.exp(e,new z)},E.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},E.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=K[K.length-1]){for(t=0;t<K.length;++t)if(n[0]==K[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<K.length;){for(var r=K[t],i=t+1;i<K.length&&r<G;)r*=K[i++];for(r=n.modInt(r);t<i;)if(r%K[t++]==0)return!1}return n.millerRabin(e)},E.prototype.square=function(){var e=x();return this.squareTo(e),e},Y.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},Y.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},null==q){var J;if(q=new Array,W=0,void 0!==i&&(void 0!==i.crypto||void 0!==i.msCrypto)){var Q=i.crypto||i.msCrypto;if(Q.getRandomValues){var Z=new Uint8Array(32);for(Q.getRandomValues(Z),J=0;J<32;++J)q[W++]=Z[J]}else if("Netscape"==r.appName&&r.appVersion<"5"){var X=i.crypto.random(32);for(J=0;J<X.length;++J)q[W++]=255&X.charCodeAt(J)}}for(;W<256;)J=Math.floor(65536*Math.random()),q[W++]=J>>>8,q[W++]=255&J;W=0,$()}function ee(){if(null==V){for($(),(V=new Y).init(q),W=0;W<q.length;++W)q[W]=0;W=0}return V.next()}function te(){}function ne(e,t){return new E(e,t)}function re(e,t,n){for(var r="",i=0;r.length<t;)r+=n(String.fromCharCode.apply(String,e.concat([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i]))),i+=1;return r}function ie(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function oe(e,t){this.x=t,this.q=e}function ae(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=null==r?E.ONE:r,this.zinv=null}function se(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new ae(this,null,null)}te.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=ee()},ie.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},ie.prototype.setPublic=function(e,t){if(this.isPublic=!0,this.isPrivate=!1,"string"!=typeof e)this.n=e,this.e=t;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA public key";this.n=ne(e,16),this.e=parseInt(t,16)}},ie.prototype.encrypt=function(e){var t=function(e,t){if(t<e.length+11)throw"Message too long for RSA";for(var n=new Array,r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var o=new te,a=new Array;t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new E(n)}(e,this.n.bitLength()+7>>3);if(null==t)return null;var n=this.doPublic(t);if(null==n)return null;var r=n.toString(16);return 0==(1&r.length)?r:"0"+r},ie.prototype.encryptOAEP=function(e,t,n){var r=function(e,t,n,r){var i=le.crypto.MessageDigest,o=le.crypto.Util,a=null;if(n||(n="sha1"),"string"==typeof n&&(a=i.getCanonicalAlgName(n),r=i.getHashLength(a),n=function(e){return Ee(o.hashHex(xe(e),a))}),e.length+2*r+2>t)throw"Message too long for RSA";var s,u="";for(s=0;s<t-e.length-2*r-2;s+=1)u+="\0";var l=n("")+u+"\x01"+e,c=new Array(r);(new te).nextBytes(c);var f=re(c,l.length,n),p=[];for(s=0;s<l.length;s+=1)p[s]=l.charCodeAt(s)^f.charCodeAt(s);var d=re(p,c.length,n),h=[0];for(s=0;s<c.length;s+=1)h[s+1]=c[s]^d.charCodeAt(s);return new E(h.concat(p))}(e,this.n.bitLength()+7>>3,t,n);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},ie.prototype.type="RSA",oe.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},oe.prototype.toBigInteger=function(){return this.x},oe.prototype.negate=function(){return new oe(this.q,this.x.negate().mod(this.q))},oe.prototype.add=function(e){return new oe(this.q,this.x.add(e.toBigInteger()).mod(this.q))},oe.prototype.subtract=function(e){return new oe(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},oe.prototype.multiply=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},oe.prototype.square=function(){return new oe(this.q,this.x.square().mod(this.q))},oe.prototype.divide=function(e){return new oe(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},ae.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ae.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ae.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(E.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(E.ZERO))},ae.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(E.ZERO)&&!this.y.toBigInteger().equals(E.ZERO)},ae.prototype.negate=function(){return new ae(this.curve,this.x,this.y.negate(),this.z)},ae.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(E.ZERO.equals(n))return E.ZERO.equals(t)?this.twice():this.curve.getInfinity();var r=new E("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),s=a.multiply(n),u=i.multiply(a),l=t.square().multiply(this.z),c=l.subtract(u.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q),f=u.multiply(r).multiply(t).subtract(o.multiply(s)).subtract(l.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),p=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ae(this.curve,this.curve.fromBigInteger(c),this.curve.fromBigInteger(f),p)},ae.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new E("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=n.multiply(this.z),i=r.multiply(n).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=t.square().multiply(e);E.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q),u=a.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(a.square().multiply(a)).mod(this.curve.q),l=r.square().multiply(r).shiftLeft(3).mod(this.curve.q);return new ae(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(u),l)},ae.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new E("3")),i=this.negate(),o=this,a=this.curve.q.subtract(e),s=a.multiply(new E("3")),u=new ae(this.curve,this.x,this.y),l=u.negate();for(t=r.bitLength()-2;t>0;--t){o=o.twice();var c=r.testBit(t);c!=n.testBit(t)&&(o=o.add(c?this:i))}for(t=s.bitLength()-2;t>0;--t){u=u.twice();var f=s.testBit(t);f!=a.testBit(t)&&(u=u.add(f?u:l))}return o},ae.prototype.multiplyTwo=function(e,t,n){var r;r=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(t);r>=0;)i=i.twice(),e.testBit(r)?i=n.testBit(r)?i.add(o):i.add(this):n.testBit(r)&&(i=i.add(t)),--r;return i},se.prototype.getQ=function(){return this.q},se.prototype.getA=function(){return this.a},se.prototype.getB=function(){return this.b},se.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},se.prototype.getInfinity=function(){return this.infinity},se.prototype.fromBigInteger=function(e){return new oe(this.q,e)},se.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:default:return null;case 4:case 6:case 7:var t=(e.length-2)/2,n=e.substr(2,t),r=e.substr(t+2,t);return new ae(this,this.fromBigInteger(new E(n,16)),this.fromBigInteger(new E(r,16)))}},oe.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ae.prototype.getEncoded=function(e){var t=function(e,t){var n=e.toByteArrayUnsigned();if(t<n.length)n=n.slice(n.length-t);else for(;t>n.length;)n.unshift(0);return n},n=this.getX().toBigInteger(),r=this.getY().toBigInteger(),i=t(n,32);return e?r.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(r,32))),i},ae.decodeFrom=function(e,t){t[0];var n=t.length-1,r=t.slice(1,1+n/2),i=t.slice(1+n/2,1+n);r.unshift(0),i.unshift(0);var o=new E(r),a=new E(i);return new ae(e,e.fromBigInteger(o),e.fromBigInteger(a))},ae.decodeFromHex=function(e,t){t.substr(0,2);var n=t.length-2,r=t.substr(2,n/2),i=t.substr(2+n/2,n/2),o=new E(r,16),a=new E(i,16);return new ae(e,e.fromBigInteger(o),e.fromBigInteger(a))},ae.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),n=e.y.subtract(this.y).divide(t),r=n.square().subtract(this.x).subtract(e.x),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new ae(this.curve,r,i)},ae.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(E.valueOf(2)),t=this.curve.fromBigInteger(E.valueOf(3)),n=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),r=n.square().subtract(this.x.multiply(e)),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new ae(this.curve,r,i)},ae.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new E("3")),i=this.negate(),o=this;for(t=r.bitLength()-2;t>0;--t){o=o.twice();var a=r.testBit(t);a!=n.testBit(t)&&(o=o.add2D(a?this:i))}return o},ae.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),r=this.curve.getB().toBigInteger(),i=this.curve.getQ(),o=t.multiply(t).mod(i),a=e.multiply(e).multiply(e).add(n.multiply(e)).add(r).mod(i);return o.equals(a)},ae.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ae.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(t.compareTo(E.ONE)<0||t.compareTo(e.subtract(E.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(E.ONE)<0||n.compareTo(e.subtract(E.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ue=function(){var e=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),t=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),r={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function i(e,t,n){return t?r[t]:String.fromCharCode(parseInt(n,16))}var o=new String(""),a=Object.hasOwnProperty;return function(r,s){var u,l,c=r.match(e),f=c[0],p=!1;"{"===f?u={}:"["===f?u=[]:(u=[],p=!0);for(var d=[u],h=1-p,g=c.length;h<g;++h){var v;switch((f=c[h]).charCodeAt(0)){default:(v=d[0])[l||v.length]=+f,l=void 0;break;case 34:if(-1!==(f=f.substring(1,f.length-1)).indexOf("\\")&&(f=f.replace(t,i)),v=d[0],!l){if(!(v instanceof Array)){l=f||o;break}l=v.length}v[l]=f,l=void 0;break;case 91:v=d[0],d.unshift(v[l||v.length]=[]),l=void 0;break;case 93:case 125:d.shift();break;case 102:(v=d[0])[l||v.length]=!1,l=void 0;break;case 110:(v=d[0])[l||v.length]=null,l=void 0;break;case 116:(v=d[0])[l||v.length]=!0,l=void 0;break;case 123:v=d[0],d.unshift(v[l||v.length]={}),l=void 0}}if(p){if(1!==d.length)throw new Error;u=u[0]}else if(d.length)throw new Error;return s&&(u=function e(t,r){var i=t[r];if(i&&"object"===(void 0===i?"undefined":n(i))){var o=null;for(var u in i)if(a.call(i,u)&&i!==t){var l=e(i,u);void 0!==l?i[u]=l:(o||(o=[]),o.push(u))}if(o)for(var c=o.length;--c>=0;)delete i[o[c]]}return s.call(t,r,i)}({"":u},"")),u}}();void 0!==le&&le||(t.KJUR=le={}),void 0!==le.asn1&&le.asn1||(le.asn1={}),le.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";t=new E(r,16).xor(e).add(E.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return Oe(e,t)},this.newObject=function(e){var t=le.asn1,n=t.ASN1Object,r=t.DERBoolean,i=t.DERInteger,o=t.DERBitString,a=t.DEROctetString,s=t.DERNull,u=t.DERObjectIdentifier,l=t.DEREnumerated,c=t.DERUTF8String,f=t.DERNumericString,p=t.DERPrintableString,d=t.DERTeletexString,h=t.DERIA5String,g=t.DERUTCTime,v=t.DERGeneralizedTime,y=t.DERVisibleString,m=t.DERBMPString,b=t.DERSequence,w=t.DERSet,_=t.DERTaggedObject,S=t.ASN1Util.newObject;if(e instanceof t.ASN1Object)return e;var E=Object.keys(e);if(1!=E.length)throw new Error("key of param shall be only one.");var x=E[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+x+":"))throw new Error("undefined key: "+x);if("bool"==x)return new r(e[x]);if("int"==x)return new i(e[x]);if("bitstr"==x)return new o(e[x]);if("octstr"==x)return new a(e[x]);if("null"==x)return new s(e[x]);if("oid"==x)return new u(e[x]);if("enum"==x)return new l(e[x]);if("utf8str"==x)return new c(e[x]);if("numstr"==x)return new f(e[x]);if("prnstr"==x)return new p(e[x]);if("telstr"==x)return new d(e[x]);if("ia5str"==x)return new h(e[x]);if("utctime"==x)return new g(e[x]);if("gentime"==x)return new v(e[x]);if("visstr"==x)return new y(e[x]);if("bmpstr"==x)return new m(e[x]);if("asn1"==x)return new n(e[x]);if("seq"==x){for(var T=e[x],k=[],C=0;C<T.length;C++){var O=S(T[C]);k.push(O)}return new b({array:k})}if("set"==x){for(T=e[x],k=[],C=0;C<T.length;C++)O=S(T[C]),k.push(O);return new w({array:k})}if("tag"==x){var A=e[x];if("[object Array]"===Object.prototype.toString.call(A)&&3==A.length){var P=S(A[2]);return new _({tag:A[0],explicit:A[1],obj:P})}return new _(A)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},le.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=(t=Math.floor(n/40)+"."+n%40,""),i=2;i<e.length;i+=2){var o=("00000000"+parseInt(e.substr(i,2),16).toString(2)).slice(-8);r+=o.substr(1,7),"0"==o.substr(0,1)&&(t=t+"."+new E(r,2).toString(10),r="")}return t},le.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new E(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},le.asn1.ASN1Object=function(e){this.params=null,this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n=0,v="+this.hV);var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(e){this.params=e},null!=e&&null!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},le.asn1.DERAbstractString=function(e){le.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=_e(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},o.lang.extend(le.asn1.DERAbstractString,le.asn1.ASN1Object),le.asn1.DERAbstractTime=function(e){le.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset();return new Date(t)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var u=r(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=ve(e)},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},o.lang.extend(le.asn1.DERAbstractTime,le.asn1.ASN1Object),le.asn1.DERAbstractStructured=function(e){le.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},o.lang.extend(le.asn1.DERAbstractStructured,le.asn1.ASN1Object),le.asn1.DERBoolean=function(e){le.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==e?"010100":"0101ff"},o.lang.extend(le.asn1.DERBoolean,le.asn1.ASN1Object),le.asn1.DERInteger=function(e){le.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=le.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new E(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},o.lang.extend(le.asn1.DERInteger,le.asn1.ASN1Object),le.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=le.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}le.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,"")).length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var r="";for(n=0;n<e.length-1;n+=8){var i=e.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+r},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},o.lang.extend(le.asn1.DERBitString,le.asn1.ASN1Object),le.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=le.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}le.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},o.lang.extend(le.asn1.DEROctetString,le.asn1.DERAbstractString),le.asn1.DERNull=function(){le.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},o.lang.extend(le.asn1.DERNull,le.asn1.ASN1Object),le.asn1.DERObjectIdentifier=function(e){le.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){var t=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=parseInt(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};try{if(!e.match(/^[0-9.]+$/))return null;var r="",i=e.split("."),o=40*parseInt(i[0],10)+parseInt(i[1],10);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r}catch(e){return null}}(e);if(null==t)throw new Error("malformed oid string: "+e);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueName=function(e){var t=le.asn1.x509.OID.name2oid(e);if(""===t)throw new Error("DERObjectIdentifier oidName undefined: "+e);this.setValueOidString(t)},this.setValueNameOrOid=function(e){e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(e){"string"==typeof e?this.setValueNameOrOid(e):void 0!==e.oid?this.setValueNameOrOid(e.oid):void 0!==e.name?this.setValueNameOrOid(e.name):void 0!==e.hex&&this.setValueHex(e.hex)},void 0!==e&&this.setByParam(e)},o.lang.extend(le.asn1.DERObjectIdentifier,le.asn1.ASN1Object),le.asn1.DEREnumerated=function(e){le.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=le.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new E(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},o.lang.extend(le.asn1.DEREnumerated,le.asn1.ASN1Object),le.asn1.DERUTF8String=function(e){le.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},o.lang.extend(le.asn1.DERUTF8String,le.asn1.DERAbstractString),le.asn1.DERNumericString=function(e){le.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},o.lang.extend(le.asn1.DERNumericString,le.asn1.DERAbstractString),le.asn1.DERPrintableString=function(e){le.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},o.lang.extend(le.asn1.DERPrintableString,le.asn1.DERAbstractString),le.asn1.DERTeletexString=function(e){le.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},o.lang.extend(le.asn1.DERTeletexString,le.asn1.DERAbstractString),le.asn1.DERIA5String=function(e){le.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},o.lang.extend(le.asn1.DERIA5String,le.asn1.DERAbstractString),le.asn1.DERVisibleString=function(e){le.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="1a"},o.lang.extend(le.asn1.DERVisibleString,le.asn1.DERAbstractString),le.asn1.DERBMPString=function(e){le.asn1.DERBMPString.superclass.constructor.call(this,e),this.hT="1e"},o.lang.extend(le.asn1.DERBMPString,le.asn1.DERAbstractString),le.asn1.DERUTCTime=function(e){le.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=ve(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=ve(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},o.lang.extend(le.asn1.DERUTCTime,le.asn1.DERAbstractTime),le.asn1.DERGeneralizedTime=function(e){le.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=ve(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=ve(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},o.lang.extend(le.asn1.DERGeneralizedTime,le.asn1.DERAbstractTime),le.asn1.DERSequence=function(e){le.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++)e+=this.asn1Array[t].getEncodedHex();return this.hV=e,this.hV}},o.lang.extend(le.asn1.DERSequence,le.asn1.DERAbstractStructured),le.asn1.DERSet=function(e){le.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},o.lang.extend(le.asn1.DERSet,le.asn1.DERAbstractStructured),le.asn1.DERTaggedObject=function(e){le.asn1.DERTaggedObject.superclass.constructor.call(this);var t=le.asn1;this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(e){null!=e.tag&&(this.hT=e.tag),null!=e.explicit&&(this.isExplicit=e.explicit),null!=e.tage&&(this.hT=e.tage,this.isExplicit=!0),null!=e.tagi&&(this.hT=e.tagi,this.isExplicit=!1),null!=e.obj&&(e.obj instanceof t.ASN1Object?(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)):"object"==n(e.obj)&&(this.asn1Object=t.ASN1Util.newObject(e.obj),this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},null!=e&&this.setByParam(e)},o.lang.extend(le.asn1.DERTaggedObject,le.asn1.ASN1Object);var le,ce,fe,pe=new function(){};function de(e){for(var t=new Array,n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function he(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function ge(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);1==r.length&&(r="0"+r),t+=r}return t}function ve(e){return ge(de(e))}function ye(e){return(e=(e=e.replace(/\=/g,"")).replace(/\+/g,"-")).replace(/\//g,"_")}function me(e){return e.length%4==2?e+="==":e.length%4==3&&(e+="="),(e=e.replace(/-/g,"+")).replace(/_/g,"/")}function be(e){return e.length%2==1&&(e="0"+e),ye(w(e))}function we(e){return _(me(e))}function _e(e){return je(Le(e))}function Se(e){return decodeURIComponent(Me(e))}function Ee(e){for(var t="",n=0;n<e.length-1;n+=2)t+=String.fromCharCode(parseInt(e.substr(n,2),16));return t}function xe(e){for(var t="",n=0;n<e.length;n++)t+=("0"+e.charCodeAt(n).toString(16)).slice(-2);return t}function Te(e){return w(e)}function ke(e){var t=Te(e).replace(/(.{64})/g,"$1\r\n");return t.replace(/\r\n$/,"")}function Ce(e){return _(e.replace(/[^0-9A-Za-z\/+=]*/g,""))}function Oe(e,t){return"-----BEGIN "+t+"-----\r\n"+ke(e)+"\r\n-----END "+t+"-----\r\n"}function Ae(e,t){if(-1==e.indexOf("-----BEGIN "))throw"can't find PEM header: "+t;return Ce(e=void 0!==t?(e=e.replace(new RegExp("^[^]*-----BEGIN "+t+"-----"),"")).replace(new RegExp("-----END "+t+"-----[^]*$"),""):(e=e.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,""))}function Pe(e){var t,n,r,i,o,a,s,u,l,c,f;if(f=e.match(/^(\d{2}|\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/))return u=f[1],t=parseInt(u),2===u.length&&(50<=t&&t<100?t=1900+t:0<=t&&t<50&&(t=2e3+t)),n=parseInt(f[2])-1,r=parseInt(f[3]),i=parseInt(f[4]),o=parseInt(f[5]),a=parseInt(f[6]),s=0,""!==(l=f[7])&&(c=(l.substr(1)+"00").substr(0,3),s=parseInt(c)),Date.UTC(t,n,r,i,o,a,s);throw"unsupported zulu format: "+e}function Ie(e){return~~(Pe(e)/1e3)}function je(e){return e.replace(/%/g,"")}function Me(e){return e.replace(/(..)/g,"%$1")}function Ne(e){var t="malformed IPv6 address";if(!e.match(/^[0-9A-Fa-f:]+$/))throw t;var n=(e=e.toLowerCase()).split(":").length-1;if(n<2)throw t;var r=":".repeat(7-n+2),i=(e=e.replace("::",r)).split(":");if(8!=i.length)throw t;for(var o=0;o<8;o++)i[o]=("0000"+i[o]).slice(-4);return i.join("")}function Fe(e){if(!e.match(/^[0-9A-Fa-f]{32}$/))throw"malformed IPv6 address octet";for(var t=(e=e.toLowerCase()).match(/.{1,4}/g),n=0;n<8;n++)t[n]=t[n].replace(/^0+/,""),""==t[n]&&(t[n]="0");var r=(e=":"+t.join(":")+":").match(/:(0:){2,}/g);if(null===r)return e.slice(1,-1);var i="";for(n=0;n<r.length;n++)r[n].length>i.length&&(i=r[n]);return(e=e.replace(i,"::")).slice(1,-1)}function Re(e){var t="malformed hex value";if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8!=e.length)return 32==e.length?Fe(e):e;try{return parseInt(e.substr(0,2),16)+"."+parseInt(e.substr(2,2),16)+"."+parseInt(e.substr(4,2),16)+"."+parseInt(e.substr(6,2),16)}catch(e){throw t}}function Le(e){for(var t=encodeURIComponent(e),n="",r=0;r<t.length;r++)"%"==t[r]?(n+=t.substr(r,3),r+=2):n=n+"%"+ve(t[r]);return n}function De(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))}function Ue(e){return e.length%2==1?"0"+e:e.substr(0,1)>"7"?"00"+e:e}pe.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var n=parseInt(e.substr(t+3,1));return 0==n?-1:0<n&&n<10?n+1:-2},pe.getL=function(e,t){var n=pe.getLblen(e,t);return n<1?"":e.substr(t+2,2*n)},pe.getVblen=function(e,t){var n;return""==(n=pe.getL(e,t))?-1:("8"===n.substr(0,1)?new E(n.substr(2),16):new E(n,16)).intValue()},pe.getVidx=function(e,t){var n=pe.getLblen(e,t);return n<0?n:t+2*(n+1)},pe.getV=function(e,t){var n=pe.getVidx(e,t),r=pe.getVblen(e,t);return e.substr(n,2*r)},pe.getTLV=function(e,t){return e.substr(t,2)+pe.getL(e,t)+pe.getV(e,t)},pe.getTLVblen=function(e,t){return 2+2*pe.getLblen(e,t)+2*pe.getVblen(e,t)},pe.getNextSiblingIdx=function(e,t){return pe.getVidx(e,t)+2*pe.getVblen(e,t)},pe.getChildIdx=function(e,t){var n,r,i,o=pe,a=[];n=o.getVidx(e,t),r=2*o.getVblen(e,t),"03"==e.substr(t,2)&&(n+=2,r-=2),i=0;for(var s=n;i<=r;){var u=o.getTLVblen(e,s);if((i+=u)<=r&&a.push(s),s+=u,i>=r)break}return a},pe.getNthChildIdx=function(e,t,n){return pe.getChildIdx(e,t)[n]},pe.getIdxbyList=function(e,t,n,r){var i,o,a=pe;return 0==n.length?void 0!==r&&e.substr(t,2)!==r?-1:t:(i=n.shift())>=(o=a.getChildIdx(e,t)).length?-1:a.getIdxbyList(e,o[i],n,r)},pe.getIdxbyListEx=function(e,t,n,r){var i,o,a=pe;if(0==n.length)return void 0!==r&&e.substr(t,2)!==r?-1:t;i=n.shift(),o=a.getChildIdx(e,t);for(var s=0,u=0;u<o.length;u++){var l=e.substr(o[u],2);if("number"==typeof i&&!a.isContextTag(l)&&s==i||"string"==typeof i&&a.isContextTag(l,i))return a.getIdxbyListEx(e,o[u],n,r);a.isContextTag(l)||s++}return-1},pe.getTLVbyList=function(e,t,n,r){var i=pe,o=i.getIdxbyList(e,t,n,r);return-1==o||o>=e.length?null:i.getTLV(e,o)},pe.getTLVbyListEx=function(e,t,n,r){var i=pe,o=i.getIdxbyListEx(e,t,n,r);return-1==o?null:i.getTLV(e,o)},pe.getVbyList=function(e,t,n,r,i){var o,a,s=pe;return-1==(o=s.getIdxbyList(e,t,n,r))||o>=e.length?null:(a=s.getV(e,o),!0===i&&(a=a.substr(2)),a)},pe.getVbyListEx=function(e,t,n,r,i){var o,a,s=pe;return-1==(o=s.getIdxbyListEx(e,t,n,r))?null:(a=s.getV(e,o),"03"==e.substr(o,2)&&!1!==i&&(a=a.substr(2)),a)},pe.getInt=function(e,t,n){null==n&&(n=-1);try{var r=e.substr(t,2);if("02"!=r&&"03"!=r)return n;var i=pe.getV(e,t);return"02"==r?parseInt(i,16):function(e){try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var n=parseInt(t,16),r=e.substr(2),i=parseInt(r,16).toString(2);return"0"==i&&(i="00000000"),i=i.slice(0,0-n),parseInt(i,2)}catch(e){return-1}}(i)}catch(e){return n}},pe.getOID=function(e,t,n){null==n&&(n=null);try{return"06"!=e.substr(t,2)?n:function(e){if(!De(e))return null;try{var t=[],n=e.substr(0,2),r=parseInt(n,16);t[0]=new String(Math.floor(r/40)),t[1]=new String(r%40);for(var i=e.substr(2),o=[],a=0;a<i.length/2;a++)o.push(parseInt(i.substr(2*a,2),16));var s=[],u="";for(a=0;a<o.length;a++)128&o[a]?u+=ze((127&o[a]).toString(2),7):(u+=ze((127&o[a]).toString(2),7),s.push(new String(parseInt(u,2))),u="");var l=t.join(".");return s.length>0&&(l=l+"."+s.join(".")),l}catch(e){return null}}(pe.getV(e,t))}catch(e){return n}},pe.getOIDName=function(e,t,n){null==n&&(n=null);try{var r=pe.getOID(e,t,n);if(r==n)return n;var i=le.asn1.x509.OID.oid2name(r);return""==i?r:i}catch(e){return n}},pe.getString=function(e,t,n){null==n&&(n=null);try{return Ee(pe.getV(e,t))}catch(e){return n}},pe.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},n=[],r=e.substr(0,2),i=parseInt(r,16);n[0]=new String(Math.floor(i/40)),n[1]=new String(i%40);for(var o=e.substr(2),a=[],s=0;s<o.length/2;s++)a.push(parseInt(o.substr(2*s,2),16));var u=[],l="";for(s=0;s<a.length;s++)128&a[s]?l+=t((127&a[s]).toString(2),7):(l+=t((127&a[s]).toString(2),7),u.push(new String(parseInt(l,2))),l="");var c=n.join(".");return u.length>0&&(c=c+"."+u.join(".")),c},pe.dump=function(e,t,n,r){var i=pe,o=i.getV,a=i.dump,s=i.getChildIdx,u=e;e instanceof le.asn1.ASN1Object&&(u=e.getEncodedHex());var l=function(e,t){return e.length<=2*t?e:e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===n&&(n=0),void 0===r&&(r="");var c,f=t.ommit_long_octet;if("01"==(c=u.substr(n,2)))return"00"==(p=o(u,n))?r+"BOOLEAN FALSE\n":r+"BOOLEAN TRUE\n";if("02"==c)return r+"INTEGER "+l(p=o(u,n),f)+"\n";if("03"==c){var p=o(u,n);return i.isASN1HEX(p.substr(2))?(_=r+"BITSTRING, encapsulates\n")+a(p.substr(2),t,0,r+" "):r+"BITSTRING "+l(p,f)+"\n"}if("04"==c)return p=o(u,n),i.isASN1HEX(p)?(_=r+"OCTETSTRING, encapsulates\n")+a(p,t,0,r+" "):r+"OCTETSTRING "+l(p,f)+"\n";if("05"==c)return r+"NULL\n";if("06"==c){var d=o(u,n),h=le.asn1.ASN1Util.oidHexToInt(d),g=le.asn1.x509.OID.oid2name(h),v=h.replace(/\./g," ");return""!=g?r+"ObjectIdentifier "+g+" ("+v+")\n":r+"ObjectIdentifier ("+v+")\n"}if("0a"==c)return r+"ENUMERATED "+parseInt(o(u,n))+"\n";if("0c"==c)return r+"UTF8String '"+Se(o(u,n))+"'\n";if("13"==c)return r+"PrintableString '"+Se(o(u,n))+"'\n";if("14"==c)return r+"TeletexString '"+Se(o(u,n))+"'\n";if("16"==c)return r+"IA5String '"+Se(o(u,n))+"'\n";if("17"==c)return r+"UTCTime "+Se(o(u,n))+"\n";if("18"==c)return r+"GeneralizedTime "+Se(o(u,n))+"\n";if("1a"==c)return r+"VisualString '"+Se(o(u,n))+"'\n";if("1e"==c)return r+"BMPString '"+Se(o(u,n))+"'\n";if("30"==c){if("3000"==u.substr(n,4))return r+"SEQUENCE {}\n";_=r+"SEQUENCE\n";var y=t;if((2==(w=s(u,n)).length||3==w.length)&&"06"==u.substr(w[0],2)&&"04"==u.substr(w[w.length-1],2)){g=i.oidname(o(u,w[0]));var m=JSON.parse(JSON.stringify(t));m.x509ExtName=g,y=m}for(var b=0;b<w.length;b++)_+=a(u,y,w[b],r+" ");return _}if("31"==c){_=r+"SET\n";var w=s(u,n);for(b=0;b<w.length;b++)_+=a(u,t,w[b],r+" ");return _}if(0!=(128&(c=parseInt(c,16)))){var _,S=31&c;if(0!=(32&c)){for(_=r+"["+S+"]\n",w=s(u,n),b=0;b<w.length;b++)_+=a(u,t,w[b],r+" ");return _}return p=o(u,n),pe.isASN1HEX(p)?(_=r+"["+S+"]\n")+a(p,t,0,r+" "):(("68747470"==p.substr(0,8)||"subjectAltName"===t.x509ExtName&&2==S)&&(p=Se(p)),r+"["+S+"] "+p+"\n")}return r+"UNKNOWN("+c+") "+o(u,n)+"\n"},pe.isContextTag=function(e,t){var n,r;e=e.toLowerCase();try{n=parseInt(e,16)}catch(e){return-1}if(void 0===t)return 128==(192&n);try{return null!=t.match(/^\[[0-9]+\]$/)&&!((r=parseInt(t.substr(1,t.length-1),10))>31)&&128==(192&n)&&(31&n)==r}catch(e){return!1}},pe.isASN1HEX=function(e){var t=pe;if(e.length%2==1)return!1;var n=t.getVblen(e,0),r=e.substr(0,2),i=t.getL(e,0);return e.length-r.length-i.length==2*n},pe.checkStrictDER=function(e,t,n,r,i){var o=pe;if(void 0===n){if("string"!=typeof e)throw new Error("not hex string");if(e=e.toLowerCase(),!le.lang.String.isHex(e))throw new Error("not hex string");n=e.length,i=(r=e.length/2)<128?1:Math.ceil(r.toString(16))+1}if(o.getL(e,t).length>2*i)throw new Error("L of TLV too long: idx="+t);var a=o.getVblen(e,t);if(a>r)throw new Error("value of L too long than hex: idx="+t);var s=o.getTLV(e,t),u=s.length-2-o.getL(e,t).length;if(u!==2*a)throw new Error("V string length and L's value not the same:"+u+"/"+2*a);if(0===t&&e.length!=s.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+s.length);var l=e.substr(t,2);if("02"===l){var c=o.getVidx(e,t);if("00"==e.substr(c,2)&&e.charCodeAt(c+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(l,16)){for(var f=o.getVblen(e,t),p=0,d=o.getChildIdx(e,t),h=0;h<d.length;h++)p+=o.getTLV(e,d[h]).length,o.checkStrictDER(e,d[h],n,r,i);if(2*f!=p)throw new Error("sum of children's TLV length and L unmatch: "+2*f+"!="+p)}},pe.oidname=function(e){var t=le.asn1;le.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var n=t.x509.OID.oid2name(e);return""===n&&(n=e),n},void 0!==le&&le||(t.KJUR=le={}),void 0!==le.lang&&le.lang||(le.lang={}),le.lang.String=function(){},"function"==typeof e?(t.utf8tob64u=ce=function(t){return ye(e.from(t,"utf8").toString("base64"))},t.b64utoutf8=fe=function(t){return e.from(me(t),"base64").toString("utf8")}):(t.utf8tob64u=ce=function(e){return be(je(Le(e)))},t.b64utoutf8=fe=function(e){return decodeURIComponent(Me(we(e)))}),le.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},le.lang.String.isHex=function(e){return De(e)},le.lang.String.isBase64=function(e){return!(!(e=e.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||e.length%4!=0)},le.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=me(e),le.lang.String.isBase64(e))},le.lang.String.isIntegerArray=function(e){return!!(e=e.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},le.lang.String.isPrintable=function(e){return null!==e.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},le.lang.String.isIA5=function(e){return null!==e.match(/^[\x20-\x21\x23-\x7f]*$/)},le.lang.String.isMail=function(e){return null!==e.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)};var ze=function(e,t,n){return null==n&&(n="0"),e.length>=t?e:new Array(t-e.length+1).join(n)+e};void 0!==le&&le||(t.KJUR=le={}),void 0!==le.crypto&&le.crypto||(le.crypto={}),le.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:y.algo.MD5,sha1:y.algo.SHA1,sha224:y.algo.SHA224,sha256:y.algo.SHA256,sha384:y.algo.SHA384,sha512:y.algo.SHA512,ripemd160:y.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if(void 0===this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,n){var r=this.getDigestInfoHex(e,t),i=n/4;if(r.length+22>i)throw"key is too short for SigAlg: keylen="+n+","+t;for(var o="0001",a="00"+r,s="",u=i-4-a.length,l=0;l<u;l+=2)s+="ff";return o+s+a},this.hashString=function(e,t){return new le.crypto.MessageDigest({alg:t}).digestString(e)},this.hashHex=function(e,t){return new le.crypto.MessageDigest({alg:t}).digestHex(e)},this.sha1=function(e){return this.hashString(e,"sha1")},this.sha256=function(e){return this.hashString(e,"sha256")},this.sha256Hex=function(e){return this.hashHex(e,"sha256")},this.sha512=function(e){return this.hashString(e,"sha512")},this.sha512Hex=function(e){return this.hashHex(e,"sha512")},this.isKey=function(e){return e instanceof ie||e instanceof le.crypto.DSA||e instanceof le.crypto.ECDSA}},le.crypto.Util.md5=function(e){return new le.crypto.MessageDigest({alg:"md5",prov:"cryptojs"}).digestString(e)},le.crypto.Util.ripemd160=function(e){return new le.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"}).digestString(e)},le.crypto.Util.SECURERANDOMGEN=new te,le.crypto.Util.getRandomHexOfNbytes=function(e){var t=new Array(e);return le.crypto.Util.SECURERANDOMGEN.nextBytes(t),ge(t)},le.crypto.Util.getRandomBigIntegerOfNbytes=function(e){return new E(le.crypto.Util.getRandomHexOfNbytes(e),16)},le.crypto.Util.getRandomHexOfNbits=function(e){var t=e%8,n=new Array((e-t)/8+1);return le.crypto.Util.SECURERANDOMGEN.nextBytes(n),n[0]=(255<<t&255^255)&n[0],ge(n)},le.crypto.Util.getRandomBigIntegerOfNbits=function(e){return new E(le.crypto.Util.getRandomHexOfNbits(e),16)},le.crypto.Util.getRandomBigIntegerZeroToMax=function(e){for(var t=e.bitLength();;){var n=le.crypto.Util.getRandomBigIntegerOfNbits(t);if(-1!=e.compareTo(n))return n}},le.crypto.Util.getRandomBigIntegerMinToMax=function(e,t){var n=e.compareTo(t);if(1==n)throw"biMin is greater than biMax";if(0==n)return e;var r=t.subtract(e);return le.crypto.Util.getRandomBigIntegerZeroToMax(r).add(e)},le.crypto.MessageDigest=function(e){this.setAlgAndProvider=function(e,t){if(null!==(e=le.crypto.MessageDigest.getCanonicalAlgName(e))&&void 0===t&&(t=le.crypto.Util.DEFAULTPROVIDER[e]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(e)&&"cryptojs"==t){try{this.md=le.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[e].create()}catch(t){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+t}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=y.enc.Hex.parse(e);this.md.update(t)},this.digest=function(){return this.md.finalize().toString(y.enc.Hex)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}if(-1!=":sha256:".indexOf(e)&&"sjcl"==t){try{this.md=new sjcl.hash.sha256}catch(t){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+t}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=sjcl.codec.hex.toBits(e);this.md.update(t)},this.digest=function(){var e=this.md.finalize();return sjcl.codec.hex.fromBits(e)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==e&&void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=le.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},le.crypto.MessageDigest.getCanonicalAlgName=function(e){return"string"==typeof e&&(e=(e=e.toLowerCase()).replace(/-/,"")),e},le.crypto.MessageDigest.getHashLength=function(e){var t=le.crypto.MessageDigest,n=t.getCanonicalAlgName(e);if(void 0===t.HASHLENGTH[n])throw"not supported algorithm: "+e;return t.HASHLENGTH[n]},le.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},le.crypto.Mac=function(e){this.setAlgAndProvider=function(e,t){if(null==(e=e.toLowerCase())&&(e="hmacsha1"),"hmac"!=(e=e.toLowerCase()).substr(0,4))throw"setAlgAndProvider unsupported HMAC alg: "+e;void 0===t&&(t=le.crypto.Util.DEFAULTPROVIDER[e]),this.algProv=e+"/"+t;var n=e.substr(4);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(n)&&"cryptojs"==t){try{var r=le.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[n];this.mac=y.algo.HMAC.create(r,this.pass)}catch(e){throw"setAlgAndProvider hash alg set fail hashAlg="+n+"/"+e}this.updateString=function(e){this.mac.update(e)},this.updateHex=function(e){var t=y.enc.Hex.parse(e);this.mac.update(t)},this.doFinal=function(){return this.mac.finalize().toString(y.enc.Hex)},this.doFinalString=function(e){return this.updateString(e),this.doFinal()},this.doFinalHex=function(e){return this.updateHex(e),this.doFinal()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(e){if("string"==typeof e){var t=e;return e.length%2!=1&&e.match(/^[0-9A-Fa-f]+$/)||(t=xe(e)),void(this.pass=y.enc.Hex.parse(t))}if("object"!=(void 0===e?"undefined":n(e)))throw"KJUR.crypto.Mac unsupported password type: "+e;if(t=null,void 0!==e.hex){if(e.hex.length%2!=0||!e.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+e.hex;t=e.hex}if(void 0!==e.utf8&&(t=_e(e.utf8)),void 0!==e.rstr&&(t=xe(e.rstr)),void 0!==e.b64&&(t=_(e.b64)),void 0!==e.b64u&&(t=we(e.b64u)),null==t)throw"KJUR.crypto.Mac unsupported password type: "+e;this.pass=y.enc.Hex.parse(t)},void 0!==e&&(void 0!==e.pass&&this.setPassword(e.pass),void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=le.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},le.crypto.Signature=function(e){var t=null;if(this._setAlgNames=function(){var e=this.algName.match(/^(.+)with(.+)$/);e&&(this.mdAlgName=e[1].toLowerCase(),this.pubkeyAlgName=e[2].toLowerCase(),"rsaandmgf1"==this.pubkeyAlgName&&"sha"==this.mdAlgName&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e},this.setAlgAndProvider=function(e,t){if(this._setAlgNames(),"cryptojs/jsrsa"!=t)throw new Error("provider not supported: "+t);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new le.crypto.MessageDigest({alg:this.mdAlgName})}catch(e){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+e)}this.init=function(e,t){var n=null;try{n=void 0===t?Be.getKey(e):Be.getKey(e,t)}catch(e){throw"init failed:"+e}if(!0===n.isPrivate)this.prvKey=n,this.state="SIGN";else{if(!0!==n.isPublic)throw"init failed.:"+n;this.pubKey=n,this.state="VERIFY"}},this.updateString=function(e){this.md.updateString(e)},this.updateHex=function(e){this.md.updateHex(e)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0===this.prvKey&&void 0!==this.ecprvhex&&void 0!==this.eccurvename&&void 0!==le.crypto.ECDSA&&(this.prvKey=new le.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof ie&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof ie&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof le.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof le.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(e){return this.updateString(e),this.sign()},this.signHex=function(e){return this.updateHex(e),this.sign()},this.verify=function(e){if(this.sHashHex=this.md.digest(),void 0===this.pubKey&&void 0!==this.ecpubhex&&void 0!==this.eccurvename&&void 0!==le.crypto.ECDSA&&(this.pubKey=new le.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof ie&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,e,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof ie&&"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==le.crypto.ECDSA&&this.pubKey instanceof le.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==le.crypto.DSA&&this.pubKey instanceof le.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(e,t){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(e){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(e){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(e){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(e){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=e,void 0!==e&&(void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov?this.provName=le.crypto.Util.DEFAULTPROVIDER[this.algName]:this.provName=e.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==e.psssaltlen&&(this.pssSaltLen=e.psssaltlen),void 0!==e.prvkeypem)){if(void 0!==e.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{t=Be.getKey(e.prvkeypem),this.init(t)}catch(e){throw"fatal error to load pem private key: "+e}}},le.crypto.Cipher=function(e){},le.crypto.Cipher.encrypt=function(e,t,n){if(t instanceof ie&&t.isPublic){var r=le.crypto.Cipher.getAlgByKeyAndName(t,n);if("RSA"===r)return t.encrypt(e);if("RSAOAEP"===r)return t.encryptOAEP(e,"sha1");var i=r.match(/^RSAOAEP(\d+)$/);if(null!==i)return t.encryptOAEP(e,"sha"+i[1]);throw"Cipher.encrypt: unsupported algorithm for RSAKey: "+n}throw"Cipher.encrypt: unsupported key or algorithm"},le.crypto.Cipher.decrypt=function(e,t,n){if(t instanceof ie&&t.isPrivate){var r=le.crypto.Cipher.getAlgByKeyAndName(t,n);if("RSA"===r)return t.decrypt(e);if("RSAOAEP"===r)return t.decryptOAEP(e,"sha1");var i=r.match(/^RSAOAEP(\d+)$/);if(null!==i)return t.decryptOAEP(e,"sha"+i[1]);throw"Cipher.decrypt: unsupported algorithm for RSAKey: "+n}throw"Cipher.decrypt: unsupported key or algorithm"},le.crypto.Cipher.getAlgByKeyAndName=function(e,t){if(e instanceof ie){if(-1!=":RSA:RSAOAEP:RSAOAEP224:RSAOAEP256:RSAOAEP384:RSAOAEP512:".indexOf(t))return t;if(null==t)return"RSA";throw"getAlgByKeyAndName: not supported algorithm name for RSAKey: "+t}throw"getAlgByKeyAndName: not supported algorithm name: "+t},le.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040023":"secp521r1","2b81040022":"secp384r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},void 0!==le&&le||(t.KJUR=le={}),void 0!==le.crypto&&le.crypto||(le.crypto={}),le.crypto.ECDSA=function(e){var t=Error,r=E,i=ae,o=le.crypto.ECDSA,a=le.crypto.ECParameterDB,s=o.getName,u=pe,l=u.getVbyListEx,c=u.isASN1HEX,f=new te;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(e){return new r(e.bitLength(),f).mod(e.subtract(r.ONE)).add(r.ONE)},this.setNamedCurve=function(e){this.ecparams=a.getByName(e),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=e},this.setPrivateKeyHex=function(e){this.isPrivate=!0,this.prvKeyHex=e},this.setPublicKeyHex=function(e){this.isPublic=!0,this.pubKeyHex=e},this.getPublicKeyXYHex=function(){var e=this.pubKeyHex;if("04"!==e.substr(0,2))throw"this method supports uncompressed format(04) only";var t=this.ecparams.keylen/4;if(e.length!==2+2*t)throw"malformed public key hex length";var n={};return n.x=e.substr(2,t),n.y=e.substr(2+t),n},this.getShortNISTPCurveName=function(){var e=this.curveName;return"secp256r1"===e||"NIST P-256"===e||"P-256"===e||"prime256v1"===e?"P-256":"secp384r1"===e||"NIST P-384"===e||"P-384"===e?"P-384":null},this.generateKeyPairHex=function(){var e=this.ecparams.n,t=this.getBigRandom(e),n=this.ecparams.G.multiply(t),r=n.getX().toBigInteger(),i=n.getY().toBigInteger(),o=this.ecparams.keylen/4,a=("0000000000"+t.toString(16)).slice(-o),s="04"+("0000000000"+r.toString(16)).slice(-o)+("0000000000"+i.toString(16)).slice(-o);return this.setPrivateKeyHex(a),this.setPublicKeyHex(s),{ecprvhex:a,ecpubhex:s}},this.signWithMessageHash=function(e){return this.signHex(e,this.prvKeyHex)},this.signHex=function(e,t){var n=new r(t,16),i=this.ecparams.n,a=new r(e.substring(0,this.ecparams.keylen/4),16);do{var s=this.getBigRandom(i),u=this.ecparams.G.multiply(s).getX().toBigInteger().mod(i)}while(u.compareTo(r.ZERO)<=0);var l=s.modInverse(i).multiply(a.add(n.multiply(u))).mod(i);return o.biRSSigToASN1Sig(u,l)},this.sign=function(e,t){var n=t,i=this.ecparams.n,o=r.fromByteArrayUnsigned(e);do{var a=this.getBigRandom(i),s=this.ecparams.G.multiply(a).getX().toBigInteger().mod(i)}while(s.compareTo(E.ZERO)<=0);var u=a.modInverse(i).multiply(o.add(n.multiply(s))).mod(i);return this.serializeSig(s,u)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,n){try{var a,s,u=o.parseSigHex(t);a=u.r,s=u.s;var l=i.decodeFromHex(this.ecparams.curve,n),c=new r(e.substring(0,this.ecparams.keylen/4),16);return this.verifyRaw(c,a,s,l)}catch(e){return!1}},this.verify=function(e,t,o){var a,s,u;if(Bitcoin.Util.isArray(t)){var l=this.parseSig(t);a=l.r,s=l.s}else{if("object"!==(void 0===t?"undefined":n(t))||!t.r||!t.s)throw"Invalid value for signature";a=t.r,s=t.s}if(o instanceof ae)u=o;else{if(!Bitcoin.Util.isArray(o))throw"Invalid format for pubkey value, must be byte array or ECPointFp";u=i.decodeFrom(this.ecparams.curve,o)}var c=r.fromByteArrayUnsigned(e);return this.verifyRaw(c,a,s,u)},this.verifyRaw=function(e,t,n,i){var o=this.ecparams.n,a=this.ecparams.G;if(t.compareTo(r.ONE)<0||t.compareTo(o)>=0)return!1;if(n.compareTo(r.ONE)<0||n.compareTo(o)>=0)return!1;var s=n.modInverse(o),u=e.multiply(s).mod(o),l=t.multiply(s).mod(o);return a.multiply(u).add(i.multiply(l)).getX().toBigInteger().mod(o).equals(t)},this.serializeSig=function(e,t){var n=e.toByteArraySigned(),r=t.toByteArraySigned(),i=[];return i.push(2),i.push(n.length),(i=i.concat(n)).push(2),i.push(r.length),(i=i.concat(r)).unshift(i.length),i.unshift(48),i},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(2!=e[t=2])throw new Error("First element in signature must be a DERInteger");var n=e.slice(t+2,t+2+e[t+1]);if(2!=e[t+=2+e[t+1]])throw new Error("Second element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:r.fromByteArrayUnsigned(n),s:r.fromByteArrayUnsigned(i)}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var n=this.ecparams.n;return{r:r.fromByteArrayUnsigned(e.slice(1,33)).mod(n),s:r.fromByteArrayUnsigned(e.slice(33,65)).mod(n),i:t}},this.readPKCS5PrvKeyHex=function(e){if(!1===c(e))throw new Error("not ASN.1 hex string");var t,n,r;try{t=l(e,0,["[0]",0],"06"),n=l(e,0,[1],"04");try{r=l(e,0,["[1]",0],"03")}catch(e){}}catch(e){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=s(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(r),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){if(!1===c(e))throw new t("not ASN.1 hex string");var n,r,i;try{l(e,0,[1,0],"06"),n=l(e,0,[1,1],"06"),r=l(e,0,[2,0,1],"04");try{i=l(e,0,[2,0,"[1]",0],"03")}catch(e){}}catch(e){throw new t("malformed PKCS#8 plain ECC private key")}if(this.curveName=s(n),void 0===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){if(!1===c(e))throw new t("not ASN.1 hex string");var n,r;try{l(e,0,[0,0],"06"),n=l(e,0,[0,1],"06"),r=l(e,0,[1],"03")}catch(e){throw new t("malformed PKCS#8 ECC public key")}if(this.curveName=s(n),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(r)},this.readCertPubKeyHex=function(e,n){if(!1===c(e))throw new t("not ASN.1 hex string");var r,i;try{r=l(e,0,[0,5,0,1],"06"),i=l(e,0,[0,5,1],"03")}catch(e){throw new t("malformed X.509 certificate ECC public key")}if(this.curveName=s(r),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},le.crypto.ECDSA.parseSigHex=function(e){var t=le.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new E(t.r,16),s:new E(t.s,16)}},le.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=pe,n=t.getChildIdx,r=t.getV;if(t.checkStrictDER(e,0),"30"!=e.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var i=n(e,0);if(2!=i.length)throw new Error("signature shall have two elements");var o=i[0],a=i[1];if("02"!=e.substr(o,2))throw new Error("1st item not ASN.1 integer");if("02"!=e.substr(a,2))throw new Error("2nd item not ASN.1 integer");return{r:r(e,o),s:r(e,a)}},le.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=le.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,r=t.s;if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),n.length%32==30&&(n="00"+n),r.length%32==30&&(r="00"+r),n.length%32!=0)throw"unknown ECDSA sig r length error";if(r.length%32!=0)throw"unknown ECDSA sig s length error";return n+r},le.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return le.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},le.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new E(e,16),r=new E(t,16);return le.crypto.ECDSA.biRSSigToASN1Sig(n,r)},le.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=le.asn1,r=new n.DERInteger({bigint:e}),i=new n.DERInteger({bigint:t});return new n.DERSequence({array:[r,i]}).getEncodedHex()},le.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(e)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":null},void 0!==le&&le||(t.KJUR=le={}),void 0!==le.crypto&&le.crypto||(le.crypto={}),le.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new E(e,16)}this.getByName=function(n){var r=n;if(void 0!==t[r]&&(r=t[n]),void 0!==e[r])return e[r];throw"unregistered EC curve name: "+r},this.regist=function(r,i,o,a,s,u,l,c,f,p,d,h){e[r]={};var g=n(o),v=n(a),y=n(s),m=n(u),b=n(l),w=new se(g,v,y),_=w.decodePointHex("04"+c+f);e[r].name=r,e[r].keylen=i,e[r].curve=w,e[r].G=_,e[r].n=m,e[r].h=b,e[r].oid=d,e[r].info=h;for(var S=0;S<p.length;S++)t[p[S]]=r}},le.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),le.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),le.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),le.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),le.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),le.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),le.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),le.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),le.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),le.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]);var Be=function(){var e=function(e,n,r){return t(y.AES,e,n,r)},t=function(e,t,n,r){var i=y.enc.Hex.parse(t),o=y.enc.Hex.parse(n),a=y.enc.Hex.parse(r),s={};s.key=o,s.iv=a,s.ciphertext=i;var u=e.decrypt(s,o,{iv:a});return y.enc.Hex.stringify(u)},n=function(e,t,n){return r(y.AES,e,t,n)},r=function(e,t,n,r){var i=y.enc.Hex.parse(t),o=y.enc.Hex.parse(n),a=y.enc.Hex.parse(r),s=e.encrypt(i,o,{iv:a}),u=y.enc.Hex.parse(s.toString());return y.enc.Base64.stringify(u)},i={"AES-256-CBC":{proc:e,eproc:n,keylen:32,ivlen:16},"AES-192-CBC":{proc:e,eproc:n,keylen:24,ivlen:16},"AES-128-CBC":{proc:e,eproc:n,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(e,n,r){return t(y.TripleDES,e,n,r)},eproc:function(e,t,n){return r(y.TripleDES,e,t,n)},keylen:24,ivlen:8},"DES-CBC":{proc:function(e,n,r){return t(y.DES,e,n,r)},eproc:function(e,t,n){return r(y.DES,e,t,n)},keylen:8,ivlen:8}},o=function(e){var t={},n=e.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));n&&(t.cipher=n[1],t.ivsalt=n[2]);var r=e.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));r&&(t.type=r[1]);var i=-1,o=0;-1!=e.indexOf("\r\n\r\n")&&(i=e.indexOf("\r\n\r\n"),o=2),-1!=e.indexOf("\n\n")&&(i=e.indexOf("\n\n"),o=1);var a=e.indexOf("-----END");if(-1!=i&&-1!=a){var s=e.substring(i+2*o,a-o);s=s.replace(/\s+/g,""),t.data=s}return t},a=function(e,t,n){for(var r=n.substring(0,16),o=y.enc.Hex.parse(r),a=y.enc.Utf8.parse(t),s=i[e].keylen+i[e].ivlen,u="",l=null;;){var c=y.algo.MD5.create();if(null!=l&&c.update(l),c.update(a),c.update(o),l=c.finalize(),(u+=y.enc.Hex.stringify(l)).length>=2*s)break}var f={};return f.keyhex=u.substr(0,2*i[e].keylen),f.ivhex=u.substr(2*i[e].keylen,2*i[e].ivlen),f},s=function(e,t,n,r){var o=y.enc.Base64.parse(e),a=y.enc.Hex.stringify(o);return(0,i[t].proc)(a,n,r)};return{version:"1.0.0",parsePKCS5PEM:function(e){return o(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,n){return a(e,t,n)},decryptKeyB64:function(e,t,n,r){return s(e,t,n,r)},getDecryptedKeyHex:function(e,t){var n=o(e),r=(n.type,n.cipher),i=n.ivsalt,u=n.data,l=a(r,t,i).keyhex;return s(u,r,l,i)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,n,r,o){var s="";if(void 0!==r&&null!=r||(r="AES-256-CBC"),void 0===i[r])throw"KEYUTIL unsupported algorithm: "+r;void 0!==o&&null!=o||(o=function(e){var t=y.lib.WordArray.random(e);return y.enc.Hex.stringify(t)}(i[r].ivlen).toUpperCase());var u=function(e,t,n,r){return(0,i[t].eproc)(e,n,r)}(t,r,a(r,n,o).keyhex,o);return s="-----BEGIN "+e+" PRIVATE KEY-----\r\n",s+="Proc-Type: 4,ENCRYPTED\r\n",s+="DEK-Info: "+r+","+o+"\r\n",s+="\r\n",(s+=u.replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+e+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(t){var n=pe,r=n.getChildIdx,i=n.getV,o={},a=r(t,0);if(2!=a.length)throw"malformed format: SEQUENCE(0).items != 2: "+a.length;o.ciphertext=i(t,a[1]);var s=r(t,a[0]);if(2!=s.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+s.length;if("2a864886f70d01050d"!=i(t,s[0]))throw"this only supports pkcs5PBES2";var u=r(t,s[1]);if(2!=s.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+u.length;var l=r(t,u[1]);if(2!=l.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+l.length;if("2a864886f70d0307"!=i(t,l[0]))throw"this only supports TripleDES";o.encryptionSchemeAlg="TripleDES",o.encryptionSchemeIV=i(t,l[1]);var c=r(t,u[0]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length;if("2a864886f70d01050c"!=i(t,c[0]))throw"this only supports pkcs5PBKDF2";var f=r(t,c[1]);if(f.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+f.length;o.pbkdf2Salt=i(t,f[0]);var p=i(t,f[1]);try{o.pbkdf2Iter=parseInt(p,16)}catch(e){throw"malformed format pbkdf2Iter: "+p}return o},getPBKDF2KeyHexFromParam:function(e,t){var n=y.enc.Hex.parse(e.pbkdf2Salt),r=e.pbkdf2Iter,i=y.PBKDF2(t,n,{keySize:6,iterations:r});return y.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var n=Ae(e,"ENCRYPTED PRIVATE KEY"),r=this.parseHexOfEncryptedPKCS8(n),i=Be.getPBKDF2KeyHexFromParam(r,t),o={};o.ciphertext=y.enc.Hex.parse(r.ciphertext);var a=y.enc.Hex.parse(i),s=y.enc.Hex.parse(r.encryptionSchemeIV),u=y.TripleDES.decrypt(o,a,{iv:s});return y.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(e,t){var n=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(n)},parsePlainPrivatePKCS8Hex:function(e){var t=pe,n=t.getChildIdx,r=t.getV,i={algparam:null};if("30"!=e.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var o=n(e,0);if(3!=o.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=e.substr(o[1],2))throw"malformed PKCS8 private key(code:003)";var a=n(e,o[1]);if(2!=a.length)throw"malformed PKCS8 private key(code:004)";if("06"!=e.substr(a[0],2))throw"malformed PKCS8 private key(code:005)";if(i.algoid=r(e,a[0]),"06"==e.substr(a[1],2)&&(i.algparam=r(e,a[1])),"04"!=e.substr(o[2],2))throw"malformed PKCS8 private key(code:006)";return i.keyidx=t.getVidx(e,o[2]),i},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=Ae(e,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(t)},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,n=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==n.algoid)t=new ie;else if("2a8648ce380401"==n.algoid)t=new le.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw"unsupported private key algorithm";t=new le.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,n=pe.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===n)t=new ie;else if("2a8648ce380401"===n)t=new le.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw"unsupported PKCS#8 public key hex";t=new le.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=pe,n=t.getChildIdx,r=t.getV,i={};if("30"!=e.substr(0,2))throw"malformed RSA key(code:001)";var o=n(e,0);if(2!=o.length)throw"malformed RSA key(code:002)";if("02"!=e.substr(o[0],2))throw"malformed RSA key(code:003)";if(i.n=r(e,o[0]),"02"!=e.substr(o[1],2))throw"malformed RSA key(code:004)";return i.e=r(e,o[1]),i},parsePublicPKCS8Hex:function(e){var t=pe,n=t.getChildIdx,r=t.getV,i={algparam:null},o=n(e,0);if(2!=o.length)throw"outer DERSequence shall have 2 elements: "+o.length;var a=o[0];if("30"!=e.substr(a,2))throw"malformed PKCS8 public key(code:001)";var s=n(e,a);if(2!=s.length)throw"malformed PKCS8 public key(code:002)";if("06"!=e.substr(s[0],2))throw"malformed PKCS8 public key(code:003)";if(i.algoid=r(e,s[0]),"06"==e.substr(s[1],2)?i.algparam=r(e,s[1]):"30"==e.substr(s[1],2)&&(i.algparam={},i.algparam.p=t.getVbyList(e,s[1],[0],"02"),i.algparam.q=t.getVbyList(e,s[1],[1],"02"),i.algparam.g=t.getVbyList(e,s[1],[2],"02")),"03"!=e.substr(o[1],2))throw"malformed PKCS8 public key(code:004)";return i.key=r(e,o[1]).substr(2),i}}}();Be.getKey=function(e,t,n){var r,i=(y=pe).getChildIdx,o=(y.getV,y.getVbyList),a=le.crypto,s=a.ECDSA,u=a.DSA,l=ie,c=Ae,f=Be;if(void 0!==l&&e instanceof l)return e;if(void 0!==s&&e instanceof s)return e;if(void 0!==u&&e instanceof u)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new s({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new s({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(A=new l).setPublic(e.n,e.e),A;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi)return(A=new l).setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),A;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p)return(A=new l).setPrivate(e.n,e.e,e.d),A;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x)return(A=new u).setPublic(e.p,e.q,e.g,e.y),A;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x)return(A=new u).setPrivate(e.p,e.q,e.g,e.y,e.x),A;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(A=new l).setPublic(we(e.n),we(e.e)),A;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi)return(A=new l).setPrivateEx(we(e.n),we(e.e),we(e.d),we(e.p),we(e.q),we(e.dp),we(e.dq),we(e.qi)),A;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d)return(A=new l).setPrivate(we(e.n),we(e.e),we(e.d)),A;if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var p=(O=new s({curve:e.crv})).ecparams.keylen/4,d="04"+("0000000000"+we(e.x)).slice(-p)+("0000000000"+we(e.y)).slice(-p);return O.setPublicKeyHex(d),O}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){p=(O=new s({curve:e.crv})).ecparams.keylen/4,d="04"+("0000000000"+we(e.x)).slice(-p)+("0000000000"+we(e.y)).slice(-p);var h=("0000000000"+we(e.d)).slice(-p);return O.setPublicKeyHex(d),O.setPrivateKeyHex(h),O}if("pkcs5prv"===n){var g,v=e,y=pe;if(9===(g=i(v,0)).length)(A=new l).readPKCS5PrvKeyHex(v);else if(6===g.length)(A=new u).readPKCS5PrvKeyHex(v);else{if(!(g.length>2&&"04"===v.substr(g[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(A=new s).readPKCS5PrvKeyHex(v)}return A}if("pkcs8prv"===n)return f.getKeyFromPlainPrivatePKCS8Hex(e);if("pkcs8pub"===n)return f._getKeyFromPublicPKCS8Hex(e);if("x509pub"===n)return Ke.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return Ke.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var m=Ae(e,"PUBLIC KEY");return f._getKeyFromPublicPKCS8Hex(m)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var b=c(e,"RSA PRIVATE KEY");return f.getKey(b,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var w=o(r=c(e,"DSA PRIVATE KEY"),0,[1],"02"),_=o(r,0,[2],"02"),S=o(r,0,[3],"02"),x=o(r,0,[4],"02"),T=o(r,0,[5],"02");return(A=new u).setPrivate(new E(w,16),new E(_,16),new E(S,16),new E(x,16),new E(T,16)),A}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED"))return b=c(e,"EC PRIVATE KEY"),f.getKey(b,null,"pkcs5prv");if(-1!=e.indexOf("-END PRIVATE KEY-"))return f.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var k=f.getDecryptedKeyHex(e,t),C=new ie;return C.readPKCS5PrvKeyHex(k),C}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var O,A=o(r=f.getDecryptedKeyHex(e,t),0,[1],"04"),P=o(r,0,[2,0],"06"),I=o(r,0,[3,0],"03").substr(2);if(void 0===le.crypto.OID.oidhex2name[P])throw"undefined OID(hex) in KJUR.crypto.OID: "+P;return(O=new s({curve:le.crypto.OID.oidhex2name[P]})).setPublicKeyHex(I),O.setPrivateKeyHex(A),O.isPublic=!1,O}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED"))return w=o(r=f.getDecryptedKeyHex(e,t),0,[1],"02"),_=o(r,0,[2],"02"),S=o(r,0,[3],"02"),x=o(r,0,[4],"02"),T=o(r,0,[5],"02"),(A=new u).setPrivate(new E(w,16),new E(_,16),new E(S,16),new E(x,16),new E(T,16)),A;if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return f.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error("not supported argument")},Be.generateKeypair=function(e,t){if("RSA"==e){var n=t;(a=new ie).generate(n,"10001"),a.isPrivate=!0,a.isPublic=!0;var r=new ie,i=a.n.toString(16),o=a.e.toString(16);return r.setPublic(i,o),r.isPrivate=!1,r.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=r,s}if("EC"==e){var a,s,u=t,l=new le.crypto.ECDSA({curve:u}).generateKeyPairHex();return(a=new le.crypto.ECDSA({curve:u})).setPublicKeyHex(l.ecpubhex),a.setPrivateKeyHex(l.ecprvhex),a.isPrivate=!0,a.isPublic=!1,(r=new le.crypto.ECDSA({curve:u})).setPublicKeyHex(l.ecpubhex),r.isPrivate=!1,r.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=r,s}throw"unknown algorithm: "+e},Be.getPEM=function(e,t,n,r,i,o){var a=le,s=a.asn1,u=s.DERObjectIdentifier,l=s.DERInteger,c=s.ASN1Util.newObject,f=s.x509.SubjectPublicKeyInfo,p=a.crypto,d=p.DSA,h=p.ECDSA,g=ie;function v(e){return c({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]})}function m(e){return c({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]})}function b(e){return c({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]})}if((void 0!==g&&e instanceof g||void 0!==d&&e instanceof d||void 0!==h&&e instanceof h)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t))return Oe(E=new f(e).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==t&&void 0!==g&&e instanceof g&&(void 0===n||null==n)&&1==e.isPrivate)return Oe(E=v(e).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==t&&void 0!==h&&e instanceof h&&(void 0===n||null==n)&&1==e.isPrivate){var w=new u({name:e.curveName}).getEncodedHex(),_=m(e).getEncodedHex(),S="";return(S+=Oe(w,"EC PARAMETERS"))+Oe(_,"EC PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==d&&e instanceof d&&(void 0===n||null==n)&&1==e.isPrivate)return Oe(E=b(e).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==t&&void 0!==g&&e instanceof g&&void 0!==n&&null!=n&&1==e.isPrivate){var E=v(e).getEncodedHex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",E,n,r,o)}if("PKCS5PRV"==t&&void 0!==h&&e instanceof h&&void 0!==n&&null!=n&&1==e.isPrivate)return E=m(e).getEncodedHex(),void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",E,n,r,o);if("PKCS5PRV"==t&&void 0!==d&&e instanceof d&&void 0!==n&&null!=n&&1==e.isPrivate)return E=b(e).getEncodedHex(),void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",E,n,r,o);var x=function(e,t){var n=T(e,t);return new c({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:n.pbkdf2Salt}},{int:n.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:n.encryptionSchemeIV}}]}]}]},{octstr:{hex:n.ciphertext}}]}).getEncodedHex()},T=function(e,t){var n=y.lib.WordArray.random(8),r=y.lib.WordArray.random(8),i=y.PBKDF2(t,n,{keySize:6,iterations:100}),o=y.enc.Hex.parse(e),a=y.TripleDES.encrypt(o,i,{iv:r})+"",s={};return s.ciphertext=a,s.pbkdf2Salt=y.enc.Hex.stringify(n),s.pbkdf2Iter=100,s.encryptionSchemeAlg="DES-EDE3-CBC",s.encryptionSchemeIV=y.enc.Hex.stringify(r),s};if("PKCS8PRV"==t&&null!=g&&e instanceof g&&1==e.isPrivate){var k=v(e).getEncodedHex();return E=c({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Oe(E,"PRIVATE KEY"):Oe(_=x(E,n),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==t&&void 0!==h&&e instanceof h&&1==e.isPrivate)return k=new c({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]}).getEncodedHex(),E=c({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Oe(E,"PRIVATE KEY"):Oe(_=x(E,n),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==t&&void 0!==d&&e instanceof d&&1==e.isPrivate)return k=new l({bigint:e.x}).getEncodedHex(),E=c({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:k}}]}).getEncodedHex(),void 0===n||null==n?Oe(E,"PRIVATE KEY"):Oe(_=x(E,n),"ENCRYPTED PRIVATE KEY");throw new Error("unsupported object nor format")},Be.getKeyFromCSRPEM=function(e){var t=Ae(e,"CERTIFICATE REQUEST");return Be.getKeyFromCSRHex(t)},Be.getKeyFromCSRHex=function(e){var t=Be.parseCSRHex(e);return Be.getKey(t.p8pubkeyhex,null,"pkcs8pub")},Be.parseCSRHex=function(e){var t=pe,n=t.getChildIdx,r=t.getTLV,i={},o=e;if("30"!=o.substr(0,2))throw"malformed CSR(code:001)";var a=n(o,0);if(a.length<1)throw"malformed CSR(code:002)";if("30"!=o.substr(a[0],2))throw"malformed CSR(code:003)";var s=n(o,a[0]);if(s.length<3)throw"malformed CSR(code:004)";return i.p8pubkeyhex=r(o,s[2]),i},Be.getKeyID=function(e){var t=Be,n=pe;"string"==typeof e&&-1!=e.indexOf("BEGIN ")&&(e=t.getKey(e));var r=Ae(t.getPEM(e)),i=n.getIdxbyList(r,0,[1]),o=n.getV(r,i).substring(2);return le.crypto.Util.hashHex(o,"sha1")},Be.getJWKFromKey=function(e){var t={};if(e instanceof ie&&e.isPrivate)return t.kty="RSA",t.n=be(e.n.toString(16)),t.e=be(e.e.toString(16)),t.d=be(e.d.toString(16)),t.p=be(e.p.toString(16)),t.q=be(e.q.toString(16)),t.dp=be(e.dmp1.toString(16)),t.dq=be(e.dmq1.toString(16)),t.qi=be(e.coeff.toString(16)),t;if(e instanceof ie&&e.isPublic)return t.kty="RSA",t.n=be(e.n.toString(16)),t.e=be(e.e.toString(16)),t;if(e instanceof le.crypto.ECDSA&&e.isPrivate){if("P-256"!==(r=e.getShortNISTPCurveName())&&"P-384"!==r)throw"unsupported curve name for JWT: "+r;var n=e.getPublicKeyXYHex();return t.kty="EC",t.crv=r,t.x=be(n.x),t.y=be(n.y),t.d=be(e.prvKeyHex),t}if(e instanceof le.crypto.ECDSA&&e.isPublic){var r;if("P-256"!==(r=e.getShortNISTPCurveName())&&"P-384"!==r)throw"unsupported curve name for JWT: "+r;return n=e.getPublicKeyXYHex(),t.kty="EC",t.crv=r,t.x=be(n.x),t.y=be(n.y),t}throw"not supported key object"},ie.getPosArrayOfChildrenFromHex=function(e){return pe.getChildIdx(e,0)},ie.getHexValueArrayOfChildrenFromHex=function(e){var t,n=pe.getV,r=n(e,(t=ie.getPosArrayOfChildrenFromHex(e))[0]),i=n(e,t[1]),o=n(e,t[2]),a=n(e,t[3]),s=n(e,t[4]),u=n(e,t[5]),l=n(e,t[6]),c=n(e,t[7]),f=n(e,t[8]);return(t=new Array).push(r,i,o,a,s,u,l,c,f),t},ie.prototype.readPrivateKeyFromPEMString=function(e){var t=Ae(e),n=ie.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},ie.prototype.readPKCS5PrvKeyHex=function(e){var t=ie.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},ie.prototype.readPKCS8PrvKeyHex=function(e){var t,n,r,i,o,a,s,u,l=pe,c=l.getVbyListEx;if(!1===l.isASN1HEX(e))throw new Error("not ASN.1 hex string");try{t=c(e,0,[2,0,1],"02"),n=c(e,0,[2,0,2],"02"),r=c(e,0,[2,0,3],"02"),i=c(e,0,[2,0,4],"02"),o=c(e,0,[2,0,5],"02"),a=c(e,0,[2,0,6],"02"),s=c(e,0,[2,0,7],"02"),u=c(e,0,[2,0,8],"02")}catch(e){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,n,r,i,o,a,s,u)},ie.prototype.readPKCS5PubKeyHex=function(e){var t=pe,n=t.getV;if(!1===t.isASN1HEX(e))throw new Error("keyHex is not ASN.1 hex string");var r=t.getChildIdx(e,0);if(2!==r.length||"02"!==e.substr(r[0],2)||"02"!==e.substr(r[1],2))throw new Error("wrong hex for PKCS#5 public key");var i=n(e,r[0]),o=n(e,r[1]);this.setPublic(i,o)},ie.prototype.readPKCS8PubKeyHex=function(e){var t=pe;if(!1===t.isASN1HEX(e))throw new Error("not ASN.1 hex string");if("06092a864886f70d010101"!==t.getTLVbyListEx(e,0,[0,0]))throw new Error("not PKCS8 RSA public key");var n=t.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(n)},ie.prototype.readCertPubKeyHex=function(e,t){var n,r;(n=new Ke).readCertHex(e),r=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(r)};var He=new RegExp("[^0-9a-f]","gi");function Ve(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e}function qe(e,t,n){for(var r="",i=0;r.length<t;)r+=Ee(n(xe(e+String.fromCharCode.apply(String,[(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return r}function We(e){for(var t in le.crypto.Util.DIGESTINFOHEAD){var n=le.crypto.Util.DIGESTINFOHEAD[t],r=n.length;if(e.substring(0,r)==n)return[t,e.substring(r)]}return[]}function Ke(e){var t,n=pe,r=n.getChildIdx,i=n.getV,o=n.getTLV,a=n.getVbyList,s=n.getVbyListEx,u=n.getTLVbyList,l=n.getTLVbyListEx,c=n.getIdxbyList,f=n.getIdxbyListEx,p=n.getVidx,d=n.oidname,h=n.hextooidstr,g=Ke,v=Ae;try{t=le.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(e){}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==u(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return s(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var e=l(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(e)},this.getAlgorithmIdentifierName=function(e){for(var n in t)if(e===t[n])return n;return d(s(e,0,[0],"06"))},this.getIssuer=function(){return this.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return u(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return g.hex2dn(this.getIssuerHex())},this.getSubject=function(){return this.getX500Name(this.getSubjectHex())},this.getSubjectHex=function(){return u(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return g.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var e=a(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),decodeURIComponent(e)},this.getNotAfter=function(){var e=a(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),decodeURIComponent(e)},this.getPublicKeyHex=function(){return n.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return c(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return c(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return Be.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var e=u(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(e)},this.getSignatureValueHex=function(){return a(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=u(this.hex,0,[0],"30"),i=new le.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.parseExt=function(e){var t,o,s;if(void 0===e){if(s=this.hex,3!==this.version)return-1;t=c(s,0,[0,7,0],"30"),o=r(s,t)}else{s=Ae(e);var u=c(s,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=i(s,u))return void(this.aExtInfo=new Array);t=c(s,0,[0,3,0,1,0],"30"),o=r(s,t),this.hex=s}this.aExtInfo=new Array;for(var l=0;l<o.length;l++){var f={critical:!1},d=0;3===r(s,o[l]).length&&(f.critical=!0,d=1),f.oid=n.hextooidstr(a(s,o[l],[0],"06"));var h=c(s,o[l],[1+d]);f.vidx=p(s,h),this.aExtInfo.push(f)}},this.getExtInfo=function(e){var t=this.aExtInfo,n=e;if(e.match(/^[0-9.]+$/)||(n=le.asn1.x509.OID.name2oid(e)),""!==n)for(var r=0;r<t.length;r++)if(t[r].oid===n)return t[r]},this.getExtBasicConstraints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("basicConstraints");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"basicConstraints"};if(t&&(r.critical=!0),"3000"===e)return r;if("30030101ff"===e)return r.cA=!0,r;if("30060101ff02"===e.substr(0,12)){var a=i(e,10),s=parseInt(a,16);return r.cA=!0,r.pathLen=s,r}throw new Error("hExtV parse error: "+e)},this.getExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("keyUsage");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"keyUsage"};return t&&(r.critical=!0),r.names=this.getExtKeyUsageString(e).split(","),r},this.getExtKeyUsageBin=function(e){if(void 0===e){var t=this.getExtInfo("keyUsage");if(void 0===t)return"";e=o(this.hex,t.vidx)}if(8!=e.length&&10!=e.length)throw new Error("malformed key usage value: "+e);var n="000000000000000"+parseInt(e.substr(6),16).toString(2);return 8==e.length&&(n=n.slice(-8)),10==e.length&&(n=n.slice(-16)),""==(n=n.replace(/0+$/,""))&&(n="0"),n},this.getExtKeyUsageString=function(e){for(var t=this.getExtKeyUsageBin(e),n=new Array,r=0;r<t.length;r++)"1"==t.substr(r,1)&&n.push(Ke.KEYUSAGE_NAME[r]);return n.join(",")},this.getExtSubjectKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectKeyIdentifier");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"subjectKeyIdentifier"};t&&(r.critical=!0);var a=i(e,0);return r.kid={hex:a},r},this.getExtAuthorityKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityKeyIdentifier");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var a={extname:"authorityKeyIdentifier"};t&&(a.critical=!0);for(var s=r(e,0),u=0;u<s.length;u++){var l=e.substr(s[u],2);if("80"===l&&(a.kid={hex:i(e,s[u])}),"a1"===l){var c=o(e,s[u]),f=this.getGeneralNames(c);a.issuer=f[0].dn}"82"===l&&(a.sn={hex:i(e,s[u])})}return a},this.getExtExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("extKeyUsage");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var a={extname:"extKeyUsage",array:[]};t&&(a.critical=!0);for(var s=r(e,0),u=0;u<s.length;u++)a.array.push(d(i(e,s[u])));return a},this.getExtExtKeyUsageName=function(){var e=this.getExtInfo("extKeyUsage");if(void 0===e)return e;var t=new Array,n=o(this.hex,e.vidx);if(""===n)return t;for(var a=r(n,0),s=0;s<a.length;s++)t.push(d(i(n,a[s])));return t},this.getExtSubjectAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectAltName");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"subjectAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getExtIssuerAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("issuerAltName");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"issuerAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getGeneralNames=function(e){for(var t=r(e,0),n=[],i=0;i<t.length;i++){var a=this.getGeneralName(o(e,t[i]));void 0!==a&&n.push(a)}return n},this.getGeneralName=function(e){var t=e.substr(0,2),n=i(e,0),r=Ee(n);return"81"==t?{rfc822:r}:"82"==t?{dns:r}:"86"==t?{uri:r}:"87"==t?{ip:Re(n)}:"a4"==t?{dn:this.getX500Name(n)}:void 0},this.getExtSubjectAltName2=function(){var e,t,n,a=this.getExtInfo("subjectAltName");if(void 0===a)return a;for(var s=new Array,u=o(this.hex,a.vidx),l=r(u,0),c=0;c<l.length;c++)n=u.substr(l[c],2),e=i(u,l[c]),"81"===n&&(t=Se(e),s.push(["MAIL",t])),"82"===n&&(t=Se(e),s.push(["DNS",t])),"84"===n&&(t=Ke.hex2dn(e,0),s.push(["DN",t])),"86"===n&&(t=Se(e),s.push(["URI",t])),"87"===n&&(t=Re(e),s.push(["IP",t]));return s},this.getExtCRLDistributionPoints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("cRLDistributionPoints");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"cRLDistributionPoints",array:[]};t&&(i.critical=!0);for(var a=r(e,0),s=0;s<a.length;s++){var u=o(e,a[s]);i.array.push(this.getDistributionPoint(u))}return i},this.getDistributionPoint=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var a=e.substr(n[i],2),s=o(e,n[i]);"a0"==a&&(t.dpname=this.getDistributionPointName(s))}return t},this.getDistributionPointName=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var a=e.substr(n[i],2),s=o(e,n[i]);"a0"==a&&(t.full=this.getGeneralNames(s))}return t},this.getExtCRLDistributionPointsURI=function(){var e=this.getExtInfo("cRLDistributionPoints");if(void 0===e)return e;for(var t=new Array,n=r(this.hex,e.vidx),i=0;i<n.length;i++)try{var o=Se(a(this.hex,n[i],[0,0,0],"86"));t.push(o)}catch(e){}return t},this.getExtAIAInfo=function(){var e=this.getExtInfo("authorityInfoAccess");if(void 0===e)return e;for(var t={ocsp:[],caissuer:[]},n=r(this.hex,e.vidx),i=0;i<n.length;i++){var o=a(this.hex,n[i],[0],"06"),s=a(this.hex,n[i],[1],"86");"2b06010505073001"===o&&t.ocsp.push(Se(s)),"2b06010505073002"===o&&t.caissuer.push(Se(s))}return t},this.getExtAuthorityInfoAccess=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityInfoAccess");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"authorityInfoAccess",array:[]};t&&(i.critical=!0);for(var u=r(e,0),l=0;l<u.length;l++){var c=s(e,u[l],[0],"06"),f=Se(a(e,u[l],[1],"86"));if("2b06010505073001"==c)i.array.push({ocsp:f});else{if("2b06010505073002"!=c)throw new Error("unknown method: "+c);i.array.push({caissuer:f})}}return i},this.getExtCertificatePolicies=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("certificatePolicies");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"certificatePolicies",array:[]};t&&(i.critical=!0);for(var a=r(e,0),s=0;s<a.length;s++){var u=o(e,a[s]),l=this.getPolicyInformation(u);i.array.push(l)}return i},this.getPolicyInformation=function(e){var t={},n=a(e,0,[0],"06");t.policyoid=d(n);var i=f(e,0,[1],"30");if(-1!=i){t.array=[];for(var s=r(e,i),u=0;u<s.length;u++){var l=o(e,s[u]),c=this.getPolicyQualifierInfo(l);t.array.push(c)}}return t},this.getPolicyQualifierInfo=function(e){var t={},n=a(e,0,[0],"06");if("2b06010505070201"===n){var r=s(e,0,[1],"16");t.cps=Ee(r)}else if("2b06010505070202"===n){var i=u(e,0,[1],"30");t.unotice=this.getUserNotice(i)}return t},this.getUserNotice=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var a=o(e,n[i]);"30"!=a.substr(0,2)&&(t.exptext=this.getDisplayText(a))}return t},this.getDisplayText=function(e){var t={};return t.type={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"}[e.substr(0,2)],t.str=Ee(i(e,0)),t},this.getExtCRLNumber=function(e,t){var n={extname:"cRLNumber"};if(t&&(n.critical=!0),"02"==e.substr(0,2))return n.num={hex:i(e,0)},n;throw new Error("hExtV parse error: "+e)},this.getExtCRLReason=function(e,t){var n={extname:"cRLReason"};if(t&&(n.critical=!0),"0a"==e.substr(0,2))return n.code=parseInt(i(e,0),16),n;throw new Error("hExtV parse error: "+e)},this.getExtOcspNonce=function(e,t){var n={extname:"ocspNonce"};t&&(n.critical=!0);var r=i(e,0);return n.hex=r,n},this.getExtOcspNoCheck=function(e,t){var n={extname:"ocspNoCheck"};return t&&(n.critical=!0),n},this.getExtAdobeTimeStamp=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("adobeTimeStamp");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"adobeTimeStamp"};t&&(i.critical=!0);var a=r(e,0);if(a.length>1){var s=o(e,a[1]),u=this.getGeneralName(s);null!=u.uri&&(i.uri=u.uri)}if(a.length>2){var l=o(e,a[2]);"0101ff"==l&&(i.reqauth=!0),"010100"==l&&(i.reqauth=!1)}return i},this.getX500NameRule=function(e){for(var t=null,n=[],r=0;r<e.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(i[o]);for(r=0;r<n.length;r++){var a=n[r],s=a.ds,u=a.value,l=a.type;if("prn"!=s&&"utf8"!=s&&"ia5"!=s)return"mixed";if("ia5"==s){if("CN"!=l)return"mixed";if(le.lang.String.isMail(u))continue;return"mixed"}if("C"==l){if("prn"==s)continue;return"mixed"}if(null==t)t=s;else if(t!==s)return"mixed"}return null==t?"prn":t},this.getX500Name=function(e){var t=this.getX500NameArray(e);return{array:t,str:this.dnarraytostr(t)}},this.getX500NameArray=function(e){for(var t=[],n=r(e,0),i=0;i<n.length;i++)t.push(this.getRDN(o(e,n[i])));return t},this.getRDN=function(e){for(var t=[],n=r(e,0),i=0;i<n.length;i++)t.push(this.getAttrTypeAndValue(o(e,n[i])));return t},this.getAttrTypeAndValue=function(e){var t={type:null,value:null,ds:null},n=r(e,0),i=a(e,n[0],[],"06"),o=a(e,n[1],[]),s=le.asn1.ASN1Util.oidHexToInt(i);return t.type=le.asn1.x509.OID.oid2atype(s),t.value=Ee(o),t.ds=this.HEX2STAG[e.substr(n[1],2)],t},this.readCertPEM=function(e){this.readCertHex(v(e))},this.readCertHex=function(e){this.hex=e,this.getVersion();try{c(this.hex,0,[0,7],"a3"),this.parseExt()}catch(e){}},this.getParam=function(){var e={};return e.version=this.getVersion(),e.serial={hex:this.getSerialNumberHex()},e.sigalg=this.getSignatureAlgorithmField(),e.issuer=this.getIssuer(),e.notbefore=this.getNotBefore(),e.notafter=this.getNotAfter(),e.subject=this.getSubject(),e.sbjpubkey=Oe(this.getPublicKeyHex(),"PUBLIC KEY"),this.aExtInfo.length>0&&(e.ext=this.getExtParamArray()),e.sighex=this.getSignatureValueHex(),e},this.getExtParamArray=function(e){null==e&&-1!=f(this.hex,0,[0,"[3]"])&&(e=l(this.hex,0,[0,"[3]",0],"30"));for(var t=[],n=r(e,0),i=0;i<n.length;i++){var a=o(e,n[i]),s=this.getExtParam(a);null!=s&&t.push(s)}return t},this.getExtParam=function(e){var t=r(e,0).length;if(2!=t&&3!=t)throw new Error("wrong number elements in Extension: "+t+" "+e);var n=h(a(e,0,[0],"06")),i=!1;3==t&&"0101ff"==u(e,0,[1])&&(i=!0);var o=u(e,0,[t-1,0]),s=void 0;if("2.5.29.14"==n?s=this.getExtSubjectKeyIdentifier(o,i):"2.5.29.15"==n?s=this.getExtKeyUsage(o,i):"2.5.29.17"==n?s=this.getExtSubjectAltName(o,i):"2.5.29.18"==n?s=this.getExtIssuerAltName(o,i):"2.5.29.19"==n?s=this.getExtBasicConstraints(o,i):"2.5.29.31"==n?s=this.getExtCRLDistributionPoints(o,i):"2.5.29.32"==n?s=this.getExtCertificatePolicies(o,i):"2.5.29.35"==n?s=this.getExtAuthorityKeyIdentifier(o,i):"2.5.29.37"==n?s=this.getExtExtKeyUsage(o,i):"1.3.6.1.5.5.7.1.1"==n?s=this.getExtAuthorityInfoAccess(o,i):"2.5.29.20"==n?s=this.getExtCRLNumber(o,i):"2.5.29.21"==n?s=this.getExtCRLReason(o,i):"1.3.6.1.5.5.7.48.1.2"==n?s=this.getExtOcspNonce(o,i):"1.3.6.1.5.5.7.48.1.5"==n?s=this.getExtOcspNoCheck(o,i):"1.2.840.113583.1.1.9.1"==n&&(s=this.getExtAdobeTimeStamp(o,i)),null!=s)return s;var l={extname:n,extn:o};return i&&(l.critical=!0),l},this.findExt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].extname==t)return e[n];return null},this.updateExtCDPFullURI=function(e,t){var n=this.findExt(e,"cRLDistributionPoints");if(null!=n&&null!=n.array)for(var r=n.array,i=0;i<r.length;i++)if(null!=r[i].dpname&&null!=r[i].dpname.full)for(var o=r[i].dpname.full,a=0;a<o.length;a++){var s=o[i];null!=s.uri&&(s.uri=t)}},this.updateExtAIAOCSP=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&null!=n.array)for(var r=n.array,i=0;i<r.length;i++)null!=r[i].ocsp&&(r[i].ocsp=t)},this.updateExtAIACAIssuer=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&null!=n.array)for(var r=n.array,i=0;i<r.length;i++)null!=r[i].caissuer&&(r[i].caissuer=t)},this.dnarraytostr=function(e){return"/"+e.map((function(e){return function(e){return e.map((function(e){return function(e){return e.type+"="+e.value}(e)})).join("+")}(e)})).join("/")},this.getInfo=function(){var e,t,n,r=function(e){return JSON.stringify(e.array).replace(/[\[\]\{\}\"]/g,"")},i=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];if(t+=" policy oid: "+i.policyoid+"\n",void 0!==i.array)for(var o=0;o<i.array.length;o++){var a=i.array[o];void 0!==a.cps&&(t+=" cps: "+a.cps+"\n")}}return t},o=function(t){for(var n="",r=t.array,i=0;i<r.length;i++){var o=r[i];try{void 0!==o.dpname.full[0].uri&&(n+=" "+o.dpname.full[0].uri+"\n")}catch(e){}try{void 0!==o.dname.full[0].dn.hex&&(n+=" "+Ke.hex2dn(o.dpname.full[0].dn.hex)+"\n")}catch(e){}}return n},a=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];void 0!==i.caissuer&&(t+=" caissuer: "+i.caissuer+"\n"),void 0!==i.ocsp&&(t+=" ocsp: "+i.ocsp+"\n")}return t};if(e="Basic Fields\n",e+=" serial number: "+this.getSerialNumberHex()+"\n",e+=" signature algorithm: "+this.getSignatureAlgorithmField()+"\n",e+=" issuer: "+this.getIssuerString()+"\n",e+=" notBefore: "+this.getNotBefore()+"\n",e+=" notAfter: "+this.getNotAfter()+"\n",e+=" subject: "+this.getSubjectString()+"\n",e+=" subject public key info: \n",e+=" key algorithm: "+(t=this.getPublicKey()).type+"\n","RSA"===t.type&&(e+=" n="+Ue(t.n.toString(16)).substr(0,16)+"...\n",e+=" e="+Ue(t.e.toString(16))+"\n"),null!=(n=this.aExtInfo)){e+="X509v3 Extensions:\n";for(var s=0;s<n.length;s++){var u=n[s],l=le.asn1.x509.OID.oid2name(u.oid);""===l&&(l=u.oid);var c="";if(!0===u.critical&&(c="CRITICAL"),e+=" "+l+" "+c+":\n","basicConstraints"===l){var f=this.getExtBasicConstraints();void 0===f.cA?e+=" {}\n":(e+=" cA=true",void 0!==f.pathLen&&(e+=", pathLen="+f.pathLen),e+="\n")}else if("keyUsage"===l)e+=" "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"===l)e+=" "+this.getExtSubjectKeyIdentifier().kid.hex+"\n";else if("authorityKeyIdentifier"===l){var p=this.getExtAuthorityKeyIdentifier();void 0!==p.kid&&(e+=" kid="+p.kid.hex+"\n")}else"extKeyUsage"===l?e+=" "+this.getExtExtKeyUsage().array.join(", ")+"\n":"subjectAltName"===l?e+=" "+r(this.getExtSubjectAltName())+"\n":"cRLDistributionPoints"===l?e+=o(this.getExtCRLDistributionPoints()):"authorityInfoAccess"===l?e+=a(this.getExtAuthorityInfoAccess()):"certificatePolicies"===l&&(e+=i(this.getExtCertificatePolicies()))}}return(e+="signature algorithm: "+this.getSignatureAlgorithmName()+"\n")+"signature: "+this.getSignatureValueHex().substr(0,16)+"...\n"},"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?this.readCertPEM(e):le.lang.String.isHex(e)&&this.readCertHex(e))}ie.prototype.sign=function(e,t){var n=function(e){return le.crypto.Util.hashString(e,t)}(e);return this.signWithMessageHash(n,t)},ie.prototype.signWithMessageHash=function(e,t){var n=ne(le.crypto.Util.getPaddedDigestInfoHex(e,t,this.n.bitLength()),16);return Ve(this.doPrivate(n).toString(16),this.n.bitLength())},ie.prototype.signPSS=function(e,t,n){var r=function(e){return le.crypto.Util.hashHex(e,t)}(xe(e));return void 0===n&&(n=-1),this.signWithMessageHashPSS(r,t,n)},ie.prototype.signWithMessageHashPSS=function(e,t,n){var r,i=Ee(e),o=i.length,a=this.n.bitLength()-1,s=Math.ceil(a/8),u=function(e){return le.crypto.Util.hashHex(e,t)};if(-1===n||void 0===n)n=o;else if(-2===n)n=s-o-2;else if(n<-2)throw new Error("invalid salt length");if(s<o+n+2)throw new Error("data too long");var l="";n>0&&(l=new Array(n),(new te).nextBytes(l),l=String.fromCharCode.apply(String,l));var c=Ee(u(xe("\0\0\0\0\0\0\0\0"+i+l))),f=[];for(r=0;r<s-n-o-2;r+=1)f[r]=0;var p=String.fromCharCode.apply(String,f)+"\x01"+l,d=qe(c,p.length,u),h=[];for(r=0;r<p.length;r+=1)h[r]=p.charCodeAt(r)^d.charCodeAt(r);var g=65280>>8*s-a&255;for(h[0]&=~g,r=0;r<o;r++)h.push(c.charCodeAt(r));return h.push(188),Ve(this.doPrivate(new E(h)).toString(16),this.n.bitLength())},ie.prototype.verify=function(e,t){var n=ne(t=(t=t.replace(He,"")).replace(/[ \n]+/g,""),16);if(n.bitLength()>this.n.bitLength())return 0;var r=We(this.doPublic(n).toString(16).replace(/^1f+00/,""));if(0==r.length)return!1;var i=r[0];return r[1]==function(e){return le.crypto.Util.hashString(e,i)}(e)},ie.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var n=ne(t,16);if(n.bitLength()>this.n.bitLength())return 0;var r=We(this.doPublic(n).toString(16).replace(/^1f+00/,""));return 0!=r.length&&(r[0],r[1]==e)},ie.prototype.verifyPSS=function(e,t,n,r){var i=function(e){return le.crypto.Util.hashHex(e,n)}(xe(e));return void 0===r&&(r=-1),this.verifyWithMessageHashPSS(i,t,n,r)},ie.prototype.verifyWithMessageHashPSS=function(e,t,n,r){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,o=new E(t,16),a=function(e){return le.crypto.Util.hashHex(e,n)},s=Ee(e),u=s.length,l=this.n.bitLength()-1,c=Math.ceil(l/8);if(-1===r||void 0===r)r=u;else if(-2===r)r=c-u-2;else if(r<-2)throw new Error("invalid salt length");if(c<u+r+2)throw new Error("data too long");var f=this.doPublic(o).toByteArray();for(i=0;i<f.length;i+=1)f[i]&=255;for(;f.length<c;)f.unshift(0);if(188!==f[c-1])throw new Error("encoded message does not end in 0xbc");var p=(f=String.fromCharCode.apply(String,f)).substr(0,c-u-1),d=f.substr(p.length,u),h=65280>>8*c-l&255;if(0!=(p.charCodeAt(0)&h))throw new Error("bits beyond keysize not zero");var g=qe(d,p.length,a),v=[];for(i=0;i<p.length;i+=1)v[i]=p.charCodeAt(i)^g.charCodeAt(i);v[0]&=~h;var y=c-u-r-2;for(i=0;i<y;i+=1)if(0!==v[i])throw new Error("leftmost octets not zero");if(1!==v[y])throw new Error("0x01 marker not found");return d===Ee(a(xe("\0\0\0\0\0\0\0\0"+s+String.fromCharCode.apply(String,v.slice(-r)))))},ie.SALT_LEN_HLEN=-1,ie.SALT_LEN_MAX=-2,ie.SALT_LEN_RECOVER=-2,Ke.hex2dn=function(e,t){if(void 0===t&&(t=0),"30"!==e.substr(t,2))throw new Error("malformed DN");for(var n=new Array,r=pe.getChildIdx(e,t),i=0;i<r.length;i++)n.push(Ke.hex2rdn(e,r[i]));return"/"+(n=n.map((function(e){return e.replace("/","\\/")}))).join("/")},Ke.hex2rdn=function(e,t){if(void 0===t&&(t=0),"31"!==e.substr(t,2))throw new Error("malformed RDN");for(var n=new Array,r=pe.getChildIdx(e,t),i=0;i<r.length;i++)n.push(Ke.hex2attrTypeValue(e,r[i]));return(n=n.map((function(e){return e.replace("+","\\+")}))).join("+")},Ke.hex2attrTypeValue=function(e,t){var n=pe,r=n.getV;if(void 0===t&&(t=0),"30"!==e.substr(t,2))throw new Error("malformed attribute type and value");var i=n.getChildIdx(e,t);2!==i.length||e.substr(i[0],2);var o=r(e,i[0]),a=le.asn1.ASN1Util.oidHexToInt(o);return le.asn1.x509.OID.oid2atype(a)+"="+Ee(r(e,i[1]))},Ke.getPublicKeyFromCertHex=function(e){var t=new Ke;return t.readCertHex(e),t.getPublicKey()},Ke.getPublicKeyFromCertPEM=function(e){var t=new Ke;return t.readCertPEM(e),t.getPublicKey()},Ke.getPublicKeyInfoPropOfCertPEM=function(e){var t,n,r=pe.getVbyList,i={algparam:null};return(t=new Ke).readCertPEM(e),n=t.getPublicKeyHex(),i.keyhex=r(n,0,[1],"03").substr(2),i.algoid=r(n,0,[0,0],"06"),"2a8648ce3d0201"===i.algoid&&(i.algparam=r(n,0,[0,1],"06")),i},Ke.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"],void 0!==le&&le||(t.KJUR=le={}),void 0!==le.jws&&le.jws||(le.jws={}),le.jws.JWS=function(){var e=le.jws.JWS.isSafeJSONString;this.parseJWS=function(t,n){if(void 0===this.parsedJWS||!n&&void 0===this.parsedJWS.sigvalH){var r=t.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==r)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var i=r[1],o=r[2],a=r[3],s=i+"."+o;if(this.parsedJWS={},this.parsedJWS.headB64U=i,this.parsedJWS.payloadB64U=o,this.parsedJWS.sigvalB64U=a,this.parsedJWS.si=s,!n){var u=we(a),l=ne(u,16);this.parsedJWS.sigvalH=u,this.parsedJWS.sigvalBI=l}var c=fe(i),f=fe(o);if(this.parsedJWS.headS=c,this.parsedJWS.payloadS=f,!e(c,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+c}}},le.jws.JWS.sign=function(e,t,r,i,o){var a,s,u,l=le,c=l.jws.JWS,f=c.readSafeJSONString,p=c.isSafeJSONString,d=l.crypto,h=(d.ECDSA,d.Mac),g=d.Signature,v=JSON;if("string"!=typeof t&&"object"!=(void 0===t?"undefined":n(t)))throw"spHeader must be JSON string or object: "+t;if("object"==(void 0===t?"undefined":n(t))&&(s=t,a=v.stringify(s)),"string"==typeof t){if(!p(a=t))throw"JWS Head is not safe JSON string: "+a;s=f(a)}if(u=r,"object"==(void 0===r?"undefined":n(r))&&(u=v.stringify(r)),""!=e&&null!=e||void 0===s.alg||(e=s.alg),""!=e&&null!=e&&void 0===s.alg&&(s.alg=e,a=v.stringify(s)),e!==s.alg)throw"alg and sHeader.alg doesn't match: "+e+"!="+s.alg;var y=null;if(void 0===c.jwsalg2sigalg[e])throw"unsupported alg name: "+e;y=c.jwsalg2sigalg[e];var m=ce(a)+"."+ce(u),b="";if("Hmac"==y.substr(0,4)){if(void 0===i)throw"mac key shall be specified for HS* alg";var w=new h({alg:y,prov:"cryptojs",pass:i});w.updateString(m),b=w.doFinal()}else if(-1!=y.indexOf("withECDSA")){(S=new g({alg:y})).init(i,o),S.updateString(m);var _=S.sign();b=le.crypto.ECDSA.asn1SigToConcatSig(_)}else{var S;"none"!=y&&((S=new g({alg:y})).init(i,o),S.updateString(m),b=S.sign())}return m+"."+be(b)},le.jws.JWS.verify=function(e,t,r){var i,o=le,a=o.jws.JWS,s=a.readSafeJSONString,u=o.crypto,l=u.ECDSA,c=u.Mac,f=u.Signature;void 0!==n(ie)&&(i=ie);var p=e.split(".");if(3!==p.length)return!1;var d,h=p[0]+"."+p[1],g=we(p[2]),v=s(fe(p[0])),y=null;if(void 0===v.alg)throw"algorithm not specified in header";if(d=(y=v.alg).substr(0,2),null!=r&&"[object Array]"===Object.prototype.toString.call(r)&&r.length>0&&-1==(":"+r.join(":")+":").indexOf(":"+y+":"))throw"algorithm '"+y+"' not accepted in the list";if("none"!=y&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=Be.getKey(t)),!("RS"!=d&&"PS"!=d||t instanceof i))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==d&&!(t instanceof l))throw"key shall be a ECDSA obj for ES* algs";var m=null;if(void 0===a.jwsalg2sigalg[v.alg])throw"unsupported alg name: "+y;if("none"==(m=a.jwsalg2sigalg[y]))throw"not supported";if("Hmac"==m.substr(0,4)){if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var b=new c({alg:m,pass:t});return b.updateString(h),g==b.doFinal()}if(-1!=m.indexOf("withECDSA")){var w,_=null;try{_=l.concatSigToASN1Sig(g)}catch(e){return!1}return(w=new f({alg:m})).init(t),w.updateString(h),w.verify(_)}return(w=new f({alg:m})).init(t),w.updateString(h),w.verify(g)},le.jws.JWS.parse=function(e){var t,n,r,i=e.split("."),o={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[0],n=i[1],3==i.length&&(r=i[2]),o.headerObj=le.jws.JWS.readSafeJSONString(fe(t)),o.payloadObj=le.jws.JWS.readSafeJSONString(fe(n)),o.headerPP=JSON.stringify(o.headerObj,null," "),null==o.payloadObj?o.payloadPP=fe(n):o.payloadPP=JSON.stringify(o.payloadObj,null," "),void 0!==r&&(o.sigHex=we(r)),o},le.jws.JWS.verifyJWT=function(e,t,r){var i=le.jws,o=i.JWS,a=o.readSafeJSONString,s=o.inArray,u=o.includedArray,l=e.split("."),c=l[0],f=l[1],p=(we(l[2]),a(fe(c))),d=a(fe(f));if(void 0===p.alg)return!1;if(void 0===r.alg)throw"acceptField.alg shall be specified";if(!s(p.alg,r.alg))return!1;if(void 0!==d.iss&&"object"===n(r.iss)&&!s(d.iss,r.iss))return!1;if(void 0!==d.sub&&"object"===n(r.sub)&&!s(d.sub,r.sub))return!1;if(void 0!==d.aud&&"object"===n(r.aud))if("string"==typeof d.aud){if(!s(d.aud,r.aud))return!1}else if("object"==n(d.aud)&&!u(d.aud,r.aud))return!1;var h=i.IntDate.getNow();return void 0!==r.verifyAt&&"number"==typeof r.verifyAt&&(h=r.verifyAt),void 0!==r.gracePeriod&&"number"==typeof r.gracePeriod||(r.gracePeriod=0),!(void 0!==d.exp&&"number"==typeof d.exp&&d.exp+r.gracePeriod<h)&&!(void 0!==d.nbf&&"number"==typeof d.nbf&&h<d.nbf-r.gracePeriod)&&!(void 0!==d.iat&&"number"==typeof d.iat&&h<d.iat-r.gracePeriod)&&(void 0===d.jti||void 0===r.jti||d.jti===r.jti)&&!!o.verify(e,t,r.alg)},le.jws.JWS.includedArray=function(e,t){var r=le.jws.JWS.inArray;if(null===e)return!1;if("object"!==(void 0===e?"undefined":n(e)))return!1;if("number"!=typeof e.length)return!1;for(var i=0;i<e.length;i++)if(!r(e[i],t))return!1;return!0},le.jws.JWS.inArray=function(e,t){if(null===t)return!1;if("object"!==(void 0===t?"undefined":n(t)))return!1;if("number"!=typeof t.length)return!1;for(var r=0;r<t.length;r++)if(t[r]==e)return!0;return!1},le.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},le.jws.JWS.isSafeJSONString=function(e,t,r){var i=null;try{return"object"!=(void 0===(i=ue(e))?"undefined":n(i))||i.constructor===Array?0:(t&&(t[r]=i),1)}catch(e){return 0}},le.jws.JWS.readSafeJSONString=function(e){var t=null;try{return"object"!=(void 0===(t=ue(e))?"undefined":n(t))||t.constructor===Array?null:t}catch(e){return null}},le.jws.JWS.getEncodedSignatureValueFromJWS=function(e){var t=e.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(null==t)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return t[1]},le.jws.JWS.getJWKthumbprint=function(e){if("RSA"!==e.kty&&"EC"!==e.kty&&"oct"!==e.kty)throw"unsupported algorithm for JWK Thumprint";var t="{";if("RSA"===e.kty){if("string"!=typeof e.n||"string"!=typeof e.e)throw"wrong n and e value for RSA key";t+='"e":"'+e.e+'",',t+='"kty":"'+e.kty+'",',t+='"n":"'+e.n+'"}'}else if("EC"===e.kty){if("string"!=typeof e.crv||"string"!=typeof e.x||"string"!=typeof e.y)throw"wrong crv, x and y value for EC key";t+='"crv":"'+e.crv+'",',t+='"kty":"'+e.kty+'",',t+='"x":"'+e.x+'",',t+='"y":"'+e.y+'"}'}else if("oct"===e.kty){if("string"!=typeof e.k)throw"wrong k value for oct(symmetric) key";t+='"kty":"'+e.kty+'",',t+='"k":"'+e.k+'"}'}var n=xe(t);return be(le.crypto.Util.hashHex(n,"sha256"))},le.jws.IntDate={},le.jws.IntDate.get=function(e){var t=le.jws.IntDate,n=t.getNow,r=t.getZulu;if("now"==e)return n();if("now + 1hour"==e)return n()+3600;if("now + 1day"==e)return n()+86400;if("now + 1month"==e)return n()+2592e3;if("now + 1year"==e)return n()+31536e3;if(e.match(/Z$/))return r(e);if(e.match(/^[0-9]+$/))return parseInt(e);throw"unsupported format: "+e},le.jws.IntDate.getZulu=function(e){return Ie(e)},le.jws.IntDate.getNow=function(){return~~(new Date/1e3)},le.jws.IntDate.intDate2UTCString=function(e){return new Date(1e3*e).toUTCString()},le.jws.IntDate.intDate2Zulu=function(e){var t=new Date(1e3*e);return("0000"+t.getUTCFullYear()).slice(-4)+("00"+(t.getUTCMonth()+1)).slice(-2)+("00"+t.getUTCDate()).slice(-2)+("00"+t.getUTCHours()).slice(-2)+("00"+t.getUTCMinutes()).slice(-2)+("00"+t.getUTCSeconds()).slice(-2)+"Z"},t.SecureRandom=te,t.rng_seed_time=$,t.BigInteger=E,t.RSAKey=ie;var Ge=le.crypto.EDSA;t.EDSA=Ge;var Ye=le.crypto.DSA;t.DSA=Ye;var $e=le.crypto.Signature;t.Signature=$e;var Je=le.crypto.MessageDigest;t.MessageDigest=Je;var Qe=le.crypto.Mac;t.Mac=Qe;var Ze=le.crypto.Cipher;t.Cipher=Ze,t.KEYUTIL=Be,t.ASN1HEX=pe,t.X509=Ke,t.CryptoJS=y,t.b64tohex=_,t.b64toBA=S,t.stoBA=de,t.BAtos=he,t.BAtohex=ge,t.stohex=ve,t.stob64=function(e){return w(ve(e))},t.stob64u=function(e){return ye(w(ve(e)))},t.b64utos=function(e){return he(S(me(e)))},t.b64tob64u=ye,t.b64utob64=me,t.hex2b64=w,t.hextob64u=be,t.b64utohex=we,t.utf8tob64u=ce,t.b64utoutf8=fe,t.utf8tob64=function(e){return w(je(Le(e)))},t.b64toutf8=function(e){return decodeURIComponent(Me(_(e)))},t.utf8tohex=_e,t.hextoutf8=Se,t.hextorstr=Ee,t.rstrtohex=xe,t.hextob64=Te,t.hextob64nl=ke,t.b64nltohex=Ce,t.hextopem=Oe,t.pemtohex=Ae,t.hextoArrayBuffer=function(e){if(e.length%2!=0)throw"input is not even length";if(null==e.match(/^[0-9A-Fa-f]+$/))throw"input is not hexadecimal";for(var t=new ArrayBuffer(e.length/2),n=new DataView(t),r=0;r<e.length/2;r++)n.setUint8(r,parseInt(e.substr(2*r,2),16));return t},t.ArrayBuffertohex=function(e){for(var t="",n=new DataView(e),r=0;r<e.byteLength;r++)t+=("00"+n.getUint8(r).toString(16)).slice(-2);return t},t.zulutomsec=Pe,t.zulutosec=Ie,t.zulutodate=function(e){return new Date(Pe(e))},t.datetozulu=function(e,t,n){var r,i=e.getUTCFullYear();if(t){if(i<1950||2049<i)throw"not proper year for UTCTime: "+i;r=(""+i).slice(-2)}else r=("000"+i).slice(-4);if(r+=("0"+(e.getUTCMonth()+1)).slice(-2),r+=("0"+e.getUTCDate()).slice(-2),r+=("0"+e.getUTCHours()).slice(-2),r+=("0"+e.getUTCMinutes()).slice(-2),r+=("0"+e.getUTCSeconds()).slice(-2),n){var o=e.getUTCMilliseconds();0!==o&&(r+="."+(o=(o=("00"+o).slice(-3)).replace(/0+$/g,"")))}return r+"Z"},t.uricmptohex=je,t.hextouricmp=Me,t.ipv6tohex=Ne,t.hextoipv6=Fe,t.hextoip=Re,t.iptohex=function(e){var t="malformed IP address";if(!(e=e.toLowerCase(e)).match(/^[0-9.]+$/)){if(e.match(/^[0-9a-f:]+$/)&&-1!==e.indexOf(":"))return Ne(e);throw t}var n=e.split(".");if(4!==n.length)throw t;var r="";try{for(var i=0;i<4;i++)r+=("0"+parseInt(n[i]).toString(16)).slice(-2);return r}catch(e){throw t}},t.encodeURIComponentAll=Le,t.newline_toUnix=function(e){return e.replace(/\r\n/gm,"\n")},t.newline_toDos=function(e){return(e=e.replace(/\r\n/gm,"\n")).replace(/\n/gm,"\r\n")},t.hextoposhex=Ue,t.intarystrtohex=function(e){e=(e=(e=e.replace(/^\s*\[\s*/,"")).replace(/\s*\]\s*$/,"")).replace(/\s*/g,"");try{return e.split(/,/).map((function(e,t,n){var r=parseInt(e);if(r<0||255<r)throw"integer not in range 0-255";return("00"+r.toString(16)).slice(-2)})).join("")}catch(e){throw"malformed integer array string: "+e}},t.strdiffidx=function(e,t){var n=e.length;e.length>t.length&&(n=t.length);for(var r=0;r<n;r++)if(e.charCodeAt(r)!=t.charCodeAt(r))return r;return e.length!=t.length?n:-1},t.KJUR=le;var Xe=le.crypto;t.crypto=Xe;var et=le.asn1;t.asn1=et;var tt=le.jws;t.jws=tt;var nt=le.lang;t.lang=nt}).call(this,n(28).Buffer)},function(e,t,n){"use strict";(function(e){var r=n(30),i=n(31),o=n(32);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,a=1,s=e.length,u=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;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,p=0;p<u;p++)if(l(e,o+p)!==l(t,p)){f=!1;break}if(f)return o}return-1}function b(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;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return V(B(t,e.length-n),e,n,r)}function _(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return _(e,t,n,r)}function E(e,t,n,r){return V(H(t),e,n,r)}function x(e,t,n,r){return V(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");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?1:0},u.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}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");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 new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],a=c[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},u.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))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function O(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}function A(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}function P(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+=z(e[o]);return i}function I(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}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,o){return o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,o){return o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(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},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(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},u.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){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)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.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),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:B(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+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=65536+(i-55296<<10|n-56320)}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))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(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}}).call(this,n(29))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(l(e,s,s+a>u?u:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+d]=255&a,d+=h,a/=256,l-=8);e[n+d-h]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.jws,n=e.KeyUtil,i=e.X509,o=e.crypto,a=e.hextob64u,s=e.b64tohex,u=e.AllowedSigningAlgs;return function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.parseJwt=function e(n){r.Log.debug("JoseUtil.parseJwt");try{var i=t.JWS.parse(n);return{header:i.headerObj,payload:i.payloadObj}}catch(e){r.Log.error(e)}},e.validateJwt=function(t,o,a,u,l,c,f){r.Log.debug("JoseUtil.validateJwt");try{if("RSA"===o.kty)if(o.e&&o.n)o=n.getKey(o);else{if(!o.x5c||!o.x5c.length)return r.Log.error("JoseUtil.validateJwt: RSA key missing key material",o),Promise.reject(new Error("RSA key missing key material"));var p=s(o.x5c[0]);o=i.getPublicKeyFromCertHex(p)}else{if("EC"!==o.kty)return r.Log.error("JoseUtil.validateJwt: Unsupported key type",o&&o.kty),Promise.reject(new Error(o.kty));if(!(o.crv&&o.x&&o.y))return r.Log.error("JoseUtil.validateJwt: EC key missing key material",o),Promise.reject(new Error("EC key missing key material"));o=n.getKey(o)}return e._validateJwt(t,o,a,u,l,c,f)}catch(e){return r.Log.error(e&&e.message||e),Promise.reject("JWT validation failed")}},e.validateJwtAttributes=function(t,n,i,o,a,s){o||(o=0),a||(a=parseInt(Date.now()/1e3));var u=e.parseJwt(t).payload;if(!u.iss)return r.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(u.iss!==n)return r.Log.error("JoseUtil._validateJwt: Invalid issuer in token",u.iss),Promise.reject(new Error("Invalid issuer in token: "+u.iss));if(!u.aud)return r.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(u.aud===i||Array.isArray(u.aud)&&u.aud.indexOf(i)>=0))return r.Log.error("JoseUtil._validateJwt: Invalid audience in token",u.aud),Promise.reject(new Error("Invalid audience in token: "+u.aud));if(u.azp&&u.azp!==i)return r.Log.error("JoseUtil._validateJwt: Invalid azp in token",u.azp),Promise.reject(new Error("Invalid azp in token: "+u.azp));if(!s){var l=a+o,c=a-o;if(!u.iat)return r.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(l<u.iat)return r.Log.error("JoseUtil._validateJwt: iat is in the future",u.iat),Promise.reject(new Error("iat is in the future: "+u.iat));if(u.nbf&&l<u.nbf)return r.Log.error("JoseUtil._validateJwt: nbf is in the future",u.nbf),Promise.reject(new Error("nbf is in the future: "+u.nbf));if(!u.exp)return r.Log.error("JoseUtil._validateJwt: exp was not provided"),Promise.reject(new Error("exp was not provided"));if(u.exp<c)return r.Log.error("JoseUtil._validateJwt: exp is in the past",u.exp),Promise.reject(new Error("exp is in the past:"+u.exp))}return Promise.resolve(u)},e._validateJwt=function(n,i,o,a,s,l,c){return e.validateJwtAttributes(n,o,a,s,l,c).then((function(e){try{return t.JWS.verify(n,i,u)?e:(r.Log.error("JoseUtil._validateJwt: signature validation failed"),Promise.reject(new Error("signature validation failed")))}catch(e){return r.Log.error(e&&e.message||e),Promise.reject(new Error("signature validation failed"))}}))},e.hashString=function e(t,n){try{return o.Util.hashString(t,n)}catch(e){r.Log.error(e)}},e.hexToBase64Url=function e(t){try{return a(t)}catch(e){r.Log.error(e)}},e}()};var r=n(0);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigninResponse=void 0;var r=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}}(),i=n(3);t.SigninResponse=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=i.UrlUtility.parseUrlFragment(t,n);this.error=r.error,this.error_description=r.error_description,this.error_uri=r.error_uri,this.code=r.code,this.state=r.state,this.id_token=r.id_token,this.session_state=r.session_state,this.access_token=r.access_token,this.token_type=r.token_type,this.scope=r.scope,this.profile=void 0,this.expires_in=r.expires_in}return r(e,[{key:"expires_in",get:function(){if(this.expires_at){var e=parseInt(Date.now()/1e3);return this.expires_at-e}},set:function(e){var t=parseInt(e);if("number"==typeof t&&t>0){var n=parseInt(Date.now()/1e3);this.expires_at=n+t}}},{key:"expired",get:function(){var e=this.expires_in;if(void 0!==e)return e<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutRequest=void 0;var r=n(0),i=n(3),o=n(9);t.SignoutRequest=function e(t){var n=t.url,a=t.id_token_hint,s=t.post_logout_redirect_uri,u=t.data,l=t.extraQueryParams,c=t.request_type;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!n)throw r.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var f in a&&(n=i.UrlUtility.addQueryParam(n,"id_token_hint",a)),s&&(n=i.UrlUtility.addQueryParam(n,"post_logout_redirect_uri",s),u&&(this.state=new o.State({data:u,request_type:c}),n=i.UrlUtility.addQueryParam(n,"state",this.state.id))),l)n=i.UrlUtility.addQueryParam(n,f,l[f]);this.url=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignoutResponse=void 0;var r=n(3);t.SignoutResponse=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=r.UrlUtility.parseUrlFragment(t,"?");this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.state=n.state}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryWebStorage=void 0;var r=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}}(),i=n(0);t.InMemoryWebStorage=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._data={}}return e.prototype.getItem=function(e){return i.Log.debug("InMemoryWebStorage.getItem",e),this._data[e]},e.prototype.setItem=function(e,t){i.Log.debug("InMemoryWebStorage.setItem",e),this._data[e]=t},e.prototype.removeItem=function(e){i.Log.debug("InMemoryWebStorage.removeItem",e),delete this._data[e]},e.prototype.key=function(e){return Object.getOwnPropertyNames(this._data)[e]},r(e,[{key:"length",get:function(){return Object.getOwnPropertyNames(this._data).length}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserManager=void 0;var r=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}}(),i=n(0),o=n(10),a=n(39),s=n(15),u=n(45),l=n(47),c=n(18),f=n(8),p=n(20),d=n(11),h=n(4);t.UserManager=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.SessionMonitor,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:p.TokenRevocationClient,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h.JoseUtil;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),n instanceof a.UserManagerSettings||(n=new a.UserManagerSettings(n));var v=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return v._events=new u.UserManagerEvents(n),v._silentRenewService=new r(v),v.settings.automaticSilentRenew&&(i.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),v.startSilentRenew()),v.settings.monitorSession&&(i.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),v._sessionMonitor=new o(v)),v._tokenRevocationClient=new s(v._settings),v._tokenClient=new f(v._settings),v._joseUtil=g,v}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getUser=function(){var e=this;return this._loadUser().then((function(t){return t?(i.Log.info("UserManager.getUser: user loaded"),e._events.load(t,!1),t):(i.Log.info("UserManager.getUser: user not found in storage"),null)}))},t.prototype.removeUser=function(){var e=this;return this.storeUser(null).then((function(){i.Log.info("UserManager.removeUser: user removed from storage"),e._events.unload()}))},t.prototype.signinRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:r";var t={useReplaceToNavigate:e.useReplaceToNavigate};return this._signinStart(e,this._redirectNavigator,t).then((function(){i.Log.info("UserManager.signinRedirect: successful")}))},t.prototype.signinRedirectCallback=function(e){return this._signinEnd(e||this._redirectNavigator.url).then((function(e){return e.profile&&e.profile.sub?i.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinRedirectCallback: no sub"),e}))},t.prototype.signinPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:p";var t=e.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.display="popup",this._signin(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopup: no sub")),e}))):(i.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},t.prototype.signinPopupCallback=function(e){return this._signinCallback(e,this._popupNavigator).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinPopupCallback: no sub")),e})).catch((function(e){i.Log.error(e.message)}))},t.prototype.signinSilent=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=Object.assign({},t),this._loadUser().then((function(n){return n&&n.refresh_token?(t.refresh_token=n.refresh_token,e._useRefreshToken(t)):(t.request_type="si:s",t.id_token_hint=t.id_token_hint||e.settings.includeIdTokenInSilentRenew&&n&&n.id_token,n&&e._settings.validateSubOnSilentRenew&&(i.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",n.profile.sub),t.current_sub=n.profile.sub),e._signinSilentIframe(t))}))},t.prototype._useRefreshToken=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(t).then((function(t){return t?t.access_token?e._loadUser().then((function(n){if(n){var r=Promise.resolve();return t.id_token&&(r=e._validateIdTokenFromTokenRefreshToken(n.profile,t.id_token)),r.then((function(){return i.Log.debug("UserManager._useRefreshToken: refresh token response success"),n.id_token=t.id_token||n.id_token,n.access_token=t.access_token,n.refresh_token=t.refresh_token||n.refresh_token,n.expires_in=t.expires_in,e.storeUser(n).then((function(){return e._events.load(n),n}))}))}return null})):(i.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(i.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))}))},t.prototype._validateIdTokenFromTokenRefreshToken=function(e,t){var n=this;return this._metadataService.getIssuer().then((function(r){return n.settings.getEpochTime().then((function(o){return n._joseUtil.validateJwtAttributes(t,r,n._settings.client_id,n._settings.clockSkew,o).then((function(t){return t?t.sub!==e.sub?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):t.auth_time&&t.auth_time!==e.auth_time?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):t.azp&&t.azp!==e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!t.azp&&e.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))}))}))}))},t.prototype._signinSilentIframe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return t?(e.redirect_uri=t,e.prompt=e.prompt||"none",this._signin(e,this._iframeNavigator,{startUrl:t,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilent: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilent: no sub")),e}))):(i.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype.signinSilentCallback=function(e){return this._signinCallback(e,this._iframeNavigator).then((function(e){return e&&(e.profile&&e.profile.sub?i.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",e.profile.sub):i.Log.info("UserManager.signinSilentCallback: no sub")),e}))},t.prototype.signinCallback=function(e){var t=this;return this.readSigninResponseState(e).then((function(n){var r=n.state;return n.response,"si:r"===r.request_type?t.signinRedirectCallback(e):"si:p"===r.request_type?t.signinPopupCallback(e):"si:s"===r.request_type?t.signinSilentCallback(e):Promise.reject(new Error("invalid response_type in state"))}))},t.prototype.signoutCallback=function(e,t){var n=this;return this.readSignoutResponseState(e).then((function(r){var i=r.state,o=r.response;return i?"so:r"===i.request_type?n.signoutRedirectCallback(e):"so:p"===i.request_type?n.signoutPopupCallback(e,t):Promise.reject(new Error("invalid response_type in state")):o}))},t.prototype.querySessionStatus=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:s";var n=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return n?(t.redirect_uri=n,t.prompt="none",t.response_type=t.response_type||this.settings.query_status_response_type,t.scope=t.scope||"openid",t.skipUserInfo=!0,this._signinStart(t,this._iframeNavigator,{startUrl:n,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(t){return e.processSigninResponse(t.url).then((function(e){if(i.Log.debug("UserManager.querySessionStatus: got signin response"),e.session_state&&e.profile.sub)return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};i.Log.info("querySessionStatus successful, user not authenticated")})).catch((function(t){if(t.session_state&&e.settings.monitorAnonymousSession&&("login_required"==t.message||"consent_required"==t.message||"interaction_required"==t.message||"account_selection_required"==t.message))return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:t.session_state};throw t}))}))):(i.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},t.prototype._signin=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(e,t,r).then((function(t){return n._signinEnd(t.url,e)}))},t.prototype._signinStart=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.prepare(r).then((function(t){return i.Log.debug("UserManager._signinStart: got navigator window handle"),n.createSigninRequest(e).then((function(e){return i.Log.debug("UserManager._signinStart: got signin request"),r.url=e.url,r.id=e.state.id,t.navigate(r)})).catch((function(e){throw t.close&&(i.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),t.close()),e}))}))},t.prototype._signinEnd=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(e).then((function(e){i.Log.debug("UserManager._signinEnd: got signin response");var r=new s.User(e);if(n.current_sub){if(n.current_sub!==r.profile.sub)return i.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",r.profile.sub),Promise.reject(new Error("login_required"));i.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return t.storeUser(r).then((function(){return i.Log.debug("UserManager._signinEnd: user stored"),t._events.load(r),r}))}))},t.prototype._signinCallback=function(e,t){i.Log.debug("UserManager._signinCallback");var n="query"===this._settings.response_mode||!this._settings.response_mode&&f.SigninRequest.isCode(this._settings.response_type)?"?":"#";return t.callback(e,void 0,n)},t.prototype.signoutRedirect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:r";var t=e.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;t&&(e.post_logout_redirect_uri=t);var n={useReplaceToNavigate:e.useReplaceToNavigate};return this._signoutStart(e,this._redirectNavigator,n).then((function(){i.Log.info("UserManager.signoutRedirect: successful")}))},t.prototype.signoutRedirectCallback=function(e){return this._signoutEnd(e||this._redirectNavigator.url).then((function(e){return i.Log.info("UserManager.signoutRedirectCallback: successful"),e}))},t.prototype.signoutPopup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="so:p";var t=e.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return e.post_logout_redirect_uri=t,e.display="popup",e.post_logout_redirect_uri&&(e.state=e.state||{}),this._signout(e,this._popupNavigator,{startUrl:t,popupWindowFeatures:e.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:e.popupWindowTarget||this.settings.popupWindowTarget}).then((function(){i.Log.info("UserManager.signoutPopup: successful")}))},t.prototype.signoutPopupCallback=function(e,t){return void 0===t&&"boolean"==typeof e&&(t=e,e=null),this._popupNavigator.callback(e,t,"?").then((function(){i.Log.info("UserManager.signoutPopupCallback: successful")}))},t.prototype._signout=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(e,t,r).then((function(e){return n._signoutEnd(e.url)}))},t.prototype._signoutStart=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return arguments[1].prepare(n).then((function(r){return i.Log.debug("UserManager._signoutStart: got navigator window handle"),t._loadUser().then((function(o){return i.Log.debug("UserManager._signoutStart: loaded current user from storage"),(t._settings.revokeAccessTokenOnSignout?t._revokeInternal(o):Promise.resolve()).then((function(){var a=e.id_token_hint||o&&o.id_token;return a&&(i.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),e.id_token_hint=a),t.removeUser().then((function(){return i.Log.debug("UserManager._signoutStart: user removed, creating signout request"),t.createSignoutRequest(e).then((function(e){return i.Log.debug("UserManager._signoutStart: got signout request"),n.url=e.url,e.state&&(n.id=e.state.id),r.navigate(n)}))}))}))})).catch((function(e){throw r.close&&(i.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),r.close()),e}))}))},t.prototype._signoutEnd=function(e){return this.processSignoutResponse(e).then((function(e){return i.Log.debug("UserManager._signoutEnd: got signout response"),e}))},t.prototype.revokeAccessToken=function(){var e=this;return this._loadUser().then((function(t){return e._revokeInternal(t,!0).then((function(n){if(n)return i.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),t.access_token=null,t.refresh_token=null,t.expires_at=null,t.token_type=null,e.storeUser(t).then((function(){i.Log.debug("UserManager.revokeAccessToken: user stored"),e._events.load(t)}))}))})).then((function(){i.Log.info("UserManager.revokeAccessToken: access token revoked successfully")}))},t.prototype._revokeInternal=function(e,t){var n=this;if(e){var r=e.access_token,o=e.refresh_token;return this._revokeAccessTokenInternal(r,t).then((function(e){return n._revokeRefreshTokenInternal(o,t).then((function(t){return e||t||i.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),e||t}))}))}return Promise.resolve(!1)},t.prototype._revokeAccessTokenInternal=function(e,t){return!e||e.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(e,t).then((function(){return!0}))},t.prototype._revokeRefreshTokenInternal=function(e,t){return e?this._tokenRevocationClient.revoke(e,t,"refresh_token").then((function(){return!0})):Promise.resolve(!1)},t.prototype.startSilentRenew=function(){this._silentRenewService.start()},t.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},t.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then((function(e){return e?(i.Log.debug("UserManager._loadUser: user storageString loaded"),s.User.fromStorageString(e)):(i.Log.debug("UserManager._loadUser: no user storageString"),null)}))},t.prototype.storeUser=function(e){if(e){i.Log.debug("UserManager.storeUser: storing user");var t=e.toStorageString();return this._userStore.set(this._userStoreKey,t)}return i.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},r(t,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),t}(o.OidcClient)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerSettings=void 0;var r=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}}(),i=(n(0),n(5)),o=n(40),a=n(41),s=n(43),u=n(6),l=n(1),c=n(8);t.UserManagerSettings=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.popup_redirect_uri,i=n.popup_post_logout_redirect_uri,f=n.popupWindowFeatures,p=n.popupWindowTarget,d=n.silent_redirect_uri,h=n.silentRequestTimeout,g=n.automaticSilentRenew,v=void 0!==g&&g,y=n.validateSubOnSilentRenew,m=void 0!==y&&y,b=n.includeIdTokenInSilentRenew,w=void 0===b||b,_=n.monitorSession,S=void 0===_||_,E=n.monitorAnonymousSession,x=void 0!==E&&E,T=n.checkSessionInterval,k=void 0===T?2e3:T,C=n.stopCheckSessionOnError,O=void 0===C||C,A=n.query_status_response_type,P=n.revokeAccessTokenOnSignout,I=void 0!==P&&P,j=n.accessTokenExpiringNotificationTime,M=void 0===j?60:j,N=n.redirectNavigator,F=void 0===N?new o.RedirectNavigator:N,R=n.popupNavigator,L=void 0===R?new a.PopupNavigator:R,D=n.iframeNavigator,U=void 0===D?new s.IFrameNavigator:D,z=n.userStore,B=void 0===z?new u.WebStorageStateStore({store:l.Global.sessionStorage}):z;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var H=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,arguments[0]));return H._popup_redirect_uri=r,H._popup_post_logout_redirect_uri=i,H._popupWindowFeatures=f,H._popupWindowTarget=p,H._silent_redirect_uri=d,H._silentRequestTimeout=h,H._automaticSilentRenew=v,H._validateSubOnSilentRenew=m,H._includeIdTokenInSilentRenew=w,H._accessTokenExpiringNotificationTime=M,H._monitorSession=S,H._monitorAnonymousSession=x,H._checkSessionInterval=k,H._stopCheckSessionOnError=O,A?H._query_status_response_type=A:arguments[0]&&arguments[0].response_type?H._query_status_response_type=c.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":H._query_status_response_type="id_token",H._revokeAccessTokenOnSignout=I,H._redirectNavigator=F,H._popupNavigator=L,H._iframeNavigator=U,H._userStore=B,H}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),t}(i.OidcClientSettings)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectNavigator=void 0;var r=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}}(),i=n(0);t.RedirectNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(){return Promise.resolve(this)},e.prototype.navigate=function(e){return e&&e.url?(e.useReplaceToNavigate?window.location.replace(e.url):window.location=e.url,Promise.resolve()):(i.Log.error("RedirectNavigator.navigate: No url provided"),Promise.reject(new Error("No url provided")))},r(e,[{key:"url",get:function(){return window.location.href}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupNavigator=void 0;var r=n(0),i=n(42);t.PopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new i.PopupWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t,n,o){r.Log.debug("PopupNavigator.callback");try{return i.PopupWindow.notifyOpener(t,n,o),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupWindow=void 0;var r=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}}(),i=n(0),o=n(3);t.PopupWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise((function(e,t){n._resolve=e,n._reject=t}));var r=t.popupWindowTarget||"_blank",o=t.popupWindowFeatures||"location=no,toolbar=no,width=500,height=500,left=100,top=100;";this._popup=window.open("",r,o),this._popup&&(i.Log.debug("PopupWindow.ctor: popup successfully created"),this._checkForPopupClosedTimer=window.setInterval(this._checkForPopupClosed.bind(this),500))}return e.prototype.navigate=function(e){return this._popup?e&&e.url?(i.Log.debug("PopupWindow.navigate: Setting URL in popup"),this._id=e.id,this._id&&(window["popupCallback_"+e.id]=this._callback.bind(this)),this._popup.focus(),this._popup.window.location=e.url):(this._error("PopupWindow.navigate: no url provided"),this._error("No url provided")):this._error("PopupWindow.navigate: Error opening popup window"),this.promise},e.prototype._success=function(e){i.Log.debug("PopupWindow.callback: Successful response from popup window"),this._cleanup(),this._resolve(e)},e.prototype._error=function(e){i.Log.error("PopupWindow.error: ",e),this._cleanup(),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup(!1)},e.prototype._cleanup=function(e){i.Log.debug("PopupWindow.cleanup"),window.clearInterval(this._checkForPopupClosedTimer),this._checkForPopupClosedTimer=null,delete window["popupCallback_"+this._id],this._popup&&!e&&this._popup.close(),this._popup=null},e.prototype._checkForPopupClosed=function(){this._popup&&!this._popup.closed||this._error("Popup window closed")},e.prototype._callback=function(e,t){this._cleanup(t),e?(i.Log.debug("PopupWindow.callback success"),this._success({url:e})):(i.Log.debug("PopupWindow.callback: Invalid response from popup"),this._error("Invalid response from popup"))},e.notifyOpener=function(e,t,n){if(window.opener){if(e=e||window.location.href){var r=o.UrlUtility.parseUrlFragment(e,n);if(r.state){var a="popupCallback_"+r.state,s=window.opener[a];s?(i.Log.debug("PopupWindow.notifyOpener: passing url message to opener"),s(e,t)):i.Log.warn("PopupWindow.notifyOpener: no matching callback found on opener")}else i.Log.warn("PopupWindow.notifyOpener: no state found in response url")}}else i.Log.warn("PopupWindow.notifyOpener: no window.opener. Can't complete notification.")},r(e,[{key:"promise",get:function(){return this._promise}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameNavigator=void 0;var r=n(0),i=n(44);t.IFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new i.IFrameWindow(e);return Promise.resolve(t)},e.prototype.callback=function e(t){r.Log.debug("IFrameNavigator.callback");try{return i.IFrameWindow.notifyParent(t),Promise.resolve()}catch(e){return Promise.reject(e)}},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IFrameWindow=void 0;var r=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}}(),i=n(0);t.IFrameWindow=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._promise=new Promise((function(e,t){n._resolve=e,n._reject=t})),this._boundMessageEvent=this._message.bind(this),window.addEventListener("message",this._boundMessageEvent,!1),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.width=0,this._frame.height=0,window.document.body.appendChild(this._frame)}return e.prototype.navigate=function(e){if(e&&e.url){var t=e.silentRequestTimeout||1e4;i.Log.debug("IFrameWindow.navigate: Using timeout of:",t),this._timer=window.setTimeout(this._timeout.bind(this),t),this._frame.src=e.url}else this._error("No url provided");return this.promise},e.prototype._success=function(e){this._cleanup(),i.Log.debug("IFrameWindow: Successful response from frame window"),this._resolve(e)},e.prototype._error=function(e){this._cleanup(),i.Log.error(e),this._reject(new Error(e))},e.prototype.close=function(){this._cleanup()},e.prototype._cleanup=function(){this._frame&&(i.Log.debug("IFrameWindow: cleanup"),window.removeEventListener("message",this._boundMessageEvent,!1),window.clearTimeout(this._timer),window.document.body.removeChild(this._frame),this._timer=null,this._frame=null,this._boundMessageEvent=null)},e.prototype._timeout=function(){i.Log.debug("IFrameWindow.timeout"),this._error("Frame window timed out")},e.prototype._message=function(e){if(i.Log.debug("IFrameWindow.message"),this._timer&&e.origin===this._origin&&e.source===this._frame.contentWindow&&"string"==typeof e.data&&(e.data.startsWith("http://")||e.data.startsWith("https://"))){var t=e.data;t?this._success({url:t}):this._error("Invalid response from frame")}},e.notifyParent=function(e){i.Log.debug("IFrameWindow.notifyParent"),(e=e||window.location.href)&&(i.Log.debug("IFrameWindow.notifyParent: posting url message to parent"),window.parent.postMessage(e,location.protocol+"//"+location.host))},r(e,[{key:"promise",get:function(){return this._promise}},{key:"_origin",get:function(){return location.protocol+"//"+location.host}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerEvents=void 0;var r=n(0),i=n(16),o=n(17);t.UserManagerEvents=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r._userLoaded=new o.Event("User loaded"),r._userUnloaded=new o.Event("User unloaded"),r._silentRenewError=new o.Event("Silent renew error"),r._userSignedIn=new o.Event("User signed in"),r._userSignedOut=new o.Event("User signed out"),r._userSessionChanged=new o.Event("User session changed"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.load=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r.Log.debug("UserManagerEvents.load"),e.prototype.load.call(this,t),n&&this._userLoaded.raise(t)},t.prototype.unload=function(){r.Log.debug("UserManagerEvents.unload"),e.prototype.unload.call(this),this._userUnloaded.raise()},t.prototype.addUserLoaded=function(e){this._userLoaded.addHandler(e)},t.prototype.removeUserLoaded=function(e){this._userLoaded.removeHandler(e)},t.prototype.addUserUnloaded=function(e){this._userUnloaded.addHandler(e)},t.prototype.removeUserUnloaded=function(e){this._userUnloaded.removeHandler(e)},t.prototype.addSilentRenewError=function(e){this._silentRenewError.addHandler(e)},t.prototype.removeSilentRenewError=function(e){this._silentRenewError.removeHandler(e)},t.prototype._raiseSilentRenewError=function(e){r.Log.debug("UserManagerEvents._raiseSilentRenewError",e.message),this._silentRenewError.raise(e)},t.prototype.addUserSignedIn=function(e){this._userSignedIn.addHandler(e)},t.prototype.removeUserSignedIn=function(e){this._userSignedIn.removeHandler(e)},t.prototype._raiseUserSignedIn=function(){r.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},t.prototype.addUserSignedOut=function(e){this._userSignedOut.addHandler(e)},t.prototype.removeUserSignedOut=function(e){this._userSignedOut.removeHandler(e)},t.prototype._raiseUserSignedOut=function(){r.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},t.prototype.addUserSessionChanged=function(e){this._userSessionChanged.addHandler(e)},t.prototype.removeUserSessionChanged=function(e){this._userSessionChanged.removeHandler(e)},t.prototype._raiseUserSessionChanged=function(){r.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},t}(i.AccessTokenEvents)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var r=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}}(),i=n(0),o=n(1),a=n(17);t.Timer=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return a._timer=r,a._nowFunc=i||function(){return Date.now()/1e3},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.init=function(e){e<=0&&(e=1),e=parseInt(e);var t=this.now+e;if(this.expiration===t&&this._timerHandle)i.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),i.Log.debug("Timer.init timer "+this._name+" for duration:",e),this._expiration=t;var n=5;e<n&&(n=e),this._timerHandle=this._timer.setInterval(this._callback.bind(this),1e3*n)}},t.prototype.cancel=function(){this._timerHandle&&(i.Log.debug("Timer.cancel: ",this._name),this._timer.clearInterval(this._timerHandle),this._timerHandle=null)},t.prototype._callback=function(){var t=this._expiration-this.now;i.Log.debug("Timer.callback; "+this._name+" timer expires in:",t),this._expiration<=this.now&&(this.cancel(),e.prototype.raise.call(this))},r(t,[{key:"now",get:function(){return parseInt(this._nowFunc())}},{key:"expiration",get:function(){return this._expiration}}]),t}(a.Event)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SilentRenewService=void 0;var r=n(0);t.SilentRenewService=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._userManager=t}return e.prototype.start=function(){this._callback||(this._callback=this._tokenExpiring.bind(this),this._userManager.events.addAccessTokenExpiring(this._callback),this._userManager.getUser().then((function(e){})).catch((function(e){r.Log.error("SilentRenewService.start: Error from getUser:",e.message)})))},e.prototype.stop=function(){this._callback&&(this._userManager.events.removeAccessTokenExpiring(this._callback),delete this._callback)},e.prototype._tokenExpiring=function(){var e=this;this._userManager.signinSilent().then((function(e){r.Log.debug("SilentRenewService._tokenExpiring: Silent token renewal successful")}),(function(t){r.Log.error("SilentRenewService._tokenExpiring: Error from signinSilent:",t.message),e._userManager.events._raiseSilentRenewError(t)}))},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaPopupNavigator=void 0;var r=n(21);t.CordovaPopupNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){var t=new r.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CordovaIFrameNavigator=void 0;var r=n(21);t.CordovaIFrameNavigator=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.prepare=function(e){e.popupWindowFeatures="hidden=yes";var t=new r.CordovaPopupWindow(e);return Promise.resolve(t)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Version="1.11.5"}])},e.exports=t()},57588:function(e){(function(){var t,n,r,i,o,a;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},n=process.hrtime,i=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},102:(e,t,n)=>{"use strict";var r=n(39814);function i(){}var o=null,a={};function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._h=0,this._i=0,this._j=null,this._k=null,e!==i&&d(e,this)}function u(e,t){for(;3===e._i;)e=e._j;if(s._l&&s._l(e),0===e._i)return 0===e._h?(e._h=1,void(e._k=t)):1===e._h?(e._h=2,void(e._k=[e._k,t])):void e._k.push(t);!function(e,t){r((function(){var n=1===e._i?t.onFulfilled:t.onRejected;if(null!==n){var r=function(e,t){try{return e(t)}catch(n){return o=n,a}}(n,e._j);r===a?c(t.promise,o):l(t.promise,r)}else 1===e._i?l(t.promise,e._j):c(t.promise,e._j)}))}(e,t)}function l(e,t){if(t===e)return c(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=function(e){try{return e.then}catch(t){return o=t,a}}(t);if(n===a)return c(e,o);if(n===e.then&&t instanceof s)return e._i=3,e._j=t,void f(e);if("function"===typeof n)return void d(n.bind(t),e)}e._i=1,e._j=t,f(e)}function c(e,t){e._i=2,e._j=t,s._m&&s._m(e,t),f(e)}function f(e){if(1===e._h&&(u(e,e._k),e._k=null),2===e._h){for(var t=0;t<e._k.length;t++)u(e,e._k[t]);e._k=null}}function p(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1,r=function(e,t,n){try{e(t,n)}catch(r){return o=r,a}}(e,(function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,c(t,e))}));n||r!==a||(n=!0,c(t,o))}e.exports=s,s._l=null,s._m=null,s._n=i,s.prototype.then=function(e,t){if(this.constructor!==s)return function(e,t,n){return new e.constructor((function(r,o){var a=new s(i);a.then(r,o),u(e,new p(t,n,a))}))}(this,e,t);var n=new s(i);return u(this,new p(e,t,n)),n}},37806:(e,t,n)=>{"use strict";var r=n(102);e.exports=r;var i=c(!0),o=c(!1),a=c(null),s=c(void 0),u=c(0),l=c("");function c(e){var t=new r(r._n);return t._i=1,t._j=e,t}r.resolve=function(e){if(e instanceof r)return e;if(null===e)return a;if(void 0===e)return s;if(!0===e)return i;if(!1===e)return o;if(0===e)return u;if(""===e)return l;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new r(t.bind(e))}catch(n){return new r((function(e,t){t(n)}))}return c(e)},r.all=function(e){var t=Array.prototype.slice.call(e);return new r((function(e,n){if(0===t.length)return e([]);var i=t.length;function o(a,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof r&&s.then===r.prototype.then){for(;3===s._i;)s=s._j;return 1===s._i?o(a,s._j):(2===s._i&&n(s._j),void s.then((function(e){o(a,e)}),n))}var u=s.then;if("function"===typeof u)return void new r(u.bind(s)).then((function(e){o(a,e)}),n)}t[a]=s,0===--i&&e(t)}for(var a=0;a<t.length;a++)o(a,t[a])}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){e.forEach((function(e){r.resolve(e).then(t,n)}))}))},r.prototype.catch=function(e){return this.then(null,e)}},4382:(e,t,n)=>{"use strict";var r=n(102),i=[ReferenceError,TypeError,RangeError],o=!1;function a(){o=!1,r._l=null,r._m=null}function s(e,t){return t.some((function(t){return e instanceof t}))}t.disable=a,t.enable=function(e){e=e||{},o&&a();o=!0;var t=0,n=0,u={};function l(t){(e.allRejections||s(u[t].error,e.whitelist||i))&&(u[t].displayId=n++,e.onUnhandled?(u[t].logged=!0,e.onUnhandled(u[t].displayId,u[t].error)):(u[t].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(u[t].displayId,u[t].error)))}r._l=function(t){2===t._i&&u[t._o]&&(u[t._o].logged?function(t){u[t].logged&&(e.onHandled?e.onHandled(u[t].displayId,u[t].error):u[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+u[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+u[t].displayId+".")))}(t._o):clearTimeout(u[t._o].timeout),delete u[t._o])},r._m=function(e,n){0===e._h&&(e._o=t++,u[e._o]={displayId:null,error:n,timeout:setTimeout(l.bind(null,e._o),s(n,i)?100:2e3),logged:!1})}}},41497:(e,t,n)=>{"use strict";var r=n(13218);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,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};return n.PropTypes=n,n}},65173:(e,t,n)=>{e.exports=n(41497)()},13218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},39108:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},22908:(e,t,n)=>{"use strict";var r=n(82129),i=n(90639),o=n(39108);e.exports={formats:o,parse:i,stringify:r}},90639:(e,t,n)=>{"use strict";var r=n(60149),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=s?o.slice(0,s.index):o,c=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&null!==(s=a.exec(o))&&f<n.depth;){if(f+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:u(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===i||n.strictNullHandling&&null===i)?[]:[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,f=parseInt(c,10);n.parseArrays||""!==c?!isNaN(f)&&s!==c&&String(f)===c&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(a=[])[f]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,n="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:"undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var n={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=l.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(c=0;c<p.length;++c)0===p[c].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[c]?h="utf-8":"utf8=%26%2310003%3B"===p[c]&&(h="iso-8859-1"),d=c,c=p.length);for(c=0;c<p.length;++c)if(c!==d){var g,v,y=p[c],m=y.indexOf("]="),b=-1===m?y.indexOf("="):m+1;-1===b?(g=t.decoder(y,a.decoder,h,"key"),v=t.strictNullHandling?null:""):(g=t.decoder(y.slice(0,b),a.decoder,h,"key"),v=r.maybeMap(u(y.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===h&&(v=s(v)),y.indexOf("[]=")>-1&&(v=o(v)?[v]:v);var w=i.call(n,g);w&&"combine"===t.duplicates?n[g]=r.combine(n[g],v):w&&"last"!==t.duplicates||(n[g]=v)}return n}(e,n):e,f=n.plainObjects?Object.create(null):{},p=Object.keys(c),d=0;d<p.length;++d){var h=p[d],g=l(h,c[h],n,"string"===typeof e);f=r.merge(f,g,n)}return!0===n.allowSparse?f:r.compact(f)}},82129:(e,t,n)=>{"use strict";var r=n(19269),i=n(60149),o=n(39108),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,l=Array.prototype.push,c=function(e,t){l.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,p=o.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},h={},g=function e(t,n,o,a,s,l,f,p,g,v,y,m,b,w,_,S,E,x){for(var T,k=t,C=x,O=0,A=!1;void 0!==(C=C.get(h))&&!A;){var P=C.get(t);if(O+=1,"undefined"!==typeof P){if(P===O)throw new RangeError("Cyclic object value");A=!0}"undefined"===typeof C.get(h)&&(O=0)}if("function"===typeof v?k=v(n,k):k instanceof Date?k=b(k):"comma"===o&&u(k)&&(k=i.maybeMap(k,(function(e){return e instanceof Date?b(e):e}))),null===k){if(l)return g&&!S?g(n,d.encoder,E,"key",w):n;k=""}if("string"===typeof(T=k)||"number"===typeof T||"boolean"===typeof T||"symbol"===typeof T||"bigint"===typeof T||i.isBuffer(k))return g?[_(S?n:g(n,d.encoder,E,"key",w))+"="+_(g(k,d.encoder,E,"value",w))]:[_(n)+"="+_(String(k))];var I,j=[];if("undefined"===typeof k)return j;if("comma"===o&&u(k))S&&g&&(k=i.maybeMap(k,g)),I=[{value:k.length>0?k.join(",")||null:void 0}];else if(u(v))I=v;else{var M=Object.keys(k);I=y?M.sort(y):M}var N=p?n.replace(/\./g,"%2E"):n,F=a&&u(k)&&1===k.length?N+"[]":N;if(s&&u(k)&&0===k.length)return F+"[]";for(var R=0;R<I.length;++R){var L=I[R],D="object"===typeof L&&"undefined"!==typeof L.value?L.value:k[L];if(!f||null!==D){var U=m&&p?L.replace(/\./g,"%2E"):L,z=u(k)?"function"===typeof o?o(F,U):F:F+(m?"."+U:"["+U+"]");x.set(t,O);var B=r();B.set(h,x),c(j,e(D,z,o,a,s,l,f,p,"comma"===o&&S&&u(k)?null:g,v,y,m,b,w,_,S,E,B))}}return j};e.exports=function(e,t){var n,i=e,l=function(e){if(!e)return d;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=o.formatters[n],l=d.filter;if(("function"===typeof e.filter||u(e.filter))&&(l=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?d.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:l,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"===typeof l.filter?i=(0,l.filter)("",i):u(l.filter)&&(n=l.filter);var f=[];if("object"!==typeof i||null===i)return"";var p=s[l.arrayFormat],h="comma"===p&&l.commaRoundTrip;n||(n=Object.keys(i)),l.sort&&n.sort(l.sort);for(var v=r(),y=0;y<n.length;++y){var m=n[y];l.skipNulls&&null===i[m]||c(f,g(i[m],m,p,h,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,v))}var b=f.join(l.delimiter),w=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},60149:(e,t,n)=>{"use strict";var r=n(39108),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},u=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var l=s[u],c=a[l];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;c+=u){for(var f=s.length>=u?s.slice(c,c+u):s,p=[],d=0;d<f.length;++d){var h=f.charCodeAt(d);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===r.RFC1738&&(40===h||41===h)?p[p.length]=f.charAt(d):h<128?p[p.length]=a[h]:h<2048?p[p.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?p[p.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(d+=1,h=65536+((1023&h)<<10|1023&f.charCodeAt(d)),p[p.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}l+=p.join("")}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},8073:(e,t,n)=>{for(var r=n(57588),i="undefined"===typeof window?n.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],l=0;!s&&l<o.length;l++)s=i[o[l]+"Request"+a],u=i[o[l]+"Cancel"+a]||i[o[l]+"CancelRequest"+a];if(!s||!u){var c=0,f=0,p=[],d=1e3/60;s=function(e){if(0===p.length){var t=r(),n=Math.max(0,d-(t-c));c=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}},58414:(e,t,n)=>{n(8073).polyfill()},15792:(e,t,n)=>{"use strict";n.d(t,{C6:()=>d,$n:()=>pe,mc:()=>y,xA:()=>x,Sz:()=>de,N_:()=>fe,Ny:()=>he,e3:()=>ge,Ji:()=>ve,Ab:()=>me,Ld:()=>be,tw:()=>we,V8:()=>_e,qn:()=>Se});var r=n(65043),i=n(57889),o=n.n(i),a=n(50197),s=n.n(a);const u=[{name:"ai",namespace:"ai"},{name:"align",namespace:"align"},{name:"bgcolor",namespace:"bgcolor"},{name:"cf",namespace:"cf"},{name:"color",namespace:"color"},{name:"display",namespace:""},{name:"fd",namespace:"fd"},{name:"float",namespace:"float"},{name:"jc",namespace:"jc"},{name:"m",namespace:"m"},{name:"mt",namespace:"mt"},{name:"mr",namespace:"mr"},{name:"mb",namespace:"mb"},{name:"ml",namespace:"ml"},{name:"mv",namespace:"mv"},{name:"mh",namespace:"mh"},{name:"opacity",namespace:"opacity"},{name:"p",namespace:"p"},{name:"pt",namespace:"pt"},{name:"pr",namespace:"pr"},{name:"pb",namespace:"pb"},{name:"pl",namespace:"pl"},{name:"pv",namespace:"pv"},{name:"ph",namespace:"ph"},{name:"position",namespace:""},{name:"pull",namespace:"pull"},{name:"push",namespace:"push"},{name:"size",namespace:""},{name:"text",namespace:"text"},{name:"transform",namespace:""},{name:"weight",namespace:"weight"}];const l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).filter((function(t){return!e.hasOwnProperty(t)})).reduce((function(e,n){return Object.assign(e,(r={},i=n,o=t[n],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r));var r,i,o}),{})};var c=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},f=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}}();var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),f(t,[{key:"render",value:function(){var e=this.props,n=e.tagName,i=e.children,o=e.className,a=s()(o,function(e){var t="";return Object.keys(e).map((function(n){var r=n.substr(1).toLowerCase(),i=!0===e[n]?"":e[n],o=u.filter((function(e){return e.name.toLowerCase()===r}))[0];if(o)return("string"===typeof i?i.split(" "):[]).map((function(e){return t="u",o.namespace.length>0&&(t+="-"+o.namespace),"all"===e?e="":"@"===e.charAt(0)?(e.replace("@",""),t+=e):e.length&&(t+="-"+e),t}))}))}(this.props)),f=l(t.propTypes,this.props);return r.createElement(n,c({className:a},f),i)}}]),t}(r.Component);p.defaultProps={tagName:"div"},p.propTypes={tagName:o().oneOfType([o().string,o().func,o().element]),className:o().string,children:o().node,uAi:o().string,uAlign:o().string,uBgcolor:o().string,uCf:o().bool,uColor:o().string,uDisplay:o().string,uFd:o().string,uFloat:o().string,uJc:o().string,uM:o().oneOfType([o().bool,o().string]),uMt:o().oneOfType([o().bool,o().string]),uMr:o().oneOfType([o().bool,o().string]),uMb:o().oneOfType([o().bool,o().string]),uMl:o().oneOfType([o().bool,o().string]),uMv:o().oneOfType([o().bool,o().string]),uMh:o().oneOfType([o().bool,o().string]),uOpacity:o().string,uP:o().oneOfType([o().bool,o().string]),uPt:o().oneOfType([o().bool,o().string]),uPr:o().oneOfType([o().bool,o().string]),uPb:o().oneOfType([o().bool,o().string]),uPl:o().oneOfType([o().bool,o().string]),uPv:o().oneOfType([o().bool,o().string]),uPh:o().oneOfType([o().bool,o().string]),uPosition:o().string,uPull:o().string,uPush:o().string,uSize:o().string,uText:o().string,uTransform:o().string,uWeight:o().string};const d=p;var h=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};function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){var t,n=e.gutter,i=e.size,o=e.children,a=e.className,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["gutter","size","children","className"]),l=s()("o-container",(g(t={},"o-container--"+n,n),g(t,"o-container--"+i,i),t),a);return r.createElement(d,h({className:l},u),o)};v.propTypes={gutter:o().string,size:o().string,children:o().node};const y=v;var m=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};var b=function(e){var t=e.children,n=e.className,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className"]),o=s()("o-grid__col",n);return r.createElement(d,m({className:o},i),t)};b.propTypes={children:o().node};const w=b;var _=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};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}var E=function(e){var t,n=e.gutter,i=e.align,o=e.rev,a=e.equalHeight,u=e.children,l=e.className,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["gutter","align","rev","equalHeight","children","className"]),f=s()("o-grid",(S(t={},"o-grid--"+n,n),S(t,"o-grid--"+i,i),S(t,"o-grid--rev",o),S(t,"o-grid--equal-height",a),t),l);return r.createElement(d,_({className:f},c),u)};E.propTypes={gutter:o().string,align:o().oneOf(["right","center","top","middle","bottom","around","between"]),rev:o().bool,equalHeight:o().bool,children:o().node},E.Column=w;const x=E;var T=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};var k=function(e){var t=e.children,n=e.className,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className"]),o=s()("o-list__item",n);return r.createElement(d,T({tagName:"li",className:o},i),t)};k.propTypes={children:o().node};const C=k;var O=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};function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(e){var t,n=e.type,i=e.gutter,o=e.align,a=e.tagName,u=e.children,l=e.className,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["type","gutter","align","tagName","children","className"]),f=s()("o-list",(A(t={},"o-list--"+n,n),A(t,"o-list--"+i,i),A(t,"o-list--"+o,o),t),l);return r.createElement(d,O({tagName:a,className:f},c),u)};P.defaultProps={type:"inline",tagName:"ul"},P.propTypes={type:o().string,gutter:o().string,align:o().oneOf(["top","middle","bottom"]),tagName:o().oneOf(["ul","ol"]),children:o().node},P.Item=C;var I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var j=function(e){var t=e.children,n=e.className,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className"]),o=s()("o-media__fixed",n);return r.createElement(d,I({className:o},i),t)};j.propTypes={children:o().node};const M=j;var N=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};var F=function(e){var t=e.children,n=e.className,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className"]),o=s()("o-media__fluid",n);return r.createElement(d,N({className:o},i),t)};F.propTypes={children:o().node};const R=F;var L=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};function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=function(e){var t,n=e.gutter,i=e.align,o=e.rev,a=e.res,u=e.children,l=e.className,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["gutter","align","rev","res","children","className"]),f=s()("o-media",(D(t={},"o-media--"+n,n),D(t,"o-media--"+i,i),D(t,"o-media--rev",o),D(t,"o-media--res",a),t),l);return r.createElement(d,L({tagName:"div",className:f},c),u)};U.propTypes={gutter:o().string,align:o().oneOf(["top","middle","bottom"]),rev:o().bool,children:o().node},U.Fixed=M,U.Fluid=R;var z=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};var B=function(e){var t,n,i,o=e.size,a=e.children,u=e.className,l=e.tagName,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","children","className","tagName"]),f=s()(u,(i=o,(n="o-type-"+o)in(t={})?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t));return r.createElement(d,z({tagName:l,className:f},c),a)};B.propTypes={size:o().string,children:o().node,className:o().string,tagName:o().string},B.defaultProps={tagName:"p"};const H=B;var V=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};var q=function(e){var t,n,i,o=e.size,a=e.children,u=e.className,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","children","className"]),c=s()(u,(i=o,(n="o-type-"+o)in(t={})?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t));return r.createElement(H,V({tagName:"h1",className:c},l),a)};q.propTypes={size:o().string,children:o().node,className:o().string};var W=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};var K=function(e){var t,n,i,o=e.size,a=e.children,u=e.className,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","children","className"]),c=s()(u,(i=o,(n="o-type-"+o)in(t={})?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t));return r.createElement(H,W({tagName:"h2",className:c},l),a)};K.propTypes={size:o().string,children:o().node,className:o().string};var G=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};var Y=function(e){var t,n,i,o=e.size,a=e.children,u=e.className,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","children","className"]),c=s()(u,(i=o,(n="o-type-"+o)in(t={})?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t));return r.createElement(H,G({tagName:"h3",className:c},l),a)};Y.propTypes={size:o().string,children:o().node,className:o().string};var $=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};var J=function(e){var t,n,i,o=e.size,a=e.children,u=e.className,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","children","className"]),c=s()(u,(i=o,(n="o-type-"+o)in(t={})?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t));return r.createElement(H,$({tagName:"h4",className:c},l),a)};J.propTypes={size:o().string,children:o().node,className:o().string};var Q=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};var Z=function(e){var t,n,i,o=e.size,a=e.children,u=e.className,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","children","className"]),c=s()(u,(i=o,(n="o-type-"+o)in(t={})?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t));return r.createElement(H,Q({tagName:"h5",className:c},l),a)};Z.propTypes={size:o().string,children:o().node,className:o().string};var X=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};var ee=function(e){var t,n,i,o=e.size,a=e.children,u=e.className,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","children","className"]),c=s()(u,(i=o,(n="o-type-"+o)in(t={})?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t));return r.createElement(H,X({tagName:"h6",className:c},l),a)};ee.propTypes={size:o().string,children:o().node,className:o().string};var te=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};var ne=function(e){var t,n,i,o=e.size,a=e.children,u=e.className,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","children","className"]),c=s()(u,(i=o,(n="o-type-"+o)in(t={})?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t));return r.createElement(H,te({className:c},l),a)};ne.propTypes={size:o().string,children:o().node,className:o().string};var re=n(64600),ie=n.n(re),oe=n(65173),ae=n.n(oe),se=n(35475);function ue(e){if(e&&"undefined"!==typeof window){var t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}}function le(){return le=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},le.apply(this,arguments)}function ce(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-badge {\n background-color: #fcf67f;\n border-color: #fcf67f;\n border-radius: 5px;\n border-style: solid;\n border-width: 0.3rem;\n color: #222;\n display: inline;\n font-size: 14px;\n font-weight: 700;\n margin: 0 10px;\n padding: 2px;\n text-align: center;\n text-decoration: none;\n text-transform: uppercase;\n white-space: nowrap;\n vertical-align: middle; }\n\n.c-badge--secondary {\n background-color: transparent;\n border-color: #999;\n color: #999; }\n\n.c-badge--black {\n background-color: #000;\n border-color: #000;\n color: #f5f6f9; }\n\n.c-badge--white {\n background-color: #fff;\n border-color: #fff;\n color: #222; }\n\n.c-badge--brand-raspberry-pi-red {\n background-color: #c51d4a;\n border-color: #c51d4a;\n color: #f5f6f9; }\n\n.c-badge--brand-raspberry-pi-green {\n background-color: #6ac146;\n border-color: #6ac146;\n color: #222; }\n\n.c-badge--primary-yellow {\n background-color: #ffb12a;\n border-color: #ffb12a;\n color: #222; }\n\n.c-badge--primary-orange {\n background-color: #f68e3b;\n border-color: #f68e3b;\n color: #222; }\n\n.c-badge--primary-red {\n background-color: #f3524f;\n border-color: #f3524f;\n color: #222; }\n\n.c-badge--primary-violet {\n background-color: #a76fba;\n border-color: #a76fba;\n color: #222; }\n\n.c-badge--primary-navy {\n background-color: #004881;\n border-color: #004881;\n color: #f5f6f9; }\n\n.c-badge--primary-blue {\n background-color: #41a6c4;\n border-color: #41a6c4;\n color: #222; }\n\n.c-badge--primary-turquoise {\n background-color: #10aeb0;\n border-color: #10aeb0;\n color: #f5f6f9; }\n\n.c-badge--primary-green {\n background-color: #53ce63;\n border-color: #53ce63;\n color: #222; }\n\n.c-badge--secondary-yellow {\n background-color: #fddd42;\n border-color: #fddd42;\n color: #222; }\n\n.c-badge--secondary-orange {\n background-color: #ffc869;\n border-color: #ffc869;\n color: #222; }\n\n.c-badge--secondary-red {\n background-color: #f68583;\n border-color: #f68583;\n color: #222; }\n\n.c-badge--secondary-violet {\n background-color: #c29acf;\n border-color: #c29acf;\n color: #222; }\n\n.c-badge--secondary-navy {\n background-color: #4c7fa7;\n border-color: #4c7fa7;\n color: #f5f6f9; }\n\n.c-badge--secondary-blue {\n background-color: #87dcf6;\n border-color: #87dcf6;\n color: #222; }\n\n.c-badge--secondary-turquoise {\n background-color: #58c7c8;\n border-color: #58c7c8;\n color: #222; }\n\n.c-badge--secondary-green {\n background-color: #87dd92;\n border-color: #87dd92;\n color: #222; }\n\n.c-badge--secondary-pink {\n background-color: #f68583;\n border-color: #f68583;\n color: #222; }\n\n.c-badge--secondary-blue-dark {\n background-color: #374e60;\n border-color: #374e60;\n color: #f5f6f9; }\n\n.c-badge--ui-black {\n background-color: #222;\n border-color: #222;\n color: #f5f6f9; }\n\n.c-badge--ui-grey-dark {\n background-color: #444;\n border-color: #444;\n color: #f5f6f9; }\n\n.c-badge--ui-grey-medium {\n background-color: #999;\n border-color: #999;\n color: #222; }\n\n.c-badge--ui-grey-light {\n background-color: #ccc;\n border-color: #ccc;\n color: #222; }\n\n.c-badge--ui-grey-lightest {\n background-color: #eee;\n border-color: #eee;\n color: #222; }\n\n.c-badge--ui-white {\n background-color: #f5f6f9;\n border-color: #f5f6f9;\n color: #222; }\n\n.c-badge--ui-yellow {\n background-color: #fcf67f;\n border-color: #fcf67f;\n color: #222; }\n");ae().string,ae().node.isRequired,ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-button,\n.c-button:visited {\n font-size: 1.6rem;\n line-height: 35px;\n appearance: none;\n background-color: #fcf67f;\n border-color: #fcf67f;\n border-radius: 5px;\n border-style: solid;\n border-width: 0.3rem;\n color: #222;\n cursor: pointer;\n display: inline-block;\n font-weight: 500;\n padding: 0 20px;\n text-align: center;\n text-decoration: none;\n transition-duration: 100ms;\n transition-property: background-color, border-color, color;\n transition-timing-function: ease-in-out;\n vertical-align: middle; }\n @media screen and (min-width: 768px) {\n .c-button,\n .c-button:visited {\n font-size: 1.8rem;\n line-height: 40px; } }\n .c-button:hover,\n .c-button:visited:hover {\n background-color: #444;\n border-color: #444;\n color: #fff; }\n\n.c-button--secondary,\n.c-button--secondary:visited {\n background-color: transparent;\n border-color: #999;\n color: #999; }\n\n.c-button--light-on-dark:hover,\n.c-button--light-on-dark:visited:hover {\n background-color: #fff;\n border-color: #fff;\n color: #444; }\n\n.c-button--block {\n display: block;\n width: 100%; }\n\n.c-button--disabled,\n.c-button--disabled:visited,\n.c-button[disabled=''],\n.c-button[disabled='']:visited,\n.c-button[disabled='disabled'],\n.c-button[disabled='disabled']:visited {\n background-color: #eee;\n border-color: #eee;\n color: #999;\n pointer-events: none; }\n\n.c-button--black,\n.c-button--black:visited {\n background-color: #000;\n border-color: #000;\n color: #f5f6f9; }\n\n.c-button--white,\n.c-button--white:visited {\n background-color: #fff;\n border-color: #fff;\n color: #222; }\n\n.c-button--brand-raspberry-pi-red,\n.c-button--brand-raspberry-pi-red:visited {\n background-color: #c51d4a;\n border-color: #c51d4a;\n color: #f5f6f9; }\n\n.c-button--brand-raspberry-pi-green,\n.c-button--brand-raspberry-pi-green:visited {\n background-color: #6ac146;\n border-color: #6ac146;\n color: #222; }\n\n.c-button--primary-yellow,\n.c-button--primary-yellow:visited {\n background-color: #ffb12a;\n border-color: #ffb12a;\n color: #222; }\n\n.c-button--primary-orange,\n.c-button--primary-orange:visited {\n background-color: #f68e3b;\n border-color: #f68e3b;\n color: #222; }\n\n.c-button--primary-red,\n.c-button--primary-red:visited {\n background-color: #f3524f;\n border-color: #f3524f;\n color: #222; }\n\n.c-button--primary-violet,\n.c-button--primary-violet:visited {\n background-color: #a76fba;\n border-color: #a76fba;\n color: #222; }\n\n.c-button--primary-navy,\n.c-button--primary-navy:visited {\n background-color: #004881;\n border-color: #004881;\n color: #f5f6f9; }\n\n.c-button--primary-blue,\n.c-button--primary-blue:visited {\n background-color: #41a6c4;\n border-color: #41a6c4;\n color: #222; }\n\n.c-button--primary-turquoise,\n.c-button--primary-turquoise:visited {\n background-color: #10aeb0;\n border-color: #10aeb0;\n color: #f5f6f9; }\n\n.c-button--primary-green,\n.c-button--primary-green:visited {\n background-color: #53ce63;\n border-color: #53ce63;\n color: #222; }\n\n.c-button--secondary-yellow,\n.c-button--secondary-yellow:visited {\n background-color: #fddd42;\n border-color: #fddd42;\n color: #222; }\n\n.c-button--secondary-orange,\n.c-button--secondary-orange:visited {\n background-color: #ffc869;\n border-color: #ffc869;\n color: #222; }\n\n.c-button--secondary-red,\n.c-button--secondary-red:visited {\n background-color: #f68583;\n border-color: #f68583;\n color: #222; }\n\n.c-button--secondary-violet,\n.c-button--secondary-violet:visited {\n background-color: #c29acf;\n border-color: #c29acf;\n color: #222; }\n\n.c-button--secondary-navy,\n.c-button--secondary-navy:visited {\n background-color: #4c7fa7;\n border-color: #4c7fa7;\n color: #f5f6f9; }\n\n.c-button--secondary-blue,\n.c-button--secondary-blue:visited {\n background-color: #87dcf6;\n border-color: #87dcf6;\n color: #222; }\n\n.c-button--secondary-turquoise,\n.c-button--secondary-turquoise:visited {\n background-color: #58c7c8;\n border-color: #58c7c8;\n color: #222; }\n\n.c-button--secondary-green,\n.c-button--secondary-green:visited {\n background-color: #87dd92;\n border-color: #87dd92;\n color: #222; }\n\n.c-button--secondary-pink,\n.c-button--secondary-pink:visited {\n background-color: #f68583;\n border-color: #f68583;\n color: #222; }\n\n.c-button--secondary-blue-dark,\n.c-button--secondary-blue-dark:visited {\n background-color: #374e60;\n border-color: #374e60;\n color: #f5f6f9; }\n\n.c-button--ui-black,\n.c-button--ui-black:visited {\n background-color: #222;\n border-color: #222;\n color: #f5f6f9; }\n\n.c-button--ui-grey-dark,\n.c-button--ui-grey-dark:visited {\n background-color: #444;\n border-color: #444;\n color: #f5f6f9; }\n\n.c-button--ui-grey-medium,\n.c-button--ui-grey-medium:visited {\n background-color: #999;\n border-color: #999;\n color: #222; }\n\n.c-button--ui-grey-light,\n.c-button--ui-grey-light:visited {\n background-color: #ccc;\n border-color: #ccc;\n color: #222; }\n\n.c-button--ui-grey-lightest,\n.c-button--ui-grey-lightest:visited {\n background-color: #eee;\n border-color: #eee;\n color: #222; }\n\n.c-button--ui-white,\n.c-button--ui-white:visited {\n background-color: #f5f6f9;\n border-color: #f5f6f9;\n color: #222; }\n\n.c-button--ui-yellow,\n.c-button--ui-yellow:visited {\n background-color: #fcf67f;\n border-color: #fcf67f;\n color: #222; }\n"),ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-link {\n color: #004881;\n cursor: pointer;\n font-weight: 500;\n text-decoration: underline;\n text-decoration-skip-ink: auto;\n transition-duration: 100ms;\n transition-property: color;\n transition-timing-function: ease-in-out; }\n .c-link:hover, .c-link:hover:visited {\n color: #222; }\n .c-link:visited {\n color: #a76fba; }\n\n.c-link--light-on-dark {\n color: #eee; }\n .c-link--light-on-dark:hover, .c-link--light-on-dark:hover:visited {\n color: #fff; }\n .c-link--light-on-dark:visited {\n color: #eee; }\n\n.c-link--rpi {\n color: #c51d4a;\n font-weight: 300; }\n .c-link--rpi:visited {\n color: #c51d4a;\n font-weight: 300; }\n");var fe=function(e){var t=e.children,n=e.className,i=e.excludeClassname,o=e.lightOnDark,a=e.to,s=ce(e,["children","className","excludeClassname","lightOnDark","to"]),u=ie()({"c-link":!i,"c-link--light-on-dark":!i&&o},n),l=r.createElement(d,le({className:u,href:a,tagName:"a"},s),t),c=r.createElement(se.N_,le({className:u,to:a},s),t);return/^https?:\/\//i.test(a)?l:c};fe.propTypes={className:ae().string,children:ae().node.isRequired,excludeClassname:ae().bool,lightOnDark:ae().bool,to:ae().string.isRequired};var pe=function(e){var t=e.children,n=e.className,i=e.disabled,o=e.lightOnDark,a=e.secondary,s=e.to,u=ce(e,["children","className","disabled","lightOnDark","secondary","to"]),l=ie()("c-button",n,{"c-button--light-on-dark":o,"c-button--secondary":a,"c-button--disabled":i});return"string"===typeof s?r.createElement(fe,le({},u,{className:l,excludeClassname:!0,to:s}),t):r.createElement(d,le({},u,{className:l,disabled:i,tagName:"button"}),t)};pe.propTypes={className:ae().string,children:ae().node.isRequired,disabled:ae().bool,lightOnDark:ae().bool,secondary:ae().bool,to:ae().string},ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-card {\n background-color: #fff;\n border-radius: 5px;\n box-shadow: 0 0 0.3rem 0 rgba(0, 0, 0, 0.25);\n display: block;\n overflow: hidden;\n transition: box-shadow 100ms ease-in-out;\n width: 100%; }\n\n.c-card__image {\n width: 100%; }\n\n.c-card__content {\n padding: 20px; }\n\n.c-card__heading {\n font-size: 1.6rem;\n line-height: 1.5;\n font-weight: 500;\n margin-bottom: 1em;\n display: block;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-card__heading {\n font-size: 1.8rem;\n line-height: 1.5; } }\n\n.c-card--link,\n.c-card--link:active,\n.c-card--link:hover,\n.c-card--link:link,\n.c-card--link:visited {\n color: #222;\n cursor: pointer;\n text-decoration: none; }\n");ae().node,ae().string,ae().string,ae().string,ae().string,ae().string,ae().string,ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-figure {\n margin-bottom: 1em;\n text-align: center; }\n\n.c-figure__caption {\n font-size: 1.4rem;\n line-height: 1.5;\n background-color: #444;\n color: #f5f6f9;\n display: block; }\n @media screen and (min-width: 768px) {\n .c-figure__caption {\n font-size: 1.6rem;\n line-height: 1.5; } }\n\n.c-figure__image {\n display: block;\n margin: 0 auto;\n max-width: 100%; }\n");ae().string,ae().string,ae().string,ae().string,ae().string.isRequired,ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-hr {\n background-color: #eee;\n border-width: 0;\n height: 0.2rem;\n margin: 0 0 40px; }\n");ae().string,ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-light-on-dark {\n color: #eee; }\n");var de=function(e){var t=e.children,n=e.className,i=ce(e,["children","className"]),o=ie()("c-light-on-dark",n);return r.createElement(d,le({},i,{className:o}),t)};de.propTypes={className:ae().string,children:ae().node.isRequired};var he=function(e){var t=e.children,n=e.className,i=ce(e,["children","className"]),o=ie()(n,"u-no-print");return r.createElement(d,le({className:o},i),t)};he.propTypes={children:ae().node.isRequired,className:ae().string},ue('/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a \'@breakpointName\' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is \'/\' (.u-1/2) and you can change\n * it for example to \'of\' so that the generated HTML class will be\n * \'u-1of2\'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-pagination {\n margin-bottom: 20px;\n text-align: center; }\n\n.c-pagination__label {\n font-size: 1.6rem;\n line-height: 40px;\n color: #999;\n display: inline-block;\n font-weight: 500;\n padding: 0 15px;\n vertical-align: top; }\n @media screen and (min-width: 768px) {\n .c-pagination__label {\n font-size: 1.8rem;\n line-height: 40px; } }\n\n.c-pagination__link {\n background-color: #f5f6f9;\n background-position: center center;\n background-repeat: no-repeat;\n background-size: 15px 15px;\n border-color: #999;\n border-radius: 100%;\n border-style: solid;\n border-width: 0.2rem;\n cursor: pointer;\n display: inline-block;\n height: 40px;\n transition-duration: 150ms;\n transition-property: background-color, border-color;\n transition-timing-function: ease-in-out;\n vertical-align: top;\n width: 40px; }\n .c-pagination__link:hover {\n background-color: #999; }\n\n.c-pagination__link--disabled {\n background-color: #ccc;\n border-color: #ccc;\n pointer-events: none; }\n\n.c-pagination__link--next {\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIyN3B4IiB2aWV3Qm94PSIwIDAgMTcgMjciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ3LjEgKDQ1NDIyKSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5JY29ucy9DaGV2cm9uL0dyZXk8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQnV0dG9ucyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkJ1dHRvbnMvQ2lyY2xlL1NlY29uZGFyeSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI3LjAwMDAwMCwgLTIxLjAwMDAwMCkiIGZpbGw9IiM5OTk5OTkiPgogICAgICAgICAgICA8ZyBpZD0iSWNvbnMvQ2hldnJvbi9MZWZ0L0dyZXktQ29weS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMC4wMDAwMDAsIDIwLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTQuODQ4MDE3OTgsMTkuNDM2MjUzMyBMNC44NDgwMTc5OCw2LjQ5NTA3NjggQzQuODQ4MDE3OTgsNS4xOTU1ODMyNyAzLjc5NDU3MDMzLDQuMTQyMTM1NjIgMi40OTUwNzY4LDQuMTQyMTM1NjIgTDIuNDk1MDc2OCw0LjE0MjEzNTYyIEwyLjQ5NTA3NjgsNC4xNDIxMzU2MiBDMS4xOTU1ODMyNyw0LjE0MjEzNTYyIDAuMTQyMTM1NjI0LDUuMTk1NTgzMjcgMC4xNDIxMzU2MjQsNi40OTUwNzY4IEwwLjE0MjEzNTYyNCw2LjQ5NTA3NjggTDAuMTQyMTM1NjI0LDIxLjc4OTE5NDQgQzAuMTQyMTM1NjI0LDIyLjQzODk0MTIgMC40MDU0OTc1MzYsMjMuMDI3MTc2NSAwLjgzMTI5NjEzOSwyMy40NTI5NzUxIEMxLjI1NzA5NDc0LDIzLjg3ODc3MzcgMS44NDUzMzAwNCwyNC4xNDIxMzU2IDIuNDk1MDc2OCwyNC4xNDIxMzU2IEwxNy43ODkxOTQ0LDI0LjE0MjEzNTYgQzE5LjA4ODY4OCwyNC4xNDIxMzU2IDIwLjE0MjEzNTYsMjMuMDg4Njg4IDIwLjE0MjEzNTYsMjEuNzg5MTk0NCBDMjAuMTQyMTM1NiwyMC40ODk3MDA5IDE5LjA4ODY4OCwxOS40MzYyNTMzIDE3Ljc4OTE5NDQsMTkuNDM2MjUzMyBMNC44NDgwMTc5OCwxOS40MzYyNTMzIFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuMTQyMTM2LCAxNC4xNDIxMzYpIHNjYWxlKC0xLCAxKSByb3RhdGUoLTMxNS4wMDAwMDApIHRyYW5zbGF0ZSgtMTAuMTQyMTM2LCAtMTQuMTQyMTM2KSAiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"); }\n .c-pagination__link--next:hover {\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIyN3B4IiB2aWV3Qm94PSIwIDAgMTcgMjciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ3LjEgKDQ1NDIyKSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5JY29ucy9DaGV2cm9uL0dyZXk8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQnV0dG9ucyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkJ1dHRvbnMvQ2lyY2xlL1NlY29uZGFyeS1ob3ZlciIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI3LjAwMDAwMCwgLTIxLjAwMDAwMCkiIGZpbGw9IiNGRkZGRkYiPgogICAgICAgICAgICA8ZyBpZD0iSWNvbnMvQ2hldnJvbi9MZWZ0L0xpZ2h0LUNvcHktMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjAuMDAwMDAwLCAyMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik00Ljg0ODAxNzk4LDE5LjQzNjI1MzMgTDQuODQ4MDE3OTgsNi40OTUwNzY4IEM0Ljg0ODAxNzk4LDUuMTk1NTgzMjcgMy43OTQ1NzAzMyw0LjE0MjEzNTYyIDIuNDk1MDc2OCw0LjE0MjEzNTYyIEwyLjQ5NTA3NjgsNC4xNDIxMzU2MiBMMi40OTUwNzY4LDQuMTQyMTM1NjIgQzEuMTk1NTgzMjcsNC4xNDIxMzU2MiAwLjE0MjEzNTYyNCw1LjE5NTU4MzI3IDAuMTQyMTM1NjI0LDYuNDk1MDc2OCBMMC4xNDIxMzU2MjQsNi40OTUwNzY4IEwwLjE0MjEzNTYyNCwyMS43ODkxOTQ0IEMwLjE0MjEzNTYyNCwyMi40Mzg5NDEyIDAuNDA1NDk3NTM2LDIzLjAyNzE3NjUgMC44MzEyOTYxMzksMjMuNDUyOTc1MSBDMS4yNTcwOTQ3NCwyMy44Nzg3NzM3IDEuODQ1MzMwMDQsMjQuMTQyMTM1NiAyLjQ5NTA3NjgsMjQuMTQyMTM1NiBMMTcuNzg5MTk0NCwyNC4xNDIxMzU2IEMxOS4wODg2ODgsMjQuMTQyMTM1NiAyMC4xNDIxMzU2LDIzLjA4ODY4OCAyMC4xNDIxMzU2LDIxLjc4OTE5NDQgQzIwLjE0MjEzNTYsMjAuNDg5NzAwOSAxOS4wODg2ODgsMTkuNDM2MjUzMyAxNy43ODkxOTQ0LDE5LjQzNjI1MzMgTDQuODQ4MDE3OTgsMTkuNDM2MjUzMyBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwLjE0MjEzNiwgMTQuMTQyMTM2KSBzY2FsZSgtMSwgMSkgcm90YXRlKC0zMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjE0MjEzNiwgLTE0LjE0MjEzNikgIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="); }\n .c-pagination__link--next:disabled {\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTdweCIgaGVpZ2h0PSIyN3B4IiB2aWV3Qm94PSIwIDAgMTcgMjciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ3LjEgKDQ1NDIyKSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5JY29ucy9DaGV2cm9uL0dyZXk8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQnV0dG9ucyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkJ1dHRvbnMvQ2lyY2xlL1RlcnRpYXJ5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjcuMDAwMDAwLCAtMjEuMDAwMDAwKSIgZmlsbD0iI0NDQ0NDQyI+CiAgICAgICAgICAgIDxnIGlkPSJJY29ucy9DaGV2cm9uL0xlZnQvTGlnaHQtZ3JleS1Db3B5LTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwLjAwMDAwMCwgMjAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNC44NDgwMTc5OCwxOS40MzYyNTMzIEw0Ljg0ODAxNzk4LDYuNDk1MDc2OCBDNC44NDgwMTc5OCw1LjE5NTU4MzI3IDMuNzk0NTcwMzMsNC4xNDIxMzU2MiAyLjQ5NTA3NjgsNC4xNDIxMzU2MiBMMi40OTUwNzY4LDQuMTQyMTM1NjIgTDIuNDk1MDc2OCw0LjE0MjEzNTYyIEMxLjE5NTU4MzI3LDQuMTQyMTM1NjIgMC4xNDIxMzU2MjQsNS4xOTU1ODMyNyAwLjE0MjEzNTYyNCw2LjQ5NTA3NjggTDAuMTQyMTM1NjI0LDYuNDk1MDc2OCBMMC4xNDIxMzU2MjQsMjEuNzg5MTk0NCBDMC4xNDIxMzU2MjQsMjIuNDM4OTQxMiAwLjQwNTQ5NzUzNiwyMy4wMjcxNzY1IDAuODMxMjk2MTM5LDIzLjQ1Mjk3NTEgQzEuMjU3MDk0NzQsMjMuODc4NzczNyAxLjg0NTMzMDA0LDI0LjE0MjEzNTYgMi40OTUwNzY4LDI0LjE0MjEzNTYgTDE3Ljc4OTE5NDQsMjQuMTQyMTM1NiBDMTkuMDg4Njg4LDI0LjE0MjEzNTYgMjAuMTQyMTM1NiwyMy4wODg2ODggMjAuMTQyMTM1NiwyMS43ODkxOTQ0IEMyMC4xNDIxMzU2LDIwLjQ4OTcwMDkgMTkuMDg4Njg4LDE5LjQzNjI1MzMgMTcuNzg5MTk0NCwxOS40MzYyNTMzIEw0Ljg0ODAxNzk4LDE5LjQzNjI1MzMgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC4xNDIxMzYsIDE0LjE0MjEzNikgc2NhbGUoLTEsIDEpIHJvdGF0ZSgtMzE1LjAwMDAwMCkgdHJhbnNsYXRlKC0xMC4xNDIxMzYsIC0xNC4xNDIxMzYpICI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="); }\n\n.c-pagination__link--prev {\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIyN3B4IiB2aWV3Qm94PSIwIDAgMTYgMjciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ3LjEgKDQ1NDIyKSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5JY29ucy9DaGV2cm9uL0dyZXk8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQnV0dG9ucyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkJ1dHRvbnMvQ2lyY2xlL1NlY29uZGFyeSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1LjAwMDAwMCwgLTIxLjAwMDAwMCkiIGZpbGw9IiM5OTk5OTkiPgogICAgICAgICAgICA8ZyBpZD0iSWNvbnMvQ2hldnJvbi9MZWZ0L0dyZXkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwLjAwMDAwMCwgMjAuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTIuODQ4MDE4LDE5LjQzNjI1MzMgTDEyLjg0ODAxOCw2LjQ5NTA3NjggQzEyLjg0ODAxOCw1LjE5NTU4MzI3IDExLjc5NDU3MDMsNC4xNDIxMzU2MiAxMC40OTUwNzY4LDQuMTQyMTM1NjIgTDEwLjQ5NTA3NjgsNC4xNDIxMzU2MiBMMTAuNDk1MDc2OCw0LjE0MjEzNTYyIEM5LjE5NTU4MzI3LDQuMTQyMTM1NjIgOC4xNDIxMzU2Miw1LjE5NTU4MzI3IDguMTQyMTM1NjIsNi40OTUwNzY4IEw4LjE0MjEzNTYyLDYuNDk1MDc2OCBMOC4xNDIxMzU2MiwyMS43ODkxOTQ0IEM4LjE0MjEzNTYyLDIyLjQzODk0MTIgOC40MDU0OTc1NCwyMy4wMjcxNzY1IDguODMxMjk2MTQsMjMuNDUyOTc1MSBDOS4yNTcwOTQ3NCwyMy44Nzg3NzM3IDkuODQ1MzMwMDQsMjQuMTQyMTM1NiAxMC40OTUwNzY4LDI0LjE0MjEzNTYgTDI1Ljc4OTE5NDQsMjQuMTQyMTM1NiBDMjcuMDg4Njg4LDI0LjE0MjEzNTYgMjguMTQyMTM1NiwyMy4wODg2ODggMjguMTQyMTM1NiwyMS43ODkxOTQ0IEMyOC4xNDIxMzU2LDIwLjQ4OTcwMDkgMjcuMDg4Njg4LDE5LjQzNjI1MzMgMjUuNzg5MTk0NCwxOS40MzYyNTMzIEwxMi44NDgwMTgsMTkuNDM2MjUzMyBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4LjE0MjEzNiwgMTQuMTQyMTM2KSByb3RhdGUoLTMxNS4wMDAwMDApIHRyYW5zbGF0ZSgtMTguMTQyMTM2LCAtMTQuMTQyMTM2KSAiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"); }\n .c-pagination__link--prev:hover {\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIyN3B4IiB2aWV3Qm94PSIwIDAgMTYgMjciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ3LjEgKDQ1NDIyKSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5JY29ucy9DaGV2cm9uL0dyZXk8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQnV0dG9ucyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkJ1dHRvbnMvQ2lyY2xlL1NlY29uZGFyeS1ob3ZlciIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1LjAwMDAwMCwgLTIxLjAwMDAwMCkiIGZpbGw9IiNGRkZGRkYiPgogICAgICAgICAgICA8ZyBpZD0iSWNvbnMvQ2hldnJvbi9MZWZ0L0xpZ2h0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMC4wMDAwMDAsIDIwLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTEyLjg0ODAxOCwxOS40MzYyNTMzIEwxMi44NDgwMTgsNi40OTUwNzY4IEMxMi44NDgwMTgsNS4xOTU1ODMyNyAxMS43OTQ1NzAzLDQuMTQyMTM1NjIgMTAuNDk1MDc2OCw0LjE0MjEzNTYyIEwxMC40OTUwNzY4LDQuMTQyMTM1NjIgTDEwLjQ5NTA3NjgsNC4xNDIxMzU2MiBDOS4xOTU1ODMyNyw0LjE0MjEzNTYyIDguMTQyMTM1NjIsNS4xOTU1ODMyNyA4LjE0MjEzNTYyLDYuNDk1MDc2OCBMOC4xNDIxMzU2Miw2LjQ5NTA3NjggTDguMTQyMTM1NjIsMjEuNzg5MTk0NCBDOC4xNDIxMzU2MiwyMi40Mzg5NDEyIDguNDA1NDk3NTQsMjMuMDI3MTc2NSA4LjgzMTI5NjE0LDIzLjQ1Mjk3NTEgQzkuMjU3MDk0NzQsMjMuODc4NzczNyA5Ljg0NTMzMDA0LDI0LjE0MjEzNTYgMTAuNDk1MDc2OCwyNC4xNDIxMzU2IEwyNS43ODkxOTQ0LDI0LjE0MjEzNTYgQzI3LjA4ODY4OCwyNC4xNDIxMzU2IDI4LjE0MjEzNTYsMjMuMDg4Njg4IDI4LjE0MjEzNTYsMjEuNzg5MTk0NCBDMjguMTQyMTM1NiwyMC40ODk3MDA5IDI3LjA4ODY4OCwxOS40MzYyNTMzIDI1Ljc4OTE5NDQsMTkuNDM2MjUzMyBMMTIuODQ4MDE4LDE5LjQzNjI1MzMgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOC4xNDIxMzYsIDE0LjE0MjEzNikgcm90YXRlKC0zMTUuMDAwMDAwKSB0cmFuc2xhdGUoLTE4LjE0MjEzNiwgLTE0LjE0MjEzNikgIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="); }\n .c-pagination__link--prev:disabled {\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIyN3B4IiB2aWV3Qm94PSIwIDAgMTYgMjciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQ3LjEgKDQ1NDIyKSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5JY29ucy9DaGV2cm9uL0dyZXk8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQnV0dG9ucyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkJ1dHRvbnMvQ2lyY2xlL1RlcnRpYXJ5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjUuMDAwMDAwLCAtMjEuMDAwMDAwKSIgZmlsbD0iI0NDQ0NDQyI+CiAgICAgICAgICAgIDxnIGlkPSJJY29ucy9DaGV2cm9uL0xlZnQvTGlnaHQtZ3JleSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjAuMDAwMDAwLCAyMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMi44NDgwMTgsMTkuNDM2MjUzMyBMMTIuODQ4MDE4LDYuNDk1MDc2OCBDMTIuODQ4MDE4LDUuMTk1NTgzMjcgMTEuNzk0NTcwMyw0LjE0MjEzNTYyIDEwLjQ5NTA3NjgsNC4xNDIxMzU2MiBMMTAuNDk1MDc2OCw0LjE0MjEzNTYyIEwxMC40OTUwNzY4LDQuMTQyMTM1NjIgQzkuMTk1NTgzMjcsNC4xNDIxMzU2MiA4LjE0MjEzNTYyLDUuMTk1NTgzMjcgOC4xNDIxMzU2Miw2LjQ5NTA3NjggTDguMTQyMTM1NjIsNi40OTUwNzY4IEw4LjE0MjEzNTYyLDIxLjc4OTE5NDQgQzguMTQyMTM1NjIsMjIuNDM4OTQxMiA4LjQwNTQ5NzU0LDIzLjAyNzE3NjUgOC44MzEyOTYxNCwyMy40NTI5NzUxIEM5LjI1NzA5NDc0LDIzLjg3ODc3MzcgOS44NDUzMzAwNCwyNC4xNDIxMzU2IDEwLjQ5NTA3NjgsMjQuMTQyMTM1NiBMMjUuNzg5MTk0NCwyNC4xNDIxMzU2IEMyNy4wODg2ODgsMjQuMTQyMTM1NiAyOC4xNDIxMzU2LDIzLjA4ODY4OCAyOC4xNDIxMzU2LDIxLjc4OTE5NDQgQzI4LjE0MjEzNTYsMjAuNDg5NzAwOSAyNy4wODg2ODgsMTkuNDM2MjUzMyAyNS43ODkxOTQ0LDE5LjQzNjI1MzMgTDEyLjg0ODAxOCwxOS40MzYyNTMzIFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTguMTQyMTM2LCAxNC4xNDIxMzYpIHJvdGF0ZSgtMzE1LjAwMDAwMCkgdHJhbnNsYXRlKC0xOC4xNDIxMzYsIC0xNC4xNDIxMzYpICI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="); }\n');ae().string,ae().string.isRequired,ae().string.isRequired,ae().string.isRequired,ae().string.isRequired,ae().number.isRequired,ae().number.isRequired,ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-panel {\n background-color: #fff;\n border-radius: 5px;\n box-shadow: 0 0 0.3rem 0 rgba(0, 0, 0, 0.25);\n padding: 10px; }\n");ae().string,ae().node.isRequired;var ge=function(e){var t=e.children,n=e.className,i=ce(e,["children","className"]),o=ie()(n,"u-print-only");return r.createElement(d,le({className:o},i),t)};ge.propTypes={children:ae().node.isRequired,className:ae().string},ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-slice {\n background-attachment: scroll;\n background-color: #f5f6f9;\n background-position: center center;\n background-repeat: no-repeat;\n padding: 25px 0; }\n @media screen and (min-width: 768px) {\n .c-slice {\n padding: 50px 0; } }\n\n.c-slice--white {\n background-color: #fff;\n border-color: #ccc;\n border-style: solid;\n border-width: 0.1rem 0 0;\n box-shadow: 0 0.1rem 0.3rem -0.1rem rgba(0, 0, 0, 0.25); }\n");var ve=function(e){var t=e.children,n=e.className,i=e.white,o=ce(e,["children","className","white"]),a=ie()("c-slice",{"c-slice--white":i},n);return r.createElement(d,le({},o,{className:a}),t)};ve.propTypes={className:ae().string,children:ae().node.isRequired,white:ae().bool};var ye=function(e){var t=e.children,n=e.className,i=e.element,o=ce(e,["children","className","element"]),a="undefined"===typeof i?"span":i;return r.createElement(d,le({},o,{className:n,tagName:a}),t)};ye.propTypes={className:ae().string,children:ae().node.isRequired,element:ae().string},ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-type-base {\n font-size: 1.6rem;\n line-height: 1.5;\n font-weight: 300;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-type-base {\n font-size: 1.8rem;\n line-height: 1.5; } }\n");var me=function(e){var t=e.children,n=e.className,i=e.element,o=ce(e,["children","className","element"]),a=ie()("c-type-base",n);return r.createElement(ye,le({className:a,element:i},o),t)};me.propTypes={className:ae().string,children:ae().node.isRequired,element:ae().string},ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-type-caption {\n font-size: 1.4rem;\n line-height: 1.5;\n font-weight: 300;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-type-caption {\n font-size: 1.6rem;\n line-height: 1.5; } }\n");var be=function(e){var t=e.children,n=e.className,i=e.element,o=ce(e,["children","className","element"]),a=ie()("c-type-caption",n);return r.createElement(ye,le({className:a,element:i},o),t)};be.propTypes={className:ae().string,children:ae().node.isRequired,element:ae().string},ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-type-display {\n font-size: 2rem;\n line-height: 1.5;\n font-weight: 500;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-type-display {\n font-size: 2.8rem;\n line-height: 1.5; } }\n");var we=function(e){var t=e.children,n=e.className,i=e.element,o=ce(e,["children","className","element"]),a=ie()("c-type-display",n);return r.createElement(ye,le({className:a,element:i},o),t)};we.propTypes={className:ae().string,children:ae().node.isRequired,element:ae().string},ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-type-display-large {\n font-size: 2.4rem;\n line-height: 1.5;\n font-weight: 700;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-type-display-large {\n font-size: 3.6rem;\n line-height: 1.5; } }\n");ae().string,ae().node.isRequired,ae().string,ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-type-heading {\n font-size: 2rem;\n line-height: 1.5;\n font-weight: 500;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-type-heading {\n font-size: 2.2rem;\n line-height: 1.5; } }\n");var _e=function(e){var t=e.children,n=e.className,i=e.element,o=ce(e,["children","className","element"]),a=ie()("c-type-heading",n);return r.createElement(ye,le({className:a,element:i},o),t)};_e.propTypes={className:ae().string,children:ae().node.isRequired,element:ae().string},ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-type-sub-heading {\n font-size: 1.6rem;\n line-height: 1.5;\n font-weight: 500;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-type-sub-heading {\n font-size: 1.8rem;\n line-height: 1.5; } }\n");ae().string,ae().node.isRequired,ae().string,ue("/* tl tr br bl */\n/**\n * Grid columns. This setting is shared between\n * iotaCSS grid objects and size, pull & push\n * utilities. You can change it also locally to\n * each module.\n *\n * Type: Unitless Number / List\n */\n/**\n * Global namespace for Objects, Components and\n * Utilities\n *\n * Type: String\n */\n/**\n * Default gutters. This setting is shared between\n * multiple objects and utilities as the default value\n * for gutters. You can change it also locally to each\n * module.\n *\n * Type: Number / List / Map\n */\n/**\n * Enables flexbox across the app. If you do not want\n * all modules to use flexbox you can keep this value\n * false and set it to true separately to each one of\n * them locally.\n *\n * Type: Boolean\n */\n/**\n * Enables rtl across the app. If you enable this setting\n * the final CSS will be converted to RTL.\n *\n * Type: Boolean\n */\n/**\n * Default global breakpoints map. These are the\n * default breakpoints map that will be shared across\n * all iotaCSS modules. You can change it also locally\n * to each module.\n *\n * Type: Map\n */\n/**\n * Global breakpoint suffix naming setting. All breakpoint\n * specific styles have a '@breakpointName' suffix by default.\n * The \\ character is used to escape the @ character.\n *\n * Type: String\n */\n/**\n * Global delimiter naming setting for Size, Push and Pull\n * utilities. By default it is '/' (.u-1/2) and you can change\n * it for example to 'of' so that the generated HTML class will be\n * 'u-1of2'.\n *\n * Type: String\n */\n/**\n * The base value the scale starts at.\n *\n * Number\n */\n/**\n * The ratio the scale is built on\n *\n * Unitless Number\n */\n/**\n * Length of scale (right part of the decimal\n * point) ms will be rounded to.\n *\n * Unitless Number\n */\n.c-wysiwyg a {\n color: #004881;\n cursor: pointer;\n font-weight: 500;\n text-decoration: underline;\n text-decoration-skip-ink: auto;\n transition-duration: 100ms;\n transition-property: color;\n transition-timing-function: ease-in-out; }\n .c-wysiwyg a:hover, .c-wysiwyg a:hover:visited {\n color: #222; }\n .c-wysiwyg a:visited {\n color: #a76fba; }\n\n.c-wysiwyg h1 {\n font-size: 2.4rem;\n line-height: 1.5;\n font-weight: 700;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-wysiwyg h1 {\n font-size: 3.6rem;\n line-height: 1.5; } }\n\n.c-wysiwyg h2 {\n font-size: 2rem;\n line-height: 1.5;\n font-weight: 500;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-wysiwyg h2 {\n font-size: 2.8rem;\n line-height: 1.5; } }\n\n.c-wysiwyg h3 {\n font-size: 2rem;\n line-height: 1.5;\n font-weight: 500;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-wysiwyg h3 {\n font-size: 2.2rem;\n line-height: 1.5; } }\n\n.c-wysiwyg h4 {\n font-size: 1.6rem;\n line-height: 1.5;\n font-weight: 500;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-wysiwyg h4 {\n font-size: 1.8rem;\n line-height: 1.5; } }\n\n.c-wysiwyg p {\n font-size: 1.6rem;\n line-height: 1.5;\n font-weight: 300;\n margin-bottom: 1em; }\n @media screen and (min-width: 768px) {\n .c-wysiwyg p {\n font-size: 1.8rem;\n line-height: 1.5; } }\n\n.c-wysiwyg ul {\n font-size: 1.6rem;\n line-height: 1.5;\n font-weight: 300;\n margin-bottom: 1em;\n margin-left: 20px; }\n @media screen and (min-width: 768px) {\n .c-wysiwyg ul {\n font-size: 1.8rem;\n line-height: 1.5; } }\n\n.c-wysiwyg ol {\n font-size: 1.6rem;\n line-height: 1.5;\n font-weight: 300;\n margin-bottom: 1em;\n margin-left: 20px; }\n @media screen and (min-width: 768px) {\n .c-wysiwyg ol {\n font-size: 1.8rem;\n line-height: 1.5; } }\n\n.c-wysiwyg blockquote {\n font-size: 1.6rem;\n line-height: 1.5;\n font-weight: 300;\n margin-bottom: 1em;\n border-left-color: #ccc;\n border-style: solid;\n border-width: 0 0 0 2px;\n margin-bottom: 2rem;\n padding: 2rem 2rem 2rem 3rem; }\n @media screen and (min-width: 768px) {\n .c-wysiwyg blockquote {\n font-size: 1.8rem;\n line-height: 1.5; } }\n\n.c-wysiwyg--rpi a {\n color: #c51d4a;\n font-weight: 300; }\n .c-wysiwyg--rpi a:visited {\n color: #c51d4a;\n font-weight: 300; }\n\n.c-wysiwyg--light-on-dark a {\n color: #eee; }\n .c-wysiwyg--light-on-dark a:hover, .c-wysiwyg--light-on-dark a:hover:visited {\n color: #fff; }\n .c-wysiwyg--light-on-dark a:visited {\n color: #eee; }\n");var Se=function(e){var t=e.children,n=e.className,i=ce(e,["children","className"]),o=ie()("c-wysiwyg",n);return r.createElement(d,le({},i,{className:o}),t)};Se.propTypes={className:ae().string,children:ae().node.isRequired}},74027:(e,t,n)=>{"use strict";n(56260),n(97748),n(77483),n(47124),"undefined"===typeof Promise&&(n(4382).enable(),self.Promise=n(37806)),"undefined"!==typeof window&&n(94953),Object.assign=n(42123)},9454:(e,t,n)=>{"use strict";n(24874),n(11608),n(58773),n(46424),n(64266),n(56695),n(29624),n(83582),n(64332),n(88628),n(914),n(65220),n(82331),n(87978),n(78393),n(94687),n(87530),n(1404),n(65208),n(90162),n(78802),n(16555),n(74070),n(2241),n(32428),n(45527),n(31964),n(10221),n(55057),n(83179),n(16240),n(71007),n(80701),n(58224),n(43210),n(47124),n(74027),n(8073).polyfill()},18427:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},21887:(e,t,n)=>{var r=n(43849);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},44664:(e,t,n)=>{var r=n(73292),i=n(50479),o=n(43901),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,i(null)),e.exports=function(e){s[a][e]=!0}},4772:(e,t,n)=>{var r=n(43849);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},87256:(e,t,n)=>{var r=n(10586),i=n(82029),o=n(61965),a=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},63340:(e,t,n)=>{var r=n(18427);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},89022:(e,t,n)=>{var r=n(4772);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e.return;throw void 0!==o&&r(o.call(e)),a}}},43395:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},36032:(e,t,n)=>{var r=n(43395),i=n(73292)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},81969:(e,t,n)=>{"use strict";var r=n(4772),i=n(18427);e.exports=function(){for(var e=r(this),t=i(e.add),n=0,o=arguments.length;n<o;n++)t.call(e,arguments[n]);return e}},34875:(e,t,n)=>{"use strict";var r=n(4772),i=n(18427);e.exports=function(){for(var e,t=r(this),n=i(t.delete),o=!0,a=0,s=arguments.length;a<s;a++)e=n.call(t,arguments[a]),o=o&&e;return!!o}},92710:(e,t,n)=>{"use strict";var r=n(18427),i=n(63340),o=n(66355);e.exports=function(e){var t,n,a,s,u=arguments.length,l=u>1?arguments[1]:void 0;return r(this),(t=void 0!==l)&&r(l),void 0==e?new this:(n=[],t?(a=0,s=i(l,u>2?arguments[2]:void 0,2),o(e,(function(e){n.push(s(e,a++))}))):o(e,n.push,n),new this(n))}},84143:e=>{"use strict";e.exports=function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}},66095:(e,t,n)=>{var r=n(77181),i=n(40030),o=n(77242),a=n(1720);e.exports=function(e,t){for(var n=i(t),s=a.f,u=o.f,l=0;l<n.length;l++){var c=n[l];r(e,c)||s(e,c,u(t,c))}}},54946:(e,t,n)=>{var r=n(4984);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2869:(e,t,n)=>{"use strict";var r=n(85640).IteratorPrototype,i=n(50479),o=n(15485),a=n(95652),s=n(61450),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,l,!1,!0),s[l]=u,e}},15485:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},21805:(e,t,n)=>{"use strict";var r=n(4543),i=n(2869),o=n(3984),a=n(14140),s=n(95652),u=n(43901),l=n(72667),c=n(73292),f=n(5540),p=n(61450),d=n(85640),h=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,v=c("iterator"),y="keys",m="values",b="entries",w=function(){return this};e.exports=function(e,t,n,c,d,_,S){i(n,t,c);var E,x,T,k=function(e){if(e===d&&I)return I;if(!g&&e in A)return A[e];switch(e){case y:case m:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",O=!1,A=e.prototype,P=A[v]||A["@@iterator"]||d&&A[d],I=!g&&P||k(d),j="Array"==t&&A.entries||P;if(j&&(E=o(j.call(new e)),h!==Object.prototype&&E.next&&(f||o(E)===h||(a?a(E,h):"function"!=typeof E[v]&&u(E,v,w)),s(E,C,!0,!0),f&&(p[C]=w))),d==m&&P&&P.name!==m&&(O=!0,I=function(){return P.call(this)}),f&&!S||A[v]===I||u(A,v,I),p[t]=I,d)if(x={values:k(m),keys:_?I:k(y),entries:k(b)},S)for(T in x)(g||O||!(T in A))&&l(A,T,x[T]);else r({target:t,proto:!0,forced:g||O},x);return x}},1982:(e,t,n)=>{var r=n(13562),i=n(77181),o=n(47140),a=n(1720).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},53347:(e,t,n)=>{var r=n(4984);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},83332:(e,t,n)=>{var r=n(79942),i=n(43849),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},37603:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},51900:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4543:(e,t,n)=>{var r=n(79942),i=n(77242).f,o=n(43901),a=n(72667),s=n(36177),u=n(66095),l=n(42907);e.exports=function(e,t){var n,c,f,p,d,h=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[h]||s(h,{}):(r[h]||{}).prototype)for(c in t){if(p=t[c],f=e.noTargetGet?(d=i(n,c))&&d.value:n[c],!l(g?c:h+(v?".":"#")+c,e.forced)&&void 0!==f){if(typeof p===typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),a(n,c,p,e)}}},4984:e=>{e.exports=function(e){try{return!!e()}catch(t){return!0}}},5941:(e,t,n)=>{var r=n(40620);e.exports=r("native-function-to-string",Function.toString)},96410:(e,t,n)=>{var r=n(13562),i=n(79942),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},17620:(e,t,n)=>{var r=n(36032),i=n(61450),o=n(73292)("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},49328:(e,t,n)=>{var r=n(4772),i=n(17620);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},4669:(e,t,n)=>{var r=n(5540),i=n(49328);e.exports=r?i:function(e){return Map.prototype.entries.call(e)}},4595:(e,t,n)=>{var r=n(5540),i=n(49328);e.exports=r?i:function(e){return Set.prototype.values.call(e)}},79942:(e,t,n)=>{var r="object",i=function(e){return e&&e.Math==Math&&e};e.exports=i(typeof globalThis==r&&globalThis)||i(typeof window==r&&window)||i(typeof self==r&&self)||i(typeof n.g==r&&n.g)||Function("return this")()},77181:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},2910:e=>{e.exports={}},43901:(e,t,n)=>{var r=n(53347),i=n(1720),o=n(15485);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},55516:(e,t,n)=>{var r=n(96410);e.exports=r("document","documentElement")},48748:(e,t,n)=>{var r=n(53347),i=n(4984),o=n(83332);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},41246:(e,t,n)=>{var r=n(4984),i=n(43395),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},67312:(e,t,n)=>{var r,i,o,a=n(56916),s=n(79942),u=n(43849),l=n(43901),c=n(77181),f=n(95806),p=n(2910),d=s.WeakMap;if(a){var h=new d,g=h.get,v=h.has,y=h.set;r=function(e,t){return y.call(h,e,t),t},i=function(e){return g.call(h,e)||{}},o=function(e){return v.call(h,e)}}else{var m=f("state");p[m]=!0,r=function(e,t){return l(e,m,t),t},i=function(e){return c(e,m)?e[m]:{}},o=function(e){return c(e,m)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},9880:(e,t,n)=>{var r=n(73292),i=n(61450),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},42907:(e,t,n)=>{var r=n(4984),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},43849:e=>{e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},5540:e=>{e.exports=!1},66355:(e,t,n)=>{var r=n(4772),i=n(9880),o=n(82029),a=n(63340),s=n(17620),u=n(89022),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,c,f){var p,d,h,g,v,y,m=a(t,n,c?2:1);if(f)p=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(h=0,g=o(e.length);g>h;h++)if((v=c?m(r(y=e[h])[0],y[1]):m(e[h]))&&v instanceof l)return v;return new l(!1)}p=d.call(e)}for(;!(y=p.next()).done;)if((v=u(p,m,y.value,c))&&v instanceof l)return v;return new l(!1)}).stop=function(e){return new l(!0,e)}},85640:(e,t,n)=>{"use strict";var r,i,o,a=n(3984),s=n(43901),u=n(77181),l=n(73292),c=n(5540),f=l("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):p=!0),void 0==r&&(r={}),c||u(r,f)||s(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},61450:e=>{e.exports={}},72891:(e,t,n)=>{var r=n(4984);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},56916:(e,t,n)=>{var r=n(79942),i=n(5941),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i.call(o))},50479:(e,t,n)=>{var r=n(4772),i=n(98704),o=n(51900),a=n(2910),s=n(55516),u=n(83332),l=n(95806)("IE_PROTO"),c="prototype",f=function(){},p=function(){var e,t=u("iframe"),n=o.length,r="script",i="java"+r+":";for(t.style.display="none",s.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write("<"+r+">document.F=Object</"+r+">"),e.close(),p=e.F;n--;)delete p[c][o[n]];return p()};e.exports=Object.create||function(e,t){var n;return null!==e?(f[c]=r(e),n=new f,f[c]=null,n[l]=e):n=p(),void 0===t?n:i(n,t)},a[l]=!0},98704:(e,t,n)=>{var r=n(53347),i=n(1720),o=n(4772),a=n(2895);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,u=0;s>u;)i.f(e,n=r[u++],t[n]);return e}},1720:(e,t,n)=>{var r=n(53347),i=n(48748),o=n(4772),a=n(48776),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},77242:(e,t,n)=>{var r=n(53347),i=n(7562),o=n(15485),a=n(10586),s=n(48776),u=n(77181),l=n(48748),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),l)try{return c(e,t)}catch(n){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},69311:(e,t,n)=>{var r=n(3137),i=n(51900).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},73078:(e,t)=>{t.f=Object.getOwnPropertySymbols},3984:(e,t,n)=>{var r=n(77181),i=n(35166),o=n(95806),a=n(54946),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},3137:(e,t,n)=>{var r=n(77181),i=n(10586),o=n(87256).indexOf,a=n(2910);e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},2895:(e,t,n)=>{var r=n(3137),i=n(51900);e.exports=Object.keys||function(e){return r(e,i)}},7562:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},14140:(e,t,n)=>{var r=n(4772),i=n(21887);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},40030:(e,t,n)=>{var r=n(96410),i=n(69311),o=n(73078),a=n(4772);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},13562:(e,t,n)=>{e.exports=n(79942)},72667:(e,t,n)=>{var r=n(79942),i=n(40620),o=n(43901),a=n(77181),s=n(36177),u=n(5941),l=n(67312),c=l.get,f=l.enforce,p=String(u).split("toString");i("inspectSource",(function(e){return u.call(e)})),(e.exports=function(e,t,n,i){var u=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,c=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||o(n,"name",t),f(n).source=p.join("string"==typeof t?t:"")),e!==r?(u?!c&&e[t]&&(l=!0):delete e[t],l?e[t]=n:o(e,t,n)):l?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||u.call(this)}))},22883:e=>{e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},29458:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},36177:(e,t,n)=>{var r=n(79942),i=n(43901);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},95652:(e,t,n)=>{var r=n(1720).f,i=n(77181),o=n(73292)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},95806:(e,t,n)=>{var r=n(40620),i=n(23679),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},40620:(e,t,n)=>{var r=n(79942),i=n(36177),o=n(5540),a="__core-js_shared__",s=r[a]||i(a,{});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.2.1",mode:o?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},64278:(e,t,n)=>{var r=n(4772),i=n(18427),o=n(73292)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},61965:(e,t,n)=>{var r=n(65775),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},10586:(e,t,n)=>{var r=n(41246),i=n(22883);e.exports=function(e){return r(i(e))}},65775:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},82029:(e,t,n)=>{var r=n(65775),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},35166:(e,t,n)=>{var r=n(22883);e.exports=function(e){return Object(r(e))}},48776:(e,t,n)=>{var r=n(43849);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},23679:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},73292:(e,t,n)=>{var r=n(79942),i=n(40620),o=n(23679),a=n(72891),s=r.Symbol,u=i("wks");e.exports=function(e){return u[e]||(u[e]=a&&s[e]||(a?s:o)("Symbol."+e))}},47140:(e,t,n)=>{t.f=n(73292)},67087:(e,t,n)=>{"use strict";var r=n(10586),i=n(44664),o=n(61450),a=n(67312),s=n(21805),u="Array Iterator",l=a.set,c=a.getterFor(u);e.exports=s(Array,"Array",(function(e,t){l(this,{type:u,target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},24874:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(34875);r({target:"Map",proto:!0,real:!0,forced:i},{deleteAll:function(){return o.apply(this,arguments)}})},11608:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(63340),s=n(4669),u=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{every:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return!u(n,(function(e,n){if(!r(n,e,t))return u.stop()}),void 0,!0,!0).stopped}})},58773:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(96410),a=n(4772),s=n(18427),u=n(63340),l=n(64278),c=n(4669),f=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{filter:function(e){var t=a(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,o("Map"))),p=s(i.set);return f(n,(function(e,n){r(n,e,t)&&p.call(i,e,n)}),void 0,!0,!0),i}})},64266:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(63340),s=n(4669),u=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{findKey:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(n,e,t))return u.stop(e)}),void 0,!0,!0).result}})},46424:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(63340),s=n(4669),u=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{find:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(n,e,t))return u.stop(n)}),void 0,!0,!0).result}})},56695:(e,t,n)=>{n(4543)({target:"Map",stat:!0},{from:n(92710)})},29624:(e,t,n)=>{"use strict";var r=n(4543),i=n(66355),o=n(18427);r({target:"Map",stat:!0},{groupBy:function(e,t){var n=new this;o(t);var r=o(n.has),a=o(n.get),s=o(n.set);return i(e,(function(e){var i=t(e);r.call(n,i)?a.call(n,i).push(e):s.call(n,i,[e])})),n}})},83582:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(4669),s=n(29458),u=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{includes:function(e){return u(a(o(this)),(function(t,n){if(s(n,e))return u.stop()}),void 0,!0,!0).stopped}})},64332:(e,t,n)=>{"use strict";var r=n(4543),i=n(66355),o=n(18427);r({target:"Map",stat:!0},{keyBy:function(e,t){var n=new this;o(t);var r=o(n.set);return i(e,(function(e){r.call(n,t(e),e)})),n}})},88628:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(4669),s=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{keyOf:function(e){return s(a(o(this)),(function(t,n){if(n===e)return s.stop(t)}),void 0,!0,!0).result}})},914:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(96410),a=n(4772),s=n(18427),u=n(63340),l=n(64278),c=n(4669),f=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{mapKeys:function(e){var t=a(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,o("Map"))),p=s(i.set);return f(n,(function(e,n){p.call(i,r(n,e,t),n)}),void 0,!0,!0),i}})},65220:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(96410),a=n(4772),s=n(18427),u=n(63340),l=n(64278),c=n(4669),f=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{mapValues:function(e){var t=a(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,o("Map"))),p=s(i.set);return f(n,(function(e,n){p.call(i,e,r(n,e,t))}),void 0,!0,!0),i}})},82331:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(18427),s=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{merge:function(e){for(var t=o(this),n=a(t.set),r=0;r<arguments.length;)s(arguments[r++],n,t,!0);return t}})},87978:(e,t,n)=>{n(4543)({target:"Map",stat:!0},{of:n(84143)})},78393:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(18427),s=n(4669),u=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{reduce:function(e){var t,n,r=o(this),i=s(r);if(a(e),arguments.length>1)t=arguments[1];else{if((n=i.next()).done)throw TypeError("Reduce of empty map with no initial value");t=n.value[1]}return u(i,(function(n,i){t=e(t,i,n,r)}),void 0,!0,!0),t}})},94687:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(63340),s=n(4669),u=n(66355);r({target:"Map",proto:!0,real:!0,forced:i},{some:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(n,e,t))return u.stop()}),void 0,!0,!0).stopped}})},87530:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(18427);r({target:"Map",proto:!0,real:!0,forced:i},{update:function(e,t){var n=o(this),r=arguments.length;a(t);var i=n.has(e);if(!i&&r<3)throw TypeError("Updating absent value");var s=i?n.get(e):a(r>2?arguments[2]:void 0)(e,n);return n.set(e,t(s,e,n)),n}})},1404:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(81969);r({target:"Set",proto:!0,real:!0,forced:i},{addAll:function(){return o.apply(this,arguments)}})},65208:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(34875);r({target:"Set",proto:!0,real:!0,forced:i},{deleteAll:function(){return o.apply(this,arguments)}})},90162:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(96410),a=n(4772),s=n(18427),u=n(64278),l=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{difference:function(e){var t=a(this),n=new(u(t,o("Set")))(t),r=s(n.delete);return l(e,(function(e){r.call(n,e)})),n}})},78802:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(63340),s=n(4595),u=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{every:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return!u(n,(function(e){if(!r(e,e,t))return u.stop()}),void 0,!1,!0).stopped}})},16555:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(96410),a=n(4772),s=n(18427),u=n(63340),l=n(64278),c=n(4595),f=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{filter:function(e){var t=a(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,o("Set"))),p=s(i.add);return f(n,(function(e){r(e,e,t)&&p.call(i,e)}),void 0,!1,!0),i}})},74070:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(63340),s=n(4595),u=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{find:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e){if(r(e,e,t))return u.stop(e)}),void 0,!1,!0).result}})},2241:(e,t,n)=>{n(4543)({target:"Set",stat:!0},{from:n(92710)})},32428:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(96410),a=n(4772),s=n(18427),u=n(64278),l=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{intersection:function(e){var t=a(this),n=new(u(t,o("Set"))),r=s(t.has),i=s(n.add);return l(e,(function(e){r.call(t,e)&&i.call(n,e)})),n}})},45527:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(18427),s=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:function(e){var t=o(this),n=a(t.has);return!s(e,(function(e){if(!0===n.call(t,e))return s.stop()})).stopped}})},31964:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(96410),a=n(4772),s=n(18427),u=n(49328),l=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:function(e){var t=u(this),n=a(e),r=n.has;return"function"!=typeof r&&(n=new(o("Set"))(e),r=s(n.has)),!l(t,(function(e){if(!1===r.call(n,e))return l.stop()}),void 0,!1,!0).stopped}})},10221:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(18427),s=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:function(e){var t=o(this),n=a(t.has);return!s(e,(function(e){if(!1===n.call(t,e))return s.stop()})).stopped}})},55057:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(4595),s=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{join:function(e){var t=o(this),n=a(t),r=void 0===e?",":String(e),i=[];return s(n,i.push,i,!1,!0),i.join(r)}})},83179:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(96410),a=n(4772),s=n(18427),u=n(63340),l=n(64278),c=n(4595),f=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{map:function(e){var t=a(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,o("Set"))),p=s(i.add);return f(n,(function(e){p.call(i,r(e,e,t))}),void 0,!1,!0),i}})},16240:(e,t,n)=>{n(4543)({target:"Set",stat:!0},{of:n(84143)})},71007:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(18427),s=n(4595),u=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{reduce:function(e){var t,n,r=o(this),i=s(r);if(a(e),arguments.length>1)t=arguments[1];else{if((n=i.next()).done)throw TypeError("Reduce of empty set with no initial value");t=n.value}return u(i,(function(n){t=e(t,n,n,r)}),void 0,!1,!0),t}})},80701:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(4772),a=n(63340),s=n(4595),u=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{some:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e){if(r(e,e,t))return u.stop()}),void 0,!1,!0).stopped}})},58224:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(96410),a=n(4772),s=n(18427),u=n(64278),l=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{symmetricDifference:function(e){var t=a(this),n=new(u(t,o("Set")))(t),r=s(n.delete),i=s(n.add);return l(e,(function(e){r.call(n,e)||i.call(n,e)})),n}})},43210:(e,t,n)=>{"use strict";var r=n(4543),i=n(5540),o=n(96410),a=n(4772),s=n(18427),u=n(64278),l=n(66355);r({target:"Set",proto:!0,real:!0,forced:i},{union:function(e){var t=a(this),n=new(u(t,o("Set")))(t);return l(e,s(n.add),n),n}})},56260:(e,t,n)=>{n(1982)("dispose")},97748:(e,t,n)=>{n(1982)("observable")},77483:(e,t,n)=>{n(1982)("patternMatch")},47124:(e,t,n)=>{var r=n(79942),i=n(37603),o=n(67087),a=n(43901),s=n(73292),u=s("iterator"),l=s("toStringTag"),c=o.values;for(var f in i){var p=r[f],d=p&&p.prototype;if(d){if(d[u]!==c)try{a(d,u,c)}catch(g){d[u]=c}if(d[l]||a(d,l,f),i[f])for(var h in o)if(d[h]!==o[h])try{a(d,h,o[h])}catch(g){d[h]=o[h]}}}},11186:(e,t,n)=>{"use strict";n.d(t,{ZC:()=>l,Ay:()=>c});var r=n(65043),i=n(15114);function o(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return"undefined"===typeof t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(r){}return e}var a=function(){return a=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},a.apply(this,arguments)};const s=function(){function e(e,t){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(e,t){return"string"===typeof e?i.q(e,t):"object"===typeof e&&null!==e?e:{}}(e,t),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=i.q(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),o(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]=o(this.cookies[r],e);return n},e.prototype.set=function(e,t,n){var r;"object"===typeof t&&(t=JSON.stringify(t)),this.cookies=a(a({},this.cookies),((r={})[e]=t,r)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.l(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=a(a({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=a({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.l(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}();var u=r.createContext(new s),l=(u.Provider,u.Consumer);const c=u},43761:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65043),i=n(11186);function o(e){var t=(0,r.useContext)(i.Ay);if(!t)throw new Error("Missing <CookiesProvider>");var n=t.getAll(),o=(0,r.useState)(n),a=o[0],s=o[1],u=(0,r.useRef)(a);return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof 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,i=e;r<i.length;r++){var o=i[r];if(t[o]!==n[o])return!0}return!1})(e||null,n,u.current)&&s(n),u.current=n}return t.addChangeListener(n),function(){t.removeChangeListener(n)}}),[t]),[a,(0,r.useMemo)((function(){return t.set.bind(t)}),[t]),(0,r.useMemo)((function(){return t.remove.bind(t)}),[t])]}},82730:(e,t,n)=>{"use strict";var r=n(65043),i=n(78853);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function u(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},h={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(h,e)||!f.call(d,e)&&(p.test(e)?h[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,m);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,m);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,m);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function F(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=N&&e[N]||e["@@iterator"])?e:null}var R,L=Object.assign;function D(e){if(void 0===R)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var U=!1;function z(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function B(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case S:return"Portal";case T:return"Profiler";case x:return"StrictMode";case A:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:q(n)}}function oe(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(de).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ye=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function me(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ee=null,xe=null;function Te(e){if(e=bi(e)){if("function"!==typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=_i(t),Se(e.stateNode,e.type,t))}}function ke(e){Ee?xe?xe.push(e):xe=[e]:Ee=e}function Ce(){if(Ee){var e=Ee,t=xe;if(xe=Ee=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Oe(e,t){return e(t)}function Ae(){}var Pe=!1;function Ie(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Oe(e,t,n)}finally{Pe=!1,(null!==Ee||null!==xe)&&(Ae(),Ce())}}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=_i(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Me=!1;if(c)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ce){Me=!1}function Fe(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var Re=!1,Le=null,De=!1,Ue=null,ze={onError:function(e){Re=!0,Le=e}};function Be(e,t,n,r,i,o,a,s,u){Re=!1,Le=null,Fe.apply(ze,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function qe(e){if(He(e)!==e)throw Error(o(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return qe(i),e;if(a===r)return qe(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var Ge=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,$e=i.unstable_shouldYield,Je=i.unstable_requestPaint,Qe=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var lt=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ft(s):0!==(o&=a)&&(r=ft(o))}else 0!==(a=n&~i)?r=ft(a):0!==o&&(r=ft(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=lt;return 0===(4194240&(lt<<=1))&&(lt=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,St,Et,xt,Tt,kt=!1,Ct=[],Ot=null,At=null,Pt=null,It=new Map,jt=new Map,Mt=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function Rt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=mi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Tt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ut(e,t,n){Dt(e)&&n.delete(t)}function zt(){kt=!1,null!==Ot&&Dt(Ot)&&(Ot=null),null!==At&&Dt(At)&&(At=null),null!==Pt&&Dt(Pt)&&(Pt=null),It.forEach(Ut),jt.forEach(Ut)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<Ct.length){Bt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Bt(Ot,e),null!==At&&Bt(At,e),null!==Pt&&Bt(Pt,e),It.forEach(t),jt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Mt.shift()}var Vt=w.ReactCurrentBatchConfig,qt=!0;function Wt(e,t,n,r){var i=bt,o=Vt.transition;Vt.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=i,Vt.transition=o}}function Kt(e,t,n,r){var i=bt,o=Vt.transition;Vt.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=i,Vt.transition=o}}function Gt(e,t,n,r){if(qt){var i=$t(e,t,n,r);if(null===i)qr(e,t,r,Yt,n),Ft(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Ot=Rt(Ot,e,t,n,r,i),!0;case"dragenter":return At=Rt(At,e,t,n,r,i),!0;case"mouseover":return Pt=Rt(Pt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return It.set(o,Rt(It.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,jt.set(o,Rt(jt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Ft(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&_t(o),null===(o=$t(e,t,n,r))&&qr(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else qr(e,t,r,null,n)}}var Yt=null;function $t(e,t,n,r){if(Yt=null,null!==(e=mi(e=_e(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Zt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,un,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),fn=L({},ln,{view:0,detail:0}),pn=on(fn),dn=L({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(dn),gn=on(L({},dn,{dataTransfer:0})),vn=on(L({},fn,{relatedTarget:0})),yn=on(L({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),mn=L({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(mn),wn=on(L({},ln,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Tn(){return xn}var kn=L({},fn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=on(kn),On=on(L({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(L({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Pn=on(L({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=L({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=on(In),Mn=[9,13,27,32],Nn=c&&"CompositionEvent"in window,Fn=null;c&&"documentMode"in document&&(Fn=document.documentMode);var Rn=c&&"TextEvent"in window&&!Fn,Ln=c&&(!Nn||Fn&&8<Fn&&11>=Fn),Dn=String.fromCharCode(32),Un=!1;function zn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Wn(e,t,n,r){ke(r),0<(t=Kr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Gn=null;function Yn(e){Dr(e,0)}function $n(e){if(G(wi(e)))return e}function Jn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Zn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Zn=Xn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),Gn=Kn=null)}function nr(e){if("value"===e.propertyName&&$n(Gn)){var t=[];Wn(t,Gn,e,_e(e)),Ie(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Gn)}function or(e,t){if("click"===e)return $n(t)}function ar(e,t){if("input"===e||"change"===e)return $n(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!f.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,mr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Y(r)||("selectionStart"in(r=vr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&ur(mr,r)||(mr=r,0<(r=Kr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Er={},xr={};function Tr(e){if(Er[e])return Er[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in xr)return Er[e]=n[t];return e}c&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=Tr("animationend"),Cr=Tr("animationiteration"),Or=Tr("animationstart"),Ar=Tr("transitionend"),Pr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(e,t){Pr.set(e,t),u(t,[e])}for(var Mr=0;Mr<Ir.length;Mr++){var Nr=Ir[Mr];jr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}jr(kr,"onAnimationEnd"),jr(Cr,"onAnimationIteration"),jr(Or,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Ar,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,l){if(Be.apply(this,arguments),Re){if(!Re)throw Error(o(198));var c=Le;Re=!1,Le=null,De||(De=!0,Ue=c)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Lr(i,s,l),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Lr(i,s,l),o=u}}}if(De)throw e=Ue,De=!1,Ue=null,e}function Ur(e,t){var n=t[gi];void 0===n&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Rr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Jt(t)){case 1:var i=Wt;break;case 4:i=Kt;break;default:i=Gt}n=i.bind(null,t,n,e),i=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function qr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=mi(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=o,i=_e(n),a=[];e:{var s=Pr.get(e);if(void 0!==s){var u=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=Cn;break;case"focusin":l="focus",u=vn;break;case"focusout":l="blur",u=vn;break;case"beforeblur":case"afterblur":u=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=An;break;case kr:case Cr:case Or:u=yn;break;case Ar:u=Pn;break;case"scroll":u=pn;break;case"wheel":u=jn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=On}var c=0!==(4&t),f=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var d,h=r;null!==h;){var g=(d=h).stateNode;if(5===d.tag&&null!==g&&(d=g,null!==p&&(null!=(g=je(h,p))&&c.push(Wr(h,g,d)))),f)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(l=n.relatedTarget||n.fromElement)||!mi(l)&&!l[hi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?mi(l):null)&&(l!==(f=He(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=hn,g="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,g="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==u?s:wi(u),d=null==l?s:wi(l),(s=new c(g,h+"leave",u,n,i)).target=f,s.relatedTarget=d,g=null,mi(i)===r&&((c=new c(p,h+"enter",l,n,i)).target=d,c.relatedTarget=f,g=c),f=g,u&&l)e:{for(p=l,h=0,d=c=u;d;d=Gr(d))h++;for(d=0,g=p;g;g=Gr(g))d++;for(;0<h-d;)c=Gr(c),h--;for(;0<d-h;)p=Gr(p),d--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Gr(c),p=Gr(p)}c=null}else c=null;null!==u&&Yr(a,s,u,c,!1),null!==l&&null!==f&&Yr(a,f,l,c,!0)}if("select"===(u=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Jn;else if(qn(s))if(Qn)v=ar;else{v=ir;var y=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=or);switch(v&&(v=v(e,r))?Wn(a,v,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?wi(r):window,e){case"focusin":(qn(y)||"true"===y.contentEditable)&&(vr=y,yr=r,mr=null);break;case"focusout":mr=yr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(a,n,i)}var m;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(m=en()):(Zt="value"in(Qt=i)?Qt.value:Qt.textContent,Hn=!0)),0<(y=Kr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:y}),m?b.data=m:null!==(m=Bn(n))&&(b.data=m))),(m=Rn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Un=!0,Dn);case"textInput":return(e=t.data)===Dn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Nn&&zn(e,t)?(e=en(),Xt=Zt=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=m))}Dr(a,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=je(e,n))&&r.unshift(Wr(e,o,i)),null!=(o=je(e,t))&&r.push(Wr(e,o,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=je(n,o))&&a.unshift(Wr(n,u,s)):i||null!=(u=je(n,o))&&a.push(Wr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var $r=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace($r,"\n").replace(Jr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),pi="__reactFiber$"+fi,di="__reactProps$"+fi,hi="__reactContainer$"+fi,gi="__reactEvents$"+fi,vi="__reactListeners$"+fi,yi="__reactHandles$"+fi;function mi(e){var t=e[pi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[pi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[pi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[pi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function _i(e){return e[di]||null}var Si=[],Ei=-1;function xi(e){return{current:e}}function Ti(e){0>Ei||(e.current=Si[Ei],Si[Ei]=null,Ei--)}function ki(e,t){Ei++,Si[Ei]=e.current,e.current=t}var Ci={},Oi=xi(Ci),Ai=xi(!1),Pi=Ci;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ji(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Mi(){Ti(Ai),Ti(Oi)}function Ni(e,t,n){if(Oi.current!==Ci)throw Error(o(168));ki(Oi,t),ki(Ai,n)}function Fi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,V(e)||"Unknown",i));return L({},n,r)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Pi=Oi.current,ki(Oi,e),ki(Ai,Ai.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Fi(e,t,Pi),r.__reactInternalMemoizedMergedChildContext=e,Ti(Ai),Ti(Oi),ki(Oi,e)):Ti(Ai),ki(Ai,n)}var Di=null,Ui=!1,zi=!1;function Bi(e){null===Di?Di=[e]:Di.push(e)}function Hi(){if(!zi&&null!==Di){zi=!0;var e=0,t=bt;try{var n=Di;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Di=null,Ui=!1}catch(i){throw null!==Di&&(Di=Di.slice(e+1)),Ge(Xe,Hi),i}finally{bt=t,zi=!1}}return null}var Vi=[],qi=0,Wi=null,Ki=0,Gi=[],Yi=0,$i=null,Ji=1,Qi="";function Zi(e,t){Vi[qi++]=Ki,Vi[qi++]=Wi,Wi=e,Ki=t}function Xi(e,t,n){Gi[Yi++]=Ji,Gi[Yi++]=Qi,Gi[Yi++]=$i,$i=e;var r=Ji;e=Qi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ji=1<<32-at(t)+i|n<<i|r,Qi=o+e}else Ji=1<<o|n<<i|r,Qi=e}function eo(e){null!==e.return&&(Zi(e,1),Xi(e,1,0))}function to(e){for(;e===Wi;)Wi=Vi[--qi],Vi[qi]=null,Ki=Vi[--qi],Vi[qi]=null;for(;e===$i;)$i=Gi[--Yi],Gi[Yi]=null,Qi=Gi[--Yi],Gi[Yi]=null,Ji=Gi[--Yi],Gi[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Il(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==$i?{id:Ji,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Il(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function uo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function lo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(uo(e))throw Error(o(418));t=li(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(uo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(uo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=li(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=li(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?li(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=li(e.nextSibling)}function ho(){ro=no=null,io=!1}function go(e){null===oo?oo=[e]:oo.push(e)}var vo=w.ReactCurrentBatchConfig;function yo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function mo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ml(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ll(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===E?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===j&&bo(o)===t.type)?((r=i(t,n.props)).ref=yo(e,t,n),r.return=e,r):((r=Nl(n.type,n.key,n.props,null,e.mode,r)).ref=yo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Fl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Ll(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Nl(t.type,t.key,t.props,null,e.mode,n)).ref=yo(e,null,t),n.return=e,n;case S:return(t=Dl(t,e.mode,n)).return=e,t;case j:return p(e,(0,t._init)(t._payload),n)}if(te(t)||F(t))return(t=Fl(t,e.mode,n,null)).return=e,t;mo(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null;case j:return d(e,t,(i=n._init)(n._payload),r)}if(te(n)||F(n))return null!==i?null:f(e,t,n,r,null);mo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case j:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||F(r))return f(t,e=e.get(n)||null,r,i,null);mo(t,r)}return null}function g(i,o,s,u){for(var l=null,c=null,f=o,g=o=0,v=null;null!==f&&g<s.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var y=d(i,f,s[g],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),o=a(y,o,g),null===c?l=y:c.sibling=y,c=y,f=v}if(g===s.length)return n(i,f),io&&Zi(i,g),l;if(null===f){for(;g<s.length;g++)null!==(f=p(i,s[g],u))&&(o=a(f,o,g),null===c?l=f:c.sibling=f,c=f);return io&&Zi(i,g),l}for(f=r(i,f);g<s.length;g++)null!==(v=h(f,i,g,s[g],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),o=a(v,o,g),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),io&&Zi(i,g),l}function v(i,s,u,l){var c=F(u);if("function"!==typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var f=c=null,g=s,v=s=0,y=null,m=u.next();null!==g&&!m.done;v++,m=u.next()){g.index>v?(y=g,g=null):y=g.sibling;var b=d(i,g,m.value,l);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(i,g),s=a(b,s,v),null===f?c=b:f.sibling=b,f=b,g=y}if(m.done)return n(i,g),io&&Zi(i,v),c;if(null===g){for(;!m.done;v++,m=u.next())null!==(m=p(i,m.value,l))&&(s=a(m,s,v),null===f?c=m:f.sibling=m,f=m);return io&&Zi(i,v),c}for(g=r(i,g);!m.done;v++,m=u.next())null!==(m=h(g,i,v,m.value,l))&&(e&&null!==m.alternate&&g.delete(null===m.key?v:m.key),s=a(m,s,v),null===f?c=m:f.sibling=m,f=m);return e&&g.forEach((function(e){return t(i,e)})),io&&Zi(i,v),c}return function e(r,o,a,u){if("object"===typeof a&&null!==a&&a.type===E&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var l=a.key,c=o;null!==c;){if(c.key===l){if((l=a.type)===E){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===j&&bo(l)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=yo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===E?((o=Fl(a.props.children,r.mode,u,a.key)).return=r,r=o):((u=Nl(a.type,a.key,a.props,null,r.mode,u)).ref=yo(r,o,a),u.return=r,r=u)}return s(r);case S:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Dl(a,r.mode,u)).return=r,r=o}return s(r);case j:return e(r,o,(c=a._init)(a._payload),u)}if(te(a))return g(r,o,a,u);if(F(a))return v(r,o,a,u);mo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Ll(a,r.mode,u)).return=r,r=o),s(r)):n(r,o)}}var _o=wo(!0),So=wo(!1),Eo=xi(null),xo=null,To=null,ko=null;function Co(){ko=To=xo=null}function Oo(e){var t=Eo.current;Ti(Eo),e._currentValue=t}function Ao(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Po(e,t){xo=e,ko=To=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===To){if(null===xo)throw Error(o(308));To=e,xo.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var jo=null;function Mo(e){null===jo?jo=[e]:jo.push(e)}function No(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Mo(t)):(n.next=i.next,i.next=n),t.interleaved=n,Fo(e,r)}function Fo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ro=!1;function Lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Do(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Ou)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Fo(e,n)}return null===(i=r.interleaved)?(t.next=t,Mo(r)):(t.next=i.next,i.next=t),r.interleaved=t,Fo(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vo(e,t,n,r){var i=e.updateQueue;Ro=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?o=l:a.next=l,a=u;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(null!==o){var f=i.baseState;for(a=0,c=l=u=null,s=o;;){var p=s.lane,d=s.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,g=s;switch(p=t,d=n,g.tag){case 1:if("function"===typeof(h=g.payload)){f=h.call(d,f,p);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(p="function"===typeof(h=g.payload)?h.call(d,f,p):h)||void 0===p)break e;f=L({},f,p);break e;case 2:Ro=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[s]:p.push(s))}else d={eventTime:d,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=d,u=f):c=c.next=d,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(p=s).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===c&&(u=f),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ru|=a,e.lanes=a,e.memoizedState=f}}function qo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Wo={},Ko=xi(Wo),Go=xi(Wo),Yo=xi(Wo);function $o(e){if(e===Wo)throw Error(o(174));return e}function Jo(e,t){switch(ki(Yo,t),ki(Go,e),ki(Ko,Wo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ti(Ko),ki(Ko,t)}function Qo(){Ti(Ko),Ti(Go),Ti(Yo)}function Zo(e){$o(Yo.current);var t=$o(Ko.current),n=ue(t,e.type);t!==n&&(ki(Go,e),ki(Ko,n))}function Xo(e){Go.current===e&&(Ti(Ko),Ti(Go))}var ea=xi(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,ua=null,la=null,ca=!1,fa=!1,pa=0,da=0;function ha(){throw Error(o(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function va(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Xa:es,e=n(r,i),fa){a=0;do{if(fa=!1,pa=0,25<=a)throw Error(o(301));a+=1,la=ua=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(fa)}if(ia.current=Za,t=null!==ua&&null!==ua.next,aa=0,la=ua=sa=null,ca=!1,t)throw Error(o(300));return e}function ya(){var e=0!==pa;return pa=0,e}function ma(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===la?sa.memoizedState=la=e:la=la.next=e,la}function ba(){if(null===ua){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===la?sa.memoizedState:la.next;if(null!==t)la=t,ua=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===la?sa.memoizedState=la=e:la=la.next=e}return la}function wa(e,t){return"function"===typeof t?t(e):t}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ua,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var u=s=null,l=null,c=a;do{var f=c.lane;if((aa&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=p,s=r):l=l.next=p,sa.lanes|=f,Ru|=f}c=c.next}while(null!==c&&c!==a);null===l?s=r:l.next=u,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ru|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ea(){}function xa(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ra(Ca.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==la&&1&la.memoizedState.tag){if(n.flags|=2048,Ia(9,ka.bind(null,n,r,i,t),void 0,null),null===Au)throw Error(o(349));0!==(30&aa)||Ta(n,t,i)}return i}function Ta(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Oa(t)&&Aa(e)}function Ca(e,t,n){return n((function(){Oa(t)&&Aa(e)}))}function Oa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Aa(e){var t=Fo(e,1);null!==t&&nl(t,e,1,-1)}function Pa(e){var t=ma();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ja(){return ba().memoizedState}function Ma(e,t,n,r){var i=ma();sa.flags|=e,i.memoizedState=Ia(1|t,n,void 0,void 0===r?null:r)}function Na(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==ua){var a=ua.memoizedState;if(o=a.destroy,null!==r&&ga(r,a.deps))return void(i.memoizedState=Ia(t,n,o,r))}sa.flags|=e,i.memoizedState=Ia(1|t,n,o,r)}function Fa(e,t){return Ma(8390656,8,e,t)}function Ra(e,t){return Na(2048,8,e,t)}function La(e,t){return Na(4,2,e,t)}function Da(e,t){return Na(4,4,e,t)}function Ua(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4,4,Ua.bind(null,t,e),n)}function Ba(){}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qa(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),sa.lanes|=n,Ru|=n,e.baseState=!0),t)}function Wa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Ka(){return ba().memoizedState}function Ga(e,t,n){var r=tl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$a(e))Ja(t,n);else if(null!==(n=No(e,t,n,r))){nl(n,e,r,el()),Qa(n,t,r)}}function Ya(e,t,n){var r=tl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($a(e))Ja(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var u=t.interleaved;return null===u?(i.next=i,Mo(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(l){}null!==(n=No(e,t,i,r))&&(nl(n,e,r,i=el()),Qa(n,t,r))}}function $a(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ja(e,t){fa=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}var Za={readContext:Io,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:Io,useCallback:function(e,t){return ma().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Fa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ma(4194308,4,Ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ma();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ma();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ma().memoizedState=e},useState:Pa,useDebugValue:Ba,useDeferredValue:function(e){return ma().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=Wa.bind(null,e[1]),ma().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ma();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Au)throw Error(o(349));0!==(30&aa)||Ta(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Fa(Ca.bind(null,r,a,e),[e]),r.flags|=2048,Ia(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ma(),t=Au.identifierPrefix;if(io){var n=Qi;t=":"+t+"R"+(n=(Ji&~(1<<32-at(Ji)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=da++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Io,useCallback:Ha,useContext:Io,useEffect:Ra,useImperativeHandle:za,useInsertionEffect:La,useLayoutEffect:Da,useMemo:Va,useReducer:_a,useRef:ja,useState:function(){return _a(wa)},useDebugValue:Ba,useDeferredValue:function(e){return qa(ba(),ua.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:xa,useId:Ka,unstable_isNewReconciler:!1},ts={readContext:Io,useCallback:Ha,useContext:Io,useEffect:Ra,useImperativeHandle:za,useInsertionEffect:La,useLayoutEffect:Da,useMemo:Va,useReducer:Sa,useRef:ja,useState:function(){return Sa(wa)},useDebugValue:Ba,useDeferredValue:function(e){var t=ba();return null===ua?t.memoizedState=e:qa(t,ua.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],ba().memoizedState]},useMutableSource:Ea,useSyncExternalStore:xa,useId:Ka,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=el(),i=tl(e),o=Uo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=zo(e,o,i))&&(nl(t,e,i,r),Bo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=el(),i=tl(e),o=Uo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=zo(e,o,i))&&(nl(t,e,i,r),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=el(),r=tl(e),i=Uo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=zo(e,i,r))&&(nl(t,e,r,n),Bo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,o))}function as(e,t,n){var r=!1,i=Ci,o=t.contextType;return"object"===typeof o&&null!==o?o=Io(o):(i=ji(t)?Pi:Oi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ii(e,i):Ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function us(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Lo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Io(o):(o=ji(t)?Pi:Oi.current,i.context=Ii(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Vo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function ls(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=Uo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qu||(qu=!0,Wu=r),fs(0,t)},n}function hs(e,t,n){(n=Uo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!==typeof r&&(null===Ku?Ku=new Set([this]):Ku.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Tl.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Uo(-1,1)).tag=2,zo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ms=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?So(t,null,n,r):_o(t,e.child,n,r)}function _s(e,t,n,r,i){n=n.render;var o=t.ref;return Po(t,i),r=va(e,t,n,r,o,i),n=ya(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||jl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,(e=Ml(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,qs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return ks(e,t,n,r,i)}function xs(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ki(Mu,ju),ju|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ki(Mu,ju),ju|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ki(Mu,ju),ju|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ki(Mu,ju),ju|=r;return ws(e,t,i,n),t.child}function Ts(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var o=ji(n)?Pi:Oi.current;return o=Ii(t,o),Po(t,i),n=va(e,t,n,r,o,i),r=ya(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Cs(e,t,n,r,i){if(ji(n)){var o=!0;Ri(t)}else o=!1;if(Po(t,i),null===t.stateNode)Vs(e,t),as(t,n,r),us(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=Io(l):l=Ii(t,l=ji(n)?Pi:Oi.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&ss(t,a,r,l),Ro=!1;var p=t.memoizedState;a.state=p,Vo(t,r,a,i),u=t.memoizedState,s!==r||p!==u||Ai.current||Ro?("function"===typeof c&&(rs(t,n,c,r),u=t.memoizedState),(s=Ro||os(t,n,s,r,p,u,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Do(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ns(t.type,s),a.props=l,f=t.pendingProps,p=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=Io(u):u=Ii(t,u=ji(n)?Pi:Oi.current);var d=n.getDerivedStateFromProps;(c="function"===typeof d||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||p!==u)&&ss(t,a,r,u),Ro=!1,p=t.memoizedState,a.state=p,Vo(t,r,a,i);var h=t.memoizedState;s!==f||p!==h||Ai.current||Ro?("function"===typeof d&&(rs(t,n,d,r),h=t.memoizedState),(l=Ro||os(t,n,l,r,p,h,u)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=l):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,o,i)}function Os(e,t,n,r,i,o){Ts(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),qs(e,t,o);r=t.stateNode,ms.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_o(t,e.child,null,o),t.child=_o(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Ni(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ni(0,t.context,!1),Jo(e,t.containerInfo)}function Ps(e,t,n,r,i){return ho(),go(i),t.flags|=256,ws(e,t,n,r),t.child}var Is,js,Ms,Ns,Fs={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ki(ea,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Rl(u,i,0,null),e=Fl(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=Fs,e):Ds(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Us(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Rl({mode:"visible",children:r.children},i,0,null),(a=Fl(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&_o(t,e.child,null,s),t.child.memoizedState=Rs(s),t.memoizedState=Fs,a);if(0===(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,Us(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(u=0!==(s&e.childLanes),bs||u){if(null!==(r=Au)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Fo(e,i),nl(r,e,i,-1))}return gl(),Us(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Cl.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=li(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Gi[Yi++]=Ji,Gi[Yi++]=Qi,Gi[Yi++]=$i,Ji=e.id,Qi=e.overflow,$i=t),t=Ds(t,r.children),t.flags|=4096,t)}(e,t,u,i,r,a,n);if(s){s=i.fallback,u=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0===(1&u)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Ml(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Ml(r,s):(s=Fl(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Rs(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Fs,i}return e=(s=e.child).sibling,i=Ml(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ds(e,t){return(t=Rl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,n,r){return null!==r&&go(r),_o(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ao(e.return,t,n)}function Bs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ki(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bs(t,!0,n,null,o);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ru|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ml(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ml(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return ji(t.type)&&Mi(),Ks(t),null;case 3:return r=t.stateNode,Qo(),Ti(Ai),Ti(Oi),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(al(oo),oo=null))),js(e,t),Ks(t),null;case 5:Xo(t);var i=$o(Yo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ks(t),null}if(e=$o(Ko.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[pi]=t,r[di]=a,e=0!==(1&t.mode),n){case"dialog":Ur("cancel",r),Ur("close",r);break;case"iframe":case"object":case"embed":Ur("load",r);break;case"video":case"audio":for(i=0;i<Fr.length;i++)Ur(Fr[i],r);break;case"source":Ur("error",r);break;case"img":case"image":case"link":Ur("error",r),Ur("load",r);break;case"details":Ur("toggle",r);break;case"input":J(r,a),Ur("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ur("invalid",r);break;case"textarea":ie(r,a),Ur("invalid",r)}for(var u in me(n,a),i=null,a)if(a.hasOwnProperty(u)){var l=a[u];"children"===u?"string"===typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,l,e),i=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(u)&&null!=l&&"onScroll"===u&&Ur("scroll",r)}switch(n){case"input":K(r),X(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[pi]=t,e[di]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Ur("cancel",e),Ur("close",e),i=r;break;case"iframe":case"object":case"embed":Ur("load",e),i=r;break;case"video":case"audio":for(i=0;i<Fr.length;i++)Ur(Fr[i],e);i=r;break;case"source":Ur("error",e),i=r;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),i=r;break;case"details":Ur("toggle",e),i=r;break;case"input":J(e,r),i=$(e,r),Ur("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Ur("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Ur("invalid",e)}for(a in me(n,i),l=i)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&pe(e,c):"number"===typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Ur("scroll",e):null!=c&&b(e,a,c,u))}switch(n){case"input":K(e),X(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=$o(Yo.current),$o(Ko.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[pi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pi]=t,t.stateNode=r}return Ks(t),null;case 13:if(Ti(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[pi]=t}else ho(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==oo&&(al(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Nu&&(Nu=3):gl())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return Qo(),js(e,t),null===e&&Hr(t.stateNode.containerInfo),Ks(t),null;case 10:return Oo(t.type._context),Ks(t),null;case 19:if(Ti(ea),null===(a=t.memoizedState))return Ks(t),null;if(r=0!==(128&t.flags),null===(u=a.rendering))if(r)Ws(a,!1);else{if(0!==Nu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ta(e))){for(t.flags|=128,Ws(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ki(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Hu&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!io)return Ks(t),null}else 2*Qe()-a.renderingStartTime>Hu&&1073741824!==n&&(t.flags|=128,r=!0,Ws(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,ki(ea,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return fl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&ju)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ys(e,t){switch(to(t),t.tag){case 1:return ji(t.type)&&Mi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qo(),Ti(Ai),Ti(Oi),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xo(t),null;case 13:if(Ti(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ti(ea),null;case 4:return Qo(),null;case 10:return Oo(t.type._context),null;case 22:case 23:return fl(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},js=function(){},Ms=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$o(Ko.current);var o,a=null;switch(n){case"input":i=$(e,i),r=$(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(c in me(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var u=i[c];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(u=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(o in u)!u.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&u[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!==typeof l&&"number"!==typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Ur("scroll",e),a||u===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var $s=!1,Js=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Zs=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){xl(e,t,r)}else n.current=null}function eu(e,t,n){try{n()}catch(r){xl(e,t,r)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&eu(t,n,o)}i=i.next}while(i!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function iu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ou(e){var t=e.alternate;null!==t&&(e.alternate=null,ou(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pi],delete t[di],delete t[gi],delete t[vi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}var cu=null,fu=!1;function pu(e,t,n){for(n=n.child;null!==n;)du(e,t,n),n=n.sibling}function du(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Js||Xs(n,t);case 6:var r=cu,i=fu;cu=null,pu(e,t,n),fu=i,null!==(cu=r)&&(fu?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(fu?(e=cu,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Ht(e)):ui(cu,n.stateNode));break;case 4:r=cu,i=fu,cu=n.stateNode.containerInfo,fu=!0,pu(e,t,n),cu=r,fu=i;break;case 0:case 11:case 14:case 15:if(!Js&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&eu(n,t,a),i=i.next}while(i!==r)}pu(e,t,n);break;case 1:if(!Js&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){xl(n,t,s)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Js=(r=Js)||null!==n.memoizedState,pu(e,t,n),Js=r):pu(e,t,n);break;default:pu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Ol.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,fu=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,fu=!0;break e}u=u.return}if(null===cu)throw Error(o(160));du(a,s,i),cu=null,fu=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(c){xl(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gu(t,e),yu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(v){xl(e,e.return,v)}try{nu(5,e,e.return)}catch(v){xl(e,e.return,v)}}break;case 1:gu(t,e),yu(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(gu(t,e),yu(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var i=e.stateNode;try{pe(i,"")}catch(v){xl(e,e.return,v)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,u=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===u&&"radio"===a.type&&null!=a.name&&Q(i,a),be(u,s);var c=be(u,a);for(s=0;s<l.length;s+=2){var f=l[s],p=l[s+1];"style"===f?ve(i,p):"dangerouslySetInnerHTML"===f?fe(i,p):"children"===f?pe(i,p):b(i,f,p,c)}switch(u){case"input":Z(i,a);break;case"textarea":oe(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):d!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[di]=a}catch(v){xl(e,e.return,v)}}break;case 6:if(gu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(v){xl(e,e.return,v)}}break;case 3:if(gu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(v){xl(e,e.return,v)}break;case 4:default:gu(t,e),yu(e);break;case 13:gu(t,e),yu(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bu=Qe())),4&r&&hu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Js=(c=Js)||f,gu(t,e),Js=c):gu(t,e),yu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!==(1&e.mode))for(Zs=e,f=e.child;null!==f;){for(p=Zs=f;null!==Zs;){switch(h=(d=Zs).child,d.tag){case 0:case 11:case 14:case 15:nu(4,d,d.return);break;case 1:Xs(d,d.return);var g=d.stateNode;if("function"===typeof g.componentWillUnmount){r=d,n=d.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){xl(r,n,v)}}break;case 5:Xs(d,d.return);break;case 22:if(null!==d.memoizedState){_u(p);continue}}null!==h?(h.return=d,Zs=h):_u(p)}f=f.sibling}e:for(f=null,p=e;;){if(5===p.tag){if(null===f){f=p;try{i=p.stateNode,c?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=p.stateNode,s=void 0!==(l=p.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,u.style.display=ge("display",s))}catch(v){xl(e,e.return,v)}}}else if(6===p.tag){if(null===f)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(v){xl(e,e.return,v)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gu(t,e),yu(e),4&r&&hu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(au(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(pe(i,""),r.flags&=-33),lu(e,su(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;uu(e,su(e),a);break;default:throw Error(o(161))}}catch(s){xl(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function mu(e,t,n){Zs=e,bu(e,t,n)}function bu(e,t,n){for(var r=0!==(1&e.mode);null!==Zs;){var i=Zs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||$s;if(!a){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Js;s=$s;var l=Js;if($s=a,(Js=u)&&!l)for(Zs=i;null!==Zs;)u=(a=Zs).child,22===a.tag&&null!==a.memoizedState?Su(i):null!==u?(u.return=a,Zs=u):Su(i);for(;null!==o;)Zs=o,bu(o,t,n),o=o.sibling;Zs=i,$s=s,Js=l}wu(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Zs=o):wu(e)}}function wu(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Js||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Js)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&qo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}qo(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var p=f.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(o(163))}Js||512&t.flags&&iu(t)}catch(d){xl(t,t.return,d)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function _u(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function Su(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(u){xl(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(u){xl(t,i,u)}}var o=t.return;try{iu(t)}catch(u){xl(t,o,u)}break;case 5:var a=t.return;try{iu(t)}catch(u){xl(t,a,u)}}}catch(u){xl(t,t.return,u)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Eu,xu=Math.ceil,Tu=w.ReactCurrentDispatcher,ku=w.ReactCurrentOwner,Cu=w.ReactCurrentBatchConfig,Ou=0,Au=null,Pu=null,Iu=0,ju=0,Mu=xi(0),Nu=0,Fu=null,Ru=0,Lu=0,Du=0,Uu=null,zu=null,Bu=0,Hu=1/0,Vu=null,qu=!1,Wu=null,Ku=null,Gu=!1,Yu=null,$u=0,Ju=0,Qu=null,Zu=-1,Xu=0;function el(){return 0!==(6&Ou)?Qe():-1!==Zu?Zu:Zu=Qe()}function tl(e){return 0===(1&e.mode)?1:0!==(2&Ou)&&0!==Iu?Iu&-Iu:null!==vo.transition?(0===Xu&&(Xu=gt()),Xu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function nl(e,t,n,r){if(50<Ju)throw Ju=0,Qu=null,Error(o(185));yt(e,n,r),0!==(2&Ou)&&e===Au||(e===Au&&(0===(2&Ou)&&(Lu|=n),4===Nu&&sl(e,Iu)),rl(e,r),1===n&&0===Ou&&0===(1&t.mode)&&(Hu=Qe()+500,Ui&&Hi()))}function rl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,u=i[a];-1===u?0!==(s&n)&&0===(s&r)||(i[a]=dt(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===Au?Iu:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Ui=!0,Bi(e)}(ul.bind(null,e)):Bi(ul.bind(null,e)),ai((function(){0===(6&Ou)&&Hi()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Al(n,il.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function il(e,t){if(Zu=-1,Xu=0,0!==(6&Ou))throw Error(o(327));var n=e.callbackNode;if(Sl()&&e.callbackNode!==n)return null;var r=pt(e,e===Au?Iu:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vl(e,r);else{t=r;var i=Ou;Ou|=2;var a=hl();for(Au===e&&Iu===t||(Vu=null,Hu=Qe()+500,pl(e,t));;)try{ml();break}catch(u){dl(e,u)}Co(),Tu.current=a,Ou=i,null!==Pu?t=0:(Au=null,Iu=0,t=Nu)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=ol(e,i))),1===t)throw n=Fu,pl(e,0),sl(e,r),rl(e,Qe()),n;if(6===t)sl(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=vl(e,r))&&(0!==(a=ht(e))&&(r=a,t=ol(e,a))),1===t))throw n=Fu,pl(e,0),sl(e,r),rl(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_l(e,zu,Vu);break;case 3:if(sl(e,r),(130023424&r)===r&&10<(t=Bu+500-Qe())){if(0!==pt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){el(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_l.bind(null,e,zu,Vu),t);break}_l(e,zu,Vu);break;case 4:if(sl(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xu(r/1960))-r)){e.timeoutHandle=ri(_l.bind(null,e,zu,Vu),r);break}_l(e,zu,Vu);break;default:throw Error(o(329))}}}return rl(e,Qe()),e.callbackNode===n?il.bind(null,e):null}function ol(e,t){var n=Uu;return e.current.memoizedState.isDehydrated&&(pl(e,t).flags|=256),2!==(e=vl(e,t))&&(t=zu,zu=n,null!==t&&al(t)),e}function al(e){null===zu?zu=e:zu.push.apply(zu,e)}function sl(e,t){for(t&=~Du,t&=~Lu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function ul(e){if(0!==(6&Ou))throw Error(o(327));Sl();var t=pt(e,0);if(0===(1&t))return rl(e,Qe()),null;var n=vl(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ol(e,r))}if(1===n)throw n=Fu,pl(e,0),sl(e,t),rl(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,zu,Vu),rl(e,Qe()),null}function ll(e,t){var n=Ou;Ou|=1;try{return e(t)}finally{0===(Ou=n)&&(Hu=Qe()+500,Ui&&Hi())}}function cl(e){null!==Yu&&0===Yu.tag&&0===(6&Ou)&&Sl();var t=Ou;Ou|=1;var n=Cu.transition,r=bt;try{if(Cu.transition=null,bt=1,e)return e()}finally{bt=r,Cu.transition=n,0===(6&(Ou=t))&&Hi()}}function fl(){ju=Mu.current,Ti(Mu)}function pl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Mi();break;case 3:Qo(),Ti(Ai),Ti(Oi),ra();break;case 5:Xo(r);break;case 4:Qo();break;case 13:case 19:Ti(ea);break;case 10:Oo(r.type._context);break;case 22:case 23:fl()}n=n.return}if(Au=e,Pu=e=Ml(e.current,null),Iu=ju=t,Nu=0,Fu=null,Du=Lu=Ru=0,zu=Uu=null,null!==jo){for(t=0;t<jo.length;t++)if(null!==(r=(n=jo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}jo=null}return e}function dl(e,t){for(;;){var n=Pu;try{if(Co(),ia.current=Za,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,la=ua=sa=null,fa=!1,pa=0,ku.current=null,null===n||null===n.return){Nu=1,Fu=t,Pu=null;break}e:{var a=e,s=n.return,u=n,l=t;if(t=Iu,u.flags|=32768,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l,f=u,p=f.tag;if(0===(1&f.mode)&&(0===p||11===p||15===p)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=vs(s);if(null!==h){h.flags&=-257,ys(h,s,u,0,t),1&h.mode&&gs(a,c,t),l=c;var g=(t=h).updateQueue;if(null===g){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}if(0===(1&t)){gs(a,c,t),gl();break e}l=Error(o(426))}else if(io&&1&u.mode){var y=vs(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),ys(y,s,u,0,t),go(ls(l,u));break e}}a=l=ls(l,u),4!==Nu&&(Nu=2),null===Uu?Uu=[a]:Uu.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,ds(0,l,t));break e;case 1:u=l;var m=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof m.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Ku||!Ku.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ho(a,hs(a,u,t));break e}}a=a.return}while(null!==a)}wl(n)}catch(w){t=w,Pu===n&&null!==n&&(Pu=n=n.return);continue}break}}function hl(){var e=Tu.current;return Tu.current=Za,null===e?Za:e}function gl(){0!==Nu&&3!==Nu&&2!==Nu||(Nu=4),null===Au||0===(268435455&Ru)&&0===(268435455&Lu)||sl(Au,Iu)}function vl(e,t){var n=Ou;Ou|=2;var r=hl();for(Au===e&&Iu===t||(Vu=null,pl(e,t));;)try{yl();break}catch(i){dl(e,i)}if(Co(),Ou=n,Tu.current=r,null!==Pu)throw Error(o(261));return Au=null,Iu=0,Nu}function yl(){for(;null!==Pu;)bl(Pu)}function ml(){for(;null!==Pu&&!$e();)bl(Pu)}function bl(e){var t=Eu(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?wl(e):Pu=t,ku.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Gs(n,t,ju)))return void(Pu=n)}else{if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Pu=n);if(null===e)return Nu=6,void(Pu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Pu=t);Pu=t=e}while(null!==t);0===Nu&&(Nu=5)}function _l(e,t,n){var r=bt,i=Cu.transition;try{Cu.transition=null,bt=1,function(e,t,n,r){do{Sl()}while(null!==Yu);if(0!==(6&Ou))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Au&&(Pu=Au=null,Iu=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Gu||(Gu=!0,Al(tt,(function(){return Sl(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Cu.transition,Cu.transition=null;var s=bt;bt=1;var u=Ou;Ou|=4,ku.current=null,function(e,t){if(ei=qt,dr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(_){n=null;break e}var s=0,u=-1,l=-1,c=0,f=0,p=e,d=null;t:for(;;){for(var h;p!==n||0!==i&&3!==p.nodeType||(u=s+i),p!==a||0!==r&&3!==p.nodeType||(l=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)d=p,p=h;for(;;){if(p===e)break t;if(d===n&&++c===i&&(u=s),d===a&&++f===r&&(l=s),null!==(h=p.nextSibling))break;d=(p=d).parentNode}p=h}n=-1===u||-1===l?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},qt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var v=g.memoizedProps,y=g.memoizedState,m=t.stateNode,b=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:ns(t.type,v),y);m.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(_){xl(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}g=tu,tu=!1}(e,n),vu(n,e),hr(ti),qt=!!ei,ti=ei=null,e.current=n,mu(n,e,i),Je(),Ou=u,bt=s,Cu.transition=a}else e.current=n;if(Gu&&(Gu=!1,Yu=e,$u=i),a=e.pendingLanes,0===a&&(Ku=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rl(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(qu)throw qu=!1,e=Wu,Wu=null,e;0!==(1&$u)&&0!==e.tag&&Sl(),a=e.pendingLanes,0!==(1&a)?e===Qu?Ju++:(Ju=0,Qu=e):Ju=0,Hi()}(e,t,n,r)}finally{Cu.transition=i,bt=r}return null}function Sl(){if(null!==Yu){var e=wt($u),t=Cu.transition,n=bt;try{if(Cu.transition=null,bt=16>e?16:e,null===Yu)var r=!1;else{if(e=Yu,Yu=null,$u=0,0!==(6&Ou))throw Error(o(331));var i=Ou;for(Ou|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(0!==(16&Zs.flags)){var u=a.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(Zs=c;null!==Zs;){var f=Zs;switch(f.tag){case 0:case 11:case 15:nu(8,f,a)}var p=f.child;if(null!==p)p.return=f,Zs=p;else for(;null!==Zs;){var d=(f=Zs).sibling,h=f.return;if(ou(f),f===c){Zs=null;break}if(null!==d){d.return=h,Zs=d;break}Zs=h}}}var g=a.alternate;if(null!==g){var v=g.child;if(null!==v){g.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(null!==v)}}Zs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(a=Zs).flags))switch(a.tag){case 0:case 11:case 15:nu(9,a,a.return)}var m=a.sibling;if(null!==m){m.return=a.return,Zs=m;break e}Zs=a.return}}var b=e.current;for(Zs=b;null!==Zs;){var w=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Zs=w;else e:for(s=b;null!==Zs;){if(0!==(2048&(u=Zs).flags))try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(S){xl(u,u.return,S)}if(u===s){Zs=null;break e}var _=u.sibling;if(null!==_){_.return=u.return,Zs=_;break e}Zs=u.return}}if(Ou=i,Hi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(S){}r=!0}return r}finally{bt=n,Cu.transition=t}}return!1}function El(e,t,n){e=zo(e,t=ds(0,t=ls(n,t),1),1),t=el(),null!==e&&(yt(e,1,t),rl(e,t))}function xl(e,t,n){if(3===e.tag)El(e,e,n);else for(;null!==t;){if(3===t.tag){El(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ku||!Ku.has(r))){t=zo(t,e=hs(t,e=ls(n,e),1),1),e=el(),null!==t&&(yt(t,1,e),rl(t,e));break}}t=t.return}}function Tl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=el(),e.pingedLanes|=e.suspendedLanes&n,Au===e&&(Iu&n)===n&&(4===Nu||3===Nu&&(130023424&Iu)===Iu&&500>Qe()-Bu?pl(e,0):Du|=n),rl(e,t)}function kl(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=el();null!==(e=Fo(e,t))&&(yt(e,t,n),rl(e,n))}function Cl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kl(e,n)}function Ol(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),kl(e,n)}function Al(e,t){return Ge(e,t)}function Pl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Il(e,t,n,r){return new Pl(e,t,n,r)}function jl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ml(e,t){var n=e.alternate;return null===n?((n=Il(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nl(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)jl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return Fl(n.children,i,a,t);case x:s=8,i|=8;break;case T:return(e=Il(12,n,t,2|i)).elementType=T,e.lanes=a,e;case A:return(e=Il(13,n,t,i)).elementType=A,e.lanes=a,e;case P:return(e=Il(19,n,t,i)).elementType=P,e.lanes=a,e;case M:return Rl(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case C:s=9;break e;case O:s=11;break e;case I:s=14;break e;case j:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Il(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Fl(e,t,n,r){return(e=Il(7,e,r,t)).lanes=n,e}function Rl(e,t,n,r){return(e=Il(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Ll(e,t,n){return(e=Il(6,e,null,t)).lanes=n,e}function Dl(e,t,n){return(t=Il(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ul(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zl(e,t,n,r,i,o,a,s,u){return e=new Ul(e,t,n,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Il(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lo(o),e}function Bl(e){if(!e)return Ci;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ji(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(ji(n))return Fi(e,n,t)}return t}function Hl(e,t,n,r,i,o,a,s,u){return(e=zl(n,r,!0,e,0,o,0,s,u)).context=Bl(null),n=e.current,(o=Uo(r=el(),i=tl(n))).callback=void 0!==t&&null!==t?t:null,zo(n,o,i),e.current.lanes=i,yt(e,i,r),rl(e,r),e}function Vl(e,t,n,r){var i=t.current,o=el(),a=tl(i);return n=Bl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Uo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zo(i,t,a))&&(nl(e,i,a,o),Bo(e,i,a)),a}function ql(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kl(e,t){Wl(e,t),(e=e.alternate)&&Wl(e,t)}Eu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:As(t),ho();break;case 5:Zo(t);break;case 1:ji(t.type)&&Ri(t);break;case 4:Jo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ki(Eo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ki(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(ki(ea,1&ea.current),null!==(e=qs(e,t,n))?e.sibling:null);ki(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ki(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,xs(e,t,n)}return qs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&Xi(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vs(e,t),e=t.pendingProps;var i=Ii(t,Oi.current);Po(t,n),i=va(null,t,r,e,i,n);var a=ya();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ji(r)?(a=!0,Ri(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Lo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,us(t,r,e,n),t=Os(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return jl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===O)return 11;if(e===I)return 14}return 2}(r),e=ns(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=Cs(null,t,r,e,n);break e;case 11:t=_s(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(As(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Do(e,t),Vo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,r,n,i=ls(Error(o(423)),t));break e}if(r!==i){t=Ps(e,t,r,n,i=ls(Error(o(424)),t));break e}for(ro=li(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=So(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=qs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Zo(t),null===e&&lo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Ts(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&lo(t),null;case 13:return Ls(e,t,n);case 4:return Jo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_o(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,_s(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,ki(Eo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ai.current){t=qs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var l=u.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Uo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ao(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Ao(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Po(t,n),r=r(i=Io(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),Ss(e,t,r,i=ns(r.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Vs(e,t),t.tag=1,ji(r)?(e=!0,Ri(t)):e=!1,Po(t,n),as(t,r,i),us(t,r,i,n),Os(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return xs(e,t,n)}throw Error(o(156,t.tag))};var Gl="function"===typeof reportError?reportError:function(e){console.error(e)};function Yl(e){this._internalRoot=e}function $l(e){this._internalRoot=e}function Jl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zl(){}function Xl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=ql(a);s.call(e)}}Vl(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=ql(a);o.call(e)}}var a=Hl(t,r,e,0,null,!1,0,"",Zl);return e._reactRootContainer=a,e[hi]=a.current,Hr(8===e.nodeType?e.parentNode:e),cl(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=ql(u);s.call(e)}}var u=zl(e,0,!1,null,0,!1,0,"",Zl);return e._reactRootContainer=u,e[hi]=u.current,Hr(8===e.nodeType?e.parentNode:e),cl((function(){Vl(t,u,n,r)})),u}(n,t,e,i,r);return ql(a)}$l.prototype.render=Yl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vl(e,t,null,null)},$l.prototype.unmount=Yl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cl((function(){Vl(null,e,null,null)})),t[hi]=null}},$l.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Lt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(mt(t,1|n),rl(t,Qe()),0===(6&Ou)&&(Hu=Qe()+500,Hi()))}break;case 13:cl((function(){var t=Fo(e,1);if(null!==t){var n=el();nl(t,e,1,n)}})),Kl(e,1)}},St=function(e){if(13===e.tag){var t=Fo(e,134217728);if(null!==t)nl(t,e,134217728,el());Kl(e,134217728)}},Et=function(e){if(13===e.tag){var t=tl(e),n=Fo(e,t);if(null!==n)nl(n,e,t,el());Kl(e,t)}},xt=function(){return bt},Tt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_i(r);if(!i)throw Error(o(90));G(r),Z(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Oe=ll,Ae=cl;var ec={usingClientEntryPoint:!1,Events:[bi,wi,_i,ke,Ce,ll]},tc={findFiberByHostInstance:mi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),ot=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jl(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Jl(e))throw Error(o(299));var n=!1,r="",i=Gl;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zl(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return cl(e)},t.hydrate=function(e,t,n){if(!Ql(t))throw Error(o(200));return Xl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Jl(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Gl;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hl(t,null,e,1,null!=n?n:null,i,0,a,s),e[hi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new $l(t)},t.render=function(e,t,n){if(!Ql(t))throw Error(o(200));return Xl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ql(e))throw Error(o(40));return!!e._reactRootContainer&&(cl((function(){Xl(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=ll,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ql(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Xl(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},84391:(e,t,n)=>{"use strict";var r=n(97950);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},97950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(82730)},66366:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,l,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(!o(e[u],a[u]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;for(c=e.entries();!(u=c.next()).done;)if(!o(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(a,l[u]))return!1;if(t&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!e.$$typeof)&&!o(e[l[u]],a[l[u]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},41591:(e,t,n)=>{"use strict";n.d(t,{m:()=>ue});var r=n(6638),i=n.n(r),o=n(38161),a=n.n(o),s=n(66366),u=n.n(s),l=n(65043),c=n(42123),f=n.n(c),p="bodyAttributes",d="htmlAttributes",h="titleAttributes",g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},v=(Object.keys(g).map((function(e){return g[e]})),"charset"),y="cssText",m="href",b="http-equiv",w="innerHTML",_="itemprop",S="name",E="property",x="rel",T="src",k="target",C={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},O="defaultTitle",A="defer",P="encodeSpecialCharacters",I="onChangeClientState",j="titleTemplate",M=Object.keys(C).reduce((function(e,t){return e[C[t]]=t,e}),{}),N=[g.NOSCRIPT,g.SCRIPT,g.STYLE],F="data-react-helmet",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},L=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}}(),D=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},U=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},z=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},B=function(e){var t=K(e,g.TITLE),n=K(e,j);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=K(e,O);return t||r||void 0},H=function(e){return K(e,I)||function(){}},V=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return D({},e,t)}),{})},q=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},W=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&Q("Helmet: "+e+' should be of type "Array". Instead found type "'+R(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),a=0;a<o.length;a++){var s=o[a],u=s.toLowerCase();-1===t.indexOf(u)||n===x&&"canonical"===e[n].toLowerCase()||u===x&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(s)||s!==w&&s!==y&&s!==_||(n=s)}if(!n||!e[n])return!1;var l=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][l]&&(i[n][l]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],u=f()({},r[s],i[s]);r[s]=u}return e}),[]).reverse()},K=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},G=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){G(t)}),0)}}(),Y=function(e){return clearTimeout(e)},$="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||G:n.g.requestAnimationFrame||G,J="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Y:n.g.cancelAnimationFrame||Y,Q=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},Z=null,X=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,f=e.title,p=e.titleAttributes;ne(g.BODY,r),ne(g.HTML,i),te(f,p);var d={baseTag:re(g.BASE,n),linkTags:re(g.LINK,o),metaTags:re(g.META,a),noscriptTags:re(g.NOSCRIPT,s),scriptTags:re(g.SCRIPT,l),styleTags:re(g.STYLE,c)},h={},v={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(v[e]=d[e].oldTags)})),t&&t(),u(e,h,v)},ee=function(e){return Array.isArray(e)?e.join(""):e},te=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=ee(e)),ne(g.TITLE,t)},ne=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(F),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s++){var u=a[s],l=t[u]||"";n.getAttribute(u)!==l&&n.setAttribute(u,l),-1===i.indexOf(u)&&i.push(u);var c=o.indexOf(u);-1!==c&&o.splice(c,1)}for(var f=o.length-1;f>=0;f--)n.removeAttribute(o[f]);i.length===o.length?n.removeAttribute(F):n.getAttribute(F)!==a.join(",")&&n.setAttribute(F,a.join(","))}},re=function(e,t){var n=document.head||document.querySelector(g.HEAD),r=n.querySelectorAll(e+"["+F+"]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===w)n.innerHTML=t.innerHTML;else if(r===y)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(F,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},ie=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[C[n]||n]=e[n],t}),t)},ae=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return function(e,t,n){var r,i=((r={key:t})[F]=!0,r),o=oe(n,i);return[l.createElement(g.TITLE,o,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var i=ie(n),o=ee(t);return i?"<"+e+" "+F+'="true" '+i+">"+z(o,r)+"</"+e+">":"<"+e+" "+F+'="true">'+z(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case p:case d:return{toComponent:function(){return oe(t)},toString:function(){return ie(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,i=((r={key:n})[F]=!0,r);return Object.keys(t).forEach((function(e){var n=C[e]||e;if(n===w||n===y){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),l.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===w||e===y)})).reduce((function(e,t){var i="undefined"===typeof r[t]?t:t+'="'+z(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===N.indexOf(e);return t+"<"+e+" "+F+'="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},se=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.scriptTags,l=e.styleTags,c=e.title,f=void 0===c?"":c,h=e.titleAttributes;return{base:ae(g.BASE,t,r),bodyAttributes:ae(p,n,r),htmlAttributes:ae(d,i,r),link:ae(g.LINK,o,r),meta:ae(g.META,a,r),noscript:ae(g.NOSCRIPT,s,r),script:ae(g.SCRIPT,u,r),style:ae(g.STYLE,l,r),title:ae(g.TITLE,{title:f,titleAttributes:h},r)}},ue=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!u()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return D({},r,((t={})[n.type]=[].concat(r[n.type]||[],[D({},i,this.mapNestedChildrenToProps(n,o))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case g.TITLE:return D({},i,((t={})[r.type]=a,t.titleAttributes=D({},o),t));case g.BODY:return D({},i,{bodyAttributes:D({},o)});case g.HTML:return D({},i,{htmlAttributes:D({},o)})}return D({},i,((n={})[r.type]=D({},o),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=D({},t);return Object.keys(e).forEach((function(t){var r;n=D({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return l.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[M[n]||n]=e[n],t}),t)}(U(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=U(t,["children"]),i=D({},r);return n&&(i=this.mapChildrenToProps(n,i)),l.createElement(e,i)},L(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(l.Component),t.propTypes={base:i().object,bodyAttributes:i().object,children:i().oneOfType([i().arrayOf(i().node),i().node]),defaultTitle:i().string,defer:i().bool,encodeSpecialCharacters:i().bool,htmlAttributes:i().object,link:i().arrayOf(i().object),meta:i().arrayOf(i().object),noscript:i().arrayOf(i().object),onChangeClientState:i().func,script:i().arrayOf(i().object),style:i().arrayOf(i().object),title:i().string,titleAttributes:i().object,titleTemplate:i().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=se({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(a()((function(e){return{baseTag:q([m,k],e),bodyAttributes:V(p,e),defer:K(e,A),encode:K(e,P),htmlAttributes:V(d,e),linkTags:W(g.LINK,[x,m],e),metaTags:W(g.META,[S,v,b,E,_],e),noscriptTags:W(g.NOSCRIPT,[w],e),onChangeClientState:H(e),scriptTags:W(g.SCRIPT,[T,w],e),styleTags:W(g.STYLE,[y],e),title:B(e),titleAttributes:V(h,e)}}),(function(e){Z&&J(Z),e.defer?Z=$((function(){X(e,(function(){Z=null}))})):(X(e),Z=null)}),se)((function(){return null})));ue.renderStatic=ue.rewind},93144:(e,t,n)=>{"use strict";var r=n(83231);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},6638:(e,t,n)=>{e.exports=n(93144)()},83231:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},47065:(e,t,n)=>{"use strict";n.d(t,{Rh:()=>m,Tl:()=>k});var r=n(65043),i=n(75436),o=n.n(i),a=n(19146),s=n.n(a),u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=Object.prototype.hasOwnProperty;function c(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}var f=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},p={wait:!1,withRef:!1,bindI18n:"languageChanged loaded",bindStore:"added removed",translateFuncName:"t",nsMode:"default",usePureComponent:!1},d=void 0;function h(e){p=f({},p,e)}function g(){return p}function v(e){d=e}function y(){return d}var m={type:"3rdParty",init:function(e){h(e.options.react),v(e)}},b=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},w=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}}();var _=!1,S=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));r.i18n=e.i18n||n.i18n||y(),r.namespaces=e.ns||r.i18n.options&&r.i18n.options.defaultNS,"string"===typeof r.namespaces&&(r.namespaces=[r.namespaces]);var i=r.i18n&&r.i18n.options&&r.i18n.options.react||{};r.options=b({},g(),i,e),e.initialI18nStore&&(r.i18n.services.resourceStore.data=e.initialI18nStore,r.options.wait=!1),e.initialLanguage&&r.i18n.changeLanguage(e.initialLanguage),r.i18n.options&&r.i18n.options.isInitialSSR&&(r.options.wait=!1);var o=r.i18n.languages&&r.i18n.languages[0],a=!!o&&r.namespaces.every((function(e){return r.i18n.hasResourceBundle(o,e)}));return r.state={i18nLoadedAt:null,ready:a},r.onI18nChanged=r.onI18nChanged.bind(r),r.getI18nTranslate=r.getI18nTranslate.bind(r),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),w(t,[{key:"getChildContext",value:function(){return{t:this.t,i18n:this.i18n}}},{key:"componentWillMount",value:function(){this.t=this.getI18nTranslate()}},{key:"componentDidMount",value:function(){var e=this,t=function(){e.options.bindI18n&&e.i18n&&e.i18n.on(e.options.bindI18n,e.onI18nChanged),e.options.bindStore&&e.i18n.store&&e.i18n.store.on(e.options.bindStore,e.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(this.namespaces,(function(){var n=function(){e.mounted&&!e.state.ready&&e.setState({ready:!0}),e.options.wait&&e.mounted&&t()};if(e.i18n.isInitialized)n();else{e.i18n.on("initialized",(function t(){setTimeout((function(){e.i18n.off("initialized",t)}),1e3),n()}))}})),this.options.wait||t()}},{key:"componentWillUnmount",value:function(){var e=this;if(this.mounted=!1,this.onI18nChanged){if(this.options.bindI18n)this.options.bindI18n.split(" ").forEach((function(t){return e.i18n.off(t,e.onI18nChanged)}));if(this.options.bindStore)this.options.bindStore.split(" ").forEach((function(t){return e.i18n.store&&e.i18n.store.off(t,e.onI18nChanged)}))}}},{key:"onI18nChanged",value:function(){this.mounted&&(this.t=this.getI18nTranslate(),this.setState({i18nLoadedAt:new Date}))}},{key:"getI18nTranslate",value:function(){return this.i18n.getFixedT(null,"fallback"===this.options.nsMode?this.namespaces:this.namespaces[0])}},{key:"render",value:function(){var e=this,t=this.props.children,n=this.state.ready;return!n&&this.options.wait?null:(this.i18n.options&&this.i18n.options.isInitialSSR&&!_&&(_=!0,setTimeout((function(){delete e.i18n.options.isInitialSSR}),100)),t(this.t,{i18n:this.i18n,t:this.t,ready:n}))}}]),t}(r.Component);const E=S;S.contextTypes={i18n:o().object},S.childContextTypes={t:o().func.isRequired,i18n:o().object};var x=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},T=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}}();function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i,a=function(i){function o(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,n,r));i.i18n=n.i18n||t.i18n||r.i18n||y(),i.namespaces="function"===typeof e?e(n):e||i.i18n.options&&i.i18n.options.defaultNS,"string"===typeof i.namespaces&&(i.namespaces=[i.namespaces]);var a=i.i18n&&i.i18n.options&&i.i18n.options.react||{};return i.options=x({},g(),a,t),i.getWrappedInstance=i.getWrappedInstance.bind(i),i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),T(o,[{key:"shouldComponentUpdate",value:function(e){return!this.options.usePureComponent||!function(e,t){if(c(e,t))return!0;if("object"!==("undefined"===typeof e?"undefined":u(e))||null===e||"object"!==("undefined"===typeof t?"undefined":u(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!l.call(t,n[i])||!c(e[n[i]],t[n[i]]))return!1;return!0}(this.props,e)}},{key:"getWrappedInstance",value:function(){return this.options.withRef||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.wrappedInstance}},{key:"render",value:function(){var e=this,t={};return this.options.withRef&&(t.ref=function(t){e.wrappedInstance=t}),r.createElement(E,x({ns:this.namespaces},this.options,this.props,{i18n:this.i18n}),(function(i,o){var a=o.ready,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["ready"]);return r.createElement(n,x({tReady:a},e.props,t,s))}))}}]),o}(r.Component);return a.WrappedComponent=n,a.contextTypes={i18n:o().object},a.displayName="Translate("+(((i=n).displayName||i.name||"Component")+")"),a.namespaces=e,s()(a,n)}}k.setDefaults=h,k.setI18n=v;var C=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},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}}();var A=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.i18n=e.i18n||n.i18n,r.t=e.t||n.t,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),O(t,[{key:"render",value:function(){var e=this,t=this.props.parent||"span",n=this.props.regexp||this.i18n.services.interpolator.regexp,i=this.props,o=i.className,a=i.style,s=this.props.useDangerouslySetInnerHTML||!1,u=this.props.dangerouslySetInnerHTMLPartElement||"span",l=C({},this.props.options,{interpolation:{prefix:"#$?",suffix:"?$#"}}),c=this.t(this.props.i18nKey,l);if(!c||"string"!==typeof c)return r.createElement("noscript",null);var f=[];c.split(n).reduce((function(t,n,i){var o=void 0;if(i%2===0){if(0===n.length)return t;o=s?r.createElement(u,{dangerouslySetInnerHTML:{__html:n}}):n}else o=function(t,n){if(t.indexOf(e.i18n.options.interpolation.formatSeparator)<0)return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+t+" for interpolating "+c),n[t];var r=t.split(e.i18n.options.interpolation.formatSeparator),i=r.shift().trim(),o=r.join(e.i18n.options.interpolation.formatSeparator).trim();return void 0===n[i]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+i+" for interpolating "+c),e.i18n.options.interpolation.format(n[i],o,e.i18n.language)}(n,e.props);return t.push(o),t}),f);var p={};if(this.i18n.options.react&&this.i18n.options.react.exposeNamespace){var d="string"===typeof this.t.ns?this.t.ns:this.t.ns[0];if(this.props.i18nKey&&this.i18n.options.nsSeparator&&this.props.i18nKey.indexOf(this.i18n.options.nsSeparator)>-1)d=this.props.i18nKey.split(this.i18n.options.nsSeparator)[0];this.t.ns&&(p["data-i18next-options"]=JSON.stringify({ns:d}))}return o&&(p.className=o),a&&(p.style=a),r.createElement.apply(this,[t,p].concat(f))}}]),t}(r.Component);A.propTypes={className:o().string},A.defaultProps={className:""},A.contextTypes={i18n:o().object.isRequired,t:o().func.isRequired};var P=n(21915),I=n.n(P),j=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}}(),M=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},N="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};function F(e){return e&&(e.children||e.props&&e.props.children)}function R(e){return e&&e.children?e.children:e.props&&e.props.children}function L(e,t,n){return t?("[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),t.forEach((function(t,n){var i=""+n;if("string"===typeof t)e=""+e+t;else if(F(t))e=e+"<"+i+">"+L("",R(t),n+1)+"</"+i+">";else if(r.isValidElement(t))e=e+"<"+i+"></"+i+">";else if("object"===("undefined"===typeof t?"undefined":N(t))){var o=M({},t),a=o.format;delete o.format;var s=Object.keys(o);a&&1===s.length?e=e+"<"+i+">{{"+s[0]+", "+a+"}}</"+i+">":1===s.length?e=e+"<"+i+">{{"+s[0]+"}}</"+i+">":console&&console.warn&&console.warn("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else console&&console.warn&&console.warn("react-i18next: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)})),e):""}function D(e,t,n){if(""===t)return[];if(!e)return[t];var i=function e(t,i){return"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),"[object Array]"!==Object.prototype.toString.call(i)&&(i=[i]),i.reduce((function(i,o,a){if("tag"===o.type){var s=t[parseInt(o.name,10)]||{},u=r.isValidElement(s);if("string"===typeof s)i.push(s);else if(F(s)){var l=e(R(s),o.children);s.dummy&&(s.children=l),i.push(r.cloneElement(s,M({},s.props,{key:a}),l))}else if("object"!==("undefined"===typeof s?"undefined":N(s))||u)i.push(s);else{var c=n.services.interpolator.interpolate(o.children[0].content,s,n.language);i.push(c)}}else"text"===o.type&&i.push(o.content);return i}),[])}([{dummy:!0,children:e}],I().parse("<0>"+t+"</0>"));return R(i[0])}var U=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),j(t,[{key:"render",value:function(){var e=M({i18n:this.context.i18n,t:this.context.t},this.props),t=e.children,n=e.count,i=e.parent,o=e.i18nKey,a=e.ns,s=e.i18n,u=e.t,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","count","parent","i18nKey","ns","i18n","t"]),c=u||s.t.bind(s),f=s.options&&s.options.react||{},p=void 0!==i?i:f.defaultTransParent,d=L("",t),h=f.hashTransKey,g=o||(h?h(d):d),v=g?c(g,{interpolation:{prefix:"#$?",suffix:"?$#"},defaultValue:d,count:n,ns:a}):d;if(f.exposeNamespace){var y="string"===typeof c.ns?c.ns:c.ns[0];if(o&&s.options&&s.options.nsSeparator&&o.indexOf(s.options.nsSeparator)>-1)y=o.split(s.options.nsSeparator)[0];c.ns&&(l["data-i18next-options"]=JSON.stringify({ns:y}))}return p?r.createElement(p,l,D(t,v,s)):D(t,v,s)}}]),t}(r.Component);U.propTypes={count:o().number,parent:o().node,i18nKey:o().string,i18n:o().object,t:o().func},U.contextTypes={i18n:o().object.isRequired,t:o().func};var z=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}}();var B=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.i18n=e.i18n,e.initialI18nStore&&(r.i18n.services.resourceStore.data=e.initialI18nStore,r.i18n.options.isInitialSSR=!0),e.initialLanguage&&r.i18n.changeLanguage(e.initialLanguage),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),z(t,[{key:"getChildContext",value:function(){return{i18n:this.i18n}}},{key:"componentWillReceiveProps",value:function(e){if(this.props.i18n!==e.i18n)throw new Error("[react-i18next][I18nextProvider]does not support changing the i18n object.")}},{key:"render",value:function(){var e=this.props.children;return r.Children.only(e)}}]),t}(r.Component);B.propTypes={i18n:o().object.isRequired,children:o().element.isRequired},B.childContextTypes={i18n:o().object.isRequired};"function"===typeof Symbol&&Symbol.iterator;Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r})},19146:e=>{"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,i=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,u=s&&s(Object);e.exports=function e(l,c,f){if("string"!==typeof c){if(u){var p=s(c);p&&p!==u&&e(l,p,f)}var d=i(c);o&&(d=d.concat(o(c)));for(var h=0;h<d.length;++h){var g=d[h];if(!t[g]&&!n[g]&&(!f||!f[g])){var v=a(c,g);try{r(l,g,v)}catch(y){}}}return l}return l}},56270:(e,t,n)=>{"use strict";var r=n(75253);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},75436:(e,t,n)=>{e.exports=n(56270)()},75253:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},66669:(e,t,n)=>{"use strict";var r=n(21310);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},57889:(e,t,n)=>{e.exports=n(66669)()},21310:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},95082:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case p:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case f:case g:case h:case u:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return y(e)===l}},2086:(e,t,n)=>{"use strict";e.exports=n(95082)},51554:(e,t,n)=>{"use strict";var 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};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(65043),u=n(52503),l=[],c=[];function f(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var i=f(e[r]);i.loading?t.loading=!0:(t.loaded[r]=i.loaded,t.error=i.error),n.push(i.promise),i.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function d(e,t){return s.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function h(e,t){var f,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var h=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:d,webpack:null,modules:null},t),g=null;function v(){return g||(g=e(h.loader)),g.promise}return l.push(v),"function"===typeof h.webpack&&c.push((function(){if(e=h.webpack,"object"===r(n.m)&&e().every((function(e){return"undefined"!==typeof e&&"undefined"!==typeof n.m[e]})))return v();var e})),p=f=function(t){function n(r){i(this,n);var a=o(this,t.call(this,r));return a.retry=function(){a.setState({error:null,loading:!0,timedOut:!1}),g=e(h.loader),a._loadModule()},v(),a.state={error:g.error,pastDelay:!1,timedOut:!1,loading:g.loading,loaded:g.loaded},a}return a(n,t),n.preload=function(){return v()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(h.modules)&&h.modules.forEach((function(t){e.context.loadable.report(t)})),g.loading){"number"===typeof h.delay&&(0===h.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){e.setState({pastDelay:!0})}),h.delay)),"number"===typeof h.timeout&&(this._timeout=setTimeout((function(){e.setState({timedOut:!0})}),h.timeout));var t=function(){e._mounted&&(e.setState({error:g.error,loaded:g.loaded,loading:g.loading}),e._clearTimeouts())};g.promise.then((function(){t()})).catch((function(e){t()}))}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?s.createElement(h.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?h.render(this.state.loaded,this.props):null},n}(s.Component),f.contextTypes={loadable:u.shape({report:u.func.isRequired})},p}function g(e){return h(f,e)}g.Map=function(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return h(p,e)};var v=function(e){function t(){return i(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return s.Children.only(this.props.children)},t}(s.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return y(e)}))}v.propTypes={report:u.func.isRequired},v.childContextTypes={loadable:u.shape({report:u.func.isRequired}).isRequired},g.Capture=v,g.preloadAll=function(){return new Promise((function(e,t){y(l).then(e,t)}))},g.preloadReady=function(){return new Promise((function(e,t){y(c).then(e,e)}))},e.exports=g},5643:(e,t,n)=>{"use strict";var r=n(76716);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},52503:(e,t,n)=>{e.exports=n(5643)()},76716:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},22166:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>V,Ng:()=>H,d4:()=>b});var r=n(29461),i=n(98443),o=n(97950);let a=function(e){e()};const s=()=>a;var u=n(65043);const l=Symbol.for("react-redux-context"),c="undefined"!==typeof globalThis?globalThis:{};function f(){var e;if(!u.createContext)return{};const t=null!=(e=c[l])?e:c[l]=new Map;let n=t.get(u.createContext);return n||(n=u.createContext(null),t.set(u.createContext,n)),n}const p=f();function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return function(){return(0,u.useContext)(e)}}const h=d(),g=()=>{throw new Error("uSES not initialized!")};let v=g;const y=(e,t)=>e===t;function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;const t=e===p?h:d(e);return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:r=y,stabilityCheck:i,noopCheck:o}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:l,stabilityCheck:c,noopCheck:f}=t(),p=((0,u.useRef)(!0),(0,u.useCallback)({[e.name]:t=>e(t)}[e.name],[e,c,i])),d=v(s.addNestedSub,a.getState,l||a.getState,p,r);return(0,u.useDebugValue)(d),d}}const b=m();var w=n(58168),_=n(98587),S=n(80219),E=n.n(S),x=n(2086);const T=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function k(e,t,n,r,i){let o,a,s,u,l,{areStatesEqual:c,areOwnPropsEqual:f,areStatePropsEqual:p}=i,d=!1;function h(i,d){const h=!f(d,a),g=!c(i,o,d,a);return o=i,a=d,h&&g?(s=e(o,a),t.dependsOnOwnProps&&(u=t(r,a)),l=n(s,u,a),l):h?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(u=t(r,a)),l=n(s,u,a),l):g?function(){const t=e(o,a),r=!p(t,s);return s=t,r&&(l=n(s,u,a)),l}():l}return function(i,c){return d?h(i,c):(o=i,a=c,s=e(o,a),u=t(r,a),l=n(s,u,a),d=!0,l)}}function C(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function O(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,n){let{displayName:r}=n;const i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,n){i.mapToProps=e,i.dependsOnOwnProps=O(e);let r=i(t,n);return"function"===typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=O(r),r=i(t,n)),r},i}}function P(e,t){return(n,r)=>{throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(r.wrappedComponentName,"."))}}function I(e,t,n){return(0,w.A)({},n,e,t)}const j={notify(){},get:()=>[]};function M(e,t){let n,r=j,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function u(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=s();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=j)}const c={addNestedSub:function(e){u();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,u())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}const N=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?u.useLayoutEffect:u.useEffect;function F(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function R(e,t){if(F(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!F(e[n[i]],t[n[i]]))return!1;return!0}const L=["reactReduxForwardedRef"];let D=g;const U=[null,null];function z(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function B(e,t){return e===t}const H=function(e,t,n){let{pure:r,areStatesEqual:i=B,areOwnPropsEqual:o=R,areStatePropsEqual:a=R,areMergedPropsEqual:s=R,forwardRef:l=!1,context:c=p}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const f=c,d=function(e){return e?"function"===typeof e?A(e):P(e,"mapStateToProps"):C((()=>({})))}(e),h=function(e){return e&&"object"===typeof e?C((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=function(){return t(i(...arguments))})}return n}(e,t))):e?"function"===typeof e?A(e):P(e,"mapDispatchToProps"):C((e=>({dispatch:e})))}(t),g=function(e){return e?"function"===typeof e?function(e){return function(t,n){let r,{displayName:i,areMergedPropsEqual:o}=n,a=!1;return function(t,n,i){const s=e(t,n,i);return a?o(s,r)||(r=s):(a=!0,r=s),r}}}(e):P(e,"mergeProps"):()=>I}(n),v=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n="Connect(".concat(t,")"),r={shouldHandleStateChanges:v,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:h,initMergeProps:g,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function c(t){const[n,i,o]=u.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=(0,_.A)(t,L);return[t.context,e,n]}),[t]),a=u.useMemo((()=>n&&n.Consumer&&(0,x.isContextConsumer)(u.createElement(n.Consumer,null))?n:f),[n,f]),s=u.useContext(a),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),c=Boolean(s)&&Boolean(s.store);const p=l?t.store:s.store,d=c?s.getServerState:p.getState,h=u.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,o=(0,_.A)(t,T);return k(n(e,o),r(e,o),i(e,o),e,o)}(p.dispatch,r)),[p]),[g,y]=u.useMemo((()=>{if(!v)return U;const e=M(p,l?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,l,s]),m=u.useMemo((()=>l?s:(0,w.A)({},s,{subscription:g})),[l,s,g]),b=u.useRef(),S=u.useRef(o),E=u.useRef(),C=u.useRef(!1),O=(u.useRef(!1),u.useRef(!1)),A=u.useRef();N((()=>(O.current=!0,()=>{O.current=!1})),[]);const P=u.useMemo((()=>()=>E.current&&o===S.current?E.current:h(p.getState(),o)),[p,o]),I=u.useMemo((()=>e=>g?function(e,t,n,r,i,o,a,s,u,l,c){if(!e)return()=>{};let f=!1,p=null;const d=()=>{if(f||!s.current)return;const e=t.getState();let n,d;try{n=r(e,i.current)}catch(h){d=h,p=h}d||(p=null),n===o.current?a.current||l():(o.current=n,u.current=n,a.current=!0,c())};return n.onStateChange=d,n.trySubscribe(),d(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(v,p,g,h,S,b,C,O,E,y,e):()=>{}),[g]);var j,F,R;let B;j=z,F=[S,b,C,o,E,y],N((()=>j(...F)),R);try{B=D(I,P,d?()=>h(d(),o):P)}catch(V){throw A.current&&(V.message+="\nThe error may be correlated with this previous error:\n".concat(A.current.stack,"\n\n")),V}N((()=>{A.current=void 0,E.current=void 0,b.current=B}));const H=u.useMemo((()=>u.createElement(e,(0,w.A)({},B,{ref:i}))),[i,e,B]);return u.useMemo((()=>v?u.createElement(a.Provider,{value:m},H):H),[a,H,m])}const p=u.memo(c);if(p.WrappedComponent=e,p.displayName=c.displayName=n,l){const t=u.forwardRef((function(e,t){return u.createElement(p,(0,w.A)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,E()(t,e)}return E()(p,e)}};const V=function(e){let{store:t,context:n,children:r,serverState:i,stabilityCheck:o="once",noopCheck:a="once"}=e;const s=u.useMemo((()=>{const e=M(t);return{store:t,subscription:e,getServerState:i?()=>i:void 0,stabilityCheck:o,noopCheck:a}}),[t,i,o,a]),l=u.useMemo((()=>t.getState()),[t]);N((()=>{const{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,l]);const c=n||p;return u.createElement(c.Provider,{value:s},r)};var q,W;q=i.useSyncExternalStoreWithSelector,v=q,(e=>{D=e})(r.useSyncExternalStore),W=o.unstable_batchedUpdates,a=W},35475:(e,t,n)=>{"use strict";var r,i;n.d(t,{Kd:()=>h,N_:()=>y,ok:()=>w});var o=n(65043),a=n(97950),s=n(73216),u=n(31387);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function f(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const p=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(_){}new Map;const d=(r||(r=n.t(o,2))).startTransition;(i||(i=n.t(a,2))).flushSync,(r||(r=n.t(o,2))).useId;function h(e){let{basename:t,children:n,future:r,window:i}=e,a=o.useRef();null==a.current&&(a.current=(0,u.zR)({window:i,v5Compat:!0}));let l=a.current,[c,f]=o.useState({action:l.action,location:l.location}),{v7_startTransition:p}=r||{},h=o.useCallback((e=>{p&&d?d((()=>f(e))):f(e)}),[f,p]);return o.useLayoutEffect((()=>l.listen(h)),[l,h]),o.createElement(s.Ix,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:r})}const g="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,v=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y=o.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:a,replace:f,state:d,target:h,to:y,preventScrollReset:m,unstable_viewTransition:b}=e,w=c(e,p),{basename:S}=o.useContext(s.jb),E=!1;if("string"===typeof y&&v.test(y)&&(n=y,g))try{let e=new URL(window.location.href),t=y.startsWith("//")?new URL(e.protocol+y):new URL(y),n=(0,u.pb)(t.pathname,S);t.origin===e.origin&&null!=n?y=n+t.search+t.hash:E=!0}catch(_){}let x=(0,s.$P)(y,{relative:i}),T=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:c}=void 0===t?{}:t,f=(0,s.Zp)(),p=(0,s.zy)(),d=(0,s.x$)(e,{relative:l});return o.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,u.AO)(p)===(0,u.AO)(d);f(e,{replace:n,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:c})}}),[p,f,d,r,i,n,e,a,l,c])}(y,{replace:f,state:d,target:h,preventScrollReset:m,relative:i,unstable_viewTransition:b});return o.createElement("a",l({},w,{href:n||x,onClick:E||a?r:function(e){r&&r(e),e.defaultPrevented||T(e)},ref:t,target:h}))}));var m,b;function w(e){let t=o.useRef(f(e)),n=o.useRef(!1),r=(0,s.zy)(),i=o.useMemo((()=>function(e,t){let n=f(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),a=(0,s.Zp)(),u=o.useCallback(((e,t)=>{const r=f("function"===typeof e?e(i):e);n.current=!0,a("?"+r,t)}),[a,i]);return[i,u]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(m||(m={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(b||(b={}))},73216:(e,t,n)=>{"use strict";var r;n.d(t,{$P:()=>d,BV:()=>F,C5:()=>j,Ix:()=>N,Zp:()=>y,g:()=>m,jb:()=>l,qh:()=>M,x$:()=>b,zy:()=>g});var i=n(65043),o=n(31387);function a(){return a=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},a.apply(this,arguments)}const s=i.createContext(null);const u=i.createContext(null);const l=i.createContext(null);const c=i.createContext(null);const f=i.createContext({outlet:null,matches:[],isDataRoute:!1});const p=i.createContext(null);function d(e,t){let{relative:n}=void 0===t?{}:t;h()||(0,o.Oi)(!1);let{basename:r,navigator:a}=i.useContext(l),{hash:s,pathname:u,search:c}=b(e,{relative:n}),f=u;return"/"!==r&&(f="/"===u?r:(0,o.HS)([r,u])),a.createHref({pathname:f,search:c,hash:s})}function h(){return null!=i.useContext(c)}function g(){return h()||(0,o.Oi)(!1),i.useContext(c).location}function v(e){i.useContext(l).static||i.useLayoutEffect(e)}function y(){let{isDataRoute:e}=i.useContext(f);return e?function(){let{router:e}=O(k.UseNavigateStable),t=P(C.UseNavigateStable),n=i.useRef(!1);return v((()=>{n.current=!0})),i.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},i)))}),[e,t])}():function(){h()||(0,o.Oi)(!1);let e=i.useContext(s),{basename:t,future:n,navigator:r}=i.useContext(l),{matches:a}=i.useContext(f),{pathname:u}=g(),c=JSON.stringify((0,o.yD)(a,n.v7_relativeSplatPath)),p=i.useRef(!1);return v((()=>{p.current=!0})),i.useCallback((function(n,i){if(void 0===i&&(i={}),!p.current)return;if("number"===typeof n)return void r.go(n);let a=(0,o.Gh)(n,JSON.parse(c),u,"path"===i.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,o.HS)([t,a.pathname])),(i.replace?r.replace:r.push)(a,i.state,i)}),[t,r,c,u,e])}()}function m(){let{matches:e}=i.useContext(f),t=e[e.length-1];return t?t.params:{}}function b(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=i.useContext(l),{matches:a}=i.useContext(f),{pathname:s}=g(),u=JSON.stringify((0,o.yD)(a,r.v7_relativeSplatPath));return i.useMemo((()=>(0,o.Gh)(e,JSON.parse(u),s,"path"===n)),[e,u,s,n])}function w(e,t,n,r){h()||(0,o.Oi)(!1);let{navigator:s}=i.useContext(l),{matches:u}=i.useContext(f),p=u[u.length-1],d=p?p.params:{},v=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let y,m=g();if(t){var b;let e="string"===typeof t?(0,o.Rr)(t):t;"/"===v||(null==(b=e.pathname)?void 0:b.startsWith(v))||(0,o.Oi)(!1),y=e}else y=m;let w=y.pathname||"/",_=w;if("/"!==v){let e=v.replace(/^\//,"").split("/");_="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let S=(0,o.ue)(e,{pathname:_});let E=T(S&&S.map((e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,o.HS)([v,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,o.HS)([v,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),u,n,r);return t&&E?i.createElement(c.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:o.rc.Pop}},E):E}function _(){let e=function(){var e;let t=i.useContext(p),n=A(C.UseRouteError),r=P(C.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:a},n):null,null)}const S=i.createElement(_,null);class E extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(f.Provider,{value:this.props.routeContext},i.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function x(e){let{routeContext:t,match:n,children:r}=e,o=i.useContext(s);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(f.Provider,{value:t},r)}function T(e,t,n,r){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let u=e,l=null==(a=n)?void 0:a.errors;if(null!=l){let e=u.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||(0,o.Oi)(!1),u=u.slice(0,Math.min(u.length,e+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let i=0;i<u.length;i++){let e=u[i];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(f=i),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){c=!0,u=f>=0?u.slice(0,f+1):[u[0]];break}}}return u.reduceRight(((e,r,o)=>{let a,s=!1,p=null,d=null;var h;n&&(a=l&&r.route.id?l[r.route.id]:void 0,p=r.route.errorElement||S,c&&(f<0&&0===o?(h="route-fallback",!1||I[h]||(I[h]=!0),s=!0,d=null):f===o&&(s=!0,d=r.route.hydrateFallbackElement||null)));let g=t.concat(u.slice(0,o+1)),v=()=>{let t;return t=a?p:s?d:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(x,{match:r,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(E,{location:n.location,revalidation:n.revalidation,component:p,error:a,children:v(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):v()}),null)}var k=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(k||{}),C=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(C||{});function O(e){let t=i.useContext(s);return t||(0,o.Oi)(!1),t}function A(e){let t=i.useContext(u);return t||(0,o.Oi)(!1),t}function P(e){let t=function(e){let t=i.useContext(f);return t||(0,o.Oi)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}const I={};(r||(r=n.t(i,2))).startTransition;function j(e){let{to:t,replace:n,state:r,relative:a}=e;h()||(0,o.Oi)(!1);let{future:s,static:u}=i.useContext(l),{matches:c}=i.useContext(f),{pathname:p}=g(),d=y(),v=(0,o.Gh)(t,(0,o.yD)(c,s.v7_relativeSplatPath),p,"path"===a),m=JSON.stringify(v);return i.useEffect((()=>d(JSON.parse(m),{replace:n,state:r,relative:a})),[d,m,a,n,r]),null}function M(e){(0,o.Oi)(!1)}function N(e){let{basename:t="/",children:n=null,location:r,navigationType:s=o.rc.Pop,navigator:u,static:f=!1,future:p}=e;h()&&(0,o.Oi)(!1);let d=t.replace(/^\/*/,"/"),g=i.useMemo((()=>({basename:d,navigator:u,static:f,future:a({v7_relativeSplatPath:!1},p)})),[d,p,u,f]);"string"===typeof r&&(r=(0,o.Rr)(r));let{pathname:v="/",search:y="",hash:m="",state:b=null,key:w="default"}=r,_=i.useMemo((()=>{let e=(0,o.pb)(v,d);return null==e?null:{location:{pathname:e,search:y,hash:m,state:b,key:w},navigationType:s}}),[d,v,y,m,b,w,s]);return null==_?null:i.createElement(l.Provider,{value:g},i.createElement(c.Provider,{children:n,value:_}))}function F(e){let{children:t,location:n}=e;return w(R(t),n)}new Promise((()=>{}));i.Component;function R(e,t){void 0===t&&(t=[]);let n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let a=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,R(e.props.children,a));e.type!==M&&(0,o.Oi)(!1),e.props.index&&e.props.children&&(0,o.Oi)(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=R(e.props.children,a)),n.push(s)})),n}},38161:(e,t,n)=>{"use strict";var r,i=n(65043),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,l=[];function c(){u=e(l.map((function(e){return e.props}))),f.canUseDOM?t(u):n&&(u=n(u))}var f=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return u},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,l=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){l.push(this),c()},a.componentDidUpdate=function(){c()},a.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),c()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",s),f}}},51153:(e,t,n)=>{"use strict";var r=n(65043),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},14202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function m(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=y.prototype;var w=b.prototype=new m;w.constructor=b,g(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray,S=Object.prototype.hasOwnProperty,E={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!x.hasOwnProperty(i)&&(o[i]=t[i]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:E.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function O(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===o?"."+O(u,0):o,_(a)?(i="",null!=e&&(i=e.replace(C,"$&/")+"/"),A(a,t,i,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",_(e))for(var l=0;l<e.length;l++){var c=o+O(s=e[l],l);u+=A(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=A(s=s.value,t,i,c=o+O(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function P(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},M={transition:null},N={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:M,ReactCurrentOwner:E};function F(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=F,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=g({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)S.call(t,l)&&!x.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=F,t.useCallback=function(e,t){return j.current.useCallback(e,t)},t.useContext=function(e){return j.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return j.current.useDeferredValue(e)},t.useEffect=function(e,t){return j.current.useEffect(e,t)},t.useId=function(){return j.current.useId()},t.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.current.useMemo(e,t)},t.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},t.useRef=function(e){return j.current.useRef(e)},t.useState=function(e){return j.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.current.useTransition()},t.version="18.3.1"},65043:(e,t,n)=>{"use strict";e.exports=n(14202)},70579:(e,t,n)=>{"use strict";e.exports=n(51153)},41817:function(e,t,n){e.exports=(n(65173),n(65043),function(){try{return n(73499)}catch(e){}}(),n(66958),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USER_EXPIRED="redux-oidc/USER_EXPIRED",t.SILENT_RENEW_ERROR="redux-oidc/SILENT_RENEW_ERROR",t.SESSION_TERMINATED="redux-oidc/SESSION_TERMINATED",t.USER_EXPIRING="redux-oidc/USER_EXPIRING",t.USER_FOUND="redux-oidc/USER_FOUND",t.LOADING_USER="redux-oidc/LOADING_USER",t.USER_SIGNED_OUT="redux-oidc/USER_SIGNED_OUT",t.LOAD_USER_ERROR="redux-oidc/LOAD_USER_ERROR"},function(e,t,n){"use strict";function r(){return{type:f.USER_EXPIRED}}function i(e){return{type:f.USER_FOUND,payload:e}}function o(e){return{type:f.SILENT_RENEW_ERROR,payload:e}}function a(){return{type:f.SESSION_TERMINATED}}function s(){return{type:f.USER_EXPIRING}}function u(){return{type:f.LOADING_USER}}function l(){return{type:f.USER_SIGNED_OUT}}function c(){return{type:f.LOAD_USER_ERROR}}Object.defineProperty(t,"__esModule",{value:!0}),t.userExpired=r,t.userFound=i,t.silentRenewError=o,t.sessionTerminated=a,t.userExpiring=s,t.loadingUser=u,t.userSignedOut=l,t.loadUserError=c;var f=n(0)},function(e,t,n){"use strict";function r(e){return new i.UserManager(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(14)},function(e,t){e.exports=n(65173)},function(e,t){e.exports=n(65043)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadUserError=t.userSignedOut=t.loadingUser=t.userExpiring=t.sessionTerminated=t.silentRenewError=t.userFound=t.userExpired=t.LOAD_USER_ERROR=t.USER_SIGNED_OUT=t.LOADING_USER=t.USER_EXPIRING=t.SESSION_TERMINATED=t.SILENT_RENEW_ERROR=t.USER_FOUND=t.USER_EXPIRED=t.OidcProvider=t.reducer=t.immutableReducer=t.CallbackComponent=t.loadUser=t.processSilentRenew=t.createUserManager=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(10));t.createUserManager=n(2).default,t.processSilentRenew=n(9).default,t.loadUser=n(8).default,t.CallbackComponent=n(6).default,t.immutableReducer=n(11).default,t.reducer=n(12).default,t.OidcProvider=n(7).default,t.USER_EXPIRED=n(0).USER_EXPIRED,t.USER_FOUND=n(0).USER_FOUND,t.SILENT_RENEW_ERROR=n(0).SILENT_RENEW_ERROR,t.SESSION_TERMINATED=n(0).SESSION_TERMINATED,t.USER_EXPIRING=n(0).USER_EXPIRING,t.LOADING_USER=n(0).LOADING_USER,t.USER_SIGNED_OUT=n(0).USER_SIGNED_OUT,t.LOAD_USER_ERROR=n(0).LOAD_USER_ERROR,t.userExpired=n(1).userExpired,t.userFound=n(1).userFound,t.silentRenewError=n(1).silentRenewError,t.sessionTerminated=n(1).sessionTerminated,t.userExpiring=n(1).userExpiring,t.loadingUser=n(1).loadingUser,t.userSignedOut=n(1).userSignedOut,t.loadUserError=n(1).loadUserError,t.default=r.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=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}}(),u=r(n(3)),l=r(n(4)),c=function(e){function t(){var e,n,r;i(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.onRedirectSuccess=function(e){r.props.successCallback(e)},r.onRedirectError=function(e){if(!r.props.errorCallback)throw new Error("Error handling redirect callback: "+e.message);r.props.errorCallback(e)},o(r,n)}return a(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;this.props.userManager.signinRedirectCallback().then((function(t){return e.onRedirectSuccess(t)})).catch((function(t){return e.onRedirectError(t)}))}},{key:"render",value:function(){return l.default.Children.only(this.props.children)}}]),t}(l.default.Component);c.propTypes={children:u.default.element.isRequired,userManager:u.default.object.isRequired,successCallback:u.default.func.isRequired,errorCallback:u.default.func},t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=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}}(),u=r(n(3)),l=r(n(4)),c=n(1),f=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onUserLoaded=function(e){n.props.store.dispatch((0,c.userFound)(e))},n.onSilentRenewError=function(e){n.props.store.dispatch((0,c.silentRenewError)(e))},n.onAccessTokenExpired=function(){n.props.store.dispatch((0,c.userExpired)())},n.onUserUnloaded=function(){n.props.store.dispatch((0,c.sessionTerminated)())},n.onAccessTokenExpiring=function(){n.props.store.dispatch((0,c.userExpiring)())},n.onUserSignedOut=function(){n.props.store.dispatch((0,c.userSignedOut)())},n.userManager=e.userManager,n}return a(t,e),s(t,[{key:"componentWillMount",value:function(){this.userManager.events.addUserLoaded(this.onUserLoaded),this.userManager.events.addSilentRenewError(this.onSilentRenewError),this.userManager.events.addAccessTokenExpired(this.onAccessTokenExpired),this.userManager.events.addAccessTokenExpiring(this.onAccessTokenExpiring),this.userManager.events.addUserUnloaded(this.onUserUnloaded),this.userManager.events.addUserSignedOut(this.onUserSignedOut)}},{key:"componentWillUnmount",value:function(){this.userManager.events.removeUserLoaded(this.onUserLoaded),this.userManager.events.removeSilentRenewError(this.onSilentRenewError),this.userManager.events.removeAccessTokenExpired(this.onAccessTokenExpired),this.userManager.events.removeAccessTokenExpiring(this.onAccessTokenExpiring),this.userManager.events.removeUserUnloaded(this.onUserUnloaded),this.userManager.events.removeUserSignedOut(this.onUserSignedOut)}},{key:"render",value:function(){return l.default.Children.only(this.props.children)}}]),t}(l.default.Component);f.propTypes={userManager:u.default.object.isRequired,store:u.default.object.isRequired},t.default=f},function(e,t,n){"use strict";function r(e){l=e}function i(){return l}function o(e){return e&&!e.expired?l.dispatch((0,u.userFound)(e)):(!e||e&&e.expired)&&l.dispatch((0,u.userExpired)()),e}function a(e){console.error("redux-oidc: Error in loadUser() function: "+e.message),l.dispatch((0,u.loadUserError)())}function s(e,t){if(!e||!e.dispatch)throw new Error("redux-oidc: You need to pass the redux store into the loadUser helper!");if(!t||!t.getUser)throw new Error("redux-oidc: You need to pass the userManager into the loadUser helper!");return l=e,e.dispatch((0,u.loadingUser)()),t.getUser().then(o).catch(a)}Object.defineProperty(t,"__esModule",{value:!0}),t.setReduxStore=r,t.getReduxStore=i,t.getUserCallback=o,t.errorCallback=a,t.default=s;var u=n(1),l=void 0},function(e,t,n){"use strict";function r(){(0,i.default)().signinSilentCallback()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2))},function(e,t,n){"use strict";function r(e){t.nextMiddleware=h=e}function i(){return h}function o(e){t.storedUser=d=e}function a(){t.storedUser=d=null}function s(e){!e||e.expired?h((0,f.userExpired)()):(t.storedUser=d=e,h((0,f.userFound)(e)))}function u(e){console.error("redux-oidc: Error loading user in oidcMiddleware: "+e.message),h((0,f.loadUserError)())}function l(e,n,r){return n.type===p.USER_EXPIRED||n.type===p.LOADING_USER||n.type===p.USER_FOUND||(t.nextMiddleware=h=e,d&&!d.expired||(e((0,f.loadingUser)()),r.getUser().then(s).catch(u))),e(n)}function c(e){if(!e||!e.getUser)throw new Error("You must provide a user manager!");return function(t){return function(t){return function(n){l(t,n,e)}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.nextMiddleware=t.storedUser=void 0,t.setNext=r,t.getNext=i,t.setStoredUser=o,t.removeStoredUser=a,t.getUserCallback=s,t.errorCallback=u,t.middlewareHandler=l,t.default=c;var f=n(1),p=n(0),d=t.storedUser=null,h=t.nextMiddleware=null},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},i=n(0),o=void 0;try{var a=n(13),s=a.fromJS,u=a.Seq,l=function e(t){return"object"!==(void 0===t?"undefined":r(t))||null===t?t:Array.isArray(t)?u(t).map(e).toList():u(t).map(e).toMap()},c=s({user:null,isLoadingUser:!1});o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments[1];switch(t.type){case i.USER_EXPIRED:case i.SILENT_RENEW_ERROR:case i.SESSION_TERMINATED:case i.USER_SIGNED_OUT:return s({user:null,isLoadingUser:!1});case i.USER_FOUND:return l({user:t.payload,isLoadingUser:!1});case i.LOADING_USER:return e.set("isLoadingUser",!0);default:return e}}}catch(e){o=function(){console.error("You must install immutable-js for the immutable reducer to work!")}}t.default=o},function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.USER_EXPIRED:case o.SILENT_RENEW_ERROR:case o.SESSION_TERMINATED:case o.USER_SIGNED_OUT:return Object.assign({},i({},e),{user:null,isLoadingUser:!1});case o.USER_FOUND:return Object.assign({},i({},e),{user:t.payload,isLoadingUser:!1});case o.LOADING_USER:return Object.assign({},i({},e),{isLoadingUser:!0});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=r;var o=n(0),a={user:null,isLoadingUser:!1}},function(e,t){e.exports=n(73499)},function(e,t){e.exports=n(66958)},function(e,t,n){e.exports=n(5)}]))},73499:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Collection:()=>T,Iterable:()=>Or,List:()=>ln,Map:()=>Dt,OrderedMap:()=>En,OrderedSet:()=>cr,PairSorting:()=>gr,Range:()=>Gn,Record:()=>vr,Repeat:()=>Er,Seq:()=>Q,Set:()=>zn,Stack:()=>An,default:()=>Ar,fromJS:()=>xr,get:()=>ut,getIn:()=>Yn,has:()=>st,hasIn:()=>Jn,hash:()=>ye,is:()=>de,isAssociative:()=>x,isCollection:()=>b,isImmutable:()=>M,isIndexed:()=>E,isKeyed:()=>_,isList:()=>un,isMap:()=>ce,isOrdered:()=>F,isOrderedMap:()=>fe,isOrderedSet:()=>Rn,isPlainObject:()=>it,isRecord:()=>j,isSeq:()=>P,isSet:()=>Fn,isStack:()=>On,isValueObject:()=>pe,merge:()=>xt,mergeDeep:()=>kt,mergeDeepWith:()=>Ct,mergeWith:()=>Tt,remove:()=>ct,removeIn:()=>vt,set:()=>ft,setIn:()=>ht,update:()=>mt,updateIn:()=>pt,version:()=>Cr});var r="delete",i=5,o=1<<i,a=o-1,s={};function u(e){e&&(e.value=!0)}function l(){}function c(e){return void 0===e.size&&(e.size=e.__iterate(p)),e.size}function f(e,t){if("number"!==typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?c(e)+t:t}function p(){return!0}function d(e,t,n){return(0===e&&!y(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function h(e,t){return v(e,t,0)}function g(e,t){return v(e,t,t)}function v(e,t,n){return void 0===e?n:y(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function y(e){return e<0||0===e&&1/e===-1/0}var m="@@__IMMUTABLE_ITERABLE__@@";function b(e){return Boolean(e&&e[m])}var w="@@__IMMUTABLE_KEYED__@@";function _(e){return Boolean(e&&e[w])}var S="@@__IMMUTABLE_INDEXED__@@";function E(e){return Boolean(e&&e[S])}function x(e){return _(e)||E(e)}var T=function(e){return b(e)?e:Q(e)},k=function(e){function t(e){return _(e)?e:Z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T),C=function(e){function t(e){return E(e)?e:X(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T),O=function(e){function t(e){return b(e)&&!x(e)?e:ee(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(T);T.Keyed=k,T.Indexed=C,T.Set=O;var A="@@__IMMUTABLE_SEQ__@@";function P(e){return Boolean(e&&e[A])}var I="@@__IMMUTABLE_RECORD__@@";function j(e){return Boolean(e&&e[I])}function M(e){return b(e)||j(e)}var N="@@__IMMUTABLE_ORDERED__@@";function F(e){return Boolean(e&&e[N])}var R=0,L=1,D=2,U="function"===typeof Symbol&&Symbol.iterator,z="@@iterator",B=U||z,H=function(e){this.next=e};function V(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function q(){return{value:void 0,done:!0}}function W(e){return!!Array.isArray(e)||!!Y(e)}function K(e){return e&&"function"===typeof e.next}function G(e){var t=Y(e);return t&&t.call(e)}function Y(e){var t=e&&(U&&e[U]||e[z]);if("function"===typeof t)return t}H.prototype.toString=function(){return"[Iterator]"},H.KEYS=R,H.VALUES=L,H.ENTRIES=D,H.prototype.inspect=H.prototype.toSource=function(){return this.toString()},H.prototype[B]=function(){return this};var $=Object.prototype.hasOwnProperty;function J(e){return!(!Array.isArray(e)&&"string"!==typeof e)||e&&"object"===typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var Q=function(e){function t(e){return void 0===e||null===e?oe():M(e)?e.toSeq():function(e){var t=ue(e);if(t)return function(e){var t=Y(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=Y(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"===typeof e)return new ne(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new H((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return V(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(T),Z=function(e){function t(e){return void 0===e||null===e?oe().toKeyedSeq():b(e)?_(e)?e.toSeq():e.fromEntrySeq():j(e)?e.toSeq():ae(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Q),X=function(e){function t(e){return void 0===e||null===e?oe():b(e)?_(e)?e.entrySeq():e.toIndexedSeq():j(e)?e.toSeq().entrySeq():se(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Q),ee=function(e){function t(e){return(b(e)&&!x(e)?e:X(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Q);Q.isSeq=P,Q.Keyed=Z,Q.Set=ee,Q.Indexed=X,Q.prototype[A]=!0;var te=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[f(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new H((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return V(e,o,n[o])}))},t}(X),ne=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return $.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new H((function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return V(e,a,n[a])}))},t}(Z);ne.prototype[N]=!0;var re,ie=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=G(this._collection),r=0;if(K(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=G(this._collection);if(!K(n))return new H(q);var r=0;return new H((function(){var t=n.next();return t.done?t:V(e,r++,t.value)}))},t}(X);function oe(){return re||(re=new te([]))}function ae(e){var t=ue(e);if(t)return t.fromEntrySeq();if("object"===typeof e)return new ne(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function se(e){var t=ue(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ue(e){return J(e)?new te(e):W(e)?new ie(e):void 0}var le="@@__IMMUTABLE_MAP__@@";function ce(e){return Boolean(e&&e[le])}function fe(e){return ce(e)&&F(e)}function pe(e){return Boolean(e&&"function"===typeof e.equals&&"function"===typeof e.hashCode)}function de(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(pe(e)&&pe(t)&&e.equals(t))}var he="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ge(e){return e>>>1&1073741824|3221225471&e}var ve=Object.prototype.valueOf;function ye(e){if(null==e)return me(e);if("function"===typeof e.hashCode)return ge(e.hashCode(e));var t,n=(t=e).valueOf!==ve&&"function"===typeof t.valueOf?t.valueOf(t):t;if(null==n)return me(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!==e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return ge(t)}(n);case"string":return n.length>Oe?function(e){var t=Ie[e];void 0===t&&(t=be(e),Pe===Ae&&(Pe=0,Ie={}),Pe++,Ie[e]=t);return t}(n):be(n);case"object":case"function":return function(e){var t;if(xe&&void 0!==(t=Ee.get(e)))return t;if(t=e[Ce],void 0!==t)return t;if(!_e){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ce]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=Se(),xe)Ee.set(e,t);else{if(void 0!==we&&!1===we(e))throw new Error("Non-extensible objects are not allowed as keys.");if(_e)Object.defineProperty(e,Ce,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ce]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ce]=t}}return t}(n);case"symbol":return function(e){var t=Te[e];if(void 0!==t)return t;return t=Se(),Te[e]=t,t}(n);default:if("function"===typeof n.toString)return be(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function me(e){return null===e?1108378658:1108378659}function be(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ge(t)}var we=Object.isExtensible,_e=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Se(){var e=++ke;return 1073741824&ke&&(ke=0),e}var Ee,xe="function"===typeof WeakMap;xe&&(Ee=new WeakMap);var Te=Object.create(null),ke=0,Ce="__immutablehash__";"function"===typeof Symbol&&(Ce=Symbol(Ce));var Oe=16,Ae=255,Pe=0,Ie={},je=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=De(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Le(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Z);je.prototype[N]=!0;var Me=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&c(this),this._iter.__iterate((function(i){return e(i,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(L,t),i=0;return t&&c(this),new H((function(){var o=r.next();return o.done?o:V(e,t?n.size-++i:i++,o.value,o)}))},t}(X),Ne=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new H((function(){var t=n.next();return t.done?t:V(e,t.value,t.value,t)}))},t}(ee),Fe=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ye(t);var r=b(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new H((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ye(r);var i=b(r);return V(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},t}(Z);function Re(e){var t=Je(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Qe,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===D){var r=e.__iterator(t,n);return new H((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?R:L,n)},t}function Le(e,t,n){var r=Je(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,s);return o===s?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(D,i);return new H((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return V(r,s,t.call(n,a[1],s,e),i)}))},r}function De(e,t){var n=this,r=Je(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Re(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Qe,r.__iterate=function(n,r){var i=this,o=0;return r&&c(e),e.__iterate((function(e,a){return n(e,t?a:r?i.size-++o:o++,i)}),!r)},r.__iterator=function(r,i){var o=0;i&&c(e);var a=e.__iterator(D,!i);return new H((function(){var e=a.next();if(e.done)return e;var s=e.value;return V(r,t?s[0]:i?n.size-++o:o++,s[1],e)}))},r}function Ue(e,t,n,r){var i=Je(e);return r&&(i.has=function(r){var i=e.get(r,s);return i!==s&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,s);return o!==s&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(D,o),s=0;return new H((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return V(i,r?l:s++,c,o)}}))},i}function ze(e,t,n,r){var i=e.size;if(d(t,n,i))return e;var o=h(t,i),a=g(n,i);if(o!==o||a!==a)return ze(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var l=Je(e);return l.size=0===s?s:e.size&&s||void 0,!r&&P(e)&&s>=0&&(l.get=function(t,n){return(t=f(this,t))>=0&&t<s?e.get(t+o,n):n}),l.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,l=0;return e.__iterate((function(e,n){if(!u||!(u=a++<o))return l++,!1!==t(e,r?n:l-1,i)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new H(q);var i=e.__iterator(t,n),a=0,u=0;return new H((function(){for(;a++<o;)i.next();if(++u>s)return{value:void 0,done:!0};var e=i.next();return r||t===L||e.done?e:V(t,u-1,t===R?void 0:e.value[1],e)}))},l}function Be(e,t,n,r){var i=Je(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate((function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(D,o),u=!0,l=0;return new H((function(){var e,o,c;do{if((e=s.next()).done)return r||i===L?e:V(i,l++,i===R?void 0:e.value[1],e);var f=e.value;o=f[0],c=f[1],u&&(u=t.call(n,c,o,a))}while(u);return i===D?e:V(i,o,c,e)}))},i}function He(e,t,n){var r=Je(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(u,l){u.__iterate((function(o,u){return(!t||l<t)&&b(o)?e(o,l+1):(a++,!1===i(o,n?u:a-1,r)&&(s=!0)),!s}),o)}(e,0),a},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),a=[],s=0;return new H((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(r===D&&(u=u[1]),t&&!(a.length<t)||!b(u))return n?e:V(r,s++,u,e);a.push(o),o=u.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}}))},r}function Ve(e,t,n){t||(t=Ze);var r=_(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).valueSeq().toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?Z(o):E(e)?X(o):ee(o)}function qe(e,t,n){if(t||(t=Ze),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return We(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return We(t,e,n)?n:e}))}function We(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function Ke(e,t,n,r){var i=Je(e),o=new te(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=T(e),G(i?e.reverse():e)})),a=0,s=!1;return new H((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:V(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function Ge(e,t){return e===t?e:P(e)?t:e.constructor(t)}function Ye(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function $e(e){return _(e)?k:E(e)?C:O}function Je(e){return Object.create((_(e)?Z:E(e)?X:ee).prototype)}function Qe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Q.prototype.cacheResult.call(this)}function Ze(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Xe(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function et(e,t){if(!e)throw new Error(t)}function tt(e){et(e!==1/0,"Cannot perform this action with an infinite size.")}function nt(e){if(J(e)&&"string"!==typeof e)return e;if(F(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Me.prototype.cacheResult=je.prototype.cacheResult=Ne.prototype.cacheResult=Fe.prototype.cacheResult=Qe;var rt=Object.prototype.toString;function it(e){if(!e||"object"!==typeof e||"[object Object]"!==rt.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function ot(e){return"object"===typeof e&&(M(e)||Array.isArray(e)||it(e))}function at(e){try{return"string"===typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function st(e,t){return M(e)?e.has(t):ot(e)&&$.call(e,t)}function ut(e,t,n){return M(e)?e.get(t,n):st(e,t)?"function"===typeof e.get?e.get(t):e[t]:n}function lt(e){if(Array.isArray(e))return Xe(e);var t={};for(var n in e)$.call(e,n)&&(t[n]=e[n]);return t}function ct(e,t){if(!ot(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(M(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!$.call(e,t))return e;var n=lt(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function ft(e,t,n){if(!ot(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(M(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if($.call(e,t)&&n===e[t])return e;var r=lt(e);return r[t]=n,r}function pt(e,t,n,r){r||(r=n,n=void 0);var i=dt(M(e),e,nt(t),0,n,r);return i===s?n:i}function dt(e,t,n,r,i,o){var a=t===s;if(r===n.length){var u=a?i:t,l=o(u);return l===u?t:l}if(!a&&!ot(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(at)+"]: "+t);var c=n[r],f=a?s:ut(t,c,s),p=dt(f===s?e:M(f),f,n,r+1,i,o);return p===f?t:p===s?ct(t,c):ft(a?e?Jt():{}:t,c,p)}function ht(e,t,n){return pt(e,t,s,(function(){return n}))}function gt(e,t){return ht(this,e,t)}function vt(e,t){return pt(e,t,(function(){return s}))}function yt(e){return vt(this,e)}function mt(e,t,n,r){return pt(e,[t],n,r)}function bt(e,t,n){return 1===arguments.length?e(this):mt(this,e,t,n)}function wt(e,t,n){return pt(this,e,t,n)}function _t(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Et(this,e)}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!==typeof e)throw new TypeError("Invalid merger function: "+e);return Et(this,t,e)}function Et(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=k(t[i]);0!==o.size&&r.push(o)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){mt(e,r,s,(function(e){return e===s?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})):e.constructor(r[0])}function xt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return At(e,t)}function Tt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return At(t,n,e)}function kt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ot(e,t)}function Ct(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Ot(t,n,e)}function Ot(e,t,n){return At(e,t,function(e){function t(n,r,i){return ot(n)&&ot(r)&&function(e,t){var n=Q(e),r=Q(t);return E(n)===E(r)&&_(n)===_(r)}(n,r)?At(n,[r],t):e?e(n,r,i):r}return t}(n))}function At(e,t,n){if(!ot(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(M(e))return"function"===typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?C:k,a=r?function(t){i===e&&(i=lt(i)),i.push(t)}:function(t,r){var o=$.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=lt(i)),i[r]=a)},s=0;s<t.length;s++)o(t[s]).forEach(a);return i}function Pt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ot(this,e)}function It(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ot(this,t,e)}function jt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return pt(this,e,Jt(),(function(e){return At(e,t)}))}function Mt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return pt(this,e,Jt(),(function(e){return Ot(e,t)}))}function Nt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Ft(){return this.__ownerID?this:this.__ensureOwner(new l)}function Rt(){return this.__ensureOwner()}function Lt(){return this.__altered}var Dt=function(e){function t(t){return void 0===t||null===t?Jt():ce(t)&&!F(t)?t:Jt().withMutations((function(n){var r=e(t);tt(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Jt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Qt(this,e,t)},t.prototype.remove=function(e){return Qt(this,e,s)},t.prototype.deleteAll=function(e){var t=T(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Jt()},t.prototype.sort=function(e){return En(Ve(this,e))},t.prototype.sortBy=function(e,t){return En(Ve(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(i,o){r.set(o,e.call(t,i,o,n))}))}))},t.prototype.__iterator=function(e,t){return new Kt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?$t(this.size,this._root,e,this.__hash):0===this.size?Jt():(this.__ownerID=e,this.__altered=!1,this)},t}(k);Dt.isMap=ce;var Ut=Dt.prototype;Ut[le]=!0,Ut[r]=Ut.remove,Ut.removeAll=Ut.deleteAll,Ut.setIn=gt,Ut.removeIn=Ut.deleteIn=yt,Ut.update=bt,Ut.updateIn=wt,Ut.merge=Ut.concat=_t,Ut.mergeWith=St,Ut.mergeDeep=Pt,Ut.mergeDeepWith=It,Ut.mergeIn=jt,Ut.mergeDeepIn=Mt,Ut.withMutations=Nt,Ut.wasAltered=Lt,Ut.asImmutable=Rt,Ut["@@transducer/init"]=Ut.asMutable=Ft,Ut["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Ut["@@transducer/result"]=function(e){return e.asImmutable()};var zt=function(e,t){this.ownerID=e,this.entries=t};zt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(de(n,i[o][0]))return i[o][1];return r},zt.prototype.update=function(e,t,n,r,i,o,a){for(var c=i===s,f=this.entries,p=0,d=f.length;p<d&&!de(r,f[p][0]);p++);var h=p<d;if(h?f[p][1]===i:c)return this;if(u(a),(c||!h)&&u(o),!c||1!==f.length){if(!h&&!c&&f.length>=rn)return function(e,t,n,r){e||(e=new l);for(var i=new qt(e,ye(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,f,r,i);var g=e&&e===this.ownerID,v=g?f:Xe(f);return h?c?p===d-1?v.pop():v[p]=v.pop():v[p]=[r,i]:v.push([r,i]),g?(this.entries=v,this):new zt(e,v)}};var Bt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Bt.prototype.get=function(e,t,n,r){void 0===t&&(t=ye(n));var o=1<<((0===e?t:t>>>e)&a),s=this.bitmap;return 0===(s&o)?r:this.nodes[tn(s&o-1)].get(e+i,t,n,r)},Bt.prototype.update=function(e,t,n,r,u,l,c){void 0===n&&(n=ye(r));var f=(0===t?n:n>>>t)&a,p=1<<f,d=this.bitmap,h=0!==(d&p);if(!h&&u===s)return this;var g=tn(d&p-1),v=this.nodes,y=h?v[g]:void 0,m=Zt(y,e,t+i,n,r,u,l,c);if(m===y)return this;if(!h&&m&&v.length>=on)return function(e,t,n,r,i){for(var a=0,s=new Array(o),u=0;0!==n;u++,n>>>=1)s[u]=1&n?t[a++]:void 0;return s[r]=i,new Ht(e,a+1,s)}(e,v,d,f,m);if(h&&!m&&2===v.length&&Xt(v[1^g]))return v[1^g];if(h&&m&&1===v.length&&Xt(m))return m;var b=e&&e===this.ownerID,w=h?m?d:d^p:d|p,_=h?m?nn(v,g,m,b):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(v,g,b):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(v,g,m,b);return b?(this.bitmap=w,this.nodes=_,this):new Bt(e,w,_)};var Ht=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Ht.prototype.get=function(e,t,n,r){void 0===t&&(t=ye(n));var o=(0===e?t:t>>>e)&a,s=this.nodes[o];return s?s.get(e+i,t,n,r):r},Ht.prototype.update=function(e,t,n,r,o,u,l){void 0===n&&(n=ye(r));var c=(0===t?n:n>>>t)&a,f=o===s,p=this.nodes,d=p[c];if(f&&!d)return this;var h=Zt(d,e,t+i,n,r,o,u,l);if(h===d)return this;var g=this.count;if(d){if(!h&&--g<an)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=u,a[o++]=c)}return new Bt(e,i,a)}(e,p,g,c)}else g++;var v=e&&e===this.ownerID,y=nn(p,c,h,v);return v?(this.count=g,this.nodes=y,this):new Ht(e,g,y)};var Vt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Vt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(de(n,i[o][0]))return i[o][1];return r},Vt.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ye(r));var l=i===s;if(n!==this.keyHash)return l?this:(u(a),u(o),en(this,e,t,n,[r,i]));for(var c=this.entries,f=0,p=c.length;f<p&&!de(r,c[f][0]);f++);var d=f<p;if(d?c[f][1]===i:l)return this;if(u(a),(l||!d)&&u(o),l&&2===p)return new qt(e,this.keyHash,c[1^f]);var h=e&&e===this.ownerID,g=h?c:Xe(c);return d?l?f===p-1?g.pop():g[f]=g.pop():g[f]=[r,i]:g.push([r,i]),h?(this.entries=g,this):new Vt(e,this.keyHash,g)};var qt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};qt.prototype.get=function(e,t,n,r){return de(n,this.entry[0])?this.entry[1]:r},qt.prototype.update=function(e,t,n,r,i,o,a){var l=i===s,c=de(r,this.entry[0]);return(c?i===this.entry[1]:l)?this:(u(a),l?void u(o):c?e&&e===this.ownerID?(this.entry[1]=i,this):new qt(e,this.keyHash,[r,i]):(u(o),en(this,e,t,ye(r),[r,i])))},zt.prototype.iterate=Vt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Bt.prototype.iterate=Ht.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},qt.prototype.iterate=function(e,t){return e(this.entry)};var Wt,Kt=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Yt(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return Gt(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return Gt(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return Gt(e,o.entry);t=this._stack=Yt(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(H);function Gt(e,t){return V(e,t[0],t[1])}function Yt(e,t){return{node:e,index:0,__prev:t}}function $t(e,t,n,r){var i=Object.create(Ut);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Jt(){return Wt||(Wt=$t(0))}function Qt(e,t,n){var r,i;if(e._root){var o={value:!1},a={value:!1};if(r=Zt(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===s?-1:1:0)}else{if(n===s)return e;i=1,r=new zt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?$t(i,r):Jt()}function Zt(e,t,n,r,i,o,a,l){return e?e.update(t,n,r,i,o,a,l):o===s?e:(u(l),u(a),new qt(t,r,[i,o]))}function Xt(e){return e.constructor===qt||e.constructor===Vt}function en(e,t,n,r,o){if(e.keyHash===r)return new Vt(t,r,[e.entry,o]);var s,u=(0===n?e.keyHash:e.keyHash>>>n)&a,l=(0===n?r:r>>>n)&a,c=u===l?[en(e,t,n+i,r,o)]:(s=new qt(t,r,o),u<l?[e,s]:[s,e]);return new Bt(t,1<<u|1<<l,c)}function tn(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function nn(e,t,n,r){var i=r?e:Xe(e);return i[t]=n,i}var rn=o/4,on=o/2,an=o/4,sn="@@__IMMUTABLE_LIST__@@";function un(e){return Boolean(e&&e[sn])}var ln=function(e){function t(t){var n=vn();if(void 0===t||null===t)return n;if(un(t))return t;var r=e(t),a=r.size;return 0===a?n:(tt(a),a>0&&a<o?gn(0,a,i,null,new fn(r.toArray())):n.withMutations((function(e){e.setSize(a),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=f(this,e))>=0&&e<this.size){var n=bn(this,e+=this._origin);return n&&n.array[e&a]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=f(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?wn(e,t).set(0,n):wn(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};t>=_n(e._capacity)?r=yn(r,e.__ownerID,0,t,n,o):i=yn(i,e.__ownerID,e._level,t,n,o);if(!o.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return gn(e._origin,e._capacity,e._level,i,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=i,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):vn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){wn(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return wn(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){wn(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return wn(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!==typeof i&&W(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return wn(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))}))},t.prototype.slice=function(e,t){var n=this.size;return d(e,t,n)?this:wn(this,h(e,n),g(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=hn(this,t);return new H((function(){var i=r();return i===dn?{value:void 0,done:!0}:V(e,t?--n:n++,i)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=hn(this,t);(n=i())!==dn&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?gn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?vn():(this.__ownerID=e,this.__altered=!1,this)},t}(C);ln.isList=un;var cn=ln.prototype;cn[sn]=!0,cn[r]=cn.remove,cn.merge=cn.concat,cn.setIn=gt,cn.deleteIn=cn.removeIn=yt,cn.update=bt,cn.updateIn=wt,cn.mergeIn=jt,cn.mergeDeepIn=Mt,cn.withMutations=Nt,cn.wasAltered=Lt,cn.asImmutable=Rt,cn["@@transducer/init"]=cn.asMutable=Ft,cn["@@transducer/step"]=function(e,t){return e.push(t)},cn["@@transducer/result"]=function(e){return e.asImmutable()};var fn=function(e,t){this.array=e,this.ownerID=t};fn.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&a;if(r>=this.array.length)return new fn([],e);var o,s=0===r;if(t>0){var u=this.array[r];if((o=u&&u.removeBefore(e,t-i,n))===u&&s)return this}if(s&&!o)return this;var l=mn(this,e);if(!s)for(var c=0;c<r;c++)l.array[c]=void 0;return o&&(l.array[r]=o),l},fn.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&a;if(o>=this.array.length)return this;if(t>0){var s=this.array[o];if((r=s&&s.removeAfter(e,t-i,n))===s&&o===this.array.length-1)return this}var u=mn(this,e);return u.array.splice(o+1),r&&(u.array[o]=r),u};var pn,dn={};function hn(e,t){var n=e._origin,r=e._capacity,a=_n(r),s=e._tail;return u(e._root,e._level,0);function u(e,l,c){return 0===l?function(e,i){var u=i===a?s&&s.array:e&&e.array,l=i>n?0:n-i,c=r-i;c>o&&(c=o);return function(){if(l===c)return dn;var e=t?--c:l++;return u&&u[e]}}(e,c):function(e,a,s){var l,c=e&&e.array,f=s>n?0:n-s>>a,p=1+(r-s>>a);p>o&&(p=o);return function(){for(;;){if(l){var e=l();if(e!==dn)return e;l=null}if(f===p)return dn;var n=t?--p:f++;l=u(c&&c[n],a-i,s+(n<<a))}}}(e,l,c)}}function gn(e,t,n,r,i,o,a){var s=Object.create(cn);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function vn(){return pn||(pn=gn(0,0,i))}function yn(e,t,n,r,o,s){var l,c=r>>>n&a,f=e&&c<e.array.length;if(!f&&void 0===o)return e;if(n>0){var p=e&&e.array[c],d=yn(p,t,n-i,r,o,s);return d===p?e:((l=mn(e,t)).array[c]=d,l)}return f&&e.array[c]===o?e:(s&&u(s),l=mn(e,t),void 0===o&&c===l.array.length-1?l.array.pop():l.array[c]=o,l)}function mn(e,t){return t&&e&&t===e.ownerID?e:new fn(e?e.array.slice():[],t)}function bn(e,t){if(t>=_n(e._capacity))return e._tail;if(t<1<<e._level+i){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&a],r-=i;return n}}function wn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new l,o=e._origin,s=e._capacity,u=o+t,c=void 0===n?s:n<0?s+n:o+n;if(u===o&&c===s)return e;if(u>=c)return e.clear();for(var f=e._level,p=e._root,d=0;u+d<0;)p=new fn(p&&p.array.length?[void 0,p]:[],r),d+=1<<(f+=i);d&&(u+=d,o+=d,c+=d,s+=d);for(var h=_n(s),g=_n(c);g>=1<<f+i;)p=new fn(p&&p.array.length?[p]:[],r),f+=i;var v=e._tail,y=g<h?bn(e,c-1):g>h?new fn([],r):v;if(v&&g>h&&u<s&&v.array.length){for(var m=p=mn(p,r),b=f;b>i;b-=i){var w=h>>>b&a;m=m.array[w]=mn(m.array[w],r)}m.array[h>>>i&a]=v}if(c<s&&(y=y&&y.removeAfter(r,0,c)),u>=g)u-=g,c-=g,f=i,p=null,y=y&&y.removeBefore(r,0,u);else if(u>o||g<h){for(d=0;p;){var _=u>>>f&a;if(_!==g>>>f&a)break;_&&(d+=(1<<f)*_),f-=i,p=p.array[_]}p&&u>o&&(p=p.removeBefore(r,f,u-d)),p&&g<h&&(p=p.removeAfter(r,f,g-d)),d&&(u-=d,c-=d)}return e.__ownerID?(e.size=c-u,e._origin=u,e._capacity=c,e._level=f,e._root=p,e._tail=y,e.__hash=void 0,e.__altered=!0,e):gn(u,c,f,p,y)}function _n(e){return e<o?0:e-1>>>i<<i}var Sn,En=function(e){function t(e){return void 0===e||null===e?Tn():fe(e)?e:Tn().withMutations((function(t){var n=k(e);tt(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Tn()},t.prototype.set=function(e,t){return kn(this,e,t)},t.prototype.remove=function(e){return kn(this,e,s)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?xn(t,n,e,this.__hash):0===this.size?Tn():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Dt);function xn(e,t,n,r){var i=Object.create(En.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Tn(){return Sn||(Sn=xn(Jt(),vn()))}function kn(e,t,n){var r,i,a=e._map,u=e._list,l=a.get(t),c=void 0!==l;if(n===s){if(!c)return e;u.size>=o&&u.size>=2*a.size?(r=(i=u.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=a.remove(t),i=l===u.size-1?u.pop():u.set(l,void 0))}else if(c){if(n===u.get(l)[1])return e;r=a,i=u.set(l,[t,n])}else r=a.set(t,u.size),i=u.set(u.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):xn(r,i)}En.isOrderedMap=fe,En.prototype[N]=!0,En.prototype[r]=En.prototype.remove;var Cn="@@__IMMUTABLE_STACK__@@";function On(e){return Boolean(e&&e[Cn])}var An=function(e){function t(e){return void 0===e||null===e?Mn():On(e)?e:Mn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=f(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):jn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&On(t))return t;tt(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):jn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Mn()},t.prototype.slice=function(t,n){if(d(t,n,this.size))return this;var r=h(t,this.size);if(g(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):jn(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?jn(this.size,this._head,e,this.__hash):0===this.size?Mn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new te(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new te(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new H((function(){if(r){var t=r.value;return r=r.next,V(e,n++,t)}return{value:void 0,done:!0}}))},t}(C);An.isStack=On;var Pn,In=An.prototype;function jn(e,t,n,r){var i=Object.create(In);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Mn(){return Pn||(Pn=jn(0))}In[Cn]=!0,In.shift=In.pop,In.unshift=In.push,In.unshiftAll=In.pushAll,In.withMutations=Nt,In.wasAltered=Lt,In.asImmutable=Rt,In["@@transducer/init"]=In.asMutable=Ft,In["@@transducer/step"]=function(e,t){return e.unshift(t)},In["@@transducer/result"]=function(e){return e.asImmutable()};var Nn="@@__IMMUTABLE_SET__@@";function Fn(e){return Boolean(e&&e[Nn])}function Rn(e){return Fn(e)&&F(e)}function Ln(e,t){if(e===t)return!0;if(!b(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||_(e)!==_(t)||E(e)!==E(t)||F(e)!==F(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!x(e);if(F(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&de(i[1],e)&&(n||de(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var a=!0,u=t.__iterate((function(t,r){if(n?!e.has(t):i?!de(t,e.get(r,s)):!de(e.get(r,s),t))return a=!1,!1}));return a&&e.size===u}function Dn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Un(e){if(!e||"object"!==typeof e)return e;if(!b(e)){if(!ot(e))return e;e=Q(e)}if(_(e)){var t={};return e.__iterate((function(e,n){t[n]=Un(e)})),t}var n=[];return e.__iterate((function(e){n.push(Un(e))})),n}var zn=function(e){function t(t){return void 0===t||null===t?Wn():Fn(t)&&!F(t)?t:Wn().withMutations((function(n){var r=e(t);tt(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(k(e).keySeq())},t.intersect=function(e){return(e=T(e).toArray()).length?Hn.intersect.apply(t(e.pop()),e):Wn()},t.union=function(e){return(e=T(e).toArray()).length?Hn.union.apply(t(e.pop()),e):Wn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Vn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Vn(this,this._map.remove(e))},t.prototype.clear=function(){return Vn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=Vn(this,this._map.mapEntries((function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]}),t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"===typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return cr(Ve(this,e))},t.prototype.sortBy=function(e,t){return cr(Ve(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(O);zn.isSet=Fn;var Bn,Hn=zn.prototype;function Vn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function qn(e,t){var n=Object.create(Hn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Wn(){return Bn||(Bn=qn(Jt()))}Hn[Nn]=!0,Hn[r]=Hn.remove,Hn.merge=Hn.concat=Hn.union,Hn.withMutations=Nt,Hn.asImmutable=Rt,Hn["@@transducer/init"]=Hn.asMutable=Ft,Hn["@@transducer/step"]=function(e,t){return e.add(t)},Hn["@@transducer/result"]=function(e){return e.asImmutable()},Hn.__empty=Wn,Hn.__make=qn;var Kn,Gn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(et(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Kn)return Kn;Kn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+f(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return d(e,n,this.size)?this:(e=h(e,this.size),(n=g(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new H((function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,V(e,t?n-++o:o++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Ln(this,e)},t}(X);function Yn(e,t,n){for(var r=nt(t),i=0;i!==r.length;)if((e=ut(e,r[i++],s))===s)return n;return e}function $n(e,t){return Yn(this,e,t)}function Jn(e,t){return Yn(e,t,s)!==s}function Qn(){tt(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}T.isIterable=b,T.isKeyed=_,T.isIndexed=E,T.isAssociative=x,T.isOrdered=F,T.Iterator=H,Dn(T,{toArray:function(){tt(this.size);var e=new Array(this.size||0),t=_(this),n=0;return this.__iterate((function(r,i){e[n++]=t?[i,r]:r})),e},toIndexedSeq:function(){return new Me(this)},toJS:function(){return Un(this)},toKeyedSeq:function(){return new je(this,!0)},toMap:function(){return Dt(this.toKeyedSeq())},toObject:Qn,toOrderedMap:function(){return En(this.toKeyedSeq())},toOrderedSet:function(){return cr(_(this)?this.valueSeq():this)},toSet:function(){return zn(_(this)?this.valueSeq():this)},toSetSeq:function(){return new Ne(this)},toSeq:function(){return E(this)?this.toIndexedSeq():_(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return An(_(this)?this.valueSeq():this)},toList:function(){return ln(_(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ge(this,function(e,t){var n=_(e),r=[e].concat(t).map((function(e){return b(e)?n&&(e=k(e)):e=n?ae(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&_(i)||E(e)&&E(i))return i}var o=new te(r);return n?o=o.toKeyedSeq():E(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),o}(this,e))},includes:function(e){return this.some((function(t){return de(t,e)}))},entries:function(){return this.__iterator(D)},every:function(e,t){tt(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return Ge(this,Ue(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=_(e),i=[[],[]];e.__iterate((function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)}));var o=$e(e);return i.map((function(t){return Ge(e,o(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return tt(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){tt(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""})),t},keys:function(){return this.__iterator(R)},map:function(e,t){return Ge(this,Le(this,e,t))},reduce:function(e,t,n){return nr(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return nr(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Ge(this,De(this,!0))},slice:function(e,t){return Ge(this,ze(this,e,t,!0))},some:function(e,t){tt(this.size);var n=!1;return this.__iterate((function(r,i,o){if(e.call(t,r,i,o))return n=!0,!1})),n},sort:function(e){return Ge(this,Ve(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return c(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Dt().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Ln(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ir).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(or(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(p,null,e)},flatMap:function(e,t){return Ge(this,function(e,t,n){var r=$e(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Ge(this,He(this,e,!0))},fromEntrySeq:function(){return new Fe(this)},get:function(e,t){return this.find((function(t,n){return de(n,e)}),void 0,t)},getIn:$n,groupBy:function(e,t){return function(e,t,n){var r=_(e),i=(F(e)?En():Dt()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=$e(e);return i.map((function(t){return Ge(e,o(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,s)!==s},hasIn:function(e){return Jn(this,e)},isSubset:function(e){return e="function"===typeof e.includes?e:T(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:T(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return de(t,e)}))},keySeq:function(){return this.toSeq().map(rr).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return qe(this,e)},maxBy:function(e,t){return qe(this,t,e)},min:function(e){return qe(this,e?ar(e):ur)},minBy:function(e,t){return qe(this,t?ar(t):ur,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Ge(this,Be(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(or(e),t)},sortBy:function(e,t){return Ge(this,Ve(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Ge(this,function(e,t,n){var r=Je(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(D,i),s=!0;return new H((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===D?e:V(r,u,l,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(or(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=F(e),n=_(e),r=t?1:0;return function(e,t){return t=he(t,3432918353),t=he(t<<15|t>>>-15,461845907),t=he(t<<13|t>>>-13,5),t=t+3864292196^e,t=he(t^t>>>16,2246822507),t=he(t^t>>>13,3266489909),t=ge(t^t>>>16),t}(e.__iterate(n?t?function(e,t){r=31*r+lr(ye(e),ye(t))|0}:function(e,t){r=r+lr(ye(e),ye(t))|0}:t?function(e){r=31*r+ye(e)|0}:function(e){r=r+ye(e)|0}),r)}(this))}});var Zn=T.prototype;Zn[m]=!0,Zn[B]=Zn.values,Zn.toJSON=Zn.toArray,Zn.__toStringMapper=at,Zn.inspect=Zn.toSource=function(){return this.toString()},Zn.chain=Zn.flatMap,Zn.contains=Zn.includes,Dn(k,{flip:function(){return Ge(this,Re(this))},mapEntries:function(e,t){var n=this,r=0;return Ge(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ge(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Xn=k.prototype;Xn[w]=!0,Xn[B]=Zn.entries,Xn.toJSON=Qn,Xn.__toStringMapper=function(e,t){return at(t)+": "+at(e)},Dn(C,{toKeyedSeq:function(){return new je(this,!1)},filter:function(e,t){return Ge(this,Ue(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ge(this,De(this,!1))},slice:function(e,t){return Ge(this,ze(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=h(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ge(this,1===n?r:r.concat(Xe(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Ge(this,He(this,e,!1))},get:function(e,t){return(e=f(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=f(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Ge(this,function(e,t){var n=Je(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate((function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(L,r),a=0;return new H((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?V(n,a++,t):V(n,a++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat(Xe(arguments)),t=Ke(this.toSeq(),X.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Ge(this,n)},keySeq:function(){return Gn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Ge(this,Be(this,e,t,!1))},zip:function(){return Ge(this,Ke(this,sr,[this].concat(Xe(arguments))))},zipAll:function(){return Ge(this,Ke(this,sr,[this].concat(Xe(arguments)),!0))},zipWith:function(e){var t=Xe(arguments);return t[0]=this,Ge(this,Ke(this,e,t))}});var er=C.prototype;er[S]=!0,er[N]=!0,Dn(O,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var tr=O.prototype;function nr(e,t,n,r,i,o){return tt(e.size),e.__iterate((function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)}),o),n}function rr(e,t){return t}function ir(e,t){return[t,e]}function or(e){return function(){return!e.apply(this,arguments)}}function ar(e){return function(){return-e.apply(this,arguments)}}function sr(){return Xe(arguments)}function ur(e,t){return e<t?1:e>t?-1:0}function lr(e,t){return e^t+2654435769+(e<<6)+(e>>2)}tr.has=Zn.includes,tr.contains=tr.includes,tr.keys=tr.values,Dn(Z,Xn),Dn(X,er),Dn(ee,tr);var cr=function(e){function t(e){return void 0===e||null===e?hr():Rn(e)?e:hr().withMutations((function(t){var n=O(e);tt(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(k(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(zn);cr.isOrderedSet=Rn;var fr,pr=cr.prototype;function dr(e,t){var n=Object.create(pr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function hr(){return fr||(fr=dr(Tn()))}pr[N]=!0,pr.zip=er.zip,pr.zipWith=er.zipWith,pr.zipAll=er.zipAll,pr.__empty=hr,pr.__make=dr;var gr={LeftThenRight:-1,RightThenLeft:1};var vr=function(e,t){var n;!function(e){if(j(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(M(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!==typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),u=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var l=0;l<s.length;l++){var c=s[l];u[c]=l,i[c]?"object"===typeof console&&console.warn&&console.warn("Cannot define "+br(this)+' with property "'+c+'" since that property name is part of the Record API.'):_r(i,c)}}return this.__ownerID=void 0,this._values=ln().withMutations((function(e){e.setSize(a._keys.length),k(o).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},i=r.prototype=Object.create(yr);return i.constructor=r,t&&(r.displayName=t),r};vr.prototype.toString=function(){for(var e,t=br(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+at(this.get(e));return t+" }"},vr.prototype.equals=function(e){return this===e||j(e)&&wr(this).equals(wr(e))},vr.prototype.hashCode=function(){return wr(this).hashCode()},vr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},vr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},vr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return mr(this,n)}return this},vr.prototype.remove=function(e){return this.set(e)},vr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:mr(this,e)},vr.prototype.wasAltered=function(){return this._values.wasAltered()},vr.prototype.toSeq=function(){return wr(this)},vr.prototype.toJS=function(){return Un(this)},vr.prototype.entries=function(){return this.__iterator(D)},vr.prototype.__iterator=function(e,t){return wr(this).__iterator(e,t)},vr.prototype.__iterate=function(e,t){return wr(this).__iterate(e,t)},vr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?mr(this,t,e):(this.__ownerID=e,this._values=t,this)},vr.isRecord=j,vr.getDescriptiveName=br;var yr=vr.prototype;function mr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function br(e){return e.constructor.displayName||e.constructor.name||"Record"}function wr(e){return ae(e._keys.map((function(t){return[t,e.get(t)]})))}function _r(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){et(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(n){}}yr[I]=!0,yr[r]=yr.remove,yr.deleteIn=yr.removeIn=yt,yr.getIn=$n,yr.hasIn=Zn.hasIn,yr.merge=_t,yr.mergeWith=St,yr.mergeIn=jt,yr.mergeDeep=Pt,yr.mergeDeepWith=It,yr.mergeDeepIn=Mt,yr.setIn=gt,yr.update=bt,yr.updateIn=wt,yr.withMutations=Nt,yr.asMutable=Ft,yr.asImmutable=Rt,yr[B]=yr.entries,yr.toJSON=yr.toObject=Zn.toObject,yr.inspect=yr.toSource=function(){return this.toString()};var Sr,Er=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(Sr)return Sr;Sr=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return de(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return d(e,n,r)?this:new t(this._value,g(n,r)-h(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return de(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return de(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new H((function(){return i===r?{value:void 0,done:!0}:V(e,t?r-++i:i++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?de(this._value,e._value):Ln(this,e)},t}(X);function xr(e,t){return Tr([],t||kr,e,"",t&&t.length>2?[]:void 0,{"":e})}function Tr(e,t,n,r,i,o){if("string"!==typeof n&&!M(n)&&(J(n)||W(n)||it(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var a=t.call(o,r,Q(n).map((function(r,o){return Tr(e,t,r,o,i,n)})),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function kr(e,t){return E(t)?t.toList():_(t)?t.toMap():t.toSet()}var Cr="4.3.6",Or=T;const Ar={version:Cr,Collection:T,Iterable:T,Seq:Q,Map:Dt,OrderedMap:En,List:ln,Stack:An,Set:zn,OrderedSet:cr,PairSorting:gr,Record:vr,Range:Gn,Repeat:Er,is:de,fromJS:xr,hash:ye,isImmutable:M,isCollection:b,isKeyed:_,isIndexed:E,isAssociative:x,isOrdered:F,isValueObject:pe,isPlainObject:it,isSeq:P,isList:un,isMap:ce,isOrderedMap:fe,isStack:On,isSet:Fn,isOrderedSet:Rn,isRecord:j,get:ut,getIn:Yn,has:st,hasIn:Jn,merge:xt,mergeDeep:kt,mergeWith:Tt,mergeDeepWith:Ct,remove:ct,removeIn:vt,set:ft,setIn:ht,update:mt,updateIn:pt}},27234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<i&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],f=1,p=null,d=3,h=!1,g=!1,v=!1,y="function"===typeof setTimeout?setTimeout:null,m="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function _(e){if(v=!1,w(e),!g)if(null!==r(l))g=!0,M(S);else{var t=r(c);null!==t&&N(_,t.startTime-e)}}function S(e,n){g=!1,v&&(v=!1,m(k),k=-1),h=!0;var o=d;try{for(w(n),p=r(l);null!==p&&(!(p.expirationTime>n)||e&&!A());){var a=p.callback;if("function"===typeof a){p.callback=null,d=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?p.callback=s:p===r(l)&&i(l),w(n)}else i(l);p=r(l)}if(null!==p)var u=!0;else{var f=r(c);null!==f&&N(_,f.startTime-n),u=!1}return u}finally{p=null,d=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,x=!1,T=null,k=-1,C=5,O=-1;function A(){return!(t.unstable_now()-O<C)}function P(){if(null!==T){var e=t.unstable_now();O=e;var n=!0;try{n=T(!0,e)}finally{n?E():(x=!1,T=null)}}else x=!1}if("function"===typeof b)E=function(){b(P)};else if("undefined"!==typeof MessageChannel){var I=new MessageChannel,j=I.port2;I.port1.onmessage=P,E=function(){j.postMessage(null)}}else E=function(){y(P,0)};function M(e){T=e,x||(x=!0,E())}function N(e,n){k=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,M(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(l)&&e===r(c)&&(v?(m(k),k=-1):v=!0,N(_,o-a))):(e.sortIndex=s,n(l,e),g||h||(g=!0,M(S))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},78853:(e,t,n)=>{"use strict";e.exports=n(27234)},75438:(e,t,n)=>{"use strict";var r=n(60002),i=n(74992),o=n(12101)(),a=n(95558),s=n(54902),u=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},19269:(e,t,n)=>{"use strict";var r=n(60002),i=n(12028),o=n(68206),a=n(54902),s=r("%WeakMap%",!0),u=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),p=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return l(e,r)}else if(u){if(t)return p(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return f(e,r)}else if(u){if(t)return h(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),c(e,r,i)):u?(t||(t=new u),d(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},10617:function(e){e.exports=function(){"use strict";var e="undefined"===typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,t="undefined"===typeof window?{document:e,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,n=function(e){for(var t=this,n=0;n<e.length;n+=1)t[n]=e[n];return t.length=e.length,this};function r(r,i){var o=[],a=0;if(r&&!i&&r instanceof n)return r;if(r)if("string"===typeof r){var s,u,l=r.trim();if(l.indexOf("<")>=0&&l.indexOf(">")>=0){var c="div";for(0===l.indexOf("<li")&&(c="ul"),0===l.indexOf("<tr")&&(c="tbody"),0!==l.indexOf("<td")&&0!==l.indexOf("<th")||(c="tr"),0===l.indexOf("<tbody")&&(c="table"),0===l.indexOf("<option")&&(c="select"),(u=e.createElement(c)).innerHTML=l,a=0;a<u.childNodes.length;a+=1)o.push(u.childNodes[a])}else for(s=i||"#"!==r[0]||r.match(/[ .<>:~]/)?(i||e).querySelectorAll(r.trim()):[e.getElementById(r.trim().split("#")[1])],a=0;a<s.length;a+=1)s[a]&&o.push(s[a])}else if(r.nodeType||r===t||r===e)o.push(r);else if(r.length>0&&r[0].nodeType)for(a=0;a<r.length;a+=1)o.push(r[a]);return new n(o)}function i(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function o(e){if("undefined"===typeof e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)"undefined"!==typeof this[r]&&"undefined"!==typeof this[r].classList&&this[r].classList.add(t[n]);return this}function a(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)"undefined"!==typeof this[r]&&"undefined"!==typeof this[r].classList&&this[r].classList.remove(t[n]);return this}function s(e){return!!this[0]&&this[0].classList.contains(e)}function u(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)"undefined"!==typeof this[r]&&"undefined"!==typeof this[r].classList&&this[r].classList.toggle(t[n]);return this}function l(e,t){var n=arguments;if(1===arguments.length&&"string"===typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(2===n.length)this[r].setAttribute(e,t);else for(var i in e)this[r][i]=e[i],this[r].setAttribute(i,e[i]);return this}function c(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function f(e,t){var n;if("undefined"!==typeof t){for(var r=0;r<this.length;r+=1)(n=this[r]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var i=n.getAttribute("data-"+e);return i||void 0}}function p(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this}function d(e){"string"!==typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this}function h(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=t[0],o=t[1],a=t[2],s=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),r(t).is(o))a.apply(t,n);else for(var i=r(t).parents(),s=0;s<i.length;s+=1)r(i[s]).is(o)&&a.apply(i[s],n)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"===typeof t[1]&&(i=(e=t)[0],a=e[1],s=e[2],o=void 0),s||(s=!1);for(var c,f=i.split(" "),p=0;p<this.length;p+=1){var d=this[p];if(o)for(c=0;c<f.length;c+=1){var h=f[c];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[h]||(d.dom7LiveListeners[h]=[]),d.dom7LiveListeners[h].push({listener:a,proxyListener:u}),d.addEventListener(h,u,s)}else for(c=0;c<f.length;c+=1){var g=f[c];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[g]||(d.dom7Listeners[g]=[]),d.dom7Listeners[g].push({listener:a,proxyListener:l}),d.addEventListener(g,l,s)}}return this}function g(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];"function"===typeof t[1]&&(r=(e=t)[0],o=e[1],a=e[2],i=void 0),a||(a=!1);for(var s=r.split(" "),u=0;u<s.length;u+=1)for(var l=s[u],c=0;c<this.length;c+=1){var f=this[c],p=void 0;if(!i&&f.dom7Listeners?p=f.dom7Listeners[l]:i&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[l]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var h=p[d];o&&h.listener===o||o&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===o?(f.removeEventListener(l,h.proxyListener,a),p.splice(d,1)):o||(f.removeEventListener(l,h.proxyListener,a),p.splice(d,1))}}return this}function v(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];for(var i=n[0].split(" "),o=n[1],a=0;a<i.length;a+=1)for(var s=i[a],u=0;u<this.length;u+=1){var l=this[u],c=void 0;try{c=new t.CustomEvent(s,{detail:o,bubbles:!0,cancelable:!0})}catch(f){(c=e.createEvent("Event")).initEvent(s,!0,!0),c.detail=o}l.dom7EventData=n.filter((function(e,t){return t>0})),l.dispatchEvent(c),l.dom7EventData=[],delete l.dom7EventData}return this}function y(e){var t,n=["webkitTransitionEnd","transitionend"],r=this;function i(o){if(o.target===this)for(e.call(this,o),t=0;t<n.length;t+=1)r.off(n[t],i)}if(e)for(t=0;t<n.length;t+=1)r.on(n[t],i);return this}function m(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function b(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function w(){if(this.length>0){var n=this[0],r=n.getBoundingClientRect(),i=e.body,o=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,s=n===t?t.scrollY:n.scrollTop,u=n===t?t.scrollX:n.scrollLeft;return{top:r.top+s-o,left:r.left+u-a}}return null}function _(){return this[0]?t.getComputedStyle(this[0],null):{}}function S(e,n){var r;if(1===arguments.length){if("string"!==typeof e){for(r=0;r<this.length;r+=1)for(var i in e)this[r].style[i]=e[i];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"===typeof e){for(r=0;r<this.length;r+=1)this[r].style[e]=n;return this}return this}function E(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this}function x(e){if("undefined"===typeof e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function T(e){if("undefined"===typeof e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function k(i){var o,a,s=this[0];if(!s||"undefined"===typeof i)return!1;if("string"===typeof i){if(s.matches)return s.matches(i);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(i);if(s.msMatchesSelector)return s.msMatchesSelector(i);for(o=r(i),a=0;a<o.length;a+=1)if(o[a]===s)return!0;return!1}if(i===e)return s===e;if(i===t)return s===t;if(i.nodeType||i instanceof n){for(o=i.nodeType?[i]:i,a=0;a<o.length;a+=1)if(o[a]===s)return!0;return!1}return!1}function C(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function O(e){if("undefined"===typeof e)return this;var t,r=this.length;return new n(e>r-1?[]:e<0?(t=r+e)<0?[]:[this[t]]:[this[e]])}function A(){for(var t,r=[],i=arguments.length;i--;)r[i]=arguments[i];for(var o=0;o<r.length;o+=1){t=r[o];for(var a=0;a<this.length;a+=1)if("string"===typeof t){var s=e.createElement("div");for(s.innerHTML=t;s.firstChild;)this[a].appendChild(s.firstChild)}else if(t instanceof n)for(var u=0;u<t.length;u+=1)this[a].appendChild(t[u]);else this[a].appendChild(t)}return this}function P(t){var r,i;for(r=0;r<this.length;r+=1)if("string"===typeof t){var o=e.createElement("div");for(o.innerHTML=t,i=o.childNodes.length-1;i>=0;i-=1)this[r].insertBefore(o.childNodes[i],this[r].childNodes[0])}else if(t instanceof n)for(i=0;i<t.length;i+=1)this[r].insertBefore(t[i],this[r].childNodes[0]);else this[r].insertBefore(t,this[r].childNodes[0]);return this}function I(e){return this.length>0?e?this[0].nextElementSibling&&r(this[0].nextElementSibling).is(e)?new n([this[0].nextElementSibling]):new n([]):this[0].nextElementSibling?new n([this[0].nextElementSibling]):new n([]):new n([])}function j(e){var t=[],i=this[0];if(!i)return new n([]);for(;i.nextElementSibling;){var o=i.nextElementSibling;e?r(o).is(e)&&t.push(o):t.push(o),i=o}return new n(t)}function M(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&r(t.previousElementSibling).is(e)?new n([t.previousElementSibling]):new n([]):t.previousElementSibling?new n([t.previousElementSibling]):new n([])}return new n([])}function N(e){var t=[],i=this[0];if(!i)return new n([]);for(;i.previousElementSibling;){var o=i.previousElementSibling;e?r(o).is(e)&&t.push(o):t.push(o),i=o}return new n(t)}function F(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?r(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return r(i(t))}function R(e){for(var t=[],n=0;n<this.length;n+=1)for(var o=this[n].parentNode;o;)e?r(o).is(e)&&t.push(o):t.push(o),o=o.parentNode;return r(i(t))}function L(e){var t=this;return"undefined"===typeof e?new n([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function D(e){for(var t=[],r=0;r<this.length;r+=1)for(var i=this[r].querySelectorAll(e),o=0;o<i.length;o+=1)t.push(i[o]);return new n(t)}function U(e){for(var t=[],o=0;o<this.length;o+=1)for(var a=this[o].childNodes,s=0;s<a.length;s+=1)e?1===a[s].nodeType&&r(a[s]).is(e)&&t.push(a[s]):1===a[s].nodeType&&t.push(a[s]);return new n(i(t))}function z(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function B(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,i,o=this;for(n=0;n<e.length;n+=1){var a=r(e[n]);for(i=0;i<a.length;i+=1)o[o.length]=a[i],o.length+=1}return o}r.fn=n.prototype,r.Class=n,r.Dom7=n;var H={addClass:o,removeClass:a,hasClass:s,toggleClass:u,attr:l,removeAttr:c,data:f,transform:p,transition:d,on:h,off:g,trigger:v,transitionEnd:y,outerWidth:m,outerHeight:b,offset:w,css:S,each:E,html:x,text:T,is:k,index:C,eq:O,append:A,prepend:P,next:I,nextAll:j,prev:M,prevAll:N,parent:F,parents:R,closest:L,find:D,children:U,remove:z,add:B,styles:_};Object.keys(H).forEach((function(e){r.fn[e]=H[e]}));var V={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(n){}try{delete t[e]}catch(n){}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,n){var r,i,o;void 0===n&&(n="x");var a=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?((i=a.transform||a.webkitTransform).split(",").length>6&&(i=i.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),o=new t.WebKitCSSMatrix("none"===i?"":i)):r=(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===n&&(i=t.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===n&&(i=t.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0},parseUrlQuery:function(e){var n,r,i,o,a={},s=e||t.location.href;if("string"===typeof s&&s.length)for(o=(r=(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,n=0;n<o;n+=1)i=r[n].replace(/#\S+/g,"").split("="),a[decodeURIComponent(i[0])]="undefined"===typeof i[1]?void 0:decodeURIComponent(i[1])||"";return a},isObject:function(e){return"object"===typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=Object(e[0]),r=1;r<e.length;r+=1){var i=e[r];if(void 0!==i&&null!==i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a+=1){var u=o[a],l=Object.getOwnPropertyDescriptor(i,u);void 0!==l&&l.enumerable&&(V.isObject(n[u])&&V.isObject(i[u])?V.extend(n[u],i[u]):!V.isObject(n[u])&&V.isObject(i[u])?(n[u]={},V.extend(n[u],i[u])):n[u]=i[u])}}return n}},q=function(){var n=e.createElement("div");return{touch:t.Modernizr&&!0===t.Modernizr.touch||!!(t.navigator.maxTouchPoints>0||"ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!(t.navigator.pointerEnabled||t.PointerEvent||"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>0),prefixedPointerEvents:!!t.navigator.msPointerEnabled,transition:function(){var e=n.style;return"transition"in e||"webkitTransition"in e||"MozTransition"in e}(),transforms3d:t.Modernizr&&!0===t.Modernizr.csstransforms3d||function(){var e=n.style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=n.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),r=0;r<t.length;r+=1)if(t[r]in e)return!0;return!1}(),observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch(r){}return e}(),gestures:"ongesturestart"in t}}(),W=function(){function e(){var e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}return{isIE:!!t.navigator.userAgent.match(/Trident/g)||!!t.navigator.userAgent.match(/MSIE/g),isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:e(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}(),K=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach((function(e){t.on(e,t.params.on[e])}))},G={components:{configurable:!0}};function Y(){var e,t,n=this,r=n.$el;e="undefined"!==typeof n.params.width?n.params.width:r[0].clientWidth,t="undefined"!==typeof n.params.height?n.params.height:r[0].clientHeight,0===e&&n.isHorizontal()||0===t&&n.isVertical()||(e=e-parseInt(r.css("padding-left"),10)-parseInt(r.css("padding-right"),10),t=t-parseInt(r.css("padding-top"),10)-parseInt(r.css("padding-bottom"),10),V.extend(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function $(){var e=this,n=e.params,r=e.$wrapperEl,i=e.size,o=e.rtlTranslate,a=e.wrongRTL,s=e.virtual&&n.virtual.enabled,u=s?e.virtual.slides.length:e.slides.length,l=r.children("."+e.params.slideClass),c=s?e.virtual.slides.length:l.length,f=[],p=[],d=[],h=n.slidesOffsetBefore;"function"===typeof h&&(h=n.slidesOffsetBefore.call(e));var g=n.slidesOffsetAfter;"function"===typeof g&&(g=n.slidesOffsetAfter.call(e));var v=e.snapGrid.length,y=e.snapGrid.length,m=n.spaceBetween,b=-h,w=0,_=0;if("undefined"!==typeof i){var S,E;"string"===typeof m&&m.indexOf("%")>=0&&(m=parseFloat(m.replace("%",""))/100*i),e.virtualSize=-m,o?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),n.slidesPerColumn>1&&(S=Math.floor(c/n.slidesPerColumn)===c/e.params.slidesPerColumn?c:Math.ceil(c/n.slidesPerColumn)*n.slidesPerColumn,"auto"!==n.slidesPerView&&"row"===n.slidesPerColumnFill&&(S=Math.max(S,n.slidesPerView*n.slidesPerColumn)));for(var x,T=n.slidesPerColumn,k=S/T,C=Math.floor(c/n.slidesPerColumn),O=0;O<c;O+=1){E=0;var A=l.eq(O);if(n.slidesPerColumn>1){var P=void 0,I=void 0,j=void 0;"column"===n.slidesPerColumnFill?(j=O-(I=Math.floor(O/T))*T,(I>C||I===C&&j===T-1)&&(j+=1)>=T&&(j=0,I+=1),P=I+j*S/T,A.css({"-webkit-box-ordinal-group":P,"-moz-box-ordinal-group":P,"-ms-flex-order":P,"-webkit-order":P,order:P})):I=O-(j=Math.floor(O/k))*k,A.css("margin-"+(e.isHorizontal()?"top":"left"),0!==j&&n.spaceBetween&&n.spaceBetween+"px").attr("data-swiper-column",I).attr("data-swiper-row",j)}if("none"!==A.css("display")){if("auto"===n.slidesPerView){var M=t.getComputedStyle(A[0],null),N=A[0].style.transform,F=A[0].style.webkitTransform;if(N&&(A[0].style.transform="none"),F&&(A[0].style.webkitTransform="none"),n.roundLengths)E=e.isHorizontal()?A.outerWidth(!0):A.outerHeight(!0);else if(e.isHorizontal()){var R=parseFloat(M.getPropertyValue("width")),L=parseFloat(M.getPropertyValue("padding-left")),D=parseFloat(M.getPropertyValue("padding-right")),U=parseFloat(M.getPropertyValue("margin-left")),z=parseFloat(M.getPropertyValue("margin-right")),B=M.getPropertyValue("box-sizing");E=B&&"border-box"===B?R+U+z:R+L+D+U+z}else{var H=parseFloat(M.getPropertyValue("height")),W=parseFloat(M.getPropertyValue("padding-top")),K=parseFloat(M.getPropertyValue("padding-bottom")),G=parseFloat(M.getPropertyValue("margin-top")),Y=parseFloat(M.getPropertyValue("margin-bottom")),$=M.getPropertyValue("box-sizing");E=$&&"border-box"===$?H+G+Y:H+W+K+G+Y}N&&(A[0].style.transform=N),F&&(A[0].style.webkitTransform=F),n.roundLengths&&(E=Math.floor(E))}else E=(i-(n.slidesPerView-1)*m)/n.slidesPerView,n.roundLengths&&(E=Math.floor(E)),l[O]&&(e.isHorizontal()?l[O].style.width=E+"px":l[O].style.height=E+"px");l[O]&&(l[O].swiperSlideSize=E),d.push(E),n.centeredSlides?(b=b+E/2+w/2+m,0===w&&0!==O&&(b=b-i/2-m),0===O&&(b=b-i/2-m),Math.abs(b)<.001&&(b=0),n.roundLengths&&(b=Math.floor(b)),_%n.slidesPerGroup===0&&f.push(b),p.push(b)):(n.roundLengths&&(b=Math.floor(b)),_%n.slidesPerGroup===0&&f.push(b),p.push(b),b=b+E+m),e.virtualSize+=E+m,w=E,_+=1}}if(e.virtualSize=Math.max(e.virtualSize,i)+g,o&&a&&("slide"===n.effect||"coverflow"===n.effect)&&r.css({width:e.virtualSize+n.spaceBetween+"px"}),q.flexbox&&!n.setWrapperSize||(e.isHorizontal()?r.css({width:e.virtualSize+n.spaceBetween+"px"}):r.css({height:e.virtualSize+n.spaceBetween+"px"})),n.slidesPerColumn>1&&(e.virtualSize=(E+n.spaceBetween)*S,e.virtualSize=Math.ceil(e.virtualSize/n.slidesPerColumn)-n.spaceBetween,e.isHorizontal()?r.css({width:e.virtualSize+n.spaceBetween+"px"}):r.css({height:e.virtualSize+n.spaceBetween+"px"}),n.centeredSlides)){x=[];for(var J=0;J<f.length;J+=1){var Q=f[J];n.roundLengths&&(Q=Math.floor(Q)),f[J]<e.virtualSize+f[0]&&x.push(Q)}f=x}if(!n.centeredSlides){x=[];for(var Z=0;Z<f.length;Z+=1){var X=f[Z];n.roundLengths&&(X=Math.floor(X)),f[Z]<=e.virtualSize-i&&x.push(X)}f=x,Math.floor(e.virtualSize-i)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-i)}if(0===f.length&&(f=[0]),0!==n.spaceBetween&&(e.isHorizontal()?o?l.css({marginLeft:m+"px"}):l.css({marginRight:m+"px"}):l.css({marginBottom:m+"px"})),n.centerInsufficientSlides){var ee=0;if(d.forEach((function(e){ee+=e+(n.spaceBetween?n.spaceBetween:0)})),(ee-=n.spaceBetween)<i){var te=(i-ee)/2;f.forEach((function(e,t){f[t]=e-te})),p.forEach((function(e,t){p[t]=e+te}))}}V.extend(e,{slides:l,snapGrid:f,slidesGrid:p,slidesSizesGrid:d}),c!==u&&e.emit("slidesLengthChange"),f.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==y&&e.emit("slidesGridLengthChange"),(n.watchSlidesProgress||n.watchSlidesVisibility)&&e.updateSlidesOffset()}}function J(e){var t,n=this,r=[],i=0;if("number"===typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed),"auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){var o=n.activeIndex+t;if(o>n.slides.length)break;r.push(n.slides.eq(o)[0])}else r.push(n.slides.eq(n.activeIndex)[0]);for(t=0;t<r.length;t+=1)if("undefined"!==typeof r[t]){var a=r[t].offsetHeight;i=a>i?a:i}i&&n.$wrapperEl.css("height",i+"px")}function Q(){for(var e=this,t=e.slides,n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop}function Z(e){void 0===e&&(e=this&&this.translate||0);var t=this,n=t.params,i=t.slides,o=t.rtlTranslate;if(0!==i.length){"undefined"===typeof i[0].swiperSlideOffset&&t.updateSlidesOffset();var a=-e;o&&(a=e),i.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var s=0;s<i.length;s+=1){var u=i[s],l=(a+(n.centeredSlides?t.minTranslate():0)-u.swiperSlideOffset)/(u.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var c=-(a-u.swiperSlideOffset),f=c+t.slidesSizesGrid[s];(c>=0&&c<t.size||f>0&&f<=t.size||c<=0&&f>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(s),i.eq(s).addClass(n.slideVisibleClass))}u.progress=o?-l:l}t.visibleSlides=r(t.visibleSlides)}}function X(e){void 0===e&&(e=this&&this.translate||0);var t=this,n=t.params,r=t.maxTranslate()-t.minTranslate(),i=t.progress,o=t.isBeginning,a=t.isEnd,s=o,u=a;0===r?(i=0,o=!0,a=!0):(o=(i=(e-t.minTranslate())/r)<=0,a=i>=1),V.extend(t,{progress:i,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),o&&!s&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(s&&!o||u&&!a)&&t.emit("fromEdge"),t.emit("progress",i)}function ee(){var e,t=this,n=t.slides,r=t.params,i=t.$wrapperEl,o=t.activeIndex,a=t.realIndex,s=t.virtual&&r.virtual.enabled;n.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(e=s?t.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+o+'"]'):n.eq(o)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(r.slideDuplicateActiveClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(r.slideDuplicateActiveClass));var u=e.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===u.length&&(u=n.eq(0)).addClass(r.slideNextClass);var l=e.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===l.length&&(l=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(u.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),l.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass))}function te(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,o=n.snapGrid,a=n.params,s=n.activeIndex,u=n.realIndex,l=n.snapIndex,c=e;if("undefined"===typeof c){for(var f=0;f<i.length;f+=1)"undefined"!==typeof i[f+1]?r>=i[f]&&r<i[f+1]-(i[f+1]-i[f])/2?c=f:r>=i[f]&&r<i[f+1]&&(c=f+1):r>=i[f]&&(c=f);a.normalizeSlideIndex&&(c<0||"undefined"===typeof c)&&(c=0)}if((t=o.indexOf(r)>=0?o.indexOf(r):Math.floor(c/a.slidesPerGroup))>=o.length&&(t=o.length-1),c!==s){var p=parseInt(n.slides.eq(c).attr("data-swiper-slide-index")||c,10);V.extend(n,{snapIndex:t,realIndex:p,previousIndex:s,activeIndex:c}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),u!==p&&n.emit("realIndexChange"),n.emit("slideChange")}else t!==l&&(n.snapIndex=t,n.emit("snapIndexChange"))}function ne(e){var t=this,n=t.params,i=r(e.target).closest("."+n.slideClass)[0],o=!1;if(i)for(var a=0;a<t.slides.length;a+=1)t.slides[a]===i&&(o=!0);if(!i||!o)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r(i).attr("data-swiper-slide-index"),10):t.clickedIndex=r(i).index(),n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}K.prototype.on=function(e,t,n){var r=this;if("function"!==typeof t)return r;var i=n?"unshift":"push";return e.split(" ").forEach((function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},K.prototype.once=function(e,t,n){var r=this;if("function"!==typeof t)return r;function i(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];t.apply(r,n),r.off(e,i),i.f7proxy&&delete i.f7proxy}return i.f7proxy=t,r.on(e,i,n)},K.prototype.off=function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){"undefined"===typeof t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].length&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.f7proxy&&r.f7proxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},K.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=this;return o.eventsListeners?("string"===typeof e[0]||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=o):(n=e[0].events,r=e[0].data,i=e[0].context||o),(Array.isArray(n)?n:n.split(" ")).forEach((function(e){if(o.eventsListeners&&o.eventsListeners[e]){var t=[];o.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(i,r)}))}})),o):o},K.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var r=t.modules[n];r.params&&V.extend(e,r.params)}))},K.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(n){var r=t.modules[n],i=e[n]||{};r.instance&&Object.keys(r.instance).forEach((function(e){var n=r.instance[e];t[e]="function"===typeof n?n.bind(t):n})),r.on&&t.on&&Object.keys(r.on).forEach((function(e){t.on(e,r.on[e])})),r.create&&r.create.bind(t)(i)}))},G.components.set=function(e){var t=this;t.use&&t.use(e)},K.installModule=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this;r.prototype.modules||(r.prototype.modules={});var i=e.name||Object.keys(r.prototype.modules).length+"_"+V.now();return r.prototype.modules[i]=e,e.proto&&Object.keys(e.proto).forEach((function(t){r.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((function(t){r[t]=e.static[t]})),e.install&&e.install.apply(r,t),r},K.use=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this;return Array.isArray(e)?(e.forEach((function(e){return r.installModule(e)})),r):r.installModule.apply(r,[e].concat(t))},Object.defineProperties(K,G);var re={updateSize:Y,updateSlides:$,updateAutoHeight:J,updateSlidesOffset:Q,updateSlidesProgress:Z,updateProgress:X,updateSlidesClasses:ee,updateActiveIndex:te,updateClickedSlide:ne};function ie(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,n=t.params,r=t.rtlTranslate,i=t.translate,o=t.$wrapperEl;if(n.virtualTranslate)return r?-i:i;var a=V.getTranslate(o[0],e);return r&&(a=-a),a||0}function oe(e,t){var n=this,r=n.rtlTranslate,i=n.params,o=n.$wrapperEl,a=n.progress,s=0,u=0,l=0;n.isHorizontal()?s=r?-e:e:u=e,i.roundLengths&&(s=Math.floor(s),u=Math.floor(u)),i.virtualTranslate||(q.transforms3d?o.transform("translate3d("+s+"px, "+u+"px, "+l+"px)"):o.transform("translate("+s+"px, "+u+"px)")),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:u;var c=n.maxTranslate()-n.minTranslate();(0===c?0:(e-n.minTranslate())/c)!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function ae(){return-this.snapGrid[0]}function se(){return-this.snapGrid[this.snapGrid.length-1]}var ue={getTranslate:ie,setTranslate:oe,minTranslate:ae,maxTranslate:se};function le(e,t){var n=this;n.$wrapperEl.transition(e),n.emit("setTransition",e,t)}function ce(e,t){void 0===e&&(e=!0);var n=this,r=n.activeIndex,i=n.params,o=n.previousIndex;i.autoHeight&&n.updateAutoHeight();var a=t;if(a||(a=r>o?"next":r<o?"prev":"reset"),n.emit("transitionStart"),e&&r!==o){if("reset"===a)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===a?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function fe(e,t){void 0===e&&(e=!0);var n=this,r=n.activeIndex,i=n.previousIndex;n.animating=!1,n.setTransition(0);var o=t;if(o||(o=r>i?"next":r<i?"prev":"reset"),n.emit("transitionEnd"),e&&r!==i){if("reset"===o)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===o?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var pe={setTransition:le,transitionStart:ce,transitionEnd:fe};function de(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var i=this,o=e;o<0&&(o=0);var a=i.params,s=i.snapGrid,u=i.slidesGrid,l=i.previousIndex,c=i.activeIndex,f=i.rtlTranslate;if(i.animating&&a.preventInteractionOnTransition)return!1;var p=Math.floor(o/a.slidesPerGroup);p>=s.length&&(p=s.length-1),(c||a.initialSlide||0)===(l||0)&&n&&i.emit("beforeSlideChangeStart");var d,h=-s[p];if(i.updateProgress(h),a.normalizeSlideIndex)for(var g=0;g<u.length;g+=1)-Math.floor(100*h)>=Math.floor(100*u[g])&&(o=g);if(i.initialized&&o!==c){if(!i.allowSlideNext&&h<i.translate&&h<i.minTranslate())return!1;if(!i.allowSlidePrev&&h>i.translate&&h>i.maxTranslate()&&(c||0)!==o)return!1}return d=o>c?"next":o<c?"prev":"reset",f&&-h===i.translate||!f&&h===i.translate?(i.updateActiveIndex(o),a.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==a.effect&&i.setTranslate(h),"reset"!==d&&(i.transitionStart(n,d),i.transitionEnd(n,d)),!1):(0!==t&&q.transition?(i.setTransition(t),i.setTranslate(h),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,d),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,d))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))):(i.setTransition(0),i.setTranslate(h),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,d),i.transitionEnd(n,d)),!0)}function he(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var i=this,o=e;return i.params.loop&&(o+=i.loopedSlides),i.slideTo(o,t,n,r)}function ge(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,i=r.params,o=r.animating;return i.loop?!o&&(r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft,r.slideTo(r.activeIndex+i.slidesPerGroup,e,t,n)):r.slideTo(r.activeIndex+i.slidesPerGroup,e,t,n)}function ve(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,i=r.params,o=r.animating,a=r.snapGrid,s=r.slidesGrid,u=r.rtlTranslate;if(i.loop){if(o)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function l(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var c,f=l(u?r.translate:-r.translate),p=a.map((function(e){return l(e)})),d=(s.map((function(e){return l(e)})),a[p.indexOf(f)],a[p.indexOf(f)-1]);return"undefined"!==typeof d&&(c=s.indexOf(d))<0&&(c=r.activeIndex-1),r.slideTo(c,e,t,n)}function ye(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this;return r.slideTo(r.activeIndex,e,t,n)}function me(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,i=r.activeIndex,o=Math.floor(i/r.params.slidesPerGroup);if(o<r.snapGrid.length-1){var a=r.rtlTranslate?r.translate:-r.translate,s=r.snapGrid[o];a-s>(r.snapGrid[o+1]-s)/2&&(i=r.params.slidesPerGroup)}return r.slideTo(i,e,t,n)}function be(){var e,t=this,n=t.params,i=t.$wrapperEl,o="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,a=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(r(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?a<t.loopedSlides-o/2||a>t.slides.length-t.loopedSlides+o/2?(t.loopFix(),a=i.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),V.nextTick((function(){t.slideTo(a)}))):t.slideTo(a):a>t.slides.length-o?(t.loopFix(),a=i.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),V.nextTick((function(){t.slideTo(a)}))):t.slideTo(a)}else t.slideTo(a)}var we={slideTo:de,slideToLoop:he,slideNext:ge,slidePrev:ve,slideReset:ye,slideToClosest:me,slideToClickedSlide:be};function _e(){var t=this,n=t.params,i=t.$wrapperEl;i.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var o=i.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var a=n.slidesPerGroup-o.length%n.slidesPerGroup;if(a!==n.slidesPerGroup){for(var s=0;s<a;s+=1){var u=r(e.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);i.append(u)}o=i.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=o.length),t.loopedSlides=parseInt(n.loopedSlides||n.slidesPerView,10),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>o.length&&(t.loopedSlides=o.length);var l=[],c=[];o.each((function(e,n){var i=r(n);e<t.loopedSlides&&c.push(n),e<o.length&&e>=o.length-t.loopedSlides&&l.push(n),i.attr("data-swiper-slide-index",e)}));for(var f=0;f<c.length;f+=1)i.append(r(c[f].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var p=l.length-1;p>=0;p-=1)i.prepend(r(l[p].cloneNode(!0)).addClass(n.slideDuplicateClass))}function Se(){var e,t=this,n=t.params,r=t.activeIndex,i=t.slides,o=t.loopedSlides,a=t.allowSlidePrev,s=t.allowSlideNext,u=t.snapGrid,l=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-u[r]-t.getTranslate();r<o?(e=i.length-3*o+r,e+=o,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)):("auto"===n.slidesPerView&&r>=2*o||r>=i.length-o)&&(e=-i.length+r+o,e+=o,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)),t.allowSlidePrev=a,t.allowSlideNext=s}function Ee(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}var xe={loopCreate:_e,loopFix:Se,loopDestroy:Ee};function Te(e){var t=this;if(!(q.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var n=t.el;n.style.cursor="move",n.style.cursor=e?"-webkit-grabbing":"-webkit-grab",n.style.cursor=e?"-moz-grabbin":"-moz-grab",n.style.cursor=e?"grabbing":"grab"}}function ke(){var e=this;q.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}var Ce={setGrabCursor:Te,unsetGrabCursor:ke};function Oe(e){var t=this,n=t.$wrapperEl,r=t.params;if(r.loop&&t.loopDestroy(),"object"===typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&n.append(e[i]);else n.append(e);r.loop&&t.loopCreate(),r.observer&&q.observer||t.update()}function Ae(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.activeIndex;n.loop&&t.loopDestroy();var o=i+1;if("object"===typeof e&&"length"in e){for(var a=0;a<e.length;a+=1)e[a]&&r.prepend(e[a]);o=i+e.length}else r.prepend(e);n.loop&&t.loopCreate(),n.observer&&q.observer||t.update(),t.slideTo(o,0,!1)}function Pe(e,t){var n=this,r=n.$wrapperEl,i=n.params,o=n.activeIndex;i.loop&&(o-=n.loopedSlides,n.loopDestroy(),n.slides=r.children("."+i.slideClass));var a=n.slides.length;if(e<=0)n.prependSlide(t);else if(e>=a)n.appendSlide(t);else{for(var s=o>e?o+1:o,u=[],l=a-1;l>=e;l-=1){var c=n.slides.eq(l);c.remove(),u.unshift(c)}if("object"===typeof t&&"length"in t){for(var f=0;f<t.length;f+=1)t[f]&&r.append(t[f]);s=o>e?o+t.length:o}else r.append(t);for(var p=0;p<u.length;p+=1)r.append(u[p]);i.loop&&n.loopCreate(),i.observer&&q.observer||n.update(),i.loop?n.slideTo(s+n.loopedSlides,0,!1):n.slideTo(s,0,!1)}}function Ie(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.activeIndex;n.loop&&(i-=t.loopedSlides,t.loopDestroy(),t.slides=r.children("."+n.slideClass));var o,a=i;if("object"===typeof e&&"length"in e){for(var s=0;s<e.length;s+=1)o=e[s],t.slides[o]&&t.slides.eq(o).remove(),o<a&&(a-=1);a=Math.max(a,0)}else o=e,t.slides[o]&&t.slides.eq(o).remove(),o<a&&(a-=1),a=Math.max(a,0);n.loop&&t.loopCreate(),n.observer&&q.observer||t.update(),n.loop?t.slideTo(a+t.loopedSlides,0,!1):t.slideTo(a,0,!1)}function je(){for(var e=this,t=[],n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}var Me={appendSlide:Oe,prependSlide:Ae,addSlide:Pe,removeSlide:Ie,removeAllSlides:je},Ne=function(){var n=t.navigator.userAgent,r={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:t.cordova||t.phonegap,phonegap:t.cordova||t.phonegap},i=n.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),o=n.match(/(Android);?[\s\/]+([\d.]+)?/),a=n.match(/(iPad).*OS\s([\d_]+)/),s=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!a&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(r.os="windows",r.osVersion=i[2],r.windows=!0),o&&!i&&(r.os="android",r.osVersion=o[2],r.android=!0,r.androidChrome=n.toLowerCase().indexOf("chrome")>=0),(a||u||s)&&(r.os="ios",r.ios=!0),u&&!s&&(r.osVersion=u[2].replace(/_/g,"."),r.iphone=!0),a&&(r.osVersion=a[2].replace(/_/g,"."),r.ipad=!0),s&&(r.osVersion=s[3]?s[3].replace(/_/g,"."):null,r.iphone=!0),r.ios&&r.osVersion&&n.indexOf("Version/")>=0&&"10"===r.osVersion.split(".")[0]&&(r.osVersion=n.toLowerCase().split("version/")[1].split(" ")[0]),r.desktop=!(r.os||r.android||r.webView),r.webView=(u||a||s)&&n.match(/.*AppleWebKit(?!.*Safari)/i),r.os&&"ios"===r.os){var l=r.osVersion.split("."),c=e.querySelector('meta[name="viewport"]');r.minimalUi=!r.webView&&(s||u)&&(1*l[0]===7?1*l[1]>=1:1*l[0]>7)&&c&&c.getAttribute("content").indexOf("minimal-ui")>=0}return r.pixelRatio=t.devicePixelRatio||1,r}();function Fe(n){var i=this,o=i.touchEventsData,a=i.params,s=i.touches;if(!i.animating||!a.preventInteractionOnTransition){var u=n;if(u.originalEvent&&(u=u.originalEvent),o.isTouchEvent="touchstart"===u.type,(o.isTouchEvent||!("which"in u)||3!==u.which)&&!(!o.isTouchEvent&&"button"in u&&u.button>0)&&(!o.isTouched||!o.isMoved))if(a.noSwiping&&r(u.target).closest(a.noSwipingSelector?a.noSwipingSelector:"."+a.noSwipingClass)[0])i.allowClick=!0;else if(!a.swipeHandler||r(u).closest(a.swipeHandler)[0]){s.currentX="touchstart"===u.type?u.targetTouches[0].pageX:u.pageX,s.currentY="touchstart"===u.type?u.targetTouches[0].pageY:u.pageY;var l=s.currentX,c=s.currentY,f=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,p=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(!f||!(l<=p||l>=t.screen.width-p)){if(V.extend(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=l,s.startY=c,o.touchStartTime=V.now(),i.allowClick=!0,i.updateSize(),i.swipeDirection=void 0,a.threshold>0&&(o.allowThresholdMove=!1),"touchstart"!==u.type){var d=!0;r(u.target).is(o.formElements)&&(d=!1),e.activeElement&&r(e.activeElement).is(o.formElements)&&e.activeElement!==u.target&&e.activeElement.blur();var h=d&&i.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||h)&&u.preventDefault()}i.emit("touchStart",u)}}}}function Re(t){var n=this,i=n.touchEventsData,o=n.params,a=n.touches,s=n.rtlTranslate,u=t;if(u.originalEvent&&(u=u.originalEvent),i.isTouched){if(!i.isTouchEvent||"mousemove"!==u.type){var l="touchmove"===u.type?u.targetTouches[0].pageX:u.pageX,c="touchmove"===u.type?u.targetTouches[0].pageY:u.pageY;if(u.preventedByNestedSwiper)return a.startX=l,void(a.startY=c);if(!n.allowTouchMove)return n.allowClick=!1,void(i.isTouched&&(V.extend(a,{startX:l,startY:c,currentX:l,currentY:c}),i.touchStartTime=V.now()));if(i.isTouchEvent&&o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(c<a.startY&&n.translate<=n.maxTranslate()||c>a.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(l<a.startX&&n.translate<=n.maxTranslate()||l>a.startX&&n.translate>=n.minTranslate())return;if(i.isTouchEvent&&e.activeElement&&u.target===e.activeElement&&r(u.target).is(i.formElements))return i.isMoved=!0,void(n.allowClick=!1);if(i.allowTouchCallbacks&&n.emit("touchMove",u),!(u.targetTouches&&u.targetTouches.length>1)){a.currentX=l,a.currentY=c;var f,p=a.currentX-a.startX,d=a.currentY-a.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(p,2)+Math.pow(d,2))<n.params.threshold))if("undefined"===typeof i.isScrolling&&(n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?i.isScrolling=!1:p*p+d*d>=25&&(f=180*Math.atan2(Math.abs(d),Math.abs(p))/Math.PI,i.isScrolling=n.isHorizontal()?f>o.touchAngle:90-f>o.touchAngle)),i.isScrolling&&n.emit("touchMoveOpposite",u),"undefined"===typeof i.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){n.allowClick=!1,u.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&u.stopPropagation(),i.isMoved||(o.loop&&n.loopFix(),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!o.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",u)),n.emit("sliderMove",u),i.isMoved=!0;var h=n.isHorizontal()?p:d;a.diff=h,h*=o.touchRatio,s&&(h=-h),n.swipeDirection=h>0?"prev":"next",i.currentTranslate=h+i.startTranslate;var g=!0,v=o.resistanceRatio;if(o.touchReleaseOnEdges&&(v=0),h>0&&i.currentTranslate>n.minTranslate()?(g=!1,o.resistance&&(i.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+i.startTranslate+h,v))):h<0&&i.currentTranslate<n.maxTranslate()&&(g=!1,o.resistance&&(i.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-i.startTranslate-h,v))),g&&(u.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),o.threshold>0){if(!(Math.abs(h)>o.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,i.currentTranslate=i.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}o.followFinger&&((o.freeMode||o.watchSlidesProgress||o.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&(0===i.velocities.length&&i.velocities.push({position:a[n.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:a[n.isHorizontal()?"currentX":"currentY"],time:V.now()})),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}}}}else i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",u)}function Le(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,o=t.rtlTranslate,a=t.$wrapperEl,s=t.slidesGrid,u=t.snapGrid,l=e;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var c,f=V.now(),p=f-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(l),t.emit("tap",l),p<300&&f-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=V.nextTick((function(){t&&!t.destroyed&&t.emit("click",l)}),300)),p<300&&f-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",l))),n.lastClickTime=V.now(),V.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,c=r.followFinger?o?t.translate:-t.translate:-n.currentTranslate,r.freeMode){if(c<-t.minTranslate())return void t.slideTo(t.activeIndex);if(c>-t.maxTranslate())return void(t.slides.length<u.length?t.slideTo(u.length-1):t.slideTo(t.slides.length-1));if(r.freeModeMomentum){if(n.velocities.length>1){var d=n.velocities.pop(),h=n.velocities.pop(),g=d.position-h.position,v=d.time-h.time;t.velocity=g/v,t.velocity/=2,Math.abs(t.velocity)<r.freeModeMinimumVelocity&&(t.velocity=0),(v>150||V.now()-d.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var y=1e3*r.freeModeMomentumRatio,m=t.velocity*y,b=t.translate+m;o&&(b=-b);var w,_,S=!1,E=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(b<t.maxTranslate())r.freeModeMomentumBounce?(b+t.maxTranslate()<-E&&(b=t.maxTranslate()-E),w=t.maxTranslate(),S=!0,n.allowMomentumBounce=!0):b=t.maxTranslate(),r.loop&&r.centeredSlides&&(_=!0);else if(b>t.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>E&&(b=t.minTranslate()+E),w=t.minTranslate(),S=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(_=!0);else if(r.freeModeSticky){for(var x,T=0;T<u.length;T+=1)if(u[T]>-b){x=T;break}b=-(b=Math.abs(u[x]-b)<Math.abs(u[x-1]-b)||"next"===t.swipeDirection?u[x]:u[x-1])}if(_&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity)y=o?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity);else if(r.freeModeSticky)return void t.slideToClosest();r.freeModeMomentumBounce&&S?(t.updateProgress(w),t.setTransition(y),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,a.transitionEnd((function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(r.speed),t.setTranslate(w),a.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(b),t.setTransition(y),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,a.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(b),t.updateActiveIndex(),t.updateSlidesClasses()}else if(r.freeModeSticky)return void t.slideToClosest();(!r.freeModeMomentum||p>=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var k=0,C=t.slidesSizesGrid[0],O=0;O<s.length;O+=r.slidesPerGroup)"undefined"!==typeof s[O+r.slidesPerGroup]?c>=s[O]&&c<s[O+r.slidesPerGroup]&&(k=O,C=s[O+r.slidesPerGroup]-s[O]):c>=s[O]&&(k=O,C=s[s.length-1]-s[s.length-2]);var A=(c-s[k])/C;if(p>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(A>=r.longSwipesRatio?t.slideTo(k+r.slidesPerGroup):t.slideTo(k)),"prev"===t.swipeDirection&&(A>1-r.longSwipesRatio?t.slideTo(k+r.slidesPerGroup):t.slideTo(k))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(k+r.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(k)}}}function De(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,i=e.allowSlidePrev,o=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var a=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}}function Ue(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function ze(){var t=this,n=t.params,r=t.touchEvents,i=t.el,o=t.wrapperEl;t.onTouchStart=Fe.bind(t),t.onTouchMove=Re.bind(t),t.onTouchEnd=Le.bind(t),t.onClick=Ue.bind(t);var a="container"===n.touchEventsTarget?i:o,s=!!n.nested;if(q.touch||!q.pointerEvents&&!q.prefixedPointerEvents){if(q.touch){var u=!("touchstart"!==r.start||!q.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};a.addEventListener(r.start,t.onTouchStart,u),a.addEventListener(r.move,t.onTouchMove,q.passiveListener?{passive:!1,capture:s}:s),a.addEventListener(r.end,t.onTouchEnd,u)}(n.simulateTouch&&!Ne.ios&&!Ne.android||n.simulateTouch&&!q.touch&&Ne.ios)&&(a.addEventListener("mousedown",t.onTouchStart,!1),e.addEventListener("mousemove",t.onTouchMove,s),e.addEventListener("mouseup",t.onTouchEnd,!1))}else a.addEventListener(r.start,t.onTouchStart,!1),e.addEventListener(r.move,t.onTouchMove,s),e.addEventListener(r.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&a.addEventListener("click",t.onClick,!0),t.on(Ne.ios||Ne.android?"resize orientationchange observerUpdate":"resize observerUpdate",De,!0)}function Be(){var t=this,n=t.params,r=t.touchEvents,i=t.el,o=t.wrapperEl,a="container"===n.touchEventsTarget?i:o,s=!!n.nested;if(q.touch||!q.pointerEvents&&!q.prefixedPointerEvents){if(q.touch){var u=!("onTouchStart"!==r.start||!q.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};a.removeEventListener(r.start,t.onTouchStart,u),a.removeEventListener(r.move,t.onTouchMove,s),a.removeEventListener(r.end,t.onTouchEnd,u)}(n.simulateTouch&&!Ne.ios&&!Ne.android||n.simulateTouch&&!q.touch&&Ne.ios)&&(a.removeEventListener("mousedown",t.onTouchStart,!1),e.removeEventListener("mousemove",t.onTouchMove,s),e.removeEventListener("mouseup",t.onTouchEnd,!1))}else a.removeEventListener(r.start,t.onTouchStart,!1),e.removeEventListener(r.move,t.onTouchMove,s),e.removeEventListener(r.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&a.removeEventListener("click",t.onClick,!0),t.off(Ne.ios||Ne.android?"resize orientationchange observerUpdate":"resize observerUpdate",De)}function He(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides;void 0===r&&(r=0);var i=e.params,o=i.breakpoints;if(o&&(!o||0!==Object.keys(o).length)){var a=e.getBreakpoint(o);if(a&&e.currentBreakpoint!==a){var s=a in o?o[a]:void 0;s&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach((function(e){var t=s[e];"undefined"!==typeof t&&(s[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var u=s||e.originalParams,l=u.direction&&u.direction!==i.direction,c=i.loop&&(u.slidesPerView!==i.slidesPerView||l);l&&n&&e.changeDirection(),V.extend(e.params,u),V.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=a,c&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-r+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}}}function Ve(e){var n=this;if(e){var r=!1,i=[];Object.keys(e).forEach((function(e){i.push(e)})),i.sort((function(e,t){return parseInt(e,10)-parseInt(t,10)}));for(var o=0;o<i.length;o+=1){var a=i[o];n.params.breakpointsInverse?a<=t.innerWidth&&(r=a):a>=t.innerWidth&&!r&&(r=a)}return r||"max"}}function qe(){var e=this,t=e.classNames,n=e.params,r=e.rtl,i=e.$el,o=[];o.push("initialized"),o.push(n.direction),n.freeMode&&o.push("free-mode"),q.flexbox||o.push("no-flexbox"),n.autoHeight&&o.push("autoheight"),r&&o.push("rtl"),n.slidesPerColumn>1&&o.push("multirow"),Ne.android&&o.push("android"),Ne.ios&&o.push("ios"),(W.isIE||W.isEdge)&&(q.pointerEvents||q.prefixedPointerEvents)&&o.push("wp8-"+n.direction),o.forEach((function(e){t.push(n.containerModifierClass+e)})),i.addClass(t.join(" "))}function We(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" "))}function Ke(e,n,r,i,o,a){var s;function u(){a&&a()}e.complete&&o?u():n?((s=new t.Image).onload=u,s.onerror=u,i&&(s.sizes=i),r&&(s.srcset=r),n&&(s.src=n)):u()}function Ge(){var e=this;function t(){"undefined"!==typeof e&&null!==e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;n<e.imagesToLoad.length;n+=1){var r=e.imagesToLoad[n];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}function Ye(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}var $e={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},Je={update:re,translate:ue,transition:pe,slide:we,loop:xe,grabCursor:Ce,manipulation:Me,events:{attachEvents:ze,detachEvents:Be},breakpoints:{setBreakpoint:He,getBreakpoint:Ve},checkOverflow:{checkOverflow:Ye},classes:{addClasses:qe,removeClasses:We},images:{loadImage:Ke,preloadImages:Ge}},Qe={},Ze=function(e){function t(){for(var n,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];1===a.length&&a[0].constructor&&a[0].constructor===Object?o=a[0]:(i=(n=a)[0],o=n[1]),o||(o={}),o=V.extend({},o),i&&!o.el&&(o.el=i),e.call(this,o),Object.keys(Je).forEach((function(e){Object.keys(Je[e]).forEach((function(n){t.prototype[n]||(t.prototype[n]=Je[e][n])}))}));var u=this;"undefined"===typeof u.modules&&(u.modules={}),Object.keys(u.modules).forEach((function(e){var t=u.modules[e];if(t.params){var n=Object.keys(t.params)[0],r=t.params[n];if("object"!==typeof r||null===r)return;if(!(n in o)||!("enabled"in r))return;!0===o[n]&&(o[n]={enabled:!0}),"object"!==typeof o[n]||"enabled"in o[n]||(o[n].enabled=!0),o[n]||(o[n]={enabled:!1})}}));var l=V.extend({},$e);u.useModulesParams(l),u.params=V.extend({},l,Qe,o),u.originalParams=V.extend({},u.params),u.passedParams=V.extend({},o),u.$=r;var c=r(u.params.el);if(i=c[0]){if(c.length>1){var f=[];return c.each((function(e,n){var r=V.extend({},o,{el:n});f.push(new t(r))})),f}i.swiper=u,c.data("swiper",u);var p=c.children("."+u.params.wrapperClass);return V.extend(u,{$el:c,el:i,$wrapperEl:p,wrapperEl:p[0],classNames:[],slides:r(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===u.params.direction},isVertical:function(){return"vertical"===u.params.direction},rtl:"rtl"===i.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===u.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===c.css("direction")),wrongRTL:"-webkit-box"===p.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend"],t=["mousedown","mousemove","mouseup"];return q.pointerEvents?t=["pointerdown","pointermove","pointerup"]:q.prefixedPointerEvents&&(t=["MSPointerDown","MSPointerMove","MSPointerUp"]),u.touchEventsTouch={start:e[0],move:e[1],end:e[2]},u.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},q.touch||!u.params.simulateTouch?u.touchEventsTouch:u.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:V.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.useModules(),u.params.init&&u.init(),u}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,r=e.slidesGrid,i=e.size,o=e.activeIndex,a=1;if(t.centeredSlides){for(var s,u=n[o].swiperSlideSize,l=o+1;l<n.length;l+=1)n[l]&&!s&&(a+=1,(u+=n[l].swiperSlideSize)>i&&(s=!0));for(var c=o-1;c>=0;c-=1)n[c]&&!s&&(a+=1,(u+=n[c].swiperSlideSize)>i&&(s=!0))}else for(var f=o+1;f<n.length;f+=1)r[f]-r[o]<i&&(a+=1);return a},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||("vertical"===r&&(n.$el.removeClass(n.params.containerModifierClass+"vertical wp8-vertical").addClass(""+n.params.containerModifierClass+e),(W.isIE||W.isEdge)&&(q.pointerEvents||q.prefixedPointerEvents)&&n.$el.addClass(n.params.containerModifierClass+"wp8-"+e)),"horizontal"===r&&(n.$el.removeClass(n.params.containerModifierClass+"horizontal wp8-horizontal").addClass(""+n.params.containerModifierClass+e),(W.isIE||W.isEdge)&&(q.pointerEvents||q.prefixedPointerEvents)&&n.$el.addClass(n.params.containerModifierClass+"wp8-"+e)),n.params.direction=e,n.slides.each((function(t,n){"vertical"===e?n.style.width="":n.style.height=""})),n.emit("changeDirection"),t&&n.update()),n},t.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n=this,r=n.params,i=n.$el,o=n.$wrapperEl,a=n.slides;return"undefined"===typeof n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(e){n.off(e)})),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),V.deleteProps(n)),n.destroyed=!0),null},t.extendDefaults=function(e){V.extend(Qe,e)},n.extendedDefaults.get=function(){return Qe},n.defaults.get=function(){return $e},n.Class.get=function(){return e},n.$.get=function(){return r},Object.defineProperties(t,n),t}(K),Xe={name:"device",proto:{device:Ne},static:{device:Ne}},et={name:"support",proto:{support:q},static:{support:q}},tt={name:"browser",proto:{browser:W},static:{browser:W}},nt={name:"resize",create:function(){var e=this;V.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){var e=this;t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},rt={func:t.MutationObserver||t.WebkitMutationObserver,attach:function(e,n){void 0===n&&(n={});var r=this,i=new(0,rt.func)((function(e){if(1!==e.length){var n=function(){r.emit("observerUpdate",e[0])};t.requestAnimationFrame?t.requestAnimationFrame(n):t.setTimeout(n,0)}else r.emit("observerUpdate",e[0])}));i.observe(e,{attributes:"undefined"===typeof n.attributes||n.attributes,childList:"undefined"===typeof n.childList||n.childList,characterData:"undefined"===typeof n.characterData||n.characterData}),r.observer.observers.push(i)},init:function(){var e=this;if(q.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),n=0;n<t.length;n+=1)e.observer.attach(t[n]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){var e=this;e.observer.observers.forEach((function(e){e.disconnect()})),e.observer.observers=[]}},it={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;V.extend(e,{observer:{init:rt.init.bind(e),attach:rt.attach.bind(e),destroy:rt.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},ot={update:function(e){var t=this,n=t.params,r=n.slidesPerView,i=n.slidesPerGroup,o=n.centeredSlides,a=t.params.virtual,s=a.addSlidesBefore,u=a.addSlidesAfter,l=t.virtual,c=l.from,f=l.to,p=l.slides,d=l.slidesGrid,h=l.renderSlide,g=l.offset;t.updateActiveIndex();var v,y,m,b=t.activeIndex||0;v=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",o?(y=Math.floor(r/2)+i+s,m=Math.floor(r/2)+i+u):(y=r+(i-1)+s,m=i+u);var w=Math.max((b||0)-m,0),_=Math.min((b||0)+y,p.length-1),S=(t.slidesGrid[w]||0)-(t.slidesGrid[0]||0);function E(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(V.extend(t.virtual,{from:w,to:_,offset:S,slidesGrid:t.slidesGrid}),c===w&&f===_&&!e)return t.slidesGrid!==d&&S!==g&&t.slides.css(v,S+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:S,from:w,to:_,slides:function(){for(var e=[],t=w;t<=_;t+=1)e.push(p[t]);return e}()}),void E();var x=[],T=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var k=c;k<=f;k+=1)(k<w||k>_)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+k+'"]').remove();for(var C=0;C<p.length;C+=1)C>=w&&C<=_&&("undefined"===typeof f||e?T.push(C):(C>f&&T.push(C),C<c&&x.push(C)));T.forEach((function(e){t.$wrapperEl.append(h(p[e],e))})),x.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(h(p[e],e))})),t.$wrapperEl.children(".swiper-slide").css(v,S+"px"),E()},renderSlide:function(e,t){var n=this,i=n.params.virtual;if(i.cache&&n.virtual.cache[t])return n.virtual.cache[t];var o=i.renderSlide?r(i.renderSlide.call(n,e,t)):r('<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return o.attr("data-swiper-slide-index")||o.attr("data-swiper-slide-index",t),i.cache&&(n.virtual.cache[t]=o),o},appendSlide:function(e){var t=this;if("object"===typeof e&&"length"in e)for(var n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.push(e[n]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,n=t.activeIndex,r=n+1,i=1;if(Array.isArray(e)){for(var o=0;o<e.length;o+=1)e[o]&&t.virtual.slides.unshift(e[o]);r=n+e.length,i=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var a=t.virtual.cache,s={};Object.keys(a).forEach((function(e){s[parseInt(e,10)+i]=a[e]})),t.virtual.cache=s}t.virtual.update(!0),t.slideTo(r,0)},removeSlide:function(e){var t=this;if("undefined"!==typeof e&&null!==e){var n=t.activeIndex;if(Array.isArray(e))for(var r=e.length-1;r>=0;r-=1)t.virtual.slides.splice(e[r],1),t.params.virtual.cache&&delete t.virtual.cache[e[r]],e[r]<n&&(n-=1),n=Math.max(n,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<n&&(n-=1),n=Math.max(n,0);t.virtual.update(!0),t.slideTo(n,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},at={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;V.extend(e,{virtual:{update:ot.update.bind(e),appendSlide:ot.appendSlide.bind(e),prependSlide:ot.prependSlide.bind(e),removeSlide:ot.removeSlide.bind(e),removeAllSlides:ot.removeAllSlides.bind(e),renderSlide:ot.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};V.extend(e.params,t),V.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},st={handle:function(n){var r=this,i=r.rtlTranslate,o=n;o.originalEvent&&(o=o.originalEvent);var a=o.keyCode||o.charCode;if(!r.allowSlideNext&&(r.isHorizontal()&&39===a||r.isVertical()&&40===a))return!1;if(!r.allowSlidePrev&&(r.isHorizontal()&&37===a||r.isVertical()&&38===a))return!1;if(!(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey)&&(!e.activeElement||!e.activeElement.nodeName||"input"!==e.activeElement.nodeName.toLowerCase()&&"textarea"!==e.activeElement.nodeName.toLowerCase())){if(r.params.keyboard.onlyInViewport&&(37===a||39===a||38===a||40===a)){var s=!1;if(r.$el.parents("."+r.params.slideClass).length>0&&0===r.$el.parents("."+r.params.slideActiveClass).length)return;var u=t.innerWidth,l=t.innerHeight,c=r.$el.offset();i&&(c.left-=r.$el[0].scrollLeft);for(var f=[[c.left,c.top],[c.left+r.width,c.top],[c.left,c.top+r.height],[c.left+r.width,c.top+r.height]],p=0;p<f.length;p+=1){var d=f[p];d[0]>=0&&d[0]<=u&&d[1]>=0&&d[1]<=l&&(s=!0)}if(!s)return}r.isHorizontal()?(37!==a&&39!==a||(o.preventDefault?o.preventDefault():o.returnValue=!1),(39===a&&!i||37===a&&i)&&r.slideNext(),(37===a&&!i||39===a&&i)&&r.slidePrev()):(38!==a&&40!==a||(o.preventDefault?o.preventDefault():o.returnValue=!1),40===a&&r.slideNext(),38===a&&r.slidePrev()),r.emit("keyPress",a)}},enable:function(){var t=this;t.keyboard.enabled||(r(e).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this;t.keyboard.enabled&&(r(e).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},ut={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;V.extend(e,{keyboard:{enabled:!1,enable:st.enable.bind(e),disable:st.disable.bind(e),handle:st.handle.bind(e)}})},on:{init:function(){var e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(){var e=this;e.keyboard.enabled&&e.keyboard.disable()}}};function lt(){var t="onwheel",n=t in e;if(!n){var r=e.createElement("div");r.setAttribute(t,"return;"),n="function"===typeof r[t]}return!n&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(n=e.implementation.hasFeature("Events.wheel","3.0")),n}var ct={lastScrollTime:V.now(),event:t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":lt()?"wheel":"mousewheel",normalize:function(e){var t=10,n=40,r=800,i=0,o=0,a=0,s=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(i=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(i=o,o=0),a=i*t,s=o*t,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||s)&&e.deltaMode&&(1===e.deltaMode?(a*=n,s*=n):(a*=r,s*=r)),a&&!i&&(i=a<1?-1:1),s&&!o&&(o=s<1?-1:1),{spinX:i,spinY:o,pixelX:a,pixelY:s}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var n=e,r=this,i=r.params.mousewheel;if(!r.mouseEntered&&!i.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);var o=0,a=r.rtlTranslate?-1:1,s=ct.normalize(n);if(i.forceToAxis)if(r.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;o=s.pixelX*a}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;o=s.pixelY}else o=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*a:-s.pixelY;if(0===o)return!0;if(i.invert&&(o=-o),r.params.freeMode){r.params.loop&&r.loopFix();var u=r.getTranslate()+o*i.sensitivity,l=r.isBeginning,c=r.isEnd;if(u>=r.minTranslate()&&(u=r.minTranslate()),u<=r.maxTranslate()&&(u=r.maxTranslate()),r.setTransition(0),r.setTranslate(u),r.updateProgress(),r.updateActiveIndex(),r.updateSlidesClasses(),(!l&&r.isBeginning||!c&&r.isEnd)&&r.updateSlidesClasses(),r.params.freeModeSticky&&(clearTimeout(r.mousewheel.timeout),r.mousewheel.timeout=V.nextTick((function(){r.slideToClosest()}),300)),r.emit("scroll",n),r.params.autoplay&&r.params.autoplayDisableOnInteraction&&r.autoplay.stop(),u===r.minTranslate()||u===r.maxTranslate())return!0}else{if(V.now()-r.mousewheel.lastScrollTime>60)if(o<0)if(r.isEnd&&!r.params.loop||r.animating){if(i.releaseOnEdges)return!0}else r.slideNext(),r.emit("scroll",n);else if(r.isBeginning&&!r.params.loop||r.animating){if(i.releaseOnEdges)return!0}else r.slidePrev(),r.emit("scroll",n);r.mousewheel.lastScrollTime=(new t.Date).getTime()}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1},enable:function(){var e=this;if(!ct.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=r(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(ct.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this;if(!ct.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=r(e.params.mousewheel.eventsTarged)),t.off(ct.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},ft={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var n=e.navigation,r=n.$nextEl,i=n.$prevEl;i&&i.length>0&&(e.isBeginning?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),r&&r.length>0&&(e.isEnd?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,i=n.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(e=r(i.nextEl),n.params.uniqueNavElements&&"string"===typeof i.nextEl&&e.length>1&&1===n.$el.find(i.nextEl).length&&(e=n.$el.find(i.nextEl))),i.prevEl&&(t=r(i.prevEl),n.params.uniqueNavElements&&"string"===typeof i.prevEl&&t.length>1&&1===n.$el.find(i.prevEl).length&&(t=n.$el.find(i.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),V.extend(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}},pt={update:function(){var e=this,t=e.rtl,n=e.params.pagination;if(n.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i,o=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,a=e.pagination.$el,s=e.params.loop?Math.ceil((o-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((i=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>o-1-2*e.loopedSlides&&(i-=o-2*e.loopedSlides),i>s-1&&(i-=s),i<0&&"bullets"!==e.params.paginationType&&(i=s+i)):i="undefined"!==typeof e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var u,l,c,f=e.pagination.bullets;if(n.dynamicBullets&&(e.pagination.bulletSize=f.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),a.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=i-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),u=i-e.pagination.dynamicBulletIndex,c=((l=u+(Math.min(f.length,n.dynamicMainBullets)-1))+u)/2),f.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),a.length>1)f.each((function(e,t){var o=r(t),a=o.index();a===i&&o.addClass(n.bulletActiveClass),n.dynamicBullets&&(a>=u&&a<=l&&o.addClass(n.bulletActiveClass+"-main"),a===u&&o.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),a===l&&o.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))}));else if(f.eq(i).addClass(n.bulletActiveClass),n.dynamicBullets){for(var p=f.eq(u),d=f.eq(l),h=u;h<=l;h+=1)f.eq(h).addClass(n.bulletActiveClass+"-main");p.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),d.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}if(n.dynamicBullets){var g=Math.min(f.length,n.dynamicMainBullets+4),v=(e.pagination.bulletSize*g-e.pagination.bulletSize)/2-c*e.pagination.bulletSize,y=t?"right":"left";f.css(e.isHorizontal()?y:"top",v+"px")}}if("fraction"===n.type&&(a.find("."+n.currentClass).text(n.formatFractionCurrent(i+1)),a.find("."+n.totalClass).text(n.formatFractionTotal(s))),"progressbar"===n.type){var m;m=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var b=(i+1)/s,w=1,_=1;"horizontal"===m?w=b:_=b,a.find("."+n.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+w+") scaleY("+_+")").transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(a.html(n.renderCustom(e,i+1,s)),e.emit("paginationRender",e,a[0])):e.emit("paginationUpdate",e,a[0]),a[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](n.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el,i="";if("bullets"===t.type){for(var o=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,a=0;a<o;a+=1)t.renderBullet?i+=t.renderBullet.call(e,a,t.bulletClass):i+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";r.html(i),e.pagination.bullets=r.find("."+t.bulletClass)}"fraction"===t.type&&(i=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',r.html(i)),"progressbar"===t.type&&(i=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',r.html(i)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=r(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"===typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click","."+t.bulletClass,(function(t){t.preventDefault();var n=r(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),V.extend(e.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click","."+t.bulletClass)}}},dt={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=e.rtlTranslate,r=e.progress,i=t.dragSize,o=t.trackSize,a=t.$dragEl,s=t.$el,u=e.params.scrollbar,l=i,c=(o-i)*r;n?(c=-c)>0?(l=i-c,c=0):-c+i>o&&(l=o+c):c<0?(l=i+c,c=0):c+i>o&&(l=o-c),e.isHorizontal()?(q.transforms3d?a.transform("translate3d("+c+"px, 0, 0)"):a.transform("translateX("+c+"px)"),a[0].style.width=l+"px"):(q.transforms3d?a.transform("translate3d(0px, "+c+"px, 0)"):a.transform("translateY("+c+"px)"),a[0].style.height=l+"px"),u.hide&&(clearTimeout(e.scrollbar.timeout),s[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){s[0].style.opacity=0,s.transition(400)}),1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=t.$dragEl,r=t.$el;n[0].style.width="",n[0].style.height="";var i,o=e.isHorizontal()?r[0].offsetWidth:r[0].offsetHeight,a=e.size/e.virtualSize,s=a*(o/e.size);i="auto"===e.params.scrollbar.dragSize?o*a:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width=i+"px":n[0].style.height=i+"px",r[0].style.display=a>=1?"none":"",e.params.scrollbar.hide&&(r[0].style.opacity=0),V.extend(t,{trackSize:o,divider:a,moveDivider:s,dragSize:i}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},setDragPosition:function(e){var t,n=this,r=n.scrollbar,i=n.rtlTranslate,o=r.$el,a=r.dragSize,s=r.trackSize;t=((n.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY)-o.offset()[n.isHorizontal()?"left":"top"]-a/2)/(s-a),t=Math.max(Math.min(t,1),0),i&&(t=1-t);var u=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*t;n.updateProgress(u),n.setTranslate(u),n.updateActiveIndex(),n.updateSlidesClasses()},onDragStart:function(e){var t=this,n=t.params.scrollbar,r=t.scrollbar,i=t.$wrapperEl,o=r.$el,a=r.$dragEl;t.scrollbar.isTouched=!0,e.preventDefault(),e.stopPropagation(),i.transition(100),a.transition(100),r.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),o.transition(0),n.hide&&o.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,n=t.scrollbar,r=t.$wrapperEl,i=n.$el,o=n.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),r.transition(0),i.transition(0),o.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,n=t.params.scrollbar,r=t.scrollbar.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=V.nextTick((function(){r.css("opacity",0),r.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var t=this;if(t.params.scrollbar.el){var n=t.scrollbar,r=t.touchEventsTouch,i=t.touchEventsDesktop,o=t.params,a=n.$el[0],s=!(!q.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},u=!(!q.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};q.touch?(a.addEventListener(r.start,t.scrollbar.onDragStart,s),a.addEventListener(r.move,t.scrollbar.onDragMove,s),a.addEventListener(r.end,t.scrollbar.onDragEnd,u)):(a.addEventListener(i.start,t.scrollbar.onDragStart,s),e.addEventListener(i.move,t.scrollbar.onDragMove,s),e.addEventListener(i.end,t.scrollbar.onDragEnd,u))}},disableDraggable:function(){var t=this;if(t.params.scrollbar.el){var n=t.scrollbar,r=t.touchEventsTouch,i=t.touchEventsDesktop,o=t.params,a=n.$el[0],s=!(!q.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},u=!(!q.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};q.touch?(a.removeEventListener(r.start,t.scrollbar.onDragStart,s),a.removeEventListener(r.move,t.scrollbar.onDragMove,s),a.removeEventListener(r.end,t.scrollbar.onDragEnd,u)):(a.removeEventListener(i.start,t.scrollbar.onDragStart,s),e.removeEventListener(i.move,t.scrollbar.onDragMove,s),e.removeEventListener(i.end,t.scrollbar.onDragEnd,u))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.$el,i=e.params.scrollbar,o=r(i.el);e.params.uniqueNavElements&&"string"===typeof i.el&&o.length>1&&1===n.find(i.el).length&&(o=n.find(i.el));var a=o.find("."+e.params.scrollbar.dragClass);0===a.length&&(a=r('<div class="'+e.params.scrollbar.dragClass+'"></div>'),o.append(a)),V.extend(t,{$el:o,el:o[0],$dragEl:a,dragEl:a[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},ht={setTransform:function(e,t){var n=this,i=n.rtl,o=r(e),a=i?-1:1,s=o.attr("data-swiper-parallax")||"0",u=o.attr("data-swiper-parallax-x"),l=o.attr("data-swiper-parallax-y"),c=o.attr("data-swiper-parallax-scale"),f=o.attr("data-swiper-parallax-opacity");if(u||l?(u=u||"0",l=l||"0"):n.isHorizontal()?(u=s,l="0"):(l=s,u="0"),u=u.indexOf("%")>=0?parseInt(u,10)*t*a+"%":u*t*a+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px","undefined"!==typeof f&&null!==f){var p=f-(f-1)*(1-Math.abs(t));o[0].style.opacity=p}if("undefined"===typeof c||null===c)o.transform("translate3d("+u+", "+l+", 0px)");else{var d=c-(c-1)*(1-Math.abs(t));o.transform("translate3d("+u+", "+l+", 0px) scale("+d+")")}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,i=e.progress,o=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each((function(t,n){e.parallax.setTransform(n,i)})),n.each((function(t,n){var a=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(a+=Math.ceil(t/2)-i*(o.length-1)),a=Math.min(Math.max(a,-1),1),r(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each((function(t,n){e.parallax.setTransform(n,a)}))}))},setTransition:function(e){void 0===e&&(e=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each((function(t,n){var i=r(n),o=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(o=0),i.transition(o)}))}},gt={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,r=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(r-t,2)+Math.pow(i-n,2))},onGestureStart:function(e){var t=this,n=t.params.zoom,i=t.zoom,o=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!q.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,o.scaleStart=gt.getDistanceBetweenTouches(e)}o.$slideEl&&o.$slideEl.length||(o.$slideEl=r(e.target).closest(".swiper-slide"),0===o.$slideEl.length&&(o.$slideEl=t.slides.eq(t.activeIndex)),o.$imageEl=o.$slideEl.find("img, svg, canvas"),o.$imageWrapEl=o.$imageEl.parent("."+n.containerClass),o.maxRatio=o.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==o.$imageWrapEl.length)?(o.$imageEl.transition(0),t.zoom.isScaling=!0):o.$imageEl=void 0},onGestureChange:function(e){var t=this,n=t.params.zoom,r=t.zoom,i=r.gesture;if(!q.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;r.fakeGestureMoved=!0,i.scaleMove=gt.getDistanceBetweenTouches(e)}i.$imageEl&&0!==i.$imageEl.length&&(q.gestures?r.scale=e.scale*r.currentScale:r.scale=i.scaleMove/i.scaleStart*r.currentScale,r.scale>i.maxRatio&&(r.scale=i.maxRatio-1+Math.pow(r.scale-i.maxRatio+1,.5)),r.scale<n.minRatio&&(r.scale=n.minRatio+1-Math.pow(n.minRatio-r.scale+1,.5)),i.$imageEl.transform("translate3d(0,0,0) scale("+r.scale+")"))},onGestureEnd:function(e){var t=this,n=t.params.zoom,r=t.zoom,i=r.gesture;if(!q.gestures){if(!r.fakeGestureTouched||!r.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!Ne.android)return;r.fakeGestureTouched=!1,r.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,i.maxRatio),n.minRatio),i.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+r.scale+")"),r.currentScale=r.scale,r.isScaling=!1,1===r.scale&&(i.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,n=t.gesture,r=t.image;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched||(Ne.android&&e.preventDefault(),r.isTouched=!0,r.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,n=t.zoom,r=n.gesture,i=n.image,o=n.velocity;if(r.$imageEl&&0!==r.$imageEl.length&&(t.allowClick=!1,i.isTouched&&r.$slideEl)){i.isMoved||(i.width=r.$imageEl[0].offsetWidth,i.height=r.$imageEl[0].offsetHeight,i.startX=V.getTranslate(r.$imageWrapEl[0],"x")||0,i.startY=V.getTranslate(r.$imageWrapEl[0],"y")||0,r.slideWidth=r.$slideEl[0].offsetWidth,r.slideHeight=r.$slideEl[0].offsetHeight,r.$imageWrapEl.transition(0),t.rtl&&(i.startX=-i.startX,i.startY=-i.startY));var a=i.width*n.scale,s=i.height*n.scale;if(!(a<r.slideWidth&&s<r.slideHeight)){if(i.minX=Math.min(r.slideWidth/2-a/2,0),i.maxX=-i.minX,i.minY=Math.min(r.slideHeight/2-s/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!i.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}e.preventDefault(),e.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-Math.pow(i.minX-i.currentX+1,.8)),i.currentX>i.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8)),i.currentY<i.minY&&(i.currentY=i.minY+1-Math.pow(i.minY-i.currentY+1,.8)),i.currentY>i.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8)),o.prevPositionX||(o.prevPositionX=i.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=i.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(i.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(i.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(i.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(i.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=i.touchesCurrent.x,o.prevPositionY=i.touchesCurrent.y,o.prevTime=Date.now(),r.$imageWrapEl.transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,n=e.image,r=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var i=300,o=300,a=r.x*i,s=n.currentX+a,u=r.y*o,l=n.currentY+u;0!==r.x&&(i=Math.abs((s-n.currentX)/r.x)),0!==r.y&&(o=Math.abs((l-n.currentY)/r.y));var c=Math.max(i,o);n.currentX=s,n.currentY=l;var f=n.width*e.scale,p=n.height*e.scale;n.minX=Math.min(t.slideWidth/2-f/2,0),n.maxX=-n.minX,n.minY=Math.min(t.slideHeight/2-p/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),t.$imageWrapEl.transition(c).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,n=t.gesture;n.$slideEl&&e.previousIndex!==e.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,n,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m=this,b=m.zoom,w=m.params.zoom,_=b.gesture,S=b.image;_.$slideEl||(_.$slideEl=m.clickedSlide?r(m.clickedSlide):m.slides.eq(m.activeIndex),_.$imageEl=_.$slideEl.find("img, svg, canvas"),_.$imageWrapEl=_.$imageEl.parent("."+w.containerClass)),_.$imageEl&&0!==_.$imageEl.length&&(_.$slideEl.addClass(""+w.zoomedSlideClass),"undefined"===typeof S.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=S.touchesStart.x,n=S.touchesStart.y),b.scale=_.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,b.currentScale=_.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,e?(v=_.$slideEl[0].offsetWidth,y=_.$slideEl[0].offsetHeight,i=_.$slideEl.offset().left+v/2-t,o=_.$slideEl.offset().top+y/2-n,u=_.$imageEl[0].offsetWidth,l=_.$imageEl[0].offsetHeight,c=u*b.scale,f=l*b.scale,h=-(p=Math.min(v/2-c/2,0)),g=-(d=Math.min(y/2-f/2,0)),(a=i*b.scale)<p&&(a=p),a>h&&(a=h),(s=o*b.scale)<d&&(s=d),s>g&&(s=g)):(a=0,s=0),_.$imageWrapEl.transition(300).transform("translate3d("+a+"px, "+s+"px,0)"),_.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+b.scale+")"))},out:function(){var e=this,t=e.zoom,n=e.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=e.clickedSlide?r(e.clickedSlide):e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+n.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+n.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var n=!("touchstart"!==e.touchEvents.start||!q.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};q.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var n=!("touchstart"!==e.touchEvents.start||!q.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};q.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},vt={loadInSlide:function(e,t){void 0===t&&(t=!0);var n=this,i=n.params.lazy;if("undefined"!==typeof e&&0!==n.slides.length){var o=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):n.slides.eq(e),a=o.find("."+i.elementClass+":not(."+i.loadedClass+"):not(."+i.loadingClass+")");!o.hasClass(i.elementClass)||o.hasClass(i.loadedClass)||o.hasClass(i.loadingClass)||(a=a.add(o[0])),0!==a.length&&a.each((function(e,a){var s=r(a);s.addClass(i.loadingClass);var u=s.attr("data-background"),l=s.attr("data-src"),c=s.attr("data-srcset"),f=s.attr("data-sizes");n.loadImage(s[0],l||u,c,f,!1,(function(){if("undefined"!==typeof n&&null!==n&&n&&(!n||n.params)&&!n.destroyed){if(u?(s.css("background-image",'url("'+u+'")'),s.removeAttr("data-background")):(c&&(s.attr("srcset",c),s.removeAttr("data-srcset")),f&&(s.attr("sizes",f),s.removeAttr("data-sizes")),l&&(s.attr("src",l),s.removeAttr("data-src"))),s.addClass(i.loadedClass).removeClass(i.loadingClass),o.find("."+i.preloaderClass).remove(),n.params.loop&&t){var e=o.attr("data-swiper-slide-index");if(o.hasClass(n.params.slideDuplicateClass)){var r=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(r.index(),!1)}else{var a=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');n.lazy.loadInSlide(a.index(),!1)}}n.emit("lazyImageReady",o[0],s[0])}})),n.emit("lazyImageLoad",o[0],s[0])}))}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,i=e.slides,o=e.activeIndex,a=e.virtual&&n.virtual.enabled,s=n.lazy,u=n.slidesPerView;function l(e){if(a){if(t.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(i[e])return!0;return!1}function c(e){return a?r(e).attr("data-swiper-slide-index"):r(e).index()}if("auto"===u&&(u=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+n.slideVisibleClass).each((function(t,n){var i=a?r(n).attr("data-swiper-slide-index"):r(n).index();e.lazy.loadInSlide(i)}));else if(u>1)for(var f=o;f<o+u;f+=1)l(f)&&e.lazy.loadInSlide(f);else e.lazy.loadInSlide(o);if(s.loadPrevNext)if(u>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){for(var p=s.loadPrevNextAmount,d=u,h=Math.min(o+d+Math.max(p,d),i.length),g=Math.max(o-Math.max(d,p),0),v=o+u;v<h;v+=1)l(v)&&e.lazy.loadInSlide(v);for(var y=g;y<o;y+=1)l(y)&&e.lazy.loadInSlide(y)}else{var m=t.children("."+n.slideNextClass);m.length>0&&e.lazy.loadInSlide(c(m));var b=t.children("."+n.slidePrevClass);b.length>0&&e.lazy.loadInSlide(c(b))}}},yt={LinearSpline:function(e,t){var n,r,i=function(){var e,t,n;return function(r,i){for(t=-1,e=r.length;e-t>1;)r[n=e+t>>1]<=i?t=n:e=n;return e}}();return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=i(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new yt.LinearSpline(t.slidesGrid,e.slidesGrid):new yt.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,r,i=this,o=i.controller.control;function a(e){var t=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(e),r=-i.controller.spline.interpolate(-t)),r&&"container"!==i.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(i.maxTranslate()-i.minTranslate()),r=(t-i.minTranslate())*n+e.minTranslate()),i.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,i),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(o))for(var s=0;s<o.length;s+=1)o[s]!==t&&o[s]instanceof Ze&&a(o[s]);else o instanceof Ze&&t!==o&&a(o)},setTransition:function(e,t){var n,r=this,i=r.controller.control;function o(t){t.setTransition(e,r),0!==e&&(t.transitionStart(),t.params.autoHeight&&V.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){i&&(t.params.loop&&"slide"===r.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(i))for(n=0;n<i.length;n+=1)i[n]!==t&&i[n]instanceof Ze&&o(i[n]);else i instanceof Ze&&t!==i&&o(i)}},mt={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;V.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:yt.getInterpolateFunction.bind(e),setTranslate:yt.setTranslate.bind(e),setTransition:yt.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){var n=this;n.controller.control&&n.controller.setTranslate(e,t)},setTransition:function(e,t){var n=this;n.controller.control&&n.controller.setTransition(e,t)}}},bt={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,n=t.params.a11y;if(13===e.keyCode){var i=r(e.target);t.navigation&&t.navigation.$nextEl&&i.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(n.lastSlideMessage):t.a11y.notify(n.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&i.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(n.firstSlideMessage):t.a11y.notify(n.prevSlideMessage)),t.pagination&&i.is("."+t.params.pagination.bulletClass)&&i[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,n=t.$nextEl,r=t.$prevEl;r&&r.length>0&&(e.isBeginning?e.a11y.disableEl(r):e.a11y.enableEl(r)),n&&n.length>0&&(e.isEnd?e.a11y.disableEl(n):e.a11y.enableEl(n))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(n,i){var o=r(i);e.a11y.makeElFocusable(o),e.a11y.addElRole(o,"button"),e.a11y.addElLabel(o,t.paginationBulletMessage.replace(/{{index}}/,o.index()+1))}))},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,n,r=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,r.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,r.prevSlideMessage),n.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy:function(){var e,t,n=this;n.a11y.liveRegion&&n.a11y.liveRegion.length>0&&n.a11y.liveRegion.remove(),n.navigation&&n.navigation.$nextEl&&(e=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(t=n.navigation.$prevEl),e&&e.off("keydown",n.a11y.onEnterKey),t&&t.off("keydown",n.a11y.onEnterKey),n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown","."+n.params.pagination.bulletClass,n.a11y.onEnterKey)}},wt={init:function(){var e=this;if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var n=e.history;n.initialized=!0,n.paths=wt.getPathValues(),(n.paths.key||n.paths.value)&&(n.scrollToSlide(0,n.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||t.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=wt.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),n=e.length;return{key:e[n-2],value:e[n-1]}},setHistory:function(e,n){var r=this;if(r.history.initialized&&r.params.history.enabled){var i=r.slides.eq(n),o=wt.slugify(i.attr("data-history"));t.location.pathname.includes(e)||(o=e+"/"+o);var a=t.history.state;a&&a.value===o||(r.params.history.replaceState?t.history.replaceState({value:o},null,o):t.history.pushState({value:o},null,o))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){var r=this;if(t)for(var i=0,o=r.slides.length;i<o;i+=1){var a=r.slides.eq(i);if(wt.slugify(a.attr("data-history"))===t&&!a.hasClass(r.params.slideDuplicateClass)){var s=a.index();r.slideTo(s,e,n)}}else r.slideTo(0,e,n)}},_t={onHashCange:function(){var t=this,n=e.location.hash.replace("#","");if(n!==t.slides.eq(t.activeIndex).attr("data-hash")){var r=t.$wrapperEl.children("."+t.params.slideClass+'[data-hash="'+n+'"]').index();if("undefined"===typeof r)return;t.slideTo(r)}},setHash:function(){var n=this;if(n.hashNavigation.initialized&&n.params.hashNavigation.enabled)if(n.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+n.slides.eq(n.activeIndex).attr("data-hash")||0);else{var r=n.slides.eq(n.activeIndex),i=r.attr("data-hash")||r.attr("data-history");e.location.hash=i||""}},init:function(){var n=this;if(!(!n.params.hashNavigation.enabled||n.params.history&&n.params.history.enabled)){n.hashNavigation.initialized=!0;var i=e.location.hash.replace("#","");if(i)for(var o=0,a=0,s=n.slides.length;a<s;a+=1){var u=n.slides.eq(a);if((u.attr("data-hash")||u.attr("data-history"))===i&&!u.hasClass(n.params.slideDuplicateClass)){var l=u.index();n.slideTo(l,o,n.params.runCallbacksOnInit,!0)}}n.params.hashNavigation.watchState&&r(t).on("hashchange",n.hashNavigation.onHashCange)}},destroy:function(){var e=this;e.params.hashNavigation.watchState&&r(t).off("hashchange",e.hashNavigation.onHashCange)}},St={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),e.autoplay.timeout=V.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))}),n)},start:function(){var e=this;return"undefined"===typeof e.autoplay.timeout&&!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0)},stop:function(){var e=this;return!!e.autoplay.running&&"undefined"!==typeof e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0)},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},Et={setTranslate:function(){for(var e=this,t=e.slides,n=0;n<t.length;n+=1){var r=e.slides.eq(n),i=-r[0].swiperSlideOffset;e.params.virtualTranslate||(i-=e.translate);var o=0;e.isHorizontal()||(o=i,i=0);var a=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(r[0].progress),0):1+Math.min(Math.max(r[0].progress,-1),0);r.css({opacity:a}).transform("translate3d("+i+"px, "+o+"px, 0px)")}},setTransition:function(e){var t=this,n=t.slides,r=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var i=!1;n.transitionEnd((function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)r.trigger(e[n])}}))}}},xt={setTranslate:function(){var e,t=this,n=t.$el,i=t.$wrapperEl,o=t.slides,a=t.width,s=t.height,u=t.rtlTranslate,l=t.size,c=t.params.cubeEffect,f=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled,d=0;c.shadow&&(f?(0===(e=i.find(".swiper-cube-shadow")).length&&(e=r('<div class="swiper-cube-shadow"></div>'),i.append(e)),e.css({height:a+"px"})):0===(e=n.find(".swiper-cube-shadow")).length&&(e=r('<div class="swiper-cube-shadow"></div>'),n.append(e)));for(var h=0;h<o.length;h+=1){var g=o.eq(h),v=h;p&&(v=parseInt(g.attr("data-swiper-slide-index"),10));var y=90*v,m=Math.floor(y/360);u&&(y=-y,m=Math.floor(-y/360));var b=Math.max(Math.min(g[0].progress,1),-1),w=0,_=0,S=0;v%4===0?(w=4*-m*l,S=0):(v-1)%4===0?(w=0,S=4*-m*l):(v-2)%4===0?(w=l+4*m*l,S=l):(v-3)%4===0&&(w=-l,S=3*l+4*l*m),u&&(w=-w),f||(_=w,w=0);var E="rotateX("+(f?0:-y)+"deg) rotateY("+(f?y:0)+"deg) translate3d("+w+"px, "+_+"px, "+S+"px)";if(b<=1&&b>-1&&(d=90*v+90*b,u&&(d=90*-v-90*b)),g.transform(E),c.slideShadows){var x=f?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),T=f?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===x.length&&(x=r('<div class="swiper-slide-shadow-'+(f?"left":"top")+'"></div>'),g.append(x)),0===T.length&&(T=r('<div class="swiper-slide-shadow-'+(f?"right":"bottom")+'"></div>'),g.append(T)),x.length&&(x[0].style.opacity=Math.max(-b,0)),T.length&&(T[0].style.opacity=Math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),c.shadow)if(f)e.transform("translate3d(0px, "+(a/2+c.shadowOffset)+"px, "+-a/2+"px) rotateX(90deg) rotateZ(0deg) scale("+c.shadowScale+")");else{var k=Math.abs(d)-90*Math.floor(Math.abs(d)/90),C=1.5-(Math.sin(2*k*Math.PI/360)/2+Math.cos(2*k*Math.PI/360)/2),O=c.shadowScale,A=c.shadowScale/C,P=c.shadowOffset;e.transform("scale3d("+O+", 1, "+A+") translate3d(0px, "+(s/2+P)+"px, "+-s/2/A+"px) rotateX(-90deg)")}var I=W.isSafari||W.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,"+I+"px) rotateX("+(t.isHorizontal()?0:d)+"deg) rotateY("+(t.isHorizontal()?-d:0)+"deg)")},setTransition:function(e){var t=this,n=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&n.find(".swiper-cube-shadow").transition(e)}},Tt={setTranslate:function(){for(var e=this,t=e.slides,n=e.rtlTranslate,i=0;i<t.length;i+=1){var o=t.eq(i),a=o[0].progress;e.params.flipEffect.limitRotation&&(a=Math.max(Math.min(o[0].progress,1),-1));var s=-180*a,u=0,l=-o[0].swiperSlideOffset,c=0;if(e.isHorizontal()?n&&(s=-s):(c=l,l=0,u=-s,s=0),o[0].style.zIndex=-Math.abs(Math.round(a))+t.length,e.params.flipEffect.slideShadows){var f=e.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),p=e.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===f.length&&(f=r('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),o.append(f)),0===p.length&&(p=r('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),o.append(p)),f.length&&(f[0].style.opacity=Math.max(-a,0)),p.length&&(p[0].style.opacity=Math.max(a,0))}o.transform("translate3d("+l+"px, "+c+"px, 0px) rotateX("+u+"deg) rotateY("+s+"deg)")}},setTransition:function(e){var t=this,n=t.slides,r=t.activeIndex,i=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var o=!1;n.eq(r).transitionEnd((function(){if(!o&&t&&!t.destroyed){o=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}}))}}},kt={setTranslate:function(){for(var e=this,t=e.width,n=e.height,i=e.slides,o=e.$wrapperEl,a=e.slidesSizesGrid,s=e.params.coverflowEffect,u=e.isHorizontal(),l=e.translate,c=u?t/2-l:n/2-l,f=u?s.rotate:-s.rotate,p=s.depth,d=0,h=i.length;d<h;d+=1){var g=i.eq(d),v=a[d],y=(c-g[0].swiperSlideOffset-v/2)/v*s.modifier,m=u?f*y:0,b=u?0:f*y,w=-p*Math.abs(y),_=u?0:s.stretch*y,S=u?s.stretch*y:0;Math.abs(S)<.001&&(S=0),Math.abs(_)<.001&&(_=0),Math.abs(w)<.001&&(w=0),Math.abs(m)<.001&&(m=0),Math.abs(b)<.001&&(b=0);var E="translate3d("+S+"px,"+_+"px,"+w+"px) rotateX("+b+"deg) rotateY("+m+"deg)";if(g.transform(E),g[0].style.zIndex=1-Math.abs(Math.round(y)),s.slideShadows){var x=u?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),T=u?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===x.length&&(x=r('<div class="swiper-slide-shadow-'+(u?"left":"top")+'"></div>'),g.append(x)),0===T.length&&(T=r('<div class="swiper-slide-shadow-'+(u?"right":"bottom")+'"></div>'),g.append(T)),x.length&&(x[0].style.opacity=y>0?y:0),T.length&&(T[0].style.opacity=-y>0?-y:0)}}(q.pointerEvents||q.prefixedPointerEvents)&&(o[0].style.perspectiveOrigin=c+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},Ct={init:function(){var e=this,t=e.params.thumbs,n=e.constructor;t.swiper instanceof n?(e.thumbs.swiper=t.swiper,V.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),V.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):V.isObject(t.swiper)&&(e.thumbs.swiper=new n(V.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var e=this,t=e.thumbs.swiper;if(t){var n=t.clickedIndex,i=t.clickedSlide;if((!i||!r(i).hasClass(e.params.thumbs.slideThumbActiveClass))&&"undefined"!==typeof n&&null!==n){var o;if(o=t.params.loop?parseInt(r(t.clickedSlide).attr("data-swiper-slide-index"),10):n,e.params.loop){var a=e.activeIndex;e.slides.eq(a).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,a=e.activeIndex);var s=e.slides.eq(a).prevAll('[data-swiper-slide-index="'+o+'"]').eq(0).index(),u=e.slides.eq(a).nextAll('[data-swiper-slide-index="'+o+'"]').eq(0).index();o="undefined"===typeof s?u:"undefined"===typeof u?s:u-a<a-s?u:s}e.slideTo(o)}}},update:function(e){var t=this,n=t.thumbs.swiper;if(n){var r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;if(t.realIndex!==n.realIndex){var i,o=n.activeIndex;if(n.params.loop){n.slides.eq(o).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,o=n.activeIndex);var a=n.slides.eq(o).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),s=n.slides.eq(o).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();i="undefined"===typeof a?s:"undefined"===typeof s?a:s-o===o-a?o:s-o<o-a?s:a}else i=t.realIndex;n.visibleSlidesIndexes.indexOf(i)<0&&(n.params.centeredSlides?i=i>o?i-Math.floor(r/2)+1:i+Math.floor(r/2)-1:i>o&&(i=i-r+1),n.slideTo(i,e?0:void 0))}var u=1,l=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(u=t.params.slidesPerView),n.slides.removeClass(l),n.params.loop)for(var c=0;c<u;c+=1)n.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+c)+'"]').addClass(l);else for(var f=0;f<u;f+=1)n.slides.eq(t.realIndex+f).addClass(l)}}},Ot=[Xe,et,tt,nt,it,at,ut,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;V.extend(e,{mousewheel:{enabled:!1,enable:ct.enable.bind(e),disable:ct.disable.bind(e),handle:ct.handle.bind(e),handleMouseEnter:ct.handleMouseEnter.bind(e),handleMouseLeave:ct.handleMouseLeave.bind(e),lastScrollTime:V.now()}})},on:{init:function(){var e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;V.extend(e,{navigation:{init:ft.init.bind(e),update:ft.update.bind(e),destroy:ft.destroy.bind(e),onNextClick:ft.onNextClick.bind(e),onPrevClick:ft.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,n=this,i=n.navigation,o=i.$nextEl,a=i.$prevEl;!n.params.navigation.hideOnClick||r(e.target).is(a)||r(e.target).is(o)||(o?t=o.hasClass(n.params.navigation.hiddenClass):a&&(t=a.hasClass(n.params.navigation.hiddenClass)),!0===t?n.emit("navigationShow",n):n.emit("navigationHide",n),o&&o.toggleClass(n.params.navigation.hiddenClass),a&&a.toggleClass(n.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;V.extend(e,{pagination:{init:pt.init.bind(e),render:pt.render.bind(e),update:pt.update.bind(e),destroy:pt.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;(e.params.loop||"undefined"===typeof e.snapIndex)&&e.pagination.update()},snapIndexChange:function(){var e=this;e.params.loop||e.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){var t=this;t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!r(e.target).hasClass(t.params.pagination.bulletClass)&&(!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;V.extend(e,{scrollbar:{init:dt.init.bind(e),destroy:dt.destroy.bind(e),updateSize:dt.updateSize.bind(e),setTranslate:dt.setTranslate.bind(e),setTransition:dt.setTransition.bind(e),enableDraggable:dt.enableDraggable.bind(e),disableDraggable:dt.disableDraggable.bind(e),setDragPosition:dt.setDragPosition.bind(e),onDragStart:dt.onDragStart.bind(e),onDragMove:dt.onDragMove.bind(e),onDragEnd:dt.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;V.extend(e,{parallax:{setTransform:ht.setTransform.bind(e),setTranslate:ht.setTranslate.bind(e),setTransition:ht.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(){var e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate:function(){var e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition:function(e){var t=this;t.params.parallax.enabled&&t.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(n){t[n]=gt[n].bind(e)})),V.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:function(){return n},set:function(t){if(n!==t){var r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,i=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,r,i)}n=t}})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;V.extend(e,{lazy:{initialImageLoaded:!1,load:vt.load.bind(e),loadInSlide:vt.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},mt,{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;V.extend(e,{a11y:{liveRegion:r('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(bt).forEach((function(t){e.a11y[t]=bt[t].bind(e)}))},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(){var e=this;e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(){var e=this;e.params.a11y.enabled&&e.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;V.extend(e,{history:{init:wt.init.bind(e),setHistory:wt.setHistory.bind(e),setHistoryPopState:wt.setHistoryPopState.bind(e),scrollToSlide:wt.scrollToSlide.bind(e),destroy:wt.destroy.bind(e)}})},on:{init:function(){var e=this;e.params.history.enabled&&e.history.init()},destroy:function(){var e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;V.extend(e,{hashNavigation:{initialized:!1,init:_t.init.bind(e),destroy:_t.destroy.bind(e),setHash:_t.setHash.bind(e),onHashCange:_t.onHashCange.bind(e)}})},on:{init:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd:function(){var e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;V.extend(e,{autoplay:{running:!1,paused:!1,run:St.run.bind(e),start:St.start.bind(e),stop:St.stop.bind(e),pause:St.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){var e=this;e.params.autoplay.enabled&&e.autoplay.start()},beforeTransitionStart:function(e,t){var n=this;n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(e):n.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy:function(){var e=this;e.autoplay.running&&e.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;V.extend(e,{fadeEffect:{setTranslate:Et.setTranslate.bind(e),setTransition:Et.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};V.extend(e.params,t),V.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e){var t=this;"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;V.extend(e,{cubeEffect:{setTranslate:xt.setTranslate.bind(e),setTransition:xt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};V.extend(e.params,t),V.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e){var t=this;"cube"===t.params.effect&&t.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;V.extend(e,{flipEffect:{setTranslate:Tt.setTranslate.bind(e),setTransition:Tt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};V.extend(e.params,t),V.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e){var t=this;"flip"===t.params.effect&&t.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;V.extend(e,{coverflowEffect:{setTranslate:kt.setTranslate.bind(e),setTransition:kt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){var e=this;"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e){var t=this;"coverflow"===t.params.effect&&t.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;V.extend(e,{thumbs:{swiper:null,init:Ct.init.bind(e),update:Ct.update.bind(e),onThumbClick:Ct.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},update:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},resize:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},observerUpdate:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}}];return"undefined"===typeof Ze.use&&(Ze.use=Ze.Class.use,Ze.installModule=Ze.Class.installModule),Ze.use(Ot),Ze}()},64303:(e,t,n)=>{"use strict";n.d(t,{A:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:e)},91907:function(e,t,n){var r;e=n.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,u=36,l=1,c=26,f=38,p=700,d=72,h=128,g="-",v=/^xn--/,y=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=u-l,_=Math.floor,S=String.fromCharCode;function E(e){throw new RangeError(b[e])}function x(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function T(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+x((e=e.replace(m,".")).split("."),t).join(".")}function k(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function C(e){return x(e,(function(e){var t="";return e>65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)})).join("")}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?_(e/p):e>>1,e+=_(e/t);e>w*c>>1;r+=u)e=_(e/w);return _(r+(w+1)*e/(e+f))}function P(e){var t,n,r,i,o,a,f,p,v,y,m,b=[],w=e.length,S=0,x=h,T=d;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&E("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<w;){for(o=S,a=1,f=u;i>=w&&E("invalid-input"),((p=(m=e.charCodeAt(i++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:u)>=u||p>_((s-S)/a))&&E("overflow"),S+=p*a,!(p<(v=f<=T?l:f>=T+c?c:f-T));f+=u)a>_(s/(y=u-v))&&E("overflow"),a*=y;T=A(S-o,t=b.length+1,0==o),_(S/t)>s-x&&E("overflow"),x+=_(S/t),S%=t,b.splice(S++,0,x)}return C(b)}function I(e){var t,n,r,i,o,a,f,p,v,y,m,b,w,x,T,C=[];for(b=(e=k(e)).length,t=h,n=0,o=d,a=0;a<b;++a)(m=e[a])<128&&C.push(S(m));for(r=i=C.length,i&&C.push(g);r<b;){for(f=s,a=0;a<b;++a)(m=e[a])>=t&&m<f&&(f=m);for(f-t>_((s-n)/(w=r+1))&&E("overflow"),n+=(f-t)*w,t=f,a=0;a<b;++a)if((m=e[a])<t&&++n>s&&E("overflow"),m==t){for(p=n,v=u;!(p<(y=v<=o?l:v>=o+c?c:v-o));v+=u)T=p-y,x=u-y,C.push(S(O(y+T%x,0))),p=_(T/x);C.push(S(O(p,0))),o=A(n,w,r==i),n=0,++r}++n,++t}return C.join("")}a={version:"1.4.1",ucs2:{decode:k,encode:C},decode:P,encode:I,toASCII:function(e){return T(e,(function(e){return y.test(e)?"xn--"+I(e):e}))},toUnicode:function(e){return T(e,(function(e){return v.test(e)?P(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},74080:(e,t,n)=>{"use strict";var r=n(91907);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),c=["%","/","?",";","#"].concat(l),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(22908);function m(e,t,n){if(e&&"object"===typeof e&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if("string"!==typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(a);u[0]=u[0].replace(/\\/g,"/");var m=e=u.join(a);if(m=m.trim(),!n&&1===e.split("#").length){var b=s.exec(m);if(b)return this.path=m,this.href=m,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(m);if(w){var _=(w=w[0]).toLowerCase();this.protocol=_,m=m.substr(w.length)}if(n||w||m.match(/^\/\/[^@/]+@[^@/]+/)){var S="//"===m.substr(0,2);!S||w&&g[w]||(m=m.substr(2),this.slashes=!0)}if(!g[w]&&(S||w&&!v[w])){for(var E,x,T=-1,k=0;k<f.length;k++){-1!==(C=m.indexOf(f[k]))&&(-1===T||C<T)&&(T=C)}-1!==(x=-1===T?m.lastIndexOf("@"):m.lastIndexOf("@",T))&&(E=m.slice(0,x),m=m.slice(x+1),this.auth=decodeURIComponent(E)),T=-1;for(k=0;k<c.length;k++){var C;-1!==(C=m.indexOf(c[k]))&&(-1===T||C<T)&&(T=C)}-1===T&&(T=m.length),this.host=m.slice(0,T),m=m.slice(T),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var A=this.hostname.split(/\./),P=(k=0,A.length);k<P;k++){var I=A[k];if(I&&!I.match(p)){for(var j="",M=0,N=I.length;M<N;M++)I.charCodeAt(M)>127?j+="x":j+=I[M];if(!j.match(p)){var F=A.slice(0,k),R=A.slice(k+1),L=I.match(d);L&&(F.push(L[1]),R.unshift(L[2])),R.length&&(m="/"+R.join(".")+m),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=r.toASCII(this.hostname));var D=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+D,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!h[_])for(k=0,P=l.length;k<P;k++){var z=l[k];if(-1!==m.indexOf(z)){var B=encodeURIComponent(z);B===z&&(B=escape(z)),m=m.split(z).join(B)}}var H=m.indexOf("#");-1!==H&&(this.hash=m.substr(H),m=m.slice(0,H));var V=m.indexOf("?");if(-1!==V?(this.search=m.substr(V),this.query=m.substr(V+1),t&&(this.query=y.parse(this.query)),m=m.slice(0,V)):t&&(this.search="",this.query={}),m&&(this.pathname=m),v[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var q=this.search||"";this.path=D+q}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"===typeof this.query&&Object.keys(this.query).length&&(o=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"===typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var l=s[u];"protocol"!==l&&(n[l]=e[l])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var c=Object.keys(e),f=0;f<c.length;f++){var p=c[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",y=n.search||"";n.path=h+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=b||m||n.host&&e.pathname,_=w,S=n.pathname&&n.pathname.split("/")||[],E=(d=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(E&&(n.hostname="",n.port=null,n.host&&(""===S[0]?S[0]=n.host:S.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),w=w&&(""===d[0]||""===S[0])),b)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,S=d;else if(d.length)S||(S=[]),S.pop(),S=S.concat(d),n.search=e.search,n.query=e.query;else if(null!=e.search){if(E)n.host=S.shift(),n.hostname=n.host,(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.hostname=O.shift(),n.host=n.hostname);return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var x=S.slice(-1)[0],T=(n.host||e.host||S.length>1)&&("."===x||".."===x)||""===x,k=0,C=S.length;C>=0;C--)"."===(x=S[C])?S.splice(C,1):".."===x?(S.splice(C,1),k++):k&&(S.splice(C,1),k--);if(!w&&!_)for(;k--;k)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),T&&"/"!==S.join("/").substr(-1)&&S.push("");var O,A=""===S[0]||S[0]&&"/"===S[0].charAt(0);E&&(n.hostname=A?"":S.length?S.shift():"",n.host=n.hostname,(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.hostname=O.shift(),n.host=n.hostname));return(w=w||n.host&&S.length)&&!A&&S.unshift(""),S.length>0?n.pathname=S.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=m,t.resolve=function(e,t){return m(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"===typeof e&&(e=m(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},45956:(e,t,n)=>{"use strict";var r=n(65043);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,l(i)&&c({inst:i})}),[e,n,t]),a((function(){return l(i)&&c({inst:i}),e((function(){l(i)&&c({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},45039:(e,t,n)=>{"use strict";var r=n(65043),i=n(29461);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=i.useSyncExternalStore,s=r.useRef,u=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=s(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=l((function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,i]);var d=a(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),c(d),d}},29461:(e,t,n)=>{"use strict";e.exports=n(45956)},98443:(e,t,n)=>{"use strict";e.exports=n(45039)},92073:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});const r={randomUUID:"undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,o=new Uint8Array(16);function a(){if(!i&&!(i="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)}for(var s=[],u=0;u<256;++u)s.push((u+256).toString(16).slice(1));function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}const c=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();var i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=i[o];return t}return l(i)}},11844:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},40344:e=>{"use strict";e.exports=function(){}},94953:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DOMException:()=>_,Headers:()=>l,Request:()=>v,Response:()=>b,fetch:()=>S});var r={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(r.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!==typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function c(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=f(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=a(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[a(e)]},l.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},l.prototype.set=function(e,t){this.map[a(e)]=s(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),u(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),u(e)},r.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){var n=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=function(e){var t=e.toUpperCase();return g.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function m(e){var t=new l;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},h.call(v.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];b.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})};var _=self.DOMException;try{new _}catch(E){(_=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function S(e,t){return new Promise((function(n,i){var o=new v(e,t);if(o.signal&&o.signal.aborted)return i(new _("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:m(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var t="response"in a?a.response:a.responseText;n(new b(t,e))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new _("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&r.blob&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",s)}),a.send("undefined"===typeof o._bodyInit?null:o._bodyInit)}))}S.polyfill=!0,self.fetch||(self.fetch=S,self.Headers=l,self.Request=v,self.Response=b)},53351:(e,t,n)=>{var r={"./paint-with-python/code.js":[14686,686]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return n.e(t[1]).then((()=>n(i)))}i.keys=()=>Object.keys(r),i.id=53351,e.exports=i},68524:(e,t,n)=>{var r={"./paint-with-python/manifest.json":[32145,145]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return n.e(t[1]).then((()=>n.t(i,19)))}i.keys=()=>Object.keys(r),i.id=68524,e.exports=i},42634:()=>{},50197:(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];n&&(e=a(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+({206:"CollectionListLoader",359:"Pathway",412:"ProjectPrintContainer",419:"ProjectListContainer",543:"ProjectContainer",582:"ProjectEditorContainer",624:"PathwayContainer",675:"Collection",709:"SilentRenewContainerLoader",831:"Homepage"}[e]||e)+"."+{35:"8e1b4b03",119:"4d92b39b",145:"45a89af6",206:"313f5b04",348:"49b1f0b4",359:"9c6d38b0",382:"88e0520f",412:"6b881bea",419:"aeef3494",543:"9bd07936",582:"0186e4d5",621:"458e67f3",624:"2668c106",675:"714fe699",686:"fd5ba0b6",709:"ec981a52",735:"353a88cc",831:"10d7b229",875:"b2d998ca",922:"02a5f4bd"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+({206:"CollectionListLoader",359:"Pathway",412:"ProjectPrintContainer",419:"ProjectListContainer",543:"ProjectContainer",582:"ProjectEditorContainer",624:"PathwayContainer",675:"Collection",831:"Homepage"}[e]||e)+"."+{206:"add698f3",348:"0ef95efd",359:"39c14209",382:"a1ec53f1",412:"c74c953b",419:"5c2ef19c",543:"d39e3e25",582:"5cf9e3a5",624:"e4c9e0f9",675:"50736c05",831:"1f826343",875:"ce500695",922:"606bee7d"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="projects-ui:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var f=l[c];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){s=f;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(d);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),u&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var i=n.miniCssF(e),o=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}})(i,o))return t();((e,t,r,i,o)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)i();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");u.name="ChunkLoadError",u.code="CSS_CHUNK_LOAD_FAILED",u.type=r,u.request=s,a.parentNode&&a.parentNode.removeChild(a),o(u)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,o,null,t,r)})),t={792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{206:1,348:1,359:1,382:1,412:1,419:1,543:1,582:1,624:1,675:1,831:1,875:1,922:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{n.b=document.baseURI||self.location.href;var e={792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else if(875!=t){var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var i,o,a=r[0],s=r[1],u=r[2],l=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(u)u(n)}for(t&&t(r);l<a.length;l++)o=a[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkprojects_ui=self.webpackChunkprojects_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();n(88844)})();
//# sourceMappingURL=main.22fc3e30.js.map