diff --git a/assets/index-CNK-MD2z.js b/assets/index-CNK-MD2z.js new file mode 100644 index 0000000..3ac2016 --- /dev/null +++ b/assets/index-CNK-MD2z.js @@ -0,0 +1,876 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lf(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Lv={exports:{}},sc={},jv={exports:{}},at={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var yC;function $4(){if(yC)return at;yC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;function p(q){return q===null||typeof q!="object"?null:(q=d&&q[d]||q["@@iterator"],typeof q=="function"?q:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,g={};function _(q,z,j){this.props=q,this.context=z,this.refs=g,this.updater=j||m}_.prototype.isReactComponent={},_.prototype.setState=function(q,z){if(typeof q!="object"&&typeof q!="function"&&q!=null)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,q,z,"setState")},_.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function E(){}E.prototype=_.prototype;function x(q,z,j){this.props=q,this.context=z,this.refs=g,this.updater=j||m}var b=x.prototype=new E;b.constructor=x,y(b,_.prototype),b.isPureReactComponent=!0;var C=Array.isArray,v=Object.prototype.hasOwnProperty,k={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function N(q,z,j){var se,fe={},pe=null,xe=null;if(z!=null)for(se in z.ref!==void 0&&(xe=z.ref),z.key!==void 0&&(pe=""+z.key),z)v.call(z,se)&&!T.hasOwnProperty(se)&&(fe[se]=z[se]);var Te=arguments.length-2;if(Te===1)fe.children=j;else if(1>>16,m[1]!==61&&(c[p++]=g>>>8),m[0]!==61&&(c[p++]=g),y=0));return c};t&&(s=new t([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),r&&(!n.toBlob||!n.toBlobHD)&&(n.toBlob||(n.toBlob=function(l,u){if(u||(u="image/png"),this.mozGetAsFile){l(this.mozGetAsFile("canvas",u));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(u)){l(this.msToBlob());return}var c=Array.prototype.slice.call(arguments,1),d=this[a].apply(this,c),p=d.indexOf(","),m=d.substring(p+1),y=i.test(d.substring(0,p)),g;Blob.fake?(g=new Blob,y?g.encoding="base64":g.encoding="URI",g.data=m,g.size=m.length):t&&(y?g=new Blob([o(m)],{type:u}):g=new Blob([decodeURIComponent(m)],{type:u})),l(g)}),!n.toBlobHD&&n.toDataURLHD?n.toBlobHD=function(){a="toDataURLHD";var l=this.toBlob();return a="toDataURL",l}:n.toBlobHD=n.toBlob)}(typeof self<"u"&&self||typeof window<"u"&&window||xh.content||xh),xh}G4();var EC=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Y4:typeof navigator<"u"?nB(navigator.userAgent):iB()}function tB(e){return e!==""&&Z4.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var a=i.exec(e);return!!a&&[n,a]},!1)}function nB(e){var t=tB(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new K4;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length>>1,z=Y[q];if(0>>1;qi(fe,F))pei(xe,fe)?(Y[q]=xe,Y[pe]=F,q=pe):(Y[q]=fe,Y[se]=F,q=se);else if(pei(xe,F))Y[q]=xe,Y[pe]=F,q=pe;else break e}}return G}function i(Y,G){var F=Y.sortIndex-G.sortIndex;return F!==0?F:Y.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,p=3,m=!1,y=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(Y){for(var G=r(u);G!==null;){if(G.callback===null)n(u);else if(G.startTime<=Y)n(u),G.sortIndex=G.expirationTime,t(l,G);else break;G=r(u)}}function C(Y){if(g=!1,b(Y),!y)if(r(l)!==null)y=!0,V(v);else{var G=r(u);G!==null&&K(C,G.startTime-Y)}}function v(Y,G){y=!1,g&&(g=!1,E(N),N=-1),m=!0;var F=p;try{for(b(G),d=r(l);d!==null&&(!(d.expirationTime>G)||Y&&!D());){var q=d.callback;if(typeof q=="function"){d.callback=null,p=d.priorityLevel;var z=q(d.expirationTime<=G);G=e.unstable_now(),typeof z=="function"?d.callback=z:d===r(l)&&n(l),b(G)}else n(l);d=r(l)}if(d!==null)var j=!0;else{var se=r(u);se!==null&&K(C,se.startTime-G),j=!1}return j}finally{d=null,p=F,m=!1}}var k=!1,T=null,N=-1,M=5,B=-1;function D(){return!(e.unstable_now()-BY||125q?(Y.sortIndex=F,t(u,Y),r(l)===null&&Y===r(u)&&(g?(E(N),N=-1):g=!0,K(C,F-q))):(Y.sortIndex=z,t(l,Y),y||m||(y=!0,V(v))),Y},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(Y){var G=p;return function(){var F=p;p=G;try{return Y.apply(this,arguments)}finally{p=F}}}}(Uv)),Uv}var AC;function sB(){return AC||(AC=1,zv.exports=oB()),zv.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var TC;function lB(){if(TC)return Gn;TC=1;var e=po(),t=sB();function r(f){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+f,w=1;w"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,c={},d={};function p(f){return l.call(d,f)?!0:l.call(c,f)?!1:u.test(f)?d[f]=!0:(c[f]=!0,!1)}function m(f,h,w,S){if(w!==null&&w.type===0)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":return S?!1:w!==null?!w.acceptsBooleans:(f=f.toLowerCase().slice(0,5),f!=="data-"&&f!=="aria-");default:return!1}}function y(f,h,w,S){if(h===null||typeof h>"u"||m(f,h,w,S))return!0;if(S)return!1;if(w!==null)switch(w.type){case 3:return!h;case 4:return h===!1;case 5:return isNaN(h);case 6:return isNaN(h)||1>h}return!1}function g(f,h,w,S,A,R,H){this.acceptsBooleans=h===2||h===3||h===4,this.attributeName=S,this.attributeNamespace=A,this.mustUseProperty=w,this.propertyName=f,this.type=h,this.sanitizeURL=R,this.removeEmptyString=H}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(f){_[f]=new g(f,0,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var h=f[0];_[h]=new g(h,1,!1,f[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){_[f]=new g(f,2,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){_[f]=new g(f,2,!1,f,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(f){_[f]=new g(f,3,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){_[f]=new g(f,3,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){_[f]=new g(f,4,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){_[f]=new g(f,6,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){_[f]=new g(f,5,!1,f.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function x(f){return f[1].toUpperCase()}"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(f){var h=f.replace(E,x);_[h]=new g(h,1,!1,f,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(f){var h=f.replace(E,x);_[h]=new g(h,1,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var h=f.replace(E,x);_[h]=new g(h,1,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){_[f]=new g(f,1,!1,f.toLowerCase(),null,!1,!1)}),_.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){_[f]=new g(f,1,!1,f.toLowerCase(),null,!0,!0)});function b(f,h,w,S){var A=_.hasOwnProperty(h)?_[h]:null;(A!==null?A.type!==0:S||!(2Z||A[H]!==R[Z]){var ne=` +`+A[H].replace(" at new "," at ");return f.displayName&&ne.includes("")&&(ne=ne.replace("",f.displayName)),ne}while(1<=H&&0<=Z);break}}}finally{j=!1,Error.prepareStackTrace=w}return(f=f?f.displayName||f.name:"")?z(f):""}function fe(f){switch(f.tag){case 5:return z(f.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return f=se(f.type,!1),f;case 11:return f=se(f.type.render,!1),f;case 1:return f=se(f.type,!0),f;default:return""}}function pe(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case T:return"Fragment";case k:return"Portal";case M:return"Profiler";case N:return"StrictMode";case X:return"Suspense";case W:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case D:return(f.displayName||"Context")+".Consumer";case B:return(f._context.displayName||"Context")+".Provider";case $:var h=f.render;return f=f.displayName,f||(f=h.displayName||h.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case U:return h=f.displayName||null,h!==null?h:pe(f.type)||"Memo";case V:h=f._payload,f=f._init;try{return pe(f(h))}catch{}}return null}function xe(f){var h=f.type;switch(f.tag){case 24:return"Cache";case 9:return(h.displayName||"Context")+".Consumer";case 10:return(h._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=h.render,f=f.displayName||f.name||"",h.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return h;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(h);case 8:return h===N?"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(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h}return null}function Te(f){switch(typeof f){case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function Me(f){var h=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function Le(f){var h=Me(f)?"checked":"value",w=Object.getOwnPropertyDescriptor(f.constructor.prototype,h),S=""+f[h];if(!f.hasOwnProperty(h)&&typeof w<"u"&&typeof w.get=="function"&&typeof w.set=="function"){var A=w.get,R=w.set;return Object.defineProperty(f,h,{configurable:!0,get:function(){return A.call(this)},set:function(H){S=""+H,R.call(this,H)}}),Object.defineProperty(f,h,{enumerable:w.enumerable}),{getValue:function(){return S},setValue:function(H){S=""+H},stopTracking:function(){f._valueTracker=null,delete f[h]}}}}function Ve(f){f._valueTracker||(f._valueTracker=Le(f))}function Oe(f){if(!f)return!1;var h=f._valueTracker;if(!h)return!0;var w=h.getValue(),S="";return f&&(S=Me(f)?f.checked?"true":"false":f.value),f=S,f!==w?(h.setValue(f),!0):!1}function Fe(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}function We(f,h){var w=h.checked;return F({},h,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:w??f._wrapperState.initialChecked})}function it(f,h){var w=h.defaultValue==null?"":h.defaultValue,S=h.checked!=null?h.checked:h.defaultChecked;w=Te(h.value!=null?h.value:w),f._wrapperState={initialChecked:S,initialValue:w,controlled:h.type==="checkbox"||h.type==="radio"?h.checked!=null:h.value!=null}}function Ie(f,h){h=h.checked,h!=null&&b(f,"checked",h,!1)}function He(f,h){Ie(f,h);var w=Te(h.value),S=h.type;if(w!=null)S==="number"?(w===0&&f.value===""||f.value!=w)&&(f.value=""+w):f.value!==""+w&&(f.value=""+w);else if(S==="submit"||S==="reset"){f.removeAttribute("value");return}h.hasOwnProperty("value")?lt(f,h.type,w):h.hasOwnProperty("defaultValue")&<(f,h.type,Te(h.defaultValue)),h.checked==null&&h.defaultChecked!=null&&(f.defaultChecked=!!h.defaultChecked)}function Ke(f,h,w){if(h.hasOwnProperty("value")||h.hasOwnProperty("defaultValue")){var S=h.type;if(!(S!=="submit"&&S!=="reset"||h.value!==void 0&&h.value!==null))return;h=""+f._wrapperState.initialValue,w||h===f.value||(f.value=h),f.defaultValue=h}w=f.name,w!==""&&(f.name=""),f.defaultChecked=!!f._wrapperState.initialChecked,w!==""&&(f.name=w)}function lt(f,h,w){(h!=="number"||Fe(f.ownerDocument)!==f)&&(w==null?f.defaultValue=""+f._wrapperState.initialValue:f.defaultValue!==""+w&&(f.defaultValue=""+w))}var ht=Array.isArray;function ut(f,h,w,S){if(f=f.options,h){h={};for(var A=0;A"+h.valueOf().toString()+"",h=I.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;h.firstChild;)f.appendChild(h.firstChild)}});function Q(f,h){if(h){var w=f.firstChild;if(w&&w===f.lastChild&&w.nodeType===3){w.nodeValue=h;return}}f.textContent=h}var re={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},de=["Webkit","ms","Moz","O"];Object.keys(re).forEach(function(f){de.forEach(function(h){h=h+f.charAt(0).toUpperCase()+f.substring(1),re[h]=re[f]})});function me(f,h,w){return h==null||typeof h=="boolean"||h===""?"":w||typeof h!="number"||h===0||re.hasOwnProperty(f)&&re[f]?(""+h).trim():h+"px"}function Qe(f,h){f=f.style;for(var w in h)if(h.hasOwnProperty(w)){var S=w.indexOf("--")===0,A=me(w,h[w],S);w==="float"&&(w="cssFloat"),S?f.setProperty(w,A):f[w]=A}}var ct=F({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 ae(f,h){if(h){if(ct[f]&&(h.children!=null||h.dangerouslySetInnerHTML!=null))throw Error(r(137,f));if(h.dangerouslySetInnerHTML!=null){if(h.children!=null)throw Error(r(60));if(typeof h.dangerouslySetInnerHTML!="object"||!("__html"in h.dangerouslySetInnerHTML))throw Error(r(61))}if(h.style!=null&&typeof h.style!="object")throw Error(r(62))}}function le(f,h){if(f.indexOf("-")===-1)return typeof h.is=="string";switch(f){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 Ne=null;function wt(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var Et=null,Ze=null,In=null;function ni(f){if(f=Wu(f)){if(typeof Et!="function")throw Error(r(280));var h=f.stateNode;h&&(h=Ld(h),Et(f.stateNode,f.type,h))}}function _n(f){Ze?In?In.push(f):In=[f]:Ze=f}function Dr(){if(Ze){var f=Ze,h=In;if(In=Ze=null,ni(f),h)for(f=0;f>>=0,f===0?32:31-(ij(f)/aj|0)|0}var wd=64,_d=4194304;function Tu(f){switch(f&-f){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 f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function bd(f,h){var w=f.pendingLanes;if(w===0)return 0;var S=0,A=f.suspendedLanes,R=f.pingedLanes,H=w&268435455;if(H!==0){var Z=H&~A;Z!==0?S=Tu(Z):(R&=H,R!==0&&(S=Tu(R)))}else H=w&~A,H!==0?S=Tu(H):R!==0&&(S=Tu(R));if(S===0)return 0;if(h!==0&&h!==S&&(h&A)===0&&(A=S&-S,R=h&-h,A>=R||A===16&&(R&4194240)!==0))return h;if((S&4)!==0&&(S|=w&16),h=f.entangledLanes,h!==0)for(f=f.entanglements,h&=S;0w;w++)h.push(f);return h}function Iu(f,h,w){f.pendingLanes|=h,h!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,h=31-jr(h),f[h]=w}function uj(f,h){var w=f.pendingLanes&~h;f.pendingLanes=h,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=h,f.mutableReadLanes&=h,f.entangledLanes&=h,h=f.entanglements;var S=f.eventTimes;for(f=f.expirationTimes;0=Lu),fE=" ",dE=!1;function hE(f,h){switch(f){case"keyup":return Lj.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pE(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var Ds=!1;function Bj(f,h){switch(f){case"compositionend":return pE(h);case"keypress":return h.which!==32?null:(dE=!0,fE);case"textInput":return f=h.data,f===fE&&dE?null:f;default:return null}}function zj(f,h){if(Ds)return f==="compositionend"||!vg&&hE(f,h)?(f=aE(),kd=fg=xa=null,Ds=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1=h)return{node:w,offset:h-f};f=S}e:{for(;w;){if(w.nextSibling){w=w.nextSibling;break e}w=w.parentNode}w=void 0}w=bE(w)}}function EE(f,h){return f&&h?f===h?!0:f&&f.nodeType===3?!1:h&&h.nodeType===3?EE(f,h.parentNode):"contains"in f?f.contains(h):f.compareDocumentPosition?!!(f.compareDocumentPosition(h)&16):!1:!1}function SE(){for(var f=window,h=Fe();h instanceof f.HTMLIFrameElement;){try{var w=typeof h.contentWindow.location.href=="string"}catch{w=!1}if(w)f=h.contentWindow;else break;h=Fe(f.document)}return h}function _g(f){var h=f&&f.nodeName&&f.nodeName.toLowerCase();return h&&(h==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||h==="textarea"||f.contentEditable==="true")}function Kj(f){var h=SE(),w=f.focusedElem,S=f.selectionRange;if(h!==w&&w&&w.ownerDocument&&EE(w.ownerDocument.documentElement,w)){if(S!==null&&_g(w)){if(h=S.start,f=S.end,f===void 0&&(f=h),"selectionStart"in w)w.selectionStart=h,w.selectionEnd=Math.min(f,w.value.length);else if(f=(h=w.ownerDocument||document)&&h.defaultView||window,f.getSelection){f=f.getSelection();var A=w.textContent.length,R=Math.min(S.start,A);S=S.end===void 0?R:Math.min(S.end,A),!f.extend&&R>S&&(A=S,S=R,R=A),A=xE(w,R);var H=xE(w,S);A&&H&&(f.rangeCount!==1||f.anchorNode!==A.node||f.anchorOffset!==A.offset||f.focusNode!==H.node||f.focusOffset!==H.offset)&&(h=h.createRange(),h.setStart(A.node,A.offset),f.removeAllRanges(),R>S?(f.addRange(h),f.extend(H.node,H.offset)):(h.setEnd(H.node,H.offset),f.addRange(h)))}}for(h=[],f=w;f=f.parentNode;)f.nodeType===1&&h.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w=document.documentMode,Fs=null,bg=null,Uu=null,xg=!1;function CE(f,h,w){var S=w.window===w?w.document:w.nodeType===9?w:w.ownerDocument;xg||Fs==null||Fs!==Fe(S)||(S=Fs,"selectionStart"in S&&_g(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),Uu&&zu(Uu,S)||(Uu=S,S=Md(bg,"onSelect"),0Us||(f.current=Mg[Us],Mg[Us]=null,Us--)}function kt(f,h){Us++,Mg[Us]=f.current,f.current=h}var ka={},bn=Ca(ka),zn=Ca(!1),Co=ka;function $s(f,h){var w=f.type.contextTypes;if(!w)return ka;var S=f.stateNode;if(S&&S.__reactInternalMemoizedUnmaskedChildContext===h)return S.__reactInternalMemoizedMaskedChildContext;var A={},R;for(R in w)A[R]=h[R];return S&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=h,f.__reactInternalMemoizedMaskedChildContext=A),A}function Un(f){return f=f.childContextTypes,f!=null}function jd(){Pt(zn),Pt(bn)}function zE(f,h,w){if(bn.current!==ka)throw Error(r(168));kt(bn,h),kt(zn,w)}function UE(f,h,w){var S=f.stateNode;if(h=h.childContextTypes,typeof S.getChildContext!="function")return w;S=S.getChildContext();for(var A in S)if(!(A in h))throw Error(r(108,xe(f)||"Unknown",A));return F({},w,S)}function Bd(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||ka,Co=bn.current,kt(bn,f),kt(zn,zn.current),!0}function $E(f,h,w){var S=f.stateNode;if(!S)throw Error(r(169));w?(f=UE(f,h,Co),S.__reactInternalMemoizedMergedChildContext=f,Pt(zn),Pt(bn),kt(bn,f)):Pt(zn),kt(zn,w)}var Mi=null,zd=!1,Dg=!1;function HE(f){Mi===null?Mi=[f]:Mi.push(f)}function s4(f){zd=!0,HE(f)}function Aa(){if(!Dg&&Mi!==null){Dg=!0;var f=0,h=St;try{var w=Mi;for(St=1;f>=H,A-=H,Di=1<<32-jr(h)+A|w<Ye?(cn=Ge,Ge=null):cn=Ge.sibling;var mt=ye(ue,Ge,ce[Ye],ke);if(mt===null){Ge===null&&(Ge=cn);break}f&&Ge&&mt.alternate===null&&h(ue,Ge),oe=R(mt,oe,Ye),qe===null?$e=mt:qe.sibling=mt,qe=mt,Ge=cn}if(Ye===ce.length)return w(ue,Ge),Lt&&Ao(ue,Ye),$e;if(Ge===null){for(;YeYe?(cn=Ge,Ge=null):cn=Ge.sibling;var Fa=ye(ue,Ge,mt.value,ke);if(Fa===null){Ge===null&&(Ge=cn);break}f&&Ge&&Fa.alternate===null&&h(ue,Ge),oe=R(Fa,oe,Ye),qe===null?$e=Fa:qe.sibling=Fa,qe=Fa,Ge=cn}if(mt.done)return w(ue,Ge),Lt&&Ao(ue,Ye),$e;if(Ge===null){for(;!mt.done;Ye++,mt=ce.next())mt=Ee(ue,mt.value,ke),mt!==null&&(oe=R(mt,oe,Ye),qe===null?$e=mt:qe.sibling=mt,qe=mt);return Lt&&Ao(ue,Ye),$e}for(Ge=S(ue,Ge);!mt.done;Ye++,mt=ce.next())mt=De(Ge,ue,Ye,mt.value,ke),mt!==null&&(f&&mt.alternate!==null&&Ge.delete(mt.key===null?Ye:mt.key),oe=R(mt,oe,Ye),qe===null?$e=mt:qe.sibling=mt,qe=mt);return f&&Ge.forEach(function(U4){return h(ue,U4)}),Lt&&Ao(ue,Ye),$e}function qt(ue,oe,ce,ke){if(typeof ce=="object"&&ce!==null&&ce.type===T&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case v:e:{for(var $e=ce.key,qe=oe;qe!==null;){if(qe.key===$e){if($e=ce.type,$e===T){if(qe.tag===7){w(ue,qe.sibling),oe=A(qe,ce.props.children),oe.return=ue,ue=oe;break e}}else if(qe.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===V&&KE($e)===qe.type){w(ue,qe.sibling),oe=A(qe,ce.props),oe.ref=Vu(ue,qe,ce),oe.return=ue,ue=oe;break e}w(ue,qe);break}else h(ue,qe);qe=qe.sibling}ce.type===T?(oe=Do(ce.props.children,ue.mode,ke,ce.key),oe.return=ue,ue=oe):(ke=ph(ce.type,ce.key,ce.props,null,ue.mode,ke),ke.ref=Vu(ue,oe,ce),ke.return=ue,ue=ke)}return H(ue);case k:e:{for(qe=ce.key;oe!==null;){if(oe.key===qe)if(oe.tag===4&&oe.stateNode.containerInfo===ce.containerInfo&&oe.stateNode.implementation===ce.implementation){w(ue,oe.sibling),oe=A(oe,ce.children||[]),oe.return=ue,ue=oe;break e}else{w(ue,oe);break}else h(ue,oe);oe=oe.sibling}oe=Ov(ce,ue.mode,ke),oe.return=ue,ue=oe}return H(ue);case V:return qe=ce._init,qt(ue,oe,qe(ce._payload),ke)}if(ht(ce))return Be(ue,oe,ce,ke);if(G(ce))return ze(ue,oe,ce,ke);qd(ue,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"?(ce=""+ce,oe!==null&&oe.tag===6?(w(ue,oe.sibling),oe=A(oe,ce),oe.return=ue,ue=oe):(w(ue,oe),oe=Pv(ce,ue.mode,ke),oe.return=ue,ue=oe),H(ue)):w(ue,oe)}return qt}var Ws=YE(!0),XE=YE(!1),Gd=Ca(null),Wd=null,Vs=null,Ug=null;function $g(){Ug=Vs=Wd=null}function Hg(f){var h=Gd.current;Pt(Gd),f._currentValue=h}function qg(f,h,w){for(;f!==null;){var S=f.alternate;if((f.childLanes&h)!==h?(f.childLanes|=h,S!==null&&(S.childLanes|=h)):S!==null&&(S.childLanes&h)!==h&&(S.childLanes|=h),f===w)break;f=f.return}}function Qs(f,h){Wd=f,Ug=Vs=null,f=f.dependencies,f!==null&&f.firstContext!==null&&((f.lanes&h)!==0&&($n=!0),f.firstContext=null)}function yr(f){var h=f._currentValue;if(Ug!==f)if(f={context:f,memoizedValue:h,next:null},Vs===null){if(Wd===null)throw Error(r(308));Vs=f,Wd.dependencies={lanes:0,firstContext:f}}else Vs=Vs.next=f;return h}var To=null;function Gg(f){To===null?To=[f]:To.push(f)}function JE(f,h,w,S){var A=h.interleaved;return A===null?(w.next=w,Gg(h)):(w.next=A.next,A.next=w),h.interleaved=w,Li(f,S)}function Li(f,h){f.lanes|=h;var w=f.alternate;for(w!==null&&(w.lanes|=h),w=f,f=f.return;f!==null;)f.childLanes|=h,w=f.alternate,w!==null&&(w.childLanes|=h),w=f,f=f.return;return w.tag===3?w.stateNode:null}var Ta=!1;function Wg(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ZE(f,h){f=f.updateQueue,h.updateQueue===f&&(h.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects})}function ji(f,h){return{eventTime:f,lane:h,tag:0,payload:null,callback:null,next:null}}function Ia(f,h,w){var S=f.updateQueue;if(S===null)return null;if(S=S.shared,(pt&2)!==0){var A=S.pending;return A===null?h.next=h:(h.next=A.next,A.next=h),S.pending=h,Li(f,w)}return A=S.interleaved,A===null?(h.next=h,Gg(S)):(h.next=A.next,A.next=h),S.interleaved=h,Li(f,w)}function Vd(f,h,w){if(h=h.updateQueue,h!==null&&(h=h.shared,(w&4194240)!==0)){var S=h.lanes;S&=f.pendingLanes,w|=S,h.lanes=w,og(f,w)}}function eS(f,h){var w=f.updateQueue,S=f.alternate;if(S!==null&&(S=S.updateQueue,w===S)){var A=null,R=null;if(w=w.firstBaseUpdate,w!==null){do{var H={eventTime:w.eventTime,lane:w.lane,tag:w.tag,payload:w.payload,callback:w.callback,next:null};R===null?A=R=H:R=R.next=H,w=w.next}while(w!==null);R===null?A=R=h:R=R.next=h}else A=R=h;w={baseState:S.baseState,firstBaseUpdate:A,lastBaseUpdate:R,shared:S.shared,effects:S.effects},f.updateQueue=w;return}f=w.lastBaseUpdate,f===null?w.firstBaseUpdate=h:f.next=h,w.lastBaseUpdate=h}function Qd(f,h,w,S){var A=f.updateQueue;Ta=!1;var R=A.firstBaseUpdate,H=A.lastBaseUpdate,Z=A.shared.pending;if(Z!==null){A.shared.pending=null;var ne=Z,he=ne.next;ne.next=null,H===null?R=he:H.next=he,H=ne;var we=f.alternate;we!==null&&(we=we.updateQueue,Z=we.lastBaseUpdate,Z!==H&&(Z===null?we.firstBaseUpdate=he:Z.next=he,we.lastBaseUpdate=ne))}if(R!==null){var Ee=A.baseState;H=0,we=he=ne=null,Z=R;do{var ye=Z.lane,De=Z.eventTime;if((S&ye)===ye){we!==null&&(we=we.next={eventTime:De,lane:0,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null});e:{var Be=f,ze=Z;switch(ye=h,De=w,ze.tag){case 1:if(Be=ze.payload,typeof Be=="function"){Ee=Be.call(De,Ee,ye);break e}Ee=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=ze.payload,ye=typeof Be=="function"?Be.call(De,Ee,ye):Be,ye==null)break e;Ee=F({},Ee,ye);break e;case 2:Ta=!0}}Z.callback!==null&&Z.lane!==0&&(f.flags|=64,ye=A.effects,ye===null?A.effects=[Z]:ye.push(Z))}else De={eventTime:De,lane:ye,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},we===null?(he=we=De,ne=Ee):we=we.next=De,H|=ye;if(Z=Z.next,Z===null){if(Z=A.shared.pending,Z===null)break;ye=Z,Z=ye.next,ye.next=null,A.lastBaseUpdate=ye,A.shared.pending=null}}while(!0);if(we===null&&(ne=Ee),A.baseState=ne,A.firstBaseUpdate=he,A.lastBaseUpdate=we,h=A.shared.interleaved,h!==null){A=h;do H|=A.lane,A=A.next;while(A!==h)}else R===null&&(A.shared.lanes=0);Po|=H,f.lanes=H,f.memoizedState=Ee}}function tS(f,h,w){if(f=h.effects,h.effects=null,f!==null)for(h=0;hw?w:4,f(!0);var S=Xg.transition;Xg.transition={};try{f(!1),h()}finally{St=w,Xg.transition=S}}function _S(){return wr().memoizedState}function f4(f,h,w){var S=Na(f);if(w={lane:S,action:w,hasEagerState:!1,eagerState:null,next:null},bS(f))xS(h,w);else if(w=JE(f,h,w,S),w!==null){var A=On();qr(w,f,S,A),ES(w,h,S)}}function d4(f,h,w){var S=Na(f),A={lane:S,action:w,hasEagerState:!1,eagerState:null,next:null};if(bS(f))xS(h,A);else{var R=f.alternate;if(f.lanes===0&&(R===null||R.lanes===0)&&(R=h.lastRenderedReducer,R!==null))try{var H=h.lastRenderedState,Z=R(H,w);if(A.hasEagerState=!0,A.eagerState=Z,Br(Z,H)){var ne=h.interleaved;ne===null?(A.next=A,Gg(h)):(A.next=ne.next,ne.next=A),h.interleaved=A;return}}catch{}finally{}w=JE(f,h,A,S),w!==null&&(A=On(),qr(w,f,S,A),ES(w,h,S))}}function bS(f){var h=f.alternate;return f===Ut||h!==null&&h===Ut}function xS(f,h){Xu=Xd=!0;var w=f.pending;w===null?h.next=h:(h.next=w.next,w.next=h),f.pending=h}function ES(f,h,w){if((w&4194240)!==0){var S=h.lanes;S&=f.pendingLanes,w|=S,h.lanes=w,og(f,w)}}var eh={readContext:yr,useCallback:xn,useContext:xn,useEffect:xn,useImperativeHandle:xn,useInsertionEffect:xn,useLayoutEffect:xn,useMemo:xn,useReducer:xn,useRef:xn,useState:xn,useDebugValue:xn,useDeferredValue:xn,useTransition:xn,useMutableSource:xn,useSyncExternalStore:xn,useId:xn,unstable_isNewReconciler:!1},h4={readContext:yr,useCallback:function(f,h){return si().memoizedState=[f,h===void 0?null:h],f},useContext:yr,useEffect:dS,useImperativeHandle:function(f,h,w){return w=w!=null?w.concat([f]):null,Jd(4194308,4,mS.bind(null,h,f),w)},useLayoutEffect:function(f,h){return Jd(4194308,4,f,h)},useInsertionEffect:function(f,h){return Jd(4,2,f,h)},useMemo:function(f,h){var w=si();return h=h===void 0?null:h,f=f(),w.memoizedState=[f,h],f},useReducer:function(f,h,w){var S=si();return h=w!==void 0?w(h):h,S.memoizedState=S.baseState=h,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:h},S.queue=f,f=f.dispatch=f4.bind(null,Ut,f),[S.memoizedState,f]},useRef:function(f){var h=si();return f={current:f},h.memoizedState=f},useState:cS,useDebugValue:iv,useDeferredValue:function(f){return si().memoizedState=f},useTransition:function(){var f=cS(!1),h=f[0];return f=c4.bind(null,f[1]),si().memoizedState=f,[h,f]},useMutableSource:function(){},useSyncExternalStore:function(f,h,w){var S=Ut,A=si();if(Lt){if(w===void 0)throw Error(r(407));w=w()}else{if(w=h(),un===null)throw Error(r(349));(Ro&30)!==0||aS(S,h,w)}A.memoizedState=w;var R={value:w,getSnapshot:h};return A.queue=R,dS(sS.bind(null,S,R,f),[f]),S.flags|=2048,ec(9,oS.bind(null,S,R,w,h),void 0,null),w},useId:function(){var f=si(),h=un.identifierPrefix;if(Lt){var w=Fi,S=Di;w=(S&~(1<<32-jr(S)-1)).toString(32)+w,h=":"+h+"R"+w,w=Ju++,0<\/script>",f=f.removeChild(f.firstChild)):typeof S.is=="string"?f=H.createElement(w,{is:S.is}):(f=H.createElement(w),w==="select"&&(H=f,S.multiple?H.multiple=!0:S.size&&(H.size=S.size))):f=H.createElementNS(f,w),f[ai]=h,f[Gu]=S,HS(f,h,!1,!1),h.stateNode=f;e:{switch(H=le(w,S),w){case"dialog":Rt("cancel",f),Rt("close",f),A=S;break;case"iframe":case"object":case"embed":Rt("load",f),A=S;break;case"video":case"audio":for(A=0;A<$u.length;A++)Rt($u[A],f);A=S;break;case"source":Rt("error",f),A=S;break;case"img":case"image":case"link":Rt("error",f),Rt("load",f),A=S;break;case"details":Rt("toggle",f),A=S;break;case"input":it(f,S),A=We(f,S),Rt("invalid",f);break;case"option":A=S;break;case"select":f._wrapperState={wasMultiple:!!S.multiple},A=F({},S,{value:void 0}),Rt("invalid",f);break;case"textarea":en(f,S),A=yt(f,S),Rt("invalid",f);break;default:A=S}ae(w,A),Z=A;for(R in Z)if(Z.hasOwnProperty(R)){var ne=Z[R];R==="style"?Qe(f,ne):R==="dangerouslySetInnerHTML"?(ne=ne?ne.__html:void 0,ne!=null&&O(f,ne)):R==="children"?typeof ne=="string"?(w!=="textarea"||ne!=="")&&Q(f,ne):typeof ne=="number"&&Q(f,""+ne):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(i.hasOwnProperty(R)?ne!=null&&R==="onScroll"&&Rt("scroll",f):ne!=null&&b(f,R,ne,H))}switch(w){case"input":Ve(f),Ke(f,S,!1);break;case"textarea":Ve(f),sn(f);break;case"option":S.value!=null&&f.setAttribute("value",""+Te(S.value));break;case"select":f.multiple=!!S.multiple,R=S.value,R!=null?ut(f,!!S.multiple,R,!1):S.defaultValue!=null&&ut(f,!!S.multiple,S.defaultValue,!0);break;default:typeof A.onClick=="function"&&(f.onclick=Fd)}switch(w){case"button":case"input":case"select":case"textarea":S=!!S.autoFocus;break e;case"img":S=!0;break e;default:S=!1}}S&&(h.flags|=4)}h.ref!==null&&(h.flags|=512,h.flags|=2097152)}return En(h),null;case 6:if(f&&h.stateNode!=null)GS(f,h,f.memoizedProps,S);else{if(typeof S!="string"&&h.stateNode===null)throw Error(r(166));if(w=Io(Yu.current),Io(oi.current),Hd(h)){if(S=h.stateNode,w=h.memoizedProps,S[ai]=h,(R=S.nodeValue!==w)&&(f=ir,f!==null))switch(f.tag){case 3:Dd(S.nodeValue,w,(f.mode&1)!==0);break;case 5:f.memoizedProps.suppressHydrationWarning!==!0&&Dd(S.nodeValue,w,(f.mode&1)!==0)}R&&(h.flags|=4)}else S=(w.nodeType===9?w:w.ownerDocument).createTextNode(S),S[ai]=h,h.stateNode=S}return En(h),null;case 13:if(Pt(zt),S=h.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(Lt&&ar!==null&&(h.mode&1)!==0&&(h.flags&128)===0)QE(),Gs(),h.flags|=98560,R=!1;else if(R=Hd(h),S!==null&&S.dehydrated!==null){if(f===null){if(!R)throw Error(r(318));if(R=h.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(r(317));R[ai]=h}else Gs(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;En(h),R=!1}else zr!==null&&(kv(zr),zr=null),R=!0;if(!R)return h.flags&65536?h:null}return(h.flags&128)!==0?(h.lanes=w,h):(S=S!==null,S!==(f!==null&&f.memoizedState!==null)&&S&&(h.child.flags|=8192,(h.mode&1)!==0&&(f===null||(zt.current&1)!==0?nn===0&&(nn=3):Iv())),h.updateQueue!==null&&(h.flags|=4),En(h),null);case 4:return Ks(),mv(f,h),f===null&&Hu(h.stateNode.containerInfo),En(h),null;case 10:return Hg(h.type._context),En(h),null;case 17:return Un(h.type)&&jd(),En(h),null;case 19:if(Pt(zt),R=h.memoizedState,R===null)return En(h),null;if(S=(h.flags&128)!==0,H=R.rendering,H===null)if(S)tc(R,!1);else{if(nn!==0||f!==null&&(f.flags&128)!==0)for(f=h.child;f!==null;){if(H=Kd(f),H!==null){for(h.flags|=128,tc(R,!1),S=H.updateQueue,S!==null&&(h.updateQueue=S,h.flags|=4),h.subtreeFlags=0,S=w,w=h.child;w!==null;)R=w,f=S,R.flags&=14680066,H=R.alternate,H===null?(R.childLanes=0,R.lanes=f,R.child=null,R.subtreeFlags=0,R.memoizedProps=null,R.memoizedState=null,R.updateQueue=null,R.dependencies=null,R.stateNode=null):(R.childLanes=H.childLanes,R.lanes=H.lanes,R.child=H.child,R.subtreeFlags=0,R.deletions=null,R.memoizedProps=H.memoizedProps,R.memoizedState=H.memoizedState,R.updateQueue=H.updateQueue,R.type=H.type,f=H.dependencies,R.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),w=w.sibling;return kt(zt,zt.current&1|2),h.child}f=f.sibling}R.tail!==null&&Ht()>Zs&&(h.flags|=128,S=!0,tc(R,!1),h.lanes=4194304)}else{if(!S)if(f=Kd(H),f!==null){if(h.flags|=128,S=!0,w=f.updateQueue,w!==null&&(h.updateQueue=w,h.flags|=4),tc(R,!0),R.tail===null&&R.tailMode==="hidden"&&!H.alternate&&!Lt)return En(h),null}else 2*Ht()-R.renderingStartTime>Zs&&w!==1073741824&&(h.flags|=128,S=!0,tc(R,!1),h.lanes=4194304);R.isBackwards?(H.sibling=h.child,h.child=H):(w=R.last,w!==null?w.sibling=H:h.child=H,R.last=H)}return R.tail!==null?(h=R.tail,R.rendering=h,R.tail=h.sibling,R.renderingStartTime=Ht(),h.sibling=null,w=zt.current,kt(zt,S?w&1|2:w&1),h):(En(h),null);case 22:case 23:return Tv(),S=h.memoizedState!==null,f!==null&&f.memoizedState!==null!==S&&(h.flags|=8192),S&&(h.mode&1)!==0?(or&1073741824)!==0&&(En(h),h.subtreeFlags&6&&(h.flags|=8192)):En(h),null;case 24:return null;case 25:return null}throw Error(r(156,h.tag))}function b4(f,h){switch(Lg(h),h.tag){case 1:return Un(h.type)&&jd(),f=h.flags,f&65536?(h.flags=f&-65537|128,h):null;case 3:return Ks(),Pt(zn),Pt(bn),Yg(),f=h.flags,(f&65536)!==0&&(f&128)===0?(h.flags=f&-65537|128,h):null;case 5:return Qg(h),null;case 13:if(Pt(zt),f=h.memoizedState,f!==null&&f.dehydrated!==null){if(h.alternate===null)throw Error(r(340));Gs()}return f=h.flags,f&65536?(h.flags=f&-65537|128,h):null;case 19:return Pt(zt),null;case 4:return Ks(),null;case 10:return Hg(h.type._context),null;case 22:case 23:return Tv(),null;case 24:return null;default:return null}}var ih=!1,Sn=!1,x4=typeof WeakSet=="function"?WeakSet:Set,je=null;function Xs(f,h){var w=f.ref;if(w!==null)if(typeof w=="function")try{w(null)}catch(S){$t(f,h,S)}else w.current=null}function gv(f,h,w){try{w()}catch(S){$t(f,h,S)}}var WS=!1;function E4(f,h){if(Tg=Sd,f=SE(),_g(f)){if("selectionStart"in f)var w={start:f.selectionStart,end:f.selectionEnd};else e:{w=(w=f.ownerDocument)&&w.defaultView||window;var S=w.getSelection&&w.getSelection();if(S&&S.rangeCount!==0){w=S.anchorNode;var A=S.anchorOffset,R=S.focusNode;S=S.focusOffset;try{w.nodeType,R.nodeType}catch{w=null;break e}var H=0,Z=-1,ne=-1,he=0,we=0,Ee=f,ye=null;t:for(;;){for(var De;Ee!==w||A!==0&&Ee.nodeType!==3||(Z=H+A),Ee!==R||S!==0&&Ee.nodeType!==3||(ne=H+S),Ee.nodeType===3&&(H+=Ee.nodeValue.length),(De=Ee.firstChild)!==null;)ye=Ee,Ee=De;for(;;){if(Ee===f)break t;if(ye===w&&++he===A&&(Z=H),ye===R&&++we===S&&(ne=H),(De=Ee.nextSibling)!==null)break;Ee=ye,ye=Ee.parentNode}Ee=De}w=Z===-1||ne===-1?null:{start:Z,end:ne}}else w=null}w=w||{start:0,end:0}}else w=null;for(Ig={focusedElem:f,selectionRange:w},Sd=!1,je=h;je!==null;)if(h=je,f=h.child,(h.subtreeFlags&1028)!==0&&f!==null)f.return=h,je=f;else for(;je!==null;){h=je;try{var Be=h.alternate;if((h.flags&1024)!==0)switch(h.tag){case 0:case 11:case 15:break;case 1:if(Be!==null){var ze=Be.memoizedProps,qt=Be.memoizedState,ue=h.stateNode,oe=ue.getSnapshotBeforeUpdate(h.elementType===h.type?ze:Ur(h.type,ze),qt);ue.__reactInternalSnapshotBeforeUpdate=oe}break;case 3:var ce=h.stateNode.containerInfo;ce.nodeType===1?ce.textContent="":ce.nodeType===9&&ce.documentElement&&ce.removeChild(ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ke){$t(h,h.return,ke)}if(f=h.sibling,f!==null){f.return=h.return,je=f;break}je=h.return}return Be=WS,WS=!1,Be}function nc(f,h,w){var S=h.updateQueue;if(S=S!==null?S.lastEffect:null,S!==null){var A=S=S.next;do{if((A.tag&f)===f){var R=A.destroy;A.destroy=void 0,R!==void 0&&gv(h,w,R)}A=A.next}while(A!==S)}}function ah(f,h){if(h=h.updateQueue,h=h!==null?h.lastEffect:null,h!==null){var w=h=h.next;do{if((w.tag&f)===f){var S=w.create;w.destroy=S()}w=w.next}while(w!==h)}}function vv(f){var h=f.ref;if(h!==null){var w=f.stateNode;switch(f.tag){case 5:f=w;break;default:f=w}typeof h=="function"?h(f):h.current=f}}function VS(f){var h=f.alternate;h!==null&&(f.alternate=null,VS(h)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(h=f.stateNode,h!==null&&(delete h[ai],delete h[Gu],delete h[Ng],delete h[a4],delete h[o4])),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}function QS(f){return f.tag===5||f.tag===3||f.tag===4}function KS(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||QS(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function yv(f,h,w){var S=f.tag;if(S===5||S===6)f=f.stateNode,h?w.nodeType===8?w.parentNode.insertBefore(f,h):w.insertBefore(f,h):(w.nodeType===8?(h=w.parentNode,h.insertBefore(f,w)):(h=w,h.appendChild(f)),w=w._reactRootContainer,w!=null||h.onclick!==null||(h.onclick=Fd));else if(S!==4&&(f=f.child,f!==null))for(yv(f,h,w),f=f.sibling;f!==null;)yv(f,h,w),f=f.sibling}function wv(f,h,w){var S=f.tag;if(S===5||S===6)f=f.stateNode,h?w.insertBefore(f,h):w.appendChild(f);else if(S!==4&&(f=f.child,f!==null))for(wv(f,h,w),f=f.sibling;f!==null;)wv(f,h,w),f=f.sibling}var pn=null,$r=!1;function Ra(f,h,w){for(w=w.child;w!==null;)YS(f,h,w),w=w.sibling}function YS(f,h,w){if(ii&&typeof ii.onCommitFiberUnmount=="function")try{ii.onCommitFiberUnmount(yd,w)}catch{}switch(w.tag){case 5:Sn||Xs(w,h);case 6:var S=pn,A=$r;pn=null,Ra(f,h,w),pn=S,$r=A,pn!==null&&($r?(f=pn,w=w.stateNode,f.nodeType===8?f.parentNode.removeChild(w):f.removeChild(w)):pn.removeChild(w.stateNode));break;case 18:pn!==null&&($r?(f=pn,w=w.stateNode,f.nodeType===8?Og(f.parentNode,w):f.nodeType===1&&Og(f,w),Mu(f)):Og(pn,w.stateNode));break;case 4:S=pn,A=$r,pn=w.stateNode.containerInfo,$r=!0,Ra(f,h,w),pn=S,$r=A;break;case 0:case 11:case 14:case 15:if(!Sn&&(S=w.updateQueue,S!==null&&(S=S.lastEffect,S!==null))){A=S=S.next;do{var R=A,H=R.destroy;R=R.tag,H!==void 0&&((R&2)!==0||(R&4)!==0)&&gv(w,h,H),A=A.next}while(A!==S)}Ra(f,h,w);break;case 1:if(!Sn&&(Xs(w,h),S=w.stateNode,typeof S.componentWillUnmount=="function"))try{S.props=w.memoizedProps,S.state=w.memoizedState,S.componentWillUnmount()}catch(Z){$t(w,h,Z)}Ra(f,h,w);break;case 21:Ra(f,h,w);break;case 22:w.mode&1?(Sn=(S=Sn)||w.memoizedState!==null,Ra(f,h,w),Sn=S):Ra(f,h,w);break;default:Ra(f,h,w)}}function XS(f){var h=f.updateQueue;if(h!==null){f.updateQueue=null;var w=f.stateNode;w===null&&(w=f.stateNode=new x4),h.forEach(function(S){var A=O4.bind(null,f,S);w.has(S)||(w.add(S),S.then(A,A))})}}function Hr(f,h){var w=h.deletions;if(w!==null)for(var S=0;SA&&(A=H),S&=~R}if(S=A,S=Ht()-S,S=(120>S?120:480>S?480:1080>S?1080:1920>S?1920:3e3>S?3e3:4320>S?4320:1960*C4(S/1960))-S,10f?16:f,Oa===null)var S=!1;else{if(f=Oa,Oa=null,ch=0,(pt&6)!==0)throw Error(r(331));var A=pt;for(pt|=4,je=f.current;je!==null;){var R=je,H=R.child;if((je.flags&16)!==0){var Z=R.deletions;if(Z!==null){for(var ne=0;neHt()-xv?No(f,0):bv|=w),qn(f,h)}function cC(f,h){h===0&&((f.mode&1)===0?h=1:(h=_d,_d<<=1,(_d&130023424)===0&&(_d=4194304)));var w=On();f=Li(f,h),f!==null&&(Iu(f,h,w),qn(f,w))}function P4(f){var h=f.memoizedState,w=0;h!==null&&(w=h.retryLane),cC(f,w)}function O4(f,h){var w=0;switch(f.tag){case 13:var S=f.stateNode,A=f.memoizedState;A!==null&&(w=A.retryLane);break;case 19:S=f.stateNode;break;default:throw Error(r(314))}S!==null&&S.delete(h),cC(f,w)}var fC;fC=function(f,h,w){if(f!==null)if(f.memoizedProps!==h.pendingProps||zn.current)$n=!0;else{if((f.lanes&w)===0&&(h.flags&128)===0)return $n=!1,w4(f,h,w);$n=(f.flags&131072)!==0}else $n=!1,Lt&&(h.flags&1048576)!==0&&qE(h,$d,h.index);switch(h.lanes=0,h.tag){case 2:var S=h.type;rh(f,h),f=h.pendingProps;var A=$s(h,bn.current);Qs(h,w),A=Zg(null,h,S,f,A,w);var R=ev();return h.flags|=1,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0?(h.tag=1,h.memoizedState=null,h.updateQueue=null,Un(S)?(R=!0,Bd(h)):R=!1,h.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,Wg(h),A.updater=th,h.stateNode=A,A._reactInternals=h,ov(h,S,f,w),h=cv(null,h,S,!0,R,w)):(h.tag=0,Lt&&R&&Fg(h),Pn(null,h,A,w),h=h.child),h;case 16:S=h.elementType;e:{switch(rh(f,h),f=h.pendingProps,A=S._init,S=A(S._payload),h.type=S,A=h.tag=M4(S),f=Ur(S,f),A){case 0:h=uv(null,h,S,f,w);break e;case 1:h=LS(null,h,S,f,w);break e;case 11:h=OS(null,h,S,f,w);break e;case 14:h=NS(null,h,S,Ur(S.type,f),w);break e}throw Error(r(306,S,""))}return h;case 0:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:Ur(S,A),uv(f,h,S,A,w);case 1:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:Ur(S,A),LS(f,h,S,A,w);case 3:e:{if(jS(h),f===null)throw Error(r(387));S=h.pendingProps,R=h.memoizedState,A=R.element,ZE(f,h),Qd(h,S,null,w);var H=h.memoizedState;if(S=H.element,R.isDehydrated)if(R={element:S,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},h.updateQueue.baseState=R,h.memoizedState=R,h.flags&256){A=Ys(Error(r(423)),h),h=BS(f,h,S,w,A);break e}else if(S!==A){A=Ys(Error(r(424)),h),h=BS(f,h,S,w,A);break e}else for(ar=Sa(h.stateNode.containerInfo.firstChild),ir=h,Lt=!0,zr=null,w=XE(h,null,S,w),h.child=w;w;)w.flags=w.flags&-3|4096,w=w.sibling;else{if(Gs(),S===A){h=Bi(f,h,w);break e}Pn(f,h,S,w)}h=h.child}return h;case 5:return nS(h),f===null&&Bg(h),S=h.type,A=h.pendingProps,R=f!==null?f.memoizedProps:null,H=A.children,Rg(S,A)?H=null:R!==null&&Rg(S,R)&&(h.flags|=32),FS(f,h),Pn(f,h,H,w),h.child;case 6:return f===null&&Bg(h),null;case 13:return zS(f,h,w);case 4:return Vg(h,h.stateNode.containerInfo),S=h.pendingProps,f===null?h.child=Ws(h,null,S,w):Pn(f,h,S,w),h.child;case 11:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:Ur(S,A),OS(f,h,S,A,w);case 7:return Pn(f,h,h.pendingProps,w),h.child;case 8:return Pn(f,h,h.pendingProps.children,w),h.child;case 12:return Pn(f,h,h.pendingProps.children,w),h.child;case 10:e:{if(S=h.type._context,A=h.pendingProps,R=h.memoizedProps,H=A.value,kt(Gd,S._currentValue),S._currentValue=H,R!==null)if(Br(R.value,H)){if(R.children===A.children&&!zn.current){h=Bi(f,h,w);break e}}else for(R=h.child,R!==null&&(R.return=h);R!==null;){var Z=R.dependencies;if(Z!==null){H=R.child;for(var ne=Z.firstContext;ne!==null;){if(ne.context===S){if(R.tag===1){ne=ji(-1,w&-w),ne.tag=2;var he=R.updateQueue;if(he!==null){he=he.shared;var we=he.pending;we===null?ne.next=ne:(ne.next=we.next,we.next=ne),he.pending=ne}}R.lanes|=w,ne=R.alternate,ne!==null&&(ne.lanes|=w),qg(R.return,w,h),Z.lanes|=w;break}ne=ne.next}}else if(R.tag===10)H=R.type===h.type?null:R.child;else if(R.tag===18){if(H=R.return,H===null)throw Error(r(341));H.lanes|=w,Z=H.alternate,Z!==null&&(Z.lanes|=w),qg(H,w,h),H=R.sibling}else H=R.child;if(H!==null)H.return=R;else for(H=R;H!==null;){if(H===h){H=null;break}if(R=H.sibling,R!==null){R.return=H.return,H=R;break}H=H.return}R=H}Pn(f,h,A.children,w),h=h.child}return h;case 9:return A=h.type,S=h.pendingProps.children,Qs(h,w),A=yr(A),S=S(A),h.flags|=1,Pn(f,h,S,w),h.child;case 14:return S=h.type,A=Ur(S,h.pendingProps),A=Ur(S.type,A),NS(f,h,S,A,w);case 15:return MS(f,h,h.type,h.pendingProps,w);case 17:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:Ur(S,A),rh(f,h),h.tag=1,Un(S)?(f=!0,Bd(h)):f=!1,Qs(h,w),CS(h,S,A),ov(h,S,A,w),cv(null,h,S,!0,f,w);case 19:return $S(f,h,w);case 22:return DS(f,h,w)}throw Error(r(156,h.tag))};function dC(f,h){return gd(f,h)}function N4(f,h,w,S){this.tag=f,this.key=w,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(f,h,w,S){return new N4(f,h,w,S)}function Rv(f){return f=f.prototype,!(!f||!f.isReactComponent)}function M4(f){if(typeof f=="function")return Rv(f)?1:0;if(f!=null){if(f=f.$$typeof,f===$)return 11;if(f===U)return 14}return 2}function Da(f,h){var w=f.alternate;return w===null?(w=br(f.tag,h,f.key,f.mode),w.elementType=f.elementType,w.type=f.type,w.stateNode=f.stateNode,w.alternate=f,f.alternate=w):(w.pendingProps=h,w.type=f.type,w.flags=0,w.subtreeFlags=0,w.deletions=null),w.flags=f.flags&14680064,w.childLanes=f.childLanes,w.lanes=f.lanes,w.child=f.child,w.memoizedProps=f.memoizedProps,w.memoizedState=f.memoizedState,w.updateQueue=f.updateQueue,h=f.dependencies,w.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},w.sibling=f.sibling,w.index=f.index,w.ref=f.ref,w}function ph(f,h,w,S,A,R){var H=2;if(S=f,typeof f=="function")Rv(f)&&(H=1);else if(typeof f=="string")H=5;else e:switch(f){case T:return Do(w.children,A,R,h);case N:H=8,A|=8;break;case M:return f=br(12,w,h,A|2),f.elementType=M,f.lanes=R,f;case X:return f=br(13,w,h,A),f.elementType=X,f.lanes=R,f;case W:return f=br(19,w,h,A),f.elementType=W,f.lanes=R,f;case K:return mh(w,A,R,h);default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case B:H=10;break e;case D:H=9;break e;case $:H=11;break e;case U:H=14;break e;case V:H=16,S=null;break e}throw Error(r(130,f==null?f:typeof f,""))}return h=br(H,w,h,A),h.elementType=f,h.type=S,h.lanes=R,h}function Do(f,h,w,S){return f=br(7,f,S,h),f.lanes=w,f}function mh(f,h,w,S){return f=br(22,f,S,h),f.elementType=K,f.lanes=w,f.stateNode={isHidden:!1},f}function Pv(f,h,w){return f=br(6,f,null,h),f.lanes=w,f}function Ov(f,h,w){return h=br(4,f.children!==null?f.children:[],f.key,h),h.lanes=w,h.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},h}function D4(f,h,w,S,A){this.tag=h,this.containerInfo=f,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ag(0),this.expirationTimes=ag(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ag(0),this.identifierPrefix=S,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function Nv(f,h,w,S,A,R,H,Z,ne){return f=new D4(f,h,w,Z,ne),h===1?(h=1,R===!0&&(h|=8)):h=0,R=br(3,null,null,h),f.current=R,R.stateNode=f,R.memoizedState={element:S,isDehydrated:w,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wg(R),f}function F4(f,h,w){var S=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Bv.exports=lB(),Bv.exports}var RC;function uB(){if(RC)return Eh;RC=1;var e=rO();return Eh.createRoot=e.createRoot,Eh.hydrateRoot=e.hydrateRoot,Eh}var cB=uB(),P_=function(e,t){return P_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},P_(e,t)};function Pr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");P_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ue=function(){return Ue=Object.assign||function(t){for(var r,n=1,i=arguments.length;n"u"&&(a=e.call(this,n),t.set(i,a)),a}function iO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function aO(e,t,r,n,i){return r.bind(t,e,n,i)}function hB(e,t){var r=e.length===1?dB:iO;return aO(e,this,r,t.cache.create(),t.serializer)}function pB(e,t){return aO(e,this,iO,t.cache.create(),t.serializer)}var mB=function(){return JSON.stringify(arguments)};function K1(){this.cache=Object.create(null)}K1.prototype.get=function(e){return this.cache[e]};K1.prototype.set=function(e,t){this.cache[e]=t};var gB={create:function(){return new K1}},Bf={variadic:pB};function oO(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}jf(function(){for(var e,t=[],r=0;r"u"&&(a=e.call(this,n),t.set(i,a)),a}function sO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function lO(e,t,r,n,i){return r.bind(t,e,n,i)}function wB(e,t){var r=e.length===1?yB:sO;return lO(e,this,r,t.cache.create(),t.serializer)}function _B(e,t){return lO(e,this,sO,t.cache.create(),t.serializer)}var bB=function(){return JSON.stringify(arguments)};function Y1(){this.cache=Object.create(null)}Y1.prototype.get=function(e){return this.cache[e]};Y1.prototype.set=function(e,t){this.cache[e]=t};var xB={create:function(){return new Y1}},Hv={variadic:_B},ft;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ft||(ft={}));var Mt;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Mt||(Mt={}));var wl;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(wl||(wl={}));function PC(e){return e.type===Mt.literal}function EB(e){return e.type===Mt.argument}function uO(e){return e.type===Mt.number}function cO(e){return e.type===Mt.date}function fO(e){return e.type===Mt.time}function dO(e){return e.type===Mt.select}function hO(e){return e.type===Mt.plural}function SB(e){return e.type===Mt.pound}function pO(e){return e.type===Mt.tag}function mO(e){return!!(e&&typeof e=="object"&&e.type===wl.number)}function O_(e){return!!(e&&typeof e=="object"&&e.type===wl.dateTime)}var gO=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,CB=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function kB(e){var t={};return e.replace(CB,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var AB=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function TB(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(AB).filter(function(p){return p.length>0}),r=[],n=0,i=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(RB,function(l,u,c,d,p,m){if(u)t.minimumIntegerDigits=c.length;else{if(d&&p)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(yO.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(OC.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(OC,function(l,u,c,d,p,m){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:p&&m?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=Ue(Ue({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Ue(Ue({},t),NC(a)));continue}if(vO.test(i.stem)){t=Ue(Ue({},t),NC(i.stem));continue}var s=wO(i.stem);s&&(t=Ue(Ue({},t),s));var o=PB(i.stem);o&&(t=Ue(Ue({},t),o))}return t}var Sh={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function NB(e,t){for(var r="",n=0;n>1),l="a",u=MB(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;s-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function MB(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Sh[n||""]||Sh[r||""]||Sh["".concat(r,"-001")]||Sh["001"];return i[0]}var qv,DB=new RegExp("^".concat(gO.source,"*")),FB=new RegExp("".concat(gO.source,"*$"));function dt(e,t){return{start:e,end:t}}var LB=!!String.prototype.startsWith&&"_a".startsWith("a",1),jB=!!String.fromCodePoint,BB=!!Object.fromEntries,zB=!!String.prototype.codePointAt,UB=!!String.prototype.trimStart,$B=!!String.prototype.trimEnd,HB=!!Number.isSafeInteger,qB=HB?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},N_=!0;try{var GB=bO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");N_=((qv=GB.exec("a"))===null||qv===void 0?void 0:qv[0])==="a"}catch{N_=!1}var DC=LB?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},M_=jB?String.fromCodePoint:function(){for(var t=[],r=0;ra;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},FC=BB?Object.fromEntries:function(t){for(var r={},n=0,i=t;n=n)){var i=t.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},WB=UB?function(t){return t.trimStart()}:function(t){return t.replace(DB,"")},VB=$B?function(t){return t.trimEnd()}:function(t){return t.replace(FB,"")};function bO(e,t){return new RegExp(e,t)}var D_;if(N_){var LC=bO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");D_=function(t,r){var n;LC.lastIndex=r;var i=LC.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else D_=function(t,r){for(var n=[];;){var i=_O(t,r);if(i===void 0||xO(i)||XB(i))break;n.push(i),r+=i>=65536?2:1}return M_.apply(void 0,n)};var QB=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:Mt.pound,location:dt(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(ft.UNMATCHED_CLOSING_TAG,dt(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&F_(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Mt.literal,value:"<".concat(i,"/>"),location:dt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("")?{val:{type:Mt.tag,value:i,children:s,location:dt(n,this.clonePosition())},err:null}:this.error(ft.INVALID_TAG,dt(o,this.clonePosition())))}else return this.error(ft.UNCLOSED_TAG,dt(n,this.clonePosition()))}else return this.error(ft.INVALID_TAG,dt(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&YB(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var l=dt(n,this.clonePosition());return{val:{type:Mt.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!KB(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return M_.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),M_(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,dt(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ft.EMPTY_ARGUMENT,dt(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ft.MALFORMED_ARGUMENT,dt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,dt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Mt.argument,value:i,location:dt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,dt(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(ft.MALFORMED_ARGUMENT,dt(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=D_(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=dt(t,a);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(ft.EXPECT_ARGUMENT_TYPE,dt(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var p=VB(d.val);if(p.length===0)return this.error(ft.EXPECT_ARGUMENT_STYLE,dt(this.clonePosition(),this.clonePosition()));var m=dt(c,this.clonePosition());u={style:p,styleLocation:m}}var y=this.tryParseArgumentClose(i);if(y.err)return y;var g=dt(i,this.clonePosition());if(u&&DC(u==null?void 0:u.style,"::",0)){var _=WB(u.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(_,u.styleLocation);return d.err?d:{val:{type:Mt.number,value:n,location:g,style:d.val},err:null}}else{if(_.length===0)return this.error(ft.EXPECT_DATE_TIME_SKELETON,g);var E=_;this.locale&&(E=NB(_,this.locale));var p={type:wl.dateTime,pattern:E,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?kB(E):{}},x=o==="date"?Mt.date:Mt.time;return{val:{type:x,value:n,location:g,style:p},err:null}}}return{val:{type:o==="number"?Mt.number:o==="date"?Mt.date:Mt.time,value:n,location:g,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ft.EXPECT_SELECT_ARGUMENT_OPTIONS,dt(b,Ue({},b)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),v=0;if(o!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,dt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ft.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),C=this.parseIdentifierIfPossible(),v=d.val}var k=this.tryParsePluralOrSelectOptions(t,o,r,C);if(k.err)return k;var y=this.tryParseArgumentClose(i);if(y.err)return y;var T=dt(i,this.clonePosition());return o==="select"?{val:{type:Mt.select,value:n,options:FC(k.val),location:T},err:null}:{val:{type:Mt.plural,value:n,options:FC(k.val),offset:v,pluralType:o==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(ft.INVALID_ARGUMENT_TYPE,dt(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ft.EXPECT_ARGUMENT_CLOSING_BRACE,dt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ft.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,dt(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=TB(t)}catch{return this.error(ft.INVALID_NUMBER_SKELETON,r)}return{val:{type:wl.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?OB(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var a,s=!1,o=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,ft.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=dt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?ft.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ft.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,dt(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var g=this.tryParseArgumentClose(m);if(g.err)return g;o.push([u,{value:y.val,location:dt(m,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return o.length===0?this.error(r==="select"?ft.EXPECT_SELECT_ARGUMENT_SELECTOR:ft.EXPECT_PLURAL_ARGUMENT_SELECTOR,dt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ft.MISSING_OTHER_CLAUSE,dt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var l=dt(i,this.clonePosition());return a?(s*=n,qB(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=_O(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(DC(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&xO(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function F_(e){return e>=97&&e<=122||e>=65&&e<=90}function KB(e){return F_(e)||e===47}function YB(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function xO(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function XB(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function L_(e){e.forEach(function(t){if(delete t.location,dO(t)||hO(t))for(var r in t.options)delete t.options[r].location,L_(t.options[r].value);else uO(t)&&mO(t.style)||(cO(t)||fO(t))&&O_(t.style)?delete t.style.location:pO(t)&&L_(t.children)})}function JB(e,t){t===void 0&&(t={}),t=Ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new QB(e,t).parse();if(r.err){var n=SyntaxError(ft[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||L_(r.val),r.val}var bi;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(bi||(bi={}));var mo=function(e){Pr(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),jC=function(e){Pr(t,e);function t(r,n,i,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),bi.INVALID_VALUE,a)||this}return t}(mo),ZB=function(e){Pr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),bi.INVALID_VALUE,i)||this}return t}(mo),ez=function(e){Pr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),bi.MISSING_VALUE,n)||this}return t}(mo),Nn;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Nn||(Nn={}));function tz(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Nn.literal||r.type!==Nn.literal?t.push(r):n.value+=r.value,t},[])}function EO(e){return typeof e=="function"}function dp(e,t,r,n,i,a,s){if(e.length===1&&PC(e[0]))return[{type:Nn.literal,value:e[0].value}];for(var o=[],l=0,u=e;l"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=JB,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Fo(e,t){var r=t&&t.cache?t.cache:cz,n=t&&t.serializer?t.serializer:uz,i=t&&t.strategy?t.strategy:sz;return i(e,{cache:r,serializer:n})}function az(e){return e==null||typeof e=="number"||typeof e=="boolean"}function oz(e,t,r,n){var i=az(n)?n:r(n),a=t.get(i);return typeof a>"u"&&(a=e.call(this,n),t.set(i,a)),a}function CO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function kO(e,t,r,n,i){return r.bind(t,e,n,i)}function sz(e,t){var r=e.length===1?oz:CO;return kO(e,this,r,t.cache.create(),t.serializer)}function lz(e,t){return kO(e,this,CO,t.cache.create(),t.serializer)}var uz=function(){return JSON.stringify(arguments)};function X1(){this.cache=Object.create(null)}X1.prototype.get=function(e){return this.cache[e]};X1.prototype.set=function(e,t){this.cache[e]=t};var cz={create:function(){return new X1}},Lo={variadic:lz},es;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(es||(es={}));var zf=function(e){Pr(t,e);function t(r,n,i){var a=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,` +`).concat(s?` +`.concat(s.message,` +`).concat(s.stack):""))||this,a.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),fz=function(e){Pr(t,e);function t(r,n){return e.call(this,es.UNSUPPORTED_FORMATTER,r,n)||this}return t}(zf),dz=function(e){Pr(t,e);function t(r,n){return e.call(this,es.INVALID_CONFIG,r,n)||this}return t}(zf),BC=function(e){Pr(t,e);function t(r,n){return e.call(this,es.MISSING_DATA,r,n)||this}return t}(zf),Or=function(e){Pr(t,e);function t(r,n,i){var a=e.call(this,es.FORMAT_ERROR,"".concat(r,` +Locale: `).concat(n,` +`),i)||this;return a.locale=n,a}return t}(zf),Wv=function(e){Pr(t,e);function t(r,n,i,a){var s=e.call(this,"".concat(r,` +MessageID: `).concat(i==null?void 0:i.id,` +Default Message: `).concat(i==null?void 0:i.defaultMessage,` +Description: `).concat(i==null?void 0:i.description,` +`),n,a)||this;return s.descriptor=i,s.locale=n,s}return t}(Or),hz=function(e){Pr(t,e);function t(r,n){var i=e.call(this,es.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(a){var s;return(s=a.value)!==null&&s!==void 0?s:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=r,i}return t}(zf);function vs(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var pz=function(e){},mz=function(e){},AO={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:pz,onWarn:mz};function TO(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function jo(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function gz(e){e===void 0&&(e=TO());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=Fo(function(){for(var o,l=[],u=0;u needs to exist in the component ancestry.")}var NO=Ue(Ue({},AO),{textComponent:J.Fragment});function jz(e){return function(t){return e(J.Children.toArray(t))}}function B_(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var a=0;a"u")throw new Error(t)}function Ar(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Qz(){return Math.random().toString(36).substring(2,10)}function YC(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function $_(e,t,r=null,n,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ys(t):t,state:r,key:t&&t.key||n||Qz(),mask:i}}function Vc({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ys(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Kz(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,s=i.history,o="POP",l=null,u=c();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function c(){return(s.state||{idx:null}).idx}function d(){o="POP";let _=c(),E=_==null?null:_-u;u=_,l&&l({action:o,location:g.location,delta:E})}function p(_,E){o="PUSH";let x=KC(_)?_:$_(g.location,_,E);r&&r(x,_),u=c()+1;let b=YC(x,u),C=g.createHref(x.mask||x);try{s.pushState(b,"",C)}catch(v){if(v instanceof DOMException&&v.name==="DataCloneError")throw v;i.location.assign(C)}a&&l&&l({action:o,location:g.location,delta:1})}function m(_,E){o="REPLACE";let x=KC(_)?_:$_(g.location,_,E);r&&r(x,_),u=c();let b=YC(x,u),C=g.createHref(x.mask||x);s.replaceState(b,"",C),a&&l&&l({action:o,location:g.location,delta:0})}function y(_){return Yz(_)}let g={get action(){return o},get location(){return e(i,s)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(QC,d),l=_,()=>{i.removeEventListener(QC,d),l=null}},createHref(_){return t(i,_)},createURL:y,encodeLocation(_){let E=y(_);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:p,replace:m,go(_){return s.go(_)}};return g}function Yz(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Bt(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Vc(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function LO(e,t,r="/"){return Xz(e,t,r,!1)}function Xz(e,t,r,n,i){let a=typeof t=="string"?ys(t):t,s=Zi(a.pathname||"/",r);if(s==null)return null;let o=Jz(e),l=null,u=cU(s);for(let c=0;l==null&&c{let c={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(n)&&l)return;Bt(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length)}let d=Yr([n,c.relativePath]),p=r.concat(c);s.children&&s.children.length>0&&(Bt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),jO(s.children,t,p,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:oU(d,s.index),routesMeta:p})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))a(s,o);else for(let u of BO(s.path))a(s,o,!0,u)}),t}function BO(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let s=BO(n.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function Zz(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:sU(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var eU=/^:[\w-]+$/,tU=3,nU=2,rU=1,iU=10,aU=-2,XC=e=>e==="*";function oU(e,t){let r=e.split("/"),n=r.length;return r.some(XC)&&(n+=aU),t&&(n+=nU),r.filter(i=>!XC(i)).reduce((i,a)=>i+(eU.test(a)?tU:a===""?rU:iU),n)}function sU(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function lU(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",s=[];for(let o=0;o{if(c==="*"){let y=o[p]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=o[p];return d&&!m?u[c]=void 0:u[c]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function uU(e,t=!1,r=!0){Ar(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l,u,c)=>{if(n.push({paramName:o,isOptional:l!=null}),l){let d=c.charAt(u+s.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function cU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ar(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Zi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var fU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function dU(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?ys(e):e,a;return r?(r=zO(r),r.startsWith("/")?a=JC(r.substring(1),"/"):a=JC(r,t)):a=t,{pathname:a,search:mU(n),hash:gU(i)}}function JC(e,t){let r=Dp(t).split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Yv(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function hU(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function eb(e){let t=hU(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function lm(e,t,r,n=!1){let i;typeof e=="string"?i=ys(e):(i={...e},Bt(!i.pathname||!i.pathname.includes("?"),Yv("?","pathname","search",i)),Bt(!i.pathname||!i.pathname.includes("#"),Yv("#","pathname","hash",i)),Bt(!i.search||!i.search.includes("#"),Yv("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=r;else{let d=t.length-1;if(!n&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}o=d>=0?t[d]:"/"}let l=dU(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var zO=e=>e.replace(/\/\/+/g,"/"),Yr=e=>zO(e.join("/")),Dp=e=>e.replace(/\/+$/,""),pU=e=>Dp(e).replace(/^\/*/,"/"),mU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,vU=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function yU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function wU(e){let t=e.map(r=>r.route.path).filter(Boolean);return Yr(t)||"/"}var UO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $O(e,t){let r=e;if(typeof r!="string"||!fU.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(UO)try{let a=new URL(window.location.href),s=r.startsWith("//")?new URL(a.protocol+r):new URL(r),o=Zi(s.pathname,t);s.origin===a.origin&&o!=null?r=o+s.search+s.hash:i=!0}catch{Ar(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var HO=["POST","PUT","PATCH","DELETE"];new Set(HO);var _U=["GET",...HO];new Set(_U);var lu=J.createContext(null);lu.displayName="DataRouter";var um=J.createContext(null);um.displayName="DataRouterState";var qO=J.createContext(!1);function bU(){return J.useContext(qO)}var GO=J.createContext({isTransitioning:!1});GO.displayName="ViewTransition";var xU=J.createContext(new Map);xU.displayName="Fetchers";var EU=J.createContext(null);EU.displayName="Await";var hr=J.createContext(null);hr.displayName="Navigation";var $f=J.createContext(null);$f.displayName="Location";var Ai=J.createContext({outlet:null,matches:[],isDataRoute:!1});Ai.displayName="Route";var tb=J.createContext(null);tb.displayName="RouteError";var WO="REACT_ROUTER_ERROR",SU="REDIRECT",CU="ROUTE_ERROR_RESPONSE";function kU(e){if(e.startsWith(`${WO}:${SU}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function AU(e){if(e.startsWith(`${WO}:${CU}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new vU(t.status,t.statusText,t.data)}catch{}}function TU(e,{relative:t}={}){Bt(uu(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=J.useContext(hr),{hash:i,pathname:a,search:s}=Hf(e,{relative:t}),o=a;return r!=="/"&&(o=a==="/"?r:Yr([r,a])),n.createHref({pathname:o,search:s,hash:i})}function uu(){return J.useContext($f)!=null}function wn(){return Bt(uu(),"useLocation() may be used only in the context of a component."),J.useContext($f).location}var VO="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function QO(e){J.useContext(hr).static||J.useLayoutEffect(e)}function ca(){let{isDataRoute:e}=J.useContext(Ai);return e?UU():IU()}function IU(){Bt(uu(),"useNavigate() may be used only in the context of a component.");let e=J.useContext(lu),{basename:t,navigator:r}=J.useContext(hr),{matches:n}=J.useContext(Ai),{pathname:i}=wn(),a=JSON.stringify(eb(n)),s=J.useRef(!1);return QO(()=>{s.current=!0}),J.useCallback((l,u={})=>{if(Ar(s.current,VO),!s.current)return;if(typeof l=="number"){r.go(l);return}let c=lm(l,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Yr([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,a,i,e])}J.createContext(null);function Hf(e,{relative:t}={}){let{matches:r}=J.useContext(Ai),{pathname:n}=wn(),i=JSON.stringify(eb(r));return J.useMemo(()=>lm(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function RU(e,t){return KO(e,t)}function KO(e,t,r){var _;Bt(uu(),"useRoutes() may be used only in the context of a component.");let{navigator:n}=J.useContext(hr),{matches:i}=J.useContext(Ai),a=i[i.length-1],s=a?a.params:{},o=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route;{let E=u&&u.path||"";XO(o,!u||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${o}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let c=wn(),d;if(t){let E=typeof t=="string"?ys(t):t;Bt(l==="/"||((_=E.pathname)==null?void 0:_.startsWith(l)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${E.pathname}" was given in the \`location\` prop.`),d=E}else d=c;let p=d.pathname||"/",m=p;if(l!=="/"){let E=l.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(E=>Object.assign(E,{route:r.manifest[E.route.id]||E.route})):LO(e,{pathname:m});Ar(u||y!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Ar(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let g=DU(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:Yr([l,n.encodeLocation?n.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?l:Yr([l,n.encodeLocation?n.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),i,r);return t&&g?J.createElement($f.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},g):g}function PU(){let e=zU(),t=yU(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=J.createElement(J.Fragment,null,J.createElement("p",null,"💿 Hey developer 👋"),J.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",J.createElement("code",{style:a},"ErrorBoundary")," or"," ",J.createElement("code",{style:a},"errorElement")," prop on your route.")),J.createElement(J.Fragment,null,J.createElement("h2",null,"Unexpected Application Error!"),J.createElement("h3",{style:{fontStyle:"italic"}},t),r?J.createElement("pre",{style:i},r):null,s)}var OU=J.createElement(PU,null),YO=class extends J.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||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=AU(e.digest);r&&(e=r)}let t=e!==void 0?J.createElement(Ai.Provider,{value:this.props.routeContext},J.createElement(tb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?J.createElement(NU,{error:e},t):t}};YO.contextType=qO;var Xv=new WeakMap;function NU({children:e,error:t}){let{basename:r}=J.useContext(hr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=kU(t.digest);if(n){let i=Xv.get(t);if(i)throw i;let a=$O(n.location,r);if(UO&&!Xv.get(t))if(a.isExternal||n.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:n.replace}));throw Xv.set(t,s),s}return J.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function MU({routeContext:e,match:t,children:r}){let n=J.useContext(lu);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),J.createElement(Ai.Provider,{value:e},r)}function DU(e,t=[],r){let n=r==null?void 0:r.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);Bt(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,o=-1;if(r&&n){s=n.renderFallback;for(let c=0;c=0?i=i.slice(0,o+1):i=[i[0]];break}}}}let l=r==null?void 0:r.onError,u=n&&l?(c,d)=>{var p,m;l(c,{location:n.location,params:((m=(p=n.matches)==null?void 0:p[0])==null?void 0:m.params)??{},pattern:wU(n.matches),errorInfo:d})}:void 0;return i.reduceRight((c,d,p)=>{let m,y=!1,g=null,_=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||OU,s&&(o<0&&p===0?(XO("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,_=null):o===p&&(y=!0,_=d.route.hydrateFallbackElement||null)));let E=t.concat(i.slice(0,p+1)),x=()=>{let b;return m?b=g:y?b=_:d.route.Component?b=J.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=c,J.createElement(MU,{match:d,routeContext:{outlet:c,matches:E,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?J.createElement(YO,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:x(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:u}):x()},null)}function nb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function FU(e){let t=J.useContext(lu);return Bt(t,nb(e)),t}function LU(e){let t=J.useContext(um);return Bt(t,nb(e)),t}function jU(e){let t=J.useContext(Ai);return Bt(t,nb(e)),t}function rb(e){let t=jU(e),r=t.matches[t.matches.length-1];return Bt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function BU(){return rb("useRouteId")}function zU(){var n;let e=J.useContext(tb),t=LU("useRouteError"),r=rb("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function UU(){let{router:e}=FU("useNavigate"),t=rb("useNavigate"),r=J.useRef(!1);return QO(()=>{r.current=!0}),J.useCallback(async(i,a={})=>{Ar(r.current,VO),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var ZC={};function XO(e,t,r){!t&&!ZC[e]&&(ZC[e]=!0,Ar(!1,r))}J.memo($U);function $U({routes:e,manifest:t,future:r,state:n,isStatic:i,onError:a}){return KO(e,void 0,{manifest:t,state:n,isStatic:i,onError:a})}function kh({to:e,replace:t,state:r,relative:n}){Bt(uu()," may be used only in the context of a component.");let{static:i}=J.useContext(hr);Ar(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:a}=J.useContext(Ai),{pathname:s}=wn(),o=ca(),l=lm(e,eb(a),s,n==="path"),u=JSON.stringify(l);return J.useEffect(()=>{o(JSON.parse(u),{replace:t,state:r,relative:n})},[o,u,n,t,r]),null}function Go(e){Bt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function HU({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1,useTransitions:s}){Bt(!uu(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=J.useMemo(()=>({basename:o,navigator:i,static:a,useTransitions:s,future:{}}),[o,i,a,s]);typeof r=="string"&&(r=ys(r));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:m="default",mask:y}=r,g=J.useMemo(()=>{let _=Zi(u,o);return _==null?null:{location:{pathname:_,search:c,hash:d,state:p,key:m,mask:y},navigationType:n}},[o,u,c,d,p,m,n,y]);return Ar(g!=null,` is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the won't render anything.`),g==null?null:J.createElement(hr.Provider,{value:l},J.createElement($f.Provider,{children:t,value:g}))}function Ah({children:e,location:t}){return RU(H_(e),t)}function H_(e,t=[]){let r=[];return J.Children.forEach(e,(n,i)=>{if(!J.isValidElement(n))return;let a=[...t,i];if(n.type===J.Fragment){r.push.apply(r,H_(n.props.children,a));return}Bt(n.type===Go,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),Bt(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=H_(n.props.children,a)),r.push(s)}),r}var hp="get",pp="application/x-www-form-urlencoded";function cm(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function qU(e){return cm(e)&&e.tagName.toLowerCase()==="button"}function GU(e){return cm(e)&&e.tagName.toLowerCase()==="form"}function WU(e){return cm(e)&&e.tagName.toLowerCase()==="input"}function VU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QU(e,t){return e.button===0&&(!t||t==="_self")&&!VU(e)}var Th=null;function KU(){if(Th===null)try{new FormData(document.createElement("form"),0),Th=!1}catch{Th=!0}return Th}var YU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jv(e){return e!=null&&!YU.has(e)?(Ar(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${pp}"`),null):e}function XU(e,t){let r,n,i,a,s;if(GU(e)){let o=e.getAttribute("action");n=o?Zi(o,t):null,r=e.getAttribute("method")||hp,i=Jv(e.getAttribute("enctype"))||pp,a=new FormData(e)}else if(qU(e)||WU(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a + + + + ${e.linkExistingRelative?t3(e):""} + + `}function iue(e){return` +
+ ${n3()} +
+ ${e.no_edit?"":sue(e)} + ${e.no_edit?uue():lue(e)} +
+ + ${ZL(e)} + + ${e3(e)} + +
+ + +
+ + ${e.linkExistingRelative?t3(e):""} + +
+ ${aue(e)} + + ${oue(e)} +
+ `}function aue(e){return` +
+ +
+ `}function oue(e){return` +
+ +
+ `}function sue(e){return` + + ${e.addRelativeActive?Wle():Gle()} + + `}function lue(e){return` + + ${e.editable?Kle():Qle()} + + `}function ZL(e){return e.editable?` +
+ ${e.gender_field.options.map(t=>` + + `).join("")} +
+ `:""}function e3(e){if(!e.editable)return r();let t="";return e.fields.forEach(n=>{if(n.type==="text")t+=` +
+ + +
`;else if(n.type==="textarea")t+=` +
+ + +
`;else if(n.type==="select"){const i=n;t+=` +
+ + +
`}else n.type==="rel_reference"&&(t+=` +
+ + +
`)}),t;function r(){let n="";return e.fields.forEach(i=>{var a;if(i.type==="rel_reference"){if(!i.initial_value)return;n+=` +
+ ${i.label} - ${i.rel_label} + ${i.initial_value||""} +
`}else if(i.type==="select"){const s=i;if(!i.initial_value)return;n+=` +
+ ${s.label} + ${((a=s.options.find(o=>o.value===s.initial_value))===null||a===void 0?void 0:a.label)||""} +
`}else n+=` +
+ ${i.label} + ${i.initial_value||""} +
`}),n}}function t3(e){const t=e.linkExistingRelative.hasOwnProperty("title")?e.linkExistingRelative.title:"Profile already exists?",r=e.linkExistingRelative.hasOwnProperty("select_placeholder")?e.linkExistingRelative.select_placeholder:"Select profile",n=e.linkExistingRelative.options;return` +
+
+ +
+ `}function n3(){return` + + × + + `}function uue(){return'
'}function cue(e,t){return r3(e,t)}function fue(e,t){return r3(e,t)}function r3(e,t){const r=a(e),n=document.createElement("div");return i(),n;function i(){const s=r?rue(e):iue(e);n.innerHTML=s,due(n,e,t,i),r?hue(n,e):pue(n,e,i),e.onFormCreation&&e.onFormCreation({cont:n,form_creator:e})}function a(s){return"new_rel"in s}}function due(e,t,r,n){const i=e.querySelector("form");i.addEventListener("submit",t.onSubmit),i.querySelector(".f3-cancel-btn").addEventListener("click",o),i.querySelector(".f3-close-btn").addEventListener("click",r);function o(){t.editable=!1,t.onCancel&&t.onCancel(),n()}}function hue(e,t){const n=e.querySelector("form").querySelector(".f3-link-existing-relative select");n&&n.addEventListener("change",t.linkExistingRelative.onSelect)}function pue(e,t,r){const n=e.querySelector("form"),i=n.querySelector(".f3-edit-btn");i&&i.addEventListener("click",u);const a=n.querySelector(".f3-delete-btn");a&&t.onDelete&&a.addEventListener("click",t.onDelete);const s=n.querySelector(".f3-add-relative-btn");s&&t.addRelative&&s.addEventListener("click",()=>{t.addRelativeActive?t.addRelativeCancel():t.addRelative(),t.addRelativeActive=!t.addRelativeActive,r()});const o=n.querySelector(".f3-remove-relative-btn");o&&t.removeRelative&&o.addEventListener("click",()=>{t.removeRelativeActive?t.removeRelativeCancel():t.removeRelative(),t.removeRelativeActive=!t.removeRelativeActive,r()});const l=n.querySelector(".f3-link-existing-relative select");l&&l.addEventListener("change",t.linkExistingRelative.onSelect);function u(){t.editable=!t.editable,r()}}function mue(e,t,r){let n=[],i=-1;return{changed:a,back:s,forward:o,canForward:l,canBack:u};function a(){i0}function c(d){const p=e.getMainId();d=JSON.parse(JSON.stringify(d)),d.find(m=>m.id===p)||e.updateMainId(d.main_id),e.updateData(d),r()}}function gue(e,t){const r=ve(e).append("div").attr("class","f3-history-controls");e.insertBefore(r.node(),e.firstChild);const n=r.append("button").attr("class","f3-back-button").on("click",()=>{t.back(),a()}),i=r.append("button").attr("class","f3-forward-button").on("click",()=>{t.forward(),a()});return n.html(Yle()),i.html(Xle()),{back_btn:n.node(),forward_btn:i.node(),updateButtons:a,destroy:s};function a(){n.classed("disabled",!t.canBack()),i.classed("disabled",!t.canForward()),!t.canBack()&&!t.canForward()?r.style("opacity",0).style("pointer-events","none"):r.style("opacity",1).style("pointer-events","auto")}function s(){ve(e).select(".f3-history-controls").remove()}}function i3({d:e,card_dim:t,card_display:r}){return{template:` + + + ${yue({d:e,card_dim:t,card_display:r}).template} + + `}}function vue({d:e,card_dim:t,label:r}){return{template:` + + + + ${r} + + + `}}function yue({d:e,card_dim:t,card_display:r}){return{template:` + + + + + ${Array.isArray(r)?r.map(n=>`${n(e.data)}`).join(` +`):r(e.data)} + + + + + + `}}function RI({d:e,card_dim:t,is_new:r}){return{template:` + + `}}function wue({d:e,card_dim:t}){return{template:` + + + + + + + + + + + `}}function _ue({d:e,image:t,card_dim:r,maleIcon:n,femaleIcon:i}){return{template:` + + ${t?``:(e.data.data.gender,e.data.data.gender,a())} + + `};function a(){return` + + + + + + + `}}function Zh(e,t,r){const n=document.createElementNS("http://www.w3.org/2000/svg","g");n.innerHTML=e,r?t.insertBefore(n,t.firstChild):t.appendChild(n)}const PI={miniTree:bue,cardBody:xue,cardImage:Eue};function bue(e,t){if(e.data.to_add)return;const r=t.card_dim;if(e.all_rels_displayed)return;const n=la("svg:g").html(wue({d:e,card_dim:r}).template);return n.on("click",function(i){i.stopPropagation(),t.onMiniTreeClick?t.onMiniTreeClick.call(this,i,e):VL(t.store,{d:e})}),n.node()}function xue(e,t){const r=t.card_dim,n=la("svg:g").html(i3({d:e,card_dim:r,card_display:t.card_display}).template);return n.on("click",function(i){i.stopPropagation(),t.onCardClick?t.onCardClick.call(this,i,e):VL(t.store,{d:e})}),n.node()}function Eue(e,t){if(e.data.to_add)return;const r=t.card_dim;return la("svg:g").html(_ue({d:e,image:e.data.data.avatar||null,card_dim:r,maleIcon:void 0,femaleIcon:void 0}).template).node()}function V1(e,t,r=!1){e&&(r?t.insertBefore(e,t.firstChild):t.appendChild(e))}function Sue(e,t,r,n){if(!t.hasOwnProperty("_toggle"))return;const i=e.querySelector(".card"),a=i.querySelector(".card-inner"),s=e.querySelector(".card").offsetWidth;e.querySelector(".card").offsetHeight;let o,l;const u={};if(t.spouse){const d=t.spouse,p=d.data.main?"main":d.parent.data.id;if(o=d.data._tgdp_sp[p][t.data.id]<0,u.top=60,u.left=t.sx-t.x-30+s/2,r&&(u.top=t.sy-t.x+4,u.left=s/2+4,Math.abs(t.sx-t.y)<10&&(u.left=s-4)),l=d._toggle_id_sp?d._toggle_id_sp[t.data.id]:-1,l===-1)return}else{const d=t.data.main?"main":t.parent.data.id;o=t.data._tgdp[d]<0,u.top=-65,u.left=-30+s/2,r&&(u.top=5,u.left=-55),l=t._toggle_id}if(a.style.zIndex=1,ve(i).append("div").attr("class","f3-toggle-div").attr("style","cursor: pointer; width: 60px; height: 60px;position: absolute; z-index: -1;").style("top",u.top+"px").style("left",u.left+"px").on("click",d=>{if(d.stopPropagation(),t.spouse){const p=t.spouse,m=p.data.main?"main":p.parent.data.id;p.data._tgdp_sp[m].hasOwnProperty(t.data.id)||console.error("no toggle",t,p);let y=p.data._tgdp_sp[m][t.data.id];y<0?y=new Date().getTime():y=-new Date().getTime(),p.data._tgdp_sp[m][t.data.id]=y}else{const p=t.data.main?"main":t.parent.data.id;let m=t.data._tgdp[p];m<0?m=new Date().getTime():m=-new Date().getTime(),t.data._tgdp[p]=m}n()}).append("div").html(o?Zle():Jle()).select("svg").classed("f3-toggle-icon",!0).style("color",o?"#585656":"#61bf52").style("padding","0"),ve(i).select(".f3-toggle-icon .f3-small-circle").style("fill","#fff"),ve(i).select(".f3-toggle-icon").append("text").attr("transform",o?"translate(10.6, 14.5)":"translate(4.1, 14.5)").attr("fill","#fff").attr("font-size","7px").text("C"+l),o){let d;t.is_ancestry?r?d="translate(5, -30)rotate(-90)":d="translate(0, -10)":r?d="translate(11, -22)rotate(90)":d="translate(-7, -32)rotate(180)",ve(i).select(".f3-toggle-div").insert("div").html(JL()).select("svg").attr("style","position: absolute; z-index: -1;top: 0;left: 0;border-radius: 0;").style("width","66px").style("height","112px").attr("transform",d).attr("viewBox","0 0 72 125").select("line").attr("y1",t.is_ancestry?"62":"92")}}function a3(e){const t=e.style==="default"?u:e.style==="imageCircleRect"?l:e.style==="imageCircle"?c:e.style==="imageRect"?d:e.style==="rect"?p:u;return function(b){if(this.innerHTML=` +
+ ${e.mini_tree?o(b):""} + ${e.cardInnerHtmlCreator&&!b.data._new_rel_data?e.cardInnerHtmlCreator(b):t(b)} +
+ `,this.querySelector(".card").addEventListener("click",C=>e.onCardClick(C,b)),e.onCardUpdate&&e.onCardUpdate.call(this,b),e.onCardMouseenter&&ve(this).select(".card").on("mouseenter",C=>e.onCardMouseenter(C,b)),e.onCardMouseleave&&ve(this).select(".card").on("mouseleave",C=>e.onCardMouseleave(C,b)),b.duplicate&&x(this,b),e.duplicate_branch_toggle&&Sue(this,b,e.store.state.is_horizontal,e.store.updateTree),location.origin.includes("localhost")&&(b.__node=this.querySelector(".card"),b.__label=b.data.data["first name"],b.data.to_add)){const C=b.spouse||b.coparent||null;C&&ve(this).select(".card").attr("data-to-add",C.data.data["first name"])}};function r(b){return` +
+ ${b.data.data[e.cardImageField]?``:_(b)} +
${a(b)}
+ ${b.duplicate?E(b):""} +
+ `}function n(b){return` +
+ ${b.data.data[e.cardImageField]?``:_(b)} +
${a(b)}
+ ${b.duplicate?E(b):""} +
+ `}function i(b){return` +
+ ${a(b)} + ${b.duplicate?E(b):""} +
+ `}function a(b){return b.data._new_rel_data?s(b):b.data.to_add?`
${e.empty_card_label||"ADD"}
`:b.data.unknown?`
${e.unknown_card_label||"UNKNOWN"}
`:` + ${e.card_display.map(C=>`
${C(b.data)}
`).join("")} + `}function s(b){const C=[];return C.push(`data-rel-type="${b.data._new_rel_data.rel_type}"`),["son","daughter"].includes(b.data._new_rel_data.rel_type)&&C.push(`data-other-parent-id="${b.data._new_rel_data.other_parent_id}"`),`
${b.data._new_rel_data.label}
`}function o(b){return!e.mini_tree||b.data.to_add||b.data._new_rel_data||b.all_rels_displayed?"":`
${JL()}
`}function l(b){return b.data.data[e.cardImageField]?c(b):p(b)}function u(b){return n(b)}function c(b){return r(b)}function d(b){return n(b)}function p(b){return i(b)}function m(b){const C=[];return b.data.data.gender==="M"?C.push("card-male"):b.data.data.gender==="F"?C.push("card-female"):C.push("card-genderless"),C.push(`card-depth-${b.is_ancestry?-b.depth:b.depth}`),b.data.main&&C.push("card-main"),b.data._new_rel_data&&C.push("card-new-rel"),b.data.to_add&&C.push("card-to-add"),b.data.unknown&&C.push("card-unknown"),C}function y(){let b='style="';if(e.card_dim.w||e.card_dim.h)b+=`width: ${e.card_dim.w}px; min-height: ${e.card_dim.h}px;`,e.card_dim.height_auto?b+="height: auto;":b+=`height: ${e.card_dim.h}px;`;else return"";return b+='"',b}function g(){let b='style="position: relative;';if(e.card_dim.img_w||e.card_dim.img_h||e.card_dim.img_x||e.card_dim.img_y)b+=`width: ${e.card_dim.img_w}px; height: ${e.card_dim.img_h}px;`,b+=`left: ${e.card_dim.img_x}px; top: ${e.card_dim.img_y}px;`;else return"";return b+='"',b}function _(b){return b.data._new_rel_data?`
${Vle()}
`:`
${e.defaultPersonIcon?e.defaultPersonIcon(b):XL()}
`}function E(b){return`
x${b.duplicate}
`}function x(b,C){ve(b).on("mouseenter",v=>{ve(b.closest(".cards_view")).selectAll(".card_cont").select(".card").classed("f3-card-duplicate-hover",k=>k.data.id===C.data.id)}),ve(b).on("mouseleave",v=>{ve(b.closest(".cards_view")).selectAll(".card_cont").select(".card").classed("f3-card-duplicate-hover",!1)})}}function o3(e,t){if(e.querySelector("defs#f3CardDef"))return;e.insertAdjacentHTML("afterbegin",` + + + + + + + + + + + + + `);function r(n,i,a){const{w:s,h:o}=n,l=i,u=a||[],c=g=>u.includes(g),d=c("lx")?"M0,0":`M0,${l} Q 0,0 5,0`,p=c("rx")?`H${s}`:`H${s-l} Q ${s},0 ${s},5`,m=c("ry")?`V${o}`:`V${o-l} Q ${s},${o} ${s-l},${o}`,y=c("ly")?"H0":`H${l} Q 0,${o} 0,${o-l}`;return`${d} ${p} ${m} ${y} z`}}function Cue(e,t){e.querySelector("defs#f3CardDef")&&e.querySelector("defs#f3CardDef").remove(),o3(e,t)}function Ox(e){return e=t(e),o3(e.svg,e.card_dim),function(r){const n=r.data.data.gender==="M"?"card-male":r.data.data.gender==="F"?"card-female":"card-genderless",i=e.card_dim,a=la("svg:g").attr("class",`card ${n}`).attr("transform",`translate(${[-i.w/2,-i.h/2]})`);a.append("g").attr("class","card-inner").attr("clip-path","url(#card_clip)"),this.innerHTML="",this.appendChild(a.node()),a.on("click",function(s){s.stopPropagation(),e.onCardClick.call(this,s,r)}),r.data._new_rel_data?(Zh(RI({d:r,card_dim:i,is_new:r.data.to_add}).template,a.node(),!0),Zh(vue({d:r,card_dim:i,label:r.data._new_rel_data.label}).template,this.querySelector(".card-inner"),!0),ve(this.querySelector(".card-inner")).append("g").attr("class","card-edit-icon").attr("fill","currentColor").attr("transform",`translate(-1,2)scale(${i.img_h/22})`).html(YL())):(Zh(RI({d:r,card_dim:i,is_new:r.data.to_add}).template,a.node(),!0),Zh(i3({d:r,card_dim:i,card_display:e.card_display}).template,this.querySelector(".card-inner"),!1),e.img&&V1(PI.cardImage(r,e),this.querySelector(".card")),e.mini_tree&&V1(PI.miniTree(r,e),this.querySelector(".card"),!0)),e.onCardUpdate&&e.onCardUpdate.call(this,r)};function t(r){const n={img:!0,mini_tree:!0,link_break:!1,card_dim:{w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5}};r||(r={});for(const i in n)typeof r[i]>"u"&&(r[i]=n[i]);return r}}function kue(e){return e.onCardClick===void 0&&(e.onCardClick=(t,r)=>{e.store.updateMainId(r.data.id),e.store.updateTree({})}),Ox(e)}function s3(e,t){return new Aue(e,t)}class Aue{constructor(t,r){this.cont=t,this.active=!1,this.onClose=r,this.popup_cont=ve(this.cont).append("div").attr("class","f3-popup").node(),this.create()}create(){const t=ve(this.popup_cont);t.html(` +
+ × +
+
+ `),t.select(".f3-popup-close").on("click",()=>{this.close()}),t.on("click",r=>{r.target==t.node()&&this.close()})}activate(t){const r=ve(this.popup_cont).select(".f3-popup-content-inner").node();t&&r.appendChild(t),this.open()}open(){this.active=!0}close(){this.popup_cont.remove(),this.active=!1,this.onClose&&this.onClose()}}function l3(e,t,r){const n=t.find(c=>c.id===e),i={};return a(n.id,"self",0),s(i),r.show_in_law&&o(i,t),l(i),i;function a(c,d,p,m=void 0){if(!c||i[c])return;d&&(i[c]=d);const g=t.find(_=>_.id===c).rels;if(d==="self")g.parents.forEach(_=>a(_,"parent",p-1,c)),(g.spouses||[]).forEach(_=>a(_,"spouse",p)),(g.children||[]).forEach(_=>a(_,"child",p+1));else if(d==="parent")g.parents.forEach(_=>a(_,"grandparent",p-1,c)),(g.children||[]).forEach(_=>{m&&m===_||a(_,"sibling",p+1)});else if(d!=="spouse")if(d==="child")(g.children||[]).forEach(_=>a(_,"grandchild",p+1));else if(d==="sibling")(g.children||[]).forEach(_=>a(_,"nephew",p+1));else if(d==="grandparent")m||console.error(`${d} should have prev_rel_id`),g.parents.forEach(_=>a(_,"great-grandparent",p-1,c)),(g.children||[]).forEach(_=>{m&&m===_||a(_,"uncle",p+1)});else if(d.includes("grandchild"))(g.children||[]).forEach(_=>a(_,ep(d,p+1),p+1));else if(d.includes("great-grandparent"))m||console.error(`${d} should have prev_rel_id`),g.parents.forEach(_=>a(_,ep(d,p-1),p-1,c)),(g.children||[]).forEach(_=>{if(m&&m===_)return;const E=c3(p+1);E===0?a(_,"granduncle",p+1):E>0?a(_,ep("granduncle",p+1),p+1):console.error(`${d} should have great_count > -1`)});else if(d==="nephew")(g.children||[]).forEach(_=>a(_,"grandnephew",p+1));else if(d.includes("grandnephew"))(g.children||[]).forEach(_=>a(_,ep(d,p+1),p+1));else if(d==="uncle")(g.children||[]).forEach(_=>a(_,"1st Cousin",p+1));else if(d==="granduncle")(g.children||[]).forEach(_=>a(_,"1st Cousin 1x removed",p+1));else if(d.includes("great-granduncle")){const _=p+1,E=Math.abs(_);(g.children||[]).forEach(x=>a(x,`1st Cousin ${E}x removed`,_))}else d.slice(4).startsWith("Cousin")?(g.children||[]).forEach(_=>{const E=p+1,x=Math.abs(E),b=+d[0];E===0?a(_,`${_0(b+1)} Cousin`,E):E<0?a(_,`${_0(b+1)} Cousin ${x}x removed`,E):E>0&&a(_,`${_0(b)} Cousin ${x}x removed`,E)}):console.error(`${d} not found`)}function s(c){const d=[];Object.keys(c).forEach(p=>{const m=c[p];if(m.includes("child")||m==="spouse")return;const y=u3(n.id,p,t);if(!y)return console.error(`${t.find(g=>g.id===p).data} not found in main_ancestry`);y.is_half_kin&&d.push(p)}),d.forEach(p=>{c[p]=`Half ${c[p]}`})}function o(c,d){Object.keys(c).forEach(p=>{const m=c[p],y=d.find(g=>g.id===p);if(m==="spouse"){const g=[];y.rels.parents.forEach(_=>(u(_).rels.children||[]).forEach(E=>g.push(E))),g.forEach(_=>{c[_]||(c[_]="sibling-in-law")})}m==="sibling"&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="sibling-in-law")}),m==="child"&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="child-in-law")}),m==="uncle"&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="uncle-in-law")}),m.includes("Cousin")&&(y.rels.spouses||[]).forEach(g=>{c[g]||(c[g]=`${m} in-law`)})})}function l(c){Object.keys(c).forEach(d=>{const p=c[d],y=t.find(g=>g.id===d).data.gender;if(p.includes("parent")){const _=y==="M"?"father":y==="F"?"mother":"parent";c[d]=c[d].replace("parent",_)}else if(p.includes("sibling")){const _=y==="M"?"brother":y==="F"?"sister":"sibling";c[d]=c[d].replace("sibling",_)}else if(p.includes("child")){const _=y==="M"?"son":y==="F"?"daughter":"child";c[d]=c[d].replace("child",_)}else if(p.includes("uncle")){const _=y==="M"?"uncle":y==="F"?"aunt":"aunt/uncle";c[d]=c[d].replace("uncle",_)}else if(p.includes("nephew")){const _=y==="M"?"nephew":y==="F"?"niece":"neice/nephew";c[d]=c[d].replace("nephew",_)}})}function u(c){return t.find(d=>d.id===c)}}function u3(e,t,r){const n=l(e);let i,a,s;if(c(t),d(t),o(t),!i)return null;return{found:i,is_ancestor:a,is_half_kin:s};function o(m){if(i)return;if(m===e){a=!0,i=m,s=!1;return}const g=r.find(x=>x.id===m).rels,_=u(g),E=n.find(x=>x[0]&&_[0]&&x[0]===_[0]||x[1]&&_[1]&&x[1]===_[1]);if(E){i=_.filter((x,b)=>x===E[b]),s=p(_,E);return}g.parents.forEach(x=>o(x))}function l(m){const y=[];return g(m),y;function g(_){const x=r.find(b=>b.id===_).rels;y.push(u(x)),x.parents.forEach(b=>g(b))}}function u(m){return m.parents}function c(m){const y=r.find(_=>_.id===m);n.find(_=>_[0]===y.id||_[1]===y.id)&&(a=!0,i=m,s=!1)}function d(m){(r.find(g=>g.id===e).rels.spouses||[]).includes(m)&&(i=[e,m])}function p(m,y){return m.some((g,_)=>g!==y[_])||y.some((g,_)=>g!==m[_])}}function _0(e){const t=["st","nd","rd"];return t[e-1]?e+t[e-1]:e+"th"}function c3(e){return Math.abs(e)-2}function ep(e,t){const r=c3(t);return e.includes("great-")&&(e=e.split("great-")[1]),r===1?`great-${e}`:r>1?`${r}x-great-${e}`:(console.error(`${e} should have great_count > 1`),e)}function f3(e,t,r,n){var i;let a;const s=n[t].toLowerCase();if(s.includes("in-law")){a=t;const T=r.find(N=>N.id===a);s.includes("sister")||s.includes("brother")?t=e:t=(i=T.rels.spouses)===null||i===void 0?void 0:i.find(N=>n[N]&&!n[N].includes("in-law"))}const o=u3(e,t,r);if(!o)return console.error(`${t} not found in main_ancestry`);const l=o.is_ancestor?o.found:o.found[0],u=r.find(T=>T.id===l),c=hs(u,_),d=c.descendants().map(T=>T.data.id),p=E(e,d),m=E(t,d);g(c);const y=c.descendants().map(T=>{const N={id:T.data.id,data:JSON.parse(JSON.stringify(T.data.data)),kinship:n[T.data.id],rels:{parents:[],spouses:[],children:[]}};return T.children&&T.children.length>0&&(N.rels.children=T.children.map(M=>M.data.id)),N});return y.length>0&&!o.is_ancestor&&!o.is_half_kin&&x(y),a&&b(y),y;function g(T){T.children=(T.children||[]).filter(N=>!!(p.includes(N.data.id)||m.includes(N.data.id))),T.children.forEach(N=>g(N)),T.children.length===0&&delete T.children}function _(T){return[...T.rels.children||[]].map(M=>r.find(B=>B.id===M)).filter(M=>M)}function E(T,N){const M=[T];return B(T),M;function B(D){r.find(W=>W.id===D).rels.parents.forEach(W=>{N.includes(W)&&(M.push(W),B(W))})}}function x(T){const N=T[0];if(!o)return console.error(`${t} not found in main_ancestry`);const M=l===o.found[0]?o.found[1]:o.found[0];N.rels.spouses=[M];const B=r.find($=>$.id===M),D={id:B.id,data:JSON.parse(JSON.stringify(B.data)),kinship:n[B.id],rels:{spouses:[N.id],children:N.rels.children,parents:[]}};T.push(D),(N.rels.children||[]).forEach($=>{const X=r.find(U=>U.id===$),W=T.find(U=>U.id===$);W.rels.parents=[...X.rels.parents]})}function b(T){s.includes("sister")||s.includes("brother")?v(T):C(T)}function C(T){const N=T.find($=>$.id===t),M=a;N.rels.spouses=[M];const B=r.find($=>$.id===M),D={id:B.id,data:JSON.parse(JSON.stringify(B.data)),kinship:n[B.id],rels:{spouses:[N.id],children:[],parents:[]}};T.push(D)}function v(T){var N;const M=T.find(U=>U.id===t),B=k(a);T.push({id:a,data:JSON.parse(JSON.stringify(B.data)),kinship:n[a],rels:{spouses:[],children:[],parents:[]}});const D=[];B.rels.parents.forEach(U=>(k(U).rels.children||[]).forEach(V=>D.push(V)));const $=(N=k(t).rels.spouses)===null||N===void 0?void 0:N.find(U=>D.includes(U));M.rels.spouses=[$];const X=k($),W={id:X.id,data:JSON.parse(JSON.stringify(X.data)),kinship:n[X.id],rels:{spouses:[M.id],children:[],parents:[]}};T.push(W),B.rels.parents.forEach(U=>{const V=k(U),K=V.data.gender==="M"?"Father-in-law":V.data.gender==="F"?"Mother-in-law":"Parent-in-law",Y={id:V.id,data:JSON.parse(JSON.stringify(V.data)),kinship:K,rels:{spouses:[],children:[$,a],parents:[]}},G=B.rels.parents.find(F=>F!==F);G&&Y.rels.parents.push(G),T.unshift(Y)})}function k(T){return r.find(N=>N.id===T)}}function d3(e,t,r){const n=e.id;r.forEach(s=>{s.rels.parents.includes(n)&&(s.rels.parents[s.rels.parents.indexOf(n)]=t),s.rels.spouses&&s.rels.spouses.includes(n)&&(s.rels.spouses=s.rels.spouses.filter(o=>o!==n),s.rels.spouses.includes(t)||s.rels.spouses.push(t)),s.rels.children&&s.rels.children.includes(n)&&(s.rels.children=s.rels.children.filter(o=>o!==n),s.rels.children.includes(t)||s.rels.children.push(t))});const i=r.find(s=>s.id===t),a=r.find(s=>s.id===n);if(!a)throw new Error("New rel not found");if(!i)throw new Error("Link rel not found");if((a.rels.children||[]).forEach(s=>{i.rels.children||(i.rels.children=[]),i.rels.children.includes(s)||i.rels.children.push(s)}),(a.rels.spouses||[]).forEach(s=>{i.rels.spouses||(i.rels.spouses=[]),i.rels.spouses.includes(s)||i.rels.spouses.push(s)}),i.rels.parents.length===0)i.rels.parents=[...a.rels.parents];else{const s=i.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="M"}),o=i.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="F"}),l=a.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="M"}),u=a.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="F"});l&&(s?(console.error("link rel already has father"),i.rels.parents[i.rels.parents.indexOf(s)]=l):i.rels.parents.push(l)),u&&(o?(console.error("link rel already has mother"),i.rels.parents[i.rels.parents.indexOf(o)]=u):i.rels.parents.push(u))}r.splice(r.findIndex(s=>s.id===n),1)}function Tue(e,t){const r=e._new_rel_data?t.find(o=>o.id===e._new_rel_data.rel_id):null,n=a(e,t),i=s(e,t);if(e._new_rel_data&&["son","daughter"].includes(e._new_rel_data.rel_type)){if(!r)throw new Error("Rel datum not found");i.push(...s(r,t))}return t.filter(o=>o.id!==e.id&&o.id!==(r==null?void 0:r.id)&&!o._new_rel_data&&!o.to_add&&!o.unknown).filter(o=>!n.includes(o.id)).filter(o=>!i.includes(o.id)).filter(o=>!(o.rels.spouses||[]).includes(e.id));function a(o,l){const u=[];return c(o),u;function c(d){d.rels.parents.forEach(p=>{if(p){u.push(p);const m=l.find(y=>y.id===p);if(!m)throw new Error("Parent not found");c(m)}})}}function s(o,l){const u=[];return c(o),u;function c(d){(d.rels.children?[...d.rels.children]:[]).forEach(m=>{u.push(m);const y=l.find(g=>g.id===m);if(!y)throw new Error("Child not found");c(y)})}}}function Iue({datum:e,store:t,fields:r,postSubmitHandler:n,addRelative:i,removeRelative:a,deletePerson:s,onCancel:o,editFirst:l,link_existing_rel_config:u,onFormCreation:c,no_edit:d,onSubmit:p,onDelete:m,canEdit:y,canDelete:g}){let _=g?g(e):!0;(y?y(e):!0)||(d=!0,_=!1);let x;const b={datum_id:e.id,fields:[],onSubmit:N,onCancel:o,onFormCreation:c,no_edit:d,gender_field:C()};if(e._new_rel_data)x=Object.assign(Object.assign({},b),{title:e._new_rel_data.label,new_rel:!0,editable:!0});else{if(!i)throw new Error("addRelative is required");if(!a)throw new Error("removeRelative is required");x=Object.assign(Object.assign({},b),{onDelete:B,addRelative:()=>i.activate(e),addRelativeCancel:()=>i.onCancel(),addRelativeActive:i.is_active,removeRelative:()=>a.activate(e),removeRelativeCancel:()=>a.onCancel(),removeRelativeActive:a.is_active,editable:!1,can_delete:_})}return(e._new_rel_data||e.to_add||e.unknown)&&u&&(x.linkExistingRelative=T(e,t.getData(),u)),d?x.editable=!1:l&&(x.editable=!0),r.forEach(D=>{D.type==="rel_reference"?v(D):D.type==="select"?k(D):x.fields.push({id:D.id,type:D.type,label:D.label,initial_value:e.data[D.id]})}),x;function C(){return{id:"gender",type:"switch",label:"Gender",initial_value:e.data.gender,disabled:!1,options:[{value:"M",label:"Male"},{value:"F",label:"Female"}]}}function v(D){D.getRelLabel||console.error("getRelLabel is not set"),D.rel_type==="spouse"&&(e.rels.spouses||[]).forEach($=>{const X=t.getDatum($);if(!X)throw new Error("Spouse not found");const W=`${D.id}__ref__${$}`,U={id:W,type:"rel_reference",label:D.label,rel_id:$,rel_label:D.getRelLabel(X),initial_value:e.data[W],rel_type:D.rel_type};x.fields.push(U)})}function k(D){if(!D.options&&!D.optionCreator)return console.error("optionCreator or options is not set for field",D);const $={id:D.id,type:D.type,label:D.label,initial_value:e.data[D.id],placeholder:D.placeholder,options:D.options||D.optionCreator(e)};x.fields.push($)}function T(D,$,X){if(!X)throw new Error("link_existing_rel_config is required");return{title:X.title,select_placeholder:X.select_placeholder,options:Tue(D,$).map(U=>({value:U.id,label:X.linkRelLabel(U)})).sort((U,V)=>typeof U.label=="string"&&typeof V.label=="string"?U.label.localeCompare(V.label):U.labeln({})):(D.preventDefault(),$(),n({}));function $(){const X=new FormData(D.target);Tle(e,t.getData(),X)}}function M(D){const $=D.target.value;n({link_rel_id:$})}function B(){m?m(e,()=>s(),()=>n({delete:!0})):(s(),n({delete:!0}))}}function Rue(e,t){t.forEach(r=>{const n=r._new_rel_data;n&&n.rel_type==="spouse"&&(r.data.gender=r.data.gender==="M"?"F":"M")})}function Pue(e){for(let t=e.length-1;t>=0;t--){const r=e[t];r._new_rel_data&&(e.forEach(n=>{n.rels.parents.includes(r.id)&&n.rels.parents.splice(n.rels.parents.indexOf(r.id),1),n.rels.children&&n.rels.children.includes(r.id)&&n.rels.children.splice(n.rels.children.indexOf(r.id),1),n.rels.spouses&&n.rels.spouses.includes(r.id)&&n.rels.spouses.splice(n.rels.spouses.indexOf(r.id),1)}),e.splice(t,1))}}function Oue(e,t,r,n){let i={parent:!0,spouse:!0,child:!0};n&&(i=Object.assign(i,n(e))),e.rels.spouses||(e.rels.spouses=[]),e.rels.children||(e.rels.children=[]),i.parent&&a(),i.spouse&&(s(),o()),i.child&&l();function a(){const u=e.rels.parents,c=u.find(y=>{var g;return((g=t.find(_=>_.id===y))===null||g===void 0?void 0:g.data.gender)==="M"}),d=u.find(y=>{var g;return((g=t.find(_=>_.id===y))===null||g===void 0?void 0:g.data.gender)==="F"});if(u.length<2&&!c){const y=Wa({data:{gender:"M"},rels:{children:[e.id]}});y._new_rel_data={rel_type:"father",label:r.father,rel_id:e.id},e.rels.parents.push(y.id),t.push(y)}if(u.length<2&&!d){const y=Wa({data:{gender:"F"},rels:{children:[e.id]}});y._new_rel_data={rel_type:"mother",label:r.mother,rel_id:e.id},e.rels.parents.push(y.id),t.push(y)}const p=t.find(y=>y.id===e.rels.parents[0]),m=t.find(y=>y.id===e.rels.parents[1]);p.rels.spouses||(p.rels.spouses=[]),m.rels.spouses||(m.rels.spouses=[]),p.rels.spouses.includes(m.id)||p.rels.spouses.push(m.id),m.rels.spouses.includes(p.id)||m.rels.spouses.push(p.id),p.rels.children||(p.rels.children=[]),m.rels.children||(m.rels.children=[]),p.rels.children.includes(e.id)||p.rels.children.push(e.id),m.rels.children.includes(e.id)||m.rels.children.push(e.id)}function s(){if(e.rels.spouses||(e.rels.spouses=[]),e.rels.children){let u;e.rels.children.forEach(c=>{const d=t.find(p=>p.id===c);if(d.rels.parents.length===1){const m=t.find(y=>y.id===d.rels.parents[0]).data.gender==="M"?"F":"M";u||(u=Wa({data:{gender:m},rels:{spouses:[e.id]}})),u._new_rel_data={rel_type:"spouse",label:r.spouse,rel_id:e.id},u.rels.children.push(d.id),e.rels.spouses.push(u.id),d.rels.parents.push(u.id),t.push(u)}})}}function o(){e.rels.spouses||(e.rels.spouses=[]);const u=e.data.gender==="M"?"F":"M",c=Wa({data:{gender:u},rels:{spouses:[e.id]}});c._new_rel_data={rel_type:"spouse",label:r.spouse,rel_id:e.id},e.rels.spouses.push(c.id),t.push(c)}function l(){e.rels.children||(e.rels.children=[]),e.rels.spouses||(e.rels.spouses=[]),e.rels.spouses.forEach(u=>{const c=t.find(m=>m.id===u);c.rels.children||(c.rels.children=[]);const d=Wa({data:{gender:"M"},rels:{parents:[e.id,c.id]}});d._new_rel_data={rel_type:"son",label:r.son,other_parent_id:c.id,rel_id:e.id},c.rels.children.push(d.id),e.rels.children.push(d.id),t.push(d);const p=Wa({data:{gender:"F"},rels:{parents:[e.id,c.id]}});p._new_rel_data={rel_type:"daughter",label:r.daughter,other_parent_id:c.id,rel_id:e.id},c.rels.children.push(p.id),e.rels.children.push(p.id),t.push(p)})}return t}var Nue=(e,t,r)=>new Mue(e,t,r);class Mue{constructor(t,r,n){return this.store=t,this.onActivate=r,this.cancelCallback=n,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this.addRelLabels=this.addRelLabelsDefault(),this}activate(t){this.is_active&&this.onCancel(),this.onActivate(),this.is_active=!0,this.store.state.one_level_rels=!0;const r=this.store;this.datum=t;let n=this.datum.data.gender;Oue(t,this.getStoreData(),this.addRelLabels,this.canAdd),r.updateTree({}),this.onChange=i,this.onCancel=()=>a(this);function i(s,o){s!=null&&s._new_rel_data?o!=null&&o.link_rel_id?d3(s,o.link_rel_id,r.getData()):delete s._new_rel_data:s.id===t.id?s.data.gender!==n&&(n=s.data.gender,Rue(s,r.getData())):console.error("Something went wrong")}function a(s){s.is_active&&(s.is_active=!1,s.store.state.one_level_rels=!1,s.cleanUp(),s.cancelCallback(s.datum),s.datum=null,s.onChange=null,s.onCancel=null)}}setAddRelLabels(t){if(typeof t!="object"){console.error("add_rel_labels must be an object");return}for(const r in t){const n=r;this.addRelLabels[n]=t[n]}return this}setCanAdd(t){return this.canAdd=t,this}addRelLabelsDefault(){return{father:"Add Father",mother:"Add Mother",spouse:"Add Spouse",son:"Add Son",daughter:"Add Daughter"}}getStoreData(){return this.store.getData()}cleanUp(t){return t||(t=this.store.getData()),Pue(t),t}}var Due=(e,t,r,n)=>new Fue(e,t,r,n);class Fue{constructor(t,r,n,i){return this.store=t,this.onActivate=r,this.cancelCallback=n,this.modal=i,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this}activate(t){this.is_active&&this.onCancel(),this.onActivate(),this.is_active=!0,this.store.state.one_level_rels=!0;const r=this.store;r.updateTree({}),this.datum=t,this.onChange=n.bind(this),this.onCancel=i.bind(this);function n(a,s){const o=p(a),l=t.rels;o==="parent"?u.call(this):o==="spouse"?c.call(this):o==="children"&&d.call(this);function u(){const m=a.data.id,y=r.getDatum(m);if(!y)throw new Error("Parent not found");if(!y.rels.children)throw new Error("Parent has no children");y.rels.children=y.rels.children.filter(g=>g!==t.id),l.parents=l.parents.filter(g=>g!==m),s()}function c(){const m=a.data;y()?g.call(this):_.call(this,!0);function y(){return(m.rels.children||[]).some(x=>{const b=r.getDatum(x);if(!b)throw new Error("Child not found");return!!b.rels.parents.includes(m.id)})}function g(){const E=t.data.gender==="M"?"f3-male-bg":t.data.gender==="F"?"f3-female-bg":null,x=m.data.gender==="M"?"f3-male-bg":m.data.gender==="F"?"f3-female-bg":null,b=la("div").html(` +

You are removing a spouse relationship. Since there are shared children, please choose which parent should keep them in the family tree.

+
+ + +
+ `);b.selectAll('[data-option="assign-to-current"]').on("click",()=>{_(!0),this.modal.close()}),b.selectAll('[data-option="assign-to-spouse"]').on("click",()=>{_(!1),this.modal.close()}),this.modal.activate(b.node())}function _(E){a.data.rels.spouses=a.data.rels.spouses.filter(C=>C!==t.id),l.spouses=l.spouses.filter(C=>C!==a.data.id);const x=E?t:a.data,b=E?a.data:t;(l.children||[]).forEach(C=>{const v=r.getDatum(C);if(!v)throw new Error("Child not found");v.rels.parents.includes(b.id)&&(v.rels.parents=v.rels.parents.filter(k=>k!==b.id))}),b.rels.children&&(b.rels.children=b.rels.children.filter(C=>!(x.rels.children||[]).includes(C))),s()}}function d(){if(!l.children)throw new Error("Children not found");l.children=l.children.filter(m=>m!==a.data.id),a.data.rels.parents=a.data.rels.parents.filter(m=>m!==t.id),s()}function p(m){if(m.is_ancestry){if(t.rels.parents.includes(m.data.id))return"parent"}else if(m.spouse){if(!t.rels.spouses)throw new Error("Spouses not found");if(t.rels.spouses.includes(m.data.id))return"spouse"}else{if(!t.rels.children)throw new Error("Children not found");if(t.rels.children.includes(m.data.id))return"children"}return null}}function i(){if(this.is_active){if(this.is_active=!1,this.store.state.one_level_rels=!1,!this.datum)throw new Error("Datum not found");this.cancelCallback(this.datum),this.datum=null,this.onChange=null,this.onCancel=null}}}}function Lue(e){return new jue(e)}class jue{constructor(t){this.cont=t,this.active=!1,this.onClose=null,this.modal_cont=ve(this.cont).append("div").attr("class","f3-modal").node(),ve(this.modal_cont).style("display","none"),this.create()}create(){const t=ve(this.modal_cont);t.html(` +
+ × +
+
+
+ `),t.select(".f3-modal-close").on("click",()=>{this.close()}),t.on("click",r=>{r.target==t.node()&&this.close()})}activate(t,{boolean:r,onAccept:n,onCancel:i}={}){this.reset();const a=ve(this.modal_cont).select(".f3-modal-content-inner").node();if(typeof t=="string"?a.innerHTML=t:a.appendChild(t),r){if(!n)throw new Error("onAccept is required");if(!i)throw new Error("onCancel is required");ve(this.modal_cont).select(".f3-modal-content-bottom").html(` + + + `),ve(this.modal_cont).select(".f3-modal-accept").on("click",()=>{n(),this.reset(),this.close()}),ve(this.modal_cont).select(".f3-modal-cancel").on("click",()=>{this.close()}),this.onClose=i}this.open()}reset(){this.onClose=null,ve(this.modal_cont).select(".f3-modal-content-inner").html(""),ve(this.modal_cont).select(".f3-modal-content-bottom").html("")}open(){this.modal_cont.style.display="block",this.active=!0}close(){this.modal_cont.style.display="none",this.active=!1,this.onClose&&this.onClose()}}var Bue=(e,t)=>new zue(e,t);class zue{constructor(t,r){return this.cont=t,this.store=r,this.fields=[{type:"text",label:"first name",id:"first name"},{type:"text",label:"last name",id:"last name"},{type:"text",label:"birthday",id:"birthday"},{type:"text",label:"avatar",id:"avatar"}],this.is_fixed=!0,this.no_edit=!1,this.onChange=null,this.editFirst=!1,this.postSubmit=null,this.onFormCreation=null,this.createFormEdit=null,this.createFormNew=null,this.formCont=this.getFormContDefault(),this.modal=this.setupModal(),this.addRelativeInstance=this.setupAddRelative(),this.removeRelativeInstance=this.setupRemoveRelative(),this.history=this.createHistory(),this}open(t){t.rels||(t=t.data),this.addRelativeInstance.is_active?r(this):this.removeRelativeInstance.is_active?n(this,this.store.getTreeDatum(t.id)):this.cardEditForm(t);function r(i){t._new_rel_data?i.cardEditForm(t):(i.addRelativeInstance.onCancel(),i.cardEditForm(t),i.store.updateMainId(t.id),i.store.updateTree({}))}function n(i,a){if(!a)throw new Error("Tree datum not found");if(!i.removeRelativeInstance.datum)throw new Error("Remove relative datum not found");if(!i.removeRelativeInstance.onCancel)throw new Error("Remove relative onCancel not found");if(!i.removeRelativeInstance.onChange)throw new Error("Remove relative onChange not found");if(t.id===i.removeRelativeInstance.datum.id)i.removeRelativeInstance.onCancel(),i.cardEditForm(t);else{let s=function(){i.removeRelativeInstance.onCancel(),i.updateHistory(),i.store.updateTree({})};i.removeRelativeInstance.onChange(a,s.bind(i))}}}setupAddRelative(){return Nue(this.store,()=>t(this),n=>r(this,n));function t(n){n.removeRelativeInstance.is_active&&n.removeRelativeInstance.onCancel()}function r(n,i){n.store.updateMainId(i.id),n.store.updateTree({}),n.openFormWithId(i.id)}}setupRemoveRelative(){return Due(this.store,t.bind(this),r.bind(this),this.modal);function t(){this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),n(this.cont,!0)}function r(i){n(this.cont,!1),this.store.updateMainId(i.id),this.store.updateTree({}),this.openFormWithId(i.id)}function n(i,a){ve(i).select("#f3Canvas").classed("f3-remove-relative-active",a)}}createHistory(){const t=mue(this.store,this._getStoreDataCopy.bind(this),i.bind(this)),r=this.cont.querySelector(".f3-nav-cont");if(!r)throw new Error("Nav cont not found");const n=gue(r,t);return t.changed(),n.updateButtons(),Object.assign(Object.assign({},t),{controls:n});function i(){var a;console.log("historyUpdateTree"),this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),this.removeRelativeInstance.is_active&&this.removeRelativeInstance.onCancel(),this.store.updateTree({initial:!1}),this.history.controls.updateButtons(),this.openFormWithId((a=this.store.getMainDatum())===null||a===void 0?void 0:a.id),this.onChange&&this.onChange()}}openWithoutRelCancel(t){this.cardEditForm(t)}getFormContDefault(){let t=ve(this.cont).select("div.f3-form-cont").node();return t||(t=ve(this.cont).append("div").classed("f3-form-cont",!0).node()),{el:t,populate(r){t.innerHTML="",t.appendChild(r)},open(){ve(t).classed("opened",!0)},close(){ve(t).classed("opened",!1).html("")}}}setFormCont(t){return this.formCont=t,this}cardEditForm(t){const r={},n=t==null?void 0:t._new_rel_data;n?r.onCancel=()=>this.addRelativeInstance.onCancel():(r.addRelative=this.addRelativeInstance,r.removeRelative=this.removeRelativeInstance,r.deletePerson=()=>{KL(t,this.store.getData()),this.openFormWithId(this.store.getLastAvailableMainDatum().id),this.store.updateTree({})});const i=Iue(Object.assign({store:this.store,datum:t,postSubmitHandler:o=>s(this,o),fields:this.fields,onCancel:()=>{},editFirst:this.editFirst,no_edit:this.no_edit,link_existing_rel_config:this.link_existing_rel_config,onFormCreation:this.onFormCreation,onSubmit:this.onSubmit,onDelete:this.onDelete,canEdit:this.canEdit,canDelete:this.canDelete},r)),a=n?(this.createFormNew||cue)(i,this.closeForm.bind(this)):(this.createFormEdit||fue)(i,this.closeForm.bind(this));this.formCont.populate(a),this.openForm();function s(o,l){if(o.addRelativeInstance.is_active){o.addRelativeInstance.onChange(t,l),o.postSubmit&&o.postSubmit(t,o.store.getData());const u=o.addRelativeInstance.datum;if(!u)throw new Error("Active datum not found");o.store.updateMainId(u.id),o.openWithoutRelCancel(u)}else(t.to_add||t.unknown)&&(l!=null&&l.link_rel_id)?(d3(t,l.link_rel_id,o.store.getData()),o.store.updateMainId(l.link_rel_id),o.openFormWithId(l.link_rel_id)):l!=null&&l.delete||(o.postSubmit&&o.postSubmit(t,o.store.getData()),o.openFormWithId(t.id));o.is_fixed||o.closeForm(),o.store.updateTree({}),o.updateHistory()}}openForm(){this.formCont.open()}closeForm(){this.formCont.close(),this.store.updateTree({})}fixed(){return this.is_fixed=!0,this.formCont.el&&ve(this.formCont.el).style("position","relative"),this}absolute(){return this.is_fixed=!1,this.formCont.el&&ve(this.formCont.el).style("position","absolute"),this}setCardClickOpen(t){return t.setOnCardClick((r,n)=>{this.isAddingRelative()?this.open(n.data):this.isRemovingRelative()?this.open(n.data):(this.open(n.data),t.onCardClickDefault(r,n))}),this}openFormWithId(t){if(t){const r=this.store.getDatum(t);if(!r)throw new Error("Datum not found");this.openWithoutRelCancel(r)}else{const r=this.store.getMainDatum();if(!r)throw new Error("Main datum not found");this.openWithoutRelCancel(r)}}setNoEdit(){return this.no_edit=!0,this}setEdit(){return this.no_edit=!1,this}setFields(t){const r=[];if(!Array.isArray(t))return console.error("fields must be an array"),this;for(const n of t)typeof n=="string"?r.push({type:"text",label:n,id:n}):typeof n=="object"?n.id?r.push(n):console.error("fields must be an array of objects with id property"):console.error("fields must be an array of strings or objects");return this.fields=r,this}setOnChange(t){return this.onChange=t,this}setCanEdit(t){return this.canEdit=t,this}setCanDelete(t){return this.canDelete=t,this}setCanAdd(t){return this.addRelativeInstance.setCanAdd(t),this}addRelative(t){return t||(t=this.store.getMainDatum()),this.addRelativeInstance.activate(t),this}setupModal(){return Lue(this.cont)}setEditFirst(t){return this.editFirst=t,this}isAddingRelative(){return this.addRelativeInstance.is_active}isRemovingRelative(){return this.removeRelativeInstance.is_active}setAddRelLabels(t){return this.addRelativeInstance.setAddRelLabels(t),this}setLinkExistingRelConfig(t){return this.link_existing_rel_config=t,this}setOnFormCreation(t){return this.onFormCreation=t,this}setCreateFormEdit(t){return this.createFormEdit=t,this}setCreateFormNew(t){return this.createFormNew=t,this}_getStoreDataCopy(){let t=JSON.parse(JSON.stringify(this.store.getData()));return this.addRelativeInstance.is_active&&(t=this.addRelativeInstance.cleanUp(t)),t=Ple(t),t}getStoreDataCopy(){return this.exportData()}exportData(){let t=this._getStoreDataCopy();return t=lle(t,this.store.state.legacy_format),t}getDataJson(){return JSON.stringify(this.exportData(),null,2)}updateHistory(){this.history&&(this.history.changed(),this.history.controls.updateButtons()),this.onChange&&this.onChange()}setPostSubmit(t){return this.postSubmit=t,this}setOnSubmit(t){return this.onSubmit=t,this}setOnDelete(t){return this.onDelete=t,this}destroy(){return this.history.controls.destroy(),this.history=null,this.formCont.el&&ve(this.formCont.el).remove(),this.addRelativeInstance.onCancel&&this.addRelativeInstance.onCancel(),this.store.updateTree({}),this}}function Uue(e,t,r){const n=[];t.data.forEach(p=>{p.coparent&&p.data.data.gender==="F"&&n.push({nodes:[p,p.coparent],id:`${p.data.id}--${p.coparent.data.id}`}),p.spouses&&p.spouses.forEach(m=>n.push({nodes:[m,p],id:`${m.data.id}--${p.data.id}`}))});const i=ve(e).select(".links_view").selectAll("g.link-text").data(n,p=>p.id),a=i.exit(),s=i.enter().append("g").attr("class","link-text"),o=s.merge(i),l=(p,m)=>p.spouse&&p.data.data.gender==="F"?p.x-r.node_separation/2:m.spouse&&m.data.data.gender==="M"?m.x+r.node_separation/2:Math.min(p.x,m.x)+r.node_separation/2;a.each(d),s.each(u),o.each(c);function u(p){const[m,y]=p.nodes,g=ve(this);g.attr("transform",`translate(${l(m,y)}, ${m.y-3})`).style("opacity",0),g.append("text").style("font-size","12px").style("fill","#fff").style("text-anchor","middle")}function c(p){const[m,y]=p.nodes,g=ve(this),_=r.initial?ud(t,m,r.transition_time):0;g.select("text").text(r.linkSpouseText(m,y)),g.transition("text").duration(r.transition_time).delay(_).attr("transform",`translate(${l(m,y)}, ${m.y-3})`),g.transition("text-op").duration(100).delay(_+r.transition_time).style("opacity",1)}function d(p){const m=ve(this);m.transition("text").duration(100).style("opacity",0).on("end",()=>m.remove())}}function $ue(e,t,r={}){return new Hue(e,t,r)}class Hue{constructor(t,r,n={}){this.cont=t,this.options=[],this.onSelect=r,this.config=n,this.autocomplete_cont=ve(this.cont).append("div").attr("class","f3-autocomplete-cont").node(),this.create()}create(){var t;const r=this;ve(this.autocomplete_cont).html(` +
+
+ + ${eue()} +
+
+
+ `);const n=ve(this.autocomplete_cont).select(".f3-autocomplete"),i=n.select("input"),a=n.select(".f3-autocomplete-items");n.on("focusout",()=>{setTimeout(()=>{n.node().contains(document.activeElement)||o()},200)}),i.on("focus",()=>{u(),s()}).on("input",s).on("keydown",c),a.on("wheel",d=>d.stopPropagation()),n.select(".f3-autocomplete-toggle").on("click",d=>{d.stopPropagation();const p=n.classed("active");n.classed("active",!p),p?o():(i.node().focus(),s())});function s(){n.classed("active",!0);const d=i.property("value"),p=r.options.filter(g=>g.label.toLowerCase().includes(d.toLowerCase()));p.forEach(m),p.sort(y),l(p);function m(g){const _=g.label.toLowerCase().indexOf(d.toLowerCase());_!==-1?g.label_html=E():g.label_html=g.label;function E(){return g.label.substring(0,_)+""+g.label.substring(_,_+d.length)+""+g.label.substring(_+d.length)}}function y(g,_){return g.label<_.label?-1:g.label>_.label?1:0}}function o(){n.classed("active",!1),l([])}function l(d){a.selectAll("div.f3-autocomplete-item").data(d,m=>m==null?void 0:m.value).join("div").attr("class","f3-autocomplete-item").on("click",(m,y)=>{r.onSelect(y.value)}).html(m=>m.optionHtml?m.optionHtml(m):p(m));function p(m){return`
${m.label_html}
`}}function u(){r.options=r.getOptions()}function c(d){const p=a.selectAll("div.f3-autocomplete-item").nodes(),m=p.findIndex(g=>ve(g).classed("f3-selected"));if(d.key==="ArrowDown"){d.preventDefault();const g=m0?m-1:p.length-1;y(p,g)}else if(d.key==="Enter"&&m!==-1){d.preventDefault();const g=ve(p[m]).datum();g&&r.onSelect(g.value)}function y(g,_){g.forEach(E=>ve(E).classed("f3-selected",!1)),g[_]&&(ve(g[_]).classed("f3-selected",!0),g[_].scrollIntoView({block:"nearest"}))}}}setOptionsGetter(t){return this.getOptions=t,this}setOptionsGetterPerson(t,r){return this.getOptions=()=>{const a=[];return t().forEach(o=>{o.to_add||o.unknown||o._new_rel_data||a.find(l=>l.value===o.id)||a.push({label:r(o),value:o.id,optionHtml:n(o)})}),a},this;function n(a){const s=!QL(a,t());return o=>` +
+ ${XL()} + ${o.label_html} + ${s?`${tue()}`:""} +
+ `}function i(a){return a.data.gender==="M"?"male":a.data.gender==="F"?"female":"genderless"}}destroy(){this.autocomplete_cont.remove()}}function h3(e){const t=[];return Array.isArray(e)?e.forEach(r=>{typeof r=="function"?t.push(r):typeof r=="string"?t.push(n=>n.data[r]):Array.isArray(r)&&t.push(n=>r.map(i=>n.data[i]).join(" "))}):typeof e=="function"?t.push(e):typeof e=="string"&&t.push(r=>r.data[e]),t}function que(e,t,r,n){const i=r.is_ancestry,a=t.data();let s=[],o=[];if(i){const d=[];let p=r,m=0;for(;p!==n&&m<100;){m++;const g=a.find(_=>_.spouse===!0&&(_.source===p||_.target===p));if(g){const _=a.filter(x=>Array.isArray(x.target)&&x.target.includes(g.source)&&x.target.includes(g.target)),E=c(_,n);if(!E)break;d.push(g),d.push(E),p=E.source}else{const _=a.filter(x=>Array.isArray(x.target)&&x.target.includes(p)),E=c(_,n);if(!E)break;d.push(E),p=E.source}}t.each(function(g){d.includes(g)&&s.push({link:g,node:this})});const y=u(r,d);e.each(function(g){y.includes(g)&&o.push({card:g,node:this})})}else if(r.spouse&&r.spouse.data===n.data){t.each(function(p){p.target===r&&s.push({link:p,node:this})});const d=[n,r];e.each(function(p){d.includes(p)&&o.push({card:p,node:this})})}else if(r.sibling){t.each(function(p){if(!Array.isArray(r.parents))throw new Error("datum.parents is not an array");p.source===r&&s.push({link:p,node:this}),p.source===n&&Array.isArray(p.target)&&p.target.length===2&&s.push({link:p,node:this}),r.parents.includes(p.source)&&!Array.isArray(p.target)&&r.parents.includes(p.target)&&s.push({link:p,node:this})});const d=[n,r,...r.parents||[]];e.each(function(p){d.includes(p)&&o.push({card:p,node:this})})}else{let d=[],p=r,m=0;for(;p!==n&&m<100;){m++;const g=a.find(_=>_.target===p&&Array.isArray(_.source));if(g){const _=a.find(E=>E.spouse===!0&&l([E.source,E.target],g.source));d.push(g),d.push(_),_?p=_.source:p=g.source[0]}else{const _=a.find(E=>E.target===p&&!Array.isArray(E.source));if(!_)break;d.push(_),p=_.source}}t.each(function(g){d.includes(g)&&s.push({link:g,node:this})});const y=u(n,d);e.each(function(g){y.includes(g)&&o.push({card:g,node:this})})}return{cards_node_to_main:o,links_node_to_main:s};function l(d,p){return d.every(m=>p.some(y=>m===y))}function u(d,p){const m=p.filter(_=>_).reduce((_,E)=>(Array.isArray(E.target)?_.push(...E.target):_.push(E.target),Array.isArray(E.source)?_.push(...E.source):_.push(E.source),_),[]),y=[n,r];return g(d),y;function g(_){_.data.rels.children&&_.data.rels.children.forEach(E=>{const x=m.find(b=>b.data.id===E);x&&(y.push(x),g(x))})}}function c(d,p){return d.length===0?null:d.length===1?d[0]:d.find(m=>m.source===p)}}function OI(e,t){return new Gue(e,t)}let Gue=class{constructor(t,r){return this.cont=t,this.svg=this.cont.querySelector("svg.main_svg"),this.store=r,this.card_display=[n=>`${n.data["first name"]} ${n.data["last name"]}`],this.cardImageField="avatar",this.onCardClick=this.onCardClickDefault,this.style="default",this.mini_tree=!1,this.card_dim={},this}getCard(){return a3({store:this.store,card_display:this.card_display,cardImageField:this.cardImageField,defaultPersonIcon:this.defaultPersonIcon,onCardClick:this.onCardClick,style:this.style,mini_tree:this.mini_tree,onCardUpdate:this.onCardUpdate,card_dim:this.card_dim,empty_card_label:this.store.state.single_parent_empty_card_label||"",unknown_card_label:this.store.state.unknown_card_label||"",cardInnerHtmlCreator:this.cardInnerHtmlCreator,duplicate_branch_toggle:this.store.state.duplicate_branch_toggle,onCardMouseenter:this.onCardMouseenter?this.onCardMouseenter.bind(this):void 0,onCardMouseleave:this.onCardMouseleave?this.onCardMouseleave.bind(this):void 0})}setCardDisplay(t){return this.card_display=h3(t),this}setCardImageField(t){return this.cardImageField=t,this}setDefaultPersonIcon(t){return this.defaultPersonIcon=t,this}setOnCardClick(t){return this.onCardClick=t,this}onCardClickDefault(t,r){this.store.updateMainId(r.data.id),this.store.updateTree({})}setStyle(t){return this.style=t,this}setMiniTree(t){return this.mini_tree=t,this}setOnCardUpdate(t){return this.onCardUpdate=t,this}setCardDim(t){if(typeof t!="object")return console.error("card_dim must be an object"),this;for(let r in t){const n=t[r];if(typeof n!="number"&&typeof n!="boolean")return console.error(`card_dim.${r} must be a number or boolean`),this;r==="width"&&(r="w"),r==="height"&&(r="h"),r==="img_width"&&(r="img_w"),r==="img_height"&&(r="img_h"),r==="img_x"&&(r="img_x"),r==="img_y"&&(r="img_y"),this.card_dim[r]=n}return this}resetCardDim(){return this.card_dim={},this}setCardInnerHtmlCreator(t){return this.cardInnerHtmlCreator=t,this}setOnHoverPathToMain(){return this.onCardMouseenter=this.onEnterPathToMain.bind(this),this.onCardMouseleave=this.onLeavePathToMain.bind(this),this}unsetOnHoverPathToMain(){return this.onCardMouseenter=void 0,this.onCardMouseleave=void 0,this}onEnterPathToMain(t,r){this.to_transition=r.data.id;const n=this.store.getTreeMainDatum(),i=ve(this.cont).select("div.cards_view").selectAll(".card_cont"),a=ve(this.cont).select("svg.main_svg .links_view").selectAll(".link"),{cards_node_to_main:s,links_node_to_main:o}=que(i,a,r,n);return s.forEach(l=>{const u=Math.abs(r.depth-l.card.depth)*200;ve(l.node.querySelector("div.card-inner")).transition().duration(0).delay(u).on("end",()=>this.to_transition===r.data.id&&ve(l.node.querySelector("div.card-inner")).classed("f3-path-to-main",!0))}),o.forEach(l=>{const u=Math.abs(r.depth-l.link.depth)*200;ve(l.node).transition().duration(0).delay(u).on("end",()=>this.to_transition===r.data.id&&ve(l.node).classed("f3-path-to-main",!0))}),this}onLeavePathToMain(t,r){return this.to_transition=!1,ve(this.cont).select("div.cards_view").selectAll("div.card-inner").classed("f3-path-to-main",!1),ve(this.cont).select("svg.main_svg .links_view").selectAll(".link").classed("f3-path-to-main",!1),this}};function NI(e,t){return new Wue(e,t)}let Wue=class{constructor(t,r){return this.cont=t,this.store=r,this.svg=this.cont.querySelector("svg.main_svg"),this.card_dim={w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5},this.card_display=[],this.mini_tree=!0,this.link_break=!1,this.onCardClick=this.onCardClickDefault.bind(this),this}getCard(){return Ox({store:this.store,svg:this.svg,card_dim:this.card_dim,card_display:this.card_display,mini_tree:this.mini_tree,link_break:this.link_break,onCardClick:this.onCardClick,onCardUpdate:this.onCardUpdate})}setCardDisplay(t){return this.card_display=h3(t),this}setCardDim(t){if(typeof t!="object")return console.error("card_dim must be an object"),this;for(let r in t){const n=t[r];if(typeof n!="number"&&typeof n!="boolean")return console.error(`card_dim.${r} must be a number or boolean`),this;r==="width"&&(r="w"),r==="height"&&(r="h"),r==="img_width"&&(r="img_w"),r==="img_height"&&(r="img_h"),r==="img_x"&&(r="img_x"),r==="img_y"&&(r="img_y"),this.card_dim[r]=n}return Cue(this.svg,this.card_dim),this}setOnCardUpdate(t){return this.onCardUpdate=t,this}setMiniTree(t){return this.mini_tree=t,this}setLinkBreak(t){return this.link_break=t,this}onCardClickDefault(t,r){this.store.updateMainId(r.data.id),this.store.updateTree({})}setOnCardClick(t){return this.onCardClick=t,this}};function Vue(e,t){return new Que(e,t)}class Que{constructor(t,r){this.getCard=null,this.transition_time=2e3,this.linkSpouseText=null,this.personSearch=null,this.is_card_html=!1,this.beforeUpdate=null,this.afterUpdate=null,this.cont=Kue(t);const{svg:n}=$L(this.cont);this.svg=n,Yue(this.cont);const i=r&&r.length>0?r[0].id:"";return this.store=this.createStore(r,i),this.setOnUpdate(),this.editTreeInstance=null,this}createStore(t,r){return BL({data:t,main_id:r,node_separation:250,level_separation:150,single_parent_empty_card:!0,is_horizontal:!1})}setOnUpdate(){this.store.setOnUpdate(t=>{this.beforeUpdate&&this.beforeUpdate(t),t=Object.assign({transition_time:this.store.state.transition_time},t||{}),this.is_card_html&&(t=Object.assign({},t||{},{cardHtml:!0})),WL(this.store.getTree(),this.svg,this.getCard(),t||{}),this.linkSpouseText&&Uue(this.svg,this.store.getTree(),Object.assign({},t||{},{linkSpouseText:this.linkSpouseText,node_separation:this.store.state.node_separation})),this.afterUpdate&&this.afterUpdate(t)})}updateTree(t={initial:!1}){return this.store.updateTree(t),this}updateData(t){return this.store.updateData(t),this}setCardYSpacing(t){return typeof t!="number"?(console.error("card_y_spacing must be a number"),this):(this.store.state.level_separation=t,this)}setCardXSpacing(t){return typeof t!="number"?(console.error("card_x_spacing must be a number"),this):(this.store.state.node_separation=t,this)}setOrientationVertical(){return this.store.state.is_horizontal=!1,this}setOrientationHorizontal(){return this.store.state.is_horizontal=!0,this}setShowSiblingsOfMain(t){return this.store.state.show_siblings_of_main=t,this}setModifyTreeHierarchy(t){return this.store.state.modifyTreeHierarchy=t,this}setPrivateCardsConfig(t){return this.store.state.private_cards_config=t,this}setLinkSpouseText(t){return this.linkSpouseText=t,this}setSingleParentEmptyCard(t,{label:r="Unknown"}={}){return this.store.state.single_parent_empty_card=t,this.store.state.single_parent_empty_card_label=r,this.editTreeInstance&&this.editTreeInstance.addRelativeInstance.is_active&&this.editTreeInstance.addRelativeInstance.onCancel(),Px(this.store.getData()||[]),this}setCard(t){if(t===OI)return this.setCardHtml();if(t===NI)return this.setCardSvg();throw new Error("Card must be an instance of cardHtml or cardSvg")}setCardHtml(){const t=this.cont.querySelector("#htmlSvg");if(!t)throw new Error("htmlSvg not found");this.is_card_html=!0,this.svg.querySelector(".cards_view").innerHTML="",t.style.display="block";const r=OI(this.cont,this.store);return this.getCard=()=>r.getCard(),r}setCardSvg(){const t=this.cont.querySelector("#htmlSvg");if(!t)throw new Error("htmlSvg not found");this.is_card_html=!1,this.svg.querySelector(".cards_view").innerHTML="",t.style.display="none";const r=NI(this.cont,this.store);return this.getCard=()=>r.getCard(),r}setTransitionTime(t){return this.store.state.transition_time=t,this}setSortChildrenFunction(t){return this.store.state.sortChildrenFunction=t,this}setSortSpousesFunction(t){return this.store.state.sortSpousesFunction=t,this}setAncestryDepth(t){return this.store.state.ancestry_depth=t,this}setProgenyDepth(t){return this.store.state.progeny_depth=t,this}getMaxDepth(t){return nle(t,this.store.getData())}calculateKinships(t,r={}){return l3(t,this.store.getData(),r)}getKinshipsDataStash(t,r){return f3(t,r,this.store.getData(),this.calculateKinships(t))}setDuplicateBranchToggle(t){return this.store.state.duplicate_branch_toggle=t,this}editTree(){return this.editTreeInstance=Bue(this.cont,this.store)}updateMain(t){let r;return t.id?r=t.id:r=t.data.id,this.store.updateMainId(r),this.store.updateTree({}),this}updateMainId(t){return this.store.updateMainId(t),this}getMainDatum(){return this.store.getMainDatum()}setBeforeUpdate(t){return this.beforeUpdate=t,this}setAfterUpdate(t){return this.afterUpdate=t,this}setPersonDropdown(t,{cont:r=this.cont.querySelector(".f3-nav-cont"),onSelect:n,placeholder:i="Search"}={}){n||(n=a.bind(this)),this.personSearch=$ue(r,n,{placeholder:i}),this.personSearch.setOptionsGetterPerson(this.store.getData,t);function a(s){const o=this.store.getDatum(s);if(!o)throw new Error("Datum not found");this.editTreeInstance&&this.editTreeInstance.open(o),this.updateMainId(s),this.updateTree({initial:!1})}return this}unSetPersonSearch(){return this.personSearch.destroy(),this.personSearch=null,this}}function Kue(e){if(typeof e=="string"&&(e=document.querySelector(e)),!e)throw new Error("cont not found");return e}function Yue(e){ve(e).append("div").attr("class","f3-nav-cont")}function Xue(e,t,r){const{self_id:n,getLabel:i,title:a}=e,s=l3(n,r,e),o=s[t];if(!o)return;let l=o;o==="self"?l="You":l=p3(l);const u=` +
+
+ ${a} + + ${l} + ${nue()} + +
+
+ `,c=la("div").html(u).select("div").node();let d=null;return ve(c).select(".f3-kinship-info-icon").on("click",m=>p(m,c)),c;function p(m,y){let E=m.clientX-250-10,x=m.clientY-400-10;if(E+250>window.innerWidth&&(E=window.innerWidth-250-10),x<0&&(x=10),d&&d.active){d.close(),d=null;return}d=s3(y),ve(d.popup_cont).style("width","250px").style("height","400px").style("left",`${E}px`).style("top",`${x}px`);const b=d.popup_cont.querySelector(".f3-popup-content-inner");d.activate(),Jue(n,t,r,s,b,i)}}function Jue(e,t,r,n,i,a){ve(i).select("#SmallChart").node()||ve(i).append("div").attr("id","SmallChart").attr("class","f3");const s=ve("#SmallChart");s.selectAll("*").remove();const o=f3(e,t,r,n);let l=!0;const u=s.append("div");c(o);function c(d){const p=Vue("#SmallChart",d).setTransitionTime(500).setCardXSpacing(170).setCardYSpacing(70).setSingleParentEmptyCard(!1),m=p.setCardHtml().setStyle("rect").setCardInnerHtmlCreator(E=>y(E)).setOnCardUpdate(function(E){ve(this).select(".card").classed("card-main",!1)});m.onCardClick=(E,x)=>{},p.updateTree({initial:!0}),setTimeout(()=>_(.65),100),g();function y(E){let x=E.data.kinship==="self"?"You":E.data.kinship;return x=p3(x),l||(x=a(E.data)),` +
+
${x}
+
+ `;function b(){return E.data.kinship==="self"?"card-kinship-self"+(l?"":" f3-real-label"):E.data.id===t?"card-kinship-rel":"card-kinship-default"}}function g(){u.classed("f3-kinship-labels-toggle",!0),u.append("label").text("Kinship labels").append("input").attr("type","checkbox").attr("checked",!0).on("change",E=>{l=!l,p.updateTree({initial:!1,tree_position:"inherit"})})}function _(E){const x=p.cont.querySelector("svg.main_svg");ple(x).k>E&&mle(x,E)}}}function p3(e){return e=e[0].toUpperCase()+e.slice(1),e.includes("great-")&&(e=e.replace("great-","Great-")),e}var Zue=Object.freeze({__proto__:null,Card:kue,CardHtml:a3,CardSvg:Ox,appendElement:V1,infoPopup:s3,kinshipInfo:Xue});Object.assign({},ble,{setupHtmlSvg:Ele,setupReactiveTreeData:Sle,getUniqueId:Cle});function ece(e,t){return e.husb===t?e.wife:e.husb}function MI(e,t){const r=new Map;return e.fams.forEach(n=>r.set(n.id,n)),e.indis.map(n=>{var d,p;const i=n.famc&&r.get(n.famc)||void 0,a=(n.fams||[]).map(m=>r.get(m)).filter(m=>m!==void 0),s=i==null?void 0:i.husb,o=i==null?void 0:i.wife,l=[s,o].filter(m=>!!m),u=a.map(m=>ece(m,n.id)).filter(m=>m!==void 0),c=a.flatMap(m=>m.children||[]);return{id:n.id,data:{"first name":n.firstName,"last name":n.lastName,birthday:ru(n.birth,t),avatar:(p=(d=n.images)==null?void 0:d[0])==null?void 0:p.url,gender:n.sex},rels:{parents:l,spouses:u,children:c}}})}class tce{initializeChart(t,r){const n=MI(t.data,r);this.store=BL({data:n,main_id:t.selection.id});const i=UL(document.querySelector("#dotatsoSvgContainer")),a=Zue.CardSvg({store:this.store,svg:i,card_display:[s=>`${s.data["first name"]||""} ${s.data["last name"]||""}`,s=>`${s.data.birthday||""}`],mini_tree:!0,link_break:!1,onCardClick:(s,o)=>t.onSelection({id:o.data.id,generation:0}),card_dim:{w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5}});this.store.setOnUpdate(s=>{WL(this.store.getTree(),i,a,s||{})}),this.store.updateTree({initial:!0})}updateChart(t,r){const n=MI(t.data,r);this.store.updateData(n),this.store.updateMainId(t.selection.id),this.store.updateTree()}}function nce(e){const t=J.useRef(new tce),r=EL(e),n=dr();return J.useEffect(()=>{var i;r?t.current.updateChart(e,n):(t.current.initializeChart(e,n),(i=e.onFirstRender)==null||i.call(e))}),P.jsx("div",{id:"dotatsoSvgContainer"})}const rce={name:"get_selected_person",description:"Returns the full details (name, events, immediate relatives) of the individual currently selected in the browser viewport.",inputSchema:{type:"object",properties:{}}},ice={name:"search_indi",description:"Searches the genealogy index for individuals by name. Returns up to 10 results starting with the ones that match the best.",inputSchema:{type:"object",properties:{query:{type:"string",description:"The name to search for."}},required:["query"]}},ace={name:"inspect_indi",description:"Fetches detailed information for a specific individual by ID, including their immediate relatives and life events.",inputSchema:{type:"object",properties:{id:{type:"string",description:"The ID of the individual."}},required:["id"]}},oce={name:"focus_indi",description:"Instructs the Topola viewer camera view to center on and focus a specific person. Restructures the tree view to show ancestors and descendants of the selected person.",inputSchema:{type:"object",properties:{id:{type:"string",description:"The ID to focus."}},required:["id"]}},sce={name:"find_relationship_path",description:"Finds the shortest path connecting two individuals (e.g., through parents or marriages). Returns an ordered list of connecting individuals.",inputSchema:{type:"object",properties:{source:{type:"string",description:"Start individual ID"},target:{type:"string",description:"End individual ID"}},required:["source","target"]}},lce={name:"get_ancestors",description:"Returns ancestors of a specific individual up to a maximum depth of 5 generations.",inputSchema:{type:"object",properties:{id:{type:"string",description:"Target individual ID"},generations:{type:"number",description:"Depth bound limit (1-5). Defaults to 3.",minimum:1,maximum:5,default:3}},required:["id"]}},uce={name:"get_descendants",description:"Returns descendants of a specific individual up to a maximum depth of 5 generations.",inputSchema:{type:"object",properties:{id:{type:"string",description:"Target individual ID"},generations:{type:"number",description:"Depth bound limit (1-5). Defaults to 3.",minimum:1,maximum:5,default:3}},required:["id"]}},DI=5,cce=10;function qo(e){return{content:[{type:"text",text:JSON.stringify(e)}],structuredContent:e}}function Dc(e){return{content:[{type:"text",text:e}]}}class fce{constructor(){this.detailIndi=null,this.searchIndex=null,this.chartData=null,this.indiMap=new Map,this.famMap=new Map,this.setSelectionCallback=null,this.toolsRegistered=!1}async handleGetSelectedPerson(){const t=this.detailIndi;return!t||t.startsWith("private_")?Dc("No person is currently selected."):qo(this.toFullIndi(t))}async handleSearchIndi(t){!this.searchIndex&&this.chartData&&(this.searchIndex=N1(this.chartData));const r=this.searchIndex;if(!r)return Dc("Data not loaded.");const i=r.search(t.query).slice(0,cce).map(a=>this.toBasicIndi(a.id)).filter(Boolean);return qo(i)}async handleInspectIndi(t){const r=this.toFullIndi(t.id);return r?qo(r):Dc(`No person found with id ${t.id}.`)}async handleFocusIndi(t){if(t.id.startsWith("private_"))return Dc(`No person found with id ${t.id}.`);const r=this.setSelectionCallback;return r?(r(t.id),qo({status:"success"})):Dc("Error shifting viewport.")}async handleFindRelationshipPath(t){const n=lae(t.source,t.target,this.indiMap,this.famMap).map(i=>this.toBasicIndi(i)).filter(Boolean);return qo(n)}async handleGetAncestors(t){const r=Math.min(t.generations??3,DI),i=uae(t.id,r,this.indiMap,this.famMap).map(a=>this.toBasicIndi(a)).filter(Boolean);return qo(i)}async handleGetDescendants(t){const r=Math.min(t.generations??3,DI),i=cae(t.id,r,this.indiMap,this.famMap).map(a=>this.toBasicIndi(a)).filter(Boolean);return qo(i)}setDetailIndi(t){this.detailIndi=t}setData(t){t?(this.indiMap=zm(t.chartData),this.famMap=wx(t.chartData),this.chartData=t.chartData,this.searchIndex=null):(this.indiMap.clear(),this.famMap.clear(),this.chartData=null,this.searchIndex=null)}setSetSelectionCallback(t){this.setSelectionCallback=t}getIndiName(t){const r=this.indiMap.get(t);return r&&[r.firstName,r.lastName].filter(Boolean).join(" ")||"Unknown"}getIndiReference(t){return{id:t,name:this.getIndiName(t)}}getEvent(t){if(!t)return;const r=[];if(t.date){const n=t.date;n.day||n.month||n.year?r.push([n.day,n.month,n.year].filter(Boolean).join("-")):n.text&&r.push(n.text)}return{date:r.join(" ")||void 0,place:t.place}}toBasicIndi(t){if(t.startsWith("private_"))return null;const r=this.indiMap.get(t);if(!r)return null;let n=null,i=null;if(r.famc){const a=this.famMap.get(r.famc);a&&(a.wife&&(n=this.getIndiReference(a.wife)),a.husb&&(i=this.getIndiReference(a.husb)))}return{id:r.id,name:this.getIndiName(r.id),birth:this.getEvent(r.birth),death:this.getEvent(r.death),mother:n,father:i}}toFullIndi(t){if(t.startsWith("private_"))return null;const r=this.indiMap.get(t);if(!r)return null;let n=null,i=null;if(r.famc){const o=this.famMap.get(r.famc);o&&(o.wife&&(n=this.toBasicIndi(o.wife)),o.husb&&(i=this.toBasicIndi(o.husb)))}const a=[],s=[];return r.fams&&r.fams.forEach(o=>{const l=this.famMap.get(o);if(l){const u=l.wife===t?l.husb:l.wife;u&&s.push({spouse:this.toBasicIndi(u),marriage:this.getEvent(l.marriage)}),l.children&&l.children.forEach(c=>{const d=this.toBasicIndi(c);d&&a.push(d)})}}),{id:r.id,name:this.getIndiName(r.id),birth:this.getEvent(r.birth),death:this.getEvent(r.death),mother:n,father:i,children:a,spouses:s}}getTools(){return[{...rce,execute:()=>this.handleGetSelectedPerson()},{...ice,execute:t=>this.handleSearchIndi(t)},{...ace,execute:t=>this.handleInspectIndi(t)},{...oce,execute:t=>this.handleFocusIndi(t)},{...sce,execute:t=>this.handleFindRelationshipPath(t)},{...lce,execute:t=>this.handleGetAncestors(t)},{...uce,execute:t=>this.handleGetDescendants(t)}]}registerTools(){if(this.toolsRegistered||!navigator.modelContext)return;const t=navigator.modelContext;this.getTools().forEach(r=>{t.registerTool(r)}),this.toolsRegistered=!0}unregisterTools(){if(!this.toolsRegistered||!navigator.modelContext)return;const r=navigator.modelContext.unregisterTool;typeof r=="function"&&this.getTools().forEach(n=>{try{r(n.name)}catch{}}),this.toolsRegistered=!1}}function dce(e,t,r){const[n]=J.useState(()=>new fce),i=J.useRef(r);J.useEffect(()=>{i.current=r},[r]),J.useEffect(()=>(n.registerTools(),()=>{n.unregisterTools()}),[n]),J.useEffect(()=>{n.setData(e||null)},[e,n]),J.useEffect(()=>{n.setDetailIndi(t||null)},[t,n]),J.useEffect(()=>{n.setSetSelectionCallback(a=>{i.current({id:a,generation:0})})},[n])}function hce(e){const[t,r]=J.useState(!1),[n,i]=J.useState(!1),[a,s]=J.useState(null),o=J.useRef(null);J.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);async function l(d){if((await window.fetch(`https://www.googleapis.com/drive/v3/files/${e.failedFileId}?alt=media`,{headers:{Authorization:`Bearer ${d}`}})).status===200){r(!1),e.onAuthSuccess(e.failedFileId);return}i(!0),Xi.showPicker(m=>{r(!1),e.onAuthSuccess(m)},()=>{r(!1)})}async function u(){r(!0),s(null),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1),o.current=null},2e4);try{const d=await Xi.requestToken(!1);o.current&&(clearTimeout(o.current),o.current=null),await l(d)}catch(d){o.current&&(clearTimeout(o.current),o.current=null),console.error("Auth error in fallback modal:",d),s(d.message||"An error occurred during authentication."),r(!1)}}async function c(){r(!0),s(null),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1),o.current=null},2e4);try{const d=await Xi.requestToken(!0);o.current&&(clearTimeout(o.current),o.current=null),await l(d)}catch(d){o.current&&(clearTimeout(o.current),o.current=null),console.error("Switch account error in fallback modal:",d),s(d.message||"An error occurred during authentication."),r(!1)}}return P.jsxs(Vt,{open:!0,onClose:e.onCancel,centered:!0,size:"tiny",children:[P.jsxs(jt,{children:[P.jsx(et,{name:"google drive"}),P.jsx(Re,{id:"google_auth.title",defaultMessage:"Google Drive Access Required"})]}),P.jsxs(Vt.Content,{children:[P.jsx("p",{children:P.jsx(Re,{id:"google_auth.instructions",defaultMessage:"To view this file, you must authenticate and select the file from your Google Drive to grant permissions."})}),n&&P.jsxs(jn,{warning:!0,children:[P.jsx(jn.Header,{children:P.jsx(Re,{id:"google_auth.picker_instructions_header",defaultMessage:"Permissions Required"})}),P.jsx("p",{children:P.jsx(Re,{id:"google_auth.picker_instructions",defaultMessage:"The application does not have permission to read this file. Please select it in the file browser popup to grant access. If this is a shared file that doesn't show up, try adding a shortcut to your Drive first."})})]}),a&&P.jsx(jn,{negative:!0,children:P.jsx("p",{children:a})})]}),P.jsxs(Vt.Actions,{children:[P.jsx(Zt,{secondary:!0,onClick:e.onCancel,children:P.jsx(Re,{id:"google_auth.cancel",defaultMessage:"Cancel"})}),n&&P.jsx(Zt,{basic:!0,onClick:c,loading:t,children:P.jsx(Re,{id:"google_auth.switch_account_button",defaultMessage:"Switch Account"})}),P.jsx(Zt,{primary:!0,onClick:u,loading:t,children:P.jsx(Re,{id:"google_auth.grant_button",defaultMessage:"Grant Access & Select File"})})]})]})}function pce(e){const r=e.gedcom.indis[e.indi].tree.find(i=>i.tag==="NAME"),n=(r==null?void 0:r.data.replaceAll("/",""))??"";return P.jsx("div",{className:"collapsed-details",children:n?P.jsx("span",{className:"vertical-name",children:n}):P.jsx("span",{className:"vertical-name",children:P.jsx(Re,{id:"name.unknown_name",defaultMessage:"N.N."})})})}var b0,FI;function m3(){if(FI)return b0;FI=1;var e=Object.prototype.toString;return b0=function(r){var n=e.call(r),i=n==="[object Arguments]";return i||(i=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),i},b0}var x0,LI;function mce(){if(LI)return x0;LI=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=m3(),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(p){var m=p.constructor;return m&&m.prototype===p},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!u["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{l(window[p])}catch{return!0}}catch{return!0}return!1}(),d=function(p){if(typeof window>"u"||!c)return l(p);try{return l(p)}catch{return!1}};e=function(m){var y=m!==null&&typeof m=="object",g=r.call(m)==="[object Function]",_=n(m),E=y&&r.call(m)==="[object String]",x=[];if(!y&&!g&&!_)throw new TypeError("Object.keys called on a non-object");var b=s&&g;if(E&&m.length>0&&!t.call(m,0))for(var C=0;C0)for(var v=0;v3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,p=!!n&&n(a,s);if(e)e(a,s,{configurable:c===null&&p?p.configurable:!c,enumerable:l===null&&p?p.enumerable:!l,value:o,writable:u===null&&p?p.writable:!u});else if(d||!l&&!u&&!c)a[s]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},I0}var R0,GI;function Jm(){if(GI)return R0;GI=1;var e=cd(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},R0=t,R0}var P0,WI;function Mx(){if(WI)return P0;WI=1;var e=gce(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,i=Nx(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},s=Jm()(),o=function(u,c,d,p){if(c in u){if(p===!0){if(u[c]===d)return}else if(!a(p)||!p())return}s?i(u,c,d,!0):i(u,c,d)},l=function(u,c){var d=arguments.length>2?arguments[2]:{},p=e(c);t&&(p=n.call(p,Object.getOwnPropertySymbols(c)));for(var m=0;m"u"||!T?e:T(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":k&&T?T([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&T?T(T([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!k||!T?e:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!k||!T?e:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&T?T(""[Symbol.iterator]()):e,"%Symbol%":k?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":v,"%TypedArray%":X,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":B,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":N,"%Math.abs%":u,"%Math.floor%":c,"%Math.max%":d,"%Math.min%":p,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":g,"%Reflect.getPrototypeOf%":M};if(T)try{null.error}catch(Me){var U=T(T(Me));W["%Error.prototype%"]=U}var V=function Me(Le){var Ve;if(Le==="%AsyncFunction%")Ve=E("async function () {}");else if(Le==="%GeneratorFunction%")Ve=E("function* () {}");else if(Le==="%AsyncGeneratorFunction%")Ve=E("async function* () {}");else if(Le==="%AsyncGenerator%"){var Oe=Me("%AsyncGeneratorFunction%");Oe&&(Ve=Oe.prototype)}else if(Le==="%AsyncIteratorPrototype%"){var Fe=Me("%AsyncGenerator%");Fe&&T&&(Ve=T(Fe.prototype))}return W[Le]=Ve,Ve},K={__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"]},Y=dd(),G=Ts(),F=Y.call(D,Array.prototype.concat),q=Y.call(B,Array.prototype.splice),z=Y.call(D,String.prototype.replace),j=Y.call(D,String.prototype.slice),se=Y.call(D,RegExp.prototype.exec),fe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pe=/\\(\\)?/g,xe=function(Le){var Ve=j(Le,0,1),Oe=j(Le,-1);if(Ve==="%"&&Oe!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Oe==="%"&&Ve!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Fe=[];return z(Le,fe,function(We,it,Ie,He){Fe[Fe.length]=Ie?z(He,pe,"$1"):it||We}),Fe},Te=function(Le,Ve){var Oe=Le,Fe;if(G(K,Oe)&&(Fe=K[Oe],Oe="%"+Fe[0]+"%"),G(W,Oe)){var We=W[Oe];if(We===$&&(We=V(Oe)),typeof We>"u"&&!Ve)throw new o("intrinsic "+Le+" exists, but is not available. Please file an issue!");return{alias:Fe,name:Oe,value:We}}throw new s("intrinsic "+Le+" does not exist!")};return sw=function(Le,Ve){if(typeof Le!="string"||Le.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ve!="boolean")throw new o('"allowMissing" argument must be a boolean');if(se(/^%?[^%]*%?$/,Le)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Oe=xe(Le),Fe=Oe.length>0?Oe[0]:"",We=Te("%"+Fe+"%",Ve),it=We.name,Ie=We.value,He=!1,Ke=We.alias;Ke&&(Fe=Ke[0],q(Oe,F([0,1],Ke)));for(var lt=1,ht=!0;lt=Oe.length){var hn=x(Ie,ut);ht=!!hn,ht&&"get"in hn&&!("originalValue"in hn.get)?Ie=hn.get:Ie=Ie[ut]}else ht=G(Ie,ut),Ie=Ie[ut];ht&&!He&&(W[it]=Ie)}}return Ie},sw}var lw,xR;function Pce(){if(xR)return lw;xR=1;var e=ti(),t=Nx(),r=Jm()(),n=As(),i=xt(),a=e("%Math.floor%");return lw=function(o,l){if(typeof o!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||a(l)!==l)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],c=!0,d=!0;if("length"in o&&n){var p=n(o,"length");p&&!p.configurable&&(c=!1),p&&!p.writable&&(d=!1)}return(c||d||!u)&&(r?t(o,"length",l,!0,!0):t(o,"length",l)),o},lw}var uw,ER;function Oce(){if(ER)return uw;ER=1;var e=dd(),t=Lx(),r=x3();return uw=function(){return r(e,t,arguments)},uw}var SR;function E3(){return SR||(SR=1,function(e){var t=Pce(),r=cd(),n=eg(),i=Oce();e.exports=function(s){var o=n(arguments),l=1+s.length-(arguments.length-1);return t(o,l>0?l:0,!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i}(O0)),O0.exports}var cw,CR;function S3(){if(CR)return cw;CR=1;var e=fd();return cw=function(r){return(typeof r=="number"||typeof r=="bigint")&&!e(r)&&r!==1/0&&r!==-1/0},cw}var fw,kR;function C3(){if(kR)return fw;kR=1;var e=v3(),t=Dx(),r=fd(),n=S3();return fw=function(a){if(typeof a!="number"||r(a)||!n(a))return!1;var s=e(a);return t(s)===s},fw}var dw,AR;function Ri(){return AR||(AR=1,dw=function(t){return!!t&&(typeof t=="function"||typeof t=="object")}),dw}var hw,TR;function Nce(){return TR||(TR=1,hw=4294967295),hw}var pw,IR;function Mce(){return IR||(IR=1,pw=typeof Reflect<"u"&&Reflect.setPrototypeOf||null),pw}var mw,RR;function Dce(){if(RR)return mw;RR=1;var e=Zm();return mw=e.setPrototypeOf||null,mw}var gw,PR;function Fce(){if(PR)return gw;PR=1;var e=eg(),t=As(),r=xt(),n={};try{n.__proto__=null}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!("toString"in n),a=t&&t(Object.prototype,"__proto__");return gw=i&&(!!a&&typeof a.set=="function"&&e([a.set])||function(o,l){if(o==null)throw new r("set Object.prototype.__proto__ called on null or undefined");return o.__proto__=l,l}),gw}var vw,OR;function Lce(){if(OR)return vw;OR=1;var e=Mce(),t=Dce(),r=Fce(),n=xt();return vw=e?function(a,s){if(e(a,s))return a;throw new n("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:t||(r?function(a,s){return r(a,s),a}:null),vw}var yw,NR;function jce(){if(NR)return yw;NR=1;var e=ti(),t=e("%Array.prototype%"),r=g3(),n=Xm(),i=xt(),a=C3(),s=Nce(),o=Lce();return yw=function(u){if(!a(u)||u<0)throw new i("Assertion failed: `length` must be an integer Number >= 0");if(u>s)throw new r("length is greater than (2**32 - 1)");var c=arguments.length>1?arguments[1]:t,d=[];if(c!==t){if(!o)throw new n("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");o(d,c)}return u!==0&&(d.length=u),d},yw}const Bce={},zce=Object.freeze(Object.defineProperty({__proto__:null,default:Bce},Symbol.toStringTag,{value:"Module"})),Uce=Lf(zce);var ww,MR;function $ce(){if(MR)return ww;MR=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=i&&a&&typeof a.get=="function"?a.get:null,o=i&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,d=c?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,m=p?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,_=Function.prototype.toString,E=String.prototype.match,x=String.prototype.slice,b=String.prototype.replace,C=String.prototype.toUpperCase,v=String.prototype.toLowerCase,k=RegExp.prototype.test,T=Array.prototype.concat,N=Array.prototype.join,M=Array.prototype.slice,B=Math.floor,D=typeof BigInt=="function"?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W||!0)?Symbol.toStringTag:null,V=Object.prototype.propertyIsEnumerable,K=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function Y(ae,le){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||k.call(/e/,le))return le;var Ne=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var wt=ae<0?-B(-ae):B(ae);if(wt!==ae){var Et=String(wt),Ze=x.call(le,Et.length+1);return b.call(Et,Ne,"$&_")+"."+b.call(b.call(Ze,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(le,Ne,"$&_")}var G=Uce,F=G.custom,q=We(F)?F:null,z={__proto__:null,double:'"',single:"'"},j={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ww=function ae(le,Ne,wt,Et){var Ze=Ne||{};if(He(Ze,"quoteStyle")&&!He(z,Ze.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(He(Ze,"maxStringLength")&&(typeof Ze.maxStringLength=="number"?Ze.maxStringLength<0&&Ze.maxStringLength!==1/0:Ze.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var In=He(Ze,"customInspect")?Ze.customInspect:!0;if(typeof In!="boolean"&&In!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(He(Ze,"indent")&&Ze.indent!==null&&Ze.indent!==" "&&!(parseInt(Ze.indent,10)===Ze.indent&&Ze.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(He(Ze,"numericSeparator")&&typeof Ze.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ni=Ze.numericSeparator;if(typeof le>"u")return"undefined";if(le===null)return"null";if(typeof le=="boolean")return le?"true":"false";if(typeof le=="string")return L(le,Ze);if(typeof le=="number"){if(le===0)return 1/0/le>0?"0":"-0";var _n=String(le);return ni?Y(le,_n):_n}if(typeof le=="bigint"){var Dr=String(le)+"n";return ni?Y(le,Dr):Dr}var Rs=typeof Ze.depth>"u"?5:Ze.depth;if(typeof wt>"u"&&(wt=0),wt>=Rs&&Rs>0&&typeof le=="object")return xe(le)?"[Array]":"[Object]";var Pi=me(Ze,wt);if(typeof Et>"u")Et=[];else if(ht(Et,le)>=0)return"[Circular]";function Rn(Oi,Eo,gd){if(Eo&&(Et=M.call(Et),Et.push(Eo)),gd){var Au={depth:Ze.depth};return He(Ze,"quoteStyle")&&(Au.quoteStyle=Ze.quoteStyle),ae(Oi,Au,wt+1,Et)}return ae(Oi,Ze,wt+1,Et)}if(typeof le=="function"&&!Me(le)){var xu=lt(le),ma=ct(le,Rn);return"[Function"+(xu?": "+xu:" (anonymous)")+"]"+(ma.length>0?" { "+N.call(ma,", ")+" }":"")}if(We(le)){var Ps=W?b.call(String(le),/^(Symbol\(.*\))_[^)]*$/,"$1"):X.call(le);return typeof le=="object"&&!W?O(Ps):Ps}if(ge(le)){for(var Fr="<"+v.call(String(le.nodeName)),Eu=le.attributes||[],ri=0;ri",Fr}if(xe(le)){if(le.length===0)return"[]";var ga=ct(le,Rn);return Pi&&!de(ga)?"["+Qe(ga,Pi)+"]":"[ "+N.call(ga,", ")+" ]"}if(Le(le)){var va=ct(le,Rn);return!("cause"in Error.prototype)&&"cause"in le&&!V.call(le,"cause")?"{ ["+String(le)+"] "+N.call(T.call("[cause]: "+Rn(le.cause),va),", ")+" }":va.length===0?"["+String(le)+"]":"{ ["+String(le)+"] "+N.call(va,", ")+" }"}if(typeof le=="object"&&In){if(q&&typeof le[q]=="function"&&G)return G(le,{depth:Rs-wt});if(In!=="symbol"&&typeof le.inspect=="function")return le.inspect()}if(ut(le)){var Os=[];return n&&n.call(le,function(Oi,Eo){Os.push(Rn(Eo,le,!0)+" => "+Rn(Oi,le))}),re("Map",r.call(le),Os,Pi)}if(hn(le)){var hd=[];return o&&o.call(le,function(Oi){hd.push(Rn(Oi,le))}),re("Set",s.call(le),hd,Pi)}if(yt(le))return Q("WeakMap");if(sn(le))return Q("WeakSet");if(en(le))return Q("WeakRef");if(Oe(le))return O(Rn(Number(le)));if(it(le))return O(Rn(D.call(le)));if(Fe(le))return O(y.call(le));if(Ve(le))return O(Rn(String(le)));if(typeof window<"u"&&le===window)return"{ [object Window] }";if(typeof globalThis<"u"&&le===globalThis||typeof mi<"u"&&le===mi)return"{ [object globalThis] }";if(!Te(le)&&!Me(le)){var Su=ct(le,Rn),pd=K?K(le)===Object.prototype:le instanceof Object||le.constructor===Object,Lr=le instanceof Object?"":"null prototype",Cu=!pd&&U&&Object(le)===le&&U in le?x.call(Ke(le),8,-1):Lr?"Object":"",md=pd||typeof le.constructor!="function"?"":le.constructor.name?le.constructor.name+" ":"",ku=md+(Cu||Lr?"["+N.call(T.call([],Cu||[],Lr||[]),": ")+"] ":"");return Su.length===0?ku+"{}":Pi?ku+"{"+Qe(Su,Pi)+"}":ku+"{ "+N.call(Su,", ")+" }"}return String(le)};function se(ae,le,Ne){var wt=Ne.quoteStyle||le,Et=z[wt];return Et+ae+Et}function fe(ae){return b.call(String(ae),/"/g,""")}function pe(ae){return!U||!(typeof ae=="object"&&(U in ae||typeof ae[U]<"u"))}function xe(ae){return Ke(ae)==="[object Array]"&&pe(ae)}function Te(ae){return Ke(ae)==="[object Date]"&&pe(ae)}function Me(ae){return Ke(ae)==="[object RegExp]"&&pe(ae)}function Le(ae){return Ke(ae)==="[object Error]"&&pe(ae)}function Ve(ae){return Ke(ae)==="[object String]"&&pe(ae)}function Oe(ae){return Ke(ae)==="[object Number]"&&pe(ae)}function Fe(ae){return Ke(ae)==="[object Boolean]"&&pe(ae)}function We(ae){if(W)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!X)return!1;try{return X.call(ae),!0}catch{}return!1}function it(ae){if(!ae||typeof ae!="object"||!D)return!1;try{return D.call(ae),!0}catch{}return!1}var Ie=Object.prototype.hasOwnProperty||function(ae){return ae in this};function He(ae,le){return Ie.call(ae,le)}function Ke(ae){return g.call(ae)}function lt(ae){if(ae.name)return ae.name;var le=E.call(_.call(ae),/^function\s*([\w$]+)/);return le?le[1]:null}function ht(ae,le){if(ae.indexOf)return ae.indexOf(le);for(var Ne=0,wt=ae.length;Nele.maxStringLength){var Ne=ae.length-le.maxStringLength,wt="... "+Ne+" more character"+(Ne>1?"s":"");return L(x.call(ae,0,le.maxStringLength),le)+wt}var Et=j[le.quoteStyle||"single"];Et.lastIndex=0;var Ze=b.call(b.call(ae,Et,"\\$1"),/[\x00-\x1f]/g,I);return se(Ze,"single",le)}function I(ae){var le=ae.charCodeAt(0),Ne={8:"b",9:"t",10:"n",12:"f",13:"r"}[le];return Ne?"\\"+Ne:"\\x"+(le<16?"0":"")+C.call(le.toString(16))}function O(ae){return"Object("+ae+")"}function Q(ae){return ae+" { ? }"}function re(ae,le,Ne,wt){var Et=wt?Qe(Ne,wt):N.call(Ne,", ");return ae+" ("+le+") {"+Et+"}"}function de(ae){for(var le=0;le=0)return!1;return!0}function me(ae,le){var Ne;if(ae.indent===" ")Ne=" ";else if(typeof ae.indent=="number"&&ae.indent>0)Ne=N.call(Array(ae.indent+1)," ");else return null;return{base:Ne,prev:N.call(Array(le+1),Ne)}}function Qe(ae,le){if(ae.length===0)return"";var Ne=` +`+le.prev+le.base;return Ne+N.call(ae,","+Ne)+` +`+le.prev}function ct(ae,le){var Ne=xe(ae),wt=[];if(Ne){wt.length=ae.length;for(var Et=0;Et-1?t([s]):s},xw}var Ew,jR;function k3(){if(jR)return Ew;jR=1;var e=ti(),t=e("%Array%"),r=!t.isArray&&pa()("Object.prototype.toString");return Ew=t.isArray||function(i){return r(i)==="[object Array]"},Ew}var Sw,BR;function jx(){return BR||(BR=1,Sw=k3()),Sw}var tp={exports:{}},Cw,zR;function Hce(){return zR||(zR=1,Cw=ti()),Cw}var kw,UR;function xo(){if(UR)return kw;UR=1;var e=xt(),t=Ts(),r={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};return kw=function(i){if(!i||typeof i!="object")return!1;for(var a in i)if(t(i,a)&&!r[a])return!1;var s=t(i,"[[Value]]")||t(i,"[[Writable]]"),o=t(i,"[[Get]]")||t(i,"[[Set]]");if(s&&o)throw new e("Property Descriptors may not be both accessor and data descriptors");return!0},kw}var Aw,$R;function A3(){if($R)return Aw;$R=1;var e=Jm(),t=cd(),r=e.hasArrayLengthDefineBug(),n=r&&k3(),i=pa(),a=i("Object.prototype.propertyIsEnumerable");return Aw=function(o,l,u,c,d,p){if(!t){if(!o(p)||!p["[[Configurable]]"]||!p["[[Writable]]"]||d in c&&a(c,d)!==!!p["[[Enumerable]]"])return!1;var m=p["[[Value]]"];return c[d]=m,l(c[d],m)}return r&&d==="length"&&"[[Value]]"in p&&n(c)&&c.length!==p["[[Value]]"]?(c.length=p["[[Value]]"],c.length===p["[[Value]]"]):(t(c,d,u(p)),!0)},Aw}var Tw,HR;function qce(){return HR||(HR=1,Tw=function(t){if(typeof t>"u")return t;var r={};return"[[Value]]"in t&&(r.value=t["[[Value]]"]),"[[Writable]]"in t&&(r.writable=!!t["[[Writable]]"]),"[[Get]]"in t&&(r.get=t["[[Get]]"]),"[[Set]]"in t&&(r.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(r.enumerable=!!t["[[Enumerable]]"]),"[[Configurable]]"in t&&(r.configurable=!!t["[[Configurable]]"]),r}),Tw}var Iw,qR;function T3(){if(qR)return Iw;qR=1;var e=xt(),t=xo(),r=qce();return Iw=function(i){if(typeof i<"u"&&!t(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return r(i)},Iw}var Rw,GR;function Bx(){if(GR)return Rw;GR=1;var e=xt(),t=Ts(),r=xo();return Rw=function(i){if(typeof i>"u")return!1;if(!r(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Value]]")&&!t(i,"[[Writable]]"))},Rw}var Pw,WR;function zx(){if(WR)return Pw;WR=1;var e=fd();return Pw=function(r,n){return r===n?r===0?1/r===1/n:!0:e(r)&&e(n)},Pw}var Ow,VR;function I3(){if(VR)return Ow;VR=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(x){x!==n&&(t=null)}else t=null;var i=/^\s*class\b/,a=function(b){try{var C=e.call(b);return i.test(C)}catch{return!1}},s=function(b){try{return a(b)?!1:(e.call(b),!0)}catch{return!1}},o=Object.prototype.toString,l="[object Object]",u="[object Function]",c="[object GeneratorFunction]",d="[object HTMLAllCollection]",p="[object HTML document.all class]",m="[object HTMLCollection]",y=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),_=function(){return!1};if(typeof document=="object"){var E=document.all;o.call(E)===o.call(document.all)&&(_=function(b){if((g||!b)&&(typeof b>"u"||typeof b=="object"))try{var C=o.call(b);return(C===d||C===p||C===m||C===l)&&b("")==null}catch{}return!1})}return Ow=t?function(b){if(_(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{t(b,null,r)}catch(C){if(C!==n)return!1}return!a(b)&&s(b)}:function(b){if(_(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(y)return s(b);if(a(b))return!1;var C=o.call(b);return C!==u&&C!==c&&!/^\[object HTML/.test(C)?!1:s(b)},Ow}var Nw,QR;function R3(){return QR||(QR=1,Nw=I3()),Nw}var Mw,KR;function Gce(){return KR||(KR=1,Mw=function(t){return!!t}),Mw}var Dw,YR;function P3(){if(YR)return Dw;YR=1;var e=Ts(),t=xt(),r=Ri(),n=R3(),i=Gce();return Dw=function(s){if(!r(s))throw new t("ToPropertyDescriptor requires an object");var o={};if(e(s,"enumerable")&&(o["[[Enumerable]]"]=i(s.enumerable)),e(s,"configurable")&&(o["[[Configurable]]"]=i(s.configurable)),e(s,"value")&&(o["[[Value]]"]=s.value),e(s,"writable")&&(o["[[Writable]]"]=i(s.writable)),e(s,"get")){var l=s.get;if(typeof l<"u"&&!n(l))throw new t("getter must be a function");o["[[Get]]"]=l}if(e(s,"set")){var u=s.set;if(typeof u<"u"&&!n(u))throw new t("setter must be a function");o["[[Set]]"]=u}if((e(o,"[[Get]]")||e(o,"[[Set]]"))&&(e(o,"[[Value]]")||e(o,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return o},Dw}var Fw,XR;function Wce(){if(XR)return Fw;XR=1;var e=xt(),t=Ri(),r=xo(),n=A3(),i=T3(),a=Bx(),s=Is(),o=zx(),l=P3();return Fw=function(c,d,p){if(!t(c))throw new e("Assertion failed: Type(O) is not Object");if(!s(d))throw new e("Assertion failed: P is not a Property Key");var m=r(p)?p:l(p);if(!r(m))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return n(a,o,i,c,d,m)},Fw}var JR;function Vce(){if(JR)return tp.exports;JR=1;var e=Hce(),t=e("%Reflect.construct%",!0),r=Wce();try{r({},"",{"[[Get]]":function(){}})}catch{r=null}if(r&&t){var n={},i={};r(i,"length",{"[[Get]]":function(){throw n},"[[Enumerable]]":!0}),tp.exports=function(s){try{t(s,i)}catch(o){return o===n}}}else tp.exports=function(s){return typeof s=="function"&&!!s.prototype};return tp.exports}var Lw,ZR;function Qce(){if(ZR)return Lw;ZR=1;var e=ti(),t=e("%Symbol.species%",!0),r=xt(),n=C3(),i=Ri(),a=jce(),s=tg(),o=jx(),l=Vce();return Lw=function(c,d){if(!n(d)||d<0)throw new r("Assertion failed: length must be an integer >= 0");var p=o(c);if(!p)return a(d);var m=s(c,"constructor");if(t&&i(m)&&(m=s(m,t),m===null&&(m=void 0)),typeof m>"u")return a(d);if(!l(m))throw new r("C must be a constructor");return new m(d)},Lw}var jw,eP;function O3(){return eP||(eP=1,jw=Number.MAX_SAFE_INTEGER||9007199254740991),jw}var Bw,tP;function Kce(){if(tP)return Bw;tP=1;var e=ti(),t=pa(),r=xt(),n=jx(),i=e("%Reflect.apply%",!0)||t("Function.prototype.apply");return Bw=function(s,o){var l=arguments.length>2?arguments[2]:[];if(!n(l))throw new r("Assertion failed: optional `argumentsList`, if provided, must be a List");return i(s,o,l)},Bw}var zw,nP;function Ux(){if(nP)return zw;nP=1;var e=xt(),t=Ts(),r=xo();return zw=function(i){if(typeof i>"u")return!1;if(!r(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Get]]")&&!t(i,"[[Set]]"))},zw}var Uw,rP;function N3(){return rP||(rP=1,Uw=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),Uw}var $w,iP;function Yce(){if(iP)return $w;iP=1;var e=ti(),t=e("%Object.preventExtensions%",!0),r=e("%Object.isExtensible%",!0),n=N3();return $w=t?function(a){return!n(a)&&r(a)}:function(a){return!n(a)},$w}var Hw,aP;function Xce(){if(aP)return Hw;aP=1;var e=xo();return Hw=function(r,n){return e(n)&&"[[Enumerable]]"in n&&"[[Configurable]]"in n&&(r.IsAccessorDescriptor(n)||r.IsDataDescriptor(n))},Hw}var qw,oP;function Jce(){if(oP)return qw;oP=1;var e=xt(),t=Ux(),r=Bx(),n=xo();return qw=function(a){if(typeof a>"u")return!1;if(!n(a))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!t(a)&&!r(a)},qw}var Gw,sP;function Zce(){if(sP)return Gw;sP=1;var e=xt(),t=Ri(),r=A3(),n=Xce(),i=xo(),a=T3(),s=Ux(),o=Bx(),l=Jce(),u=Is(),c=zx();return Gw=function(p,m,y,g,_){if(typeof p<"u"&&!t(p))throw new e("Assertion failed: O must be undefined or an Object");if(!u(m))throw new e("Assertion failed: P must be a Property Key");if(typeof y!="boolean")throw new e("Assertion failed: extensible must be a Boolean");if(!i(g))throw new e("Assertion failed: Desc must be a Property Descriptor");if(typeof _<"u"&&!i(_))throw new e("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof _>"u")return y?typeof p>"u"?!0:s(g)?r(o,c,a,p,m,g):r(o,c,a,p,m,{"[[Configurable]]":!!g["[[Configurable]]"],"[[Enumerable]]":!!g["[[Enumerable]]"],"[[Value]]":g["[[Value]]"],"[[Writable]]":!!g["[[Writable]]"]}):!1;if(!n({IsAccessorDescriptor:s,IsDataDescriptor:o},_))throw new e("`current`, when present, must be a fully populated and valid Property Descriptor");if(!_["[[Configurable]]"]){if("[[Configurable]]"in g&&g["[[Configurable]]"]||"[[Enumerable]]"in g&&!c(g["[[Enumerable]]"],_["[[Enumerable]]"])||!l(g)&&!c(s(g),s(_)))return!1;if(s(_)){if("[[Get]]"in g&&!c(g["[[Get]]"],_["[[Get]]"])||"[[Set]]"in g&&!c(g["[[Set]]"],_["[[Set]]"]))return!1}else if(!_["[[Writable]]"]&&("[[Writable]]"in g&&g["[[Writable]]"]||"[[Value]]"in g&&!c(g["[[Value]]"],_["[[Value]]"])))return!1}if(typeof p<"u"){var E,x;return o(_)&&s(g)?(E=("[[Configurable]]"in g?g:_)["[[Configurable]]"],x=("[[Enumerable]]"in g?g:_)["[[Enumerable]]"],r(o,c,a,p,m,{"[[Configurable]]":!!E,"[[Enumerable]]":!!x,"[[Get]]":("[[Get]]"in g?g:_)["[[Get]]"],"[[Set]]":("[[Set]]"in g?g:_)["[[Set]]"]})):s(_)&&o(g)?(E=("[[Configurable]]"in g?g:_)["[[Configurable]]"],x=("[[Enumerable]]"in g?g:_)["[[Enumerable]]"],r(o,c,a,p,m,{"[[Configurable]]":!!E,"[[Enumerable]]":!!x,"[[Value]]":("[[Value]]"in g?g:_)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in g?g:_)["[[Writable]]"]})):r(o,c,a,p,m,g)}return!0},Gw}var Ww,lP;function efe(){if(lP)return Ww;lP=1;var e=As(),t=Xm(),r=xt(),n=Ri(),i=xo(),a=Ux(),s=Yce(),o=Is(),l=P3(),u=zx(),c=Zce();return Ww=function(p,m,y){if(!n(p))throw new r("Assertion failed: O must be an Object");if(!o(m))throw new r("Assertion failed: P must be a Property Key");if(!i(y))throw new r("Assertion failed: Desc must be a Property Descriptor");if(!e){if(a(y))throw new t("This environment does not support accessor property descriptors.");var g=!(m in p)&&y["[[Writable]]"]&&y["[[Enumerable]]"]&&y["[[Configurable]]"]&&"[[Value]]"in y,_=m in p&&(!("[[Configurable]]"in y)||y["[[Configurable]]"])&&(!("[[Enumerable]]"in y)||y["[[Enumerable]]"])&&(!("[[Writable]]"in y)||y["[[Writable]]"])&&"[[Value]]"in y;if(g||_)return p[m]=y["[[Value]]"],u(p[m],y["[[Value]]"]);throw new t("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var E=e(p,m),x=E&&l(E),b=s(p);return c(p,m,b,y,x)},Ww}var Vw,uP;function tfe(){if(uP)return Vw;uP=1;var e=xt(),t=Ri(),r=Is(),n=efe();return Vw=function(a,s,o){if(!t(a))throw new e("Assertion failed: Type(O) is not Object");if(!r(s))throw new e("Assertion failed: P is not a Property Key");var l={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":o,"[[Writable]]":!0};return n(a,s,l)},Vw}var Qw,cP;function nfe(){if(cP)return Qw;cP=1;var e=xt(),t=Ri(),r=tfe(),n=Is();return Qw=function(a,s,o){if(!t(a))throw new e("Assertion failed: Type(O) is not Object");if(!n(s))throw new e("Assertion failed: P is not a Property Key");var l=r(a,s,o);if(!l)throw new e("unable to create data property")},Qw}var Kw,fP;function rfe(){if(fP)return Kw;fP=1;var e=xt(),t=Ri(),r=Is();return Kw=function(i,a){if(!t(i))throw new e("Assertion failed: `O` must be an Object");if(!r(a))throw new e("Assertion failed: `P` must be a Property Key");return a in i},Kw}var Yw,dP;function ife(){return dP||(dP=1,Yw=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),Yw}var Xw,hP;function M3(){if(hP)return Xw;hP=1;var e=y3();return Xw=function(){return e()&&!!Symbol.toStringTag},Xw}var Jw,pP;function afe(){if(pP)return Jw;pP=1;var e=pa(),t=e("Date.prototype.getDay"),r=function(o){try{return t(o),!0}catch{return!1}},n=e("Object.prototype.toString"),i="[object Date]",a=M3()();return Jw=function(o){return typeof o!="object"||o===null?!1:a?r(o):n(o)===i},Jw}var np={exports:{}},Zw,mP;function ofe(){if(mP)return Zw;mP=1;var e=pa(),t=M3()(),r=Ts(),n=As(),i;if(t){var a=e("RegExp.prototype.exec"),s={},o=function(){throw s},l={toString:o,valueOf:o};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=o),i=function(p){if(!p||typeof p!="object")return!1;var m=n(p,"lastIndex"),y=m&&r(m,"value");if(!y)return!1;try{a(p,l)}catch(g){return g===s}}}else{var u=e("Object.prototype.toString"),c="[object RegExp]";i=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:u(p)===c}}return Zw=i,Zw}var e_,gP;function D3(){if(gP)return e_;gP=1;var e=pa(),t=ofe(),r=e("RegExp.prototype.exec"),n=xt();return e_=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(o){return r(a,o)!==null}},e_}var vP;function sfe(){if(vP)return np.exports;vP=1;var e=pa(),t=e("Object.prototype.toString"),r=w3()(),n=D3();if(r){var i=e("Symbol.prototype.toString"),a=n(/^Symbol\(.*\)$/),s=function(l){return typeof l.valueOf()!="symbol"?!1:a(i(l))};np.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return s(l)}catch{return!1}}}else np.exports=function(l){return!1};return np.exports}var t_,yP;function lfe(){if(yP)return t_;yP=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=ife(),r=I3(),n=afe(),i=sfe(),a=function(l,u){if(typeof l>"u"||l===null)throw new TypeError("Cannot call method on "+l);if(typeof u!="string"||u!=="number"&&u!=="string")throw new TypeError('hint must be "string" or "number"');var c=u==="string"?["toString","valueOf"]:["valueOf","toString"],d,p,m;for(m=0;m1&&(arguments[1]===String?u="string":arguments[1]===Number&&(u="number"));var c;if(e&&(Symbol.toPrimitive?c=s(l,Symbol.toPrimitive):i(l)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var d=c.call(l,u);if(t(d))return d;throw new TypeError("unable to convert exotic object to primitive")}return u==="default"&&(n(l)||i(l))&&(u="string"),a(l,u==="default"?"number":u)},t_}var n_,wP;function ufe(){if(wP)return n_;wP=1;var e=lfe();return n_=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},n_}var r_,_P;function $x(){if(_P)return r_;_P=1;var e=xt();return r_=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},r_}var i_,bP;function F3(){if(bP)return i_;bP=1;var e=ti(),t=e("%String%"),r=xt();return i_=function(i){if(typeof i=="symbol")throw new r("Cannot convert a Symbol value to a string");return t(i)},i_}var a_,xP;function L3(){if(xP)return a_;xP=1;var e=$x(),t=F3(),r=pa(),n=r("String.prototype.replace"),i=/^\s$/.test("᠎"),a=i?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=i?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;return a_=function(){var l=t(e(this));return n(n(l,a,""),s,"")},a_}var o_,EP;function j3(){if(EP)return o_;EP=1;var e=L3(),t="​",r="᠎";return o_=function(){return String.prototype.trim&&t.trim()===t&&r.trim()===r&&("_"+r).trim()==="_"+r&&(r+"_").trim()===r+"_"?String.prototype.trim:e},o_}var s_,SP;function cfe(){if(SP)return s_;SP=1;var e=Jm()(),t=Nx(),r=j3();return s_=function(){var i=r();return String.prototype.trim!==i&&(e?t(String.prototype,"trim",i,!0):t(String.prototype,"trim",i)),i},s_}var l_,CP;function ffe(){if(CP)return l_;CP=1;var e=E3(),t=Mx(),r=$x(),n=L3(),i=j3(),a=cfe(),s=e(i()),o=function(u){return r(u),s(u)};return t(o,{getPolyfill:i,implementation:n,shim:a}),l_=o,l_}var u_,kP;function dfe(){if(kP)return u_;kP=1;var e=ti(),t=e("%RegExp%"),r=xt(),n=e("%parseInt%"),i=pa(),a=D3(),s=i("String.prototype.slice"),o=a(/^0b[01]+$/i),l=a(/^0o[0-7]+$/i),u=a(/^[-+]0x[0-9a-f]+$/i),c=["…","​","￾"].join(""),d=new t("["+c+"]","g"),p=a(d),m=ffe();return u_=function y(g){if(typeof g!="string")throw new r("Assertion failed: `argument` is not a String");if(o(g))return+n(s(g,2),2);if(l(g))return+n(s(g,2),8);if(p(g)||u(g))return NaN;var _=m(g);return _!==g?y(_):+g},u_}var c_,AP;function hfe(){if(AP)return c_;AP=1;var e=ti(),t=xt(),r=e("%Number%"),n=N3(),i=ufe(),a=dfe();return c_=function(o){var l=n(o)?o:i(o,r);if(typeof l=="symbol")throw new t("Cannot convert a Symbol value to a number");if(typeof l=="bigint")throw new t("Conversion from 'BigInt' to 'number' is not allowed.");return typeof l=="string"?a(l):+l},c_}var f_,TP;function pfe(){if(TP)return f_;TP=1;var e=Dx();return f_=function(r){return typeof r=="bigint"?r:e(r)},f_}var d_,IP;function mfe(){if(IP)return d_;IP=1;var e=pfe(),t=xt();return d_=function(n){if(typeof n!="number"&&typeof n!="bigint")throw new t("argument must be a Number or a BigInt");var i=n<0?-e(-n):e(n);return i===0?0:i},d_}var h_,RP;function gfe(){if(RP)return h_;RP=1;var e=hfe(),t=mfe(),r=fd(),n=S3();return h_=function(a){var s=e(a);return r(s)||s===0?0:n(s)?t(s):s},h_}var p_,PP;function B3(){if(PP)return p_;PP=1;var e=O3(),t=gfe();return p_=function(n){var i=t(n);return i<=0?0:i>e?e:i},p_}var m_,OP;function vfe(){if(OP)return m_;OP=1;var e=xt(),t=Ri(),r=tg(),n=B3();return m_=function(a){if(!t(a))throw new e("Assertion failed: `obj` must be an Object");return n(r(a,"length"))},m_}var g_,NP;function yfe(){if(NP)return g_;NP=1;var e=xt(),t=O3(),r=Kce(),n=nfe(),i=tg(),a=rfe(),s=jx(),o=vfe(),l=F3();return g_=function u(c,d,p,m,y){var g;arguments.length>5&&(g=arguments[5]);for(var _=m,E=0;E0&&(v=s(C)),v){var k=o(C);_=u(c,C,k,_,y-1)}else{if(_>=t)throw new e("index too large");n(c,l(_),C),_+=1}}E+=1}return _},g_}var v_,MP;function wfe(){if(MP)return v_;MP=1;var e=Zm(),t=$x();return v_=function(n){return t(n),e(n)},v_}var y_,DP;function _fe(){return DP||(DP=1,y_=wfe()),y_}var w_,FP;function z3(){if(FP)return w_;FP=1;var e=Qce(),t=yfe(),r=tg(),n=R3(),i=B3(),a=_fe();return w_=function(o){var l=a(this),u=i(r(l,"length"));if(!n(o))throw new TypeError("mapperFunction must be a function");var c;arguments.length>1&&(c=arguments[1]);var d=e(l,0);return t(d,l,u,0,1,o,c),d},w_}var __,LP;function U3(){if(LP)return __;LP=1;var e=z3();return __=function(){return Array.prototype.flatMap||e},__}var b_,jP;function bfe(){if(jP)return b_;jP=1;var e=Ts(),t=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",r=t&&Array.prototype[Symbol.unscopables],n=TypeError;return b_=function(a){if(typeof a!="string"||!a)throw new n("method must be a non-empty string");if(!e(Array.prototype,a))throw new n("method must be on Array.prototype");t&&(r[a]=!0)},b_}var x_,BP;function xfe(){if(BP)return x_;BP=1;var e=Mx(),t=bfe(),r=U3();return x_=function(){var i=r();return e(Array.prototype,{flatMap:i},{flatMap:function(){return Array.prototype.flatMap!==i}}),t("flatMap"),i},x_}var E_,zP;function Efe(){if(zP)return E_;zP=1;var e=Mx(),t=E3(),r=z3(),n=U3(),i=n(),a=xfe(),s=t(i);return e(s,{getPolyfill:n,implementation:r,shim:a}),E_=s,E_}var Sfe=Efe();const ng=yn(Sfe);function $3({files:e}){return e!=null&&e.length?P.jsx(Xe,{children:e.map((t,r)=>P.jsxs(Xe.Item,{children:[P.jsx(Xe.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),P.jsxs(Xe.Content,{children:[P.jsx(Xe.Header,{children:P.jsx("a",{target:"_blank",href:t.url,rel:"noopener noreferrer",children:t.filename||t.url.split("/").pop()||t.url})}),P.jsx(Xe.Description,{children:t.titl&&P.jsx("div",{children:t.titl})})]})]},r))}):null}function Cfe(e,t,r){const n=Ff(e,t),i=e.qualifier||t.qualifier,a=i&&LF(i,r)+" ";return r.formatMessage({id:"age.exact",defaultMessage:"{qualifier}{age, plural, =0 {Less than 1 year} one {1 year} other {# years}}"},{age:n,qualifier:a})}function rp(e,t,r){const n=Ff(e,t);return r.formatMessage({id:"age.more",defaultMessage:"More than {age, plural, =0 {0 years} one {1 year} other {# years}}"},{age:n})}function ip(e,t,r){const n=Ff(e,t);return r.formatMessage({id:"age.less",defaultMessage:"Less than {age, plural, =0 {1 year} one {1 year} other {# years}}"},{age:n})}function S_(e,t,r,n,i){const a=Ff(t,r),s=Ff(e,n);return i.formatMessage({id:"age.between",defaultMessage:"Between {ageFrom} and {ageTo, plural, =0 {0 years} one {1 year} other {# years}}"},{ageFrom:a,ageTo:s})}function kfe(e,t){return e&&t?!R1(e)||!R1(t)||id(e,t)>0?!1:e.dateRange&&t.dateRange&&P1(e==null?void 0:e.dateRange)&&P1(t==null?void 0:t.dateRange)?!Eie(e.dateRange,t.dateRange):!0:!1}function Ff(e,t){const r=O1(e),n=O1(t),i=r.getUTCFullYear();let a=n.getUTCFullYear()-i,s=n.getUTCMonth()-r.getUTCMonth();return s<0&&(a--,s+=12),n.getUTCDate()-r.getUTCDate()<0&&s<=0&&a--,Math.abs(a)}function Afe(e,t,r){var n,i,a,s,o,l,u,c,d,p,m,y,g,_,E,x,b,C,v,k,T,N,M,B,D,$,X,W,U,V,K,Y,G,F;if(e&&t){const q=fn.getDate(e),z=fn.getDate(t);if(kfe(q,z)){if(q!=null&&q.date){if(z!=null&&z.date)return Cfe(q.date,z.date,r);if((n=z==null?void 0:z.dateRange)!=null&&n.from&&((i=z.dateRange)!=null&&i.to))return S_(q.date,q.date,(a=z==null?void 0:z.dateRange)==null?void 0:a.from,(s=z==null?void 0:z.dateRange)==null?void 0:s.to,r);if((o=z==null?void 0:z.dateRange)!=null&&o.from)return rp(q.date,(l=z.dateRange)==null?void 0:l.from,r);if((u=z==null?void 0:z.dateRange)!=null&&u.to)return ip(q.date,(c=z.dateRange)==null?void 0:c.to,r)}if((d=q==null?void 0:q.dateRange)!=null&&d.from&&((p=q==null?void 0:q.dateRange)!=null&&p.to)){if(z!=null&&z.date)return S_((m=q==null?void 0:q.dateRange)==null?void 0:m.from,(y=q==null?void 0:q.dateRange)==null?void 0:y.to,z==null?void 0:z.date,z==null?void 0:z.date,r);if((g=z==null?void 0:z.dateRange)!=null&&g.from&&((_=z.dateRange)!=null&&_.to))return S_((E=q==null?void 0:q.dateRange)==null?void 0:E.from,(x=q==null?void 0:q.dateRange)==null?void 0:x.to,(b=z==null?void 0:z.dateRange)==null?void 0:b.from,(C=z==null?void 0:z.dateRange)==null?void 0:C.to,r);if((v=z==null?void 0:z.dateRange)!=null&&v.from)return rp((k=q.dateRange)==null?void 0:k.to,(T=z.dateRange)==null?void 0:T.from,r);if((N=z==null?void 0:z.dateRange)!=null&&N.to)return ip((M=q.dateRange)==null?void 0:M.from,(B=z.dateRange)==null?void 0:B.to,r)}if((D=q==null?void 0:q.dateRange)!=null&&D.from){if(z!=null&&z.date)return ip(($=q.dateRange)==null?void 0:$.from,z.date,r);if((X=z==null?void 0:z.dateRange)!=null&&X.to)return ip((W=q.dateRange)==null?void 0:W.from,(U=z.dateRange)==null?void 0:U.to,r)}if((V=q==null?void 0:q.dateRange)!=null&&V.to){if(z!=null&&z.date)return rp((K=q==null?void 0:q.dateRange)==null?void 0:K.to,z.date,r);if((Y=z==null?void 0:z.dateRange)!=null&&Y.from)return rp((G=q==null?void 0:q.dateRange)==null?void 0:G.to,(F=z.dateRange)==null?void 0:F.from,r)}}}}var ap={},op={},sp={},UP;function Tfe(){if(UP)return sp;UP=1,Object.defineProperty(sp,"__esModule",{value:!0});var e=po(),t=r(e);function r(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a]);return i.default=n,i}return sp.default=function(n,i,a){return t.createElement("a",{href:n,key:a},i)},sp}var lp={},$P;function Ife(){return $P||($P=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.default=function(e){return e}),lp}var up={},C_,HP;function Rfe(){return HP||(HP=1,C_=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),C_}var k_,qP;function Pfe(){return qP||(qP=1,k_=/[\0-\x1F\x7F-\x9F]/),k_}var A_,GP;function Ofe(){return GP||(GP=1,A_=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),A_}var T_,WP;function Nfe(){return WP||(WP=1,T_=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),T_}var I_,VP;function Mfe(){return VP||(VP=1,I_=function(e){var t={};t.src_Any=Rfe().source,t.src_Cc=Pfe().source,t.src_Z=Ofe().source,t.src_P=Nfe().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),I_}var R_,QP;function Dfe(){if(QP)return R_;QP=1;function e(b){var C=Array.prototype.slice.call(arguments,1);return C.forEach(function(v){v&&Object.keys(v).forEach(function(k){b[k]=v[k]})}),b}function t(b){return Object.prototype.toString.call(b)}function r(b){return t(b)==="[object String]"}function n(b){return t(b)==="[object Object]"}function i(b){return t(b)==="[object RegExp]"}function a(b){return t(b)==="[object Function]"}function s(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function l(b){return Object.keys(b||{}).reduce(function(C,v){return C||o.hasOwnProperty(v)},!1)}var u={"http:":{validate:function(b,C,v){var k=b.slice(C);return v.re.http||(v.re.http=new RegExp("^\\/\\/"+v.re.src_auth+v.re.src_host_port_strict+v.re.src_path,"i")),v.re.http.test(k)?k.match(v.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,C,v){var k=b.slice(C);return v.re.no_http||(v.re.no_http=new RegExp("^"+v.re.src_auth+"(?:localhost|(?:(?:"+v.re.src_domain+")\\.)+"+v.re.src_domain_root+")"+v.re.src_port+v.re.src_host_terminator+v.re.src_path,"i")),v.re.no_http.test(k)?C>=3&&b[C-3]===":"||C>=3&&b[C-3]==="/"?0:k.match(v.re.no_http)[0].length:0}},"mailto:":{validate:function(b,C,v){var k=b.slice(C);return v.re.mailto||(v.re.mailto=new RegExp("^"+v.re.src_email_name+"@"+v.re.src_host_strict,"i")),v.re.mailto.test(k)?k.match(v.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(b){b.__index__=-1,b.__text_cache__=""}function m(b){return function(C,v){var k=C.slice(v);return b.test(k)?k.match(b)[0].length:0}}function y(){return function(b,C){C.normalize(b)}}function g(b){var C=b.re=Mfe()(b.__opts__),v=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||v.push(c),v.push(C.src_xn),C.src_tlds=v.join("|");function k(B){return B.replace("%TLDS%",C.src_tlds)}C.email_fuzzy=RegExp(k(C.tpl_email_fuzzy),"i"),C.link_fuzzy=RegExp(k(C.tpl_link_fuzzy),"i"),C.link_no_ip_fuzzy=RegExp(k(C.tpl_link_no_ip_fuzzy),"i"),C.host_fuzzy_test=RegExp(k(C.tpl_host_fuzzy_test),"i");var T=[];b.__compiled__={};function N(B,D){throw new Error('(LinkifyIt) Invalid schema "'+B+'": '+D)}Object.keys(b.__schemas__).forEach(function(B){var D=b.__schemas__[B];if(D!==null){var $={validate:null,link:null};if(b.__compiled__[B]=$,n(D)){i(D.validate)?$.validate=m(D.validate):a(D.validate)?$.validate=D.validate:N(B,D),a(D.normalize)?$.normalize=D.normalize:D.normalize?N(B,D):$.normalize=y();return}if(r(D)){T.push(B);return}N(B,D)}}),T.forEach(function(B){b.__compiled__[b.__schemas__[B]]&&(b.__compiled__[B].validate=b.__compiled__[b.__schemas__[B]].validate,b.__compiled__[B].normalize=b.__compiled__[b.__schemas__[B]].normalize)}),b.__compiled__[""]={validate:null,normalize:y()};var M=Object.keys(b.__compiled__).filter(function(B){return B.length>0&&b.__compiled__[B]}).map(s).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+M+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+M+")","ig"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),p(b)}function _(b,C){var v=b.__index__,k=b.__last_index__,T=b.__text_cache__.slice(v,k);this.schema=b.__schema__.toLowerCase(),this.index=v+C,this.lastIndex=k+C,this.raw=T,this.text=T,this.url=T}function E(b,C){var v=new _(b,C);return b.__compiled__[v.schema].normalize(v,b),v}function x(b,C){if(!(this instanceof x))return new x(b,C);C||l(b)&&(C=b,b={}),this.__opts__=e({},o,C),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},u,b),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},g(this)}return x.prototype.add=function(C,v){return this.__schemas__[C]=v,g(this),this},x.prototype.set=function(C){return this.__opts__=e(this.__opts__,C),this},x.prototype.test=function(C){if(this.__text_cache__=C,this.__index__=-1,!C.length)return!1;var v,k,T,N,M,B,D,$,X;if(this.re.schema_test.test(C)){for(D=this.re.schema_search,D.lastIndex=0;(v=D.exec(C))!==null;)if(N=this.testSchemaAt(C,v[2],D.lastIndex),N){this.__schema__=v[2],this.__index__=v.index+v[1].length,this.__last_index__=v.index+v[0].length+N;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&($=C.search(this.re.host_fuzzy_test),$>=0&&(this.__index__<0||$=0&&(T=C.match(this.re.email_fuzzy))!==null&&(M=T.index+T[1].length,B=T.index+T[0].length,(this.__index__<0||Mthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=M,this.__last_index__=B))),this.__index__>=0},x.prototype.pretest=function(C){return this.re.pretest.test(C)},x.prototype.testSchemaAt=function(C,v,k){return this.__compiled__[v.toLowerCase()]?this.__compiled__[v.toLowerCase()].validate(C,k,this):0},x.prototype.match=function(C){var v=0,k=[];this.__index__>=0&&this.__text_cache__===C&&(k.push(E(this,v)),v=this.__last_index__);for(var T=v?C.slice(v):C;this.test(T);)k.push(E(this,v)),T=T.slice(this.__last_index__),v+=this.__last_index__;return k.length?k:null},x.prototype.tlds=function(C,v){return C=Array.isArray(C)?C:[C],v?(this.__tlds__=this.__tlds__.concat(C).sort().filter(function(k,T,N){return k!==N[T-1]}).reverse(),g(this),this):(this.__tlds__=C.slice(),this.__tlds_replaced__=!0,g(this),this)},x.prototype.normalize=function(C){C.schema||(C.url="http://"+C.url),C.schema==="mailto:"&&!/^mailto:/i.test(C.url)&&(C.url="mailto:"+C.url)},x.prototype.onCompile=function(){},R_=x,R_}const Ffe=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var KP;function Lfe(){if(KP)return up;KP=1,Object.defineProperty(up,"__esModule",{value:!0});var e=Dfe(),t=i(e),r=Ffe,n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}var a=new t.default;return a.tlds(n.default),up.default=function(s){return a.match(s)},up}var cp={},YP;function jfe(){return YP||(YP=1,Object.defineProperty(cp,"__esModule",{value:!0}),cp.default=function(e){return e}),cp}var XP;function Bfe(){if(XP)return op;XP=1,Object.defineProperty(op,"__esModule",{value:!0});var e=function(){function E(x,b){for(var C=0;CN&&T.push(C.substring(N,M.index));var D=v.props.hrefDecorator(M.url),$=v.props.textDecorator(M.text),X=v.props.componentDecorator(D,$,B);T.push(X),N=M.lastIndex}),C.length>N&&T.push(C.substring(N)),T.length===1?T[0]:T}},{key:"parse",value:function(C){var v=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof C=="string"?this.parseString(C):r.isValidElement(C)&&C.type!=="a"&&C.type!=="button"?r.cloneElement(C,{key:k},this.parse(C.props.children)):Array.isArray(C)?C.map(function(T,N){return v.parse(T,N)}):C}},{key:"render",value:function(){return r.createElement(r.Fragment,null,this.parse(this.props.children))}}]),x}(r.Component);return _.defaultProps={componentDecorator:i.default,hrefDecorator:s.default,matchDecorator:l.default,textDecorator:c.default},op.default=_,op}var JP;function zfe(){if(JP)return ap;JP=1,Object.defineProperty(ap,"__esModule",{value:!0});var e=Bfe(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return ap.default=t.default,ap}var Ufe=zfe();const $fe=yn(Ufe);function Q1({children:e}){return P.jsx($fe,{componentDecorator:(t,r,n)=>P.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:r},n),children:e})}function Hx(e){return P.jsx(P.Fragment,{children:e.lines.map((t,r)=>P.jsxs("div",{children:[P.jsx(Q1,{children:t}),P.jsx("br",{})]},r))})}function H3({sources:e}){const t=dr();return e!=null&&e.length?P.jsx(Xe,{children:e.map((r,n)=>P.jsxs(Xe.Item,{children:[P.jsx(Xe.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),P.jsxs(Xe.Content,{children:[P.jsx(Xe.Header,{children:P.jsx(Q1,{children:[r.author,r.title,r.publicationInfo].filter(i=>!!i).join(", ")})}),P.jsxs(Xe.Description,{children:[P.jsx(Q1,{children:r.page}),r.date&&` [${ru(r.date,t)}]`]})]})]},n))}):null}function q3(e){const[t,r]=J.useState(!1),[n,i]=J.useState(!1),[a,s]=J.useState(!1),[o,l]=J.useState("");return _x(e.url)?(n&&o!==e.url&&i(!1),P.jsxs(P.Fragment,{children:[P.jsx(an,{className:n?"loaded-image-thumbnail":"hidden-image",onClick:()=>r(!0),onLoad:()=>{i(!0),l(e.url),s(!1)},onError:u=>{i(!0),l(e.url),s(!0),u.currentTarget.alt=""},src:e.url,alt:e.title||e.filename,centered:!0}),P.jsx(Si,{className:n?"hidden-image":"image-placeholder",children:P.jsx(Si.Image,{square:!0})}),a&&P.jsx(hf,{fluid:!0,textAlign:"center",children:P.jsx(jn,{negative:!0,compact:!0,children:P.jsx(jn.Header,{children:P.jsx(Re,{id:"error.failed_to_load_image",defaultMessage:"Failed to load image file"})})})}),P.jsxs(Vt,{basic:!0,size:"large",closeIcon:P.jsx(et,{name:"close",color:"red"}),open:t,onClose:()=>r(!1),onOpen:()=>r(!0),centered:!1,children:[P.jsx(Vt.Header,{children:e.title}),P.jsx(Vt.Content,{image:!0,children:P.jsx(an,{className:"modal-image",src:e.url,alt:e.title||e.filename,label:P.jsx(cr,{attached:"bottom",content:e.filename}),wrapped:!0})})]})]})):P.jsx(An,{centered:!0,style:{width:"100%",maxWidth:"290px",margin:"0 auto 14px"},children:P.jsxs(An.Content,{textAlign:"center",style:{backgroundColor:"#f9f9f9"},children:[P.jsx(et,{name:"image",size:"huge",color:"grey",style:{marginBottom:"10px",opacity:.6}}),P.jsx(An.Header,{style:{fontSize:"14px",wordBreak:"break-all"},children:e.title||e.filename}),P.jsx(An.Meta,{style:{marginTop:"5px",fontStyle:"italic"},children:P.jsx(Re,{id:"media.not_uploaded",defaultMessage:"File not uploaded"})})]})})}function Hfe(e){return!!e&&e.map((t,r)=>P.jsx(Xe,{children:P.jsx(Xe.Item,{children:P.jsx(q3,{url:t.url,filename:t.filename,title:t.title})})},r))}function qfe(e){return!!(e!=null&&e.length)&&e.map((t,r)=>P.jsx("div",{children:P.jsx(Hx,{lines:t.map((n,i)=>P.jsx("i",{children:n},i))})},r))}function Gfe(e){var d,p,m,y;const[t,r]=J.useState(-1),[n,i]=J.useState("");(!n||n!==e.indi)&&(r(-1),i(e.indi));function a(g,_){_.index!==void 0&&t!==_.index?r(_.index):r(-1)}const s=((d=e.images)==null?void 0:d.length)&&{menuItem:P.jsx(Wt.Item,{fitted:!0,onClick:a,children:P.jsx(Ki,{content:P.jsx(Re,{id:"extras.images",defaultMessage:"Images"}),size:"mini",position:"bottom center",trigger:P.jsx(et,{circular:!0,name:"camera"})})},"images"),render:()=>P.jsx(Vr.Pane,{children:Hfe(e.images)})},o=((p=e.notes)==null?void 0:p.length)&&{menuItem:P.jsx(Wt.Item,{fitted:!0,onClick:a,children:P.jsx(Ki,{content:P.jsx(Re,{id:"extras.notes",defaultMessage:"Notes"}),size:"mini",position:"bottom center",trigger:P.jsx(et,{circular:!0,name:"sticky note outline"})})},"notes"),render:()=>P.jsx(Vr.Pane,{children:qfe(e.notes)})},l=((m=e.sources)==null?void 0:m.length)&&{menuItem:P.jsx(Wt.Item,{fitted:!0,onClick:a,children:P.jsx(Ki,{content:P.jsx(Re,{id:"extras.sources",defaultMessage:"Sources"}),size:"mini",position:"bottom center",trigger:P.jsx(et,{circular:!0,name:"quote right"})})},"sources"),render:()=>P.jsx(Vr.Pane,{children:P.jsx(H3,{sources:e.sources})})},u=((y=e.files)==null?void 0:y.length)&&{menuItem:P.jsx(Wt.Item,{fitted:!0,onClick:a,children:P.jsx(Ki,{content:P.jsx(Re,{id:"extras.files",defaultMessage:"Additional files"}),size:"mini",position:"bottom center",trigger:P.jsx(et,{circular:!0,name:"file alternate outline"})})},"files"),render:()=>P.jsx(Vr.Pane,{children:P.jsx($3,{files:e.files})})},c=[s,o,l,u].flatMap(g=>g?[g]:[]);return c.length?P.jsx(ot.Description,{children:P.jsx(Vr,{className:"event-extras",activeIndex:t,renderActiveOnly:!0,menu:{tabular:!0,attached:!0,compact:!0,borderless:!0},panes:c})}):null}function Bc(e){const t=wn(),r=sae(e.person),n=kn.parse(t.search);return n.indi=Qn(e.person.pointer),P.jsx(_l,{to:{pathname:"/view",search:kn.stringify(n)},children:r||P.jsx(Re,{id:"name.unknown_name",defaultMessage:"N.N."})})}const Wfe=new Map([["ADOP","Adoption"],["BAPM","Baptism"],["BARM","Bar Mitzvah"],["BASM","Bas Mitzvah"],["BIRT","Birth"],["BLES","Blessing"],["BURI","Burial"],["CENS","Census"],["CHR","Christening"],["CHRA","Adult christening"],["CONF","Confirmation"],["CREM","Cremation"],["DEAT","Death"],["DEG","Degree"],["DIV","Divorce"],["DIVF","Divorce filed"],["EDUC","Education"],["ELEC","Elected"],["EMAIL","E-mail"],["EMIG","Emigration"],["ENGA","Engagement"],["EVEN","Event"],["FACT","Fact"],["FCOM","First communion"],["GRAD","Graduation"],["IMMI","Immigration"],["MARB","Marriage bann"],["MARC","Marriage contract"],["MARL","Marriage license"],["MARR","Marriage"],["MARS","Marriage settlement"],["MDCL","Medical info"],["MILT","Military services"],["NATU","Naturalization"],["OBJE","Additional files"],["OCCU","Occupation"],["ORDN","Ordination"],["PROB","Probate"],["PROP","Property"],["RESI","Residence"],["RETI","Retirement"],["SOUR","Sources"],["TITL","Title"],["WILL","Will"],["WWW","WWW"],["birth","Birth name"],["married","Married name"],["maiden","Maiden name"],["immigrant","Immigrant name"],["aka","Also known as"]]);function gs(e){const t=e.tag.replace(/_/g,"");return P.jsx(Re,{id:`gedcom.${t}`,defaultMessage:Wfe.get(t)||t})}const qx=["BIRT"],Vfe=["ADOP","BAPM","BARM","BASM","BLES","CENS","CHR","CHRA","CONF","EDUC","EMIG","EVEN","FAMS","FCOM","GRAD","IMMI","NATU","ORDN","OCCU","PROP","RESI","RETI","WILL","_DEG","_ELEC","_MDCL","_MILT"],G3=["ANUL","CENS","DIV","DIVF","ENGA","EVEN","MARB","MARC","MARL","MARR","MARS"],W3=[...Vfe,...G3],Gx=["DEAT"],V3=["BURI","CREM","PROB"],Qfe=[qx,W3,Gx,V3],Kfe=[...qx,...W3,...Gx,...V3];function Yfe(e){const t=dr();return P.jsxs("div",{className:"item-header",children:[P.jsx(jt,{as:"span",size:"small",children:P.jsx(gs,{tag:Xfe(e.event)})}),e.event.date?P.jsx(jt,{as:"span",textAlign:"right",sub:!0,children:ru(e.event.date,t)}):null]})}function Xfe(e){return e.tag==="EVEN"&&e.type?e.type:e.tag}function Jfe(e,t,r){const n=t.tree.filter(i=>["WIFE","HUSB"].includes(i.tag)).find(i=>!i.data.includes(e));if(n)return ei(n,r,i=>i.indis)}function Zfe(e,t,r,n){if(!Gx.includes(e.tag))return;const i=iu(e),a=r.indis[t].tree.filter(s=>qx.includes(s.tag)).map(s=>iu(s)).find(s=>s);if(!(!a||!i))return Afe(a==null?void 0:a.data,i==null?void 0:i.data,n)}function Q3(e){const t=e.tree.find(r=>r.tag==="PLAC");return t!=null&&t.data?ms(t):void 0}function K3(e,t,r){const n=[];return e.tree.filter(i=>i.tag==="OBJE").forEach(i=>{const a=ei(i,t,o=>o.other),s=$F(a);s&&n.push({url:ad(s.data,r),filename:$m(s)||""})}),n}function Y3(e,t,r){const n=[];return e.tree.filter(i=>i.tag==="OBJE").forEach(i=>{var o;const a=ei(i,t,l=>l.other),s=UF(a);s&&n.push({url:ad(s.data,r),filename:$m(s),titl:(o=a.tree.find(l=>l.tag==="TITL"))==null?void 0:o.data})}),n}function X3(e,t){return e.tree.filter(r=>r.tag==="SOUR").map(r=>qF(r,t))}function J3(e,t){const r=e.tree.filter(i=>i.tag==="NOTE").map(i=>ei(i,t,a=>a.other)),n=e.tag!=="EVEN"?e.tree.filter(i=>i.tag==="TYPE"):[];return[e,...n,...r].filter(i=>!!i.data).filter(i=>i.data!=="Y").map(i=>ms(i))}function ede(e,t,r,n,i){return e.tag==="FAMS"?nde(e,t,r,i):tde(e,t,r,n,i)}function tde(e,t,r,n,i){const a=iu(e)||null;return[{tag:e.tag,date:a?fn.getDate(a.data):void 0,type:HF(e),age:Zfe(e,r,t,n),place:Q3(e),images:K3(e,t,i),files:Y3(e,t,i),notes:J3(e,t),sources:X3(e,t),indi:r}]}function nde(e,t,r,n){const i=ei(e,t,a=>a.fams);return ng(G3,a=>i.tree.filter(s=>s.tag===a)).map(a=>{const s=iu(a)||null;return{tag:a.tag,date:s?fn.getDate(s.data):void 0,type:HF(a),personLink:Jfe(r,i,t),place:Q3(a),images:K3(a,t,n),files:Y3(a,t,n),notes:J3(a,t),sources:X3(a,t),indi:r}})}function rde(e){return P.jsx(ot,{children:P.jsxs(ot.Content,{children:[P.jsx(Yfe,{event:e.event}),!!e.event.age&&P.jsx(ot.Meta,{children:e.event.age}),!!e.event.personLink&&P.jsx(Bc,{person:e.event.personLink}),!!e.event.place&&P.jsx(ot.Description,{children:e.event.place}),P.jsx(Gfe,{images:e.event.images,notes:e.event.notes,sources:e.event.sources,indi:e.event.indi,files:e.event.files})]})})}function ide(e){const t=dr(),r=ng(Qfe,n=>e.entries.filter(i=>n.includes(i.tag)).map(i=>ede(i,e.gedcom,e.indi,t,e.images)).flatMap(i=>i).sort((i,a)=>id(i.date,a.date)));return r.length?P.jsx(P.Fragment,{children:r.map((n,i)=>P.jsx(rde,{event:n},i))}):null}function ade(e,t,r){var c,d;const n=(c=e.tree)==null?void 0:c.find(p=>["HUSB","WIFE"].includes(p.tag)&&Qn(p.data)!==r),i=n?Qn(n.data):void 0,a=i?t.indis[i]:void 0,u=(((d=e.tree)==null?void 0:d.filter(p=>p.tag==="CHIL"))||[]).filter(p=>!!t.indis[Qn(p.data)]).map(p=>{const m=t.indis[Qn(p.data)],y=m==null?void 0:m.tree.find(E=>E.tag==="BIRT"),g=y?iu(y):void 0,_=g?fn.getDate(g.data):void 0;return{childEntry:m,parsedDate:_}}).sort((p,m)=>id(p.parsedDate,m.parsedDate)).map(p=>p.childEntry);return{familyId:Qn(e.pointer),spouseTag:n==null?void 0:n.tag,spouseRecord:a,children:u}}function ode(e){const t=e.gedcom.indis[e.indi];if(!t)return null;const r=t.tree,n=r.find(b=>b.tag==="FAMC"),i=n?e.gedcom.fams[Qn(n.data)]:void 0,a=(i==null?void 0:i.tag)==="FAM",s=a?i==null?void 0:i.tree.find(b=>b.tag==="HUSB"):void 0,o=a?i==null?void 0:i.tree.find(b=>b.tag==="WIFE"):void 0,l=s?Qn(s.data):void 0,u=l?e.gedcom.indis[l]:void 0,c=o?Qn(o.data):void 0,d=c?e.gedcom.indis[c]:void 0,p=u||d,_=r.filter(b=>b.tag==="FAMS").map(b=>e.gedcom.fams[Qn(b.data)]).map(b=>ade(b,e.gedcom,e.indi)).filter(b=>b.spouseRecord||b.children.length>0),E=_.length,x=E>0;return!p&&!x?null:P.jsx(ot,{children:P.jsxs(ot.Content,{children:[P.jsx("div",{className:"item-header",children:P.jsx(jt,{as:"span",size:"small",children:P.jsx(Re,{id:"family.immediate_family",defaultMessage:"Immediate Family"})})}),p&&P.jsxs("div",{className:"parents-block",children:[u&&P.jsxs("div",{children:[P.jsx("strong",{children:P.jsx(Re,{id:"family.father",defaultMessage:"Father"})}),": ",P.jsx(Bc,{person:u})]}),d&&P.jsxs("div",{children:[P.jsx("strong",{children:P.jsx(Re,{id:"family.mother",defaultMessage:"Mother"})}),": ",P.jsx(Bc,{person:d})]})]}),_.map(b=>{const C=!b.spouseRecord&&E>1;return P.jsxs("div",{className:"spousal-group",children:[b.spouseRecord?P.jsxs("div",{children:[P.jsx("strong",{children:b.spouseTag==="HUSB"?P.jsx(Re,{id:"family.husband",defaultMessage:"Husband"}):P.jsx(Re,{id:"family.wife",defaultMessage:"Wife"})}),": ",P.jsx(Bc,{person:b.spouseRecord})]}):C?P.jsx("div",{children:P.jsx("strong",{children:P.jsx(Re,{id:"family.unknown_spouse",defaultMessage:"Unknown Spouse"})})}):null,b.children.length>0&&P.jsxs("div",{className:"children-block",children:[P.jsxs("div",{children:[P.jsx("strong",{children:b.children.length===1?P.jsx(Re,{id:"family.child",defaultMessage:"Child"}):P.jsx(Re,{id:"family.children",defaultMessage:"Children"})}),": "]}),P.jsx("div",{children:b.children.map(v=>P.jsx("div",{children:P.jsx(Bc,{person:v})},v.pointer))})]})]},b.familyId)})]})})}const sde=[...Kfe,"NAME","SEX","FAMC","FAMS","NOTE","SOUR","FACT"];function lde(e){const t=[];return e.data&&t.push(...ms(e)),e.tree.filter(r=>r.tag==="NOTE").forEach(r=>ms(r).forEach(n=>t.push(P.jsx("i",{children:n})))),t.length?P.jsxs(P.Fragment,{children:[P.jsx(jt,{sub:!0,children:P.jsx(gs,{tag:e.tag})}),P.jsx("span",{children:P.jsx(Hx,{lines:t})})]}):null}function ude(e){if(!e.data)return null;const t=e.tree.filter(n=>n.tag==="TYPE").flatMap(n=>ms(n)).join().trim(),r=ms(e).join(" ").trim();return t?P.jsxs(P.Fragment,{children:[P.jsx(jt,{sub:!0,children:P.jsx(gs,{tag:e.tag})}),P.jsxs("div",{children:[P.jsx("b",{children:t}),": ",r]})]}):P.jsxs(P.Fragment,{children:[P.jsx(jt,{sub:!0,children:P.jsx(gs,{tag:e.tag})}),P.jsx("div",{children:r})]})}function cde(e,t,r){const n=ei(e,t,a=>a.other),i=$F(n);return!i||!Wx(n)?null:P.jsx("div",{className:"person-image",children:P.jsx(q3,{url:ad(i.data,r),filename:$m(i)||""})})}function fde(e,t){const r=e.map(n=>qF(n,t));return r.length?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"item-header",children:P.jsx(jt,{as:"span",size:"small",children:P.jsx(gs,{tag:"SOUR"})})}),P.jsx(H3,{sources:r})]}):null}function dde(e,t,r){const n=[];return e.map(i=>ei(i,t,a=>a.other)).forEach(i=>{var s;const a=UF(i);a&&n.push({url:ad(a.data,r),filename:$m(a),titl:(s=i.tree.find(o=>o.tag==="TITL"))==null?void 0:s.data})}),n.length?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"item-header",children:P.jsx(jt,{as:"span",size:"small",children:P.jsx(gs,{tag:"OBJE"})})}),P.jsx($3,{files:n})]}):null}function hde(e,t){const r=ei(e,t,n=>n.other);return!r||!Wx(r)?null:P.jsx(Hx,{lines:ms(r).map((n,i)=>P.jsx("i",{children:n},i))})}function pde(e){var d,p,m,y,g,_,E,x;const t=(d=e.tree.find(b=>b.tag==="NPFX"))==null?void 0:d.data;let r=(p=e.tree.find(b=>b.tag==="GIVN"))==null?void 0:p.data,n=(m=e.tree.find(b=>b.tag==="_RUFNAME"))==null?void 0:m.data;const i=(y=e.tree.find(b=>b.tag==="NICK"))==null?void 0:y.data,a=(g=e.tree.find(b=>b.tag==="SPFX"))==null?void 0:g.data,s=(_=e.tree.find(b=>b.tag==="SURN"))==null?void 0:_.data,o=(E=e.tree.find(b=>b.tag==="NSFX"))==null?void 0:E.data;r&&n&&r.includes(n)&&(r=r.replace(n,`"${n}"`),n=void 0);const u=[t,r,n&&`"${n}"`,i&&`(${i})`,a,s,o].filter(Boolean).join(" ").trim()||e.data.replaceAll("/","")||"",c=(x=e.tree.find(b=>b.tag==="TYPE"&&b.data!=="Unknown"))==null?void 0:x.data;return P.jsxs(P.Fragment,{children:[P.jsx(jt,{as:"span",size:"large",children:u||P.jsx(Re,{id:"name.unknown_name",defaultMessage:"N.N."})}),u&&c&&P.jsx(ot.Meta,{children:P.jsx(gs,{tag:c})})]})}function fp(e,t,r,n,i){return ng(r,a=>e.filter(s=>s.tag===a).map(s=>n(s,t,i))).filter(a=>a!==null).map((a,s)=>P.jsx(ot,{children:P.jsx(ot.Content,{children:a})},s))}function ZP(e,t,r,n,i){const a=ng(r,o=>e.filter(l=>l.tag===o)).filter(o=>o!==null),s=a.length?n(a,t,i):null;return s?P.jsx(ot,{children:P.jsx(ot.Content,{children:s})}):null}function Wx(e){return e.tree.length>0||e.data&&!e.data.startsWith("@")}function mde(e,t){return e.filter(r=>!sde.includes(r.tag)).map(r=>ei(r,t,n=>n.other)).filter(Wx).map(r=>lde(r)).filter(r=>r!==null).map((r,n)=>P.jsx(ot,{children:P.jsx(ot.Content,{children:r})},n))}function gde(e){return P.jsx(ot,{children:P.jsxs(ot.Content,{children:[P.jsx(jt,{sub:!0,children:P.jsx(Re,{id:"config.ids",defaultMessage:"Identification"})}),P.jsx("div",{children:P.jsx("i",{children:e})})]})})}function vde(e){const t=e.gedcom.indis[e.indi].tree;return P.jsx("div",{className:"details",children:P.jsxs(ot.Group,{divided:!0,children:[fp(t,e.gedcom,["NAME"],pde),fp(t,e.gedcom,["OBJE"],cde,e.images),P.jsx(ode,{gedcom:e.gedcom,indi:e.indi}),P.jsx(ide,{gedcom:e.gedcom,entries:t,indi:e.indi,images:e.images}),e.config.id===kx.SHOW?gde(e.indi):null,fp(t,e.gedcom,["FACT"],ude),mde(t,e.gedcom),fp(t,e.gedcom,["NOTE"],hde),ZP(t,e.gedcom,["OBJE"],dde,e.images),ZP(t,e.gedcom,["SOUR"],fde)]})})}function yde({data:e,selectedIndiId:t,config:r,onConfigChange:n,expanded:i,onToggle:a}){const s=dr(),o=[{menuItem:s.formatMessage({id:"tab.info",defaultMessage:"Info"}),render:()=>P.jsx(vde,{gedcom:e.gedcom,indi:t,config:r,images:e.images})},{menuItem:s.formatMessage({id:"tab.settings",defaultMessage:"Settings"}),render:()=>P.jsx(Soe,{gedcom:e.gedcom,config:r,onChange:n})}];return P.jsxs(wo,{id:"sidebar",animation:"overlay",icon:"labeled",width:i?"wide":"very thin",direction:"right",visible:!0,children:[i?P.jsx(Vr,{id:"sideTabs",panes:o}):P.jsx(pce,{gedcom:e.gedcom,indi:t}),P.jsx(Zt,{id:"sideToggle",icon:!0,size:"mini",onClick:()=>a(),children:P.jsx(et,{size:"large",name:i?"arrow right":"arrow left"})})]})}function wde(e,t){return e instanceof _u?t.formatMessage({id:`error.${e.code}`,defaultMessage:e.message},e.args):e.message}function _de(){const[e,t]=J.useState(0),[r,n]=J.useState("Loading…"),[i,a]=J.useState(),[s,o]=J.useState(),[l,u]=J.useState(!1),[c,d]=J.useState(),[p,m]=J.useState(!1),[y,g]=J.useState(),{hasGoogleToken:_,setHasGoogleToken:E}=pN(),x=dr(),b=ca(),C=wn(),v=J.useMemo(()=>U1(C),[C]),k=v.chartType,T=v.standalone,N=v.showWikiTreeMenus,M=v.freezeAnimation,B=v.showSidePanel,D=v.config;J.useMemo(()=>{K(D,i)},[D,i]);const $=J.useMemo(()=>i?Hy(i.chartData,v.selection):void 0,[i,v.selection]),X=v.detail||($==null?void 0:$.id),W=J.useRef(!0),U=J.useRef(0),V=J.useRef();J.useEffect(()=>(W.current=!0,()=>{W.current=!1}),[]);function K(Ie,He){if(He===void 0)return;const Ke=Ie.id===kx.HIDE,lt=Ie.sex===pL.HIDE;zm(He.chartData).forEach(ut=>{ut.hideId=Ke,ut.hideSex=lt})}function Y(){se({sidePanel:!B?"true":"false"},{replace:!0})}function G(Ie){o(Ie),t(2)}const F=J.useMemo(()=>new Use(x),[x]),q=J.useCallback((Ie,He)=>{if(!c||c.source!==Ie.source)return!0;const Ke={spec:Ie,selection:He},lt={spec:c,selection:V.current};switch(Ke.spec.source){case Gt.UPLOADED:return Q2.isNewData(Ke,lt,i);case Gt.GEDCOM_URL:return K2.isNewData(Ke,lt,i);case Gt.WIKITREE:return F.isNewData(Ke,lt,i);case Gt.EMBEDDED:return Y2.isNewData(Ke,lt,i);case Gt.GOOGLE_DRIVE:return X2.isNewData(Ke,lt,i)}},[c,i,F]),z=J.useCallback((Ie,He,Ke)=>{switch(Ie.source){case Gt.UPLOADED:return Q2.loadData({spec:Ie,selection:He},Ke);case Gt.GEDCOM_URL:return K2.loadData({spec:Ie,selection:He},Ke);case Gt.WIKITREE:return F.loadData({spec:Ie,selection:He},Ke);case Gt.EMBEDDED:return Y2.loadData({spec:Ie,selection:He},Ke);case Gt.GOOGLE_DRIVE:return X2.loadData({spec:Ie,selection:He},Ke)}},[F]);async function j(){await Xi.signOut(),E(!1),a(void 0),V.current=void 0,hN(),b({pathname:"/"},{replace:!0})}J.useEffect(()=>{(async()=>{if(C.pathname!=="/view"){e!==0&&t(0),a(void 0);return}const Ie=U1(C);if(!Ie.sourceSpec){b({pathname:"/"},{replace:!0});return}if((e===0||q(Ie.sourceSpec,Ie.selection))&&e!==1&&e!==4){t(1),d(Ie.sourceSpec),V.current=Ie.selection;const He=++U.current;n("Loading…");try{const Ke=await z(Ie.sourceSpec,Ie.selection,lt=>{W.current&&n(lt)});if(!W.current||U.current!==He)return;n(`Rendering chart (${Ke.chartData.indis.length.toLocaleString()} people)…`),a(Ke),V.current=Hy(Ke.chartData,Ie.selection),t(3)}catch(Ke){if(!W.current||U.current!==He)return;Ke instanceof Df?Ie.sourceSpec.source===Gt.GOOGLE_DRIVE&&(g(Ie.sourceSpec.fileId),m(!0)):G(wde(Ke,x))}}else if(e===3||e===4){const He=Ie.sourceSpec.source===Gt.WIKITREE&&!!Ie.selection&&(!V.current||V.current.id!==Ie.selection.id);if(t(He?4:3),He){const Ke=++U.current;try{const lt=await NL(Ie.selection.id,x);if(!W.current||U.current!==Ke)return;const ht=Hy(lt.chartData,Ie.selection);a(lt),V.current=ht,t(3)}catch(lt){if(!W.current||U.current!==Ke)return;t(3),Te(x.formatMessage({id:"error.failed_wikitree_load_more",defaultMessage:"Failed to load data from WikiTree. {error}"},{error:lt}))}}}})()},[C,e,i,b,x,q,z]),J.useEffect(()=>()=>{Gm(i==null?void 0:i.images)},[i]),dce(i,X,fe);function se(Ie,He){b(Qoe(C,Ie),He)}function fe(Ie){Ie.id.startsWith(Tx)||(vn("selection_changed"),se({indi:Ie.id,gen:String(Ie.generation),detail:null}))}function pe(Ie){se({detail:Ie.id})}function xe(){vn("print"),Doe()}function Te(Ie){u(!0),o(Ie)}async function Me(){vn("download_pdf");try{await Boe()}catch{Te(x.formatMessage({id:"error.failed_pdf",defaultMessage:"Failed to generate PDF file. Please try with a smaller diagram or download an SVG file."}))}}async function Le(){vn("download_png");try{await joe()}catch{Te(x.formatMessage({id:"error.failed_png",defaultMessage:"Failed to generate PNG file. Please try with a smaller diagram or download an SVG file."}))}}function Ve(){vn("download_svg"),Foe()}function Oe(){u(!1)}function Fe(Ie){return i?k===Ko.Donatso?P.jsx(nce,{data:i.chartData,selection:Ie,onSelection:fe,onFirstRender:()=>n("")}):P.jsx(Woe,{data:i.chartData,selection:Ie,chartType:k,onSelection:fe,onDetailSelection:pe,freezeAnimation:M,colors:D.color,hideIds:D.id,hideSex:D.sex,placeDisplay:D.place,placeCount:D.placeCount,onFirstRender:()=>n("")}):null}function We(){switch(e){case 3:case 4:{if(!i||!$)return null;const Ie=$;return P.jsxs("div",{id:"content",children:[P.jsx(Xoe,{open:l,message:s,onDismiss:Oe}),e===4?P.jsx(jl,{active:!0,size:"small",className:"loading-more"}):null,P.jsxs(Wl,{children:[P.jsx(yde,{data:i,selectedIndiId:X||Ie.id,config:D,expanded:B,onToggle:Y,onConfigChange:He=>{se(Eoe(He),{replace:!0})}}),P.jsx(Vl,{children:Fe(Ie)})]})]})}case 2:return P.jsx(Yoe,{message:s||"Unknown error"});case 0:case 1:return P.jsx(jl,{active:!0,size:"large"})}}const it=r&&(e===1||e===3)?P.jsx("div",{style:{position:"fixed",bottom:16,left:16,background:"rgba(0,0,0,0.7)",color:"#fff",padding:"6px 12px",borderRadius:4,fontFamily:"monospace",fontSize:12,zIndex:9999,pointerEvents:"none"},children:r}):null;return P.jsxs(P.Fragment,{children:[it,P.jsx(dL,{data:i==null?void 0:i.chartData,allowAllRelativesChart:(c==null?void 0:c.source)!==Gt.WIKITREE,allowPrintAndDownload:k!==Ko.Donatso,showingChart:e===3||e===4,standalone:T,eventHandlers:{onSelection:fe,onPrint:xe,onDownloadPdf:Me,onDownloadPng:Le,onDownloadSvg:Ve},showWikiTreeMenus:(c==null?void 0:c.source)===Gt.WIKITREE&&N,hasGoogleToken:_,onGoogleSignOut:j,onGoogleTokenAcquired:()=>E(!0)}),We(),p&&y&&P.jsx(hce,{failedFileId:y,onAuthSuccess:Ie=>{m(!1),E(!0),Ie===y?t(0):b({pathname:"/view",search:kn.stringify({source:"google-drive",fileId:Ie})},{replace:!0})},onCancel:()=>{m(!1),b({pathname:"/"},{replace:!0})}})]})}const bde=CL();function xde(){const e=wn(),t=J.useMemo(()=>{if(typeof window>"u")return null;const n=kn.parse(window.location.search),i=kn.parse(e.search);let a=null;const s={...i,...n};let o=!1;const l=s.state;if(typeof l=="string")try{const u=JSON.parse(l);if(u&&u.action==="open"&&Array.isArray(u.ids)&&u.ids.length>0){const c=u.ids[0];a="/view",s.source="google-drive",s.fileId=c,delete s.state,o=!0}}catch(u){console.warn("Google Drive state query parameter JSON parsing failed or action mismatch:",u)}if(n.authcode&&(a=a||e.pathname,o=!0),o||n.state||n.authcode){const u={...n};delete u.state,delete u.authcode;const c=kn.stringify(u),d=window.location.origin+window.location.pathname+(c?"?"+c:"")+window.location.hash;return window.history.replaceState(null,"",d),{pathname:a||e.pathname,search:kn.stringify(s)}}return null},[e.pathname,e.search]);return t?P.jsx(Ah,{children:P.jsx(Go,{path:"*",element:P.jsx(kh,{to:t,replace:!0})})}):e.pathname==="/view"?P.jsxs(Ah,{children:[P.jsx(Go,{path:"/view",element:P.jsx(_de,{})}),P.jsx(Go,{path:"*",element:P.jsx(kh,{to:"/view",replace:!0})})]}):bde?P.jsx(Ah,{children:P.jsx(Go,{path:"*",element:P.jsx(kh,{to:"/view",replace:!0})})}):P.jsxs(Ah,{children:[P.jsx(Go,{path:"/",element:P.jsx(Koe,{})}),P.jsx(Go,{path:"*",element:P.jsx(kh,{to:"/",replace:!0})})]})}const Ede={"menu.open":"Отваряне","menu.open_file":"Отваряне на файл","menu.load_from_url":"Зареждане от адрес","menu.select_wikitree_id":"Избор на WikiTree ID","menu.print":"Отпечатване","menu.download":"Изтегляне","menu.pdf_file":"PDF файл","menu.png_file":"PNG файл","menu.svg_file":"SVG файл","menu.download_pdf":"Изтегляне като PDF","menu.download_png":"Изтегляне като PNG","menu.download_svg":"Изтегляне като SVG","menu.view":"Изглед","menu.hourglass":"Пясъчен часовник","menu.relatives":"Всички роднини","menu.donatso":"Семейна диаграма на Донацо","menu.fancy":"Декоративно дърво (експериментално)","menu.wikitree_login":"Вход в WikiTree","menu.wikitree_logged_in":"Вписани","menu.wikitree_popup_username":"Вписани сте в WikiTree като {username}","menu.wikitree_popup":"Вписани в WikiTree","menu.github":"Проект в GitHub","menu.search.placeholder":"Търсене на лице","menu.search.no_results":"Няма резултати","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy е приложение за преглед на родословни дървета, която дава възможност за разглеждане структурата на семейство.","intro.instructions":"Използвайте бутоните за отваряне на файл и зареждане от адрес, за да отворите GEDCOM файл. Повечето приложения и страници за генеалогия позволяват изнасяне на GEDCOM файлове.","intro.examples":"Примерни родословни дървета","intro.from":"от","intro.whats_new":"Последни промени","intro.full_changelog":"Списък с всички промени","whats_new.title":"Новото в това издание","intro.privacy":"Поверителност","intro.privacy_note":"При отваряне на файл тази страницата не изпраща никъде вашите данни - заредените файловете не напускат вашето устройство. При зареждане на файл от адрес, данните преминават през услугата {link}, за да бъдат избегнати проблеми при заявяването на файлове между различни сайтове (CORS).","load_from_url.title":"Зареждане от адрес","load_from_url.comment":"Данните от адреса ще преминат през услугата {link}, за да бъдат избегнати проблеми при заявяването на файлове между различни сайтове (CORS).","load_from_url.cancel":"Отказ","load_from_url.load":"Зареждане","select_wikitree_id.title":"Избиране на WikiTree ID","select_wikitree_id.comment":"Въведете идентификатор на профил в {wikiTreeLink}. Пример: {example1}, {example2}","select_wikitree_id.cancel":"Отказ","select_wikitree_id.load":"Зареждане","gedcom.ADOP":"Осиновяване","gedcom.BAPM":"Кръщене","gedcom.BARM":"Бар мицва","gedcom.BASM":"Бат мицва","gedcom.BIRT":"Раждане","gedcom.BLES":"Благословия","gedcom.BURI":"Погребение","gedcom.CENS":"Преброяване на населението","gedcom.CHR":"Кръщене","gedcom.CHRA":"Кръщение за възрастни","gedcom.CONF":"Потвърждение","gedcom.CREM":"Кремиране","gedcom.DEAT":"Смърт","gedcom.DEG":"Академична степен","gedcom.DIV":"Развод","gedcom.DIVF":"Подадено е заявление за развод","gedcom.DSCR":"Описание","gedcom.EDUC":"Образование","gedcom.ELEC":"Подбор за длъжността","gedcom.EMAIL":"Електронна поща","gedcom.EMIG":"Емигриране","gedcom.ENGA":"Годеж","gedcom.EVEN":"Събитие","gedcom.FACT":"Факт","gedcom.FCOM":"Първо причастие","gedcom.GRAD":"Завършване на обучението","gedcom.IMMI":"Имигриране","gedcom.MARB":"Забрана за брак","gedcom.MARC":"Брачен договор","gedcom.MARL":"Брачно свидетелство","gedcom.MARR":"Бракосъчетание","gedcom.MARS":"Предбрачен договор","gedcom.MDCL":"Медицинска информация","gedcom.MILT":"Военна служба","gedcom.NATU":"Натурализация","gedcom.OBJE":"Допълнителни файлове","gedcom.OCCU":"Професия","gedcom.ORDN":"Ръкополагане","gedcom.PROB":"Потвърждение на завещанието","gedcom.PROP":"Имот","gedcom.RESI":"Местожителство","gedcom.RETI":"Пенсиониране","gedcom.RELI":"Религия","gedcom.RIN":"ID","gedcom.SOUR":"Източници","gedcom.TITL":"Обръщение","gedcom.WILL":"Завещание","gedcom.WWW":"Препратка","gedcom._UPD":"Последно обновяване","gedcom.birth":"Рождено име","gedcom.married":"Име след брак","gedcom.maiden":"Моминско име","gedcom.immigrant":"Имигрантско име","gedcom.aka":"Също известни като","date.abt":"около","date.cal":"изчислено","date.est":"приблизително","date.between":"между {from} и {to}","date.after":"след {from}","date.before":"преди {to}","age.exact":"{age, plural, =0 {Под 1 година} one {{qualifier} 1 година} other {{qualifier} # години}}","age.less":"Под {age, plural, =0 {1 година} one {1 година} other {# години}}","age.more":"Над {age, plural, =0 {0 години} one {1 година} other {# години}}","age.between":"Между {ageFrom} {ageTo, plural, =0 {0 години} one {1 година} other {# години}}","error.error":"Грешка","error.failed_pdf":"Неуспешно създаване на PDF файл. Опитайте с по-малка диаграма или изтеглете SVG.","error.failed_png":"Неуспешно създаване на PNG файл. Опитайте с по-малка диаграма или изтеглете SVG.","error.failed_to_load_file":"Грешка при зареждане на файл","error.failed_wikitree_load_more":"Грешка при зареждане на данни от WikiTree. {error}}","error.GEDCOM_READ_FAILED":"Грешка при отваряне на GEDCOM файл","error.ERROR_LOADING_UPLOADED_FILE":"Грешка при зареждането на данни. Качете файла отново.","error.WIKITREE_ID_NOT_PROVIDED":"Не е указан идентификатор на профил в WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Профилът {id} в WikiTree е недостъпен. Опитайте да се впишете.","error.WIKITREE_PROFILE_NOT_FOUND":"Профилът {id} в WikiTree не е намерен","error.failed_to_load_image":"Грешка при зареждане на изображение","wikitree.private":"Скрито","tab.info":"Информация","tab.settings":"Настройки","config.colors":"Цвят","config.colors.NO_COLOR":"Без цвят","config.colors.COLOR_BY_GENERATION":"По поколения","config.colors.COLOR_BY_SEX":"По пол","config.ids":"Идентификатори","config.ids.HIDE":"Скриване","config.ids.SHOW":"Показване","config.sex":"Пол","config.sex.HIDE":"Скриване","config.sex.SHOW":"Показване","config.places":"Места","config.places.FULL":"пълно","config.places.SHORT":"съкратено","config.places.HIDE":"скриване","head.source":"Източник на данни","name.unknown_name":"Неизвестно име","extras.images":"Изображение","extras.notes":"Бележки","extras.sources":"Източници","extras.files":"Допълнителни файлове","family.immediate_family":"Най-близко семейство","family.parents":"Родители","family.father":"Баща","family.mother":"Майка","family.husband":"Съпруг","family.wife":"Съпруга","family.unknown_spouse":"Неизвестен съпруг/а","family.children":"Деца","family.child":"Дете","media.not_uploaded":"Файлът не е качен","menu.load_from_google_drive":"Зареждане от Google Диск","menu.google_sign_out":"Прекъсване на връзката с Google Диск","google_auth.title":"Изисква се достъп до Google Диск","google_auth.instructions":"За да прегледате този файл, трябва да се удостоверите и да изберете файла от вашия Google Диск, за да предоставите разрешения.","google_auth.picker_instructions_header":"Изискват се разрешения","google_auth.picker_instructions":"Приложението няма разрешение да чете този файл. Моля, изберете го в изскачащия прозорец на браузъра за файлове, за да предоставите достъп. Ако това е споделен файл, който не се показва, опитайте първо да добавите пряк път към вашия Диск.","google_auth.cancel":"Отказ","google_auth.grant_button":"Предоставяне на достъп и избор на файл","google_auth.switch_account_button":"Смяна на акаунт","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Интеграцията с Google Drive не е конфигурирана."},Sde={"menu.open":"Otevřít","menu.open_file":"Otevřít soubor","menu.load_from_url":"Otevřít z URL","menu.select_wikitree_id":"Vybrat WikiTree ID","menu.print":"Tisknout","menu.download":"Stáhnout","menu.pdf_file":"Soubor PDF","menu.png_file":"Soubor PNG","menu.svg_file":"Soubor SVG","menu.download_pdf":"Stáhnout PDF","menu.download_png":"Stáhnout PNG","menu.download_svg":"Stáhnout SVG","menu.view":"Zobrazení","menu.hourglass":"Přesýpací hodiny","menu.relatives":"Všichni příbuzní","menu.donatso":"Donatso rodokmen","menu.fancy":"Rodinný strom (experimentální)","menu.wikitree_login":"Přihlášení na WikiTree","menu.wikitree_logged_in":"Přihlášeno","menu.wikitree_popup_username":"Přihlášeno do WikiTree jako {username}","menu.wikitree_popup":"Přihlášeno do WikiTree","menu.github":"GitHub projekt","menu.search.placeholder":"Hledej osobu","menu.search.no_results":"Žádné výsledky","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy vám umožňuje interaktivní prohlížení rodokmenu.","intro.instructions":"Kliknutím na OTEVŘÍT SOUBOR nebo OTEVŘÍT Z URL načtete soubor GEDCOM. Většina genealogických programů má funkci exportu do formátu GEDCOM.","intro.examples":"Níže je uvedeno několik příkladů použití z internetu:","intro.from":"zdroj:","intro.whats_new":"Co je nového","intro.full_changelog":"Úplný seznam změn","whats_new.title":"Co je nového v této verzi?","intro.privacy":"Soukromí","intro.privacy_note":"Pomocí funkce „Otevřít soubor“ nejsou vaše data nikam odesílána a zůstávají ve vašem počítači. Při použití funkce „Otevřít z URL“ jsou data z dané adresy odeslána službou {link}, aby bylo možné data načíst (CORS).","load_from_url.title":"Otevřít z adresy URL","load_from_url.comment":"Data z dané adresy URL budou načtena prostřednictvím služby {link}, aby nedocházelo k problémům s CORS.","load_from_url.cancel":"Storno","load_from_url.load":"Otevřít","select_wikitree_id.title":"Zadejte WikiTree ID","select_wikitree_id.comment":"Zadejte ID profilu {wikiTreeLink}. Příklad: {example1}, {example2}","select_wikitree_id.cancel":"Storno","select_wikitree_id.load":"Otevřít","gedcom.ADOP":"Adopce","gedcom.BAPM":"Křest","gedcom.BARM":"Bar micva","gedcom.BASM":"Bas micva","gedcom.BIRT":"Narození","gedcom.BLES":"Požehnání","gedcom.BURI":"Pohřeb","gedcom.CENS":"Sčítání lidu","gedcom.CHR":"Křest","gedcom.CHRA":"Křest dospělých","gedcom.CONF":"Potvrzení","gedcom.CREM":"Kremace","gedcom.DEAT":"Úmrtí","gedcom.DEG":"Academic degree","gedcom.DIV":"Rozvod","gedcom.DIVF":"Potvrzení","gedcom.DSCR":"Popis","gedcom.EDUC":"Vzdělání","gedcom.ELEC":"Výběr na pozici","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigrace","gedcom.ENGA":"zasnoubení","gedcom.EVEN":"Událost","gedcom.FACT":"Údaj","gedcom.FCOM":"První přijímání","gedcom.GRAD":"Dokončení školení ","gedcom.IMMI":"Imigrace","gedcom.MARB":"Družstvo","gedcom.MARC":"Manželská smlouva ","gedcom.MARL":"Oddací list","gedcom.MARR":"Svatba","gedcom.MARS":"Předmanželská smlouva","gedcom.MDCL":"Lékařské informace","gedcom.MILT":"Vojenská služba","gedcom.NATU":"Získání občanství","gedcom.OBJE":"Další soubory","gedcom.OCCU":"Povolání","gedcom.ORDN":"Vysvěcení","gedcom.PROB":"Potvrzení závěti","gedcom.PROP":"Majetek","gedcom.RESI":"Bydliště","gedcom.RETI":"Odchod do důchodu ","gedcom.RELI":"Vyznání","gedcom.RIN":"ID","gedcom.SOUR":"Zdroje","gedcom.TITL":"Titul","gedcom.WILL":"Závěť","gedcom.WWW":"Stránka WWW","gedcom._UPD":"Poslední aktualizace","gedcom.birth":"Rodné jméno","gedcom.married":"Jméno po svatbě","gedcom.maiden":"Jméno za svobodna","gedcom.immigrant":"Jméno získané imigrací","gedcom.aka":"Také znám(a) jako","date.abt":"kolem","date.cal":"vypočteno","date.est":"asi","date.between":"mezi {from} a {to}","date.after":"po {from}","date.before":"před {to}","age.exact":"{qualifier}{age, plural, =0 {Méně než rok} one {1 rok} few {# roky} other {# let}}","age.less":"Méne než {age, plural, =0 {1 rok} one {1 rok} few {# roky} other {# let}}","age.more":"Více než {age, plural, =0 {0 let} one {1 rok} few {# roky} other {# let}}","age.between":"Mezi {ageFrom} a {ageTo, plural, =0 {0 lety} one {1 rokem} few {# roky} other {# lety}}","error.error":"Chyba","error.failed_pdf":"Soubor PDF nelze vytvořit. Zkuste to znovu s menším diagramem nebo stáhněte soubor SVG.","error.failed_png":"Soubor PNG nelze vytvořit. Zkuste to znovu s menším diagramem nebo stáhněte soubor SVG.","error.failed_to_load_file":"Chyba při načítání souboru","error.failed_wikitree_load_more":"Chyba při načítání dat z WikiTree. {chyba}","error.GEDCOM_READ_FAILED":"Chyba při načítání souboru GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Chyba při načítání dat. Znovu otevřete soubor.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree ID nebylo získáno","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} není k dispozici","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} neexistuje","error.failed_to_load_image":"Nepodařilo se načíst obrázek","wikitree.private":"Soukromé","tab.info":"Informace","tab.settings":"Nastavení","config.colors":"Barvy","config.colors.NO_COLOR":"žádné","config.colors.COLOR_BY_GENERATION":"podle generace","config.colors.COLOR_BY_SEX":"podle pohlaví","config.ids":"Identifikátory","config.ids.HIDE":"skrýt","config.ids.SHOW":"zobrazit","config.sex":"Pohlaví","config.sex.HIDE":"skrýt","config.sex.SHOW":"zobrazit","config.places":"Místa","config.places.FULL":"plný","config.places.SHORT":"zkrácený","config.places.HIDE":"skrýt","head.source":"Zdroj dat","name.unknown_name":"N.N.","extras.images":"Obrázky","extras.notes":"Poznámky","extras.sources":"Zdroje","extras.files":"Další soubory","family.immediate_family":"Nejbližší rodina","family.parents":"Rodiče","family.father":"Otec","family.mother":"Matka","family.husband":"Manžel","family.wife":"Manželka","family.unknown_spouse":"Neznámý manžel/ka","family.children":"Děti","family.child":"Dítě","media.not_uploaded":"Soubor nebyl nahrán","menu.load_from_google_drive":"Načíst z Google Disku","menu.google_sign_out":"Odpojit Google Disk","google_auth.title":"Je vyžadován přístup k Disku Google","google_auth.instructions":"Chcete-li tento soubor zobrazit, musíte se ověřit a vybrat soubor z Disku Google, abyste udělili oprávnění.","google_auth.picker_instructions_header":"Vyžadována oprávnění","google_auth.picker_instructions":"Aplikace nemá oprávnění ke čtení tohoto souboru. Vyberte jej prosím v rozevíracím seznamu prohlížeče souborů pro udělení přístupu. Pokud se jedná o sdílený soubor, který se nezobrazuje, zkuste nejprve přidat zástupce na svůj Disk.","google_auth.cancel":"Zrušit","google_auth.grant_button":"Udělit přístup a vybrat soubor","google_auth.switch_account_button":"Přepnout účet","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Integrace s Diskem Google není nakonfigurována."},Cde={"menu.open":"Öffnen","menu.open_file":"Datei öffnen","menu.load_from_url":"URL öffnen","menu.select_wikitree_id":"WikiTree ID auswählen","menu.print":"Drucken","menu.download":"Download","menu.pdf_file":"PDF-Datei","menu.png_file":"PNG-Datei","menu.svg_file":"SVG-Datei","menu.download_pdf":"PDF herunterladen","menu.download_png":"PNG herunterladen","menu.download_svg":"SVG herunterladen","menu.view":"Ansicht","menu.hourglass":"Sanduhrkarte","menu.relatives":"Alle Verwandten","menu.donatso":"Donatso-Stammbaum","menu.fancy":"Zierbaum (experimentell)","menu.wikitree_login":"Bei WikiTree anmelden","menu.wikitree_logged_in":"Eingeloggt","menu.wikitree_popup_username":"Bei WikiTree als {username} angemeldet","menu.wikitree_popup":"Bei WikiTree angemeldet","menu.github":"Projekt auf der GitHub-Website","menu.search.placeholder":"Person suchen","menu.search.no_results":"Keine Ergebnisse","intro.title":"Topola Genealogie","intro.description":"Mit der Topola Genealogie können Sie den Stammbaum auf interaktive Weise durchsuchen.","intro.instructions":"Klicken Sie auf Datei öffnen oder URL öffnen, um eine GEDCOM-Datei zu laden. Die meisten Genealogie-Programme verfügen über eine GEDCOM-Exportfunktion.","intro.examples":"Nachfolgend einige Beispiele aus dem Internet:","intro.from":"Quelle:","intro.whats_new":"Was ist neu","intro.full_changelog":"Siehe komplette Änderungshistorie","whats_new.title":"Was ist in dieser Version neu!","intro.privacy":"Datenschutz","intro.privacy_note":'Bei Verwendung der Funktion "Datei öffnen" werden Ihre Daten nirgendwo gesendet und verbleiben auf Ihrem Computer. Bei Verwendung der Funktion "URL öffnen" werden Daten von der angegebenen Adresse vom Dienst {link} an gesendet Ermöglichen des Ladens von Daten aus einer anderen Domäne (CORS).',"load_from_url.title":"Von URL öffnen","load_from_url.comment":"Die Daten der angegebenen URL werden über den {link} -Dienst geladen, um CORS-Probleme zu vermeiden.","load_from_url.cancel":"Abbrechen","load_from_url.load":"Öffnen","select_wikitree_id.title":"WikiTree ID eingeben","select_wikitree_id.comment":"Geben Sie die Profil-ID {wikiTreeLink} ein. Beispiele: {example1}, {example2}","select_wikitree_id.cancel":"Abbrechen","select_wikitree_id.load":"Öffnen","gedcom.ADOP":"Adoption","gedcom.BAPM":"Taufe","gedcom.BARM":"Bar-Mitzwah","gedcom.BASM":"Bas-Mitzwah","gedcom.BIRT":"Geburt","gedcom.BLES":"Segnung","gedcom.BURI":"Beerdigung","gedcom.CENS":"Volkszählung","gedcom.CHR":"Taufe","gedcom.CHRA":"Erwachsenentaufe","gedcom.CONF":"Konfirmation/Firmung","gedcom.CREM":"Feuerbestattung","gedcom.DEAT":"Tod","gedcom.DEG":"Akademischer Grad","gedcom.DIV":"Scheidung","gedcom.DIVF":"Scheidung eingereicht","gedcom.DSCR":"Beschreibung","gedcom.EDUC":"Ausbildung","gedcom.ELEC":"Auswahl für die Position","gedcom.EMAIL":"E-Mail","gedcom.EMIG":"Auswanderung","gedcom.ENGA":"Verlobung","gedcom.EVEN":"Ereignis","gedcom.FACT":"Merkmal","gedcom.FCOM":"Erstkommunion","gedcom.GRAD":"Ausbildungsabschluss","gedcom.IMMI":"Einwanderung","gedcom.MARB":"Aufgebot","gedcom.MARC":"Ehevertrag","gedcom.MARL":"Eheerlaubnis","gedcom.MARR":"Heirat","gedcom.MARS":"Ehevereinbarung","gedcom.MDCL":"Medizinische Informationen","gedcom.MILT":"Mititärdienst","gedcom.NATU":"Einbürgerung","gedcom.OBJE":"Zusätzliche Dateien","gedcom.OCCU":"Beruf","gedcom.ORDN":"Ordinierung","gedcom.PROB":"Testamentsbestätigung","gedcom.PROP":"Besitz","gedcom.RESI":"Wohnort","gedcom.RETI":"Ruhestand","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Quellen","gedcom.TITL":"Titel","gedcom.WILL":"Testament","gedcom.WWW":"Website","gedcom._UPD":"Zuletzt aktualisiert","gedcom.birth":"Geburtsname","gedcom.married":"Ehenamen","gedcom.maiden":"Mädchenname","gedcom.immigrant":"Immigrant name","gedcom.aka":"Auch bekannt als","date.abt":"Über","date.cal":"berechnet","date.est":"geschätzt","date.between":"zwischen {from} und {to}","date.after":"nach {from}","date.before":"vor {to}","age.exact":"{qualifier}{age, plural, =0 {Weniger als 1 Jahr} one {1 Jahr} other {# Jahre}}","age.less":"Weniger als {age, plural, =0 {1 Jahr} one {1 Jahr} other {# Jahre}}","age.more":"Mehr als {age, plural, =0 {0 Jahre} one {1 Jahr} other {# Jahre}}","age.between":"Zwischen {ageFrom} und {ageTo, plural, =0 {0 Jahre} one {1 Jahr} other {# Jahre}}","error.error":"Fehler","error.failed_pdf":"PDF konnte nicht erstellt werden. Versuchen Sie es erneut mit einem kleineren Diagramm oder laden Sie die SVG-Datei herunter.","error.failed_png":"Fehler beim Erstellen der PNG-Datei. Versuchen Sie es erneut mit einem kleineren Diagramm oder laden Sie die SVG-Datei herunter.","error.failed_to_load_file":"Fehler beim Laden der Datei","error.failed_wikitree_load_more":"Fehler beim Abrufen der Daten aus WikiTree. {error}","error.GEDCOM_READ_FAILED":"Fehler beim Lesen der GEDCOM-Datei","error.ERROR_LOADING_UPLOADED_FILE":"Fehler beim Laden der Daten. Bitte laden Sie Ihre Datei erneut hoch.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree-ID muss angegeben werden","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Das WikiTree-Profil {id} ist nicht zugänglich. Versuchen Sie sich anzumelden.","error.WIKITREE_PROFILE_NOT_FOUND":"WikiTree-Profil {id} nicht gefunden","error.failed_to_load_image":"Bilddatei konnte nicht geladen werden","wikitree.private":"Privat","tab.info":"Informationen","tab.settings":"Einstellungen","config.colors":"Farben","config.colors.NO_COLOR":"keine","config.colors.COLOR_BY_GENERATION":"je Generation","config.colors.COLOR_BY_SEX":"nach Geschlecht","config.ids":"Identifikation","config.ids.HIDE":"verbergen","config.ids.SHOW":"anzeigen","config.sex":"Geschlecht","config.sex.HIDE":"verbergen","config.sex.SHOW":"anzeigen","config.places":"Orte","config.places.FULL":"vollständig","config.places.SHORT":"gekürzt","config.places.HIDE":"verbergen","head.source":"Datenquelle","name.unknown_name":"N.N.","extras.images":"Bilder","extras.notes":"Notizen","extras.sources":"Quellen","extras.files":"Weitere Dateien","family.immediate_family":"Engere Familie","family.parents":"Eltern","family.father":"Vater","family.mother":"Mutter","family.husband":"Ehemann","family.wife":"Ehefrau","family.unknown_spouse":"Unbekannter Ehepartner","family.children":"Kinder","family.child":"Kind","media.not_uploaded":"Datei nicht hochgeladen","menu.load_from_google_drive":"Von Google Drive laden","menu.google_sign_out":"Google Drive trennen","google_auth.title":"Google Drive-Zugriff erforderlich","google_auth.instructions":"Um diese Datei anzuzeigen, müssen Sie sich authentifizieren und die Datei aus Ihrem Google Drive auswählen, um Berechtigungen zu erteilen.","google_auth.picker_instructions_header":"Berechtigungen erforderlich","google_auth.picker_instructions":"Die Anwendung hat keine Berechtigung, diese Datei zu lesen. Bitte wählen Sie sie im Dateibrowser-Popup aus, um Zugriff zu gewähren. Wenn es sich um eine freigegebene Datei handelt, die nicht angezeigt wird, versuchen Sie zuerst, eine Verknüpfung zu Ihrem Drive hinzuzufügen.","google_auth.cancel":"Abbrechen","google_auth.grant_button":"Zugriff gewähren & Datei auswählen","google_auth.switch_account_button":"Konto wechseln","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Die Google Drive-Integration ist nicht konfiguriert."},kde={"menu.open":"Ouvrir","menu.open_file":"Ouvrir le fichier","menu.load_from_url":"Ouvrir l'URL","menu.select_wikitree_id":"Sélectionnez l'ID WikiTree","menu.print":"Imprimer","menu.download":"Télécharger","menu.pdf_file":"Fichier PDF","menu.png_file":"Fichier PNG","menu.svg_file":"Fichier SVG","menu.download_pdf":"Télécharger le PDF","menu.download_png":"Télécharger PNG","menu.download_svg":"Télécharger SVG","menu.view":"Afficher","menu.hourglass":"Graphique en sablier","menu.relatives":"Tous les parents","menu.donatso":"Donatso tableau généalogique","menu.fancy":"Arbre ornemental (expérimental)","menu.wikitree_login":"Connectez-vous à WikiTree","menu.wikitree_logged_in":"Connecté","menu.wikitree_popup_username":"Connecté à WikiTree en tant que {username}","menu.wikitree_popup":"Connecté à WikiTree","menu.github":"Projet sur le site Web GitHub","menu.search.placeholder":"Rechercher une personne","menu.search.no_results":"Aucun résultat","intro.title":"Topola Généalogie","intro.description":"La Topola Généalogie vous permet de parcourir l'arbre généalogique de manière interactive.","intro.instructions":"Cliquez sur OPEN FILE ou OPEN URL pour charger un fichier GEDCOM. La plupart des logiciels de généalogie ont une fonction d'exportation GEDCOM.","intro.examples":"Voici quelques exemples trouvés sur Internet:","intro.from":"source:","intro.whats_new":"Quoi de neuf","intro.full_changelog":"Voir toutes les modifications","whats_new.title":"Quoi de neuf dans cette version?","intro.privacy":"Confidentialité","intro.privacy_note":`Lorsque vous utilisez la fonction "Ouvrir un fichier", vos données ne sont envoyées nulle part et restent sur votre ordinateur. Lorsque vous utilisez la fonction "Ouvrir l'URL", les données de l'adresse indiquée sont envoyées par le service {link} pour permettre le chargement des données depuis un autre domaine (CORS).`,"load_from_url.title":"Ouvrir depuis l'URL","load_from_url.comment":"Les données de l'URL donnée seront chargées via le service {link} pour éviter les problèmes CORS.","load_from_url.cancel":"Annuler","load_from_url.load":"Ouvrir","select_wikitree_id.title":"Entrez l'ID de WikiTree","select_wikitree_id.comment":"Entrez l'ID de profil {wikiTreeLink}. Exemples: {example1}, {example2}","select_wikitree_id.cancel":"Annuler","select_wikitree_id.load":"Ouvrir","gedcom.ADOP":"Adoption","gedcom.BAPM":"Baptême","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Naissance","gedcom.BLES":"Bénédiction","gedcom.BURI":"Funérailles","gedcom.CENS":"Recensement","gedcom.CHR":"Baptême","gedcom.CHRA":"Baptême des adultes","gedcom.CONF":"Confirmation","gedcom.CREM":"Crémation","gedcom.DEAT":"Mort","gedcom.DEG":"Diplôme universitaire","gedcom.DIV":"Divorce","gedcom.DIVF":"Divorce déposé","gedcom.DSCR":"Description","gedcom.EDUC":"Études","gedcom.ELEC":"Nomination au poste","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Émigration","gedcom.ENGA":"Fiançailles","gedcom.EVEN":"EVEN","gedcom.FACT":"FACT","gedcom.FCOM":"Première communion","gedcom.GRAD":"Achèvement de la formation","gedcom.IMMI":"Immigration","gedcom.MARB":"Équipe","gedcom.MARC":"Contrat de mariage ","gedcom.MARL":"Licence de mariage","gedcom.MARR":"Mariage","gedcom.MARS":"Contrat prénuptial","gedcom.MDCL":"Informations médicales","gedcom.MILT":"Service militaire","gedcom.NATU":"Naturalisation","gedcom.OBJE":"Fichiers supplémentaires","gedcom.OCCU":"Profession","gedcom.ORDN":"Ordination","gedcom.PROB":"Confirmation de volonté","gedcom.PROP":"Possession","gedcom.RESI":"Lieu de résidence","gedcom.RETI":"Retraite","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Sources","gedcom.TITL":"Titre","gedcom.WILL":"Testament","gedcom.WWW":"Site Web","gedcom._UPD":"Dernière mise à jour","gedcom.birth":"Nom de naissance","gedcom.married":"Nom marital","gedcom.maiden":"Nom de jeune fille","gedcom.immigrant":"Nom d'immigrant","gedcom.aka":"Alias","date.abt":"environ","date.cal":"calculé","date.est":"estimé","date.between":"entre {from} et {to}","date.after":"après {from}","date.before":"avant {to}","age.exact":"{qualifier}{age, plural, =0 {Moins d'1 an} one {1 an} other {# ans}}","age.less":"Moins de {age, plural, =0 {1 an} one {1 an} other {# ans}}","age.more":"Plus de {age, plural, =0 {0 an} one {1 an} other {# ans}}","age.between":"Entre {ageFrom} et {ageTo, plural, =0 {0 an} one {1 an} other {# ans}}","error.error":"Erreur","error.failed_pdf":"Échec de la création du PDF. Réessayez avec un diagramme plus petit ou téléchargez le fichier SVG.","error.failed_png":"Impossible de créer le fichier PNG. Réessayez avec un diagramme plus petit ou téléchargez le fichier SVG.","error.failed_to_load_file":"Erreur lors du chargement du fichier","error.failed_wikitree_load_more":"Erreur lors de l'obtention des données de WikiTree. {error}","error.GEDCOM_READ_FAILED":"Erreur de lecture du fichier GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Erreur de chargement des données. Renvoyez votre fichier.","error.WIKITREE_ID_NOT_PROVIDED":"L'ID WikiTree est obligatoire","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Le profil WikiTree ${id} n'est pas accessible. Connectez-vous.","error.WIKITREE_PROFILE_NOT_FOUND":"Le profil WikiTree ${id} n'a pas été trouvé","error.failed_to_load_image":"Erreur de chargement de l'image","wikitree.private":"Privé","tab.info":"Informations","tab.settings":"Paramètres","config.colors":"Couleurs","config.colors.NO_COLOR":"aucune","config.colors.COLOR_BY_GENERATION":"par génération","config.colors.COLOR_BY_SEX":"par sexe","config.ids":"Identification","config.ids.HIDE":"cacher","config.ids.SHOW":"afficher","config.sex":"Sexe","config.sex.HIDE":"cacher","config.sex.SHOW":"afficher","config.places":"Lieux","config.places.FULL":"complet","config.places.SHORT":"abrégé","config.places.HIDE":"cacher","head.source":"Source de données","name.unknown_name":"?","extras.images":"Images","extras.notes":"Notes","extras.sources":"Sources","extras.files":"Fichiers supplémentaires","family.immediate_family":"Famille proche","family.parents":"Parents","family.father":"Père","family.mother":"Mère","family.husband":"Mari","family.wife":"Femme","family.unknown_spouse":"Conjoint inconnu","family.children":"Enfants","family.child":"Enfant","media.not_uploaded":"Fichier non téléversé","menu.load_from_google_drive":"Charger depuis Google Drive","menu.google_sign_out":"Déconnecter Google Drive","google_auth.title":"Accès à Google Drive requis","google_auth.instructions":"Pour afficher ce fichier, vous devez vous authentifier et sélectionner le fichier depuis votre Google Drive pour accorder les autorisations.","google_auth.picker_instructions_header":"Autorisations requises","google_auth.picker_instructions":"L'application n'a pas l'autorisation de lire ce fichier. Veuillez le sélectionner dans la fenêtre contextuelle du navigateur de fichiers pour accorder l'accès. S'il s'agit d'un fichier partagé qui ne s'affiche pas, essayez d'abord d'ajouter un raccourci vers votre Drive.","google_auth.cancel":"Annuler","google_auth.grant_button":"Accorder l'accès et sélectionner le fichier","google_auth.switch_account_button":"Changer de compte","error.GOOGLE_DRIVE_NOT_CONFIGURED":"L'intégration de Google Drive n'est pas configurée."},Ade={"menu.open":"Apri","menu.open_file":"Apri file","menu.load_from_url":"Apri URL","menu.select_wikitree_id":"Seleziona ID WikiTree","menu.print":"Stampa","menu.download":"Scarica","menu.pdf_file":"File PDF","menu.png_file":"File PNG","menu.svg_file":"File SVG","menu.download_pdf":"Scarica PDF","menu.download_png":"Scarica PNG","menu.download_svg":"Scarica SVG","menu.view":"Visualizza","menu.hourglass":"Grafico a clessidra","menu.relatives":"Tutti i parenti","menu.donatso":"Donatso albero genealogico","menu.fancy":"Albero ornamentale (sperimentale)","menu.wikitree_login":"Accedi a WikiTree","menu.wikitree_logged_in":"Accesso effettuato","menu.wikitree_popup_username":"Accesso a WikiTree come {username}","menu.wikitree_popup":"Accesso a WikiTree","menu.github":"Progetto sul sito web GitHub","menu.search.placeholder":"Cerca persona","menu.search.no_results":"Nessun risultato","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy ti consente di esplorare l'albero genealogico in modo interattivo.","intro.instructions":"Fai clic su OPEN FILE o OPEN URL per caricare un file GEDCOM. La maggior parte dei software di genealogia ha una funzione di esportazione GEDCOM.","intro.examples":"Di seguito sono riportati alcuni esempi trovati su Internet:","intro.from":"fonte:","intro.whats_new":"Novità","intro.full_changelog":"Vedi il log delle modifiche completo","whats_new.title":"Cosa c'è di nuovo in questa versione?","intro.privacy":"Protezione dei dati","intro.privacy_note":`Quando si utilizza la funzione "Apri file", i dati non vengono inviati da nessuna parte e rimangono sul computer. Quando si utilizza la funzione "Apri URL", i dati dall'indirizzo specificato vengono inviati dal servizio {link} a consentire il caricamento dei dati da un altro dominio (CORS).`,"load_from_url.title":"Apri da URL","load_from_url.comment":"I dati dall'URL specificato verranno caricati tramite il servizio {link} per evitare problemi CORS.","load_from_url.cancel":"Annulla","load_from_url.load":"Apri","select_wikitree_id.title":"Inserisci ID WikiTree","select_wikitree_id.comment":"Inserisci l'ID profilo {wikiTreeLink}. Esempi: {example1}, {example2}","select_wikitree_id.cancel":"Annulla","select_wikitree_id.load":"Apri","gedcom.ADOP":"Adozione","gedcom.BAPM":"Battesimo","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Nascita","gedcom.BLES":"Benedizione","gedcom.BURI":"Sepoltura","gedcom.CENS":"Censimento","gedcom.CHR":"Battesimo","gedcom.CHRA":"Battesimo degli adulti","gedcom.CONF":"Cresima","gedcom.CREM":"Cremazione","gedcom.DEAT":"Morte","gedcom.DEG":"Titolo accademico","gedcom.DIV":"Divorzio","gedcom.DIVF":"Richiesta di divorzio","gedcom.DSCR":"Descrizione fisica","gedcom.EDUC":"Istruzione","gedcom.ELEC":"Elezione a carica","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigrazione","gedcom.ENGA":"Fidanzamento","gedcom.EVEN":"Evento","gedcom.FACT":"Fatto","gedcom.FCOM":"Prima Comunione","gedcom.GRAD":"Conseguimento del titolo di studio","gedcom.IMMI":"Immigrazione","gedcom.MARB":"Pubblicazioni matrimoniali","gedcom.MARC":"Accordo matrimoniale","gedcom.MARL":"Licenza di matrimonio","gedcom.MARR":"Matrimonio","gedcom.MARS":"Accordo prematrimoniale","gedcom.MDCL":"Informazioni mediche","gedcom.MILT":"Servizio militare","gedcom.NATU":"Naturalizzazione","gedcom.OBJE":"Media allegati","gedcom.OCCU":"Professione","gedcom.ORDN":"Ordinazione religiosa","gedcom.PROB":"Omologazione del testamento","gedcom.PROP":"Proprietà","gedcom.RESI":"Residenza","gedcom.RETI":"Pensionamento","gedcom.RELI":"Religione","gedcom.RIN":"ID","gedcom.SOUR":"Fonti","gedcom.TITL":"Titolo nobiliare/professionale","gedcom.WILL":"Testamento","gedcom.WWW":"Sito web","gedcom._UPD":"Ultimo aggiornamento","gedcom.birth":"Nome alla nascita","gedcom.married":"Nome dopo il matrimonio","gedcom.maiden":"Cognome da nubile","gedcom.immigrant":"Nome all'immigrazione","gedcom.aka":"Detto anche","date.abt":"circa","date.cal":"calcolato","date.est":"stimato","date.between":"tra il {from} e il {to}","date.after":"dopo il {from}","date.before":"prima del {to}","age.exact":"{qualifier}{age, plural, =0 {Meno di 1 anno} one {1 anno} other {# anni}}","age.less":"Meno di {age, plural, =0 {1 anno} one {1 anno} other {# anni}}","age.more":"Più di {age, plural, =0 {0 anni} one {1 anno} other {# anni}}","age.between":"Tra {ageFrom} e {ageTo, plural, =0 {0 anni} one {1 anno} other {# anni}}","error.error":"Errore","error.failed_pdf":"Impossibile creare PDF. Riprova con un diagramma più piccolo o scarica il file SVG.","error.failed_png":"Impossibile creare il file PNG. Riprova con un diagramma più piccolo o scarica il file SVG.","error.failed_to_load_file":"Errore durante il caricamento del file","error.failed_wikitree_load_more":"Errore durante il recupero dei dati da WikiTree. {error}","error.GEDCOM_READ_FAILED":"Impossibile leggere il file GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Errore durante il caricamento dei dati. Carica nuovamente il file.","error.WIKITREE_ID_NOT_PROVIDED":"È necessario fornire l'ID WikiTree.","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Il profilo WikiTree {id} non è accessibile. Prova ad effettuare il login.","error.WIKITREE_PROFILE_NOT_FOUND":"Profilo WikiTree {id} non trovato","error.failed_to_load_image":"Impossibile caricare il file immagine","wikitree.private":"Privato","tab.info":"Informazioni","tab.settings":"Impostazioni","config.colors":"Colori","config.colors.NO_COLOR":"nessuno","config.colors.COLOR_BY_GENERATION":"per generazione","config.colors.COLOR_BY_SEX":"per sesso","config.ids":"Identificazione","config.ids.HIDE":"nascondere","config.ids.SHOW":"visualizzare","config.sex":"Sesso","config.sex.HIDE":"nascondere","config.sex.SHOW":"visualizzare","config.places":"Luoghi","config.places.FULL":"completo","config.places.SHORT":"abbreviato","config.places.HIDE":"nascondere","head.source":"Origine dati","name.unknown_name":"N.N.","extras.images":"Immagini","extras.notes":"Appunti","extras.sources":"Fonti","extras.files":"File aggiuntivi","family.immediate_family":"Famiglia stretta","family.parents":"Genitori","family.father":"Padre","family.mother":"Madre","family.husband":"Marito","family.wife":"Moglie","family.unknown_spouse":"Coniuge sconosciuto","family.children":"Figli","family.child":"Figlio/a","media.not_uploaded":"File non caricato","menu.load_from_google_drive":"Carica da Google Drive","menu.google_sign_out":"Disconnetti Google Drive","google_auth.title":"Accesso a Google Drive richiesto","google_auth.instructions":"Per visualizzare questo file, devi autenticarti e selezionare il file dal tuo Google Drive per concedere le autorisations.","google_auth.picker_instructions_header":"Autorizzazioni richieste","google_auth.picker_instructions":"L'applicazione non ha l'autorizzazione di leggere questo file. Selezionalo nel popup del browser dei file per concedere l'accesso. Se si tratta di un file condiviso che non viene visualizzato, prova prima ad aggiungere una scorciatoia al tuo Drive.","google_auth.cancel":"Annulla","google_auth.grant_button":"Concedi l'accesso e seleziona il file","google_auth.switch_account_button":"Cambia account","error.GOOGLE_DRIVE_NOT_CONFIGURED":"L'integrazione con Google Drive non è configurata."},Tde={"menu.open":"Otwórz","menu.open_file":"Otwórz plik","menu.load_from_url":"Otwórz URL","menu.select_wikitree_id":"Wybierz WikiTree ID","menu.print":"Drukuj","menu.download":"Pobierz","menu.pdf_file":"Plik PDF","menu.png_file":"Plik PNG","menu.svg_file":"Plik SVG","menu.download_pdf":"Pobierz PDF","menu.download_png":"Pobierz PNG","menu.download_svg":"Pobierz SVG","menu.view":"Widok","menu.hourglass":"Wykres klepsydrowy","menu.relatives":"Wszyscy krewni","menu.donatso":"Donatso wykres rodzinny","menu.fancy":"Ozdobne drzewo (eksperymentalne)","menu.wikitree_login":"Zaloguj do WikiTree","menu.wikitree_logged_in":"Zalogowano","menu.wikitree_popup_username":"Zalogowano do WikiTree jako {username}","menu.wikitree_popup":"Zalogowano do WikiTree","menu.github":"Projekt na stronie GitHub","menu.search.placeholder":"Szukaj osoby","menu.search.no_results":"Brak wyników","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy pozwala przeglądać drzewo genealogiczne w interaktywny sposób.","intro.instructions":"Kliknij OTWÓRZ PLIK lub OTWÓRZ URL, aby załadować plik GEDCOM. Większość programów genealogicznych posiada funkcję eksportu do pliku GEDCOM.","intro.examples":"Przykłady","intro.from":"źródło:","intro.whats_new":"Co nowego?","intro.full_changelog":"Zobacz pełną listę zmian","whats_new.title":"Co nowego w tej wersji?","intro.privacy":"Prywatność","intro.privacy_note":'Używając funkcji "Otwórz plik", Twoje dane nie są nigdzie wysyłane i pozostają na Twoim komputerze. Używając funkcji "Otwórz URL", dane z podanego adresu przesyłane są przez usługę {link} w celu umożliwienia załadowania danych z innej domeny (CORS).',"load_from_url.title":"Otwórz z adresu URL","load_from_url.comment":"Dane z podanego adresu URL zostaną załadowane poprzez usługę {link} w celu uniknięcia problemów z CORS.","load_from_url.cancel":"Anuluj","load_from_url.load":"Otwórz","select_wikitree_id.title":"Podaj WikiTree ID","select_wikitree_id.comment":"Wpisz identyfikator profilu {wikiTreeLink}. Przykłady: {example1}, {example2}","select_wikitree_id.cancel":"Anuluj","select_wikitree_id.load":"Otwórz","gedcom.ADOP":"Adopcja","gedcom.BAPM":"Chrzest","gedcom.BARM":"Bar Micwa","gedcom.BASM":"Bat Micwa","gedcom.BIRT":"Narodziny","gedcom.BLES":"Błogosławieństwo","gedcom.BURI":"Pogrzeb","gedcom.CENS":"Spis ludności","gedcom.CHR":"Chrzest","gedcom.CHRA":"Chrzest dorosłych","gedcom.CONF":"Bierzmowanie","gedcom.CREM":"Kremacja","gedcom.DEAT":"Śmierć","gedcom.DEG":"Stopień naukowy","gedcom.DIV":"Rozwód","gedcom.DIVF":"Wniesienie pozwu o rozwód","gedcom.DSCR":"Opis","gedcom.EDUC":"Wykształcenie","gedcom.ELEC":"Wybór na stanowisko","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigracja","gedcom.ENGA":"Zaręczyny","gedcom.EVEN":"Wydarzenie","gedcom.FACT":"Fakt","gedcom.FCOM":"Pierwsza komunia","gedcom.GRAD":"Ukończenie szkoły","gedcom.IMMI":"Imigracja","gedcom.MARB":"Zapowiedzi małżeńskie","gedcom.MARC":"Kontrakt małżeński","gedcom.MARL":"Licencja małżeńska","gedcom.MARR":"Małżeństwo","gedcom.MARS":"Ugoda małżeńska","gedcom.MDCL":"Informacje medyczne","gedcom.MILT":"Służba wojskowa","gedcom.NATU":"Nadanie obywatelstwa","gedcom.OBJE":"Dodatkowe pliki","gedcom.OCCU":"Zawód","gedcom.ORDN":"Święcenia","gedcom.PROB":"Postępowanie spadkowe","gedcom.PROP":"Nieruchomość","gedcom.RESI":"Miejsce zamieszkania","gedcom.RETI":"Emerytura","gedcom.RELI":"Religia","gedcom.RIN":"ID","gedcom.SOUR":"Źródła","gedcom.TITL":"Tytuł","gedcom.WILL":"Testament","gedcom.WWW":"Strona WWW","gedcom._UPD":"Ostatnia aktualizacja","gedcom.birth":"Nazwisko rodowe","gedcom.married":"Nazwisko po małżeństwie","gedcom.maiden":"Nazwisko panieńskie","gedcom.immigrant":"Nazwisko po imigracji","gedcom.aka":"Alias","date.abt":"około","date.cal":"wyliczone","date.est":"oszacowane","date.between":"między {from} a {to}","date.after":"po {from}","date.before":"przed {to}","age.exact":"{age, plural, =0 {Mniej niż 1 rok} one {{qualifier} 1 rok} many {{qualifier} # lat} other {{qualifier} # lata}}","age.less":"Mniej niż {age, plural, =0 {1 rok} one {1 rok} many {# lat} other {# lata}}","age.more":"Więcej niż {age, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","age.between":"Między {ageFrom} a {ageTo, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","error.error":"Błąd","error.failed_pdf":"Nie udało się utworzyć pliku PDF. Spróbuj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_png":"Nie udało się utworzyć pliku PNG. Spróbuj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_to_load_file":"Błąd wczytywania pliku","error.failed_wikitree_load_more":"Błąd podczas pobierania danych z WikiTree. {error}","error.GEDCOM_READ_FAILED":"Błąd wczytywania pliku GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Błąd wczytywania danych. Otwórz ponownie plik.","error.WIKITREE_ID_NOT_PROVIDED":"Identyfikator WikiTree nie został podany","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} nie jest dostępny","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} nie istnieje","error.failed_to_load_image":"Błąd podczas pobierania pliku ze zdjęciem","wikitree.private":"Prywatne","tab.info":"Informacje","tab.settings":"Ustawienia","config.colors":"Kolory","config.colors.NO_COLOR":"brak","config.colors.COLOR_BY_GENERATION":"według pokolenia","config.colors.COLOR_BY_SEX":"według płci","config.ids":"Identyfikator","config.ids.HIDE":"ukryj","config.ids.SHOW":"pokaż","config.sex":"Płeć","config.sex.HIDE":"ukryj","config.sex.SHOW":"pokaż","config.places":"Miejsca","config.places.FULL":"pełne","config.places.SHORT":"skrócone","config.places.HIDE":"ukryj","head.source":"Źródło danych","name.unknown_name":"N.N.","extras.images":"Zdjęcia","extras.notes":"Notatki","extras.sources":"Źródła","extras.files":"Dodatkowe pliki","family.immediate_family":"Najbliższa rodzina","family.parents":"Rodzice","family.father":"Ojciec","family.mother":"Matka","family.husband":"Mąż","family.wife":"Żona","family.unknown_spouse":"Nieznany współmałżonek","family.children":"Dzieci","family.child":"Dziecko","media.not_uploaded":"Plik nieprzesłany","menu.load_from_google_drive":"Otwórz z Dysku Google","menu.google_sign_out":"Rozłącz Dysk Google","google_auth.title":"Wymagany dostęp do Dysku Google","google_auth.instructions":"Aby wyświetlić ten plik, musisz się zalogować i wybrać plik z Dysku Google, aby przyznać uprawnienia.","google_auth.picker_instructions_header":"Wymagane uprawnienia","google_auth.picker_instructions":"Aplikacja nie ma uprawnień do odczytu tego pliku. Wybierz go w oknie wyszukiwania plików, aby przyznać dostęp. Jeśli to jest plik udostępniony, który się nie wyświetla, spróbuj najpierw dodać skrót do swojego Dysku.","google_auth.cancel":"Anuluj","google_auth.grant_button":"Przejdź do autoryzacji i wyboru pliku","google_auth.switch_account_button":"Przełącz konto","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Integracja z Dyskiem Google nie jest skonfigurowana."},Ide={"menu.open":"Открыть","menu.open_file":"Открыть файл","menu.load_from_url":"Открыть URL","menu.select_wikitree_id":"Выберите WikiTree ID","menu.print":"Печать","menu.download":"Скачать","menu.pdf_file":"Файл PDF","menu.png_file":"Файл PNG","menu.svg_file":"Файл SVG","menu.download_pdf":"Скачать PDF","menu.download_png":"Скачать PNG","menu.download_svg":"Скачать SVG","menu.view":"Вид","menu.hourglass":"График Песочные часы","menu.relatives":"Все родственники","menu.donatso":"Donatso семейная схема","menu.fancy":"Декоративное дерево (экспериментальное)","menu.wikitree_login":"Войти в WikiTree","menu.wikitree_logged_in":"Вход выполнен","menu.wikitree_popup_username":"Вы вошли в WikiTree как {username}","menu.wikitree_popup":"Вы вошли в WikiTree","menu.github":"Проект на сайте GitHub","menu.search.placeholder":"Искать человека","menu.search.no_results":"Нет результатов","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy позволяет просматривать семейное древо в интерактивном режиме.","intro.instructions":'Щелкните "Открыть файл" или "Открыть URL", чтобы загрузить файл GEDCOM. Большинство программ для генеалогии имеют функцию экспорта GEDCOM.',"intro.examples":"Ниже приведены некоторые примеры, найденные в Интернете:","intro.from":"источник:","intro.whats_new":"Что нового?","intro.full_changelog":"Список изменений","whats_new.title":"Что нового в этой версии?","intro.privacy":"Конфиденциальность","intro.privacy_note":'При использовании функции "Открыть файл" Ваши данные никуда не отправляются и остаются на Вашем компьютере. При использовании функции "Открыть URL" данные с указанного адреса отправляются службой {link} на включение загрузки данных из другого домена (CORS).',"load_from_url.title":"Открыть с адреса URL","load_from_url.comment":"Данные с указанного адреса URL будут загружены через службу {link}, чтобы избежать проблем CORS.","load_from_url.cancel":"Отменить","load_from_url.load":"Открыть","select_wikitree_id.title":"Введите идентификатор WikiTree","select_wikitree_id.comment":"Введите идентификатор профиля {wikiTreeLink}. Примеры: {example1}, {example2}","select_wikitree_id.cancel":"Отмена","select_wikitree_id.load":"Открыть","gedcom.ADOP":"Усыновление","gedcom.BAPM":"Крещение","gedcom.BARM":"Бар-мицва","gedcom.BASM":"Бас Мицва","gedcom.BIRT":"Рождение","gedcom.BLES":"Благословение","gedcom.BURI":"Похороны","gedcom.CENS":"Перепись населения","gedcom.CHR":"Крещение","gedcom.CHRA":"Крещение взрослых","gedcom.CONF":"Подтверждение","gedcom.CREM":"Кремация","gedcom.DEAT":"Смерть","gedcom.DEG":"Ученая степень","gedcom.DIV":"Развод","gedcom.DIVF":"Подано заявление о разводе","gedcom.DSCR":"Описание","gedcom.EDUC":"Образование","gedcom.ELEC":"Выбор на должность","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Эмиграция","gedcom.ENGA":"Помолвка","gedcom.EVEN":"Событие","gedcom.FACT":"Факт","gedcom.FCOM":"Первое Причастие","gedcom.GRAD":"Завершение обучения","gedcom.IMMI":"Иммиграция","gedcom.MARB":"Отряд","gedcom.MARC":"Брачный контракт","gedcom.MARL":"Свидетельство о браке","gedcom.MARR":"Свадьба","gedcom.MARS":"Брачный договор","gedcom.MDCL":"Медицинская информация","gedcom.MILT":"Военная служба","gedcom.NATU":"Натурализация","gedcom.OBJE":"Дополнительные файлы","gedcom.OCCU":"Вид деятельности","gedcom.ORDN":"Рукоположение","gedcom.PROB":"Подтверждение завещания","gedcom.PROP":"Владение","gedcom.RESI":"Место жительства","gedcom.RETI":"Выход на пенсию","gedcom.RELI":"Религия","gedcom.RIN":"ID","gedcom.SOUR":"Источники","gedcom.TITL":"Титул","gedcom.WILL":"Завещание","gedcom.WWW":"Веб-сайт WWW","gedcom._UPD":"Последнее обновление","gedcom.birth":"Имя при рождении","gedcom.married":"Имя в браке","gedcom.maiden":"Девичья фамилия","gedcom.immigrant":"Имя в эмиграции","gedcom.aka":"Он(а) же","date.abt":"около","date.cal":"рассчитано","date.est":"приблизительно","date.between":"между {from} и {to}","date.after":"после {from}","date.before":"до {to}","age.exact":"{age, plural, =0 {Менее 1 года} one {{qualifier} 1 год} many {{qualifier} # лет} other {{qualifier} # года}}","age.less":"Менее {age, plural, =0 {1 года} one {1 год} many {# лет} other {# года}}","age.more":"Более {age, plural, =0 {0 лет} one {1 год} many {# лет} other {# года}}","age.between":"Между {ageFrom} {ageTo, plural, =0 {0 лет} one {1 год} many {# год} other {# лет}}","error.error":"Ошибка","error.failed_pdf":"Не удалось создать PDF-файл. Повторите попытку с меньшей диаграммой или загрузите файл SVG.","error.failed_png":"Не удалось создать файл PNG. Повторите попытку с меньшей схемой или загрузите файл SVG.","error.failed_to_load_file":"Ошибка загрузки файла","error.failed_wikitree_load_more":"Ошибка при получении данных из WikiTree. {error}","error.GEDCOM_READ_FAILED":"Ошибка чтения файла GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Ошибка чтения данных. Повторите.","error.WIKITREE_ID_NOT_PROVIDED":"Не указан идентификатор WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Профиль WikiTree {id} недоступен","error.WIKITREE_PROFILE_NOT_FOUND":"Профиль WikiTree {id} не найден","error.failed_to_load_image":"Ошибка при открытии картинки","wikitree.private":"Частный","tab.info":"Информация","tab.settings":"Настройки","config.colors":"Цвет","config.colors.NO_COLOR":"Без цвета","config.colors.COLOR_BY_GENERATION":"По поколениям","config.colors.COLOR_BY_SEX":"По полу","config.ids":"Идентификатор","config.ids.HIDE":"Скрыть","config.ids.SHOW":"Показать","config.sex":"Пол","config.sex.HIDE":"Скрыть","config.sex.SHOW":"Показать","config.places":"Места","config.places.FULL":"полное","config.places.SHORT":"сокращённое","config.places.HIDE":"скрыть","head.source":"Источник данных","name.unknown_name":"Неизвестно","extras.images":"Картинки","extras.notes":"Примечание","extras.sources":"Источники","extras.files":"Дополнительные файлы","family.immediate_family":"Ближайшие родственники","family.parents":"Родители","family.father":"Отец","family.mother":"Мать","family.husband":"Муж","family.wife":"Жена","family.unknown_spouse":"Неизвестный супруг(а)","family.children":"Дети","family.child":"Ребёнок","media.not_uploaded":"Файл не загружен","menu.load_from_google_drive":"Загрузить с Google Диска","menu.google_sign_out":"Отключить Google Диск","google_auth.title":"Требуется доступ к Google Диску","google_auth.instructions":"Чтобы просмотреть этот файл, необходимо пройти авторизацию и выбрать файл на Google Диске для предоставления разрешений.","google_auth.picker_instructions_header":"Требуются разрешения","google_auth.picker_instructions":"У приложения нет разрешения на чтение этого файла. Пожалуйста, выберите его во всплывающем окне выбора файлов, чтобы предоставить доступ. Если это общий файл, который не отображается, попробуйте сначала добавить ярлык на свой Диск.","google_auth.cancel":"Отмена","google_auth.grant_button":"Предоставить доступ и выбрать файл","google_auth.switch_account_button":"Сменить аккаунт","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Интеграция с Google Диском не настроена."},Rde={bg:Ede,cs:Sde,de:Cde,fr:kde,it:Ade,pl:Tde,ru:Ide},eO=navigator.language&&navigator.language.split(/[-_]/)[0],tO=eB(),Pde=document.getElementById("root"),nO=cB.createRoot(Pde);tO&&tO.name==="ie"?nO.render(P.jsx("p",{children:"Topola Genealogy Viewer does not support Internet Explorer. Please try a different (modern) browser."})):nO.render(P.jsx(Gz,{locale:eO,messages:Rde[eO],children:P.jsxs(WX,{children:[P.jsx("style",{children:GX}),P.jsx(h$,{children:P.jsx(xde,{})})]})}));export{Sf as _,coe as a,mi as c,yn as g,B7 as t,Nde as z}; diff --git a/assets/index-Cf_PPE1y.js b/assets/index-Cf_PPE1y.js deleted file mode 100644 index 82029bf..0000000 --- a/assets/index-Cf_PPE1y.js +++ /dev/null @@ -1,876 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lf(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Dv={exports:{}},sc={},Fv={exports:{}},at={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var dC;function M4(){if(dC)return at;dC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;function p(G){return G===null||typeof G!="object"?null:(G=d&&G[d]||G["@@iterator"],typeof G=="function"?G:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,g={};function _(G,z,B){this.props=G,this.context=z,this.refs=g,this.updater=B||m}_.prototype.isReactComponent={},_.prototype.setState=function(G,z){if(typeof G!="object"&&typeof G!="function"&&G!=null)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,G,z,"setState")},_.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function E(){}E.prototype=_.prototype;function x(G,z,B){this.props=G,this.context=z,this.refs=g,this.updater=B||m}var b=x.prototype=new E;b.constructor=x,w(b,_.prototype),b.isPureReactComponent=!0;var C=Array.isArray,v=Object.prototype.hasOwnProperty,k={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function N(G,z,B){var se,de={},me=null,Ee=null;if(z!=null)for(se in z.ref!==void 0&&(Ee=z.ref),z.key!==void 0&&(me=""+z.key),z)v.call(z,se)&&!T.hasOwnProperty(se)&&(de[se]=z[se]);var Pe=arguments.length-2;if(Pe===1)de.children=B;else if(1>>16,m[1]!==61&&(c[p++]=g>>>8),m[0]!==61&&(c[p++]=g),w=0));return c};t&&(s=new t([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),r&&(!n.toBlob||!n.toBlobHD)&&(n.toBlob||(n.toBlob=function(l,u){if(u||(u="image/png"),this.mozGetAsFile){l(this.mozGetAsFile("canvas",u));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(u)){l(this.msToBlob());return}var c=Array.prototype.slice.call(arguments,1),d=this[a].apply(this,c),p=d.indexOf(","),m=d.substring(p+1),w=i.test(d.substring(0,p)),g;Blob.fake?(g=new Blob,w?g.encoding="base64":g.encoding="URI",g.data=m,g.size=m.length):t&&(w?g=new Blob([o(m)],{type:u}):g=new Blob([decodeURIComponent(m)],{type:u})),l(g)}),!n.toBlobHD&&n.toDataURLHD?n.toBlobHD=function(){a="toDataURLHD";var l=this.toBlob();return a="toDataURL",l}:n.toBlobHD=n.toBlob)}(typeof self<"u"&&self||typeof window<"u"&&window||xh.content||xh),xh}L4();var vC=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new $4:typeof navigator<"u"?Q4(navigator.userAgent):Y4()}function V4(e){return e!==""&&G4.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var a=i.exec(e);return!!a&&[n,a]},!1)}function Q4(e){var t=V4(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new U4;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length>>1,z=Y[G];if(0>>1;Gi(de,F))mei(Ee,de)?(Y[G]=Ee,Y[me]=F,G=me):(Y[G]=de,Y[se]=F,G=se);else if(mei(Ee,F))Y[G]=Ee,Y[me]=F,G=me;else break e}}return q}function i(Y,q){var F=Y.sortIndex-q.sortIndex;return F!==0?F:Y.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,p=3,m=!1,w=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(Y){for(var q=r(u);q!==null;){if(q.callback===null)n(u);else if(q.startTime<=Y)n(u),q.sortIndex=q.expirationTime,t(l,q);else break;q=r(u)}}function C(Y){if(g=!1,b(Y),!w)if(r(l)!==null)w=!0,V(v);else{var q=r(u);q!==null&&K(C,q.startTime-Y)}}function v(Y,q){w=!1,g&&(g=!1,E(N),N=-1),m=!0;var F=p;try{for(b(q),d=r(l);d!==null&&(!(d.expirationTime>q)||Y&&!D());){var G=d.callback;if(typeof G=="function"){d.callback=null,p=d.priorityLevel;var z=G(d.expirationTime<=q);q=e.unstable_now(),typeof z=="function"?d.callback=z:d===r(l)&&n(l),b(q)}else n(l);d=r(l)}if(d!==null)var B=!0;else{var se=r(u);se!==null&&K(C,se.startTime-q),B=!1}return B}finally{d=null,p=F,m=!1}}var k=!1,T=null,N=-1,M=5,j=-1;function D(){return!(e.unstable_now()-jY||125G?(Y.sortIndex=F,t(u,Y),r(l)===null&&Y===r(u)&&(g?(E(N),N=-1):g=!0,K(C,F-G))):(Y.sortIndex=z,t(l,Y),w||m||(w=!0,V(v))),Y},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(Y){var q=p;return function(){var F=p;p=q;try{return Y.apply(this,arguments)}finally{p=F}}}}(Bv)),Bv}var bC;function Z4(){return bC||(bC=1,jv.exports=J4()),jv.exports}/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var xC;function eB(){if(xC)return Gn;xC=1;var e=po(),t=Z4();function r(f){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+f,y=1;y"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,c={},d={};function p(f){return l.call(d,f)?!0:l.call(c,f)?!1:u.test(f)?d[f]=!0:(c[f]=!0,!1)}function m(f,h,y,S){if(y!==null&&y.type===0)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":return S?!1:y!==null?!y.acceptsBooleans:(f=f.toLowerCase().slice(0,5),f!=="data-"&&f!=="aria-");default:return!1}}function w(f,h,y,S){if(h===null||typeof h>"u"||m(f,h,y,S))return!0;if(S)return!1;if(y!==null)switch(y.type){case 3:return!h;case 4:return h===!1;case 5:return isNaN(h);case 6:return isNaN(h)||1>h}return!1}function g(f,h,y,S,A,P,$){this.acceptsBooleans=h===2||h===3||h===4,this.attributeName=S,this.attributeNamespace=A,this.mustUseProperty=y,this.propertyName=f,this.type=h,this.sanitizeURL=P,this.removeEmptyString=$}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(f){_[f]=new g(f,0,!1,f,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(f){var h=f[0];_[h]=new g(h,1,!1,f[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(f){_[f]=new g(f,2,!1,f.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(f){_[f]=new g(f,2,!1,f,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(f){_[f]=new g(f,3,!1,f.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(f){_[f]=new g(f,3,!0,f,null,!1,!1)}),["capture","download"].forEach(function(f){_[f]=new g(f,4,!1,f,null,!1,!1)}),["cols","rows","size","span"].forEach(function(f){_[f]=new g(f,6,!1,f,null,!1,!1)}),["rowSpan","start"].forEach(function(f){_[f]=new g(f,5,!1,f.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function x(f){return f[1].toUpperCase()}"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(f){var h=f.replace(E,x);_[h]=new g(h,1,!1,f,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(f){var h=f.replace(E,x);_[h]=new g(h,1,!1,f,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(f){var h=f.replace(E,x);_[h]=new g(h,1,!1,f,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(f){_[f]=new g(f,1,!1,f.toLowerCase(),null,!1,!1)}),_.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(f){_[f]=new g(f,1,!1,f.toLowerCase(),null,!0,!0)});function b(f,h,y,S){var A=_.hasOwnProperty(h)?_[h]:null;(A!==null?A.type!==0:S||!(2Z||A[$]!==P[Z]){var ne=` -`+A[$].replace(" at new "," at ");return f.displayName&&ne.includes("")&&(ne=ne.replace("",f.displayName)),ne}while(1<=$&&0<=Z);break}}}finally{B=!1,Error.prepareStackTrace=y}return(f=f?f.displayName||f.name:"")?z(f):""}function de(f){switch(f.tag){case 5:return z(f.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return f=se(f.type,!1),f;case 11:return f=se(f.type.render,!1),f;case 1:return f=se(f.type,!0),f;default:return""}}function me(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case T:return"Fragment";case k:return"Portal";case M:return"Profiler";case N:return"StrictMode";case X:return"Suspense";case W:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case D:return(f.displayName||"Context")+".Consumer";case j:return(f._context.displayName||"Context")+".Provider";case H:var h=f.render;return f=f.displayName,f||(f=h.displayName||h.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case U:return h=f.displayName||null,h!==null?h:me(f.type)||"Memo";case V:h=f._payload,f=f._init;try{return me(f(h))}catch{}}return null}function Ee(f){var h=f.type;switch(f.tag){case 24:return"Cache";case 9:return(h.displayName||"Context")+".Consumer";case 10:return(h._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=h.render,f=f.displayName||f.name||"",h.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return h;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(h);case 8:return h===N?"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(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h}return null}function Pe(f){switch(typeof f){case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function Ne(f){var h=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function Le(f){var h=Ne(f)?"checked":"value",y=Object.getOwnPropertyDescriptor(f.constructor.prototype,h),S=""+f[h];if(!f.hasOwnProperty(h)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var A=y.get,P=y.set;return Object.defineProperty(f,h,{configurable:!0,get:function(){return A.call(this)},set:function($){S=""+$,P.call(this,$)}}),Object.defineProperty(f,h,{enumerable:y.enumerable}),{getValue:function(){return S},setValue:function($){S=""+$},stopTracking:function(){f._valueTracker=null,delete f[h]}}}}function He(f){f._valueTracker||(f._valueTracker=Le(f))}function Oe(f){if(!f)return!1;var h=f._valueTracker;if(!h)return!0;var y=h.getValue(),S="";return f&&(S=Ne(f)?f.checked?"true":"false":f.value),f=S,f!==y?(h.setValue(f),!0):!1}function Fe(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}function We(f,h){var y=h.checked;return F({},h,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??f._wrapperState.initialChecked})}function rt(f,h){var y=h.defaultValue==null?"":h.defaultValue,S=h.checked!=null?h.checked:h.defaultChecked;y=Pe(h.value!=null?h.value:y),f._wrapperState={initialChecked:S,initialValue:y,controlled:h.type==="checkbox"||h.type==="radio"?h.checked!=null:h.value!=null}}function st(f,h){h=h.checked,h!=null&&b(f,"checked",h,!1)}function lt(f,h){st(f,h);var y=Pe(h.value),S=h.type;if(y!=null)S==="number"?(y===0&&f.value===""||f.value!=y)&&(f.value=""+y):f.value!==""+y&&(f.value=""+y);else if(S==="submit"||S==="reset"){f.removeAttribute("value");return}h.hasOwnProperty("value")?qt(f,h.type,y):h.hasOwnProperty("defaultValue")&&qt(f,h.type,Pe(h.defaultValue)),h.checked==null&&h.defaultChecked!=null&&(f.defaultChecked=!!h.defaultChecked)}function At(f,h,y){if(h.hasOwnProperty("value")||h.hasOwnProperty("defaultValue")){var S=h.type;if(!(S!=="submit"&&S!=="reset"||h.value!==void 0&&h.value!==null))return;h=""+f._wrapperState.initialValue,y||h===f.value||(f.value=h),f.defaultValue=h}y=f.name,y!==""&&(f.name=""),f.defaultChecked=!!f._wrapperState.initialChecked,y!==""&&(f.name=y)}function qt(f,h,y){(h!=="number"||Fe(f.ownerDocument)!==f)&&(y==null?f.defaultValue=""+f._wrapperState.initialValue:f.defaultValue!==""+y&&(f.defaultValue=""+y))}var gt=Array.isArray;function ct(f,h,y,S){if(f=f.options,h){h={};for(var A=0;A"+h.valueOf().toString()+"",h=I.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;h.firstChild;)f.appendChild(h.firstChild)}});function Q(f,h){if(h){var y=f.firstChild;if(y&&y===f.lastChild&&y.nodeType===3){y.nodeValue=h;return}}f.textContent=h}var re={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},fe=["Webkit","ms","Moz","O"];Object.keys(re).forEach(function(f){fe.forEach(function(h){h=h+f.charAt(0).toUpperCase()+f.substring(1),re[h]=re[f]})});function ge(f,h,y){return h==null||typeof h=="boolean"||h===""?"":y||typeof h!="number"||h===0||re.hasOwnProperty(f)&&re[f]?(""+h).trim():h+"px"}function Ve(f,h){f=f.style;for(var y in h)if(h.hasOwnProperty(y)){var S=y.indexOf("--")===0,A=ge(y,h[y],S);y==="float"&&(y="cssFloat"),S?f.setProperty(y,A):f[y]=A}}var ft=F({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 ae(f,h){if(h){if(ft[f]&&(h.children!=null||h.dangerouslySetInnerHTML!=null))throw Error(r(137,f));if(h.dangerouslySetInnerHTML!=null){if(h.children!=null)throw Error(r(60));if(typeof h.dangerouslySetInnerHTML!="object"||!("__html"in h.dangerouslySetInnerHTML))throw Error(r(61))}if(h.style!=null&&typeof h.style!="object")throw Error(r(62))}}function le(f,h){if(f.indexOf("-")===-1)return typeof h.is=="string";switch(f){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 Me=null;function _t(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var St=null,Xe=null,Tn=null;function ni(f){if(f=Wu(f)){if(typeof St!="function")throw Error(r(280));var h=f.stateNode;h&&(h=Ld(h),St(f.stateNode,f.type,h))}}function _n(f){Xe?Tn?Tn.push(f):Tn=[f]:Xe=f}function Dr(){if(Xe){var f=Xe,h=Tn;if(Tn=Xe=null,ni(f),h)for(f=0;f>>=0,f===0?32:31-(Y3(f)/X3|0)|0}var wd=64,_d=4194304;function Tu(f){switch(f&-f){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 f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function bd(f,h){var y=f.pendingLanes;if(y===0)return 0;var S=0,A=f.suspendedLanes,P=f.pingedLanes,$=y&268435455;if($!==0){var Z=$&~A;Z!==0?S=Tu(Z):(P&=$,P!==0&&(S=Tu(P)))}else $=y&~A,$!==0?S=Tu($):P!==0&&(S=Tu(P));if(S===0)return 0;if(h!==0&&h!==S&&(h&A)===0&&(A=S&-S,P=h&-h,A>=P||A===16&&(P&4194240)!==0))return h;if((S&4)!==0&&(S|=y&16),h=f.entangledLanes,h!==0)for(f=f.entanglements,h&=S;0y;y++)h.push(f);return h}function Iu(f,h,y){f.pendingLanes|=h,h!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,h=31-jr(h),f[h]=y}function tj(f,h){var y=f.pendingLanes&~h;f.pendingLanes=h,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=h,f.mutableReadLanes&=h,f.entangledLanes&=h,h=f.entanglements;var S=f.eventTimes;for(f=f.expirationTimes;0=Lu),aE=" ",oE=!1;function sE(f,h){switch(f){case"keyup":return Ij.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lE(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var Ds=!1;function Rj(f,h){switch(f){case"compositionend":return lE(h);case"keypress":return h.which!==32?null:(oE=!0,aE);case"textInput":return f=h.data,f===aE&&oE?null:f;default:return null}}function Oj(f,h){if(Ds)return f==="compositionend"||!mg&&sE(f,h)?(f=Zx(),kd=ug=_a=null,Ds=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1=h)return{node:y,offset:h-f};f=S}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=mE(y)}}function vE(f,h){return f&&h?f===h?!0:f&&f.nodeType===3?!1:h&&h.nodeType===3?vE(f,h.parentNode):"contains"in f?f.contains(h):f.compareDocumentPosition?!!(f.compareDocumentPosition(h)&16):!1:!1}function yE(){for(var f=window,h=Fe();h instanceof f.HTMLIFrameElement;){try{var y=typeof h.contentWindow.location.href=="string"}catch{y=!1}if(y)f=h.contentWindow;else break;h=Fe(f.document)}return h}function yg(f){var h=f&&f.nodeName&&f.nodeName.toLowerCase();return h&&(h==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||h==="textarea"||f.contentEditable==="true")}function Uj(f){var h=yE(),y=f.focusedElem,S=f.selectionRange;if(h!==y&&y&&y.ownerDocument&&vE(y.ownerDocument.documentElement,y)){if(S!==null&&yg(y)){if(h=S.start,f=S.end,f===void 0&&(f=h),"selectionStart"in y)y.selectionStart=h,y.selectionEnd=Math.min(f,y.value.length);else if(f=(h=y.ownerDocument||document)&&h.defaultView||window,f.getSelection){f=f.getSelection();var A=y.textContent.length,P=Math.min(S.start,A);S=S.end===void 0?P:Math.min(S.end,A),!f.extend&&P>S&&(A=S,S=P,P=A),A=gE(y,P);var $=gE(y,S);A&&$&&(f.rangeCount!==1||f.anchorNode!==A.node||f.anchorOffset!==A.offset||f.focusNode!==$.node||f.focusOffset!==$.offset)&&(h=h.createRange(),h.setStart(A.node,A.offset),f.removeAllRanges(),P>S?(f.addRange(h),f.extend($.node,$.offset)):(h.setEnd($.node,$.offset),f.addRange(h)))}}for(h=[],f=y;f=f.parentNode;)f.nodeType===1&&h.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y=document.documentMode,Fs=null,wg=null,Uu=null,_g=!1;function wE(f,h,y){var S=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;_g||Fs==null||Fs!==Fe(S)||(S=Fs,"selectionStart"in S&&yg(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),Uu&&zu(Uu,S)||(Uu=S,S=Md(wg,"onSelect"),0Us||(f.current=Og[Us],Og[Us]=null,Us--)}function Tt(f,h){Us++,Og[Us]=f.current,f.current=h}var Sa={},bn=Ea(Sa),zn=Ea(!1),ko=Sa;function $s(f,h){var y=f.type.contextTypes;if(!y)return Sa;var S=f.stateNode;if(S&&S.__reactInternalMemoizedUnmaskedChildContext===h)return S.__reactInternalMemoizedMaskedChildContext;var A={},P;for(P in y)A[P]=h[P];return S&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=h,f.__reactInternalMemoizedMaskedChildContext=A),A}function Un(f){return f=f.childContextTypes,f!=null}function jd(){Nt(zn),Nt(bn)}function ME(f,h,y){if(bn.current!==Sa)throw Error(r(168));Tt(bn,h),Tt(zn,y)}function DE(f,h,y){var S=f.stateNode;if(h=h.childContextTypes,typeof S.getChildContext!="function")return y;S=S.getChildContext();for(var A in S)if(!(A in h))throw Error(r(108,Ee(f)||"Unknown",A));return F({},y,S)}function Bd(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||Sa,ko=bn.current,Tt(bn,f),Tt(zn,zn.current),!0}function FE(f,h,y){var S=f.stateNode;if(!S)throw Error(r(169));y?(f=DE(f,h,ko),S.__reactInternalMemoizedMergedChildContext=f,Nt(zn),Nt(bn),Tt(bn,f)):Nt(zn),Tt(zn,y)}var Mi=null,zd=!1,Ng=!1;function LE(f){Mi===null?Mi=[f]:Mi.push(f)}function Zj(f){zd=!0,LE(f)}function Ca(){if(!Ng&&Mi!==null){Ng=!0;var f=0,h=Ct;try{var y=Mi;for(Ct=1;f>=$,A-=$,Di=1<<32-jr(h)+A|y<Qe?(fn=Ge,Ge=null):fn=Ge.sibling;var vt=ye(ue,Ge,ce[Qe],Ae);if(vt===null){Ge===null&&(Ge=fn);break}f&&Ge&&vt.alternate===null&&h(ue,Ge),oe=P(vt,oe,Qe),qe===null?$e=vt:qe.sibling=vt,qe=vt,Ge=fn}if(Qe===ce.length)return y(ue,Ge),Bt&&To(ue,Qe),$e;if(Ge===null){for(;QeQe?(fn=Ge,Ge=null):fn=Ge.sibling;var Ma=ye(ue,Ge,vt.value,Ae);if(Ma===null){Ge===null&&(Ge=fn);break}f&&Ge&&Ma.alternate===null&&h(ue,Ge),oe=P(Ma,oe,Qe),qe===null?$e=Ma:qe.sibling=Ma,qe=Ma,Ge=fn}if(vt.done)return y(ue,Ge),Bt&&To(ue,Qe),$e;if(Ge===null){for(;!vt.done;Qe++,vt=ce.next())vt=Se(ue,vt.value,Ae),vt!==null&&(oe=P(vt,oe,Qe),qe===null?$e=vt:qe.sibling=vt,qe=vt);return Bt&&To(ue,Qe),$e}for(Ge=S(ue,Ge);!vt.done;Qe++,vt=ce.next())vt=De(Ge,ue,Qe,vt.value,Ae),vt!==null&&(f&&vt.alternate!==null&&Ge.delete(vt.key===null?Qe:vt.key),oe=P(vt,oe,Qe),qe===null?$e=vt:qe.sibling=vt,qe=vt);return f&&Ge.forEach(function(N4){return h(ue,N4)}),Bt&&To(ue,Qe),$e}function Vt(ue,oe,ce,Ae){if(typeof ce=="object"&&ce!==null&&ce.type===T&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case v:e:{for(var $e=ce.key,qe=oe;qe!==null;){if(qe.key===$e){if($e=ce.type,$e===T){if(qe.tag===7){y(ue,qe.sibling),oe=A(qe,ce.props.children),oe.return=ue,ue=oe;break e}}else if(qe.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===V&&HE($e)===qe.type){y(ue,qe.sibling),oe=A(qe,ce.props),oe.ref=Vu(ue,qe,ce),oe.return=ue,ue=oe;break e}y(ue,qe);break}else h(ue,qe);qe=qe.sibling}ce.type===T?(oe=Fo(ce.props.children,ue.mode,Ae,ce.key),oe.return=ue,ue=oe):(Ae=ph(ce.type,ce.key,ce.props,null,ue.mode,Ae),Ae.ref=Vu(ue,oe,ce),Ae.return=ue,ue=Ae)}return $(ue);case k:e:{for(qe=ce.key;oe!==null;){if(oe.key===qe)if(oe.tag===4&&oe.stateNode.containerInfo===ce.containerInfo&&oe.stateNode.implementation===ce.implementation){y(ue,oe.sibling),oe=A(oe,ce.children||[]),oe.return=ue,ue=oe;break e}else{y(ue,oe);break}else h(ue,oe);oe=oe.sibling}oe=Pv(ce,ue.mode,Ae),oe.return=ue,ue=oe}return $(ue);case V:return qe=ce._init,Vt(ue,oe,qe(ce._payload),Ae)}if(gt(ce))return Be(ue,oe,ce,Ae);if(q(ce))return ze(ue,oe,ce,Ae);qd(ue,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"?(ce=""+ce,oe!==null&&oe.tag===6?(y(ue,oe.sibling),oe=A(oe,ce),oe.return=ue,ue=oe):(y(ue,oe),oe=Iv(ce,ue.mode,Ae),oe.return=ue,ue=oe),$(ue)):y(ue,oe)}return Vt}var Ws=qE(!0),GE=qE(!1),Gd=Ea(null),Wd=null,Vs=null,Bg=null;function zg(){Bg=Vs=Wd=null}function Ug(f){var h=Gd.current;Nt(Gd),f._currentValue=h}function $g(f,h,y){for(;f!==null;){var S=f.alternate;if((f.childLanes&h)!==h?(f.childLanes|=h,S!==null&&(S.childLanes|=h)):S!==null&&(S.childLanes&h)!==h&&(S.childLanes|=h),f===y)break;f=f.return}}function Qs(f,h){Wd=f,Bg=Vs=null,f=f.dependencies,f!==null&&f.firstContext!==null&&((f.lanes&h)!==0&&($n=!0),f.firstContext=null)}function yr(f){var h=f._currentValue;if(Bg!==f)if(f={context:f,memoizedValue:h,next:null},Vs===null){if(Wd===null)throw Error(r(308));Vs=f,Wd.dependencies={lanes:0,firstContext:f}}else Vs=Vs.next=f;return h}var Io=null;function Hg(f){Io===null?Io=[f]:Io.push(f)}function WE(f,h,y,S){var A=h.interleaved;return A===null?(y.next=y,Hg(h)):(y.next=A.next,A.next=y),h.interleaved=y,Li(f,S)}function Li(f,h){f.lanes|=h;var y=f.alternate;for(y!==null&&(y.lanes|=h),y=f,f=f.return;f!==null;)f.childLanes|=h,y=f.alternate,y!==null&&(y.childLanes|=h),y=f,f=f.return;return y.tag===3?y.stateNode:null}var ka=!1;function qg(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function VE(f,h){f=f.updateQueue,h.updateQueue===f&&(h.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects})}function ji(f,h){return{eventTime:f,lane:h,tag:0,payload:null,callback:null,next:null}}function Aa(f,h,y){var S=f.updateQueue;if(S===null)return null;if(S=S.shared,(mt&2)!==0){var A=S.pending;return A===null?h.next=h:(h.next=A.next,A.next=h),S.pending=h,Li(f,y)}return A=S.interleaved,A===null?(h.next=h,Hg(S)):(h.next=A.next,A.next=h),S.interleaved=h,Li(f,y)}function Vd(f,h,y){if(h=h.updateQueue,h!==null&&(h=h.shared,(y&4194240)!==0)){var S=h.lanes;S&=f.pendingLanes,y|=S,h.lanes=y,ig(f,y)}}function QE(f,h){var y=f.updateQueue,S=f.alternate;if(S!==null&&(S=S.updateQueue,y===S)){var A=null,P=null;if(y=y.firstBaseUpdate,y!==null){do{var $={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};P===null?A=P=$:P=P.next=$,y=y.next}while(y!==null);P===null?A=P=h:P=P.next=h}else A=P=h;y={baseState:S.baseState,firstBaseUpdate:A,lastBaseUpdate:P,shared:S.shared,effects:S.effects},f.updateQueue=y;return}f=y.lastBaseUpdate,f===null?y.firstBaseUpdate=h:f.next=h,y.lastBaseUpdate=h}function Qd(f,h,y,S){var A=f.updateQueue;ka=!1;var P=A.firstBaseUpdate,$=A.lastBaseUpdate,Z=A.shared.pending;if(Z!==null){A.shared.pending=null;var ne=Z,he=ne.next;ne.next=null,$===null?P=he:$.next=he,$=ne;var _e=f.alternate;_e!==null&&(_e=_e.updateQueue,Z=_e.lastBaseUpdate,Z!==$&&(Z===null?_e.firstBaseUpdate=he:Z.next=he,_e.lastBaseUpdate=ne))}if(P!==null){var Se=A.baseState;$=0,_e=he=ne=null,Z=P;do{var ye=Z.lane,De=Z.eventTime;if((S&ye)===ye){_e!==null&&(_e=_e.next={eventTime:De,lane:0,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null});e:{var Be=f,ze=Z;switch(ye=h,De=y,ze.tag){case 1:if(Be=ze.payload,typeof Be=="function"){Se=Be.call(De,Se,ye);break e}Se=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=ze.payload,ye=typeof Be=="function"?Be.call(De,Se,ye):Be,ye==null)break e;Se=F({},Se,ye);break e;case 2:ka=!0}}Z.callback!==null&&Z.lane!==0&&(f.flags|=64,ye=A.effects,ye===null?A.effects=[Z]:ye.push(Z))}else De={eventTime:De,lane:ye,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},_e===null?(he=_e=De,ne=Se):_e=_e.next=De,$|=ye;if(Z=Z.next,Z===null){if(Z=A.shared.pending,Z===null)break;ye=Z,Z=ye.next,ye.next=null,A.lastBaseUpdate=ye,A.shared.pending=null}}while(!0);if(_e===null&&(ne=Se),A.baseState=ne,A.firstBaseUpdate=he,A.lastBaseUpdate=_e,h=A.shared.interleaved,h!==null){A=h;do $|=A.lane,A=A.next;while(A!==h)}else P===null&&(A.shared.lanes=0);Oo|=$,f.lanes=$,f.memoizedState=Se}}function KE(f,h,y){if(f=h.effects,h.effects=null,f!==null)for(h=0;hy?y:4,f(!0);var S=Kg.transition;Kg.transition={};try{f(!1),h()}finally{Ct=y,Kg.transition=S}}function pS(){return wr().memoizedState}function r4(f,h,y){var S=Ra(f);if(y={lane:S,action:y,hasEagerState:!1,eagerState:null,next:null},mS(f))gS(h,y);else if(y=WE(f,h,y,S),y!==null){var A=Rn();qr(y,f,S,A),vS(y,h,S)}}function i4(f,h,y){var S=Ra(f),A={lane:S,action:y,hasEagerState:!1,eagerState:null,next:null};if(mS(f))gS(h,A);else{var P=f.alternate;if(f.lanes===0&&(P===null||P.lanes===0)&&(P=h.lastRenderedReducer,P!==null))try{var $=h.lastRenderedState,Z=P($,y);if(A.hasEagerState=!0,A.eagerState=Z,Br(Z,$)){var ne=h.interleaved;ne===null?(A.next=A,Hg(h)):(A.next=ne.next,ne.next=A),h.interleaved=A;return}}catch{}finally{}y=WE(f,h,A,S),y!==null&&(A=Rn(),qr(y,f,S,A),vS(y,h,S))}}function mS(f){var h=f.alternate;return f===Ht||h!==null&&h===Ht}function gS(f,h){Xu=Xd=!0;var y=f.pending;y===null?h.next=h:(h.next=y.next,y.next=h),f.pending=h}function vS(f,h,y){if((y&4194240)!==0){var S=h.lanes;S&=f.pendingLanes,y|=S,h.lanes=y,ig(f,y)}}var eh={readContext:yr,useCallback:xn,useContext:xn,useEffect:xn,useImperativeHandle:xn,useInsertionEffect:xn,useLayoutEffect:xn,useMemo:xn,useReducer:xn,useRef:xn,useState:xn,useDebugValue:xn,useDeferredValue:xn,useTransition:xn,useMutableSource:xn,useSyncExternalStore:xn,useId:xn,unstable_isNewReconciler:!1},a4={readContext:yr,useCallback:function(f,h){return si().memoizedState=[f,h===void 0?null:h],f},useContext:yr,useEffect:oS,useImperativeHandle:function(f,h,y){return y=y!=null?y.concat([f]):null,Jd(4194308,4,uS.bind(null,h,f),y)},useLayoutEffect:function(f,h){return Jd(4194308,4,f,h)},useInsertionEffect:function(f,h){return Jd(4,2,f,h)},useMemo:function(f,h){var y=si();return h=h===void 0?null:h,f=f(),y.memoizedState=[f,h],f},useReducer:function(f,h,y){var S=si();return h=y!==void 0?y(h):h,S.memoizedState=S.baseState=h,f={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:h},S.queue=f,f=f.dispatch=r4.bind(null,Ht,f),[S.memoizedState,f]},useRef:function(f){var h=si();return f={current:f},h.memoizedState=f},useState:iS,useDebugValue:nv,useDeferredValue:function(f){return si().memoizedState=f},useTransition:function(){var f=iS(!1),h=f[0];return f=n4.bind(null,f[1]),si().memoizedState=f,[h,f]},useMutableSource:function(){},useSyncExternalStore:function(f,h,y){var S=Ht,A=si();if(Bt){if(y===void 0)throw Error(r(407));y=y()}else{if(y=h(),cn===null)throw Error(r(349));(Ro&30)!==0||ZE(S,h,y)}A.memoizedState=y;var P={value:y,getSnapshot:h};return A.queue=P,oS(tS.bind(null,S,P,f),[f]),S.flags|=2048,ec(9,eS.bind(null,S,P,y,h),void 0,null),y},useId:function(){var f=si(),h=cn.identifierPrefix;if(Bt){var y=Fi,S=Di;y=(S&~(1<<32-jr(S)-1)).toString(32)+y,h=":"+h+"R"+y,y=Ju++,0<\/script>",f=f.removeChild(f.firstChild)):typeof S.is=="string"?f=$.createElement(y,{is:S.is}):(f=$.createElement(y),y==="select"&&($=f,S.multiple?$.multiple=!0:S.size&&($.size=S.size))):f=$.createElementNS(f,y),f[ai]=h,f[Gu]=S,LS(f,h,!1,!1),h.stateNode=f;e:{switch($=le(y,S),y){case"dialog":Ot("cancel",f),Ot("close",f),A=S;break;case"iframe":case"object":case"embed":Ot("load",f),A=S;break;case"video":case"audio":for(A=0;A<$u.length;A++)Ot($u[A],f);A=S;break;case"source":Ot("error",f),A=S;break;case"img":case"image":case"link":Ot("error",f),Ot("load",f),A=S;break;case"details":Ot("toggle",f),A=S;break;case"input":rt(f,S),A=We(f,S),Ot("invalid",f);break;case"option":A=S;break;case"select":f._wrapperState={wasMultiple:!!S.multiple},A=F({},S,{value:void 0}),Ot("invalid",f);break;case"textarea":et(f,S),A=we(f,S),Ot("invalid",f);break;default:A=S}ae(y,A),Z=A;for(P in Z)if(Z.hasOwnProperty(P)){var ne=Z[P];P==="style"?Ve(f,ne):P==="dangerouslySetInnerHTML"?(ne=ne?ne.__html:void 0,ne!=null&&R(f,ne)):P==="children"?typeof ne=="string"?(y!=="textarea"||ne!=="")&&Q(f,ne):typeof ne=="number"&&Q(f,""+ne):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(i.hasOwnProperty(P)?ne!=null&&P==="onScroll"&&Ot("scroll",f):ne!=null&&b(f,P,ne,$))}switch(y){case"input":He(f),At(f,S,!1);break;case"textarea":He(f),ht(f);break;case"option":S.value!=null&&f.setAttribute("value",""+Pe(S.value));break;case"select":f.multiple=!!S.multiple,P=S.value,P!=null?ct(f,!!S.multiple,P,!1):S.defaultValue!=null&&ct(f,!!S.multiple,S.defaultValue,!0);break;default:typeof A.onClick=="function"&&(f.onclick=Fd)}switch(y){case"button":case"input":case"select":case"textarea":S=!!S.autoFocus;break e;case"img":S=!0;break e;default:S=!1}}S&&(h.flags|=4)}h.ref!==null&&(h.flags|=512,h.flags|=2097152)}return En(h),null;case 6:if(f&&h.stateNode!=null)BS(f,h,f.memoizedProps,S);else{if(typeof S!="string"&&h.stateNode===null)throw Error(r(166));if(y=Po(Yu.current),Po(oi.current),Hd(h)){if(S=h.stateNode,y=h.memoizedProps,S[ai]=h,(P=S.nodeValue!==y)&&(f=ir,f!==null))switch(f.tag){case 3:Dd(S.nodeValue,y,(f.mode&1)!==0);break;case 5:f.memoizedProps.suppressHydrationWarning!==!0&&Dd(S.nodeValue,y,(f.mode&1)!==0)}P&&(h.flags|=4)}else S=(y.nodeType===9?y:y.ownerDocument).createTextNode(S),S[ai]=h,h.stateNode=S}return En(h),null;case 13:if(Nt($t),S=h.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(Bt&&ar!==null&&(h.mode&1)!==0&&(h.flags&128)===0)$E(),Gs(),h.flags|=98560,P=!1;else if(P=Hd(h),S!==null&&S.dehydrated!==null){if(f===null){if(!P)throw Error(r(318));if(P=h.memoizedState,P=P!==null?P.dehydrated:null,!P)throw Error(r(317));P[ai]=h}else Gs(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;En(h),P=!1}else zr!==null&&(Sv(zr),zr=null),P=!0;if(!P)return h.flags&65536?h:null}return(h.flags&128)!==0?(h.lanes=y,h):(S=S!==null,S!==(f!==null&&f.memoizedState!==null)&&S&&(h.child.flags|=8192,(h.mode&1)!==0&&(f===null||($t.current&1)!==0?an===0&&(an=3):Av())),h.updateQueue!==null&&(h.flags|=4),En(h),null);case 4:return Ks(),hv(f,h),f===null&&Hu(h.stateNode.containerInfo),En(h),null;case 10:return Ug(h.type._context),En(h),null;case 17:return Un(h.type)&&jd(),En(h),null;case 19:if(Nt($t),P=h.memoizedState,P===null)return En(h),null;if(S=(h.flags&128)!==0,$=P.rendering,$===null)if(S)tc(P,!1);else{if(an!==0||f!==null&&(f.flags&128)!==0)for(f=h.child;f!==null;){if($=Kd(f),$!==null){for(h.flags|=128,tc(P,!1),S=$.updateQueue,S!==null&&(h.updateQueue=S,h.flags|=4),h.subtreeFlags=0,S=y,y=h.child;y!==null;)P=y,f=S,P.flags&=14680066,$=P.alternate,$===null?(P.childLanes=0,P.lanes=f,P.child=null,P.subtreeFlags=0,P.memoizedProps=null,P.memoizedState=null,P.updateQueue=null,P.dependencies=null,P.stateNode=null):(P.childLanes=$.childLanes,P.lanes=$.lanes,P.child=$.child,P.subtreeFlags=0,P.deletions=null,P.memoizedProps=$.memoizedProps,P.memoizedState=$.memoizedState,P.updateQueue=$.updateQueue,P.type=$.type,f=$.dependencies,P.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),y=y.sibling;return Tt($t,$t.current&1|2),h.child}f=f.sibling}P.tail!==null&&Wt()>Zs&&(h.flags|=128,S=!0,tc(P,!1),h.lanes=4194304)}else{if(!S)if(f=Kd($),f!==null){if(h.flags|=128,S=!0,y=f.updateQueue,y!==null&&(h.updateQueue=y,h.flags|=4),tc(P,!0),P.tail===null&&P.tailMode==="hidden"&&!$.alternate&&!Bt)return En(h),null}else 2*Wt()-P.renderingStartTime>Zs&&y!==1073741824&&(h.flags|=128,S=!0,tc(P,!1),h.lanes=4194304);P.isBackwards?($.sibling=h.child,h.child=$):(y=P.last,y!==null?y.sibling=$:h.child=$,P.last=$)}return P.tail!==null?(h=P.tail,P.rendering=h,P.tail=h.sibling,P.renderingStartTime=Wt(),h.sibling=null,y=$t.current,Tt($t,S?y&1|2:y&1),h):(En(h),null);case 22:case 23:return kv(),S=h.memoizedState!==null,f!==null&&f.memoizedState!==null!==S&&(h.flags|=8192),S&&(h.mode&1)!==0?(or&1073741824)!==0&&(En(h),h.subtreeFlags&6&&(h.flags|=8192)):En(h),null;case 24:return null;case 25:return null}throw Error(r(156,h.tag))}function h4(f,h){switch(Dg(h),h.tag){case 1:return Un(h.type)&&jd(),f=h.flags,f&65536?(h.flags=f&-65537|128,h):null;case 3:return Ks(),Nt(zn),Nt(bn),Qg(),f=h.flags,(f&65536)!==0&&(f&128)===0?(h.flags=f&-65537|128,h):null;case 5:return Wg(h),null;case 13:if(Nt($t),f=h.memoizedState,f!==null&&f.dehydrated!==null){if(h.alternate===null)throw Error(r(340));Gs()}return f=h.flags,f&65536?(h.flags=f&-65537|128,h):null;case 19:return Nt($t),null;case 4:return Ks(),null;case 10:return Ug(h.type._context),null;case 22:case 23:return kv(),null;case 24:return null;default:return null}}var ih=!1,Sn=!1,p4=typeof WeakSet=="function"?WeakSet:Set,je=null;function Xs(f,h){var y=f.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(S){Gt(f,h,S)}else y.current=null}function pv(f,h,y){try{y()}catch(S){Gt(f,h,S)}}var zS=!1;function m4(f,h){if(kg=Sd,f=yE(),yg(f)){if("selectionStart"in f)var y={start:f.selectionStart,end:f.selectionEnd};else e:{y=(y=f.ownerDocument)&&y.defaultView||window;var S=y.getSelection&&y.getSelection();if(S&&S.rangeCount!==0){y=S.anchorNode;var A=S.anchorOffset,P=S.focusNode;S=S.focusOffset;try{y.nodeType,P.nodeType}catch{y=null;break e}var $=0,Z=-1,ne=-1,he=0,_e=0,Se=f,ye=null;t:for(;;){for(var De;Se!==y||A!==0&&Se.nodeType!==3||(Z=$+A),Se!==P||S!==0&&Se.nodeType!==3||(ne=$+S),Se.nodeType===3&&($+=Se.nodeValue.length),(De=Se.firstChild)!==null;)ye=Se,Se=De;for(;;){if(Se===f)break t;if(ye===y&&++he===A&&(Z=$),ye===P&&++_e===S&&(ne=$),(De=Se.nextSibling)!==null)break;Se=ye,ye=Se.parentNode}Se=De}y=Z===-1||ne===-1?null:{start:Z,end:ne}}else y=null}y=y||{start:0,end:0}}else y=null;for(Ag={focusedElem:f,selectionRange:y},Sd=!1,je=h;je!==null;)if(h=je,f=h.child,(h.subtreeFlags&1028)!==0&&f!==null)f.return=h,je=f;else for(;je!==null;){h=je;try{var Be=h.alternate;if((h.flags&1024)!==0)switch(h.tag){case 0:case 11:case 15:break;case 1:if(Be!==null){var ze=Be.memoizedProps,Vt=Be.memoizedState,ue=h.stateNode,oe=ue.getSnapshotBeforeUpdate(h.elementType===h.type?ze:Ur(h.type,ze),Vt);ue.__reactInternalSnapshotBeforeUpdate=oe}break;case 3:var ce=h.stateNode.containerInfo;ce.nodeType===1?ce.textContent="":ce.nodeType===9&&ce.documentElement&&ce.removeChild(ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ae){Gt(h,h.return,Ae)}if(f=h.sibling,f!==null){f.return=h.return,je=f;break}je=h.return}return Be=zS,zS=!1,Be}function nc(f,h,y){var S=h.updateQueue;if(S=S!==null?S.lastEffect:null,S!==null){var A=S=S.next;do{if((A.tag&f)===f){var P=A.destroy;A.destroy=void 0,P!==void 0&&pv(h,y,P)}A=A.next}while(A!==S)}}function ah(f,h){if(h=h.updateQueue,h=h!==null?h.lastEffect:null,h!==null){var y=h=h.next;do{if((y.tag&f)===f){var S=y.create;y.destroy=S()}y=y.next}while(y!==h)}}function mv(f){var h=f.ref;if(h!==null){var y=f.stateNode;switch(f.tag){case 5:f=y;break;default:f=y}typeof h=="function"?h(f):h.current=f}}function US(f){var h=f.alternate;h!==null&&(f.alternate=null,US(h)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(h=f.stateNode,h!==null&&(delete h[ai],delete h[Gu],delete h[Rg],delete h[Xj],delete h[Jj])),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}function $S(f){return f.tag===5||f.tag===3||f.tag===4}function HS(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||$S(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function gv(f,h,y){var S=f.tag;if(S===5||S===6)f=f.stateNode,h?y.nodeType===8?y.parentNode.insertBefore(f,h):y.insertBefore(f,h):(y.nodeType===8?(h=y.parentNode,h.insertBefore(f,y)):(h=y,h.appendChild(f)),y=y._reactRootContainer,y!=null||h.onclick!==null||(h.onclick=Fd));else if(S!==4&&(f=f.child,f!==null))for(gv(f,h,y),f=f.sibling;f!==null;)gv(f,h,y),f=f.sibling}function vv(f,h,y){var S=f.tag;if(S===5||S===6)f=f.stateNode,h?y.insertBefore(f,h):y.appendChild(f);else if(S!==4&&(f=f.child,f!==null))for(vv(f,h,y),f=f.sibling;f!==null;)vv(f,h,y),f=f.sibling}var mn=null,$r=!1;function Ta(f,h,y){for(y=y.child;y!==null;)qS(f,h,y),y=y.sibling}function qS(f,h,y){if(ii&&typeof ii.onCommitFiberUnmount=="function")try{ii.onCommitFiberUnmount(yd,y)}catch{}switch(y.tag){case 5:Sn||Xs(y,h);case 6:var S=mn,A=$r;mn=null,Ta(f,h,y),mn=S,$r=A,mn!==null&&($r?(f=mn,y=y.stateNode,f.nodeType===8?f.parentNode.removeChild(y):f.removeChild(y)):mn.removeChild(y.stateNode));break;case 18:mn!==null&&($r?(f=mn,y=y.stateNode,f.nodeType===8?Pg(f.parentNode,y):f.nodeType===1&&Pg(f,y),Mu(f)):Pg(mn,y.stateNode));break;case 4:S=mn,A=$r,mn=y.stateNode.containerInfo,$r=!0,Ta(f,h,y),mn=S,$r=A;break;case 0:case 11:case 14:case 15:if(!Sn&&(S=y.updateQueue,S!==null&&(S=S.lastEffect,S!==null))){A=S=S.next;do{var P=A,$=P.destroy;P=P.tag,$!==void 0&&((P&2)!==0||(P&4)!==0)&&pv(y,h,$),A=A.next}while(A!==S)}Ta(f,h,y);break;case 1:if(!Sn&&(Xs(y,h),S=y.stateNode,typeof S.componentWillUnmount=="function"))try{S.props=y.memoizedProps,S.state=y.memoizedState,S.componentWillUnmount()}catch(Z){Gt(y,h,Z)}Ta(f,h,y);break;case 21:Ta(f,h,y);break;case 22:y.mode&1?(Sn=(S=Sn)||y.memoizedState!==null,Ta(f,h,y),Sn=S):Ta(f,h,y);break;default:Ta(f,h,y)}}function GS(f){var h=f.updateQueue;if(h!==null){f.updateQueue=null;var y=f.stateNode;y===null&&(y=f.stateNode=new p4),h.forEach(function(S){var A=S4.bind(null,f,S);y.has(S)||(y.add(S),S.then(A,A))})}}function Hr(f,h){var y=h.deletions;if(y!==null)for(var S=0;SA&&(A=$),S&=~P}if(S=A,S=Wt()-S,S=(120>S?120:480>S?480:1080>S?1080:1920>S?1920:3e3>S?3e3:4320>S?4320:1960*v4(S/1960))-S,10f?16:f,Pa===null)var S=!1;else{if(f=Pa,Pa=null,ch=0,(mt&6)!==0)throw Error(r(331));var A=mt;for(mt|=4,je=f.current;je!==null;){var P=je,$=P.child;if((je.flags&16)!==0){var Z=P.deletions;if(Z!==null){for(var ne=0;neWt()-_v?Mo(f,0):wv|=y),qn(f,h)}function iC(f,h){h===0&&((f.mode&1)===0?h=1:(h=_d,_d<<=1,(_d&130023424)===0&&(_d=4194304)));var y=Rn();f=Li(f,h),f!==null&&(Iu(f,h,y),qn(f,y))}function E4(f){var h=f.memoizedState,y=0;h!==null&&(y=h.retryLane),iC(f,y)}function S4(f,h){var y=0;switch(f.tag){case 13:var S=f.stateNode,A=f.memoizedState;A!==null&&(y=A.retryLane);break;case 19:S=f.stateNode;break;default:throw Error(r(314))}S!==null&&S.delete(h),iC(f,y)}var aC;aC=function(f,h,y){if(f!==null)if(f.memoizedProps!==h.pendingProps||zn.current)$n=!0;else{if((f.lanes&y)===0&&(h.flags&128)===0)return $n=!1,f4(f,h,y);$n=(f.flags&131072)!==0}else $n=!1,Bt&&(h.flags&1048576)!==0&&jE(h,$d,h.index);switch(h.lanes=0,h.tag){case 2:var S=h.type;rh(f,h),f=h.pendingProps;var A=$s(h,bn.current);Qs(h,y),A=Xg(null,h,S,f,A,y);var P=Jg();return h.flags|=1,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0?(h.tag=1,h.memoizedState=null,h.updateQueue=null,Un(S)?(P=!0,Bd(h)):P=!1,h.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,qg(h),A.updater=th,h.stateNode=A,A._reactInternals=h,iv(h,S,f,y),h=lv(null,h,S,!0,P,y)):(h.tag=0,Bt&&P&&Mg(h),Pn(null,h,A,y),h=h.child),h;case 16:S=h.elementType;e:{switch(rh(f,h),f=h.pendingProps,A=S._init,S=A(S._payload),h.type=S,A=h.tag=k4(S),f=Ur(S,f),A){case 0:h=sv(null,h,S,f,y);break e;case 1:h=RS(null,h,S,f,y);break e;case 11:h=kS(null,h,S,f,y);break e;case 14:h=AS(null,h,S,Ur(S.type,f),y);break e}throw Error(r(306,S,""))}return h;case 0:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:Ur(S,A),sv(f,h,S,A,y);case 1:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:Ur(S,A),RS(f,h,S,A,y);case 3:e:{if(OS(h),f===null)throw Error(r(387));S=h.pendingProps,P=h.memoizedState,A=P.element,VE(f,h),Qd(h,S,null,y);var $=h.memoizedState;if(S=$.element,P.isDehydrated)if(P={element:S,isDehydrated:!1,cache:$.cache,pendingSuspenseBoundaries:$.pendingSuspenseBoundaries,transitions:$.transitions},h.updateQueue.baseState=P,h.memoizedState=P,h.flags&256){A=Ys(Error(r(423)),h),h=NS(f,h,S,y,A);break e}else if(S!==A){A=Ys(Error(r(424)),h),h=NS(f,h,S,y,A);break e}else for(ar=xa(h.stateNode.containerInfo.firstChild),ir=h,Bt=!0,zr=null,y=GE(h,null,S,y),h.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(Gs(),S===A){h=Bi(f,h,y);break e}Pn(f,h,S,y)}h=h.child}return h;case 5:return YE(h),f===null&&Lg(h),S=h.type,A=h.pendingProps,P=f!==null?f.memoizedProps:null,$=A.children,Tg(S,A)?$=null:P!==null&&Tg(S,P)&&(h.flags|=32),PS(f,h),Pn(f,h,$,y),h.child;case 6:return f===null&&Lg(h),null;case 13:return MS(f,h,y);case 4:return Gg(h,h.stateNode.containerInfo),S=h.pendingProps,f===null?h.child=Ws(h,null,S,y):Pn(f,h,S,y),h.child;case 11:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:Ur(S,A),kS(f,h,S,A,y);case 7:return Pn(f,h,h.pendingProps,y),h.child;case 8:return Pn(f,h,h.pendingProps.children,y),h.child;case 12:return Pn(f,h,h.pendingProps.children,y),h.child;case 10:e:{if(S=h.type._context,A=h.pendingProps,P=h.memoizedProps,$=A.value,Tt(Gd,S._currentValue),S._currentValue=$,P!==null)if(Br(P.value,$)){if(P.children===A.children&&!zn.current){h=Bi(f,h,y);break e}}else for(P=h.child,P!==null&&(P.return=h);P!==null;){var Z=P.dependencies;if(Z!==null){$=P.child;for(var ne=Z.firstContext;ne!==null;){if(ne.context===S){if(P.tag===1){ne=ji(-1,y&-y),ne.tag=2;var he=P.updateQueue;if(he!==null){he=he.shared;var _e=he.pending;_e===null?ne.next=ne:(ne.next=_e.next,_e.next=ne),he.pending=ne}}P.lanes|=y,ne=P.alternate,ne!==null&&(ne.lanes|=y),$g(P.return,y,h),Z.lanes|=y;break}ne=ne.next}}else if(P.tag===10)$=P.type===h.type?null:P.child;else if(P.tag===18){if($=P.return,$===null)throw Error(r(341));$.lanes|=y,Z=$.alternate,Z!==null&&(Z.lanes|=y),$g($,y,h),$=P.sibling}else $=P.child;if($!==null)$.return=P;else for($=P;$!==null;){if($===h){$=null;break}if(P=$.sibling,P!==null){P.return=$.return,$=P;break}$=$.return}P=$}Pn(f,h,A.children,y),h=h.child}return h;case 9:return A=h.type,S=h.pendingProps.children,Qs(h,y),A=yr(A),S=S(A),h.flags|=1,Pn(f,h,S,y),h.child;case 14:return S=h.type,A=Ur(S,h.pendingProps),A=Ur(S.type,A),AS(f,h,S,A,y);case 15:return TS(f,h,h.type,h.pendingProps,y);case 17:return S=h.type,A=h.pendingProps,A=h.elementType===S?A:Ur(S,A),rh(f,h),h.tag=1,Un(S)?(f=!0,Bd(h)):f=!1,Qs(h,y),wS(h,S,A),iv(h,S,A,y),lv(null,h,S,!0,f,y);case 19:return FS(f,h,y);case 22:return IS(f,h,y)}throw Error(r(156,h.tag))};function oC(f,h){return gd(f,h)}function C4(f,h,y,S){this.tag=f,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(f,h,y,S){return new C4(f,h,y,S)}function Tv(f){return f=f.prototype,!(!f||!f.isReactComponent)}function k4(f){if(typeof f=="function")return Tv(f)?1:0;if(f!=null){if(f=f.$$typeof,f===H)return 11;if(f===U)return 14}return 2}function Na(f,h){var y=f.alternate;return y===null?(y=br(f.tag,h,f.key,f.mode),y.elementType=f.elementType,y.type=f.type,y.stateNode=f.stateNode,y.alternate=f,f.alternate=y):(y.pendingProps=h,y.type=f.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=f.flags&14680064,y.childLanes=f.childLanes,y.lanes=f.lanes,y.child=f.child,y.memoizedProps=f.memoizedProps,y.memoizedState=f.memoizedState,y.updateQueue=f.updateQueue,h=f.dependencies,y.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},y.sibling=f.sibling,y.index=f.index,y.ref=f.ref,y}function ph(f,h,y,S,A,P){var $=2;if(S=f,typeof f=="function")Tv(f)&&($=1);else if(typeof f=="string")$=5;else e:switch(f){case T:return Fo(y.children,A,P,h);case N:$=8,A|=8;break;case M:return f=br(12,y,h,A|2),f.elementType=M,f.lanes=P,f;case X:return f=br(13,y,h,A),f.elementType=X,f.lanes=P,f;case W:return f=br(19,y,h,A),f.elementType=W,f.lanes=P,f;case K:return mh(y,A,P,h);default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case j:$=10;break e;case D:$=9;break e;case H:$=11;break e;case U:$=14;break e;case V:$=16,S=null;break e}throw Error(r(130,f==null?f:typeof f,""))}return h=br($,y,h,A),h.elementType=f,h.type=S,h.lanes=P,h}function Fo(f,h,y,S){return f=br(7,f,S,h),f.lanes=y,f}function mh(f,h,y,S){return f=br(22,f,S,h),f.elementType=K,f.lanes=y,f.stateNode={isHidden:!1},f}function Iv(f,h,y){return f=br(6,f,null,h),f.lanes=y,f}function Pv(f,h,y){return h=br(4,f.children!==null?f.children:[],f.key,h),h.lanes=y,h.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},h}function A4(f,h,y,S,A){this.tag=h,this.containerInfo=f,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rg(0),this.expirationTimes=rg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rg(0),this.identifierPrefix=S,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function Rv(f,h,y,S,A,P,$,Z,ne){return f=new A4(f,h,y,Z,ne),h===1?(h=1,P===!0&&(h|=8)):h=0,P=br(3,null,null,h),f.current=P,P.stateNode=f,P.memoizedState={element:S,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},qg(P),f}function T4(f,h,y){var S=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Lv.exports=eB(),Lv.exports}var SC;function tB(){if(SC)return Eh;SC=1;var e=eO();return Eh.createRoot=e.createRoot,Eh.hydrateRoot=e.hydrateRoot,Eh}var nB=tB(),I_=function(e,t){return I_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},I_(e,t)};function Rr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");I_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ue=function(){return Ue=Object.assign||function(t){for(var r,n=1,i=arguments.length;n"u"&&(a=e.call(this,n),t.set(i,a)),a}function tO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function nO(e,t,r,n,i){return r.bind(t,e,n,i)}function aB(e,t){var r=e.length===1?iB:tO;return nO(e,this,r,t.cache.create(),t.serializer)}function oB(e,t){return nO(e,this,tO,t.cache.create(),t.serializer)}var sB=function(){return JSON.stringify(arguments)};function H1(){this.cache=Object.create(null)}H1.prototype.get=function(e){return this.cache[e]};H1.prototype.set=function(e,t){this.cache[e]=t};var lB={create:function(){return new H1}},Bf={variadic:oB};function rO(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}jf(function(){for(var e,t=[],r=0;r"u"&&(a=e.call(this,n),t.set(i,a)),a}function iO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function aO(e,t,r,n,i){return r.bind(t,e,n,i)}function fB(e,t){var r=e.length===1?cB:iO;return aO(e,this,r,t.cache.create(),t.serializer)}function dB(e,t){return aO(e,this,iO,t.cache.create(),t.serializer)}var hB=function(){return JSON.stringify(arguments)};function q1(){this.cache=Object.create(null)}q1.prototype.get=function(e){return this.cache[e]};q1.prototype.set=function(e,t){this.cache[e]=t};var pB={create:function(){return new q1}},Uv={variadic:dB},dt;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(dt||(dt={}));var Ft;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ft||(Ft={}));var wl;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(wl||(wl={}));function CC(e){return e.type===Ft.literal}function mB(e){return e.type===Ft.argument}function oO(e){return e.type===Ft.number}function sO(e){return e.type===Ft.date}function lO(e){return e.type===Ft.time}function uO(e){return e.type===Ft.select}function cO(e){return e.type===Ft.plural}function gB(e){return e.type===Ft.pound}function fO(e){return e.type===Ft.tag}function dO(e){return!!(e&&typeof e=="object"&&e.type===wl.number)}function P_(e){return!!(e&&typeof e=="object"&&e.type===wl.dateTime)}var hO=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,vB=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function yB(e){var t={};return e.replace(vB,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var wB=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function _B(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(wB).filter(function(p){return p.length>0}),r=[],n=0,i=t;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(xB,function(l,u,c,d,p,m){if(u)t.minimumIntegerDigits=c.length;else{if(d&&p)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(mO.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(kC.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(kC,function(l,u,c,d,p,m){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:p&&m?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=Ue(Ue({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=Ue(Ue({},t),AC(a)));continue}if(pO.test(i.stem)){t=Ue(Ue({},t),AC(i.stem));continue}var s=gO(i.stem);s&&(t=Ue(Ue({},t),s));var o=EB(i.stem);o&&(t=Ue(Ue({},t),o))}return t}var Sh={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function CB(e,t){for(var r="",n=0;n>1),l="a",u=kB(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;s-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function kB(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Sh[n||""]||Sh[r||""]||Sh["".concat(r,"-001")]||Sh["001"];return i[0]}var $v,AB=new RegExp("^".concat(hO.source,"*")),TB=new RegExp("".concat(hO.source,"*$"));function pt(e,t){return{start:e,end:t}}var IB=!!String.prototype.startsWith&&"_a".startsWith("a",1),PB=!!String.fromCodePoint,RB=!!Object.fromEntries,OB=!!String.prototype.codePointAt,NB=!!String.prototype.trimStart,MB=!!String.prototype.trimEnd,DB=!!Number.isSafeInteger,FB=DB?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},R_=!0;try{var LB=yO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");R_=(($v=LB.exec("a"))===null||$v===void 0?void 0:$v[0])==="a"}catch{R_=!1}var IC=IB?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},O_=PB?String.fromCodePoint:function(){for(var t=[],r=0;ra;){if(s=t[a++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},PC=RB?Object.fromEntries:function(t){for(var r={},n=0,i=t;n=n)){var i=t.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},jB=NB?function(t){return t.trimStart()}:function(t){return t.replace(AB,"")},BB=MB?function(t){return t.trimEnd()}:function(t){return t.replace(TB,"")};function yO(e,t){return new RegExp(e,t)}var N_;if(R_){var RC=yO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");N_=function(t,r){var n;RC.lastIndex=r;var i=RC.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else N_=function(t,r){for(var n=[];;){var i=vO(t,r);if(i===void 0||wO(i)||HB(i))break;n.push(i),r+=i>=65536?2:1}return O_.apply(void 0,n)};var zB=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:Ft.pound,location:pt(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(dt.UNMATCHED_CLOSING_TAG,pt(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&M_(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ft.literal,value:"<".concat(i,"/>"),location:pt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("")?{val:{type:Ft.tag,value:i,children:s,location:pt(n,this.clonePosition())},err:null}:this.error(dt.INVALID_TAG,pt(o,this.clonePosition())))}else return this.error(dt.UNCLOSED_TAG,pt(n,this.clonePosition()))}else return this.error(dt.INVALID_TAG,pt(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&$B(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var l=pt(n,this.clonePosition());return{val:{type:Ft.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!UB(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return O_.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),O_(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(dt.EXPECT_ARGUMENT_CLOSING_BRACE,pt(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(dt.EMPTY_ARGUMENT,pt(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(dt.MALFORMED_ARGUMENT,pt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(dt.EXPECT_ARGUMENT_CLOSING_BRACE,pt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ft.argument,value:i,location:pt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(dt.EXPECT_ARGUMENT_CLOSING_BRACE,pt(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(dt.MALFORMED_ARGUMENT,pt(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=N_(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=pt(t,a);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(dt.EXPECT_ARGUMENT_TYPE,pt(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var p=BB(d.val);if(p.length===0)return this.error(dt.EXPECT_ARGUMENT_STYLE,pt(this.clonePosition(),this.clonePosition()));var m=pt(c,this.clonePosition());u={style:p,styleLocation:m}}var w=this.tryParseArgumentClose(i);if(w.err)return w;var g=pt(i,this.clonePosition());if(u&&IC(u==null?void 0:u.style,"::",0)){var _=jB(u.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(_,u.styleLocation);return d.err?d:{val:{type:Ft.number,value:n,location:g,style:d.val},err:null}}else{if(_.length===0)return this.error(dt.EXPECT_DATE_TIME_SKELETON,g);var E=_;this.locale&&(E=CB(_,this.locale));var p={type:wl.dateTime,pattern:E,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?yB(E):{}},x=o==="date"?Ft.date:Ft.time;return{val:{type:x,value:n,location:g,style:p},err:null}}}return{val:{type:o==="number"?Ft.number:o==="date"?Ft.date:Ft.time,value:n,location:g,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(dt.EXPECT_SELECT_ARGUMENT_OPTIONS,pt(b,Ue({},b)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),v=0;if(o!=="select"&&C.value==="offset"){if(!this.bumpIf(":"))return this.error(dt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(dt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,dt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),C=this.parseIdentifierIfPossible(),v=d.val}var k=this.tryParsePluralOrSelectOptions(t,o,r,C);if(k.err)return k;var w=this.tryParseArgumentClose(i);if(w.err)return w;var T=pt(i,this.clonePosition());return o==="select"?{val:{type:Ft.select,value:n,options:PC(k.val),location:T},err:null}:{val:{type:Ft.plural,value:n,options:PC(k.val),offset:v,pluralType:o==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(dt.INVALID_ARGUMENT_TYPE,pt(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(dt.EXPECT_ARGUMENT_CLOSING_BRACE,pt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(dt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pt(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=_B(t)}catch{return this.error(dt.INVALID_NUMBER_SKELETON,r)}return{val:{type:wl.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?SB(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var a,s=!1,o=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(dt.EXPECT_PLURAL_ARGUMENT_SELECTOR,dt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=pt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?dt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:dt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?dt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:dt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pt(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,r,n);if(w.err)return w;var g=this.tryParseArgumentClose(m);if(g.err)return g;o.push([u,{value:w.val,location:pt(m,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return o.length===0?this.error(r==="select"?dt.EXPECT_SELECT_ARGUMENT_SELECTOR:dt.EXPECT_PLURAL_ARGUMENT_SELECTOR,pt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(dt.MISSING_OTHER_CLAUSE,pt(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var l=pt(i,this.clonePosition());return a?(s*=n,FB(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=vO(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(IC(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&wO(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function M_(e){return e>=97&&e<=122||e>=65&&e<=90}function UB(e){return M_(e)||e===47}function $B(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function wO(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function HB(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function D_(e){e.forEach(function(t){if(delete t.location,uO(t)||cO(t))for(var r in t.options)delete t.options[r].location,D_(t.options[r].value);else oO(t)&&dO(t.style)||(sO(t)||lO(t))&&P_(t.style)?delete t.style.location:fO(t)&&D_(t.children)})}function qB(e,t){t===void 0&&(t={}),t=Ue({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new zB(e,t).parse();if(r.err){var n=SyntaxError(dt[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||D_(r.val),r.val}var bi;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(bi||(bi={}));var mo=function(e){Rr(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),OC=function(e){Rr(t,e);function t(r,n,i,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),bi.INVALID_VALUE,a)||this}return t}(mo),GB=function(e){Rr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),bi.INVALID_VALUE,i)||this}return t}(mo),WB=function(e){Rr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),bi.MISSING_VALUE,n)||this}return t}(mo),On;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(On||(On={}));function VB(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==On.literal||r.type!==On.literal?t.push(r):n.value+=r.value,t},[])}function _O(e){return typeof e=="function"}function up(e,t,r,n,i,a,s){if(e.length===1&&CC(e[0]))return[{type:On.literal,value:e[0].value}];for(var o=[],l=0,u=e;l"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=qB,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Lo(e,t){var r=t&&t.cache?t.cache:nz,n=t&&t.serializer?t.serializer:tz,i=t&&t.strategy?t.strategy:ZB;return i(e,{cache:r,serializer:n})}function XB(e){return e==null||typeof e=="number"||typeof e=="boolean"}function JB(e,t,r,n){var i=XB(n)?n:r(n),a=t.get(i);return typeof a>"u"&&(a=e.call(this,n),t.set(i,a)),a}function xO(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function EO(e,t,r,n,i){return r.bind(t,e,n,i)}function ZB(e,t){var r=e.length===1?JB:xO;return EO(e,this,r,t.cache.create(),t.serializer)}function ez(e,t){return EO(e,this,xO,t.cache.create(),t.serializer)}var tz=function(){return JSON.stringify(arguments)};function G1(){this.cache=Object.create(null)}G1.prototype.get=function(e){return this.cache[e]};G1.prototype.set=function(e,t){this.cache[e]=t};var nz={create:function(){return new G1}},jo={variadic:ez},es;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(es||(es={}));var zf=function(e){Rr(t,e);function t(r,n,i){var a=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,` -`).concat(s?` -`.concat(s.message,` -`).concat(s.stack):""))||this,a.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),rz=function(e){Rr(t,e);function t(r,n){return e.call(this,es.UNSUPPORTED_FORMATTER,r,n)||this}return t}(zf),iz=function(e){Rr(t,e);function t(r,n){return e.call(this,es.INVALID_CONFIG,r,n)||this}return t}(zf),NC=function(e){Rr(t,e);function t(r,n){return e.call(this,es.MISSING_DATA,r,n)||this}return t}(zf),Or=function(e){Rr(t,e);function t(r,n,i){var a=e.call(this,es.FORMAT_ERROR,"".concat(r,` -Locale: `).concat(n,` -`),i)||this;return a.locale=n,a}return t}(zf),qv=function(e){Rr(t,e);function t(r,n,i,a){var s=e.call(this,"".concat(r,` -MessageID: `).concat(i==null?void 0:i.id,` -Default Message: `).concat(i==null?void 0:i.defaultMessage,` -Description: `).concat(i==null?void 0:i.description,` -`),n,a)||this;return s.descriptor=i,s.locale=n,s}return t}(Or),az=function(e){Rr(t,e);function t(r,n){var i=e.call(this,es.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(a){var s;return(s=a.value)!==null&&s!==void 0?s:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=r,i}return t}(zf);function vs(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var oz=function(e){},sz=function(e){},SO={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:oz,onWarn:sz};function CO(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Bo(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function lz(e){e===void 0&&(e=CO());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=Lo(function(){for(var o,l=[],u=0;u needs to exist in the component ancestry.")}var PO=Ue(Ue({},SO),{textComponent:J.Fragment});function Pz(e){return function(t){return e(J.Children.toArray(t))}}function L_(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var a=0;a"u")throw new Error(t)}function Ar(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zz(){return Math.random().toString(36).substring(2,10)}function qC(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function z_(e,t,r=null,n,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ys(t):t,state:r,key:t&&t.key||n||zz(),mask:i}}function Vc({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ys(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Uz(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,s=i.history,o="POP",l=null,u=c();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function c(){return(s.state||{idx:null}).idx}function d(){o="POP";let _=c(),E=_==null?null:_-u;u=_,l&&l({action:o,location:g.location,delta:E})}function p(_,E){o="PUSH";let x=HC(_)?_:z_(g.location,_,E);r&&r(x,_),u=c()+1;let b=qC(x,u),C=g.createHref(x.mask||x);try{s.pushState(b,"",C)}catch(v){if(v instanceof DOMException&&v.name==="DataCloneError")throw v;i.location.assign(C)}a&&l&&l({action:o,location:g.location,delta:1})}function m(_,E){o="REPLACE";let x=HC(_)?_:z_(g.location,_,E);r&&r(x,_),u=c();let b=qC(x,u),C=g.createHref(x.mask||x);s.replaceState(b,"",C),a&&l&&l({action:o,location:g.location,delta:0})}function w(_){return $z(_)}let g={get action(){return o},get location(){return e(i,s)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener($C,d),l=_,()=>{i.removeEventListener($C,d),l=null}},createHref(_){return t(i,_)},createURL:w,encodeLocation(_){let E=w(_);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:p,replace:m,go(_){return s.go(_)}};return g}function $z(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ut(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Vc(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function MO(e,t,r="/"){return Hz(e,t,r,!1)}function Hz(e,t,r,n,i){let a=typeof t=="string"?ys(t):t,s=Ji(a.pathname||"/",r);if(s==null)return null;let o=qz(e),l=null,u=nU(s);for(let c=0;l==null&&c{let c={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(n)&&l)return;Ut(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length)}let d=Yr([n,c.relativePath]),p=r.concat(c);s.children&&s.children.length>0&&(Ut(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),DO(s.children,t,p,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:Jz(d,s.index),routesMeta:p})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))a(s,o);else for(let u of FO(s.path))a(s,o,!0,u)}),t}function FO(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let s=FO(n.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function Gz(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Zz(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Wz=/^:[\w-]+$/,Vz=3,Qz=2,Kz=1,Yz=10,Xz=-2,GC=e=>e==="*";function Jz(e,t){let r=e.split("/"),n=r.length;return r.some(GC)&&(n+=Xz),t&&(n+=Qz),r.filter(i=>!GC(i)).reduce((i,a)=>i+(Wz.test(a)?Vz:a===""?Kz:Yz),n)}function Zz(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function eU(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",s=[];for(let o=0;o{if(c==="*"){let w=o[p]||"";s=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const m=o[p];return d&&!m?u[c]=void 0:u[c]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function tU(e,t=!1,r=!0){Ar(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l,u,c)=>{if(n.push({paramName:o,isOptional:l!=null}),l){let d=c.charAt(u+s.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function nU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ar(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ji(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var rU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function iU(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?ys(e):e,a;return r?(r=LO(r),r.startsWith("/")?a=WC(r.substring(1),"/"):a=WC(r,t)):a=t,{pathname:a,search:sU(n),hash:lU(i)}}function WC(e,t){let r=Np(t).split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Qv(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function aU(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Q1(e){let t=aU(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function om(e,t,r,n=!1){let i;typeof e=="string"?i=ys(e):(i={...e},Ut(!i.pathname||!i.pathname.includes("?"),Qv("?","pathname","search",i)),Ut(!i.pathname||!i.pathname.includes("#"),Qv("#","pathname","hash",i)),Ut(!i.search||!i.search.includes("#"),Qv("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=r;else{let d=t.length-1;if(!n&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}o=d>=0?t[d]:"/"}let l=iU(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var LO=e=>e.replace(/\/\/+/g,"/"),Yr=e=>LO(e.join("/")),Np=e=>e.replace(/\/+$/,""),oU=e=>Np(e).replace(/^\/*/,"/"),sU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,lU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,uU=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function cU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function fU(e){let t=e.map(r=>r.route.path).filter(Boolean);return Yr(t)||"/"}var jO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function BO(e,t){let r=e;if(typeof r!="string"||!rU.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(jO)try{let a=new URL(window.location.href),s=r.startsWith("//")?new URL(a.protocol+r):new URL(r),o=Ji(s.pathname,t);s.origin===a.origin&&o!=null?r=o+s.search+s.hash:i=!0}catch{Ar(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var zO=["POST","PUT","PATCH","DELETE"];new Set(zO);var dU=["GET",...zO];new Set(dU);var lu=J.createContext(null);lu.displayName="DataRouter";var sm=J.createContext(null);sm.displayName="DataRouterState";var UO=J.createContext(!1);function hU(){return J.useContext(UO)}var $O=J.createContext({isTransitioning:!1});$O.displayName="ViewTransition";var pU=J.createContext(new Map);pU.displayName="Fetchers";var mU=J.createContext(null);mU.displayName="Await";var hr=J.createContext(null);hr.displayName="Navigation";var $f=J.createContext(null);$f.displayName="Location";var Ai=J.createContext({outlet:null,matches:[],isDataRoute:!1});Ai.displayName="Route";var K1=J.createContext(null);K1.displayName="RouteError";var HO="REACT_ROUTER_ERROR",gU="REDIRECT",vU="ROUTE_ERROR_RESPONSE";function yU(e){if(e.startsWith(`${HO}:${gU}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function wU(e){if(e.startsWith(`${HO}:${vU}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new uU(t.status,t.statusText,t.data)}catch{}}function _U(e,{relative:t}={}){Ut(uu(),"useHref() may be used only in the context of a component.");let{basename:r,navigator:n}=J.useContext(hr),{hash:i,pathname:a,search:s}=Hf(e,{relative:t}),o=a;return r!=="/"&&(o=a==="/"?r:Yr([r,a])),n.createHref({pathname:o,search:s,hash:i})}function uu(){return J.useContext($f)!=null}function Bn(){return Ut(uu(),"useLocation() may be used only in the context of a component."),J.useContext($f).location}var qO="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function GO(e){J.useContext(hr).static||J.useLayoutEffect(e)}function go(){let{isDataRoute:e}=J.useContext(Ai);return e?NU():bU()}function bU(){Ut(uu(),"useNavigate() may be used only in the context of a component.");let e=J.useContext(lu),{basename:t,navigator:r}=J.useContext(hr),{matches:n}=J.useContext(Ai),{pathname:i}=Bn(),a=JSON.stringify(Q1(n)),s=J.useRef(!1);return GO(()=>{s.current=!0}),J.useCallback((l,u={})=>{if(Ar(s.current,qO),!s.current)return;if(typeof l=="number"){r.go(l);return}let c=om(l,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Yr([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,a,i,e])}J.createContext(null);function Hf(e,{relative:t}={}){let{matches:r}=J.useContext(Ai),{pathname:n}=Bn(),i=JSON.stringify(Q1(r));return J.useMemo(()=>om(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function xU(e,t){return WO(e,t)}function WO(e,t,r){var _;Ut(uu(),"useRoutes() may be used only in the context of a component.");let{navigator:n}=J.useContext(hr),{matches:i}=J.useContext(Ai),a=i[i.length-1],s=a?a.params:{},o=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route;{let E=u&&u.path||"";QO(o,!u||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${o}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. - -Please change the parent to .`)}let c=Bn(),d;if(t){let E=typeof t=="string"?ys(t):t;Ut(l==="/"||((_=E.pathname)==null?void 0:_.startsWith(l)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${E.pathname}" was given in the \`location\` prop.`),d=E}else d=c;let p=d.pathname||"/",m=p;if(l!=="/"){let E=l.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=r&&r.state.matches.length?r.state.matches.map(E=>Object.assign(E,{route:r.manifest[E.route.id]||E.route})):MO(e,{pathname:m});Ar(u||w!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Ar(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let g=AU(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},s,E.params),pathname:Yr([l,n.encodeLocation?n.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?l:Yr([l,n.encodeLocation?n.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),i,r);return t&&g?J.createElement($f.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},g):g}function EU(){let e=OU(),t=cU(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=J.createElement(J.Fragment,null,J.createElement("p",null,"💿 Hey developer 👋"),J.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",J.createElement("code",{style:a},"ErrorBoundary")," or"," ",J.createElement("code",{style:a},"errorElement")," prop on your route.")),J.createElement(J.Fragment,null,J.createElement("h2",null,"Unexpected Application Error!"),J.createElement("h3",{style:{fontStyle:"italic"}},t),r?J.createElement("pre",{style:i},r):null,s)}var SU=J.createElement(EU,null),VO=class extends J.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||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=wU(e.digest);r&&(e=r)}let t=e!==void 0?J.createElement(Ai.Provider,{value:this.props.routeContext},J.createElement(K1.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?J.createElement(CU,{error:e},t):t}};VO.contextType=UO;var Kv=new WeakMap;function CU({children:e,error:t}){let{basename:r}=J.useContext(hr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=yU(t.digest);if(n){let i=Kv.get(t);if(i)throw i;let a=BO(n.location,r);if(jO&&!Kv.get(t))if(a.isExternal||n.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:n.replace}));throw Kv.set(t,s),s}return J.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function kU({routeContext:e,match:t,children:r}){let n=J.useContext(lu);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),J.createElement(Ai.Provider,{value:e},r)}function AU(e,t=[],r){let n=r==null?void 0:r.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let c=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);Ut(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let s=!1,o=-1;if(r&&n){s=n.renderFallback;for(let c=0;c=0?i=i.slice(0,o+1):i=[i[0]];break}}}}let l=r==null?void 0:r.onError,u=n&&l?(c,d)=>{var p,m;l(c,{location:n.location,params:((m=(p=n.matches)==null?void 0:p[0])==null?void 0:m.params)??{},pattern:fU(n.matches),errorInfo:d})}:void 0;return i.reduceRight((c,d,p)=>{let m,w=!1,g=null,_=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||SU,s&&(o<0&&p===0?(QO("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,_=null):o===p&&(w=!0,_=d.route.hydrateFallbackElement||null)));let E=t.concat(i.slice(0,p+1)),x=()=>{let b;return m?b=g:w?b=_:d.route.Component?b=J.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=c,J.createElement(kU,{match:d,routeContext:{outlet:c,matches:E,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?J.createElement(VO,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:x(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:u}):x()},null)}function Y1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function TU(e){let t=J.useContext(lu);return Ut(t,Y1(e)),t}function IU(e){let t=J.useContext(sm);return Ut(t,Y1(e)),t}function PU(e){let t=J.useContext(Ai);return Ut(t,Y1(e)),t}function X1(e){let t=PU(e),r=t.matches[t.matches.length-1];return Ut(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function RU(){return X1("useRouteId")}function OU(){var n;let e=J.useContext(K1),t=IU("useRouteError"),r=X1("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function NU(){let{router:e}=TU("useNavigate"),t=X1("useNavigate"),r=J.useRef(!1);return GO(()=>{r.current=!0}),J.useCallback(async(i,a={})=>{Ar(r.current,qO),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var VC={};function QO(e,t,r){!t&&!VC[e]&&(VC[e]=!0,Ar(!1,r))}J.memo(MU);function MU({routes:e,manifest:t,future:r,state:n,isStatic:i,onError:a}){return WO(e,void 0,{manifest:t,state:n,isStatic:i,onError:a})}function QC({to:e,replace:t,state:r,relative:n}){Ut(uu()," may be used only in the context of a component.");let{static:i}=J.useContext(hr);Ar(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:a}=J.useContext(Ai),{pathname:s}=Bn(),o=go(),l=om(e,Q1(a),s,n==="path"),u=JSON.stringify(l);return J.useEffect(()=>{o(JSON.parse(u),{replace:t,state:r,relative:n})},[o,u,n,t,r]),null}function ol(e){Ut(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function DU({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1,useTransitions:s}){Ut(!uu(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=J.useMemo(()=>({basename:o,navigator:i,static:a,useTransitions:s,future:{}}),[o,i,a,s]);typeof r=="string"&&(r=ys(r));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:m="default",mask:w}=r,g=J.useMemo(()=>{let _=Ji(u,o);return _==null?null:{location:{pathname:_,search:c,hash:d,state:p,key:m,mask:w},navigationType:n}},[o,u,c,d,p,m,n,w]);return Ar(g!=null,` is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the won't render anything.`),g==null?null:J.createElement(hr.Provider,{value:l},J.createElement($f.Provider,{children:t,value:g}))}function KC({children:e,location:t}){return xU(U_(e),t)}function U_(e,t=[]){let r=[];return J.Children.forEach(e,(n,i)=>{if(!J.isValidElement(n))return;let a=[...t,i];if(n.type===J.Fragment){r.push.apply(r,U_(n.props.children,a));return}Ut(n.type===ol,`[${typeof n.type=="string"?n.type:n.type.name}] is not a component. All component children of must be a or `),Ut(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=U_(n.props.children,a)),r.push(s)}),r}var cp="get",fp="application/x-www-form-urlencoded";function lm(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function FU(e){return lm(e)&&e.tagName.toLowerCase()==="button"}function LU(e){return lm(e)&&e.tagName.toLowerCase()==="form"}function jU(e){return lm(e)&&e.tagName.toLowerCase()==="input"}function BU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zU(e,t){return e.button===0&&(!t||t==="_self")&&!BU(e)}var kh=null;function UU(){if(kh===null)try{new FormData(document.createElement("form"),0),kh=!1}catch{kh=!0}return kh}var $U=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yv(e){return e!=null&&!$U.has(e)?(Ar(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${fp}"`),null):e}function HU(e,t){let r,n,i,a,s;if(LU(e)){let o=e.getAttribute("action");n=o?Ji(o,t):null,r=e.getAttribute("method")||cp,i=Yv(e.getAttribute("enctype"))||fp,a=new FormData(e)}else if(FU(e)||jU(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a - - - - ${e.linkExistingRelative?uL(e):""} - - `}function are(e){return` -
- ${cL()} -
- ${e.no_edit?"":lre(e)} - ${e.no_edit?cre():ure(e)} -
- - ${sL(e)} - - ${lL(e)} - -
- - -
- - ${e.linkExistingRelative?uL(e):""} - -
- ${ore(e)} - - ${sre(e)} -
- `}function ore(e){return` -
- -
- `}function sre(e){return` -
- -
- `}function lre(e){return` - - ${e.addRelativeActive?Vne():Wne()} - - `}function ure(e){return` - - ${e.editable?Yne():Kne()} - - `}function sL(e){return e.editable?` -
- ${e.gender_field.options.map(t=>` - - `).join("")} -
- `:""}function lL(e){if(!e.editable)return r();let t="";return e.fields.forEach(n=>{if(n.type==="text")t+=` -
- - -
`;else if(n.type==="textarea")t+=` -
- - -
`;else if(n.type==="select"){const i=n;t+=` -
- - -
`}else n.type==="rel_reference"&&(t+=` -
- - -
`)}),t;function r(){let n="";return e.fields.forEach(i=>{var a;if(i.type==="rel_reference"){if(!i.initial_value)return;n+=` -
- ${i.label} - ${i.rel_label} - ${i.initial_value||""} -
`}else if(i.type==="select"){const s=i;if(!i.initial_value)return;n+=` -
- ${s.label} - ${((a=s.options.find(o=>o.value===s.initial_value))===null||a===void 0?void 0:a.label)||""} -
`}else n+=` -
- ${i.label} - ${i.initial_value||""} -
`}),n}}function uL(e){const t=e.linkExistingRelative.hasOwnProperty("title")?e.linkExistingRelative.title:"Profile already exists?",r=e.linkExistingRelative.hasOwnProperty("select_placeholder")?e.linkExistingRelative.select_placeholder:"Select profile",n=e.linkExistingRelative.options;return` -
-
- -
- `}function cL(){return` - - × - - `}function cre(){return'
'}function fre(e,t){return fL(e,t)}function dre(e,t){return fL(e,t)}function fL(e,t){const r=a(e),n=document.createElement("div");return i(),n;function i(){const s=r?ire(e):are(e);n.innerHTML=s,hre(n,e,t,i),r?pre(n,e):mre(n,e,i),e.onFormCreation&&e.onFormCreation({cont:n,form_creator:e})}function a(s){return"new_rel"in s}}function hre(e,t,r,n){const i=e.querySelector("form");i.addEventListener("submit",t.onSubmit),i.querySelector(".f3-cancel-btn").addEventListener("click",o),i.querySelector(".f3-close-btn").addEventListener("click",r);function o(){t.editable=!1,t.onCancel&&t.onCancel(),n()}}function pre(e,t){const n=e.querySelector("form").querySelector(".f3-link-existing-relative select");n&&n.addEventListener("change",t.linkExistingRelative.onSelect)}function mre(e,t,r){const n=e.querySelector("form"),i=n.querySelector(".f3-edit-btn");i&&i.addEventListener("click",u);const a=n.querySelector(".f3-delete-btn");a&&t.onDelete&&a.addEventListener("click",t.onDelete);const s=n.querySelector(".f3-add-relative-btn");s&&t.addRelative&&s.addEventListener("click",()=>{t.addRelativeActive?t.addRelativeCancel():t.addRelative(),t.addRelativeActive=!t.addRelativeActive,r()});const o=n.querySelector(".f3-remove-relative-btn");o&&t.removeRelative&&o.addEventListener("click",()=>{t.removeRelativeActive?t.removeRelativeCancel():t.removeRelative(),t.removeRelativeActive=!t.removeRelativeActive,r()});const l=n.querySelector(".f3-link-existing-relative select");l&&l.addEventListener("change",t.linkExistingRelative.onSelect);function u(){t.editable=!t.editable,r()}}function gre(e,t,r){let n=[],i=-1;return{changed:a,back:s,forward:o,canForward:l,canBack:u};function a(){i0}function c(d){const p=e.getMainId();d=JSON.parse(JSON.stringify(d)),d.find(m=>m.id===p)||e.updateMainId(d.main_id),e.updateData(d),r()}}function vre(e,t){const r=ve(e).append("div").attr("class","f3-history-controls");e.insertBefore(r.node(),e.firstChild);const n=r.append("button").attr("class","f3-back-button").on("click",()=>{t.back(),a()}),i=r.append("button").attr("class","f3-forward-button").on("click",()=>{t.forward(),a()});return n.html(Xne()),i.html(Jne()),{back_btn:n.node(),forward_btn:i.node(),updateButtons:a,destroy:s};function a(){n.classed("disabled",!t.canBack()),i.classed("disabled",!t.canForward()),!t.canBack()&&!t.canForward()?r.style("opacity",0).style("pointer-events","none"):r.style("opacity",1).style("pointer-events","auto")}function s(){ve(e).select(".f3-history-controls").remove()}}function dL({d:e,card_dim:t,card_display:r}){return{template:` - - - ${wre({d:e,card_dim:t,card_display:r}).template} - - `}}function yre({d:e,card_dim:t,label:r}){return{template:` - - - - ${r} - - - `}}function wre({d:e,card_dim:t,card_display:r}){return{template:` - - - - - ${Array.isArray(r)?r.map(n=>`${n(e.data)}`).join(` -`):r(e.data)} - - - - - - `}}function x2({d:e,card_dim:t,is_new:r}){return{template:` - - `}}function _re({d:e,card_dim:t}){return{template:` - - - - - - - - - - - `}}function bre({d:e,image:t,card_dim:r,maleIcon:n,femaleIcon:i}){return{template:` - - ${t?``:(e.data.data.gender,e.data.data.gender,a())} - - `};function a(){return` - - - - - - - `}}function qh(e,t,r){const n=document.createElementNS("http://www.w3.org/2000/svg","g");n.innerHTML=e,r?t.insertBefore(n,t.firstChild):t.appendChild(n)}const E2={miniTree:xre,cardBody:Ere,cardImage:Sre};function xre(e,t){if(e.data.to_add)return;const r=t.card_dim;if(e.all_rels_displayed)return;const n=sa("svg:g").html(_re({d:e,card_dim:r}).template);return n.on("click",function(i){i.stopPropagation(),t.onMiniTreeClick?t.onMiniTreeClick.call(this,i,e):tL(t.store,{d:e})}),n.node()}function Ere(e,t){const r=t.card_dim,n=sa("svg:g").html(dL({d:e,card_dim:r,card_display:t.card_display}).template);return n.on("click",function(i){i.stopPropagation(),t.onCardClick?t.onCardClick.call(this,i,e):tL(t.store,{d:e})}),n.node()}function Sre(e,t){if(e.data.to_add)return;const r=t.card_dim;return sa("svg:g").html(bre({d:e,image:e.data.data.avatar||null,card_dim:r,maleIcon:void 0,femaleIcon:void 0}).template).node()}function R1(e,t,r=!1){e&&(r?t.insertBefore(e,t.firstChild):t.appendChild(e))}function Cre(e,t,r,n){if(!t.hasOwnProperty("_toggle"))return;const i=e.querySelector(".card"),a=i.querySelector(".card-inner"),s=e.querySelector(".card").offsetWidth;e.querySelector(".card").offsetHeight;let o,l;const u={};if(t.spouse){const d=t.spouse,p=d.data.main?"main":d.parent.data.id;if(o=d.data._tgdp_sp[p][t.data.id]<0,u.top=60,u.left=t.sx-t.x-30+s/2,r&&(u.top=t.sy-t.x+4,u.left=s/2+4,Math.abs(t.sx-t.y)<10&&(u.left=s-4)),l=d._toggle_id_sp?d._toggle_id_sp[t.data.id]:-1,l===-1)return}else{const d=t.data.main?"main":t.parent.data.id;o=t.data._tgdp[d]<0,u.top=-65,u.left=-30+s/2,r&&(u.top=5,u.left=-55),l=t._toggle_id}if(a.style.zIndex=1,ve(i).append("div").attr("class","f3-toggle-div").attr("style","cursor: pointer; width: 60px; height: 60px;position: absolute; z-index: -1;").style("top",u.top+"px").style("left",u.left+"px").on("click",d=>{if(d.stopPropagation(),t.spouse){const p=t.spouse,m=p.data.main?"main":p.parent.data.id;p.data._tgdp_sp[m].hasOwnProperty(t.data.id)||console.error("no toggle",t,p);let w=p.data._tgdp_sp[m][t.data.id];w<0?w=new Date().getTime():w=-new Date().getTime(),p.data._tgdp_sp[m][t.data.id]=w}else{const p=t.data.main?"main":t.parent.data.id;let m=t.data._tgdp[p];m<0?m=new Date().getTime():m=-new Date().getTime(),t.data._tgdp[p]=m}n()}).append("div").html(o?ere():Zne()).select("svg").classed("f3-toggle-icon",!0).style("color",o?"#585656":"#61bf52").style("padding","0"),ve(i).select(".f3-toggle-icon .f3-small-circle").style("fill","#fff"),ve(i).select(".f3-toggle-icon").append("text").attr("transform",o?"translate(10.6, 14.5)":"translate(4.1, 14.5)").attr("fill","#fff").attr("font-size","7px").text("C"+l),o){let d;t.is_ancestry?r?d="translate(5, -30)rotate(-90)":d="translate(0, -10)":r?d="translate(11, -22)rotate(90)":d="translate(-7, -32)rotate(180)",ve(i).select(".f3-toggle-div").insert("div").html(oL()).select("svg").attr("style","position: absolute; z-index: -1;top: 0;left: 0;border-radius: 0;").style("width","66px").style("height","112px").attr("transform",d).attr("viewBox","0 0 72 125").select("line").attr("y1",t.is_ancestry?"62":"92")}}function hL(e){const t=e.style==="default"?u:e.style==="imageCircleRect"?l:e.style==="imageCircle"?c:e.style==="imageRect"?d:e.style==="rect"?p:u;return function(b){if(this.innerHTML=` -
- ${e.mini_tree?o(b):""} - ${e.cardInnerHtmlCreator&&!b.data._new_rel_data?e.cardInnerHtmlCreator(b):t(b)} -
- `,this.querySelector(".card").addEventListener("click",C=>e.onCardClick(C,b)),e.onCardUpdate&&e.onCardUpdate.call(this,b),e.onCardMouseenter&&ve(this).select(".card").on("mouseenter",C=>e.onCardMouseenter(C,b)),e.onCardMouseleave&&ve(this).select(".card").on("mouseleave",C=>e.onCardMouseleave(C,b)),b.duplicate&&x(this,b),e.duplicate_branch_toggle&&Cre(this,b,e.store.state.is_horizontal,e.store.updateTree),location.origin.includes("localhost")&&(b.__node=this.querySelector(".card"),b.__label=b.data.data["first name"],b.data.to_add)){const C=b.spouse||b.coparent||null;C&&ve(this).select(".card").attr("data-to-add",C.data.data["first name"])}};function r(b){return` -
- ${b.data.data[e.cardImageField]?``:_(b)} -
${a(b)}
- ${b.duplicate?E(b):""} -
- `}function n(b){return` -
- ${b.data.data[e.cardImageField]?``:_(b)} -
${a(b)}
- ${b.duplicate?E(b):""} -
- `}function i(b){return` -
- ${a(b)} - ${b.duplicate?E(b):""} -
- `}function a(b){return b.data._new_rel_data?s(b):b.data.to_add?`
${e.empty_card_label||"ADD"}
`:b.data.unknown?`
${e.unknown_card_label||"UNKNOWN"}
`:` - ${e.card_display.map(C=>`
${C(b.data)}
`).join("")} - `}function s(b){const C=[];return C.push(`data-rel-type="${b.data._new_rel_data.rel_type}"`),["son","daughter"].includes(b.data._new_rel_data.rel_type)&&C.push(`data-other-parent-id="${b.data._new_rel_data.other_parent_id}"`),`
${b.data._new_rel_data.label}
`}function o(b){return!e.mini_tree||b.data.to_add||b.data._new_rel_data||b.all_rels_displayed?"":`
${oL()}
`}function l(b){return b.data.data[e.cardImageField]?c(b):p(b)}function u(b){return n(b)}function c(b){return r(b)}function d(b){return n(b)}function p(b){return i(b)}function m(b){const C=[];return b.data.data.gender==="M"?C.push("card-male"):b.data.data.gender==="F"?C.push("card-female"):C.push("card-genderless"),C.push(`card-depth-${b.is_ancestry?-b.depth:b.depth}`),b.data.main&&C.push("card-main"),b.data._new_rel_data&&C.push("card-new-rel"),b.data.to_add&&C.push("card-to-add"),b.data.unknown&&C.push("card-unknown"),C}function w(){let b='style="';if(e.card_dim.w||e.card_dim.h)b+=`width: ${e.card_dim.w}px; min-height: ${e.card_dim.h}px;`,e.card_dim.height_auto?b+="height: auto;":b+=`height: ${e.card_dim.h}px;`;else return"";return b+='"',b}function g(){let b='style="position: relative;';if(e.card_dim.img_w||e.card_dim.img_h||e.card_dim.img_x||e.card_dim.img_y)b+=`width: ${e.card_dim.img_w}px; height: ${e.card_dim.img_h}px;`,b+=`left: ${e.card_dim.img_x}px; top: ${e.card_dim.img_y}px;`;else return"";return b+='"',b}function _(b){return b.data._new_rel_data?`
${Qne()}
`:`
${e.defaultPersonIcon?e.defaultPersonIcon(b):aL()}
`}function E(b){return`
x${b.duplicate}
`}function x(b,C){ve(b).on("mouseenter",v=>{ve(b.closest(".cards_view")).selectAll(".card_cont").select(".card").classed("f3-card-duplicate-hover",k=>k.data.id===C.data.id)}),ve(b).on("mouseleave",v=>{ve(b.closest(".cards_view")).selectAll(".card_cont").select(".card").classed("f3-card-duplicate-hover",!1)})}}function pL(e,t){if(e.querySelector("defs#f3CardDef"))return;e.insertAdjacentHTML("afterbegin",` - - - - - - - - - - - - - `);function r(n,i,a){const{w:s,h:o}=n,l=i,u=a||[],c=g=>u.includes(g),d=c("lx")?"M0,0":`M0,${l} Q 0,0 5,0`,p=c("rx")?`H${s}`:`H${s-l} Q ${s},0 ${s},5`,m=c("ry")?`V${o}`:`V${o-l} Q ${s},${o} ${s-l},${o}`,w=c("ly")?"H0":`H${l} Q 0,${o} 0,${o-l}`;return`${d} ${p} ${m} ${w} z`}}function kre(e,t){e.querySelector("defs#f3CardDef")&&e.querySelector("defs#f3CardDef").remove(),pL(e,t)}function mx(e){return e=t(e),pL(e.svg,e.card_dim),function(r){const n=r.data.data.gender==="M"?"card-male":r.data.data.gender==="F"?"card-female":"card-genderless",i=e.card_dim,a=sa("svg:g").attr("class",`card ${n}`).attr("transform",`translate(${[-i.w/2,-i.h/2]})`);a.append("g").attr("class","card-inner").attr("clip-path","url(#card_clip)"),this.innerHTML="",this.appendChild(a.node()),a.on("click",function(s){s.stopPropagation(),e.onCardClick.call(this,s,r)}),r.data._new_rel_data?(qh(x2({d:r,card_dim:i,is_new:r.data.to_add}).template,a.node(),!0),qh(yre({d:r,card_dim:i,label:r.data._new_rel_data.label}).template,this.querySelector(".card-inner"),!0),ve(this.querySelector(".card-inner")).append("g").attr("class","card-edit-icon").attr("fill","currentColor").attr("transform",`translate(-1,2)scale(${i.img_h/22})`).html(iL())):(qh(x2({d:r,card_dim:i,is_new:r.data.to_add}).template,a.node(),!0),qh(dL({d:r,card_dim:i,card_display:e.card_display}).template,this.querySelector(".card-inner"),!1),e.img&&R1(E2.cardImage(r,e),this.querySelector(".card")),e.mini_tree&&R1(E2.miniTree(r,e),this.querySelector(".card"),!0)),e.onCardUpdate&&e.onCardUpdate.call(this,r)};function t(r){const n={img:!0,mini_tree:!0,link_break:!1,card_dim:{w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5}};r||(r={});for(const i in n)typeof r[i]>"u"&&(r[i]=n[i]);return r}}function Are(e){return e.onCardClick===void 0&&(e.onCardClick=(t,r)=>{e.store.updateMainId(r.data.id),e.store.updateTree({})}),mx(e)}function mL(e,t){return new Tre(e,t)}class Tre{constructor(t,r){this.cont=t,this.active=!1,this.onClose=r,this.popup_cont=ve(this.cont).append("div").attr("class","f3-popup").node(),this.create()}create(){const t=ve(this.popup_cont);t.html(` -
- × -
-
- `),t.select(".f3-popup-close").on("click",()=>{this.close()}),t.on("click",r=>{r.target==t.node()&&this.close()})}activate(t){const r=ve(this.popup_cont).select(".f3-popup-content-inner").node();t&&r.appendChild(t),this.open()}open(){this.active=!0}close(){this.popup_cont.remove(),this.active=!1,this.onClose&&this.onClose()}}function gL(e,t,r){const n=t.find(c=>c.id===e),i={};return a(n.id,"self",0),s(i),r.show_in_law&&o(i,t),l(i),i;function a(c,d,p,m=void 0){if(!c||i[c])return;d&&(i[c]=d);const g=t.find(_=>_.id===c).rels;if(d==="self")g.parents.forEach(_=>a(_,"parent",p-1,c)),(g.spouses||[]).forEach(_=>a(_,"spouse",p)),(g.children||[]).forEach(_=>a(_,"child",p+1));else if(d==="parent")g.parents.forEach(_=>a(_,"grandparent",p-1,c)),(g.children||[]).forEach(_=>{m&&m===_||a(_,"sibling",p+1)});else if(d!=="spouse")if(d==="child")(g.children||[]).forEach(_=>a(_,"grandchild",p+1));else if(d==="sibling")(g.children||[]).forEach(_=>a(_,"nephew",p+1));else if(d==="grandparent")m||console.error(`${d} should have prev_rel_id`),g.parents.forEach(_=>a(_,"great-grandparent",p-1,c)),(g.children||[]).forEach(_=>{m&&m===_||a(_,"uncle",p+1)});else if(d.includes("grandchild"))(g.children||[]).forEach(_=>a(_,Gh(d,p+1),p+1));else if(d.includes("great-grandparent"))m||console.error(`${d} should have prev_rel_id`),g.parents.forEach(_=>a(_,Gh(d,p-1),p-1,c)),(g.children||[]).forEach(_=>{if(m&&m===_)return;const E=yL(p+1);E===0?a(_,"granduncle",p+1):E>0?a(_,Gh("granduncle",p+1),p+1):console.error(`${d} should have great_count > -1`)});else if(d==="nephew")(g.children||[]).forEach(_=>a(_,"grandnephew",p+1));else if(d.includes("grandnephew"))(g.children||[]).forEach(_=>a(_,Gh(d,p+1),p+1));else if(d==="uncle")(g.children||[]).forEach(_=>a(_,"1st Cousin",p+1));else if(d==="granduncle")(g.children||[]).forEach(_=>a(_,"1st Cousin 1x removed",p+1));else if(d.includes("great-granduncle")){const _=p+1,E=Math.abs(_);(g.children||[]).forEach(x=>a(x,`1st Cousin ${E}x removed`,_))}else d.slice(4).startsWith("Cousin")?(g.children||[]).forEach(_=>{const E=p+1,x=Math.abs(E),b=+d[0];E===0?a(_,`${Xy(b+1)} Cousin`,E):E<0?a(_,`${Xy(b+1)} Cousin ${x}x removed`,E):E>0&&a(_,`${Xy(b)} Cousin ${x}x removed`,E)}):console.error(`${d} not found`)}function s(c){const d=[];Object.keys(c).forEach(p=>{const m=c[p];if(m.includes("child")||m==="spouse")return;const w=vL(n.id,p,t);if(!w)return console.error(`${t.find(g=>g.id===p).data} not found in main_ancestry`);w.is_half_kin&&d.push(p)}),d.forEach(p=>{c[p]=`Half ${c[p]}`})}function o(c,d){Object.keys(c).forEach(p=>{const m=c[p],w=d.find(g=>g.id===p);if(m==="spouse"){const g=[];w.rels.parents.forEach(_=>(u(_).rels.children||[]).forEach(E=>g.push(E))),g.forEach(_=>{c[_]||(c[_]="sibling-in-law")})}m==="sibling"&&(w.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="sibling-in-law")}),m==="child"&&(w.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="child-in-law")}),m==="uncle"&&(w.rels.spouses||[]).forEach(g=>{c[g]||(c[g]="uncle-in-law")}),m.includes("Cousin")&&(w.rels.spouses||[]).forEach(g=>{c[g]||(c[g]=`${m} in-law`)})})}function l(c){Object.keys(c).forEach(d=>{const p=c[d],w=t.find(g=>g.id===d).data.gender;if(p.includes("parent")){const _=w==="M"?"father":w==="F"?"mother":"parent";c[d]=c[d].replace("parent",_)}else if(p.includes("sibling")){const _=w==="M"?"brother":w==="F"?"sister":"sibling";c[d]=c[d].replace("sibling",_)}else if(p.includes("child")){const _=w==="M"?"son":w==="F"?"daughter":"child";c[d]=c[d].replace("child",_)}else if(p.includes("uncle")){const _=w==="M"?"uncle":w==="F"?"aunt":"aunt/uncle";c[d]=c[d].replace("uncle",_)}else if(p.includes("nephew")){const _=w==="M"?"nephew":w==="F"?"niece":"neice/nephew";c[d]=c[d].replace("nephew",_)}})}function u(c){return t.find(d=>d.id===c)}}function vL(e,t,r){const n=l(e);let i,a,s;if(c(t),d(t),o(t),!i)return null;return{found:i,is_ancestor:a,is_half_kin:s};function o(m){if(i)return;if(m===e){a=!0,i=m,s=!1;return}const g=r.find(x=>x.id===m).rels,_=u(g),E=n.find(x=>x[0]&&_[0]&&x[0]===_[0]||x[1]&&_[1]&&x[1]===_[1]);if(E){i=_.filter((x,b)=>x===E[b]),s=p(_,E);return}g.parents.forEach(x=>o(x))}function l(m){const w=[];return g(m),w;function g(_){const x=r.find(b=>b.id===_).rels;w.push(u(x)),x.parents.forEach(b=>g(b))}}function u(m){return m.parents}function c(m){const w=r.find(_=>_.id===m);n.find(_=>_[0]===w.id||_[1]===w.id)&&(a=!0,i=m,s=!1)}function d(m){(r.find(g=>g.id===e).rels.spouses||[]).includes(m)&&(i=[e,m])}function p(m,w){return m.some((g,_)=>g!==w[_])||w.some((g,_)=>g!==m[_])}}function Xy(e){const t=["st","nd","rd"];return t[e-1]?e+t[e-1]:e+"th"}function yL(e){return Math.abs(e)-2}function Gh(e,t){const r=yL(t);return e.includes("great-")&&(e=e.split("great-")[1]),r===1?`great-${e}`:r>1?`${r}x-great-${e}`:(console.error(`${e} should have great_count > 1`),e)}function wL(e,t,r,n){var i;let a;const s=n[t].toLowerCase();if(s.includes("in-law")){a=t;const T=r.find(N=>N.id===a);s.includes("sister")||s.includes("brother")?t=e:t=(i=T.rels.spouses)===null||i===void 0?void 0:i.find(N=>n[N]&&!n[N].includes("in-law"))}const o=vL(e,t,r);if(!o)return console.error(`${t} not found in main_ancestry`);const l=o.is_ancestor?o.found:o.found[0],u=r.find(T=>T.id===l),c=hs(u,_),d=c.descendants().map(T=>T.data.id),p=E(e,d),m=E(t,d);g(c);const w=c.descendants().map(T=>{const N={id:T.data.id,data:JSON.parse(JSON.stringify(T.data.data)),kinship:n[T.data.id],rels:{parents:[],spouses:[],children:[]}};return T.children&&T.children.length>0&&(N.rels.children=T.children.map(M=>M.data.id)),N});return w.length>0&&!o.is_ancestor&&!o.is_half_kin&&x(w),a&&b(w),w;function g(T){T.children=(T.children||[]).filter(N=>!!(p.includes(N.data.id)||m.includes(N.data.id))),T.children.forEach(N=>g(N)),T.children.length===0&&delete T.children}function _(T){return[...T.rels.children||[]].map(M=>r.find(j=>j.id===M)).filter(M=>M)}function E(T,N){const M=[T];return j(T),M;function j(D){r.find(W=>W.id===D).rels.parents.forEach(W=>{N.includes(W)&&(M.push(W),j(W))})}}function x(T){const N=T[0];if(!o)return console.error(`${t} not found in main_ancestry`);const M=l===o.found[0]?o.found[1]:o.found[0];N.rels.spouses=[M];const j=r.find(H=>H.id===M),D={id:j.id,data:JSON.parse(JSON.stringify(j.data)),kinship:n[j.id],rels:{spouses:[N.id],children:N.rels.children,parents:[]}};T.push(D),(N.rels.children||[]).forEach(H=>{const X=r.find(U=>U.id===H),W=T.find(U=>U.id===H);W.rels.parents=[...X.rels.parents]})}function b(T){s.includes("sister")||s.includes("brother")?v(T):C(T)}function C(T){const N=T.find(H=>H.id===t),M=a;N.rels.spouses=[M];const j=r.find(H=>H.id===M),D={id:j.id,data:JSON.parse(JSON.stringify(j.data)),kinship:n[j.id],rels:{spouses:[N.id],children:[],parents:[]}};T.push(D)}function v(T){var N;const M=T.find(U=>U.id===t),j=k(a);T.push({id:a,data:JSON.parse(JSON.stringify(j.data)),kinship:n[a],rels:{spouses:[],children:[],parents:[]}});const D=[];j.rels.parents.forEach(U=>(k(U).rels.children||[]).forEach(V=>D.push(V)));const H=(N=k(t).rels.spouses)===null||N===void 0?void 0:N.find(U=>D.includes(U));M.rels.spouses=[H];const X=k(H),W={id:X.id,data:JSON.parse(JSON.stringify(X.data)),kinship:n[X.id],rels:{spouses:[M.id],children:[],parents:[]}};T.push(W),j.rels.parents.forEach(U=>{const V=k(U),K=V.data.gender==="M"?"Father-in-law":V.data.gender==="F"?"Mother-in-law":"Parent-in-law",Y={id:V.id,data:JSON.parse(JSON.stringify(V.data)),kinship:K,rels:{spouses:[],children:[H,a],parents:[]}},q=j.rels.parents.find(F=>F!==F);q&&Y.rels.parents.push(q),T.unshift(Y)})}function k(T){return r.find(N=>N.id===T)}}function _L(e,t,r){const n=e.id;r.forEach(s=>{s.rels.parents.includes(n)&&(s.rels.parents[s.rels.parents.indexOf(n)]=t),s.rels.spouses&&s.rels.spouses.includes(n)&&(s.rels.spouses=s.rels.spouses.filter(o=>o!==n),s.rels.spouses.includes(t)||s.rels.spouses.push(t)),s.rels.children&&s.rels.children.includes(n)&&(s.rels.children=s.rels.children.filter(o=>o!==n),s.rels.children.includes(t)||s.rels.children.push(t))});const i=r.find(s=>s.id===t),a=r.find(s=>s.id===n);if(!a)throw new Error("New rel not found");if(!i)throw new Error("Link rel not found");if((a.rels.children||[]).forEach(s=>{i.rels.children||(i.rels.children=[]),i.rels.children.includes(s)||i.rels.children.push(s)}),(a.rels.spouses||[]).forEach(s=>{i.rels.spouses||(i.rels.spouses=[]),i.rels.spouses.includes(s)||i.rels.spouses.push(s)}),i.rels.parents.length===0)i.rels.parents=[...a.rels.parents];else{const s=i.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="M"}),o=i.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="F"}),l=a.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="M"}),u=a.rels.parents.find(c=>{var d;return((d=r.find(p=>p.id===c))===null||d===void 0?void 0:d.data.gender)==="F"});l&&(s?(console.error("link rel already has father"),i.rels.parents[i.rels.parents.indexOf(s)]=l):i.rels.parents.push(l)),u&&(o?(console.error("link rel already has mother"),i.rels.parents[i.rels.parents.indexOf(o)]=u):i.rels.parents.push(u))}r.splice(r.findIndex(s=>s.id===n),1)}function Ire(e,t){const r=e._new_rel_data?t.find(o=>o.id===e._new_rel_data.rel_id):null,n=a(e,t),i=s(e,t);if(e._new_rel_data&&["son","daughter"].includes(e._new_rel_data.rel_type)){if(!r)throw new Error("Rel datum not found");i.push(...s(r,t))}return t.filter(o=>o.id!==e.id&&o.id!==(r==null?void 0:r.id)&&!o._new_rel_data&&!o.to_add&&!o.unknown).filter(o=>!n.includes(o.id)).filter(o=>!i.includes(o.id)).filter(o=>!(o.rels.spouses||[]).includes(e.id));function a(o,l){const u=[];return c(o),u;function c(d){d.rels.parents.forEach(p=>{if(p){u.push(p);const m=l.find(w=>w.id===p);if(!m)throw new Error("Parent not found");c(m)}})}}function s(o,l){const u=[];return c(o),u;function c(d){(d.rels.children?[...d.rels.children]:[]).forEach(m=>{u.push(m);const w=l.find(g=>g.id===m);if(!w)throw new Error("Child not found");c(w)})}}}function Pre({datum:e,store:t,fields:r,postSubmitHandler:n,addRelative:i,removeRelative:a,deletePerson:s,onCancel:o,editFirst:l,link_existing_rel_config:u,onFormCreation:c,no_edit:d,onSubmit:p,onDelete:m,canEdit:w,canDelete:g}){let _=g?g(e):!0;(w?w(e):!0)||(d=!0,_=!1);let x;const b={datum_id:e.id,fields:[],onSubmit:N,onCancel:o,onFormCreation:c,no_edit:d,gender_field:C()};if(e._new_rel_data)x=Object.assign(Object.assign({},b),{title:e._new_rel_data.label,new_rel:!0,editable:!0});else{if(!i)throw new Error("addRelative is required");if(!a)throw new Error("removeRelative is required");x=Object.assign(Object.assign({},b),{onDelete:j,addRelative:()=>i.activate(e),addRelativeCancel:()=>i.onCancel(),addRelativeActive:i.is_active,removeRelative:()=>a.activate(e),removeRelativeCancel:()=>a.onCancel(),removeRelativeActive:a.is_active,editable:!1,can_delete:_})}return(e._new_rel_data||e.to_add||e.unknown)&&u&&(x.linkExistingRelative=T(e,t.getData(),u)),d?x.editable=!1:l&&(x.editable=!0),r.forEach(D=>{D.type==="rel_reference"?v(D):D.type==="select"?k(D):x.fields.push({id:D.id,type:D.type,label:D.label,initial_value:e.data[D.id]})}),x;function C(){return{id:"gender",type:"switch",label:"Gender",initial_value:e.data.gender,disabled:!1,options:[{value:"M",label:"Male"},{value:"F",label:"Female"}]}}function v(D){D.getRelLabel||console.error("getRelLabel is not set"),D.rel_type==="spouse"&&(e.rels.spouses||[]).forEach(H=>{const X=t.getDatum(H);if(!X)throw new Error("Spouse not found");const W=`${D.id}__ref__${H}`,U={id:W,type:"rel_reference",label:D.label,rel_id:H,rel_label:D.getRelLabel(X),initial_value:e.data[W],rel_type:D.rel_type};x.fields.push(U)})}function k(D){if(!D.options&&!D.optionCreator)return console.error("optionCreator or options is not set for field",D);const H={id:D.id,type:D.type,label:D.label,initial_value:e.data[D.id],placeholder:D.placeholder,options:D.options||D.optionCreator(e)};x.fields.push(H)}function T(D,H,X){if(!X)throw new Error("link_existing_rel_config is required");return{title:X.title,select_placeholder:X.select_placeholder,options:Ire(D,H).map(U=>({value:U.id,label:X.linkRelLabel(U)})).sort((U,V)=>typeof U.label=="string"&&typeof V.label=="string"?U.label.localeCompare(V.label):U.labeln({})):(D.preventDefault(),H(),n({}));function H(){const X=new FormData(D.target);Ine(e,t.getData(),X)}}function M(D){const H=D.target.value;n({link_rel_id:H})}function j(){m?m(e,()=>s(),()=>n({delete:!0})):(s(),n({delete:!0}))}}function Rre(e,t){t.forEach(r=>{const n=r._new_rel_data;n&&n.rel_type==="spouse"&&(r.data.gender=r.data.gender==="M"?"F":"M")})}function Ore(e){for(let t=e.length-1;t>=0;t--){const r=e[t];r._new_rel_data&&(e.forEach(n=>{n.rels.parents.includes(r.id)&&n.rels.parents.splice(n.rels.parents.indexOf(r.id),1),n.rels.children&&n.rels.children.includes(r.id)&&n.rels.children.splice(n.rels.children.indexOf(r.id),1),n.rels.spouses&&n.rels.spouses.includes(r.id)&&n.rels.spouses.splice(n.rels.spouses.indexOf(r.id),1)}),e.splice(t,1))}}function Nre(e,t,r,n){let i={parent:!0,spouse:!0,child:!0};n&&(i=Object.assign(i,n(e))),e.rels.spouses||(e.rels.spouses=[]),e.rels.children||(e.rels.children=[]),i.parent&&a(),i.spouse&&(s(),o()),i.child&&l();function a(){const u=e.rels.parents,c=u.find(w=>{var g;return((g=t.find(_=>_.id===w))===null||g===void 0?void 0:g.data.gender)==="M"}),d=u.find(w=>{var g;return((g=t.find(_=>_.id===w))===null||g===void 0?void 0:g.data.gender)==="F"});if(u.length<2&&!c){const w=qa({data:{gender:"M"},rels:{children:[e.id]}});w._new_rel_data={rel_type:"father",label:r.father,rel_id:e.id},e.rels.parents.push(w.id),t.push(w)}if(u.length<2&&!d){const w=qa({data:{gender:"F"},rels:{children:[e.id]}});w._new_rel_data={rel_type:"mother",label:r.mother,rel_id:e.id},e.rels.parents.push(w.id),t.push(w)}const p=t.find(w=>w.id===e.rels.parents[0]),m=t.find(w=>w.id===e.rels.parents[1]);p.rels.spouses||(p.rels.spouses=[]),m.rels.spouses||(m.rels.spouses=[]),p.rels.spouses.includes(m.id)||p.rels.spouses.push(m.id),m.rels.spouses.includes(p.id)||m.rels.spouses.push(p.id),p.rels.children||(p.rels.children=[]),m.rels.children||(m.rels.children=[]),p.rels.children.includes(e.id)||p.rels.children.push(e.id),m.rels.children.includes(e.id)||m.rels.children.push(e.id)}function s(){if(e.rels.spouses||(e.rels.spouses=[]),e.rels.children){let u;e.rels.children.forEach(c=>{const d=t.find(p=>p.id===c);if(d.rels.parents.length===1){const m=t.find(w=>w.id===d.rels.parents[0]).data.gender==="M"?"F":"M";u||(u=qa({data:{gender:m},rels:{spouses:[e.id]}})),u._new_rel_data={rel_type:"spouse",label:r.spouse,rel_id:e.id},u.rels.children.push(d.id),e.rels.spouses.push(u.id),d.rels.parents.push(u.id),t.push(u)}})}}function o(){e.rels.spouses||(e.rels.spouses=[]);const u=e.data.gender==="M"?"F":"M",c=qa({data:{gender:u},rels:{spouses:[e.id]}});c._new_rel_data={rel_type:"spouse",label:r.spouse,rel_id:e.id},e.rels.spouses.push(c.id),t.push(c)}function l(){e.rels.children||(e.rels.children=[]),e.rels.spouses||(e.rels.spouses=[]),e.rels.spouses.forEach(u=>{const c=t.find(m=>m.id===u);c.rels.children||(c.rels.children=[]);const d=qa({data:{gender:"M"},rels:{parents:[e.id,c.id]}});d._new_rel_data={rel_type:"son",label:r.son,other_parent_id:c.id,rel_id:e.id},c.rels.children.push(d.id),e.rels.children.push(d.id),t.push(d);const p=qa({data:{gender:"F"},rels:{parents:[e.id,c.id]}});p._new_rel_data={rel_type:"daughter",label:r.daughter,other_parent_id:c.id,rel_id:e.id},c.rels.children.push(p.id),e.rels.children.push(p.id),t.push(p)})}return t}var Mre=(e,t,r)=>new Dre(e,t,r);class Dre{constructor(t,r,n){return this.store=t,this.onActivate=r,this.cancelCallback=n,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this.addRelLabels=this.addRelLabelsDefault(),this}activate(t){this.is_active&&this.onCancel(),this.onActivate(),this.is_active=!0,this.store.state.one_level_rels=!0;const r=this.store;this.datum=t;let n=this.datum.data.gender;Nre(t,this.getStoreData(),this.addRelLabels,this.canAdd),r.updateTree({}),this.onChange=i,this.onCancel=()=>a(this);function i(s,o){s!=null&&s._new_rel_data?o!=null&&o.link_rel_id?_L(s,o.link_rel_id,r.getData()):delete s._new_rel_data:s.id===t.id?s.data.gender!==n&&(n=s.data.gender,Rre(s,r.getData())):console.error("Something went wrong")}function a(s){s.is_active&&(s.is_active=!1,s.store.state.one_level_rels=!1,s.cleanUp(),s.cancelCallback(s.datum),s.datum=null,s.onChange=null,s.onCancel=null)}}setAddRelLabels(t){if(typeof t!="object"){console.error("add_rel_labels must be an object");return}for(const r in t){const n=r;this.addRelLabels[n]=t[n]}return this}setCanAdd(t){return this.canAdd=t,this}addRelLabelsDefault(){return{father:"Add Father",mother:"Add Mother",spouse:"Add Spouse",son:"Add Son",daughter:"Add Daughter"}}getStoreData(){return this.store.getData()}cleanUp(t){return t||(t=this.store.getData()),Ore(t),t}}var Fre=(e,t,r,n)=>new Lre(e,t,r,n);class Lre{constructor(t,r,n,i){return this.store=t,this.onActivate=r,this.cancelCallback=n,this.modal=i,this.datum=null,this.onChange=null,this.onCancel=null,this.is_active=!1,this}activate(t){this.is_active&&this.onCancel(),this.onActivate(),this.is_active=!0,this.store.state.one_level_rels=!0;const r=this.store;r.updateTree({}),this.datum=t,this.onChange=n.bind(this),this.onCancel=i.bind(this);function n(a,s){const o=p(a),l=t.rels;o==="parent"?u.call(this):o==="spouse"?c.call(this):o==="children"&&d.call(this);function u(){const m=a.data.id,w=r.getDatum(m);if(!w)throw new Error("Parent not found");if(!w.rels.children)throw new Error("Parent has no children");w.rels.children=w.rels.children.filter(g=>g!==t.id),l.parents=l.parents.filter(g=>g!==m),s()}function c(){const m=a.data;w()?g.call(this):_.call(this,!0);function w(){return(m.rels.children||[]).some(x=>{const b=r.getDatum(x);if(!b)throw new Error("Child not found");return!!b.rels.parents.includes(m.id)})}function g(){const E=t.data.gender==="M"?"f3-male-bg":t.data.gender==="F"?"f3-female-bg":null,x=m.data.gender==="M"?"f3-male-bg":m.data.gender==="F"?"f3-female-bg":null,b=sa("div").html(` -

You are removing a spouse relationship. Since there are shared children, please choose which parent should keep them in the family tree.

-
- - -
- `);b.selectAll('[data-option="assign-to-current"]').on("click",()=>{_(!0),this.modal.close()}),b.selectAll('[data-option="assign-to-spouse"]').on("click",()=>{_(!1),this.modal.close()}),this.modal.activate(b.node())}function _(E){a.data.rels.spouses=a.data.rels.spouses.filter(C=>C!==t.id),l.spouses=l.spouses.filter(C=>C!==a.data.id);const x=E?t:a.data,b=E?a.data:t;(l.children||[]).forEach(C=>{const v=r.getDatum(C);if(!v)throw new Error("Child not found");v.rels.parents.includes(b.id)&&(v.rels.parents=v.rels.parents.filter(k=>k!==b.id))}),b.rels.children&&(b.rels.children=b.rels.children.filter(C=>!(x.rels.children||[]).includes(C))),s()}}function d(){if(!l.children)throw new Error("Children not found");l.children=l.children.filter(m=>m!==a.data.id),a.data.rels.parents=a.data.rels.parents.filter(m=>m!==t.id),s()}function p(m){if(m.is_ancestry){if(t.rels.parents.includes(m.data.id))return"parent"}else if(m.spouse){if(!t.rels.spouses)throw new Error("Spouses not found");if(t.rels.spouses.includes(m.data.id))return"spouse"}else{if(!t.rels.children)throw new Error("Children not found");if(t.rels.children.includes(m.data.id))return"children"}return null}}function i(){if(this.is_active){if(this.is_active=!1,this.store.state.one_level_rels=!1,!this.datum)throw new Error("Datum not found");this.cancelCallback(this.datum),this.datum=null,this.onChange=null,this.onCancel=null}}}}function jre(e){return new Bre(e)}class Bre{constructor(t){this.cont=t,this.active=!1,this.onClose=null,this.modal_cont=ve(this.cont).append("div").attr("class","f3-modal").node(),ve(this.modal_cont).style("display","none"),this.create()}create(){const t=ve(this.modal_cont);t.html(` -
- × -
-
-
- `),t.select(".f3-modal-close").on("click",()=>{this.close()}),t.on("click",r=>{r.target==t.node()&&this.close()})}activate(t,{boolean:r,onAccept:n,onCancel:i}={}){this.reset();const a=ve(this.modal_cont).select(".f3-modal-content-inner").node();if(typeof t=="string"?a.innerHTML=t:a.appendChild(t),r){if(!n)throw new Error("onAccept is required");if(!i)throw new Error("onCancel is required");ve(this.modal_cont).select(".f3-modal-content-bottom").html(` - - - `),ve(this.modal_cont).select(".f3-modal-accept").on("click",()=>{n(),this.reset(),this.close()}),ve(this.modal_cont).select(".f3-modal-cancel").on("click",()=>{this.close()}),this.onClose=i}this.open()}reset(){this.onClose=null,ve(this.modal_cont).select(".f3-modal-content-inner").html(""),ve(this.modal_cont).select(".f3-modal-content-bottom").html("")}open(){this.modal_cont.style.display="block",this.active=!0}close(){this.modal_cont.style.display="none",this.active=!1,this.onClose&&this.onClose()}}var zre=(e,t)=>new Ure(e,t);class Ure{constructor(t,r){return this.cont=t,this.store=r,this.fields=[{type:"text",label:"first name",id:"first name"},{type:"text",label:"last name",id:"last name"},{type:"text",label:"birthday",id:"birthday"},{type:"text",label:"avatar",id:"avatar"}],this.is_fixed=!0,this.no_edit=!1,this.onChange=null,this.editFirst=!1,this.postSubmit=null,this.onFormCreation=null,this.createFormEdit=null,this.createFormNew=null,this.formCont=this.getFormContDefault(),this.modal=this.setupModal(),this.addRelativeInstance=this.setupAddRelative(),this.removeRelativeInstance=this.setupRemoveRelative(),this.history=this.createHistory(),this}open(t){t.rels||(t=t.data),this.addRelativeInstance.is_active?r(this):this.removeRelativeInstance.is_active?n(this,this.store.getTreeDatum(t.id)):this.cardEditForm(t);function r(i){t._new_rel_data?i.cardEditForm(t):(i.addRelativeInstance.onCancel(),i.cardEditForm(t),i.store.updateMainId(t.id),i.store.updateTree({}))}function n(i,a){if(!a)throw new Error("Tree datum not found");if(!i.removeRelativeInstance.datum)throw new Error("Remove relative datum not found");if(!i.removeRelativeInstance.onCancel)throw new Error("Remove relative onCancel not found");if(!i.removeRelativeInstance.onChange)throw new Error("Remove relative onChange not found");if(t.id===i.removeRelativeInstance.datum.id)i.removeRelativeInstance.onCancel(),i.cardEditForm(t);else{let s=function(){i.removeRelativeInstance.onCancel(),i.updateHistory(),i.store.updateTree({})};i.removeRelativeInstance.onChange(a,s.bind(i))}}}setupAddRelative(){return Mre(this.store,()=>t(this),n=>r(this,n));function t(n){n.removeRelativeInstance.is_active&&n.removeRelativeInstance.onCancel()}function r(n,i){n.store.updateMainId(i.id),n.store.updateTree({}),n.openFormWithId(i.id)}}setupRemoveRelative(){return Fre(this.store,t.bind(this),r.bind(this),this.modal);function t(){this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),n(this.cont,!0)}function r(i){n(this.cont,!1),this.store.updateMainId(i.id),this.store.updateTree({}),this.openFormWithId(i.id)}function n(i,a){ve(i).select("#f3Canvas").classed("f3-remove-relative-active",a)}}createHistory(){const t=gre(this.store,this._getStoreDataCopy.bind(this),i.bind(this)),r=this.cont.querySelector(".f3-nav-cont");if(!r)throw new Error("Nav cont not found");const n=vre(r,t);return t.changed(),n.updateButtons(),Object.assign(Object.assign({},t),{controls:n});function i(){var a;console.log("historyUpdateTree"),this.addRelativeInstance.is_active&&this.addRelativeInstance.onCancel(),this.removeRelativeInstance.is_active&&this.removeRelativeInstance.onCancel(),this.store.updateTree({initial:!1}),this.history.controls.updateButtons(),this.openFormWithId((a=this.store.getMainDatum())===null||a===void 0?void 0:a.id),this.onChange&&this.onChange()}}openWithoutRelCancel(t){this.cardEditForm(t)}getFormContDefault(){let t=ve(this.cont).select("div.f3-form-cont").node();return t||(t=ve(this.cont).append("div").classed("f3-form-cont",!0).node()),{el:t,populate(r){t.innerHTML="",t.appendChild(r)},open(){ve(t).classed("opened",!0)},close(){ve(t).classed("opened",!1).html("")}}}setFormCont(t){return this.formCont=t,this}cardEditForm(t){const r={},n=t==null?void 0:t._new_rel_data;n?r.onCancel=()=>this.addRelativeInstance.onCancel():(r.addRelative=this.addRelativeInstance,r.removeRelative=this.removeRelativeInstance,r.deletePerson=()=>{rL(t,this.store.getData()),this.openFormWithId(this.store.getLastAvailableMainDatum().id),this.store.updateTree({})});const i=Pre(Object.assign({store:this.store,datum:t,postSubmitHandler:o=>s(this,o),fields:this.fields,onCancel:()=>{},editFirst:this.editFirst,no_edit:this.no_edit,link_existing_rel_config:this.link_existing_rel_config,onFormCreation:this.onFormCreation,onSubmit:this.onSubmit,onDelete:this.onDelete,canEdit:this.canEdit,canDelete:this.canDelete},r)),a=n?(this.createFormNew||fre)(i,this.closeForm.bind(this)):(this.createFormEdit||dre)(i,this.closeForm.bind(this));this.formCont.populate(a),this.openForm();function s(o,l){if(o.addRelativeInstance.is_active){o.addRelativeInstance.onChange(t,l),o.postSubmit&&o.postSubmit(t,o.store.getData());const u=o.addRelativeInstance.datum;if(!u)throw new Error("Active datum not found");o.store.updateMainId(u.id),o.openWithoutRelCancel(u)}else(t.to_add||t.unknown)&&(l!=null&&l.link_rel_id)?(_L(t,l.link_rel_id,o.store.getData()),o.store.updateMainId(l.link_rel_id),o.openFormWithId(l.link_rel_id)):l!=null&&l.delete||(o.postSubmit&&o.postSubmit(t,o.store.getData()),o.openFormWithId(t.id));o.is_fixed||o.closeForm(),o.store.updateTree({}),o.updateHistory()}}openForm(){this.formCont.open()}closeForm(){this.formCont.close(),this.store.updateTree({})}fixed(){return this.is_fixed=!0,this.formCont.el&&ve(this.formCont.el).style("position","relative"),this}absolute(){return this.is_fixed=!1,this.formCont.el&&ve(this.formCont.el).style("position","absolute"),this}setCardClickOpen(t){return t.setOnCardClick((r,n)=>{this.isAddingRelative()?this.open(n.data):this.isRemovingRelative()?this.open(n.data):(this.open(n.data),t.onCardClickDefault(r,n))}),this}openFormWithId(t){if(t){const r=this.store.getDatum(t);if(!r)throw new Error("Datum not found");this.openWithoutRelCancel(r)}else{const r=this.store.getMainDatum();if(!r)throw new Error("Main datum not found");this.openWithoutRelCancel(r)}}setNoEdit(){return this.no_edit=!0,this}setEdit(){return this.no_edit=!1,this}setFields(t){const r=[];if(!Array.isArray(t))return console.error("fields must be an array"),this;for(const n of t)typeof n=="string"?r.push({type:"text",label:n,id:n}):typeof n=="object"?n.id?r.push(n):console.error("fields must be an array of objects with id property"):console.error("fields must be an array of strings or objects");return this.fields=r,this}setOnChange(t){return this.onChange=t,this}setCanEdit(t){return this.canEdit=t,this}setCanDelete(t){return this.canDelete=t,this}setCanAdd(t){return this.addRelativeInstance.setCanAdd(t),this}addRelative(t){return t||(t=this.store.getMainDatum()),this.addRelativeInstance.activate(t),this}setupModal(){return jre(this.cont)}setEditFirst(t){return this.editFirst=t,this}isAddingRelative(){return this.addRelativeInstance.is_active}isRemovingRelative(){return this.removeRelativeInstance.is_active}setAddRelLabels(t){return this.addRelativeInstance.setAddRelLabels(t),this}setLinkExistingRelConfig(t){return this.link_existing_rel_config=t,this}setOnFormCreation(t){return this.onFormCreation=t,this}setCreateFormEdit(t){return this.createFormEdit=t,this}setCreateFormNew(t){return this.createFormNew=t,this}_getStoreDataCopy(){let t=JSON.parse(JSON.stringify(this.store.getData()));return this.addRelativeInstance.is_active&&(t=this.addRelativeInstance.cleanUp(t)),t=One(t),t}getStoreDataCopy(){return this.exportData()}exportData(){let t=this._getStoreDataCopy();return t=une(t,this.store.state.legacy_format),t}getDataJson(){return JSON.stringify(this.exportData(),null,2)}updateHistory(){this.history&&(this.history.changed(),this.history.controls.updateButtons()),this.onChange&&this.onChange()}setPostSubmit(t){return this.postSubmit=t,this}setOnSubmit(t){return this.onSubmit=t,this}setOnDelete(t){return this.onDelete=t,this}destroy(){return this.history.controls.destroy(),this.history=null,this.formCont.el&&ve(this.formCont.el).remove(),this.addRelativeInstance.onCancel&&this.addRelativeInstance.onCancel(),this.store.updateTree({}),this}}function $re(e,t,r){const n=[];t.data.forEach(p=>{p.coparent&&p.data.data.gender==="F"&&n.push({nodes:[p,p.coparent],id:`${p.data.id}--${p.coparent.data.id}`}),p.spouses&&p.spouses.forEach(m=>n.push({nodes:[m,p],id:`${m.data.id}--${p.data.id}`}))});const i=ve(e).select(".links_view").selectAll("g.link-text").data(n,p=>p.id),a=i.exit(),s=i.enter().append("g").attr("class","link-text"),o=s.merge(i),l=(p,m)=>p.spouse&&p.data.data.gender==="F"?p.x-r.node_separation/2:m.spouse&&m.data.data.gender==="M"?m.x+r.node_separation/2:Math.min(p.x,m.x)+r.node_separation/2;a.each(d),s.each(u),o.each(c);function u(p){const[m,w]=p.nodes,g=ve(this);g.attr("transform",`translate(${l(m,w)}, ${m.y-3})`).style("opacity",0),g.append("text").style("font-size","12px").style("fill","#fff").style("text-anchor","middle")}function c(p){const[m,w]=p.nodes,g=ve(this),_=r.initial?sd(t,m,r.transition_time):0;g.select("text").text(r.linkSpouseText(m,w)),g.transition("text").duration(r.transition_time).delay(_).attr("transform",`translate(${l(m,w)}, ${m.y-3})`),g.transition("text-op").duration(100).delay(_+r.transition_time).style("opacity",1)}function d(p){const m=ve(this);m.transition("text").duration(100).style("opacity",0).on("end",()=>m.remove())}}function Hre(e,t,r={}){return new qre(e,t,r)}class qre{constructor(t,r,n={}){this.cont=t,this.options=[],this.onSelect=r,this.config=n,this.autocomplete_cont=ve(this.cont).append("div").attr("class","f3-autocomplete-cont").node(),this.create()}create(){var t;const r=this;ve(this.autocomplete_cont).html(` -
-
- - ${tre()} -
-
-
- `);const n=ve(this.autocomplete_cont).select(".f3-autocomplete"),i=n.select("input"),a=n.select(".f3-autocomplete-items");n.on("focusout",()=>{setTimeout(()=>{n.node().contains(document.activeElement)||o()},200)}),i.on("focus",()=>{u(),s()}).on("input",s).on("keydown",c),a.on("wheel",d=>d.stopPropagation()),n.select(".f3-autocomplete-toggle").on("click",d=>{d.stopPropagation();const p=n.classed("active");n.classed("active",!p),p?o():(i.node().focus(),s())});function s(){n.classed("active",!0);const d=i.property("value"),p=r.options.filter(g=>g.label.toLowerCase().includes(d.toLowerCase()));p.forEach(m),p.sort(w),l(p);function m(g){const _=g.label.toLowerCase().indexOf(d.toLowerCase());_!==-1?g.label_html=E():g.label_html=g.label;function E(){return g.label.substring(0,_)+""+g.label.substring(_,_+d.length)+""+g.label.substring(_+d.length)}}function w(g,_){return g.label<_.label?-1:g.label>_.label?1:0}}function o(){n.classed("active",!1),l([])}function l(d){a.selectAll("div.f3-autocomplete-item").data(d,m=>m==null?void 0:m.value).join("div").attr("class","f3-autocomplete-item").on("click",(m,w)=>{r.onSelect(w.value)}).html(m=>m.optionHtml?m.optionHtml(m):p(m));function p(m){return`
${m.label_html}
`}}function u(){r.options=r.getOptions()}function c(d){const p=a.selectAll("div.f3-autocomplete-item").nodes(),m=p.findIndex(g=>ve(g).classed("f3-selected"));if(d.key==="ArrowDown"){d.preventDefault();const g=m0?m-1:p.length-1;w(p,g)}else if(d.key==="Enter"&&m!==-1){d.preventDefault();const g=ve(p[m]).datum();g&&r.onSelect(g.value)}function w(g,_){g.forEach(E=>ve(E).classed("f3-selected",!1)),g[_]&&(ve(g[_]).classed("f3-selected",!0),g[_].scrollIntoView({block:"nearest"}))}}}setOptionsGetter(t){return this.getOptions=t,this}setOptionsGetterPerson(t,r){return this.getOptions=()=>{const a=[];return t().forEach(o=>{o.to_add||o.unknown||o._new_rel_data||a.find(l=>l.value===o.id)||a.push({label:r(o),value:o.id,optionHtml:n(o)})}),a},this;function n(a){const s=!nL(a,t());return o=>` -
- ${aL()} - ${o.label_html} - ${s?`${nre()}`:""} -
- `}function i(a){return a.data.gender==="M"?"male":a.data.gender==="F"?"female":"genderless"}}destroy(){this.autocomplete_cont.remove()}}function bL(e){const t=[];return Array.isArray(e)?e.forEach(r=>{typeof r=="function"?t.push(r):typeof r=="string"?t.push(n=>n.data[r]):Array.isArray(r)&&t.push(n=>r.map(i=>n.data[i]).join(" "))}):typeof e=="function"?t.push(e):typeof e=="string"&&t.push(r=>r.data[e]),t}function Gre(e,t,r,n){const i=r.is_ancestry,a=t.data();let s=[],o=[];if(i){const d=[];let p=r,m=0;for(;p!==n&&m<100;){m++;const g=a.find(_=>_.spouse===!0&&(_.source===p||_.target===p));if(g){const _=a.filter(x=>Array.isArray(x.target)&&x.target.includes(g.source)&&x.target.includes(g.target)),E=c(_,n);if(!E)break;d.push(g),d.push(E),p=E.source}else{const _=a.filter(x=>Array.isArray(x.target)&&x.target.includes(p)),E=c(_,n);if(!E)break;d.push(E),p=E.source}}t.each(function(g){d.includes(g)&&s.push({link:g,node:this})});const w=u(r,d);e.each(function(g){w.includes(g)&&o.push({card:g,node:this})})}else if(r.spouse&&r.spouse.data===n.data){t.each(function(p){p.target===r&&s.push({link:p,node:this})});const d=[n,r];e.each(function(p){d.includes(p)&&o.push({card:p,node:this})})}else if(r.sibling){t.each(function(p){if(!Array.isArray(r.parents))throw new Error("datum.parents is not an array");p.source===r&&s.push({link:p,node:this}),p.source===n&&Array.isArray(p.target)&&p.target.length===2&&s.push({link:p,node:this}),r.parents.includes(p.source)&&!Array.isArray(p.target)&&r.parents.includes(p.target)&&s.push({link:p,node:this})});const d=[n,r,...r.parents||[]];e.each(function(p){d.includes(p)&&o.push({card:p,node:this})})}else{let d=[],p=r,m=0;for(;p!==n&&m<100;){m++;const g=a.find(_=>_.target===p&&Array.isArray(_.source));if(g){const _=a.find(E=>E.spouse===!0&&l([E.source,E.target],g.source));d.push(g),d.push(_),_?p=_.source:p=g.source[0]}else{const _=a.find(E=>E.target===p&&!Array.isArray(E.source));if(!_)break;d.push(_),p=_.source}}t.each(function(g){d.includes(g)&&s.push({link:g,node:this})});const w=u(n,d);e.each(function(g){w.includes(g)&&o.push({card:g,node:this})})}return{cards_node_to_main:o,links_node_to_main:s};function l(d,p){return d.every(m=>p.some(w=>m===w))}function u(d,p){const m=p.filter(_=>_).reduce((_,E)=>(Array.isArray(E.target)?_.push(...E.target):_.push(E.target),Array.isArray(E.source)?_.push(...E.source):_.push(E.source),_),[]),w=[n,r];return g(d),w;function g(_){_.data.rels.children&&_.data.rels.children.forEach(E=>{const x=m.find(b=>b.data.id===E);x&&(w.push(x),g(x))})}}function c(d,p){return d.length===0?null:d.length===1?d[0]:d.find(m=>m.source===p)}}function S2(e,t){return new Wre(e,t)}let Wre=class{constructor(t,r){return this.cont=t,this.svg=this.cont.querySelector("svg.main_svg"),this.store=r,this.card_display=[n=>`${n.data["first name"]} ${n.data["last name"]}`],this.cardImageField="avatar",this.onCardClick=this.onCardClickDefault,this.style="default",this.mini_tree=!1,this.card_dim={},this}getCard(){return hL({store:this.store,card_display:this.card_display,cardImageField:this.cardImageField,defaultPersonIcon:this.defaultPersonIcon,onCardClick:this.onCardClick,style:this.style,mini_tree:this.mini_tree,onCardUpdate:this.onCardUpdate,card_dim:this.card_dim,empty_card_label:this.store.state.single_parent_empty_card_label||"",unknown_card_label:this.store.state.unknown_card_label||"",cardInnerHtmlCreator:this.cardInnerHtmlCreator,duplicate_branch_toggle:this.store.state.duplicate_branch_toggle,onCardMouseenter:this.onCardMouseenter?this.onCardMouseenter.bind(this):void 0,onCardMouseleave:this.onCardMouseleave?this.onCardMouseleave.bind(this):void 0})}setCardDisplay(t){return this.card_display=bL(t),this}setCardImageField(t){return this.cardImageField=t,this}setDefaultPersonIcon(t){return this.defaultPersonIcon=t,this}setOnCardClick(t){return this.onCardClick=t,this}onCardClickDefault(t,r){this.store.updateMainId(r.data.id),this.store.updateTree({})}setStyle(t){return this.style=t,this}setMiniTree(t){return this.mini_tree=t,this}setOnCardUpdate(t){return this.onCardUpdate=t,this}setCardDim(t){if(typeof t!="object")return console.error("card_dim must be an object"),this;for(let r in t){const n=t[r];if(typeof n!="number"&&typeof n!="boolean")return console.error(`card_dim.${r} must be a number or boolean`),this;r==="width"&&(r="w"),r==="height"&&(r="h"),r==="img_width"&&(r="img_w"),r==="img_height"&&(r="img_h"),r==="img_x"&&(r="img_x"),r==="img_y"&&(r="img_y"),this.card_dim[r]=n}return this}resetCardDim(){return this.card_dim={},this}setCardInnerHtmlCreator(t){return this.cardInnerHtmlCreator=t,this}setOnHoverPathToMain(){return this.onCardMouseenter=this.onEnterPathToMain.bind(this),this.onCardMouseleave=this.onLeavePathToMain.bind(this),this}unsetOnHoverPathToMain(){return this.onCardMouseenter=void 0,this.onCardMouseleave=void 0,this}onEnterPathToMain(t,r){this.to_transition=r.data.id;const n=this.store.getTreeMainDatum(),i=ve(this.cont).select("div.cards_view").selectAll(".card_cont"),a=ve(this.cont).select("svg.main_svg .links_view").selectAll(".link"),{cards_node_to_main:s,links_node_to_main:o}=Gre(i,a,r,n);return s.forEach(l=>{const u=Math.abs(r.depth-l.card.depth)*200;ve(l.node.querySelector("div.card-inner")).transition().duration(0).delay(u).on("end",()=>this.to_transition===r.data.id&&ve(l.node.querySelector("div.card-inner")).classed("f3-path-to-main",!0))}),o.forEach(l=>{const u=Math.abs(r.depth-l.link.depth)*200;ve(l.node).transition().duration(0).delay(u).on("end",()=>this.to_transition===r.data.id&&ve(l.node).classed("f3-path-to-main",!0))}),this}onLeavePathToMain(t,r){return this.to_transition=!1,ve(this.cont).select("div.cards_view").selectAll("div.card-inner").classed("f3-path-to-main",!1),ve(this.cont).select("svg.main_svg .links_view").selectAll(".link").classed("f3-path-to-main",!1),this}};function C2(e,t){return new Vre(e,t)}let Vre=class{constructor(t,r){return this.cont=t,this.store=r,this.svg=this.cont.querySelector("svg.main_svg"),this.card_dim={w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5},this.card_display=[],this.mini_tree=!0,this.link_break=!1,this.onCardClick=this.onCardClickDefault.bind(this),this}getCard(){return mx({store:this.store,svg:this.svg,card_dim:this.card_dim,card_display:this.card_display,mini_tree:this.mini_tree,link_break:this.link_break,onCardClick:this.onCardClick,onCardUpdate:this.onCardUpdate})}setCardDisplay(t){return this.card_display=bL(t),this}setCardDim(t){if(typeof t!="object")return console.error("card_dim must be an object"),this;for(let r in t){const n=t[r];if(typeof n!="number"&&typeof n!="boolean")return console.error(`card_dim.${r} must be a number or boolean`),this;r==="width"&&(r="w"),r==="height"&&(r="h"),r==="img_width"&&(r="img_w"),r==="img_height"&&(r="img_h"),r==="img_x"&&(r="img_x"),r==="img_y"&&(r="img_y"),this.card_dim[r]=n}return kre(this.svg,this.card_dim),this}setOnCardUpdate(t){return this.onCardUpdate=t,this}setMiniTree(t){return this.mini_tree=t,this}setLinkBreak(t){return this.link_break=t,this}onCardClickDefault(t,r){this.store.updateMainId(r.data.id),this.store.updateTree({})}setOnCardClick(t){return this.onCardClick=t,this}};function Qre(e,t){return new Kre(e,t)}class Kre{constructor(t,r){this.getCard=null,this.transition_time=2e3,this.linkSpouseText=null,this.personSearch=null,this.is_card_html=!1,this.beforeUpdate=null,this.afterUpdate=null,this.cont=Yre(t);const{svg:n}=YF(this.cont);this.svg=n,Xre(this.cont);const i=r&&r.length>0?r[0].id:"";return this.store=this.createStore(r,i),this.setOnUpdate(),this.editTreeInstance=null,this}createStore(t,r){return VF({data:t,main_id:r,node_separation:250,level_separation:150,single_parent_empty_card:!0,is_horizontal:!1})}setOnUpdate(){this.store.setOnUpdate(t=>{this.beforeUpdate&&this.beforeUpdate(t),t=Object.assign({transition_time:this.store.state.transition_time},t||{}),this.is_card_html&&(t=Object.assign({},t||{},{cardHtml:!0})),eL(this.store.getTree(),this.svg,this.getCard(),t||{}),this.linkSpouseText&&$re(this.svg,this.store.getTree(),Object.assign({},t||{},{linkSpouseText:this.linkSpouseText,node_separation:this.store.state.node_separation})),this.afterUpdate&&this.afterUpdate(t)})}updateTree(t={initial:!1}){return this.store.updateTree(t),this}updateData(t){return this.store.updateData(t),this}setCardYSpacing(t){return typeof t!="number"?(console.error("card_y_spacing must be a number"),this):(this.store.state.level_separation=t,this)}setCardXSpacing(t){return typeof t!="number"?(console.error("card_x_spacing must be a number"),this):(this.store.state.node_separation=t,this)}setOrientationVertical(){return this.store.state.is_horizontal=!1,this}setOrientationHorizontal(){return this.store.state.is_horizontal=!0,this}setShowSiblingsOfMain(t){return this.store.state.show_siblings_of_main=t,this}setModifyTreeHierarchy(t){return this.store.state.modifyTreeHierarchy=t,this}setPrivateCardsConfig(t){return this.store.state.private_cards_config=t,this}setLinkSpouseText(t){return this.linkSpouseText=t,this}setSingleParentEmptyCard(t,{label:r="Unknown"}={}){return this.store.state.single_parent_empty_card=t,this.store.state.single_parent_empty_card_label=r,this.editTreeInstance&&this.editTreeInstance.addRelativeInstance.is_active&&this.editTreeInstance.addRelativeInstance.onCancel(),px(this.store.getData()||[]),this}setCard(t){if(t===S2)return this.setCardHtml();if(t===C2)return this.setCardSvg();throw new Error("Card must be an instance of cardHtml or cardSvg")}setCardHtml(){const t=this.cont.querySelector("#htmlSvg");if(!t)throw new Error("htmlSvg not found");this.is_card_html=!0,this.svg.querySelector(".cards_view").innerHTML="",t.style.display="block";const r=S2(this.cont,this.store);return this.getCard=()=>r.getCard(),r}setCardSvg(){const t=this.cont.querySelector("#htmlSvg");if(!t)throw new Error("htmlSvg not found");this.is_card_html=!1,this.svg.querySelector(".cards_view").innerHTML="",t.style.display="none";const r=C2(this.cont,this.store);return this.getCard=()=>r.getCard(),r}setTransitionTime(t){return this.store.state.transition_time=t,this}setSortChildrenFunction(t){return this.store.state.sortChildrenFunction=t,this}setSortSpousesFunction(t){return this.store.state.sortSpousesFunction=t,this}setAncestryDepth(t){return this.store.state.ancestry_depth=t,this}setProgenyDepth(t){return this.store.state.progeny_depth=t,this}getMaxDepth(t){return rne(t,this.store.getData())}calculateKinships(t,r={}){return gL(t,this.store.getData(),r)}getKinshipsDataStash(t,r){return wL(t,r,this.store.getData(),this.calculateKinships(t))}setDuplicateBranchToggle(t){return this.store.state.duplicate_branch_toggle=t,this}editTree(){return this.editTreeInstance=zre(this.cont,this.store)}updateMain(t){let r;return t.id?r=t.id:r=t.data.id,this.store.updateMainId(r),this.store.updateTree({}),this}updateMainId(t){return this.store.updateMainId(t),this}getMainDatum(){return this.store.getMainDatum()}setBeforeUpdate(t){return this.beforeUpdate=t,this}setAfterUpdate(t){return this.afterUpdate=t,this}setPersonDropdown(t,{cont:r=this.cont.querySelector(".f3-nav-cont"),onSelect:n,placeholder:i="Search"}={}){n||(n=a.bind(this)),this.personSearch=Hre(r,n,{placeholder:i}),this.personSearch.setOptionsGetterPerson(this.store.getData,t);function a(s){const o=this.store.getDatum(s);if(!o)throw new Error("Datum not found");this.editTreeInstance&&this.editTreeInstance.open(o),this.updateMainId(s),this.updateTree({initial:!1})}return this}unSetPersonSearch(){return this.personSearch.destroy(),this.personSearch=null,this}}function Yre(e){if(typeof e=="string"&&(e=document.querySelector(e)),!e)throw new Error("cont not found");return e}function Xre(e){ve(e).append("div").attr("class","f3-nav-cont")}function Jre(e,t,r){const{self_id:n,getLabel:i,title:a}=e,s=gL(n,r,e),o=s[t];if(!o)return;let l=o;o==="self"?l="You":l=xL(l);const u=` -
-
- ${a} - - ${l} - ${rre()} - -
-
- `,c=sa("div").html(u).select("div").node();let d=null;return ve(c).select(".f3-kinship-info-icon").on("click",m=>p(m,c)),c;function p(m,w){let E=m.clientX-250-10,x=m.clientY-400-10;if(E+250>window.innerWidth&&(E=window.innerWidth-250-10),x<0&&(x=10),d&&d.active){d.close(),d=null;return}d=mL(w),ve(d.popup_cont).style("width","250px").style("height","400px").style("left",`${E}px`).style("top",`${x}px`);const b=d.popup_cont.querySelector(".f3-popup-content-inner");d.activate(),Zre(n,t,r,s,b,i)}}function Zre(e,t,r,n,i,a){ve(i).select("#SmallChart").node()||ve(i).append("div").attr("id","SmallChart").attr("class","f3");const s=ve("#SmallChart");s.selectAll("*").remove();const o=wL(e,t,r,n);let l=!0;const u=s.append("div");c(o);function c(d){const p=Qre("#SmallChart",d).setTransitionTime(500).setCardXSpacing(170).setCardYSpacing(70).setSingleParentEmptyCard(!1),m=p.setCardHtml().setStyle("rect").setCardInnerHtmlCreator(E=>w(E)).setOnCardUpdate(function(E){ve(this).select(".card").classed("card-main",!1)});m.onCardClick=(E,x)=>{},p.updateTree({initial:!0}),setTimeout(()=>_(.65),100),g();function w(E){let x=E.data.kinship==="self"?"You":E.data.kinship;return x=xL(x),l||(x=a(E.data)),` -
-
${x}
-
- `;function b(){return E.data.kinship==="self"?"card-kinship-self"+(l?"":" f3-real-label"):E.data.id===t?"card-kinship-rel":"card-kinship-default"}}function g(){u.classed("f3-kinship-labels-toggle",!0),u.append("label").text("Kinship labels").append("input").attr("type","checkbox").attr("checked",!0).on("change",E=>{l=!l,p.updateTree({initial:!1,tree_position:"inherit"})})}function _(E){const x=p.cont.querySelector("svg.main_svg");mne(x).k>E&&gne(x,E)}}}function xL(e){return e=e[0].toUpperCase()+e.slice(1),e.includes("great-")&&(e=e.replace("great-","Great-")),e}var eie=Object.freeze({__proto__:null,Card:Are,CardHtml:hL,CardSvg:mx,appendElement:R1,infoPopup:mL,kinshipInfo:Jre});Object.assign({},xne,{setupHtmlSvg:Sne,setupReactiveTreeData:Cne,getUniqueId:kne});function tie(e,t){return e.husb===t?e.wife:e.husb}function k2(e,t){const r=new Map;return e.fams.forEach(n=>r.set(n.id,n)),e.indis.map(n=>{var d,p;const i=n.famc&&r.get(n.famc)||void 0,a=(n.fams||[]).map(m=>r.get(m)).filter(m=>m!==void 0),s=i==null?void 0:i.husb,o=i==null?void 0:i.wife,l=[s,o].filter(m=>!!m),u=a.map(m=>tie(m,n.id)).filter(m=>m!==void 0),c=a.flatMap(m=>m.children||[]);return{id:n.id,data:{"first name":n.firstName,"last name":n.lastName,birthday:nu(n.birth,t),avatar:(p=(d=n.images)==null?void 0:d[0])==null?void 0:p.url,gender:n.sex},rels:{parents:l,spouses:u,children:c}}})}class nie{initializeChart(t,r){const n=k2(t.data,r);this.store=VF({data:n,main_id:t.selection.id});const i=KF(document.querySelector("#dotatsoSvgContainer")),a=eie.CardSvg({store:this.store,svg:i,card_display:[s=>`${s.data["first name"]||""} ${s.data["last name"]||""}`,s=>`${s.data.birthday||""}`],mini_tree:!0,link_break:!1,onCardClick:(s,o)=>t.onSelection({id:o.data.id,generation:0}),card_dim:{w:220,h:70,text_x:75,text_y:15,img_w:60,img_h:60,img_x:5,img_y:5}});this.store.setOnUpdate(s=>{eL(this.store.getTree(),i,a,s||{})}),this.store.updateTree({initial:!0})}updateChart(t,r){const n=k2(t.data,r);this.store.updateData(n),this.store.updateMainId(t.selection.id),this.store.updateTree()}}function rie(e){const t=J.useRef(new nie),r=cF(e),n=dr();return J.useEffect(()=>{r?t.current.updateChart(e,n):t.current.initializeChart(e,n)}),O.jsx("div",{id:"dotatsoSvgContainer"})}const iie=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ld{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}ld.prototype.property={};ld.prototype.normal={};ld.prototype.space=null;function EL(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&uie.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(T2,hie);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!T2.test(a)){let s=a.replace(cie,die);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=gx}return new i(n,t)}function die(e){return"-"+e.toLowerCase()}function hie(e){return e.charAt(1).toUpperCase()}const pie=EL([kL,CL,IL,PL,sie],"html"),RL=EL([kL,CL,IL,PL,lie],"svg"),I2={}.hasOwnProperty;function mie(e,t){const r=t||{};function n(i,...a){let s=n.invalid;const o=n.handlers;if(i&&I2.call(i,e)){const l=String(i[e]);s=I2.call(o,l)?o[l]:n.unknown}if(s)return s.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const gie=/["&'<>`]/g,vie=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yie=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,wie=/[|\\{}()[\]^$+*?.]/g,P2=new WeakMap;function _ie(e,t){if(e=e.replace(t.subset?bie(t.subset):gie,n),t.subset||t.escapeOnly)return e;return e.replace(vie,r).replace(yie,n);function r(i,a,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(a+2),t)}function n(i,a,s){return t.format(i.charCodeAt(0),s.charCodeAt(a+1),t)}}function bie(e){let t=P2.get(e);return t||(t=xie(e),P2.set(e,t)),t}function xie(e){const t=[];let r=-1;for(;++r",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Tie=["cent","copy","divide","gt","lt","not","para","times"],OL={}.hasOwnProperty,M1={};let Wh;for(Wh in Zy)OL.call(Zy,Wh)&&(M1[Zy[Wh]]=Wh);const Iie=/[^\dA-Za-z]/;function Pie(e,t,r,n){const i=String.fromCharCode(e);if(OL.call(M1,i)){const a=M1[i],s="&"+a;return r&&Aie.includes(a)&&!Tie.includes(a)&&(!n||t&&t!==61&&Iie.test(String.fromCharCode(t)))?s:s+";"}return""}function Rie(e,t,r){let n=Sie(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Pie(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=kie(e,t,r.omitOptionalSemicolons);a.length|^->||--!>|"],Mie=["<",">"];function Die(e,t,r,n){return n.settings.bogusComments?"":"";function i(a){return gl(a,Object.assign({},n.settings.characterReferences,{subset:Mie}))}}function Fie(e,t,r,n){return""}function R2(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function Lie(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function jie(e){return e.join(" ").trim()}const Bie=/[ \t\n\f\r]/g;function vx(e){return typeof e=="object"?e.type==="text"?O2(e.value):!1:O2(e)}function O2(e){return e.replace(Bie,"")===""}const ln=ML(1),NL=ML(-1),zie=[];function ML(e){return t;function t(r,n,i){const a=r?r.children:zie;let s=(n||0)+e,o=a[s];if(!i)for(;o&&vx(o);)s+=e,o=a[s];return o}}const Uie={}.hasOwnProperty;function DL(e){return t;function t(r,n,i){return Uie.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const yx=DL({body:Hie,caption:e0,colgroup:e0,dd:Vie,dt:Wie,head:e0,html:$ie,li:Gie,optgroup:Qie,option:Kie,p:qie,rp:N2,rt:N2,tbody:Xie,td:M2,tfoot:Jie,th:M2,thead:Yie,tr:Zie});function e0(e,t,r){const n=ln(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&vx(n.value.charAt(0)))}function $ie(e,t,r){const n=ln(r,t);return!n||n.type!=="comment"}function Hie(e,t,r){const n=ln(r,t);return!n||n.type!=="comment"}function qie(e,t,r){const n=ln(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function Gie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&n.tagName==="li"}function Wie(e,t,r){const n=ln(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Vie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function N2(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function Qie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function Kie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function Yie(e,t,r){const n=ln(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Xie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Jie(e,t,r){return!ln(r,t)}function Zie(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function M2(e,t,r){const n=ln(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const eae=DL({body:rae,colgroup:iae,head:nae,html:tae,tbody:aae});function tae(e){const t=ln(e,-1);return!t||t.type!=="comment"}function nae(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function rae(e){const t=ln(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&vx(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function iae(e,t,r){const n=NL(r,t),i=ln(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&yx(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function aae(e,t,r){const n=NL(r,t),i=ln(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&yx(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Vh={name:[[` -\f\r &/=>`.split(""),` -\f\r "&'/=>\``.split("")],[`\0 -\f\r "&'/<=>`.split(""),`\0 -\f\r "&'/<=>\``.split("")]],unquoted:[[` -\f\r &>`.split(""),`\0 -\f\r "&'<=>\``.split("")],[`\0 -\f\r "&'<=>\``.split(""),`\0 -\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function oae(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const o=[];let l;i.space==="html"&&e.tagName==="svg"&&(n.schema=RL);const u=sae(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(s=!1),(u||!a||!eae(e,t,r))&&(o.push("<",e.tagName,u?" "+u:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(c),!s&&(!a||!yx(e,t,r))&&o.push(""),o.join("")}function sae(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=lae(e,i,t[i]);a&&r.push(a)}}for(;++nR2(r,e.alternative)&&(s=e.alternative),o=s+gl(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Vh.single:Vh.double)[i][a],attribute:!0}))+s),l+(o&&"="+o))}const uae=["<","&"];function FL(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:gl(e.value,Object.assign({},n.settings.characterReferences,{subset:uae}))}function cae(e,t,r,n){return n.settings.allowDangerousHtml?e.value:FL(e,t,r,n)}function fae(e,t,r,n){return n.all(e)}const dae=mie("type",{invalid:hae,unknown:pae,handlers:{comment:Die,doctype:Fie,element:oae,raw:cae,root:fae,text:FL}});function hae(e){throw new Error("Expected node, not `"+e+"`")}function pae(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const mae={},gae={},vae=[];function yae(e,t){const r=t||mae,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:wae,all:_ae,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||iie,characterReferences:r.characterReferences||gae,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?RL:pie,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function wae(e,t,r){return dae(e,t,r,this)}function _ae(e){const t=[],r=e&&e.children||vae;let n=-1;for(;++ni?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);a0?(ki(e,e.length,0,t),e):t}const L2={}.hasOwnProperty;function Cae(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function vl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hi=xo(/[A-Za-z]/),lr=xo(/[\dA-Za-z]/),Tae=xo(/[#-'*+\--9=?A-Z^-~]/);function D1(e){return e!==null&&(e<32||e===127)}const F1=xo(/\d/),Iae=xo(/[\dA-Fa-f]/),Pae=xo(/[!-/:-@[-`{-~]/);function Ye(e){return e!==null&&e<-2}function Zn(e){return e!==null&&(e<0||e===32)}function yt(e){return e===-2||e===-1||e===32}const Rae=xo(new RegExp("\\p{P}|\\p{S}","u")),Oae=xo(/\s/);function xo(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function bu(e){const t=[];let r=-1,n=0,i=0;for(;++r55295&&a<57344){const o=e.charCodeAt(r+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Pt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return yt(l)?(e.enter(r),o(l)):t(l)}function o(l){return yt(l)&&a++s))return;const T=t.events.length;let N=T,M,j;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(M){j=t.events[N][1].end;break}M=!0}for(E(n),k=T;kb;){const v=r[C];t.containerState=v[1],v[0].exit.call(t,e)}r.length=b}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Lae(e,t,r){return Pt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function B2(e){if(e===null||Zn(e)||Oae(e))return 1;if(Rae(e))return 2}function _x(e,t,r){const n=[];let i=-1;for(;++i1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[r][1].start};z2(d,-l),z2(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},a={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[r][1].start={...o.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Er(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Er(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=Er(u,_x(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Er(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=Er(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ki(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r0&&yt(k)?Pt(e,x,"linePrefix",a+1)(k):x(k)}function x(k){return k===null||Ye(k)?e.check(U2,g,C)(k):(e.enter("codeFlowValue"),b(k))}function b(k){return k===null||Ye(k)?(e.exit("codeFlowValue"),x(k)):(e.consume(k),b)}function C(k){return e.exit("codeFenced"),t(k)}function v(k,T,N){let M=0;return j;function j(U){return k.enter("lineEnding"),k.consume(U),k.exit("lineEnding"),D}function D(U){return k.enter("codeFencedFence"),yt(U)?Pt(k,H,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):H(U)}function H(U){return U===o?(k.enter("codeFencedFenceSequence"),X(U)):N(U)}function X(U){return U===o?(M++,k.consume(U),X):M>=s?(k.exit("codeFencedFenceSequence"),yt(U)?Pt(k,W,"whitespace")(U):W(U)):N(U)}function W(U){return U===null||Ye(U)?(k.exit("codeFencedFence"),T(U)):N(U)}}}function Kae(e,t,r){const n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const t0={name:"codeIndented",tokenize:Xae},Yae={partial:!0,tokenize:Jae};function Xae(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Pt(e,a,"linePrefix",5)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):Ye(u)?e.attempt(Yae,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||Ye(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Jae(e,t,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):Ye(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Pt(e,a,"linePrefix",5)(s)}function a(s){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Ye(s)?i(s):r(s)}}const Zae={name:"codeText",previous:toe,resolve:eoe,tokenize:noe};function eoe(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Nc(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Nc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Nc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function HL(e,t,r,n,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(E){return E===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(E),e.exit(a),p):E===null||E===32||E===41||D1(E)?r(E):(e.enter(n),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),g(E))}function p(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===62?(e.exit("chunkString"),e.exit(o),p(E)):E===null||E===60||Ye(E)?r(E):(e.consume(E),E===92?w:m)}function w(E){return E===60||E===62||E===92?(e.consume(E),m):m(E)}function g(E){return!c&&(E===null||E===41||Zn(E))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(n),t(E)):c999||m===null||m===91||m===93&&!l||m===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(n),t):Ye(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||Ye(m)||o++>999?(e.exit("chunkString"),c(m)):(e.consume(m),l||(l=!yt(m)),m===92?p:d)}function p(m){return m===91||m===92||m===93?(e.consume(m),o++,d):d(m)}}function GL(e,t,r,n,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(n),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):(e.enter(a),u(p))}function u(p){return p===s?(e.exit(a),l(s)):p===null?r(p):Ye(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Pt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||Ye(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===s||p===92?(e.consume(p),c):c(p)}}function qc(e,t){let r;return n;function n(i){return Ye(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):yt(i)?Pt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const coe={name:"definition",tokenize:doe},foe={partial:!0,tokenize:hoe};function doe(e,t,r){const n=this;let i;return a;function a(m){return e.enter("definition"),s(m)}function s(m){return qL.call(n,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return i=vl(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):r(m)}function l(m){return Zn(m)?qc(e,u)(m):u(m)}function u(m){return HL(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function c(m){return e.attempt(foe,d,d)(m)}function d(m){return yt(m)?Pt(e,p,"whitespace")(m):p(m)}function p(m){return m===null||Ye(m)?(e.exit("definition"),n.parser.defined.push(i),t(m)):r(m)}}function hoe(e,t,r){return n;function n(o){return Zn(o)?qc(e,i)(o):r(o)}function i(o){return GL(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return yt(o)?Pt(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Ye(o)?t(o):r(o)}}const poe={name:"hardBreakEscape",tokenize:moe};function moe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ye(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const goe={name:"headingAtx",resolve:voe,tokenize:yoe};function voe(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},ki(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yoe(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||Zn(c)?(e.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ye(c)?(e.exit("atxHeading"),t(c)):yt(c)?Pt(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||Zn(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const woe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],H2=["pre","script","style","textarea"],_oe={concrete:!0,name:"htmlFlow",resolveTo:Eoe,tokenize:Soe},boe={partial:!0,tokenize:koe},xoe={partial:!0,tokenize:Coe};function Eoe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Soe(e,t,r){const n=this;let i,a,s,o,l;return u;function u(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),p):B===47?(e.consume(B),a=!0,g):B===63?(e.consume(B),i=3,n.interrupt?t:F):hi(B)?(e.consume(B),s=String.fromCharCode(B),_):r(B)}function p(B){return B===45?(e.consume(B),i=2,m):B===91?(e.consume(B),i=5,o=0,w):hi(B)?(e.consume(B),i=4,n.interrupt?t:F):r(B)}function m(B){return B===45?(e.consume(B),n.interrupt?t:F):r(B)}function w(B){const se="CDATA[";return B===se.charCodeAt(o++)?(e.consume(B),o===se.length?n.interrupt?t:H:w):r(B)}function g(B){return hi(B)?(e.consume(B),s=String.fromCharCode(B),_):r(B)}function _(B){if(B===null||B===47||B===62||Zn(B)){const se=B===47,de=s.toLowerCase();return!se&&!a&&H2.includes(de)?(i=1,n.interrupt?t(B):H(B)):woe.includes(s.toLowerCase())?(i=6,se?(e.consume(B),E):n.interrupt?t(B):H(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?x(B):b(B))}return B===45||lr(B)?(e.consume(B),s+=String.fromCharCode(B),_):r(B)}function E(B){return B===62?(e.consume(B),n.interrupt?t:H):r(B)}function x(B){return yt(B)?(e.consume(B),x):j(B)}function b(B){return B===47?(e.consume(B),j):B===58||B===95||hi(B)?(e.consume(B),C):yt(B)?(e.consume(B),b):j(B)}function C(B){return B===45||B===46||B===58||B===95||lr(B)?(e.consume(B),C):v(B)}function v(B){return B===61?(e.consume(B),k):yt(B)?(e.consume(B),v):b(B)}function k(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),l=B,T):yt(B)?(e.consume(B),k):N(B)}function T(B){return B===l?(e.consume(B),l=null,M):B===null||Ye(B)?r(B):(e.consume(B),T)}function N(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Zn(B)?v(B):(e.consume(B),N)}function M(B){return B===47||B===62||yt(B)?b(B):r(B)}function j(B){return B===62?(e.consume(B),D):r(B)}function D(B){return B===null||Ye(B)?H(B):yt(B)?(e.consume(B),D):r(B)}function H(B){return B===45&&i===2?(e.consume(B),V):B===60&&i===1?(e.consume(B),K):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),F):B===93&&i===5?(e.consume(B),q):Ye(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(boe,z,X)(B)):B===null||Ye(B)?(e.exit("htmlFlowData"),X(B)):(e.consume(B),H)}function X(B){return e.check(xoe,W,z)(B)}function W(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),U}function U(B){return B===null||Ye(B)?X(B):(e.enter("htmlFlowData"),H(B))}function V(B){return B===45?(e.consume(B),F):H(B)}function K(B){return B===47?(e.consume(B),s="",Y):H(B)}function Y(B){if(B===62){const se=s.toLowerCase();return H2.includes(se)?(e.consume(B),G):H(B)}return hi(B)&&s.length<8?(e.consume(B),s+=String.fromCharCode(B),Y):H(B)}function q(B){return B===93?(e.consume(B),F):H(B)}function F(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),F):H(B)}function G(B){return B===null||Ye(B)?(e.exit("htmlFlowData"),z(B)):(e.consume(B),G)}function z(B){return e.exit("htmlFlow"),t(B)}}function Coe(e,t,r){const n=this;return i;function i(s){return Ye(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):r(s)}function a(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function koe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Wm,t,r)}}const Aoe={name:"htmlText",tokenize:Toe};function Toe(e,t,r){const n=this;let i,a,s;return o;function o(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),l}function l(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),v):F===63?(e.consume(F),b):hi(F)?(e.consume(F),N):r(F)}function u(F){return F===45?(e.consume(F),c):F===91?(e.consume(F),a=0,w):hi(F)?(e.consume(F),x):r(F)}function c(F){return F===45?(e.consume(F),m):r(F)}function d(F){return F===null?r(F):F===45?(e.consume(F),p):Ye(F)?(s=d,K(F)):(e.consume(F),d)}function p(F){return F===45?(e.consume(F),m):d(F)}function m(F){return F===62?V(F):F===45?p(F):d(F)}function w(F){const G="CDATA[";return F===G.charCodeAt(a++)?(e.consume(F),a===G.length?g:w):r(F)}function g(F){return F===null?r(F):F===93?(e.consume(F),_):Ye(F)?(s=g,K(F)):(e.consume(F),g)}function _(F){return F===93?(e.consume(F),E):g(F)}function E(F){return F===62?V(F):F===93?(e.consume(F),E):g(F)}function x(F){return F===null||F===62?V(F):Ye(F)?(s=x,K(F)):(e.consume(F),x)}function b(F){return F===null?r(F):F===63?(e.consume(F),C):Ye(F)?(s=b,K(F)):(e.consume(F),b)}function C(F){return F===62?V(F):b(F)}function v(F){return hi(F)?(e.consume(F),k):r(F)}function k(F){return F===45||lr(F)?(e.consume(F),k):T(F)}function T(F){return Ye(F)?(s=T,K(F)):yt(F)?(e.consume(F),T):V(F)}function N(F){return F===45||lr(F)?(e.consume(F),N):F===47||F===62||Zn(F)?M(F):r(F)}function M(F){return F===47?(e.consume(F),V):F===58||F===95||hi(F)?(e.consume(F),j):Ye(F)?(s=M,K(F)):yt(F)?(e.consume(F),M):V(F)}function j(F){return F===45||F===46||F===58||F===95||lr(F)?(e.consume(F),j):D(F)}function D(F){return F===61?(e.consume(F),H):Ye(F)?(s=D,K(F)):yt(F)?(e.consume(F),D):M(F)}function H(F){return F===null||F===60||F===61||F===62||F===96?r(F):F===34||F===39?(e.consume(F),i=F,X):Ye(F)?(s=H,K(F)):yt(F)?(e.consume(F),H):(e.consume(F),W)}function X(F){return F===i?(e.consume(F),i=void 0,U):F===null?r(F):Ye(F)?(s=X,K(F)):(e.consume(F),X)}function W(F){return F===null||F===34||F===39||F===60||F===61||F===96?r(F):F===47||F===62||Zn(F)?M(F):(e.consume(F),W)}function U(F){return F===47||F===62||Zn(F)?M(F):r(F)}function V(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):r(F)}function K(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),Y}function Y(F){return yt(F)?Pt(e,q,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):q(F)}function q(F){return e.enter("htmlTextData"),s(F)}}const bx={name:"labelEnd",resolveAll:Ooe,resolveTo:Noe,tokenize:Moe},Ioe={tokenize:Doe},Poe={tokenize:Foe},Roe={tokenize:Loe};function Ooe(e){let t=-1;const r=[];for(;++t=3&&(u===null||Ye(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),yt(u)?Pt(e,o,"whitespace")(u):o(u))}}const Wn={continuation:{tokenize:Voe},exit:Koe,name:"list",tokenize:Woe},qoe={partial:!0,tokenize:Yoe},Goe={partial:!0,tokenize:Qoe};function Woe(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(m){const w=n.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!n.containerState.marker||m===n.containerState.marker:F1(m)){if(n.containerState.type||(n.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Cp,r,u)(m):u(m);if(!n.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return r(m)}function l(m){return F1(m)&&++s<10?(e.consume(m),l):(!n.interrupt||s<2)&&(n.containerState.marker?m===n.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):r(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||m,e.check(Wm,n.interrupt?r:c,e.attempt(qoe,p,d))}function c(m){return n.containerState.initialBlankLine=!0,a++,p(m)}function d(m){return yt(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):r(m)}function p(m){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Voe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Wm,i,a);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Pt(e,t,"listItemIndent",n.containerState.size+1)(o)}function a(o){return n.containerState.furtherBlankLines||!yt(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Goe,t,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,Pt(e,e.attempt(Wn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Qoe(e,t,r){const n=this;return Pt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(a):r(a)}}function Koe(e){e.exit(this.containerState.type)}function Yoe(e,t,r){const n=this;return Pt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=n.events[n.events.length-1];return!yt(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const q2={name:"setextUnderline",resolveTo:Xoe,tokenize:Joe};function Xoe(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function Joe(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,d;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){d=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),i=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),yt(u)?Pt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Ye(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Zoe={tokenize:ese};function ese(e){const t=this,r=e.attempt(Wm,n,e.attempt(this.parser.constructs.flowInitial,i,Pt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aoe,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const tse={resolveAll:VL()},nse=WL("string"),rse=WL("text");function WL(e){return{resolveAll:VL(e==="text"?ise:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,s,o);return s;function s(c){return u(c)?a(c):o(c)}function o(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(n):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function vse(e,t){let r=-1;const n=[];let i;for(;++r0){const re=I.tokenStack[I.tokenStack.length-1];(re[1]||Q2).call(I,void 0,re[0])}for(L.position={start:Ha(pe.length>0?pe[0][1].start:{line:1,column:1,offset:0}),end:Ha(pe.length>0?pe[pe.length-2][1].end:{line:1,column:1,offset:0})},Q=-1;++Q0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Rse(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ose(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Nse(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=bu(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let s,o=e.footnoteCounts.get(n);o===void 0?(o=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(n,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Mse(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Dse(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function YL(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function Fse(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return YL(e,t);const i={src:bu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Lse(e,t){const r={src:bu(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function jse(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function Bse(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return YL(e,t);const i={href:bu(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function zse(e,t){const r={href:bu(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Use(e,t,r){const n=e.all(t),i=r?$se(r):XL(t),a={},s=[];if(typeof t.checked=="boolean"){const c=n[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},n.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function Hse(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Vse(e){const t=ZL(e),r=JL(e);if(t&&r)return{start:t,end:r}}function Qse(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=ZL(t.children[1]),l=JL(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Kse(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(X2(t.slice(i),i>0,!1)),a.join("")}function X2(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===K2||a===Y2;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===K2||a===Y2;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Jse(e,t){const r={type:"text",value:Xse(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Zse(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const ele={blockquote:Tse,break:Ise,code:Pse,delete:Rse,emphasis:Ose,footnoteReference:Nse,heading:Mse,html:Dse,imageReference:Fse,image:Lse,inlineCode:jse,linkReference:Bse,link:zse,listItem:Use,list:Hse,paragraph:qse,root:Gse,strong:Wse,table:Qse,tableCell:Yse,tableRow:Kse,text:Jse,thematicBreak:Zse,toml:Qh,yaml:Qh,definition:Qh,footnoteDefinition:Qh};function Qh(){}const t3=-1,Vm=0,Wc=1,nm=2,xx=3,Ex=4,Sx=5,Cx=6,n3=7,r3=8,J2=typeof self=="object"?self:globalThis,tle=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Vm:case t3:return r(s,i);case Wc:{const o=r([],i);for(const l of s)o.push(n(l));return o}case nm:{const o=r({},i);for(const[l,u]of s)o[n(l)]=n(u);return o}case xx:return r(new Date(s),i);case Ex:{const{source:o,flags:l}=s;return r(new RegExp(o,l),i)}case Sx:{const o=r(new Map,i);for(const[l,u]of s)o.set(n(l),n(u));return o}case Cx:{const o=r(new Set,i);for(const l of s)o.add(n(l));return o}case n3:{const{name:o,message:l}=s;return r(new J2[o](l),i)}case r3:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new J2[a](s),i)};return n},Z2=e=>tle(new Map,e)(0),al="",{toString:nle}={},{keys:rle}=Object,Mc=e=>{const t=typeof e;if(t!=="object"||!e)return[Vm,t];const r=nle.call(e).slice(8,-1);switch(r){case"Array":return[Wc,al];case"Object":return[nm,al];case"Date":return[xx,al];case"RegExp":return[Ex,al];case"Map":return[Sx,al];case"Set":return[Cx,al];case"DataView":return[Wc,r]}return r.includes("Array")?[Wc,r]:r.includes("Error")?[n3,r]:[nm,r]},Kh=([e,t])=>e===Vm&&(t==="function"||t==="symbol"),ile=(e,t,r,n)=>{const i=(s,o)=>{const l=n.push(s)-1;return r.set(o,l),l},a=s=>{if(r.has(s))return r.get(s);let[o,l]=Mc(s);switch(o){case Vm:{let c=s;switch(l){case"bigint":o=r3,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([t3],s)}return i([o,c],s)}case Wc:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),i([l,[...p]],s)}const c=[],d=i([o,c],s);for(const p of s)c.push(a(p));return d}case nm:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],d=i([o,c],s);for(const p of rle(s))(e||!Kh(Mc(s[p])))&&c.push([a(p),a(s[p])]);return d}case xx:return i([o,s.toISOString()],s);case Ex:{const{source:c,flags:d}=s;return i([o,{source:c,flags:d}],s)}case Sx:{const c=[],d=i([o,c],s);for(const[p,m]of s)(e||!(Kh(Mc(p))||Kh(Mc(m))))&&c.push([a(p),a(m)]);return d}case Cx:{const c=[],d=i([o,c],s);for(const p of s)(e||!Kh(Mc(p)))&&c.push(a(p));return d}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},eI=(e,{json:t,lossy:r}={})=>{const n=[];return ile(!(t||r),!!t,new Map,n)(e),n},rm=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Z2(eI(e,t)):structuredClone(e):(e,t)=>Z2(eI(e,t));function ale(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function ole(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sle(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||ale,n=e.options.footnoteBackLabel||ole,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&w.push({type:"text",value:" "});let x=typeof r=="string"?r:r(l,m);typeof x=="string"&&(x={type:"text",value:x}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,m),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const _=c[c.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const x=_.children[_.children.length-1];x&&x.type==="text"?x.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...w)}else c.push(...w);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,E),o.push(E)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...rm(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` -`}]}}const i3=function(e){if(e==null)return fle;if(typeof e=="function")return Qm(e);if(typeof e=="object")return Array.isArray(e)?lle(e):ule(e);if(typeof e=="string")return cle(e);throw new Error("Expected function, string, or object as test")};function lle(e){const t=[];let r=-1;for(;++r":""))+")"})}return p;function p(){let m=a3,w,g,_;if((!t||a(l,u,c[c.length-1]||void 0))&&(m=gle(r(l,c)),m[0]===tI))return m;if("children"in l&&l.children){const E=l;if(E.children&&m[0]!==ple)for(g=(n?E.children.length:-1)+s,_=c.concat(E);g>-1&&g0&&r.push({type:"text",value:` -`}),r}function nI(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function rI(e,t){const r=wle(e,t),n=r.one(e,void 0),i=sle(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function Sle(e,t){return e&&"run"in e?async function(r,n){const i=rI(r,{file:n,...t});await e.run(i,n)}:function(r,n){return rI(r,{file:n,...e||t})}}function iI(e){if(e)throw e}var r0,aI;function Cle(){if(aI)return r0;aI=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),d=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!d)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},s=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(n)return n(u,c).value}else return;return u[c]};return r0=function l(){var u,c,d,p,m,w,g=arguments[0],_=1,E=arguments.length,x=!1;for(typeof g=="boolean"&&(x=g,g=arguments[1]||{},_=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});_s.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&r)throw c;return i(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){r||(r=!0,t(s,...o))}function a(s){i(null,s)}}class nr extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=Gc(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}nr.prototype.file="";nr.prototype.name="";nr.prototype.reason="";nr.prototype.message="";nr.prototype.stack="";nr.prototype.column=void 0;nr.prototype.line=void 0;nr.prototype.ancestors=void 0;nr.prototype.cause=void 0;nr.prototype.fatal=void 0;nr.prototype.place=void 0;nr.prototype.ruleId=void 0;nr.prototype.source=void 0;const ui={basename:Ile,dirname:Ple,extname:Rle,join:Ole,sep:"/"};function Ile(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ud(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(n=i):(o=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function Ple(e){if(ud(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Rle(e){ud(e);let t=e.length,r=-1,n=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function Ole(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Mle(e,t){let r="",n=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return r}function ud(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Dle={cwd:Fle};function Fle(){return"/"}function U1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Lle(e){if(typeof e=="string")e=new URL(e);else if(!U1(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return jle(e)}function jle(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r0){let[m,...w]=c;const g=n[p][1];z1(g)&&z1(m)&&(m=i0(!0,g,m)),n[p]=[u,m,...w]}}}}const Hle=new kx().freeze();function l0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function u0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function c0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sI(e){if(!z1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function lI(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Yh(e){return qle(e)?e:new Ble(e)}function qle(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Gle(e){return typeof e=="string"||Wle(e)}function Wle(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vle=`# Changelog - -## 2026-05-31 - -- Add "Open from Google Drive" - -## 2026-05-02 - -- Display search in mobile view (by marionikolov) - -## 2026-04-20 - -- Shift-click to show a person's details without rearranging the tree (by FrankBuchholz) - -## 2026-02-21 - -- Improved saving PDF files. Decreased file size and increased chart size that can be saved as PDF. - -## 2026-02-13 - -- Show header information of the gedcom file on the side panel (by FrankBuchholz) - -## 2026-01-19 - -- Changed info panel behavior on mobile (by marionikolov) - -## 2025-09-09 - -- Sidebar improvements (Collapse/Expand, Mobile view) (by czifumasa) - -## 2025-01-21 - -- Added new chart type based on [github.com/donatso/family-chart](https://github.com/donatso/family-chart) - -## 2023-08-25 - -- Added support for loading gedzip files - -## 2023-07-21 - -- Display images, notes, sources for events as collapsible tabs (by czifumasa) - -## 2023-07-20 - -- Fixed search for Hebrew names (by czifumasa) - -## 2023-02-01 - -- Added option to hide sex indicators (by Kent Grigo) -- Empty family boxes are now not shown (by Kent Grigo) - -## 2023-01-08 - -- Added option to hide profile identifiers by Kent Grigo - -## 2022-12-08 - -- French translation updated by Olivier Berten - -## 2022-08-30 - -- Added displaying name types in details panel - -## 2022-05-13 - -- Added displaying images in the details panel - -## 2022-04-06 - -- Fixed logging in to WikiTree - -## 2021-10-31 - -- Show changelog in intro page and when an upgraded version is loaded - -## 2021-10-27 - -- Show events in details panel for WikiTree profiles - -## 2021-10-26 - -- Added family events to details panel -- Improved details panel layout - -## 2021-10-25 - -- Added "Settings" tab in side panel -- Added color settings (none, by generation, by sex) -`,Qle="last_seen_version";async function Kle(e,t){const n=Vle.split("##").slice(1,e+1).map(a=>({date:Date.parse(a.split(` -`)[0].trim()),notes:"####"+a})).filter(a=>a.date>0).map(a=>a.notes).join(` -`)||"",i=await Hle().use(Ase).use(Sle).use(bae).process(n);return String(i)}function Yle(){localStorage.setItem(Qle,"2026-06-04 20:33:08 +0200")}const uI=""+new URL("topola-DAj3jHeV.jpg",import.meta.url).href;function f0(e){return O.jsx(_l,{to:{pathname:"/view",search:dn.stringify(e.params)},children:e.text})}function Xle(e){return(e==null?void 0:e.slice(0,16))||""}function cI(){const[e,t]=J.useState("");return J.useEffect(()=>{(async()=>(t(await Kle(1)),Yle()))()}),O.jsxs(O.Fragment,{children:[O.jsx("p",{children:O.jsx(Ie,{id:"intro.description",defaultMessage:"Topola Genealogy is a genealogy tree viewer that lets you browse the structure of the family."})}),O.jsx("p",{children:O.jsx(Ie,{id:"intro.instructions",defaultMessage:"Use the OPEN FILE or LOAD FROM URL buttons above to load a GEDCOM file. You can export a GEDCOM file from most of the existing genealogy programs and web sites."})}),O.jsx("h3",{children:O.jsx(Ie,{id:"intro.examples",defaultMessage:"Examples"})}),O.jsxs("ul",{children:[O.jsxs("li",{children:[O.jsx(f0,{params:{url:"https://chronoplexsoftware.com/myfamilytree/samples/The%20Kennedy%20Family.gdz"},text:"J. F. Kennedy"})," ","(",O.jsx(Ie,{id:"intro.from",defaultMessage:"from"})," ",O.jsx("a",{href:"https://chronoplexsoftware.com/myfamilytree/samples/",children:"chronoplexsoftware.com"}),")"]}),O.jsxs("li",{children:[O.jsx(f0,{params:{url:"https://webtreeprint.com/tp_downloader.php?path=famous_gedcoms/shakespeare.ged&file=shakespeare.ged"},text:"Shakespeare"})," ","(",O.jsx(Ie,{id:"intro.from",defaultMessage:"from"})," ",O.jsx("a",{href:"https://webtreeprint.com/tp_famous_gedcoms.php",children:"webtreeprint.com"}),")"]}),O.jsxs("li",{children:[O.jsx(f0,{params:{indi:"Skłodowska-2",source:"wikitree"},text:"Maria Skłodowska-Curie"})," ","(",O.jsx(Ie,{id:"intro.from",defaultMessage:"from"})," ",O.jsx("a",{href:"https://www.wikitree.com/wiki/Sk%C5%82odowska-2",children:"wikitree.com"}),")"]})]}),O.jsx("h3",{children:O.jsx(Ie,{id:"intro.whats_new",defaultMessage:"What's new"})}),O.jsx("span",{dangerouslySetInnerHTML:{__html:e}}),O.jsx("a",{href:"https://github.com/PeWu/topola-viewer/blob/master/CHANGELOG.md",children:O.jsx(Ie,{id:"intro.full_changelog",defaultMessage:"See full changelog"})}),O.jsx("h3",{children:O.jsx(Ie,{id:"intro.privacy",defaultMessage:"Privacy"})}),O.jsx(Ie,{id:"intro.privacy_note",defaultMessage:'When using the "load from file" option, this site does not send your data anywhere and files loaded from disk do not leave your computer. When using "load from URL", data is passed through the {link} service to deal with an issue with cross-site file loading in the browser (CORS).',values:{link:O.jsx("a",{href:"https://topolaproxy.bieda.it/",children:"cors-anywhere"})}}),O.jsxs("p",{className:"ui right aligned version",children:["version: ",Xle("2026-06-04 20:33:08 +0200")," (",O.jsx("a",{href:"https://github.com/PeWu/topola-viewer/commit/059c9d9",children:"059c9d9"}),")"]})]})}function Jle(){return O.jsxs("div",{id:"introContent",children:[O.jsx("div",{className:"backgroundImage"}),O.jsxs(kn,{className:"intro",children:[O.jsx(kn.Content,{as:pl,greaterThanOrEqual:"large",children:O.jsx(kn.Header,{children:O.jsx(Ie,{id:"intro.title",defaultMessage:"Topola Genealogy Viewer"})})}),O.jsxs(kn.Content,{children:[O.jsx(Kr,{as:pl,greaterThanOrEqual:"large",children:O.jsxs(Kr.Row,{children:[O.jsx(Kr.Column,{width:5,children:O.jsx(sn,{src:uI,alt:"Topola logo"})}),O.jsx(Kr.Column,{width:11,children:O.jsx(cI,{})})]})}),O.jsxs(pl,{at:"small",children:[O.jsx(sn,{src:uI,alt:"Topola logo",centered:!0,size:"tiny",className:"blockImage"}),O.jsx(cI,{})]})]})]})]})}function Zle(e){const[t,r]=J.useState(!1),[n,i]=J.useState(!1),[a,s]=J.useState(null),o=J.useRef(null);J.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);async function l(d){if((await window.fetch(`https://www.googleapis.com/drive/v3/files/${e.failedFileId}?alt=media`,{headers:{Authorization:`Bearer ${d}`}})).status===200){r(!1),e.onAuthSuccess(e.failedFileId);return}i(!0),Ka.showPicker(m=>{r(!1),e.onAuthSuccess(m)},()=>{r(!1)})}async function u(){r(!0),s(null),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1),o.current=null},2e4);try{const d=await Ka.requestToken(!1);o.current&&(clearTimeout(o.current),o.current=null),await l(d)}catch(d){o.current&&(clearTimeout(o.current),o.current=null),console.error("Auth error in fallback modal:",d),s(d.message||"An error occurred during authentication."),r(!1)}}async function c(){r(!0),s(null),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1),o.current=null},2e4);try{const d=await Ka.requestToken(!0);o.current&&(clearTimeout(o.current),o.current=null),await l(d)}catch(d){o.current&&(clearTimeout(o.current),o.current=null),console.error("Switch account error in fallback modal:",d),s(d.message||"An error occurred during authentication."),r(!1)}}return O.jsxs(Yt,{open:!0,onClose:e.onCancel,centered:!0,size:"tiny",children:[O.jsxs(zt,{children:[O.jsx(Je,{name:"google drive"}),O.jsx(Ie,{id:"google_auth.title",defaultMessage:"Google Drive Access Required"})]}),O.jsxs(Yt.Content,{children:[O.jsx("p",{children:O.jsx(Ie,{id:"google_auth.instructions",defaultMessage:"To view this file, you must authenticate and select the file from your Google Drive to grant permissions."})}),n&&O.jsxs(Ln,{warning:!0,children:[O.jsx(Ln.Header,{children:O.jsx(Ie,{id:"google_auth.picker_instructions_header",defaultMessage:"Permissions Required"})}),O.jsx("p",{children:O.jsx(Ie,{id:"google_auth.picker_instructions",defaultMessage:"The application does not have permission to read this file. Please select it in the file browser popup to grant access. If this is a shared file that doesn't show up, try adding a shortcut to your Drive first."})})]}),a&&O.jsx(Ln,{negative:!0,children:O.jsx("p",{children:a})})]}),O.jsxs(Yt.Actions,{children:[O.jsx(nn,{secondary:!0,onClick:e.onCancel,children:O.jsx(Ie,{id:"google_auth.cancel",defaultMessage:"Cancel"})}),n&&O.jsx(nn,{basic:!0,onClick:c,loading:t,children:O.jsx(Ie,{id:"google_auth.switch_account_button",defaultMessage:"Switch Account"})}),O.jsx(nn,{primary:!0,onClick:u,loading:t,children:O.jsx(Ie,{id:"google_auth.grant_button",defaultMessage:"Grant Access & Select File"})})]})]})}var Gr=(e=>(e[e.Menu=0]="Menu",e[e.Dropdown=1]="Dropdown",e))(Gr||{});function su(e){const t={...e};return delete t.menuType,O.jsx(O.Fragment,{children:e.menuType===0?O.jsx(Kt.Item,{...t,children:e.children}):O.jsx(Ze.Item,{...t,children:e.children})})}function eue(e){const t=go();async function r(){try{await Ka.requestToken(),e.onTokenAcquired&&e.onTokenAcquired(),await Ka.showPicker(n=>{t({pathname:"/view",search:dn.stringify({source:"google-drive",fileId:n})})})}catch(n){console.error("Failed Google Drive login/file picking:",n)}}return O.jsxs(su,{onClick:r,menuType:e.menuType,children:[O.jsx(Je,{name:"google drive"}),O.jsx(Ie,{id:"menu.load_from_google_drive",defaultMessage:"Load from Google Drive"})]})}var Xh={exports:{}},fI;function tue(){if(fI)return Xh.exports;fI=1;function e(t,r=100,n={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(r<0)throw new RangeError("`wait` must not be negative.");const{immediate:i}=typeof n=="boolean"?{immediate:n}:n;let a,s,o,l,u;function c(){const m=a,w=s;return a=void 0,s=void 0,u=t.apply(m,w),u}function d(){const m=Date.now()-l;m=0?o=setTimeout(d,r-m):(o=void 0,i||(u=c()))}const p=function(...m){if(a&&this!==a&&Object.getPrototypeOf(this)===Object.getPrototypeOf(a))throw new Error("Debounced method called with different contexts of the same prototype.");a=this,s=m,l=Date.now();const w=i&&!o;return o||(o=setTimeout(d,r)),w&&(u=c()),u};return Object.defineProperty(p,"isPending",{get(){return o!==void 0}}),p.clear=()=>{o&&(clearTimeout(o),o=void 0)},p.flush=()=>{o&&p.trigger()},p.trigger=()=>{u=c(),p.clear()},p}return Xh.exports.debounce=e,Xh.exports=e,Xh.exports}var nue=tue();const rue=wn(nue);var d0,dI;function iue(){return dI||(dI=1,d0=function e(t,r){var n=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,i=/(^[ ]*|[ ]*$)/g,a=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,s=/^0x[0-9a-f]+$/i,o=/^0/,l=function(b){return e.insensitive&&(""+b).toLowerCase()||""+b},u=l(t).replace(i,"")||"",c=l(r).replace(i,"")||"",d=u.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=c.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),m=parseInt(u.match(s),16)||d.length!==1&&u.match(a)&&Date.parse(u),w=parseInt(c.match(s),16)||m&&c.match(a)&&Date.parse(c)||null,g,_;if(w){if(mw)return 1}for(var E=0,x=Math.max(d.length,p.length);E_)return 1}return 0}),d0}var aue=iue();const oue=wn(aue);var h0={exports:{}};/** - * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 - * Copyright (C) 2020 Oliver Nightingale - * @license MIT - */var hI;function sue(){return hI||(hI=1,function(e,t){(function(){var r=function(n){var i=new r.Builder;return i.pipeline.add(r.trimmer,r.stopWordFilter,r.stemmer),i.searchPipeline.add(r.stemmer),n.call(i,i),i.build()};r.version="2.3.9";/*! - * lunr.utils - * Copyright (C) 2020 Oliver Nightingale - */r.utils={},r.utils.warn=function(n){return function(i){n.console&&console.warn&&console.warn(i)}}(this),r.utils.asString=function(n){return n==null?"":n.toString()},r.utils.clone=function(n){if(n==null)return n;for(var i=Object.create(null),a=Object.keys(n),s=0;s0){var p=r.utils.clone(i)||{};p.position=[u,d],p.index=o.length,o.push(new r.Token(a.slice(u,l),p))}u=l+1}}return o},r.tokenizer.separator=/[\s\-]+/;/*! - * lunr.Pipeline - * Copyright (C) 2020 Oliver Nightingale - */r.Pipeline=function(){this._stack=[]},r.Pipeline.registeredFunctions=Object.create(null),r.Pipeline.registerFunction=function(n,i){i in this.registeredFunctions&&r.utils.warn("Overwriting existing registered function: "+i),n.label=i,r.Pipeline.registeredFunctions[n.label]=n},r.Pipeline.warnIfFunctionNotRegistered=function(n){var i=n.label&&n.label in this.registeredFunctions;i||r.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,n)},r.Pipeline.load=function(n){var i=new r.Pipeline;return n.forEach(function(a){var s=r.Pipeline.registeredFunctions[a];if(s)i.add(s);else throw new Error("Cannot load unregistered function: "+a)}),i},r.Pipeline.prototype.add=function(){var n=Array.prototype.slice.call(arguments);n.forEach(function(i){r.Pipeline.warnIfFunctionNotRegistered(i),this._stack.push(i)},this)},r.Pipeline.prototype.after=function(n,i){r.Pipeline.warnIfFunctionNotRegistered(i);var a=this._stack.indexOf(n);if(a==-1)throw new Error("Cannot find existingFn");a=a+1,this._stack.splice(a,0,i)},r.Pipeline.prototype.before=function(n,i){r.Pipeline.warnIfFunctionNotRegistered(i);var a=this._stack.indexOf(n);if(a==-1)throw new Error("Cannot find existingFn");this._stack.splice(a,0,i)},r.Pipeline.prototype.remove=function(n){var i=this._stack.indexOf(n);i!=-1&&this._stack.splice(i,1)},r.Pipeline.prototype.run=function(n){for(var i=this._stack.length,a=0;a1&&(ln&&(a=o),l!=n);)s=a-i,o=i+Math.floor(s/2),l=this.elements[o*2];if(l==n||l>n)return o*2;if(lc?p+=2:u==c&&(i+=a[d+1]*s[p+1],d+=2,p+=2);return i},r.Vector.prototype.similarity=function(n){return this.dot(n)/this.magnitude()||0},r.Vector.prototype.toArray=function(){for(var n=new Array(this.elements.length/2),i=1,a=0;i0){var l=o.str.charAt(0),u;l in o.node.edges?u=o.node.edges[l]:(u=new r.TokenSet,o.node.edges[l]=u),o.str.length==1&&(u.final=!0),s.push({node:u,editsRemaining:o.editsRemaining,str:o.str.slice(1)})}if(o.editsRemaining!=0){if("*"in o.node.edges)var c=o.node.edges["*"];else{var c=new r.TokenSet;o.node.edges["*"]=c}if(o.str.length==0&&(c.final=!0),s.push({node:c,editsRemaining:o.editsRemaining-1,str:o.str}),o.str.length>1&&s.push({node:o.node,editsRemaining:o.editsRemaining-1,str:o.str.slice(1)}),o.str.length==1&&(o.node.final=!0),o.str.length>=1){if("*"in o.node.edges)var d=o.node.edges["*"];else{var d=new r.TokenSet;o.node.edges["*"]=d}o.str.length==1&&(d.final=!0),s.push({node:d,editsRemaining:o.editsRemaining-1,str:o.str.slice(1)})}if(o.str.length>1){var p=o.str.charAt(0),m=o.str.charAt(1),w;m in o.node.edges?w=o.node.edges[m]:(w=new r.TokenSet,o.node.edges[m]=w),o.str.length==1&&(w.final=!0),s.push({node:w,editsRemaining:o.editsRemaining-1,str:p+o.str.slice(2)})}}}return a},r.TokenSet.fromString=function(n){for(var i=new r.TokenSet,a=i,s=0,o=n.length;s=n;i--){var a=this.uncheckedNodes[i],s=a.child.toString();s in this.minimizedNodes?a.parent.edges[a.char]=this.minimizedNodes[s]:(a.child._str=s,this.minimizedNodes[s]=a.child),this.uncheckedNodes.pop()}};/*! - * lunr.Index - * Copyright (C) 2020 Oliver Nightingale - */r.Index=function(n){this.invertedIndex=n.invertedIndex,this.fieldVectors=n.fieldVectors,this.tokenSet=n.tokenSet,this.fields=n.fields,this.pipeline=n.pipeline},r.Index.prototype.search=function(n){return this.query(function(i){var a=new r.QueryParser(n,i);a.parse()})},r.Index.prototype.query=function(n){for(var i=new r.Query(this.fields),a=Object.create(null),s=Object.create(null),o=Object.create(null),l=Object.create(null),u=Object.create(null),c=0;c1?this._b=1:this._b=n},r.Builder.prototype.k1=function(n){this._k1=n},r.Builder.prototype.add=function(n,i){var a=n[this._ref],s=Object.keys(this._fields);this._documents[a]=i||{},this.documentCount+=1;for(var o=0;o=this.length)return r.QueryLexer.EOS;var n=this.str.charAt(this.pos);return this.pos+=1,n},r.QueryLexer.prototype.width=function(){return this.pos-this.start},r.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},r.QueryLexer.prototype.backup=function(){this.pos-=1},r.QueryLexer.prototype.acceptDigitRun=function(){var n,i;do n=this.next(),i=n.charCodeAt(0);while(i>47&&i<58);n!=r.QueryLexer.EOS&&this.backup()},r.QueryLexer.prototype.more=function(){return this.pos1&&(n.backup(),n.emit(r.QueryLexer.TERM)),n.ignore(),n.more())return r.QueryLexer.lexText},r.QueryLexer.lexEditDistance=function(n){return n.ignore(),n.acceptDigitRun(),n.emit(r.QueryLexer.EDIT_DISTANCE),r.QueryLexer.lexText},r.QueryLexer.lexBoost=function(n){return n.ignore(),n.acceptDigitRun(),n.emit(r.QueryLexer.BOOST),r.QueryLexer.lexText},r.QueryLexer.lexEOS=function(n){n.width()>0&&n.emit(r.QueryLexer.TERM)},r.QueryLexer.termSeparator=r.tokenizer.separator,r.QueryLexer.lexText=function(n){for(;;){var i=n.next();if(i==r.QueryLexer.EOS)return r.QueryLexer.lexEOS;if(i.charCodeAt(0)==92){n.escapeCharacter();continue}if(i==":")return r.QueryLexer.lexField;if(i=="~")return n.backup(),n.width()>0&&n.emit(r.QueryLexer.TERM),r.QueryLexer.lexEditDistance;if(i=="^")return n.backup(),n.width()>0&&n.emit(r.QueryLexer.TERM),r.QueryLexer.lexBoost;if(i=="+"&&n.width()===1||i=="-"&&n.width()===1)return n.emit(r.QueryLexer.PRESENCE),r.QueryLexer.lexText;if(i.match(r.QueryLexer.termSeparator))return r.QueryLexer.lexTerm}},r.QueryParser=function(n,i){this.lexer=new r.QueryLexer(n),this.query=i,this.currentClause={},this.lexemeIdx=0},r.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var n=r.QueryParser.parseClause;n;)n=n(this);return this.query},r.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},r.QueryParser.prototype.consumeLexeme=function(){var n=this.peekLexeme();return this.lexemeIdx+=1,n},r.QueryParser.prototype.nextClause=function(){var n=this.currentClause;this.query.clause(n),this.currentClause={}},r.QueryParser.parseClause=function(n){var i=n.peekLexeme();if(i!=null)switch(i.type){case r.QueryLexer.PRESENCE:return r.QueryParser.parsePresence;case r.QueryLexer.FIELD:return r.QueryParser.parseField;case r.QueryLexer.TERM:return r.QueryParser.parseTerm;default:var a="expected either a field or a term, found "+i.type;throw i.str.length>=1&&(a+=" with value '"+i.str+"'"),new r.QueryParseError(a,i.start,i.end)}},r.QueryParser.parsePresence=function(n){var i=n.consumeLexeme();if(i!=null){switch(i.str){case"-":n.currentClause.presence=r.Query.presence.PROHIBITED;break;case"+":n.currentClause.presence=r.Query.presence.REQUIRED;break;default:var a="unrecognised presence operator'"+i.str+"'";throw new r.QueryParseError(a,i.start,i.end)}var s=n.peekLexeme();if(s==null){var a="expecting term or field, found nothing";throw new r.QueryParseError(a,i.start,i.end)}switch(s.type){case r.QueryLexer.FIELD:return r.QueryParser.parseField;case r.QueryLexer.TERM:return r.QueryParser.parseTerm;default:var a="expecting term or field, found '"+s.type+"'";throw new r.QueryParseError(a,s.start,s.end)}}},r.QueryParser.parseField=function(n){var i=n.consumeLexeme();if(i!=null){if(n.query.allFields.indexOf(i.str)==-1){var a=n.query.allFields.map(function(l){return"'"+l+"'"}).join(", "),s="unrecognised field '"+i.str+"', possible fields: "+a;throw new r.QueryParseError(s,i.start,i.end)}n.currentClause.fields=[i.str];var o=n.peekLexeme();if(o==null){var s="expecting term, found nothing";throw new r.QueryParseError(s,i.start,i.end)}switch(o.type){case r.QueryLexer.TERM:return r.QueryParser.parseTerm;default:var s="expecting term, found '"+o.type+"'";throw new r.QueryParseError(s,o.start,o.end)}}},r.QueryParser.parseTerm=function(n){var i=n.consumeLexeme();if(i!=null){n.currentClause.term=i.str.toLowerCase(),i.str.indexOf("*")!=-1&&(n.currentClause.usePipeline=!1);var a=n.peekLexeme();if(a==null){n.nextClause();return}switch(a.type){case r.QueryLexer.TERM:return n.nextClause(),r.QueryParser.parseTerm;case r.QueryLexer.FIELD:return n.nextClause(),r.QueryParser.parseField;case r.QueryLexer.EDIT_DISTANCE:return r.QueryParser.parseEditDistance;case r.QueryLexer.BOOST:return r.QueryParser.parseBoost;case r.QueryLexer.PRESENCE:return n.nextClause(),r.QueryParser.parsePresence;default:var s="Unexpected lexeme type '"+a.type+"'";throw new r.QueryParseError(s,a.start,a.end)}}},r.QueryParser.parseEditDistance=function(n){var i=n.consumeLexeme();if(i!=null){var a=parseInt(i.str,10);if(isNaN(a)){var s="edit distance must be numeric";throw new r.QueryParseError(s,i.start,i.end)}n.currentClause.editDistance=a;var o=n.peekLexeme();if(o==null){n.nextClause();return}switch(o.type){case r.QueryLexer.TERM:return n.nextClause(),r.QueryParser.parseTerm;case r.QueryLexer.FIELD:return n.nextClause(),r.QueryParser.parseField;case r.QueryLexer.EDIT_DISTANCE:return r.QueryParser.parseEditDistance;case r.QueryLexer.BOOST:return r.QueryParser.parseBoost;case r.QueryLexer.PRESENCE:return n.nextClause(),r.QueryParser.parsePresence;default:var s="Unexpected lexeme type '"+o.type+"'";throw new r.QueryParseError(s,o.start,o.end)}}},r.QueryParser.parseBoost=function(n){var i=n.consumeLexeme();if(i!=null){var a=parseInt(i.str,10);if(isNaN(a)){var s="boost must be numeric";throw new r.QueryParseError(s,i.start,i.end)}n.currentClause.boost=a;var o=n.peekLexeme();if(o==null){n.nextClause();return}switch(o.type){case r.QueryLexer.TERM:return n.nextClause(),r.QueryParser.parseTerm;case r.QueryLexer.FIELD:return n.nextClause(),r.QueryParser.parseField;case r.QueryLexer.EDIT_DISTANCE:return r.QueryParser.parseEditDistance;case r.QueryLexer.BOOST:return r.QueryParser.parseBoost;case r.QueryLexer.PRESENCE:return n.nextClause(),r.QueryParser.parsePresence;default:var s="Unexpected lexeme type '"+o.type+"'";throw new r.QueryParseError(s,o.start,o.end)}}},function(n,i){e.exports=i()}(this,function(){return r})})()}(h0)),h0.exports}var lue=sue();const pi=wn(lue);var kp={exports:{}};/*! - * Lunr languages, `German` language - * https://github.com/MihaiValentin/lunr-languages - * - * Copyright 2014, Mihai Valentin - * http://www.mozilla.org/MPL/ - */var uue=kp.exports,pI;function cue(){return pI||(pI=1,function(e,t){(function(r,n){e.exports=n()})(uue,function(){return function(r){if(typeof r>"u")throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(typeof r.stemmerSupport>"u")throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.de=function(){this.pipeline.reset(),this.pipeline.add(r.de.trimmer,r.de.stopWordFilter,r.de.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.de.trimmer,r.de.stemmer))},r.de.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",r.de.trimmer=r.trimmerSupport.generateTrimmer(r.de.wordCharacters),r.Pipeline.registerFunction(r.de.trimmer,"trimmer-de"),r.de.stemmer=function(){var n=r.stemmerSupport.Among,i=r.stemmerSupport.SnowballProgram,a=new function(){var o=[new n("",-1,6),new n("U",0,2),new n("Y",0,1),new n("ä",0,3),new n("ö",0,4),new n("ü",0,5)],l=[new n("e",-1,2),new n("em",-1,1),new n("en",-1,2),new n("ern",-1,1),new n("er",-1,1),new n("s",-1,3),new n("es",5,2)],u=[new n("en",-1,1),new n("er",-1,1),new n("st",-1,2),new n("est",2,1)],c=[new n("ig",-1,1),new n("lich",-1,1)],d=[new n("end",-1,1),new n("ig",-1,2),new n("ung",-1,1),new n("lich",-1,3),new n("isch",-1,2),new n("ik",-1,2),new n("heit",-1,3),new n("keit",-1,4)],p=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32,8],m=[117,30,5],w=[117,30,4],g,_,E,x=new i;this.setCurrent=function(D){x.setCurrent(D)},this.getCurrent=function(){return x.getCurrent()};function b(D,H,X){return x.eq_s(1,D)&&(x.ket=x.cursor,x.in_grouping(p,97,252))?(x.slice_from(H),x.cursor=X,!0):!1}function C(){for(var D=x.cursor,H,X,W,U;;)if(H=x.cursor,x.bra=H,x.eq_s(1,"ß"))x.ket=x.cursor,x.slice_from("ss");else{if(H>=x.limit)break;x.cursor=H+1}for(x.cursor=D;;)for(X=x.cursor;W=x.cursor,!(x.in_grouping(p,97,252)&&(U=x.cursor,x.bra=U,b("u","U",W)||(x.cursor=U,b("y","Y",W))));){if(W>=x.limit){x.cursor=X;return}x.cursor=W+1}}function v(){for(;!x.in_grouping(p,97,252);){if(x.cursor>=x.limit)return!0;x.cursor++}for(;!x.out_grouping(p,97,252);){if(x.cursor>=x.limit)return!0;x.cursor++}return!1}function k(){E=x.limit,_=E;var D=x.cursor+3;0<=D&&D<=x.limit&&(g=D,v()||(E=x.cursor,E=x.limit)return;x.cursor++;break}}}function N(){return E<=x.cursor}function M(){return _<=x.cursor}function j(){var D,H=x.limit-x.cursor,X,W,U;if(x.ket=x.cursor,D=x.find_among_b(l,7),D&&(x.bra=x.cursor,N()))switch(D){case 1:x.slice_del();break;case 2:x.slice_del(),x.ket=x.cursor,x.eq_s_b(1,"s")&&(x.bra=x.cursor,x.eq_s_b(3,"nis")&&x.slice_del());break;case 3:x.in_grouping_b(m,98,116)&&x.slice_del();break}if(x.cursor=x.limit-H,x.ket=x.cursor,D=x.find_among_b(u,4),D&&(x.bra=x.cursor,N()))switch(D){case 1:x.slice_del();break;case 2:if(x.in_grouping_b(w,98,116)){var V=x.cursor-3;x.limit_backward<=V&&V<=x.limit&&(x.cursor=V,x.slice_del())}break}if(x.cursor=x.limit-H,x.ket=x.cursor,D=x.find_among_b(d,8),D&&(x.bra=x.cursor,M()))switch(D){case 1:x.slice_del(),x.ket=x.cursor,x.eq_s_b(2,"ig")&&(x.bra=x.cursor,X=x.limit-x.cursor,x.eq_s_b(1,"e")||(x.cursor=x.limit-X,M()&&x.slice_del()));break;case 2:W=x.limit-x.cursor,x.eq_s_b(1,"e")||(x.cursor=x.limit-W,x.slice_del());break;case 3:if(x.slice_del(),x.ket=x.cursor,U=x.limit-x.cursor,!x.eq_s_b(2,"er")&&(x.cursor=x.limit-U,!x.eq_s_b(2,"en")))break;x.bra=x.cursor,N()&&x.slice_del();break;case 4:x.slice_del(),x.ket=x.cursor,D=x.find_among_b(c,2),D&&(x.bra=x.cursor,M()&&D==1&&x.slice_del());break}}this.stem=function(){var D=x.cursor;return C(),x.cursor=D,k(),x.limit_backward=D,x.cursor=x.limit,j(),x.cursor=x.limit_backward,T(),!0}};return function(s){return typeof s.update=="function"?s.update(function(o){return a.setCurrent(o),a.stem(),a.getCurrent()}):(a.setCurrent(s),a.stem(),a.getCurrent())}}(),r.Pipeline.registerFunction(r.de.stemmer,"stemmer-de"),r.de.wildcardNormalizer=function(n){return n.replace(/[\u00DF\u1E9E]/g,"ss").replace(/[\u00E4\u00C4]/g,"a").replace(/[\u00F6\u00D6]/g,"o").replace(/[\u00FC\u00DC]/g,"u")},r.de.wildcardNormalizer.label="wildcardNormalizer-de",r.de.wildcardNormalizer.pipelineFunctionLabel="stemmer-de",r.stemmerSupport.addQueryParserWildcardNormalizer(r,r.de.wildcardNormalizer),r.de.stopWordFilter=r.generateStopWordFilter("aber alle allem allen aller alles als also am an ander andere anderem anderen anderer anderes anderm andern anderr anders auch auf aus bei bin bis bist da damit dann das dasselbe dazu daß dein deine deinem deinen deiner deines dem demselben den denn denselben der derer derselbe derselben des desselben dessen dich die dies diese dieselbe dieselben diesem diesen dieser dieses dir doch dort du durch ein eine einem einen einer eines einig einige einigem einigen einiger einiges einmal er es etwas euch euer eure eurem euren eurer eures für gegen gewesen hab habe haben hat hatte hatten hier hin hinter ich ihm ihn ihnen ihr ihre ihrem ihren ihrer ihres im in indem ins ist jede jedem jeden jeder jedes jene jenem jenen jener jenes jetzt kann kein keine keinem keinen keiner keines können könnte machen man manche manchem manchen mancher manches mein meine meinem meinen meiner meines mich mir mit muss musste nach nicht nichts noch nun nur ob oder ohne sehr sein seine seinem seinen seiner seines selbst sich sie sind so solche solchem solchen solcher solches soll sollte sondern sonst um und uns unse unsem unsen unser unses unter viel vom von vor war waren warst was weg weil weiter welche welchem welchen welcher welches wenn werde werden wie wieder will wir wird wirst wo wollen wollte während würde würden zu zum zur zwar zwischen über".split(" ")),r.Pipeline.registerFunction(r.de.stopWordFilter,"stopWordFilter-de")}})}(kp)),kp.exports}var fue=cue();const due=wn(fue);var Ap={exports:{}};/*! - * Lunr languages, `French` language - * https://github.com/MihaiValentin/lunr-languages - * - * Copyright 2014, Mihai Valentin - * http://www.mozilla.org/MPL/ - */var hue=Ap.exports,mI;function pue(){return mI||(mI=1,function(e,t){(function(r,n){e.exports=n()})(hue,function(){return function(r){if(typeof r>"u")throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(typeof r.stemmerSupport>"u")throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.fr=function(){this.pipeline.reset(),this.pipeline.add(r.fr.trimmer,r.fr.stopWordFilter,r.fr.accentFold,r.fr.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.fr.trimmer,r.fr.accentFold,r.fr.stemmer))},r.fr.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",r.fr.trimmer=r.trimmerSupport.generateTrimmer(r.fr.wordCharacters),r.Pipeline.registerFunction(r.fr.trimmer,"trimmer-fr"),r.fr.stemmer=function(){var n=r.stemmerSupport.Among,i=r.stemmerSupport.SnowballProgram,a=new function(){var o=[new n("col",-1,-1),new n("par",-1,-1),new n("tap",-1,-1)],l=[new n("",-1,4),new n("I",0,1),new n("U",0,2),new n("Y",0,3)],u=[new n("iqU",-1,3),new n("abl",-1,3),new n("Ièr",-1,4),new n("ièr",-1,4),new n("eus",-1,2),new n("iv",-1,1)],c=[new n("ic",-1,2),new n("abil",-1,1),new n("iv",-1,3)],d=[new n("iqUe",-1,1),new n("atrice",-1,2),new n("ance",-1,1),new n("ence",-1,5),new n("logie",-1,3),new n("able",-1,1),new n("isme",-1,1),new n("euse",-1,11),new n("iste",-1,1),new n("ive",-1,8),new n("if",-1,8),new n("usion",-1,4),new n("ation",-1,2),new n("ution",-1,4),new n("ateur",-1,2),new n("iqUes",-1,1),new n("atrices",-1,2),new n("ances",-1,1),new n("ences",-1,5),new n("logies",-1,3),new n("ables",-1,1),new n("ismes",-1,1),new n("euses",-1,11),new n("istes",-1,1),new n("ives",-1,8),new n("ifs",-1,8),new n("usions",-1,4),new n("ations",-1,2),new n("utions",-1,4),new n("ateurs",-1,2),new n("ments",-1,15),new n("ements",30,6),new n("issements",31,12),new n("ités",-1,7),new n("ment",-1,15),new n("ement",34,6),new n("issement",35,12),new n("amment",34,13),new n("emment",34,14),new n("aux",-1,10),new n("eaux",39,9),new n("eux",-1,1),new n("ité",-1,7)],p=[new n("ira",-1,1),new n("ie",-1,1),new n("isse",-1,1),new n("issante",-1,1),new n("i",-1,1),new n("irai",4,1),new n("ir",-1,1),new n("iras",-1,1),new n("ies",-1,1),new n("îmes",-1,1),new n("isses",-1,1),new n("issantes",-1,1),new n("îtes",-1,1),new n("is",-1,1),new n("irais",13,1),new n("issais",13,1),new n("irions",-1,1),new n("issions",-1,1),new n("irons",-1,1),new n("issons",-1,1),new n("issants",-1,1),new n("it",-1,1),new n("irait",21,1),new n("issait",21,1),new n("issant",-1,1),new n("iraIent",-1,1),new n("issaIent",-1,1),new n("irent",-1,1),new n("issent",-1,1),new n("iront",-1,1),new n("ît",-1,1),new n("iriez",-1,1),new n("issiez",-1,1),new n("irez",-1,1),new n("issez",-1,1)],m=[new n("a",-1,3),new n("era",0,2),new n("asse",-1,3),new n("ante",-1,3),new n("ée",-1,2),new n("ai",-1,3),new n("erai",5,2),new n("er",-1,2),new n("as",-1,3),new n("eras",8,2),new n("âmes",-1,3),new n("asses",-1,3),new n("antes",-1,3),new n("âtes",-1,3),new n("ées",-1,2),new n("ais",-1,3),new n("erais",15,2),new n("ions",-1,1),new n("erions",17,2),new n("assions",17,3),new n("erons",-1,2),new n("ants",-1,3),new n("és",-1,2),new n("ait",-1,3),new n("erait",23,2),new n("ant",-1,3),new n("aIent",-1,3),new n("eraIent",26,2),new n("èrent",-1,2),new n("assent",-1,3),new n("eront",-1,2),new n("ât",-1,3),new n("ez",-1,2),new n("iez",32,2),new n("eriez",33,2),new n("assiez",33,3),new n("erez",32,2),new n("é",-1,2)],w=[new n("e",-1,3),new n("Ière",0,2),new n("ière",0,2),new n("ion",-1,1),new n("Ier",-1,2),new n("ier",-1,2),new n("ë",-1,4)],g=[new n("ell",-1,-1),new n("eill",-1,-1),new n("enn",-1,-1),new n("onn",-1,-1),new n("ett",-1,-1)],_=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,128,130,103,8,5],E=[1,65,20,0,0,0,0,0,0,0,0,0,0,0,0,0,128],x,b,C,v=new i;this.setCurrent=function(z){v.setCurrent(z)},this.getCurrent=function(){return v.getCurrent()};function k(z,B,se){return v.eq_s(1,z)&&(v.ket=v.cursor,v.in_grouping(_,97,251))?(v.slice_from(B),v.cursor=se,!0):!1}function T(z,B,se){return v.eq_s(1,z)?(v.ket=v.cursor,v.slice_from(B),v.cursor=se,!0):!1}function N(){for(var z,B;;)if(z=v.cursor,!(v.in_grouping(_,97,251)&&(v.bra=v.cursor,B=v.cursor,k("u","U",z)||(v.cursor=B,k("i","I",z))||(v.cursor=B,T("y","Y",z))))&&(v.cursor=z,v.bra=z,!k("y","Y",z))){if(v.cursor=z,v.eq_s(1,"q")&&(v.bra=v.cursor,T("u","U",z)))continue;if(v.cursor=z,z>=v.limit)return;v.cursor++}}function M(){for(;!v.in_grouping(_,97,251);){if(v.cursor>=v.limit)return!0;v.cursor++}for(;!v.out_grouping(_,97,251);){if(v.cursor>=v.limit)return!0;v.cursor++}return!1}function j(){var z=v.cursor;if(C=v.limit,b=C,x=C,v.in_grouping(_,97,251)&&v.in_grouping(_,97,251)&&v.cursor=v.limit){v.cursor=C;break}v.cursor++}while(!v.in_grouping(_,97,251))}C=v.cursor,v.cursor=z,M()||(b=v.cursor,M()||(x=v.cursor))}function D(){for(var z,B;B=v.cursor,v.bra=B,z=v.find_among(l,4),!!z;)switch(v.ket=v.cursor,z){case 1:v.slice_from("i");break;case 2:v.slice_from("u");break;case 3:v.slice_from("y");break;case 4:if(v.cursor>=v.limit)return;v.cursor++;break}}function H(){return C<=v.cursor}function X(){return b<=v.cursor}function W(){return x<=v.cursor}function U(){var z,B;if(v.ket=v.cursor,z=v.find_among_b(d,43),z){switch(v.bra=v.cursor,z){case 1:if(!W())return!1;v.slice_del();break;case 2:if(!W())return!1;v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"ic")&&(v.bra=v.cursor,W()?v.slice_del():v.slice_from("iqU"));break;case 3:if(!W())return!1;v.slice_from("log");break;case 4:if(!W())return!1;v.slice_from("u");break;case 5:if(!W())return!1;v.slice_from("ent");break;case 6:if(!H())return!1;if(v.slice_del(),v.ket=v.cursor,z=v.find_among_b(u,6),z)switch(v.bra=v.cursor,z){case 1:W()&&(v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"at")&&(v.bra=v.cursor,W()&&v.slice_del()));break;case 2:W()?v.slice_del():X()&&v.slice_from("eux");break;case 3:W()&&v.slice_del();break;case 4:H()&&v.slice_from("i");break}break;case 7:if(!W())return!1;if(v.slice_del(),v.ket=v.cursor,z=v.find_among_b(c,3),z)switch(v.bra=v.cursor,z){case 1:W()?v.slice_del():v.slice_from("abl");break;case 2:W()?v.slice_del():v.slice_from("iqU");break;case 3:W()&&v.slice_del();break}break;case 8:if(!W())return!1;if(v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"at")&&(v.bra=v.cursor,W()&&(v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"ic")))){v.bra=v.cursor,W()?v.slice_del():v.slice_from("iqU");break}break;case 9:v.slice_from("eau");break;case 10:if(!X())return!1;v.slice_from("al");break;case 11:if(W())v.slice_del();else if(X())v.slice_from("eux");else return!1;break;case 12:if(!X()||!v.out_grouping_b(_,97,251))return!1;v.slice_del();break;case 13:return H()&&v.slice_from("ant"),!1;case 14:return H()&&v.slice_from("ent"),!1;case 15:return B=v.limit-v.cursor,v.in_grouping_b(_,97,251)&&H()&&(v.cursor=v.limit-B,v.slice_del()),!1}return!0}return!1}function V(){var z,B;if(v.cursor=C){if(de=v.limit_backward,v.limit_backward=C,v.ket=v.cursor,z=v.find_among_b(w,7),z)switch(v.bra=v.cursor,z){case 1:if(W()){if(me=v.limit-v.cursor,!v.eq_s_b(1,"s")&&(v.cursor=v.limit-me,!v.eq_s_b(1,"t")))break;v.slice_del()}break;case 2:v.slice_from("i");break;case 3:v.slice_del();break;case 4:v.eq_s_b(2,"gu")&&v.slice_del();break}v.limit_backward=de}}function q(){var z=v.limit-v.cursor;v.find_among_b(g,5)&&(v.cursor=v.limit-z,v.ket=v.cursor,v.cursor>v.limit_backward&&(v.cursor--,v.bra=v.cursor,v.slice_del()))}function F(){for(var z,B=1;v.out_grouping_b(_,97,251);)B--;if(B<=0){if(v.ket=v.cursor,z=v.limit-v.cursor,!v.eq_s_b(1,"é")&&(v.cursor=v.limit-z,!v.eq_s_b(1,"è")))return;v.bra=v.cursor,v.slice_from("e")}}function G(){if(!U()&&(v.cursor=v.limit,!V()&&(v.cursor=v.limit,!K()))){v.cursor=v.limit,Y();return}v.cursor=v.limit,v.ket=v.cursor,v.eq_s_b(1,"Y")?(v.bra=v.cursor,v.slice_from("i")):(v.cursor=v.limit,v.eq_s_b(1,"ç")&&(v.bra=v.cursor,v.slice_from("c")))}this.stem=function(){var z=v.cursor;return N(),v.cursor=z,j(),v.limit_backward=z,v.cursor=v.limit,G(),v.cursor=v.limit,q(),v.cursor=v.limit,F(),v.cursor=v.limit_backward,D(),!0}};return function(s){return typeof s.update=="function"?s.update(function(o){return a.setCurrent(o),a.stem(),a.getCurrent()}):(a.setCurrent(s),a.stem(),a.getCurrent())}}(),r.Pipeline.registerFunction(r.fr.stemmer,"stemmer-fr"),r.fr.accentFoldTerm=function(n){return n.replace(/[\u00E0\u00E1\u00E2\u00E4\u00C0\u00C1\u00C2\u00C4]/g,"a").replace(/[\u00E7\u00C7]/g,"c").replace(/[\u00E9\u00E8\u00EA\u00EB\u00C9\u00C8\u00CA\u00CB]/g,"e").replace(/[\u00EE\u00EF\u00CE\u00CF]/g,"i").replace(/[\u00F4\u00F6\u00D4\u00D6]/g,"o").replace(/[\u00F9\u00FB\u00FC\u00D9\u00DB\u00DC]/g,"u").replace(/[\u0178\u00FF]/g,"y").replace(/[\u00E6\u00C6]/g,"ae").replace(/[\u0153\u0152]/g,"oe")},r.fr.accentFold=function(n){return n&&(typeof n.update=="function"?n.update(function(i){return r.fr.accentFoldTerm(i)}):typeof n=="string"?r.fr.accentFoldTerm(n):n)},r.Pipeline.registerFunction(r.fr.accentFold,"accentFold-fr"),r.fr.wildcardNormalizer=function(n){return r.fr.accentFoldTerm(n)},r.fr.wildcardNormalizer.label="wildcardNormalizer-fr",r.fr.wildcardNormalizer.pipelineFunctionLabel="stemmer-fr",r.stemmerSupport.addQueryParserWildcardNormalizer(r,r.fr.wildcardNormalizer),r.fr.stopWordFilter=r.generateStopWordFilter("ai aie aient aies ait as au aura aurai auraient aurais aurait auras aurez auriez aurions aurons auront aux avaient avais avait avec avez aviez avions avons ayant ayez ayons c ce ceci celà ces cet cette d dans de des du elle en es est et eu eue eues eurent eus eusse eussent eusses eussiez eussions eut eux eûmes eût eûtes furent fus fusse fussent fusses fussiez fussions fut fûmes fût fûtes ici il ils j je l la le les leur leurs lui m ma mais me mes moi mon même n ne nos notre nous on ont ou par pas pour qu que quel quelle quelles quels qui s sa sans se sera serai seraient serais serait seras serez seriez serions serons seront ses soi soient sois soit sommes son sont soyez soyons suis sur t ta te tes toi ton tu un une vos votre vous y à étaient étais était étant étiez étions été étée étées étés êtes".split(" ")),r.Pipeline.registerFunction(r.fr.stopWordFilter,"stopWordFilter-fr")}})}(Ap)),Ap.exports}var mue=pue();const gue=wn(mue);var Tp={exports:{}};/*! - * Lunr languages, `Italian` language - * https://github.com/MihaiValentin/lunr-languages - * - * Copyright 2014, Mihai Valentin - * http://www.mozilla.org/MPL/ - */var vue=Tp.exports,gI;function yue(){return gI||(gI=1,function(e,t){(function(r,n){e.exports=n()})(vue,function(){return function(r){if(typeof r>"u")throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(typeof r.stemmerSupport>"u")throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.it=function(){this.pipeline.reset(),this.pipeline.add(r.it.trimmer,r.it.stopWordFilter,r.it.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.it.trimmer,r.it.stemmer))},r.it.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA-Za-z",r.it.trimmer=r.trimmerSupport.generateTrimmer(r.it.wordCharacters),r.Pipeline.registerFunction(r.it.trimmer,"trimmer-it"),r.it.stemmer=function(){var n=r.stemmerSupport.Among,i=r.stemmerSupport.SnowballProgram,a=new function(){var o=[new n("",-1,7),new n("qu",0,6),new n("á",0,1),new n("é",0,2),new n("í",0,3),new n("ó",0,4),new n("ú",0,5)],l=[new n("",-1,3),new n("I",0,1),new n("U",0,2)],u=[new n("la",-1,-1),new n("cela",0,-1),new n("gliela",0,-1),new n("mela",0,-1),new n("tela",0,-1),new n("vela",0,-1),new n("le",-1,-1),new n("cele",6,-1),new n("gliele",6,-1),new n("mele",6,-1),new n("tele",6,-1),new n("vele",6,-1),new n("ne",-1,-1),new n("cene",12,-1),new n("gliene",12,-1),new n("mene",12,-1),new n("sene",12,-1),new n("tene",12,-1),new n("vene",12,-1),new n("ci",-1,-1),new n("li",-1,-1),new n("celi",20,-1),new n("glieli",20,-1),new n("meli",20,-1),new n("teli",20,-1),new n("veli",20,-1),new n("gli",20,-1),new n("mi",-1,-1),new n("si",-1,-1),new n("ti",-1,-1),new n("vi",-1,-1),new n("lo",-1,-1),new n("celo",31,-1),new n("glielo",31,-1),new n("melo",31,-1),new n("telo",31,-1),new n("velo",31,-1)],c=[new n("ando",-1,1),new n("endo",-1,1),new n("ar",-1,2),new n("er",-1,2),new n("ir",-1,2)],d=[new n("ic",-1,-1),new n("abil",-1,-1),new n("os",-1,-1),new n("iv",-1,1)],p=[new n("ic",-1,1),new n("abil",-1,1),new n("iv",-1,1)],m=[new n("ica",-1,1),new n("logia",-1,3),new n("osa",-1,1),new n("ista",-1,1),new n("iva",-1,9),new n("anza",-1,1),new n("enza",-1,5),new n("ice",-1,1),new n("atrice",7,1),new n("iche",-1,1),new n("logie",-1,3),new n("abile",-1,1),new n("ibile",-1,1),new n("usione",-1,4),new n("azione",-1,2),new n("uzione",-1,4),new n("atore",-1,2),new n("ose",-1,1),new n("ante",-1,1),new n("mente",-1,1),new n("amente",19,7),new n("iste",-1,1),new n("ive",-1,9),new n("anze",-1,1),new n("enze",-1,5),new n("ici",-1,1),new n("atrici",25,1),new n("ichi",-1,1),new n("abili",-1,1),new n("ibili",-1,1),new n("ismi",-1,1),new n("usioni",-1,4),new n("azioni",-1,2),new n("uzioni",-1,4),new n("atori",-1,2),new n("osi",-1,1),new n("anti",-1,1),new n("amenti",-1,6),new n("imenti",-1,6),new n("isti",-1,1),new n("ivi",-1,9),new n("ico",-1,1),new n("ismo",-1,1),new n("oso",-1,1),new n("amento",-1,6),new n("imento",-1,6),new n("ivo",-1,9),new n("ità",-1,8),new n("istà",-1,1),new n("istè",-1,1),new n("istì",-1,1)],w=[new n("isca",-1,1),new n("enda",-1,1),new n("ata",-1,1),new n("ita",-1,1),new n("uta",-1,1),new n("ava",-1,1),new n("eva",-1,1),new n("iva",-1,1),new n("erebbe",-1,1),new n("irebbe",-1,1),new n("isce",-1,1),new n("ende",-1,1),new n("are",-1,1),new n("ere",-1,1),new n("ire",-1,1),new n("asse",-1,1),new n("ate",-1,1),new n("avate",16,1),new n("evate",16,1),new n("ivate",16,1),new n("ete",-1,1),new n("erete",20,1),new n("irete",20,1),new n("ite",-1,1),new n("ereste",-1,1),new n("ireste",-1,1),new n("ute",-1,1),new n("erai",-1,1),new n("irai",-1,1),new n("isci",-1,1),new n("endi",-1,1),new n("erei",-1,1),new n("irei",-1,1),new n("assi",-1,1),new n("ati",-1,1),new n("iti",-1,1),new n("eresti",-1,1),new n("iresti",-1,1),new n("uti",-1,1),new n("avi",-1,1),new n("evi",-1,1),new n("ivi",-1,1),new n("isco",-1,1),new n("ando",-1,1),new n("endo",-1,1),new n("Yamo",-1,1),new n("iamo",-1,1),new n("avamo",-1,1),new n("evamo",-1,1),new n("ivamo",-1,1),new n("eremo",-1,1),new n("iremo",-1,1),new n("assimo",-1,1),new n("ammo",-1,1),new n("emmo",-1,1),new n("eremmo",54,1),new n("iremmo",54,1),new n("immo",-1,1),new n("ano",-1,1),new n("iscano",58,1),new n("avano",58,1),new n("evano",58,1),new n("ivano",58,1),new n("eranno",-1,1),new n("iranno",-1,1),new n("ono",-1,1),new n("iscono",65,1),new n("arono",65,1),new n("erono",65,1),new n("irono",65,1),new n("erebbero",-1,1),new n("irebbero",-1,1),new n("assero",-1,1),new n("essero",-1,1),new n("issero",-1,1),new n("ato",-1,1),new n("ito",-1,1),new n("uto",-1,1),new n("avo",-1,1),new n("evo",-1,1),new n("ivo",-1,1),new n("ar",-1,1),new n("ir",-1,1),new n("erà",-1,1),new n("irà",-1,1),new n("erò",-1,1),new n("irò",-1,1)],g=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,128,128,8,2,1],_=[17,65,0,0,0,0,0,0,0,0,0,0,0,0,0,128,128,8,2],E=[17],x,b,C,v=new i;this.setCurrent=function(z){v.setCurrent(z)},this.getCurrent=function(){return v.getCurrent()};function k(z,B,se){return v.eq_s(1,z)&&(v.ket=v.cursor,v.in_grouping(g,97,249))?(v.slice_from(B),v.cursor=se,!0):!1}function T(){for(var z,B=v.cursor,se,de,me;;){if(v.bra=v.cursor,z=v.find_among(o,7),z)switch(v.ket=v.cursor,z){case 1:v.slice_from("à");continue;case 2:v.slice_from("è");continue;case 3:v.slice_from("ì");continue;case 4:v.slice_from("ò");continue;case 5:v.slice_from("ù");continue;case 6:v.slice_from("qU");continue;case 7:if(v.cursor>=v.limit)break;v.cursor++;continue}break}for(v.cursor=B;;)for(se=v.cursor;de=v.cursor,!(v.in_grouping(g,97,249)&&(v.bra=v.cursor,me=v.cursor,k("u","U",de)||(v.cursor=me,k("i","I",de))));){if(v.cursor=de,v.cursor>=v.limit){v.cursor=se;return}v.cursor++}}function N(z){if(v.cursor=z,!v.in_grouping(g,97,249))return!1;for(;!v.out_grouping(g,97,249);){if(v.cursor>=v.limit)return!1;v.cursor++}return!0}function M(){if(v.in_grouping(g,97,249)){var z=v.cursor;if(v.out_grouping(g,97,249)){for(;!v.in_grouping(g,97,249);){if(v.cursor>=v.limit)return N(z);v.cursor++}return!0}return N(z)}return!1}function j(){var z=v.cursor,B;if(!M()){if(v.cursor=z,!v.out_grouping(g,97,249))return;if(B=v.cursor,v.out_grouping(g,97,249)){for(;!v.in_grouping(g,97,249);){if(v.cursor>=v.limit){v.cursor=B,v.in_grouping(g,97,249)&&v.cursor=v.limit)return;v.cursor++}C=v.cursor}function D(){for(;!v.in_grouping(g,97,249);){if(v.cursor>=v.limit)return!1;v.cursor++}for(;!v.out_grouping(g,97,249);){if(v.cursor>=v.limit)return!1;v.cursor++}return!0}function H(){var z=v.cursor;C=v.limit,b=C,x=C,j(),v.cursor=z,D()&&(b=v.cursor,D()&&(x=v.cursor))}function X(){for(var z;v.bra=v.cursor,z=v.find_among(l,3),!!z;)switch(v.ket=v.cursor,z){case 1:v.slice_from("i");break;case 2:v.slice_from("u");break;case 3:if(v.cursor>=v.limit)return;v.cursor++;break}}function W(){return C<=v.cursor}function U(){return b<=v.cursor}function V(){return x<=v.cursor}function K(){var z;if(v.ket=v.cursor,v.find_among_b(u,37)&&(v.bra=v.cursor,z=v.find_among_b(c,5),z&&W()))switch(z){case 1:v.slice_del();break;case 2:v.slice_from("e");break}}function Y(){var z;if(v.ket=v.cursor,z=v.find_among_b(m,51),!z)return!1;switch(v.bra=v.cursor,z){case 1:if(!V())return!1;v.slice_del();break;case 2:if(!V())return!1;v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"ic")&&(v.bra=v.cursor,V()&&v.slice_del());break;case 3:if(!V())return!1;v.slice_from("log");break;case 4:if(!V())return!1;v.slice_from("u");break;case 5:if(!V())return!1;v.slice_from("ente");break;case 6:if(!W())return!1;v.slice_del();break;case 7:if(!U())return!1;v.slice_del(),v.ket=v.cursor,z=v.find_among_b(d,4),z&&(v.bra=v.cursor,V()&&(v.slice_del(),z==1&&(v.ket=v.cursor,v.eq_s_b(2,"at")&&(v.bra=v.cursor,V()&&v.slice_del()))));break;case 8:if(!V())return!1;v.slice_del(),v.ket=v.cursor,z=v.find_among_b(p,3),z&&(v.bra=v.cursor,z==1&&V()&&v.slice_del());break;case 9:if(!V())return!1;v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"at")&&(v.bra=v.cursor,V()&&(v.slice_del(),v.ket=v.cursor,v.eq_s_b(2,"ic")&&(v.bra=v.cursor,V()&&v.slice_del())));break}return!0}function q(){var z,B;v.cursor>=C&&(B=v.limit_backward,v.limit_backward=C,v.ket=v.cursor,z=v.find_among_b(w,87),z&&(v.bra=v.cursor,z==1&&v.slice_del()),v.limit_backward=B)}function F(){var z=v.limit-v.cursor;if(v.ket=v.cursor,v.in_grouping_b(_,97,242)&&(v.bra=v.cursor,W()&&(v.slice_del(),v.ket=v.cursor,v.eq_s_b(1,"i")&&(v.bra=v.cursor,W())))){v.slice_del();return}v.cursor=v.limit-z}function G(){F(),v.ket=v.cursor,v.eq_s_b(1,"h")&&(v.bra=v.cursor,v.in_grouping_b(E,99,103)&&W()&&v.slice_del())}this.stem=function(){var z=v.cursor;return T(),v.cursor=z,H(),v.limit_backward=z,v.cursor=v.limit,K(),v.cursor=v.limit,Y()||(v.cursor=v.limit,q()),v.cursor=v.limit,G(),v.cursor=v.limit_backward,X(),!0}};return function(s){return typeof s.update=="function"?s.update(function(o){return a.setCurrent(o),a.stem(),a.getCurrent()}):(a.setCurrent(s),a.stem(),a.getCurrent())}}(),r.Pipeline.registerFunction(r.it.stemmer,"stemmer-it"),r.it.stopWordFilter=r.generateStopWordFilter("a abbia abbiamo abbiano abbiate ad agl agli ai al all alla alle allo anche avemmo avendo avesse avessero avessi avessimo aveste avesti avete aveva avevamo avevano avevate avevi avevo avrai avranno avrebbe avrebbero avrei avremmo avremo avreste avresti avrete avrà avrò avuta avute avuti avuto c che chi ci coi col come con contro cui da dagl dagli dai dal dall dalla dalle dallo degl degli dei del dell della delle dello di dov dove e ebbe ebbero ebbi ed era erano eravamo eravate eri ero essendo faccia facciamo facciano facciate faccio facemmo facendo facesse facessero facessi facessimo faceste facesti faceva facevamo facevano facevate facevi facevo fai fanno farai faranno farebbe farebbero farei faremmo faremo fareste faresti farete farà farò fece fecero feci fosse fossero fossi fossimo foste fosti fu fui fummo furono gli ha hai hanno ho i il in io l la le lei li lo loro lui ma mi mia mie miei mio ne negl negli nei nel nell nella nelle nello noi non nostra nostre nostri nostro o per perché più quale quanta quante quanti quanto quella quelle quelli quello questa queste questi questo sarai saranno sarebbe sarebbero sarei saremmo saremo sareste saresti sarete sarà sarò se sei si sia siamo siano siate siete sono sta stai stando stanno starai staranno starebbe starebbero starei staremmo staremo stareste staresti starete starà starò stava stavamo stavano stavate stavi stavo stemmo stesse stessero stessi stessimo steste stesti stette stettero stetti stia stiamo stiano stiate sto su sua sue sugl sugli sui sul sull sulla sulle sullo suo suoi ti tra tu tua tue tuo tuoi tutti tutto un una uno vi voi vostra vostre vostri vostro è".split(" ")),r.Pipeline.registerFunction(r.it.stopWordFilter,"stopWordFilter-it")}})}(Tp)),Tp.exports}var wue=yue();const _ue=wn(wue);var Ip={exports:{}};/*! - * Lunr languages, `Russian` language - * https://github.com/MihaiValentin/lunr-languages - * - * Copyright 2014, Mihai Valentin - * http://www.mozilla.org/MPL/ - */var bue=Ip.exports,vI;function xue(){return vI||(vI=1,function(e,t){(function(r,n){e.exports=n()})(bue,function(){return function(r){if(typeof r>"u")throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(typeof r.stemmerSupport>"u")throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.ru=function(){this.pipeline.reset(),this.pipeline.add(r.ru.trimmer,r.ru.stopWordFilter,r.ru.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.ru.trimmer,r.ru.stemmer))},r.ru.wordCharacters="Ѐ-҄҇-ԯᴫᵸⷠ-ⷿꙀ-ꚟ︮︯",r.ru.trimmer=r.trimmerSupport.generateTrimmer(r.ru.wordCharacters),r.Pipeline.registerFunction(r.ru.trimmer,"trimmer-ru"),r.ru.stemmer=function(){var n=r.stemmerSupport.Among,i=r.stemmerSupport.SnowballProgram,a=new function(){var o=[new n("в",-1,1),new n("ив",0,2),new n("ыв",0,2),new n("вши",-1,1),new n("ивши",3,2),new n("ывши",3,2),new n("вшись",-1,1),new n("ившись",6,2),new n("ывшись",6,2)],l=[new n("ее",-1,1),new n("ие",-1,1),new n("ое",-1,1),new n("ые",-1,1),new n("ими",-1,1),new n("ыми",-1,1),new n("ей",-1,1),new n("ий",-1,1),new n("ой",-1,1),new n("ый",-1,1),new n("ем",-1,1),new n("им",-1,1),new n("ом",-1,1),new n("ым",-1,1),new n("его",-1,1),new n("ого",-1,1),new n("ему",-1,1),new n("ому",-1,1),new n("их",-1,1),new n("ых",-1,1),new n("ею",-1,1),new n("ою",-1,1),new n("ую",-1,1),new n("юю",-1,1),new n("ая",-1,1),new n("яя",-1,1)],u=[new n("ем",-1,1),new n("нн",-1,1),new n("вш",-1,1),new n("ивш",2,2),new n("ывш",2,2),new n("щ",-1,1),new n("ющ",5,1),new n("ующ",6,2)],c=[new n("сь",-1,1),new n("ся",-1,1)],d=[new n("ла",-1,1),new n("ила",0,2),new n("ыла",0,2),new n("на",-1,1),new n("ена",3,2),new n("ете",-1,1),new n("ите",-1,2),new n("йте",-1,1),new n("ейте",7,2),new n("уйте",7,2),new n("ли",-1,1),new n("или",10,2),new n("ыли",10,2),new n("й",-1,1),new n("ей",13,2),new n("уй",13,2),new n("л",-1,1),new n("ил",16,2),new n("ыл",16,2),new n("ем",-1,1),new n("им",-1,2),new n("ым",-1,2),new n("н",-1,1),new n("ен",22,2),new n("ло",-1,1),new n("ило",24,2),new n("ыло",24,2),new n("но",-1,1),new n("ено",27,2),new n("нно",27,1),new n("ет",-1,1),new n("ует",30,2),new n("ит",-1,2),new n("ыт",-1,2),new n("ют",-1,1),new n("уют",34,2),new n("ят",-1,2),new n("ны",-1,1),new n("ены",37,2),new n("ть",-1,1),new n("ить",39,2),new n("ыть",39,2),new n("ешь",-1,1),new n("ишь",-1,2),new n("ю",-1,2),new n("ую",44,2)],p=[new n("а",-1,1),new n("ев",-1,1),new n("ов",-1,1),new n("е",-1,1),new n("ие",3,1),new n("ье",3,1),new n("и",-1,1),new n("еи",6,1),new n("ии",6,1),new n("ами",6,1),new n("ями",6,1),new n("иями",10,1),new n("й",-1,1),new n("ей",12,1),new n("ией",13,1),new n("ий",12,1),new n("ой",12,1),new n("ам",-1,1),new n("ем",-1,1),new n("ием",18,1),new n("ом",-1,1),new n("ям",-1,1),new n("иям",21,1),new n("о",-1,1),new n("у",-1,1),new n("ах",-1,1),new n("ях",-1,1),new n("иях",26,1),new n("ы",-1,1),new n("ь",-1,1),new n("ю",-1,1),new n("ию",30,1),new n("ью",30,1),new n("я",-1,1),new n("ия",33,1),new n("ья",33,1)],m=[new n("ост",-1,1),new n("ость",-1,1)],w=[new n("ейше",-1,1),new n("н",-1,2),new n("ейш",-1,1),new n("ь",-1,3)],g=[33,65,8,232],_,E,x=new i;this.setCurrent=function(K){x.setCurrent(K)},this.getCurrent=function(){return x.getCurrent()};function b(){for(;!x.in_grouping(g,1072,1103);){if(x.cursor>=x.limit)return!1;x.cursor++}return!0}function C(){for(;!x.out_grouping(g,1072,1103);){if(x.cursor>=x.limit)return!1;x.cursor++}return!0}function v(){E=x.limit,_=E,b()&&(E=x.cursor,C()&&b()&&C()&&(_=x.cursor))}function k(){return _<=x.cursor}function T(K,Y){var q,F;if(x.ket=x.cursor,q=x.find_among_b(K,Y),q){switch(x.bra=x.cursor,q){case 1:if(F=x.limit-x.cursor,!x.eq_s_b(1,"а")&&(x.cursor=x.limit-F,!x.eq_s_b(1,"я")))return!1;case 2:x.slice_del();break}return!0}return!1}function N(){return T(o,9)}function M(K,Y){var q;return x.ket=x.cursor,q=x.find_among_b(K,Y),q?(x.bra=x.cursor,q==1&&x.slice_del(),!0):!1}function j(){return M(l,26)}function D(){return j()?(T(u,8),!0):!1}function H(){return M(c,2)}function X(){return T(d,46)}function W(){M(p,36)}function U(){var K;x.ket=x.cursor,K=x.find_among_b(m,2),K&&(x.bra=x.cursor,k()&&K==1&&x.slice_del())}function V(){var K;if(x.ket=x.cursor,K=x.find_among_b(w,4),K)switch(x.bra=x.cursor,K){case 1:if(x.slice_del(),x.ket=x.cursor,!x.eq_s_b(1,"н"))break;x.bra=x.cursor;case 2:if(!x.eq_s_b(1,"н"))break;case 3:x.slice_del();break}}this.stem=function(){return v(),x.cursor=x.limit,x.cursor=a&&(o-=a,i[o>>3]&1<<(o&7)))return this.cursor++,!0}return!1},in_grouping_b:function(i,a,s){if(this.cursor>this.limit_backward){var o=n.charCodeAt(this.cursor-1);if(o<=s&&o>=a&&(o-=a,i[o>>3]&1<<(o&7)))return this.cursor--,!0}return!1},out_grouping:function(i,a,s){if(this.cursors||o>3]&1<<(o&7)))return this.cursor++,!0}return!1},out_grouping_b:function(i,a,s){if(this.cursor>this.limit_backward){var o=n.charCodeAt(this.cursor-1);if(o>s||o>3]&1<<(o&7)))return this.cursor--,!0}return!1},eq_s:function(i,a){if(this.limit-this.cursor>1),w=0,g=c0||o==s||p)break;p=!0}}for(;;){var _=i[s];if(c>=_.s_size){if(this.cursor=l+_.s_size,!_.method)return _.result;var x=_.method();if(this.cursor=l+_.s_size,x)return _.result}if(s=_.substring_i,s<0)return 0}},find_among_b:function(i,a){for(var s=0,o=a,l=this.cursor,u=this.limit_backward,c=0,d=0,p=!1;;){for(var m=s+(o-s>>1),w=0,g=c=0;E--){if(l-g==u){w=-1;break}if(w=n.charCodeAt(l-1-g)-_.s[E],w)break;g++}if(w<0?(o=m,d=g):(s=m,c=g),o-s<=1){if(s>0||o==s||p)break;p=!0}}for(;;){var _=i[s];if(c>=_.s_size){if(this.cursor=l-_.s_size,!_.method)return _.result;var x=_.method();if(this.cursor=l-_.s_size,x)return _.result}if(s=_.substring_i,s<0)return 0}},replace_s:function(i,a,s){var o=s.length-(a-i),l=n.substring(0,i),u=n.substring(a);return n=l+s+u,this.limit+=o,this.cursor>=a?this.cursor+=o:this.cursor>i&&(this.cursor=i),o},slice_check:function(){if(this.bra<0||this.bra>this.ket||this.ket>this.limit||this.limit>n.length)throw"faulty slice operation"},slice_from:function(i){this.slice_check(),this.replace_s(this.bra,this.ket,i)},slice_del:function(){this.slice_from("")},insert:function(i,a,s){var o=this.replace_s(i,a,s);i<=this.bra&&(this.bra+=o),i<=this.ket&&(this.ket+=o)},slice_to:function(){return this.slice_check(),n.substring(this.bra,this.ket)},eq_v_b:function(i){return this.eq_s_b(i.length,i)}}},addQueryParserWildcardNormalizer:function(n,i){if(!(!n.Index||!n.Index.prototype||!n.Index.prototype.query||!n.QueryParser||!n.QueryParser.parseTerm||!n.QueryLexer)){this.queryParserWildcardNormalizers||(this.queryParserWildcardNormalizers=[]);for(var a=0;ar.get(n)).map(n=>n&&n.husb).map(n=>n&&t.get(n)).map(n=>n&&n.lastName).join(" ")}class Oue{constructor(t){this.indiMap=Dm(t),this.famMap=ix(t)}initialize(){const t=this;this.index=pi(function(){t.initMultiLingualLunrWithoutTrimmer(this,["de","en","fr","it","ru"]),this.ref("id"),this.field("id"),this.field("name",{boost:10}),this.field("normalizedName",{boost:8}),this.field("spouseLastName",{boost:2}),this.field("normalizedSpouseLastName",{boost:2}),t.indiMap.forEach(r=>{const n=[r.firstName,r.lastName].join(" "),i=Rue(r,t.indiMap,t.famMap);this.add({id:r.id,name:n,normalizedName:wI(n),spouseLastName:i,normalizedSpouseLastName:wI(i)})})})}initMultiLingualLunrWithoutTrimmer(t,r){const n=[],i=[];r.forEach(a=>{const s=pi[a];a==="en"?(n.unshift(pi.stopWordFilter),n.push(pi.stemmer),i.push(pi.stemmer)):(s.stopWordFilter&&n.unshift(s.stopWordFilter),s.stemmer&&(n.push(s.stemmer),i.push(s.stemmer)))}),t.pipeline.reset(),t.pipeline.add(...n),t.searchPipeline&&(t.searchPipeline.reset(),t.searchPipeline.add(...i))}search(t){const r=t.split(" ").filter(i=>!!i).map(i=>`${i} ${i}*`).join(" ");return this.index.search(r).sort(Pue).slice(0,Iue).map(i=>({id:i.ref,indi:this.indiMap.get(i.ref)||{id:i.ref,firstName:"INDI NOT FOUND"}}))}}function o3(e){const t=new Oue(e);return t.initialize(),t}function Nue(e){const t=[e.indi.firstName,e.indi.lastName].join(" ").trim();return e.id.length>8?t:O.jsxs(O.Fragment,{children:[t," ",O.jsxs("i",{children:["(",e.id,")"]})]})}function _I(e){const[t,r]=J.useState([]),[n,i]=J.useState(""),a=J.useRef(void 0),s=dr();function o(m){const w=nu(m.birth,s),g=nu(m.death,s);return g?`${w} – ${g}`:w}function l(m){return{id:m.id,key:m.id,title:Nue(m),description:o(m.indi)}}function u(m){if(!m||!a.current)return;const w=a.current.search(m).map(g=>l(g));r(w)}const c=J.useRef(rue(u,200));function d(m){yn("search_result_selected"),e.onSelection({id:m,generation:0}),i("")}function p(m){c.current(m),i(m||"")}return J.useEffect(()=>{a.current=o3(e.data)},[e.data]),O.jsx(wo,{onSearchChange:(m,w)=>p(w.value),onResultSelect:(m,w)=>d(w.result.id),results:t,noResultsMessage:s.formatMessage({id:"menu.search.no_results",defaultMessage:"No results found"}),placeholder:s.formatMessage({id:"menu.search.placeholder",defaultMessage:"Search for people"}),selectFirstResult:!0,value:n,id:"search"})}var p0={exports:{}},m0={exports:{}},bI;function Mue(){return bI||(bI=1,function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(r,n){return r<>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return t.rotl(r,8)&16711935|t.rotl(r,24)&4278255360;for(var n=0;n0;r--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(r){for(var n=[],i=0,a=0;i>>5]|=r[i]<<24-a%32;return n},wordsToBytes:function(r){for(var n=[],i=0;i>>5]>>>24-i%32&255);return n},bytesToHex:function(r){for(var n=[],i=0;i>>4).toString(16)),n.push((r[i]&15).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],i=0;i>>6*(3-s)&63)):n.push("=");return n.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],i=0,a=0;i>>6-a*2);return n}};m0.exports=t}()),m0.exports}var g0,xI;function EI(){if(xI)return g0;xI=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],n=0;n - * @license MIT - */var v0,SI;function Due(){if(SI)return v0;SI=1,v0=function(r){return r!=null&&(e(r)||t(r)||!!r._isBuffer)};function e(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function t(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&e(r.slice(0,0))}return v0}var CI;function Fue(){return CI||(CI=1,function(){var e=Mue(),t=EI().utf8,r=Due(),n=EI().bin,i=function(a,s){a.constructor==String?s&&s.encoding==="binary"?a=n.stringToBytes(a):a=t.stringToBytes(a):r(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var o=e.bytesToWords(a),l=a.length*8,u=1732584193,c=-271733879,d=-1732584194,p=271733878,m=0;m>>24)&16711935|(o[m]<<24|o[m]>>>8)&4278255360;o[l>>>5]|=128<>>9<<4)+14]=l;for(var w=i._ff,g=i._gg,_=i._hh,E=i._ii,m=0;m>>0,c=c+b>>>0,d=d+C>>>0,p=p+v>>>0}return e.endian([u,c,d,p])};i._ff=function(a,s,o,l,u,c,d){var p=a+(s&o|~s&l)+(u>>>0)+d;return(p<>>32-c)+s},i._gg=function(a,s,o,l,u,c,d){var p=a+(s&l|o&~l)+(u>>>0)+d;return(p<>>32-c)+s},i._hh=function(a,s,o,l,u,c,d){var p=a+(s^o^l)+(u>>>0)+d;return(p<>>32-c)+s},i._ii=function(a,s,o,l,u,c,d){var p=a+(o^(s|~l))+(u>>>0)+d;return(p<>>32-c)+s},i._blocksize=16,i._digestsize=16,p0.exports=function(a,s){if(a==null)throw new Error("Illegal argument "+a);var o=e.wordsToBytes(i(a,s));return s&&s.asBytes?o:s&&s.asString?n.bytesToString(o):e.bytesToHex(o)}}()),p0.exports}var Lue=Fue();const kI=wn(Lue),jue=/Android|iPhone|iPad|iPod/i.test(navigator.userAgent);function Bue(e){const t=go(),r=Bn();async function n(a){const s=a.target.files;if(!s||!s.length)return;const o=Array.from(s);a.target.value="",yn("upload_files_selected",{event_value:s.length});const l=o.length===1?o[0]:o.find(g=>g.name.toLowerCase().endsWith(".ged"))||o[0],{gedcom:u,images:c}=await TF(l);o.filter(g=>g.name!==l.name&&Fm(g.name)).forEach(g=>c.set(g.name.toLowerCase(),URL.createObjectURL(g)));const d=Array.from(c.keys()).sort().join("|"),p=kI(kI(u)+d),w=dn.parse(r.search).file===p;t({pathname:"/view",search:dn.stringify({file:p})},{replace:w,state:{data:u,images:c}})}const i=O.jsxs(O.Fragment,{children:[O.jsx(Je,{name:"folder open"}),O.jsx(Ie,{id:"menu.open_file",defaultMessage:"Open file"})]});return O.jsxs(O.Fragment,{children:[e.menuType===Gr.Menu?O.jsx("label",{htmlFor:"fileInput",children:O.jsx(Kt.Item,{as:"a",children:i})}):O.jsx(Ze.Item,{as:"label",htmlFor:"fileInput",children:i}),O.jsx("input",{className:"hidden",type:"file",accept:jue?void 0:".ged,.gdz,.gedzip,.zip,.jpg,.jpeg,.png,.gif,.webp",id:"fileInput",multiple:!0,onChange:n})]})}function zue(e){const[t,r]=J.useState(!1),[n,i]=J.useState(""),a=J.useRef(null),s=go();J.useEffect(()=>{var u;t&&(i(""),(u=a.current)==null||u.focus())},[t]);function o(){r(!1),n&&(yn("url_selected"),s({pathname:"/view",search:dn.stringify({url:n})}))}function l(){return O.jsxs(Yt,{open:t,onClose:()=>r(!1),centered:!1,children:[O.jsxs(zt,{children:[O.jsx(Je,{name:"cloud download"}),O.jsx(Ie,{id:"load_from_url.title",defaultMessage:"Load from URL"})]}),O.jsx(Yt.Content,{children:O.jsxs(Lt,{onSubmit:o,children:[O.jsx(Ei,{placeholder:"https://",fluid:!0,value:n,onChange:(u,c)=>i(c.value),ref:a}),O.jsx("p",{children:O.jsx(Ie,{id:"load_from_url.comment",defaultMessage:"Data from the URL will be loaded through {link} to avoid CORS issues.",values:{link:O.jsx("a",{href:"https://topolaproxy.bieda.it/",children:"topolaproxy.bieda.it (cors-anywhere proxy)"})}})})]})}),O.jsxs(Yt.Actions,{children:[O.jsx(nn,{secondary:!0,onClick:()=>r(!1),children:O.jsx(Ie,{id:"load_from_url.cancel",defaultMessage:"Cancel"})}),O.jsx(nn,{primary:!0,onClick:o,children:O.jsx(Ie,{id:"load_from_url.load",defaultMessage:"Load"})})]})]})}return O.jsxs(O.Fragment,{children:[O.jsxs(su,{onClick:()=>r(!0),menuType:e.menuType,children:[O.jsx(Je,{name:"cloud download"}),O.jsx(Ie,{id:"menu.load_from_url",defaultMessage:"Load from URL"})]}),l()]})}const im=""+new URL("wikitree-B3ZIaA3X.png",import.meta.url).href;function y0(e){const[t,r]=J.useState(!1),[n,i]=J.useState(""),a=J.useRef(null),s=go(),o=Bn();J.useEffect(()=>{var d;t&&(i(""),(d=a.current)==null||d.focus())},[t]);function l(){if(r(!1),!n)return;yn("wikitree_id_selected");const d=dn.parse(o.search),p=d.standalone!==void 0?d.standalone:!0;s({pathname:"/view",search:dn.stringify({indi:n,source:"wikitree",standalone:p})})}function u(d,p){var m;d.preventDefault(),i(p),(m=a.current)==null||m.focus()}function c(){return O.jsxs(Yt,{open:t,onClose:()=>r(!1),centered:!1,children:[O.jsxs(zt,{children:[O.jsx("img",{src:im,alt:"WikiTree logo",style:{width:"32px",height:"32px"}}),O.jsx(Ie,{id:"select_wikitree_id.title",defaultMessage:"Select WikiTree ID"})]}),O.jsx(Yt.Content,{children:O.jsxs(Lt,{onSubmit:l,children:[O.jsx("p",{children:O.jsx(Ie,{id:"select_wikitree_id.comment",defaultMessage:"Enter a {wikiTreeLink} profile ID. Examples: {example1}, {example2}.",values:{wikiTreeLink:O.jsx("a",{href:"https://wikitree.com/",target:"_blank",rel:"noopener noreferrer",children:"WikiTree"}),example1:O.jsx("span",{onClick:d=>u(d,"Wojtyla-13"),className:"link-span",children:"Wojtyla-13"}),example2:O.jsx("span",{onClick:d=>u(d,"Skłodowska-2"),className:"link-span",children:"Skłodowska-2"})}})}),O.jsx(Ei,{fluid:!0,value:n,onChange:(d,p)=>i(p.value),ref:a})]})}),O.jsxs(Yt.Actions,{children:[O.jsx(nn,{secondary:!0,onClick:()=>r(!1),children:O.jsx(Ie,{id:"select_wikitree_id.cancel",defaultMessage:"Cancel"})}),O.jsx(nn,{primary:!0,onClick:l,children:O.jsx(Ie,{id:"select_wikitree_id.load",defaultMessage:"Load"})})]})]})}return O.jsxs(O.Fragment,{children:[O.jsxs(su,{menuType:e.menuType,onClick:()=>r(!0),children:[O.jsx("img",{src:im,alt:"WikiTree logo",className:"menu-icon"}),O.jsx(Ie,{id:"menu.select_wikitree_id",defaultMessage:"Select WikiTree ID"})]}),c()]})}function Uue(e){const t=dr();function r(){const s=`https://apps.wikitree.com/apps/wiech13/topola-viewer${window.location.hash}`;iu.navigateToLoginPage(s)}const n=iu.getLoggedInUserName();if(!n)return O.jsx(O.Fragment,{children:O.jsxs(su,{menuType:e.menuType,onClick:r,children:[O.jsx("img",{src:im,alt:"WikiTree logo",className:"menu-icon"}),O.jsx(Ie,{id:"menu.wikitree_login",defaultMessage:"Log in to WikiTree"})]})});const i=t.formatMessage({id:"menu.wikitree_popup_username",defaultMessage:"Logged in to WikiTree as {username}"},{username:n});return O.jsxs(su,{menuType:e.menuType,title:i,children:[O.jsx("img",{src:im,alt:"WikiTree logo",className:"menu-icon"}),O.jsx(Ie,{id:"menu.wikitree_logged_in",defaultMessage:"Logged in"})]})}function $ue(e){const t=go(),r=Bn();function n(p){const m=dn.parse(r.search);m.view!==p&&(m.view=p,r.search=dn.stringify(m),t(r))}function i(p){if(!e.showingChart||!e.data)return null;const m=O.jsxs(O.Fragment,{children:[O.jsxs(Ze.Item,{onClick:()=>n("hourglass"),children:[O.jsx(Je,{name:"hourglass"}),O.jsx(Ie,{id:"menu.hourglass",defaultMessage:"Hourglass chart"})]}),e.allowAllRelativesChart?O.jsxs(Ze.Item,{onClick:()=>n("relatives"),children:[O.jsx(Je,{name:"users"}),O.jsx(Ie,{id:"menu.relatives",defaultMessage:"All relatives"})]}):null,O.jsxs(Ze.Item,{onClick:()=>n("donatso"),children:[O.jsx(Je,{name:"users"}),O.jsx(Ie,{id:"menu.donatso",defaultMessage:"Donatso family chart"})]}),O.jsxs(Ze.Item,{onClick:()=>n("fancy"),children:[O.jsx(Je,{name:"users"}),O.jsx(Ie,{id:"menu.fancy",defaultMessage:"Fancy tree (experimental)"})]})]});switch(p){case 0:return O.jsxs(O.Fragment,{children:[O.jsxs(Kt.Item,{onClick:e.eventHandlers.onPrint,disabled:!e.allowPrintAndDownload,children:[O.jsx(Je,{name:"print"}),O.jsx(Ie,{id:"menu.print",defaultMessage:"Print"})]}),O.jsx(Ze,{trigger:O.jsxs("div",{children:[O.jsx(Je,{name:"download"}),O.jsx(Ie,{id:"menu.download",defaultMessage:"Download"})]}),className:"item",disabled:!e.allowPrintAndDownload,children:O.jsxs(Ze.Menu,{children:[O.jsx(Ze.Item,{onClick:e.eventHandlers.onDownloadPdf,children:O.jsx(Ie,{id:"menu.pdf_file",defaultMessage:"PDF file"})}),O.jsx(Ze.Item,{onClick:e.eventHandlers.onDownloadPng,children:O.jsx(Ie,{id:"menu.png_file",defaultMessage:"PNG file"})}),O.jsx(Ze.Item,{onClick:e.eventHandlers.onDownloadSvg,children:O.jsx(Ie,{id:"menu.svg_file",defaultMessage:"SVG file"})})]})}),O.jsx(Ze,{trigger:O.jsxs("div",{children:[O.jsx(Je,{name:"eye"}),O.jsx(Ie,{id:"menu.view",defaultMessage:"View"})]}),className:"item",children:O.jsx(Ze.Menu,{children:m})}),O.jsx(_I,{data:e.data,onSelection:e.eventHandlers.onSelection,...e})]});case 1:return O.jsxs(O.Fragment,{children:[O.jsxs(Ze.Item,{onClick:e.eventHandlers.onPrint,children:[O.jsx(Je,{name:"print"}),O.jsx(Ie,{id:"menu.print",defaultMessage:"Print"})]}),O.jsx(Ze.Divider,{}),O.jsxs(Ze.Item,{onClick:e.eventHandlers.onDownloadPdf,children:[O.jsx(Je,{name:"download"}),O.jsx(Ie,{id:"menu.download_pdf",defaultMessage:"Download PDF"})]}),O.jsxs(Ze.Item,{onClick:e.eventHandlers.onDownloadPng,children:[O.jsx(Je,{name:"download"}),O.jsx(Ie,{id:"menu.download_png",defaultMessage:"Download PNG"})]}),O.jsxs(Ze.Item,{onClick:e.eventHandlers.onDownloadSvg,children:[O.jsx(Je,{name:"download"}),O.jsx(Ie,{id:"menu.download_svg",defaultMessage:"Download SVG"})]}),O.jsx(Ze.Divider,{}),m,O.jsx(Ze.Divider,{})]})}}function a(){return O.jsx(Kt.Item,{children:O.jsx("b",{children:"Topola Genealogy"})})}function s(p){return e.hasGoogleToken?O.jsxs(O.Fragment,{children:[O.jsxs(su,{menuType:p===1?Gr.Dropdown:Gr.Menu,onClick:e.onGoogleSignOut,children:[O.jsx(Je,{name:"sign out"}),O.jsx(Ie,{id:"menu.google_sign_out",defaultMessage:"Disconnect Google Drive"})]}),p===1?O.jsx(Ze.Divider,{}):null]}):null}function o(p){return O.jsxs(O.Fragment,{children:[O.jsx(Bue,{menuType:p,...e}),O.jsx(zue,{menuType:p,...e}),O.jsx(y0,{menuType:p,...e}),O.jsx(eue,{menuType:p,onTokenAcquired:e.onGoogleTokenAcquired})]})}function l(p){if(!e.standalone&&e.showWikiTreeMenus)switch(p){case 0:return O.jsx(y0,{menuType:Gr.Menu,...e});case 1:return O.jsxs(O.Fragment,{children:[O.jsx(y0,{menuType:Gr.Dropdown,...e}),O.jsx(Ze.Divider,{})]})}if(!e.standalone)return null;switch(p){case 0:return e.showingChart?O.jsx(Ze,{trigger:O.jsxs("div",{children:[O.jsx(Je,{name:"folder open"}),O.jsx(Ie,{id:"menu.open",defaultMessage:"Open"})]}),className:"item",children:O.jsx(Ze.Menu,{children:o(Gr.Dropdown)})}):o(Gr.Menu);case 1:return O.jsxs(O.Fragment,{children:[o(Gr.Dropdown),O.jsx(Ze.Divider,{})]})}}function u(p){return e.showWikiTreeMenus?O.jsxs(O.Fragment,{children:[O.jsx(Uue,{menuType:p===1?Gr.Dropdown:Gr.Menu,...e}),p===1?O.jsx(Ze.Divider,{}):null]}):null}function c(){return O.jsxs(O.Fragment,{children:[O.jsx(Ze,{trigger:O.jsx("div",{children:O.jsx(Je,{name:"sidebar"})}),className:"item",icon:null,children:O.jsxs(Ze.Menu,{children:[l(1),i(1),s(1),u(1),O.jsx(Ze.Item,{href:"https://github.com/PeWu/topola-viewer",target:"_blank",rel:"noopener noreferrer",children:O.jsx(Ie,{id:"menu.github",defaultMessage:"GitHub project"})})]})}),O.jsx("div",{className:"topbar--title",children:e.standalone?O.jsx(_l,{to:"/",children:a()}):a()}),e.showingChart&&e.data&&O.jsx(_I,{data:e.data,onSelection:e.eventHandlers.onSelection,...e})]})}function d(){return O.jsxs(O.Fragment,{children:[e.standalone?O.jsx(_l,{to:"/",children:a()}):null,l(0),i(0),O.jsxs(Kt.Menu,{position:"right",children:[s(0),u(0),O.jsx(Kt.Item,{href:"https://github.com/PeWu/topola-viewer",target:"_blank",rel:"noopener noreferrer",children:O.jsx(Ie,{id:"menu.github",defaultMessage:"GitHub project"})})]})]})}return O.jsxs(O.Fragment,{children:[O.jsx(Kt,{as:pl,greaterThanOrEqual:"large",attached:"top",inverted:!0,color:"blue",size:"large",children:d()}),O.jsx(Kt,{as:pl,at:"small",attached:"top",inverted:!0,color:"blue",size:"large",children:c()})]})}function Hue(e){const r=e.gedcom.indis[e.indi].tree.find(i=>i.tag==="NAME"),n=(r==null?void 0:r.data.replaceAll("/",""))??"";return O.jsx("div",{className:"collapsed-details",children:n?O.jsx("span",{className:"vertical-name",children:n}):O.jsx("span",{className:"vertical-name",children:O.jsx(Ie,{id:"name.unknown_name",defaultMessage:"N.N."})})})}var w0,AI;function s3(){if(AI)return w0;AI=1;var e=Object.prototype.toString;return w0=function(r){var n=e.call(r),i=n==="[object Arguments]";return i||(i=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),i},w0}var _0,TI;function que(){if(TI)return _0;TI=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=s3(),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),s=i.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(p){var m=p.constructor;return m&&m.prototype===p},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!u["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{l(window[p])}catch{return!0}}catch{return!0}return!1}(),d=function(p){if(typeof window>"u"||!c)return l(p);try{return l(p)}catch{return!1}};e=function(m){var w=m!==null&&typeof m=="object",g=r.call(m)==="[object Function]",_=n(m),E=w&&r.call(m)==="[object String]",x=[];if(!w&&!g&&!_)throw new TypeError("Object.keys called on a non-object");var b=s&&g;if(E&&m.length>0&&!t.call(m,0))for(var C=0;C0)for(var v=0;v3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,p=!!n&&n(a,s);if(e)e(a,s,{configurable:c===null&&p?p.configurable:!c,enumerable:l===null&&p?p.enumerable:!l,value:o,writable:u===null&&p?p.writable:!u});else if(d||!l&&!u&&!c)a[s]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},A0}var T0,FI;function Ym(){if(FI)return T0;FI=1;var e=cd(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},T0=t,T0}var I0,LI;function Tx(){if(LI)return I0;LI=1;var e=Gue(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,i=Ax(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},s=Ym()(),o=function(u,c,d,p){if(c in u){if(p===!0){if(u[c]===d)return}else if(!a(p)||!p())return}s?i(u,c,d,!0):i(u,c,d)},l=function(u,c){var d=arguments.length>2?arguments[2]:{},p=e(c);t&&(p=n.call(p,Object.getOwnPropertySymbols(c)));for(var m=0;m"u"||!T?e:T(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":k&&T?T([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&T?T(T([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!k||!T?e:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!k||!T?e:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&T?T(""[Symbol.iterator]()):e,"%Symbol%":k?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":v,"%TypedArray%":X,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":j,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":N,"%Math.abs%":u,"%Math.floor%":c,"%Math.max%":d,"%Math.min%":p,"%Math.pow%":m,"%Math.round%":w,"%Math.sign%":g,"%Reflect.getPrototypeOf%":M};if(T)try{null.error}catch(Ne){var U=T(T(Ne));W["%Error.prototype%"]=U}var V=function Ne(Le){var He;if(Le==="%AsyncFunction%")He=E("async function () {}");else if(Le==="%GeneratorFunction%")He=E("function* () {}");else if(Le==="%AsyncGeneratorFunction%")He=E("async function* () {}");else if(Le==="%AsyncGenerator%"){var Oe=Ne("%AsyncGeneratorFunction%");Oe&&(He=Oe.prototype)}else if(Le==="%AsyncIteratorPrototype%"){var Fe=Ne("%AsyncGenerator%");Fe&&T&&(He=T(Fe.prototype))}return W[Le]=He,He},K={__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"]},Y=dd(),q=Ts(),F=Y.call(D,Array.prototype.concat),G=Y.call(j,Array.prototype.splice),z=Y.call(D,String.prototype.replace),B=Y.call(D,String.prototype.slice),se=Y.call(D,RegExp.prototype.exec),de=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,me=/\\(\\)?/g,Ee=function(Le){var He=B(Le,0,1),Oe=B(Le,-1);if(He==="%"&&Oe!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Oe==="%"&&He!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var Fe=[];return z(Le,de,function(We,rt,st,lt){Fe[Fe.length]=st?z(lt,me,"$1"):rt||We}),Fe},Pe=function(Le,He){var Oe=Le,Fe;if(q(K,Oe)&&(Fe=K[Oe],Oe="%"+Fe[0]+"%"),q(W,Oe)){var We=W[Oe];if(We===H&&(We=V(Oe)),typeof We>"u"&&!He)throw new o("intrinsic "+Le+" exists, but is not available. Please file an issue!");return{alias:Fe,name:Oe,value:We}}throw new s("intrinsic "+Le+" does not exist!")};return aw=function(Le,He){if(typeof Le!="string"||Le.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof He!="boolean")throw new o('"allowMissing" argument must be a boolean');if(se(/^%?[^%]*%?$/,Le)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Oe=Ee(Le),Fe=Oe.length>0?Oe[0]:"",We=Pe("%"+Fe+"%",He),rt=We.name,st=We.value,lt=!1,At=We.alias;At&&(Fe=At[0],G(Oe,F([0,1],At)));for(var qt=1,gt=!0;qt=Oe.length){var it=x(st,ct);gt=!!it,gt&&"get"in it&&!("originalValue"in it.get)?st=it.get:st=st[ct]}else gt=q(st,ct),st=st[ct];gt&&!lt&&(W[rt]=st)}}return st},aw}var ow,hP;function oce(){if(hP)return ow;hP=1;var e=ti(),t=Ax(),r=Ym()(),n=As(),i=Et(),a=e("%Math.floor%");return ow=function(o,l){if(typeof o!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||a(l)!==l)throw new i("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],c=!0,d=!0;if("length"in o&&n){var p=n(o,"length");p&&!p.configurable&&(c=!1),p&&!p.writable&&(d=!1)}return(c||d||!u)&&(r?t(o,"length",l,!0,!0):t(o,"length",l)),o},ow}var sw,pP;function sce(){if(pP)return sw;pP=1;var e=dd(),t=Rx(),r=p3();return sw=function(){return r(e,t,arguments)},sw}var mP;function m3(){return mP||(mP=1,function(e){var t=oce(),r=cd(),n=Jm(),i=sce();e.exports=function(s){var o=n(arguments),l=1+s.length-(arguments.length-1);return t(o,l>0?l:0,!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i}(P0)),P0.exports}var lw,gP;function g3(){if(gP)return lw;gP=1;var e=fd();return lw=function(r){return(typeof r=="number"||typeof r=="bigint")&&!e(r)&&r!==1/0&&r!==-1/0},lw}var uw,vP;function v3(){if(vP)return uw;vP=1;var e=u3(),t=Ix(),r=fd(),n=g3();return uw=function(a){if(typeof a!="number"||r(a)||!n(a))return!1;var s=e(a);return t(s)===s},uw}var cw,yP;function Pi(){return yP||(yP=1,cw=function(t){return!!t&&(typeof t=="function"||typeof t=="object")}),cw}var fw,wP;function lce(){return wP||(wP=1,fw=4294967295),fw}var dw,_P;function uce(){return _P||(_P=1,dw=typeof Reflect<"u"&&Reflect.setPrototypeOf||null),dw}var hw,bP;function cce(){if(bP)return hw;bP=1;var e=Xm();return hw=e.setPrototypeOf||null,hw}var pw,xP;function fce(){if(xP)return pw;xP=1;var e=Jm(),t=As(),r=Et(),n={};try{n.__proto__=null}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!("toString"in n),a=t&&t(Object.prototype,"__proto__");return pw=i&&(!!a&&typeof a.set=="function"&&e([a.set])||function(o,l){if(o==null)throw new r("set Object.prototype.__proto__ called on null or undefined");return o.__proto__=l,l}),pw}var mw,EP;function dce(){if(EP)return mw;EP=1;var e=uce(),t=cce(),r=fce(),n=Et();return mw=e?function(a,s){if(e(a,s))return a;throw new n("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:t||(r?function(a,s){return r(a,s),a}:null),mw}var gw,SP;function hce(){if(SP)return gw;SP=1;var e=ti(),t=e("%Array.prototype%"),r=l3(),n=Km(),i=Et(),a=v3(),s=lce(),o=dce();return gw=function(u){if(!a(u)||u<0)throw new i("Assertion failed: `length` must be an integer Number >= 0");if(u>s)throw new r("length is greater than (2**32 - 1)");var c=arguments.length>1?arguments[1]:t,d=[];if(c!==t){if(!o)throw new n("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");o(d,c)}return u!==0&&(d.length=u),d},gw}const pce={},mce=Object.freeze(Object.defineProperty({__proto__:null,default:pce},Symbol.toStringTag,{value:"Module"})),gce=Lf(mce);var vw,CP;function vce(){if(CP)return vw;CP=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=i&&a&&typeof a.get=="function"?a.get:null,o=i&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,d=c?WeakSet.prototype.has:null,p=typeof WeakRef=="function"&&WeakRef.prototype,m=p?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,g=Object.prototype.toString,_=Function.prototype.toString,E=String.prototype.match,x=String.prototype.slice,b=String.prototype.replace,C=String.prototype.toUpperCase,v=String.prototype.toLowerCase,k=RegExp.prototype.test,T=Array.prototype.concat,N=Array.prototype.join,M=Array.prototype.slice,j=Math.floor,D=typeof BigInt=="function"?BigInt.prototype.valueOf:null,H=Object.getOwnPropertySymbols,X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W||!0)?Symbol.toStringTag:null,V=Object.prototype.propertyIsEnumerable,K=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function Y(ae,le){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||k.call(/e/,le))return le;var Me=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var _t=ae<0?-j(-ae):j(ae);if(_t!==ae){var St=String(_t),Xe=x.call(le,St.length+1);return b.call(St,Me,"$&_")+"."+b.call(b.call(Xe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(le,Me,"$&_")}var q=gce,F=q.custom,G=We(F)?F:null,z={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};vw=function ae(le,Me,_t,St){var Xe=Me||{};if(lt(Xe,"quoteStyle")&&!lt(z,Xe.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lt(Xe,"maxStringLength")&&(typeof Xe.maxStringLength=="number"?Xe.maxStringLength<0&&Xe.maxStringLength!==1/0:Xe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Tn=lt(Xe,"customInspect")?Xe.customInspect:!0;if(typeof Tn!="boolean"&&Tn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lt(Xe,"indent")&&Xe.indent!==null&&Xe.indent!==" "&&!(parseInt(Xe.indent,10)===Xe.indent&&Xe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lt(Xe,"numericSeparator")&&typeof Xe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ni=Xe.numericSeparator;if(typeof le>"u")return"undefined";if(le===null)return"null";if(typeof le=="boolean")return le?"true":"false";if(typeof le=="string")return L(le,Xe);if(typeof le=="number"){if(le===0)return 1/0/le>0?"0":"-0";var _n=String(le);return ni?Y(le,_n):_n}if(typeof le=="bigint"){var Dr=String(le)+"n";return ni?Y(le,Dr):Dr}var Ps=typeof Xe.depth>"u"?5:Xe.depth;if(typeof _t>"u"&&(_t=0),_t>=Ps&&Ps>0&&typeof le=="object")return Ee(le)?"[Array]":"[Object]";var Ri=ge(Xe,_t);if(typeof St>"u")St=[];else if(gt(St,le)>=0)return"[Circular]";function In(Oi,So,gd){if(So&&(St=M.call(St),St.push(So)),gd){var Au={depth:Xe.depth};return lt(Xe,"quoteStyle")&&(Au.quoteStyle=Xe.quoteStyle),ae(Oi,Au,_t+1,St)}return ae(Oi,Xe,_t+1,St)}if(typeof le=="function"&&!Ne(le)){var xu=qt(le),ha=ft(le,In);return"[Function"+(xu?": "+xu:" (anonymous)")+"]"+(ha.length>0?" { "+N.call(ha,", ")+" }":"")}if(We(le)){var Rs=W?b.call(String(le),/^(Symbol\(.*\))_[^)]*$/,"$1"):X.call(le);return typeof le=="object"&&!W?R(Rs):Rs}if(pe(le)){for(var Fr="<"+v.call(String(le.nodeName)),Eu=le.attributes||[],ri=0;ri",Fr}if(Ee(le)){if(le.length===0)return"[]";var pa=ft(le,In);return Ri&&!fe(pa)?"["+Ve(pa,Ri)+"]":"[ "+N.call(pa,", ")+" ]"}if(Le(le)){var ma=ft(le,In);return!("cause"in Error.prototype)&&"cause"in le&&!V.call(le,"cause")?"{ ["+String(le)+"] "+N.call(T.call("[cause]: "+In(le.cause),ma),", ")+" }":ma.length===0?"["+String(le)+"]":"{ ["+String(le)+"] "+N.call(ma,", ")+" }"}if(typeof le=="object"&&Tn){if(G&&typeof le[G]=="function"&&q)return q(le,{depth:Ps-_t});if(Tn!=="symbol"&&typeof le.inspect=="function")return le.inspect()}if(ct(le)){var Os=[];return n&&n.call(le,function(Oi,So){Os.push(In(So,le,!0)+" => "+In(Oi,le))}),re("Map",r.call(le),Os,Ri)}if(it(le)){var hd=[];return o&&o.call(le,function(Oi){hd.push(In(Oi,le))}),re("Set",s.call(le),hd,Ri)}if(we(le))return Q("WeakMap");if(ht(le))return Q("WeakSet");if(et(le))return Q("WeakRef");if(Oe(le))return R(In(Number(le)));if(rt(le))return R(In(D.call(le)));if(Fe(le))return R(w.call(le));if(He(le))return R(In(String(le)));if(typeof window<"u"&&le===window)return"{ [object Window] }";if(typeof globalThis<"u"&&le===globalThis||typeof mi<"u"&&le===mi)return"{ [object globalThis] }";if(!Pe(le)&&!Ne(le)){var Su=ft(le,In),pd=K?K(le)===Object.prototype:le instanceof Object||le.constructor===Object,Lr=le instanceof Object?"":"null prototype",Cu=!pd&&U&&Object(le)===le&&U in le?x.call(At(le),8,-1):Lr?"Object":"",md=pd||typeof le.constructor!="function"?"":le.constructor.name?le.constructor.name+" ":"",ku=md+(Cu||Lr?"["+N.call(T.call([],Cu||[],Lr||[]),": ")+"] ":"");return Su.length===0?ku+"{}":Ri?ku+"{"+Ve(Su,Ri)+"}":ku+"{ "+N.call(Su,", ")+" }"}return String(le)};function se(ae,le,Me){var _t=Me.quoteStyle||le,St=z[_t];return St+ae+St}function de(ae){return b.call(String(ae),/"/g,""")}function me(ae){return!U||!(typeof ae=="object"&&(U in ae||typeof ae[U]<"u"))}function Ee(ae){return At(ae)==="[object Array]"&&me(ae)}function Pe(ae){return At(ae)==="[object Date]"&&me(ae)}function Ne(ae){return At(ae)==="[object RegExp]"&&me(ae)}function Le(ae){return At(ae)==="[object Error]"&&me(ae)}function He(ae){return At(ae)==="[object String]"&&me(ae)}function Oe(ae){return At(ae)==="[object Number]"&&me(ae)}function Fe(ae){return At(ae)==="[object Boolean]"&&me(ae)}function We(ae){if(W)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!X)return!1;try{return X.call(ae),!0}catch{}return!1}function rt(ae){if(!ae||typeof ae!="object"||!D)return!1;try{return D.call(ae),!0}catch{}return!1}var st=Object.prototype.hasOwnProperty||function(ae){return ae in this};function lt(ae,le){return st.call(ae,le)}function At(ae){return g.call(ae)}function qt(ae){if(ae.name)return ae.name;var le=E.call(_.call(ae),/^function\s*([\w$]+)/);return le?le[1]:null}function gt(ae,le){if(ae.indexOf)return ae.indexOf(le);for(var Me=0,_t=ae.length;Me<_t;Me++)if(ae[Me]===le)return Me;return-1}function ct(ae){if(!r||!ae||typeof ae!="object")return!1;try{r.call(ae);try{s.call(ae)}catch{return!0}return ae instanceof Map}catch{}return!1}function we(ae){if(!u||!ae||typeof ae!="object")return!1;try{u.call(ae,u);try{d.call(ae,d)}catch{return!0}return ae instanceof WeakMap}catch{}return!1}function et(ae){if(!m||!ae||typeof ae!="object")return!1;try{return m.call(ae),!0}catch{}return!1}function it(ae){if(!s||!ae||typeof ae!="object")return!1;try{s.call(ae);try{r.call(ae)}catch{return!0}return ae instanceof Set}catch{}return!1}function ht(ae){if(!d||!ae||typeof ae!="object")return!1;try{d.call(ae,d);try{u.call(ae,u)}catch{return!0}return ae instanceof WeakSet}catch{}return!1}function pe(ae){return!ae||typeof ae!="object"?!1:typeof HTMLElement<"u"&&ae instanceof HTMLElement?!0:typeof ae.nodeName=="string"&&typeof ae.getAttribute=="function"}function L(ae,le){if(ae.length>le.maxStringLength){var Me=ae.length-le.maxStringLength,_t="... "+Me+" more character"+(Me>1?"s":"");return L(x.call(ae,0,le.maxStringLength),le)+_t}var St=B[le.quoteStyle||"single"];St.lastIndex=0;var Xe=b.call(b.call(ae,St,"\\$1"),/[\x00-\x1f]/g,I);return se(Xe,"single",le)}function I(ae){var le=ae.charCodeAt(0),Me={8:"b",9:"t",10:"n",12:"f",13:"r"}[le];return Me?"\\"+Me:"\\x"+(le<16?"0":"")+C.call(le.toString(16))}function R(ae){return"Object("+ae+")"}function Q(ae){return ae+" { ? }"}function re(ae,le,Me,_t){var St=_t?Ve(Me,_t):N.call(Me,", ");return ae+" ("+le+") {"+St+"}"}function fe(ae){for(var le=0;le=0)return!1;return!0}function ge(ae,le){var Me;if(ae.indent===" ")Me=" ";else if(typeof ae.indent=="number"&&ae.indent>0)Me=N.call(Array(ae.indent+1)," ");else return null;return{base:Me,prev:N.call(Array(le+1),Me)}}function Ve(ae,le){if(ae.length===0)return"";var Me=` -`+le.prev+le.base;return Me+N.call(ae,","+Me)+` -`+le.prev}function ft(ae,le){var Me=Ee(ae),_t=[];if(Me){_t.length=ae.length;for(var St=0;St-1?t([s]):s},_w}var bw,IP;function y3(){if(IP)return bw;IP=1;var e=ti(),t=e("%Array%"),r=!t.isArray&&da()("Object.prototype.toString");return bw=t.isArray||function(i){return r(i)==="[object Array]"},bw}var xw,PP;function Ox(){return PP||(PP=1,xw=y3()),xw}var Jh={exports:{}},Ew,RP;function yce(){return RP||(RP=1,Ew=ti()),Ew}var Sw,OP;function Eo(){if(OP)return Sw;OP=1;var e=Et(),t=Ts(),r={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};return Sw=function(i){if(!i||typeof i!="object")return!1;for(var a in i)if(t(i,a)&&!r[a])return!1;var s=t(i,"[[Value]]")||t(i,"[[Writable]]"),o=t(i,"[[Get]]")||t(i,"[[Set]]");if(s&&o)throw new e("Property Descriptors may not be both accessor and data descriptors");return!0},Sw}var Cw,NP;function w3(){if(NP)return Cw;NP=1;var e=Ym(),t=cd(),r=e.hasArrayLengthDefineBug(),n=r&&y3(),i=da(),a=i("Object.prototype.propertyIsEnumerable");return Cw=function(o,l,u,c,d,p){if(!t){if(!o(p)||!p["[[Configurable]]"]||!p["[[Writable]]"]||d in c&&a(c,d)!==!!p["[[Enumerable]]"])return!1;var m=p["[[Value]]"];return c[d]=m,l(c[d],m)}return r&&d==="length"&&"[[Value]]"in p&&n(c)&&c.length!==p["[[Value]]"]?(c.length=p["[[Value]]"],c.length===p["[[Value]]"]):(t(c,d,u(p)),!0)},Cw}var kw,MP;function wce(){return MP||(MP=1,kw=function(t){if(typeof t>"u")return t;var r={};return"[[Value]]"in t&&(r.value=t["[[Value]]"]),"[[Writable]]"in t&&(r.writable=!!t["[[Writable]]"]),"[[Get]]"in t&&(r.get=t["[[Get]]"]),"[[Set]]"in t&&(r.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(r.enumerable=!!t["[[Enumerable]]"]),"[[Configurable]]"in t&&(r.configurable=!!t["[[Configurable]]"]),r}),kw}var Aw,DP;function _3(){if(DP)return Aw;DP=1;var e=Et(),t=Eo(),r=wce();return Aw=function(i){if(typeof i<"u"&&!t(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return r(i)},Aw}var Tw,FP;function Nx(){if(FP)return Tw;FP=1;var e=Et(),t=Ts(),r=Eo();return Tw=function(i){if(typeof i>"u")return!1;if(!r(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Value]]")&&!t(i,"[[Writable]]"))},Tw}var Iw,LP;function Mx(){if(LP)return Iw;LP=1;var e=fd();return Iw=function(r,n){return r===n?r===0?1/r===1/n:!0:e(r)&&e(n)},Iw}var Pw,jP;function b3(){if(jP)return Pw;jP=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(x){x!==n&&(t=null)}else t=null;var i=/^\s*class\b/,a=function(b){try{var C=e.call(b);return i.test(C)}catch{return!1}},s=function(b){try{return a(b)?!1:(e.call(b),!0)}catch{return!1}},o=Object.prototype.toString,l="[object Object]",u="[object Function]",c="[object GeneratorFunction]",d="[object HTMLAllCollection]",p="[object HTML document.all class]",m="[object HTMLCollection]",w=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),_=function(){return!1};if(typeof document=="object"){var E=document.all;o.call(E)===o.call(document.all)&&(_=function(b){if((g||!b)&&(typeof b>"u"||typeof b=="object"))try{var C=o.call(b);return(C===d||C===p||C===m||C===l)&&b("")==null}catch{}return!1})}return Pw=t?function(b){if(_(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{t(b,null,r)}catch(C){if(C!==n)return!1}return!a(b)&&s(b)}:function(b){if(_(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(w)return s(b);if(a(b))return!1;var C=o.call(b);return C!==u&&C!==c&&!/^\[object HTML/.test(C)?!1:s(b)},Pw}var Rw,BP;function x3(){return BP||(BP=1,Rw=b3()),Rw}var Ow,zP;function _ce(){return zP||(zP=1,Ow=function(t){return!!t}),Ow}var Nw,UP;function E3(){if(UP)return Nw;UP=1;var e=Ts(),t=Et(),r=Pi(),n=x3(),i=_ce();return Nw=function(s){if(!r(s))throw new t("ToPropertyDescriptor requires an object");var o={};if(e(s,"enumerable")&&(o["[[Enumerable]]"]=i(s.enumerable)),e(s,"configurable")&&(o["[[Configurable]]"]=i(s.configurable)),e(s,"value")&&(o["[[Value]]"]=s.value),e(s,"writable")&&(o["[[Writable]]"]=i(s.writable)),e(s,"get")){var l=s.get;if(typeof l<"u"&&!n(l))throw new t("getter must be a function");o["[[Get]]"]=l}if(e(s,"set")){var u=s.set;if(typeof u<"u"&&!n(u))throw new t("setter must be a function");o["[[Set]]"]=u}if((e(o,"[[Get]]")||e(o,"[[Set]]"))&&(e(o,"[[Value]]")||e(o,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return o},Nw}var Mw,$P;function bce(){if($P)return Mw;$P=1;var e=Et(),t=Pi(),r=Eo(),n=w3(),i=_3(),a=Nx(),s=Is(),o=Mx(),l=E3();return Mw=function(c,d,p){if(!t(c))throw new e("Assertion failed: Type(O) is not Object");if(!s(d))throw new e("Assertion failed: P is not a Property Key");var m=r(p)?p:l(p);if(!r(m))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return n(a,o,i,c,d,m)},Mw}var HP;function xce(){if(HP)return Jh.exports;HP=1;var e=yce(),t=e("%Reflect.construct%",!0),r=bce();try{r({},"",{"[[Get]]":function(){}})}catch{r=null}if(r&&t){var n={},i={};r(i,"length",{"[[Get]]":function(){throw n},"[[Enumerable]]":!0}),Jh.exports=function(s){try{t(s,i)}catch(o){return o===n}}}else Jh.exports=function(s){return typeof s=="function"&&!!s.prototype};return Jh.exports}var Dw,qP;function Ece(){if(qP)return Dw;qP=1;var e=ti(),t=e("%Symbol.species%",!0),r=Et(),n=v3(),i=Pi(),a=hce(),s=Zm(),o=Ox(),l=xce();return Dw=function(c,d){if(!n(d)||d<0)throw new r("Assertion failed: length must be an integer >= 0");var p=o(c);if(!p)return a(d);var m=s(c,"constructor");if(t&&i(m)&&(m=s(m,t),m===null&&(m=void 0)),typeof m>"u")return a(d);if(!l(m))throw new r("C must be a constructor");return new m(d)},Dw}var Fw,GP;function S3(){return GP||(GP=1,Fw=Number.MAX_SAFE_INTEGER||9007199254740991),Fw}var Lw,WP;function Sce(){if(WP)return Lw;WP=1;var e=ti(),t=da(),r=Et(),n=Ox(),i=e("%Reflect.apply%",!0)||t("Function.prototype.apply");return Lw=function(s,o){var l=arguments.length>2?arguments[2]:[];if(!n(l))throw new r("Assertion failed: optional `argumentsList`, if provided, must be a List");return i(s,o,l)},Lw}var jw,VP;function Dx(){if(VP)return jw;VP=1;var e=Et(),t=Ts(),r=Eo();return jw=function(i){if(typeof i>"u")return!1;if(!r(i))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!(!t(i,"[[Get]]")&&!t(i,"[[Set]]"))},jw}var Bw,QP;function C3(){return QP||(QP=1,Bw=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),Bw}var zw,KP;function Cce(){if(KP)return zw;KP=1;var e=ti(),t=e("%Object.preventExtensions%",!0),r=e("%Object.isExtensible%",!0),n=C3();return zw=t?function(a){return!n(a)&&r(a)}:function(a){return!n(a)},zw}var Uw,YP;function kce(){if(YP)return Uw;YP=1;var e=Eo();return Uw=function(r,n){return e(n)&&"[[Enumerable]]"in n&&"[[Configurable]]"in n&&(r.IsAccessorDescriptor(n)||r.IsDataDescriptor(n))},Uw}var $w,XP;function Ace(){if(XP)return $w;XP=1;var e=Et(),t=Dx(),r=Nx(),n=Eo();return $w=function(a){if(typeof a>"u")return!1;if(!n(a))throw new e("Assertion failed: `Desc` must be a Property Descriptor");return!t(a)&&!r(a)},$w}var Hw,JP;function Tce(){if(JP)return Hw;JP=1;var e=Et(),t=Pi(),r=w3(),n=kce(),i=Eo(),a=_3(),s=Dx(),o=Nx(),l=Ace(),u=Is(),c=Mx();return Hw=function(p,m,w,g,_){if(typeof p<"u"&&!t(p))throw new e("Assertion failed: O must be undefined or an Object");if(!u(m))throw new e("Assertion failed: P must be a Property Key");if(typeof w!="boolean")throw new e("Assertion failed: extensible must be a Boolean");if(!i(g))throw new e("Assertion failed: Desc must be a Property Descriptor");if(typeof _<"u"&&!i(_))throw new e("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof _>"u")return w?typeof p>"u"?!0:s(g)?r(o,c,a,p,m,g):r(o,c,a,p,m,{"[[Configurable]]":!!g["[[Configurable]]"],"[[Enumerable]]":!!g["[[Enumerable]]"],"[[Value]]":g["[[Value]]"],"[[Writable]]":!!g["[[Writable]]"]}):!1;if(!n({IsAccessorDescriptor:s,IsDataDescriptor:o},_))throw new e("`current`, when present, must be a fully populated and valid Property Descriptor");if(!_["[[Configurable]]"]){if("[[Configurable]]"in g&&g["[[Configurable]]"]||"[[Enumerable]]"in g&&!c(g["[[Enumerable]]"],_["[[Enumerable]]"])||!l(g)&&!c(s(g),s(_)))return!1;if(s(_)){if("[[Get]]"in g&&!c(g["[[Get]]"],_["[[Get]]"])||"[[Set]]"in g&&!c(g["[[Set]]"],_["[[Set]]"]))return!1}else if(!_["[[Writable]]"]&&("[[Writable]]"in g&&g["[[Writable]]"]||"[[Value]]"in g&&!c(g["[[Value]]"],_["[[Value]]"])))return!1}if(typeof p<"u"){var E,x;return o(_)&&s(g)?(E=("[[Configurable]]"in g?g:_)["[[Configurable]]"],x=("[[Enumerable]]"in g?g:_)["[[Enumerable]]"],r(o,c,a,p,m,{"[[Configurable]]":!!E,"[[Enumerable]]":!!x,"[[Get]]":("[[Get]]"in g?g:_)["[[Get]]"],"[[Set]]":("[[Set]]"in g?g:_)["[[Set]]"]})):s(_)&&o(g)?(E=("[[Configurable]]"in g?g:_)["[[Configurable]]"],x=("[[Enumerable]]"in g?g:_)["[[Enumerable]]"],r(o,c,a,p,m,{"[[Configurable]]":!!E,"[[Enumerable]]":!!x,"[[Value]]":("[[Value]]"in g?g:_)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in g?g:_)["[[Writable]]"]})):r(o,c,a,p,m,g)}return!0},Hw}var qw,ZP;function Ice(){if(ZP)return qw;ZP=1;var e=As(),t=Km(),r=Et(),n=Pi(),i=Eo(),a=Dx(),s=Cce(),o=Is(),l=E3(),u=Mx(),c=Tce();return qw=function(p,m,w){if(!n(p))throw new r("Assertion failed: O must be an Object");if(!o(m))throw new r("Assertion failed: P must be a Property Key");if(!i(w))throw new r("Assertion failed: Desc must be a Property Descriptor");if(!e){if(a(w))throw new t("This environment does not support accessor property descriptors.");var g=!(m in p)&&w["[[Writable]]"]&&w["[[Enumerable]]"]&&w["[[Configurable]]"]&&"[[Value]]"in w,_=m in p&&(!("[[Configurable]]"in w)||w["[[Configurable]]"])&&(!("[[Enumerable]]"in w)||w["[[Enumerable]]"])&&(!("[[Writable]]"in w)||w["[[Writable]]"])&&"[[Value]]"in w;if(g||_)return p[m]=w["[[Value]]"],u(p[m],w["[[Value]]"]);throw new t("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var E=e(p,m),x=E&&l(E),b=s(p);return c(p,m,b,w,x)},qw}var Gw,eR;function Pce(){if(eR)return Gw;eR=1;var e=Et(),t=Pi(),r=Is(),n=Ice();return Gw=function(a,s,o){if(!t(a))throw new e("Assertion failed: Type(O) is not Object");if(!r(s))throw new e("Assertion failed: P is not a Property Key");var l={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":o,"[[Writable]]":!0};return n(a,s,l)},Gw}var Ww,tR;function Rce(){if(tR)return Ww;tR=1;var e=Et(),t=Pi(),r=Pce(),n=Is();return Ww=function(a,s,o){if(!t(a))throw new e("Assertion failed: Type(O) is not Object");if(!n(s))throw new e("Assertion failed: P is not a Property Key");var l=r(a,s,o);if(!l)throw new e("unable to create data property")},Ww}var Vw,nR;function Oce(){if(nR)return Vw;nR=1;var e=Et(),t=Pi(),r=Is();return Vw=function(i,a){if(!t(i))throw new e("Assertion failed: `O` must be an Object");if(!r(a))throw new e("Assertion failed: `P` must be a Property Key");return a in i},Vw}var Qw,rR;function Nce(){return rR||(rR=1,Qw=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),Qw}var Kw,iR;function k3(){if(iR)return Kw;iR=1;var e=c3();return Kw=function(){return e()&&!!Symbol.toStringTag},Kw}var Yw,aR;function Mce(){if(aR)return Yw;aR=1;var e=da(),t=e("Date.prototype.getDay"),r=function(o){try{return t(o),!0}catch{return!1}},n=e("Object.prototype.toString"),i="[object Date]",a=k3()();return Yw=function(o){return typeof o!="object"||o===null?!1:a?r(o):n(o)===i},Yw}var Zh={exports:{}},Xw,oR;function Dce(){if(oR)return Xw;oR=1;var e=da(),t=k3()(),r=Ts(),n=As(),i;if(t){var a=e("RegExp.prototype.exec"),s={},o=function(){throw s},l={toString:o,valueOf:o};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=o),i=function(p){if(!p||typeof p!="object")return!1;var m=n(p,"lastIndex"),w=m&&r(m,"value");if(!w)return!1;try{a(p,l)}catch(g){return g===s}}}else{var u=e("Object.prototype.toString"),c="[object RegExp]";i=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:u(p)===c}}return Xw=i,Xw}var Jw,sR;function A3(){if(sR)return Jw;sR=1;var e=da(),t=Dce(),r=e("RegExp.prototype.exec"),n=Et();return Jw=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(o){return r(a,o)!==null}},Jw}var lR;function Fce(){if(lR)return Zh.exports;lR=1;var e=da(),t=e("Object.prototype.toString"),r=f3()(),n=A3();if(r){var i=e("Symbol.prototype.toString"),a=n(/^Symbol\(.*\)$/),s=function(l){return typeof l.valueOf()!="symbol"?!1:a(i(l))};Zh.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return s(l)}catch{return!1}}}else Zh.exports=function(l){return!1};return Zh.exports}var Zw,uR;function Lce(){if(uR)return Zw;uR=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=Nce(),r=b3(),n=Mce(),i=Fce(),a=function(l,u){if(typeof l>"u"||l===null)throw new TypeError("Cannot call method on "+l);if(typeof u!="string"||u!=="number"&&u!=="string")throw new TypeError('hint must be "string" or "number"');var c=u==="string"?["toString","valueOf"]:["valueOf","toString"],d,p,m;for(m=0;m1&&(arguments[1]===String?u="string":arguments[1]===Number&&(u="number"));var c;if(e&&(Symbol.toPrimitive?c=s(l,Symbol.toPrimitive):i(l)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var d=c.call(l,u);if(t(d))return d;throw new TypeError("unable to convert exotic object to primitive")}return u==="default"&&(n(l)||i(l))&&(u="string"),a(l,u==="default"?"number":u)},Zw}var e_,cR;function jce(){if(cR)return e_;cR=1;var e=Lce();return e_=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},e_}var t_,fR;function Fx(){if(fR)return t_;fR=1;var e=Et();return t_=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},t_}var n_,dR;function T3(){if(dR)return n_;dR=1;var e=ti(),t=e("%String%"),r=Et();return n_=function(i){if(typeof i=="symbol")throw new r("Cannot convert a Symbol value to a string");return t(i)},n_}var r_,hR;function I3(){if(hR)return r_;hR=1;var e=Fx(),t=T3(),r=da(),n=r("String.prototype.replace"),i=/^\s$/.test("᠎"),a=i?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=i?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;return r_=function(){var l=t(e(this));return n(n(l,a,""),s,"")},r_}var i_,pR;function P3(){if(pR)return i_;pR=1;var e=I3(),t="​",r="᠎";return i_=function(){return String.prototype.trim&&t.trim()===t&&r.trim()===r&&("_"+r).trim()==="_"+r&&(r+"_").trim()===r+"_"?String.prototype.trim:e},i_}var a_,mR;function Bce(){if(mR)return a_;mR=1;var e=Ym()(),t=Ax(),r=P3();return a_=function(){var i=r();return String.prototype.trim!==i&&(e?t(String.prototype,"trim",i,!0):t(String.prototype,"trim",i)),i},a_}var o_,gR;function zce(){if(gR)return o_;gR=1;var e=m3(),t=Tx(),r=Fx(),n=I3(),i=P3(),a=Bce(),s=e(i()),o=function(u){return r(u),s(u)};return t(o,{getPolyfill:i,implementation:n,shim:a}),o_=o,o_}var s_,vR;function Uce(){if(vR)return s_;vR=1;var e=ti(),t=e("%RegExp%"),r=Et(),n=e("%parseInt%"),i=da(),a=A3(),s=i("String.prototype.slice"),o=a(/^0b[01]+$/i),l=a(/^0o[0-7]+$/i),u=a(/^[-+]0x[0-9a-f]+$/i),c=["…","​","￾"].join(""),d=new t("["+c+"]","g"),p=a(d),m=zce();return s_=function w(g){if(typeof g!="string")throw new r("Assertion failed: `argument` is not a String");if(o(g))return+n(s(g,2),2);if(l(g))return+n(s(g,2),8);if(p(g)||u(g))return NaN;var _=m(g);return _!==g?w(_):+g},s_}var l_,yR;function $ce(){if(yR)return l_;yR=1;var e=ti(),t=Et(),r=e("%Number%"),n=C3(),i=jce(),a=Uce();return l_=function(o){var l=n(o)?o:i(o,r);if(typeof l=="symbol")throw new t("Cannot convert a Symbol value to a number");if(typeof l=="bigint")throw new t("Conversion from 'BigInt' to 'number' is not allowed.");return typeof l=="string"?a(l):+l},l_}var u_,wR;function Hce(){if(wR)return u_;wR=1;var e=Ix();return u_=function(r){return typeof r=="bigint"?r:e(r)},u_}var c_,_R;function qce(){if(_R)return c_;_R=1;var e=Hce(),t=Et();return c_=function(n){if(typeof n!="number"&&typeof n!="bigint")throw new t("argument must be a Number or a BigInt");var i=n<0?-e(-n):e(n);return i===0?0:i},c_}var f_,bR;function Gce(){if(bR)return f_;bR=1;var e=$ce(),t=qce(),r=fd(),n=g3();return f_=function(a){var s=e(a);return r(s)||s===0?0:n(s)?t(s):s},f_}var d_,xR;function R3(){if(xR)return d_;xR=1;var e=S3(),t=Gce();return d_=function(n){var i=t(n);return i<=0?0:i>e?e:i},d_}var h_,ER;function Wce(){if(ER)return h_;ER=1;var e=Et(),t=Pi(),r=Zm(),n=R3();return h_=function(a){if(!t(a))throw new e("Assertion failed: `obj` must be an Object");return n(r(a,"length"))},h_}var p_,SR;function Vce(){if(SR)return p_;SR=1;var e=Et(),t=S3(),r=Sce(),n=Rce(),i=Zm(),a=Oce(),s=Ox(),o=Wce(),l=T3();return p_=function u(c,d,p,m,w){var g;arguments.length>5&&(g=arguments[5]);for(var _=m,E=0;E0&&(v=s(C)),v){var k=o(C);_=u(c,C,k,_,w-1)}else{if(_>=t)throw new e("index too large");n(c,l(_),C),_+=1}}E+=1}return _},p_}var m_,CR;function Qce(){if(CR)return m_;CR=1;var e=Xm(),t=Fx();return m_=function(n){return t(n),e(n)},m_}var g_,kR;function Kce(){return kR||(kR=1,g_=Qce()),g_}var v_,AR;function O3(){if(AR)return v_;AR=1;var e=Ece(),t=Vce(),r=Zm(),n=x3(),i=R3(),a=Kce();return v_=function(o){var l=a(this),u=i(r(l,"length"));if(!n(o))throw new TypeError("mapperFunction must be a function");var c;arguments.length>1&&(c=arguments[1]);var d=e(l,0);return t(d,l,u,0,1,o,c),d},v_}var y_,TR;function N3(){if(TR)return y_;TR=1;var e=O3();return y_=function(){return Array.prototype.flatMap||e},y_}var w_,IR;function Yce(){if(IR)return w_;IR=1;var e=Ts(),t=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",r=t&&Array.prototype[Symbol.unscopables],n=TypeError;return w_=function(a){if(typeof a!="string"||!a)throw new n("method must be a non-empty string");if(!e(Array.prototype,a))throw new n("method must be on Array.prototype");t&&(r[a]=!0)},w_}var __,PR;function Xce(){if(PR)return __;PR=1;var e=Tx(),t=Yce(),r=N3();return __=function(){var i=r();return e(Array.prototype,{flatMap:i},{flatMap:function(){return Array.prototype.flatMap!==i}}),t("flatMap"),i},__}var b_,RR;function Jce(){if(RR)return b_;RR=1;var e=Tx(),t=m3(),r=O3(),n=N3(),i=n(),a=Xce(),s=t(i);return e(s,{getPolyfill:n,implementation:r,shim:a}),b_=s,b_}var Zce=Jce();const eg=wn(Zce);function M3({files:e}){return e!=null&&e.length?O.jsx(Ke,{children:e.map((t,r)=>O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),O.jsxs(Ke.Content,{children:[O.jsx(Ke.Header,{children:O.jsx("a",{target:"_blank",href:t.url,rel:"noopener noreferrer",children:t.filename||t.url.split("/").pop()||t.url})}),O.jsx(Ke.Description,{children:t.titl&&O.jsx("div",{children:t.titl})})]})]},r))}):null}function efe(e,t,r){const n=Ff(e,t),i=e.qualifier||t.qualifier,a=i&&GD(i,r)+" ";return r.formatMessage({id:"age.exact",defaultMessage:"{qualifier}{age, plural, =0 {Less than 1 year} one {1 year} other {# years}}"},{age:n,qualifier:a})}function ep(e,t,r){const n=Ff(e,t);return r.formatMessage({id:"age.more",defaultMessage:"More than {age, plural, =0 {0 years} one {1 year} other {# years}}"},{age:n})}function tp(e,t,r){const n=Ff(e,t);return r.formatMessage({id:"age.less",defaultMessage:"Less than {age, plural, =0 {1 year} one {1 year} other {# years}}"},{age:n})}function x_(e,t,r,n,i){const a=Ff(t,r),s=Ff(e,n);return i.formatMessage({id:"age.between",defaultMessage:"Between {ageFrom} and {ageTo, plural, =0 {0 years} one {1 year} other {# years}}"},{ageFrom:a,ageTo:s})}function tfe(e,t){return e&&t?!_1(e)||!_1(t)||nd(e,t)>0?!1:e.dateRange&&t.dateRange&&b1(e==null?void 0:e.dateRange)&&b1(t==null?void 0:t.dateRange)?!yZ(e.dateRange,t.dateRange):!0:!1}function Ff(e,t){const r=x1(e),n=x1(t),i=r.getUTCFullYear();let a=n.getUTCFullYear()-i,s=n.getUTCMonth()-r.getUTCMonth();return s<0&&(a--,s+=12),n.getUTCDate()-r.getUTCDate()<0&&s<=0&&a--,Math.abs(a)}function nfe(e,t,r){var n,i,a,s,o,l,u,c,d,p,m,w,g,_,E,x,b,C,v,k,T,N,M,j,D,H,X,W,U,V,K,Y,q,F;if(e&&t){const G=hn.getDate(e),z=hn.getDate(t);if(tfe(G,z)){if(G!=null&&G.date){if(z!=null&&z.date)return efe(G.date,z.date,r);if((n=z==null?void 0:z.dateRange)!=null&&n.from&&((i=z.dateRange)!=null&&i.to))return x_(G.date,G.date,(a=z==null?void 0:z.dateRange)==null?void 0:a.from,(s=z==null?void 0:z.dateRange)==null?void 0:s.to,r);if((o=z==null?void 0:z.dateRange)!=null&&o.from)return ep(G.date,(l=z.dateRange)==null?void 0:l.from,r);if((u=z==null?void 0:z.dateRange)!=null&&u.to)return tp(G.date,(c=z.dateRange)==null?void 0:c.to,r)}if((d=G==null?void 0:G.dateRange)!=null&&d.from&&((p=G==null?void 0:G.dateRange)!=null&&p.to)){if(z!=null&&z.date)return x_((m=G==null?void 0:G.dateRange)==null?void 0:m.from,(w=G==null?void 0:G.dateRange)==null?void 0:w.to,z==null?void 0:z.date,z==null?void 0:z.date,r);if((g=z==null?void 0:z.dateRange)!=null&&g.from&&((_=z.dateRange)!=null&&_.to))return x_((E=G==null?void 0:G.dateRange)==null?void 0:E.from,(x=G==null?void 0:G.dateRange)==null?void 0:x.to,(b=z==null?void 0:z.dateRange)==null?void 0:b.from,(C=z==null?void 0:z.dateRange)==null?void 0:C.to,r);if((v=z==null?void 0:z.dateRange)!=null&&v.from)return ep((k=G.dateRange)==null?void 0:k.to,(T=z.dateRange)==null?void 0:T.from,r);if((N=z==null?void 0:z.dateRange)!=null&&N.to)return tp((M=G.dateRange)==null?void 0:M.from,(j=z.dateRange)==null?void 0:j.to,r)}if((D=G==null?void 0:G.dateRange)!=null&&D.from){if(z!=null&&z.date)return tp((H=G.dateRange)==null?void 0:H.from,z.date,r);if((X=z==null?void 0:z.dateRange)!=null&&X.to)return tp((W=G.dateRange)==null?void 0:W.from,(U=z.dateRange)==null?void 0:U.to,r)}if((V=G==null?void 0:G.dateRange)!=null&&V.to){if(z!=null&&z.date)return ep((K=G==null?void 0:G.dateRange)==null?void 0:K.to,z.date,r);if((Y=z==null?void 0:z.dateRange)!=null&&Y.from)return ep((q=G==null?void 0:G.dateRange)==null?void 0:q.to,(F=z.dateRange)==null?void 0:F.from,r)}}}}var np={},rp={},ip={},OR;function rfe(){if(OR)return ip;OR=1,Object.defineProperty(ip,"__esModule",{value:!0});var e=po(),t=r(e);function r(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a]);return i.default=n,i}return ip.default=function(n,i,a){return t.createElement("a",{href:n,key:a},i)},ip}var ap={},NR;function ife(){return NR||(NR=1,Object.defineProperty(ap,"__esModule",{value:!0}),ap.default=function(e){return e}),ap}var op={},E_,MR;function afe(){return MR||(MR=1,E_=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),E_}var S_,DR;function ofe(){return DR||(DR=1,S_=/[\0-\x1F\x7F-\x9F]/),S_}var C_,FR;function sfe(){return FR||(FR=1,C_=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),C_}var k_,LR;function lfe(){return LR||(LR=1,k_=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),k_}var A_,jR;function ufe(){return jR||(jR=1,A_=function(e){var t={};t.src_Any=afe().source,t.src_Cc=ofe().source,t.src_Z=sfe().source,t.src_P=lfe().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),A_}var T_,BR;function cfe(){if(BR)return T_;BR=1;function e(b){var C=Array.prototype.slice.call(arguments,1);return C.forEach(function(v){v&&Object.keys(v).forEach(function(k){b[k]=v[k]})}),b}function t(b){return Object.prototype.toString.call(b)}function r(b){return t(b)==="[object String]"}function n(b){return t(b)==="[object Object]"}function i(b){return t(b)==="[object RegExp]"}function a(b){return t(b)==="[object Function]"}function s(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function l(b){return Object.keys(b||{}).reduce(function(C,v){return C||o.hasOwnProperty(v)},!1)}var u={"http:":{validate:function(b,C,v){var k=b.slice(C);return v.re.http||(v.re.http=new RegExp("^\\/\\/"+v.re.src_auth+v.re.src_host_port_strict+v.re.src_path,"i")),v.re.http.test(k)?k.match(v.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,C,v){var k=b.slice(C);return v.re.no_http||(v.re.no_http=new RegExp("^"+v.re.src_auth+"(?:localhost|(?:(?:"+v.re.src_domain+")\\.)+"+v.re.src_domain_root+")"+v.re.src_port+v.re.src_host_terminator+v.re.src_path,"i")),v.re.no_http.test(k)?C>=3&&b[C-3]===":"||C>=3&&b[C-3]==="/"?0:k.match(v.re.no_http)[0].length:0}},"mailto:":{validate:function(b,C,v){var k=b.slice(C);return v.re.mailto||(v.re.mailto=new RegExp("^"+v.re.src_email_name+"@"+v.re.src_host_strict,"i")),v.re.mailto.test(k)?k.match(v.re.mailto)[0].length:0}}},c="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(b){b.__index__=-1,b.__text_cache__=""}function m(b){return function(C,v){var k=C.slice(v);return b.test(k)?k.match(b)[0].length:0}}function w(){return function(b,C){C.normalize(b)}}function g(b){var C=b.re=ufe()(b.__opts__),v=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||v.push(c),v.push(C.src_xn),C.src_tlds=v.join("|");function k(j){return j.replace("%TLDS%",C.src_tlds)}C.email_fuzzy=RegExp(k(C.tpl_email_fuzzy),"i"),C.link_fuzzy=RegExp(k(C.tpl_link_fuzzy),"i"),C.link_no_ip_fuzzy=RegExp(k(C.tpl_link_no_ip_fuzzy),"i"),C.host_fuzzy_test=RegExp(k(C.tpl_host_fuzzy_test),"i");var T=[];b.__compiled__={};function N(j,D){throw new Error('(LinkifyIt) Invalid schema "'+j+'": '+D)}Object.keys(b.__schemas__).forEach(function(j){var D=b.__schemas__[j];if(D!==null){var H={validate:null,link:null};if(b.__compiled__[j]=H,n(D)){i(D.validate)?H.validate=m(D.validate):a(D.validate)?H.validate=D.validate:N(j,D),a(D.normalize)?H.normalize=D.normalize:D.normalize?N(j,D):H.normalize=w();return}if(r(D)){T.push(j);return}N(j,D)}}),T.forEach(function(j){b.__compiled__[b.__schemas__[j]]&&(b.__compiled__[j].validate=b.__compiled__[b.__schemas__[j]].validate,b.__compiled__[j].normalize=b.__compiled__[b.__schemas__[j]].normalize)}),b.__compiled__[""]={validate:null,normalize:w()};var M=Object.keys(b.__compiled__).filter(function(j){return j.length>0&&b.__compiled__[j]}).map(s).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+M+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+C.src_ZPCc+"))("+M+")","ig"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),p(b)}function _(b,C){var v=b.__index__,k=b.__last_index__,T=b.__text_cache__.slice(v,k);this.schema=b.__schema__.toLowerCase(),this.index=v+C,this.lastIndex=k+C,this.raw=T,this.text=T,this.url=T}function E(b,C){var v=new _(b,C);return b.__compiled__[v.schema].normalize(v,b),v}function x(b,C){if(!(this instanceof x))return new x(b,C);C||l(b)&&(C=b,b={}),this.__opts__=e({},o,C),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},u,b),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},g(this)}return x.prototype.add=function(C,v){return this.__schemas__[C]=v,g(this),this},x.prototype.set=function(C){return this.__opts__=e(this.__opts__,C),this},x.prototype.test=function(C){if(this.__text_cache__=C,this.__index__=-1,!C.length)return!1;var v,k,T,N,M,j,D,H,X;if(this.re.schema_test.test(C)){for(D=this.re.schema_search,D.lastIndex=0;(v=D.exec(C))!==null;)if(N=this.testSchemaAt(C,v[2],D.lastIndex),N){this.__schema__=v[2],this.__index__=v.index+v[1].length,this.__last_index__=v.index+v[0].length+N;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(H=C.search(this.re.host_fuzzy_test),H>=0&&(this.__index__<0||H=0&&(T=C.match(this.re.email_fuzzy))!==null&&(M=T.index+T[1].length,j=T.index+T[0].length,(this.__index__<0||Mthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=M,this.__last_index__=j))),this.__index__>=0},x.prototype.pretest=function(C){return this.re.pretest.test(C)},x.prototype.testSchemaAt=function(C,v,k){return this.__compiled__[v.toLowerCase()]?this.__compiled__[v.toLowerCase()].validate(C,k,this):0},x.prototype.match=function(C){var v=0,k=[];this.__index__>=0&&this.__text_cache__===C&&(k.push(E(this,v)),v=this.__last_index__);for(var T=v?C.slice(v):C;this.test(T);)k.push(E(this,v)),T=T.slice(this.__last_index__),v+=this.__last_index__;return k.length?k:null},x.prototype.tlds=function(C,v){return C=Array.isArray(C)?C:[C],v?(this.__tlds__=this.__tlds__.concat(C).sort().filter(function(k,T,N){return k!==N[T-1]}).reverse(),g(this),this):(this.__tlds__=C.slice(),this.__tlds_replaced__=!0,g(this),this)},x.prototype.normalize=function(C){C.schema||(C.url="http://"+C.url),C.schema==="mailto:"&&!/^mailto:/i.test(C.url)&&(C.url="mailto:"+C.url)},x.prototype.onCompile=function(){},T_=x,T_}const ffe=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var zR;function dfe(){if(zR)return op;zR=1,Object.defineProperty(op,"__esModule",{value:!0});var e=cfe(),t=i(e),r=ffe,n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}var a=new t.default;return a.tlds(n.default),op.default=function(s){return a.match(s)},op}var sp={},UR;function hfe(){return UR||(UR=1,Object.defineProperty(sp,"__esModule",{value:!0}),sp.default=function(e){return e}),sp}var $R;function pfe(){if($R)return rp;$R=1,Object.defineProperty(rp,"__esModule",{value:!0});var e=function(){function E(x,b){for(var C=0;CN&&T.push(C.substring(N,M.index));var D=v.props.hrefDecorator(M.url),H=v.props.textDecorator(M.text),X=v.props.componentDecorator(D,H,j);T.push(X),N=M.lastIndex}),C.length>N&&T.push(C.substring(N)),T.length===1?T[0]:T}},{key:"parse",value:function(C){var v=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof C=="string"?this.parseString(C):r.isValidElement(C)&&C.type!=="a"&&C.type!=="button"?r.cloneElement(C,{key:k},this.parse(C.props.children)):Array.isArray(C)?C.map(function(T,N){return v.parse(T,N)}):C}},{key:"render",value:function(){return r.createElement(r.Fragment,null,this.parse(this.props.children))}}]),x}(r.Component);return _.defaultProps={componentDecorator:i.default,hrefDecorator:s.default,matchDecorator:l.default,textDecorator:c.default},rp.default=_,rp}var HR;function mfe(){if(HR)return np;HR=1,Object.defineProperty(np,"__esModule",{value:!0});var e=pfe(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return np.default=t.default,np}var gfe=mfe();const vfe=wn(gfe);function $1({children:e}){return O.jsx(vfe,{componentDecorator:(t,r,n)=>O.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:r},n),children:e})}function Lx(e){return O.jsx(O.Fragment,{children:e.lines.map((t,r)=>O.jsxs("div",{children:[O.jsx($1,{children:t}),O.jsx("br",{})]},r))})}function D3({sources:e}){const t=dr();return e!=null&&e.length?O.jsx(Ke,{children:e.map((r,n)=>O.jsxs(Ke.Item,{children:[O.jsx(Ke.Icon,{verticalAlign:"middle",name:"circle",size:"tiny"}),O.jsxs(Ke.Content,{children:[O.jsx(Ke.Header,{children:O.jsx($1,{children:[r.author,r.title,r.publicationInfo].filter(i=>!!i).join(", ")})}),O.jsxs(Ke.Description,{children:[O.jsx($1,{children:r.page}),r.date&&` [${nu(r.date,t)}]`]})]})]},n))}):null}function F3(e){const[t,r]=J.useState(!1),[n,i]=J.useState(!1),[a,s]=J.useState(!1),[o,l]=J.useState("");return ax(e.url)?(n&&o!==e.url&&i(!1),O.jsxs(O.Fragment,{children:[O.jsx(sn,{className:n?"loaded-image-thumbnail":"hidden-image",onClick:()=>r(!0),onLoad:()=>{i(!0),l(e.url),s(!1)},onError:u=>{i(!0),l(e.url),s(!0),u.currentTarget.alt=""},src:e.url,alt:e.title||e.filename,centered:!0}),O.jsx(Si,{className:n?"hidden-image":"image-placeholder",children:O.jsx(Si.Image,{square:!0})}),a&&O.jsx(hf,{fluid:!0,textAlign:"center",children:O.jsx(Ln,{negative:!0,compact:!0,children:O.jsx(Ln.Header,{children:O.jsx(Ie,{id:"error.failed_to_load_image",defaultMessage:"Failed to load image file"})})})}),O.jsxs(Yt,{basic:!0,size:"large",closeIcon:O.jsx(Je,{name:"close",color:"red"}),open:t,onClose:()=>r(!1),onOpen:()=>r(!0),centered:!1,children:[O.jsx(Yt.Header,{children:e.title}),O.jsx(Yt.Content,{image:!0,children:O.jsx(sn,{className:"modal-image",src:e.url,alt:e.title||e.filename,label:O.jsx(cr,{attached:"bottom",content:e.filename}),wrapped:!0})})]})]})):O.jsx(kn,{centered:!0,style:{width:"100%",maxWidth:"290px",margin:"0 auto 14px"},children:O.jsxs(kn.Content,{textAlign:"center",style:{backgroundColor:"#f9f9f9"},children:[O.jsx(Je,{name:"image",size:"huge",color:"grey",style:{marginBottom:"10px",opacity:.6}}),O.jsx(kn.Header,{style:{fontSize:"14px",wordBreak:"break-all"},children:e.title||e.filename}),O.jsx(kn.Meta,{style:{marginTop:"5px",fontStyle:"italic"},children:O.jsx(Ie,{id:"media.not_uploaded",defaultMessage:"File not uploaded"})})]})})}function yfe(e){return!!e&&e.map((t,r)=>O.jsx(Ke,{children:O.jsx(Ke.Item,{children:O.jsx(F3,{url:t.url,filename:t.filename,title:t.title})})},r))}function wfe(e){return!!(e!=null&&e.length)&&e.map((t,r)=>O.jsx("div",{children:O.jsx(Lx,{lines:t.map((n,i)=>O.jsx("i",{children:n},i))})},r))}function _fe(e){var d,p,m,w;const[t,r]=J.useState(-1),[n,i]=J.useState("");(!n||n!==e.indi)&&(r(-1),i(e.indi));function a(g,_){_.index!==void 0&&t!==_.index?r(_.index):r(-1)}const s=((d=e.images)==null?void 0:d.length)&&{menuItem:O.jsx(Kt.Item,{fitted:!0,onClick:a,children:O.jsx(Ki,{content:O.jsx(Ie,{id:"extras.images",defaultMessage:"Images"}),size:"mini",position:"bottom center",trigger:O.jsx(Je,{circular:!0,name:"camera"})})},"images"),render:()=>O.jsx(Vr.Pane,{children:yfe(e.images)})},o=((p=e.notes)==null?void 0:p.length)&&{menuItem:O.jsx(Kt.Item,{fitted:!0,onClick:a,children:O.jsx(Ki,{content:O.jsx(Ie,{id:"extras.notes",defaultMessage:"Notes"}),size:"mini",position:"bottom center",trigger:O.jsx(Je,{circular:!0,name:"sticky note outline"})})},"notes"),render:()=>O.jsx(Vr.Pane,{children:wfe(e.notes)})},l=((m=e.sources)==null?void 0:m.length)&&{menuItem:O.jsx(Kt.Item,{fitted:!0,onClick:a,children:O.jsx(Ki,{content:O.jsx(Ie,{id:"extras.sources",defaultMessage:"Sources"}),size:"mini",position:"bottom center",trigger:O.jsx(Je,{circular:!0,name:"quote right"})})},"sources"),render:()=>O.jsx(Vr.Pane,{children:O.jsx(D3,{sources:e.sources})})},u=((w=e.files)==null?void 0:w.length)&&{menuItem:O.jsx(Kt.Item,{fitted:!0,onClick:a,children:O.jsx(Ki,{content:O.jsx(Ie,{id:"extras.files",defaultMessage:"Additional files"}),size:"mini",position:"bottom center",trigger:O.jsx(Je,{circular:!0,name:"file alternate outline"})})},"files"),render:()=>O.jsx(Vr.Pane,{children:O.jsx(M3,{files:e.files})})},c=[s,o,l,u].flatMap(g=>g?[g]:[]);return c.length?O.jsx(ot.Description,{children:O.jsx(Vr,{className:"event-extras",activeIndex:t,renderActiveOnly:!0,menu:{tabular:!0,attached:!0,compact:!0,borderless:!0},panes:c})}):null}function Bc(e){const t=Bn(),r=RZ(e.person),n=dn.parse(t.search);return n.indi=Qn(e.person.pointer),O.jsx(_l,{to:{pathname:"/view",search:dn.stringify(n)},children:r||O.jsx(Ie,{id:"name.unknown_name",defaultMessage:"N.N."})})}const bfe=new Map([["ADOP","Adoption"],["BAPM","Baptism"],["BARM","Bar Mitzvah"],["BASM","Bas Mitzvah"],["BIRT","Birth"],["BLES","Blessing"],["BURI","Burial"],["CENS","Census"],["CHR","Christening"],["CHRA","Adult christening"],["CONF","Confirmation"],["CREM","Cremation"],["DEAT","Death"],["DEG","Degree"],["DIV","Divorce"],["DIVF","Divorce filed"],["EDUC","Education"],["ELEC","Elected"],["EMAIL","E-mail"],["EMIG","Emigration"],["ENGA","Engagement"],["EVEN","Event"],["FACT","Fact"],["FCOM","First communion"],["GRAD","Graduation"],["IMMI","Immigration"],["MARB","Marriage bann"],["MARC","Marriage contract"],["MARL","Marriage license"],["MARR","Marriage"],["MARS","Marriage settlement"],["MDCL","Medical info"],["MILT","Military services"],["NATU","Naturalization"],["OBJE","Additional files"],["OCCU","Occupation"],["ORDN","Ordination"],["PROB","Probate"],["PROP","Property"],["RESI","Residence"],["RETI","Retirement"],["SOUR","Sources"],["TITL","Title"],["WILL","Will"],["WWW","WWW"],["birth","Birth name"],["married","Married name"],["maiden","Maiden name"],["immigrant","Immigrant name"],["aka","Also known as"]]);function gs(e){const t=e.tag.replace(/_/g,"");return O.jsx(Ie,{id:`gedcom.${t}`,defaultMessage:bfe.get(t)||t})}const jx=["BIRT"],xfe=["ADOP","BAPM","BARM","BASM","BLES","CENS","CHR","CHRA","CONF","EDUC","EMIG","EVEN","FAMS","FCOM","GRAD","IMMI","NATU","ORDN","OCCU","PROP","RESI","RETI","WILL","_DEG","_ELEC","_MDCL","_MILT"],L3=["ANUL","CENS","DIV","DIVF","ENGA","EVEN","MARB","MARC","MARL","MARR","MARS"],j3=[...xfe,...L3],Bx=["DEAT"],B3=["BURI","CREM","PROB"],Efe=[jx,j3,Bx,B3],Sfe=[...jx,...j3,...Bx,...B3];function Cfe(e){const t=dr();return O.jsxs("div",{className:"item-header",children:[O.jsx(zt,{as:"span",size:"small",children:O.jsx(gs,{tag:kfe(e.event)})}),e.event.date?O.jsx(zt,{as:"span",textAlign:"right",sub:!0,children:nu(e.event.date,t)}):null]})}function kfe(e){return e.tag==="EVEN"&&e.type?e.type:e.tag}function Afe(e,t,r){const n=t.tree.filter(i=>["WIFE","HUSB"].includes(i.tag)).find(i=>!i.data.includes(e));if(n)return ei(n,r,i=>i.indis)}function Tfe(e,t,r,n){if(!Bx.includes(e.tag))return;const i=ru(e),a=r.indis[t].tree.filter(s=>jx.includes(s.tag)).map(s=>ru(s)).find(s=>s);if(!(!a||!i))return nfe(a==null?void 0:a.data,i==null?void 0:i.data,n)}function z3(e){const t=e.tree.find(r=>r.tag==="PLAC");return t!=null&&t.data?ms(t):void 0}function U3(e,t,r){const n=[];return e.tree.filter(i=>i.tag==="OBJE").forEach(i=>{const a=ei(i,t,o=>o.other),s=YD(a);s&&n.push({url:rd(s.data,r),filename:Lm(s)||""})}),n}function $3(e,t,r){const n=[];return e.tree.filter(i=>i.tag==="OBJE").forEach(i=>{var o;const a=ei(i,t,l=>l.other),s=KD(a);s&&n.push({url:rd(s.data,r),filename:Lm(s),titl:(o=a.tree.find(l=>l.tag==="TITL"))==null?void 0:o.data})}),n}function H3(e,t){return e.tree.filter(r=>r.tag==="SOUR").map(r=>JD(r,t))}function q3(e,t){const r=e.tree.filter(i=>i.tag==="NOTE").map(i=>ei(i,t,a=>a.other)),n=e.tag!=="EVEN"?e.tree.filter(i=>i.tag==="TYPE"):[];return[e,...n,...r].filter(i=>!!i.data).filter(i=>i.data!=="Y").map(i=>ms(i))}function Ife(e,t,r,n,i){return e.tag==="FAMS"?Rfe(e,t,r,i):Pfe(e,t,r,n,i)}function Pfe(e,t,r,n,i){const a=ru(e)||null;return[{tag:e.tag,date:a?hn.getDate(a.data):void 0,type:XD(e),age:Tfe(e,r,t,n),place:z3(e),images:U3(e,t,i),files:$3(e,t,i),notes:q3(e,t),sources:H3(e,t),indi:r}]}function Rfe(e,t,r,n){const i=ei(e,t,a=>a.fams);return eg(L3,a=>i.tree.filter(s=>s.tag===a)).map(a=>{const s=ru(a)||null;return{tag:a.tag,date:s?hn.getDate(s.data):void 0,type:XD(a),personLink:Afe(r,i,t),place:z3(a),images:U3(a,t,n),files:$3(a,t,n),notes:q3(a,t),sources:H3(a,t),indi:r}})}function Ofe(e){return O.jsx(ot,{children:O.jsxs(ot.Content,{children:[O.jsx(Cfe,{event:e.event}),!!e.event.age&&O.jsx(ot.Meta,{children:e.event.age}),!!e.event.personLink&&O.jsx(Bc,{person:e.event.personLink}),!!e.event.place&&O.jsx(ot.Description,{children:e.event.place}),O.jsx(_fe,{images:e.event.images,notes:e.event.notes,sources:e.event.sources,indi:e.event.indi,files:e.event.files})]})})}function Nfe(e){const t=dr(),r=eg(Efe,n=>e.entries.filter(i=>n.includes(i.tag)).map(i=>Ife(i,e.gedcom,e.indi,t,e.images)).flatMap(i=>i).sort((i,a)=>nd(i.date,a.date)));return r.length?O.jsx(O.Fragment,{children:r.map((n,i)=>O.jsx(Ofe,{event:n},i))}):null}function Mfe(e,t,r){var c,d;const n=(c=e.tree)==null?void 0:c.find(p=>["HUSB","WIFE"].includes(p.tag)&&Qn(p.data)!==r),i=n?Qn(n.data):void 0,a=i?t.indis[i]:void 0,u=(((d=e.tree)==null?void 0:d.filter(p=>p.tag==="CHIL"))||[]).filter(p=>!!t.indis[Qn(p.data)]).map(p=>{const m=t.indis[Qn(p.data)],w=m==null?void 0:m.tree.find(E=>E.tag==="BIRT"),g=w?ru(w):void 0,_=g?hn.getDate(g.data):void 0;return{childEntry:m,parsedDate:_}}).sort((p,m)=>nd(p.parsedDate,m.parsedDate)).map(p=>p.childEntry);return{familyId:Qn(e.pointer),spouseTag:n==null?void 0:n.tag,spouseRecord:a,children:u}}function Dfe(e){const t=e.gedcom.indis[e.indi];if(!t)return null;const r=t.tree,n=r.find(b=>b.tag==="FAMC"),i=n?e.gedcom.fams[Qn(n.data)]:void 0,a=(i==null?void 0:i.tag)==="FAM",s=a?i==null?void 0:i.tree.find(b=>b.tag==="HUSB"):void 0,o=a?i==null?void 0:i.tree.find(b=>b.tag==="WIFE"):void 0,l=s?Qn(s.data):void 0,u=l?e.gedcom.indis[l]:void 0,c=o?Qn(o.data):void 0,d=c?e.gedcom.indis[c]:void 0,p=u||d,_=r.filter(b=>b.tag==="FAMS").map(b=>e.gedcom.fams[Qn(b.data)]).map(b=>Mfe(b,e.gedcom,e.indi)).filter(b=>b.spouseRecord||b.children.length>0),E=_.length,x=E>0;return!p&&!x?null:O.jsx(ot,{children:O.jsxs(ot.Content,{children:[O.jsx("div",{className:"item-header",children:O.jsx(zt,{as:"span",size:"small",children:O.jsx(Ie,{id:"family.immediate_family",defaultMessage:"Immediate Family"})})}),p&&O.jsxs("div",{className:"parents-block",children:[u&&O.jsxs("div",{children:[O.jsx("strong",{children:O.jsx(Ie,{id:"family.father",defaultMessage:"Father"})}),": ",O.jsx(Bc,{person:u})]}),d&&O.jsxs("div",{children:[O.jsx("strong",{children:O.jsx(Ie,{id:"family.mother",defaultMessage:"Mother"})}),": ",O.jsx(Bc,{person:d})]})]}),_.map(b=>{const C=!b.spouseRecord&&E>1;return O.jsxs("div",{className:"spousal-group",children:[b.spouseRecord?O.jsxs("div",{children:[O.jsx("strong",{children:b.spouseTag==="HUSB"?O.jsx(Ie,{id:"family.husband",defaultMessage:"Husband"}):O.jsx(Ie,{id:"family.wife",defaultMessage:"Wife"})}),": ",O.jsx(Bc,{person:b.spouseRecord})]}):C?O.jsx("div",{children:O.jsx("strong",{children:O.jsx(Ie,{id:"family.unknown_spouse",defaultMessage:"Unknown Spouse"})})}):null,b.children.length>0&&O.jsxs("div",{className:"children-block",children:[O.jsxs("div",{children:[O.jsx("strong",{children:b.children.length===1?O.jsx(Ie,{id:"family.child",defaultMessage:"Child"}):O.jsx(Ie,{id:"family.children",defaultMessage:"Children"})}),": "]}),O.jsx("div",{children:b.children.map(v=>O.jsx("div",{children:O.jsx(Bc,{person:v})},v.pointer))})]})]},b.familyId)})]})})}const Ffe=[...Sfe,"NAME","SEX","FAMC","FAMS","NOTE","SOUR","FACT"];function Lfe(e){const t=[];return e.data&&t.push(...ms(e)),e.tree.filter(r=>r.tag==="NOTE").forEach(r=>ms(r).forEach(n=>t.push(O.jsx("i",{children:n})))),t.length?O.jsxs(O.Fragment,{children:[O.jsx(zt,{sub:!0,children:O.jsx(gs,{tag:e.tag})}),O.jsx("span",{children:O.jsx(Lx,{lines:t})})]}):null}function jfe(e){if(!e.data)return null;const t=e.tree.filter(n=>n.tag==="TYPE").flatMap(n=>ms(n)).join().trim(),r=ms(e).join(" ").trim();return t?O.jsxs(O.Fragment,{children:[O.jsx(zt,{sub:!0,children:O.jsx(gs,{tag:e.tag})}),O.jsxs("div",{children:[O.jsx("b",{children:t}),": ",r]})]}):O.jsxs(O.Fragment,{children:[O.jsx(zt,{sub:!0,children:O.jsx(gs,{tag:e.tag})}),O.jsx("div",{children:r})]})}function Bfe(e,t,r){const n=ei(e,t,a=>a.other),i=YD(n);return!i||!zx(n)?null:O.jsx("div",{className:"person-image",children:O.jsx(F3,{url:rd(i.data,r),filename:Lm(i)||""})})}function zfe(e,t){const r=e.map(n=>JD(n,t));return r.length?O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"item-header",children:O.jsx(zt,{as:"span",size:"small",children:O.jsx(gs,{tag:"SOUR"})})}),O.jsx(D3,{sources:r})]}):null}function Ufe(e,t,r){const n=[];return e.map(i=>ei(i,t,a=>a.other)).forEach(i=>{var s;const a=KD(i);a&&n.push({url:rd(a.data,r),filename:Lm(a),titl:(s=i.tree.find(o=>o.tag==="TITL"))==null?void 0:s.data})}),n.length?O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"item-header",children:O.jsx(zt,{as:"span",size:"small",children:O.jsx(gs,{tag:"OBJE"})})}),O.jsx(M3,{files:n})]}):null}function $fe(e,t){const r=ei(e,t,n=>n.other);return!r||!zx(r)?null:O.jsx(Lx,{lines:ms(r).map((n,i)=>O.jsx("i",{children:n},i))})}function Hfe(e){var d,p,m,w,g,_,E,x;const t=(d=e.tree.find(b=>b.tag==="NPFX"))==null?void 0:d.data;let r=(p=e.tree.find(b=>b.tag==="GIVN"))==null?void 0:p.data,n=(m=e.tree.find(b=>b.tag==="_RUFNAME"))==null?void 0:m.data;const i=(w=e.tree.find(b=>b.tag==="NICK"))==null?void 0:w.data,a=(g=e.tree.find(b=>b.tag==="SPFX"))==null?void 0:g.data,s=(_=e.tree.find(b=>b.tag==="SURN"))==null?void 0:_.data,o=(E=e.tree.find(b=>b.tag==="NSFX"))==null?void 0:E.data;r&&n&&r.includes(n)&&(r=r.replace(n,`"${n}"`),n=void 0);const u=[t,r,n&&`"${n}"`,i&&`(${i})`,a,s,o].filter(Boolean).join(" ").trim()||e.data.replaceAll("/","")||"",c=(x=e.tree.find(b=>b.tag==="TYPE"&&b.data!=="Unknown"))==null?void 0:x.data;return O.jsxs(O.Fragment,{children:[O.jsx(zt,{as:"span",size:"large",children:u||O.jsx(Ie,{id:"name.unknown_name",defaultMessage:"N.N."})}),u&&c&&O.jsx(ot.Meta,{children:O.jsx(gs,{tag:c})})]})}function lp(e,t,r,n,i){return eg(r,a=>e.filter(s=>s.tag===a).map(s=>n(s,t,i))).filter(a=>a!==null).map((a,s)=>O.jsx(ot,{children:O.jsx(ot.Content,{children:a})},s))}function qR(e,t,r,n,i){const a=eg(r,o=>e.filter(l=>l.tag===o)).filter(o=>o!==null),s=a.length?n(a,t,i):null;return s?O.jsx(ot,{children:O.jsx(ot.Content,{children:s})}):null}function zx(e){return e.tree.length>0||e.data&&!e.data.startsWith("@")}function qfe(e,t){return e.filter(r=>!Ffe.includes(r.tag)).map(r=>ei(r,t,n=>n.other)).filter(zx).map(r=>Lfe(r)).filter(r=>r!==null).map((r,n)=>O.jsx(ot,{children:O.jsx(ot.Content,{children:r})},n))}function Gfe(e){return O.jsx(ot,{children:O.jsxs(ot.Content,{children:[O.jsx(zt,{sub:!0,children:O.jsx(Ie,{id:"config.ids",defaultMessage:"Identification"})}),O.jsx("div",{children:O.jsx("i",{children:e})})]})})}function Wfe(e){const t=e.gedcom.indis[e.indi].tree;return O.jsx("div",{className:"details",children:O.jsxs(ot.Group,{divided:!0,children:[lp(t,e.gedcom,["NAME"],Hfe),lp(t,e.gedcom,["OBJE"],Bfe,e.images),O.jsx(Dfe,{gedcom:e.gedcom,indi:e.indi}),O.jsx(Nfe,{gedcom:e.gedcom,entries:t,indi:e.indi,images:e.images}),e.config.id===sx.SHOW?Gfe(e.indi):null,lp(t,e.gedcom,["FACT"],jfe),qfe(t,e.gedcom),lp(t,e.gedcom,["NOTE"],$fe),qR(t,e.gedcom,["OBJE"],Ufe,e.images),qR(t,e.gedcom,["SOUR"],zfe)]})})}function Vfe({data:e,selectedIndiId:t,config:r,onConfigChange:n,expanded:i,onToggle:a}){const s=dr(),o=[{menuItem:s.formatMessage({id:"tab.info",defaultMessage:"Info"}),render:()=>O.jsx(Wfe,{gedcom:e.gedcom,indi:t,config:r,images:e.images})},{menuItem:s.formatMessage({id:"tab.settings",defaultMessage:"Settings"}),render:()=>O.jsx(jZ,{gedcom:e.gedcom,config:r,onChange:n})}];return O.jsxs(_o,{id:"sidebar",animation:"overlay",icon:"labeled",width:i?"wide":"very thin",direction:"right",visible:!0,children:[i?O.jsx(Vr,{id:"sideTabs",panes:o}):O.jsx(Hue,{gedcom:e.gedcom,indi:t}),O.jsx(nn,{id:"sideToggle",icon:!0,size:"mini",onClick:()=>a(),children:O.jsx(Je,{size:"large",name:i?"arrow right":"arrow left"})})]})}function Qfe(e,t){return e instanceof wu?t.formatMessage({id:`error.${e.code}`,defaultMessage:e.message},e.args):e.message}const Kfe={name:"get_selected_person",description:"Returns the full details (name, events, immediate relatives) of the individual currently selected in the browser viewport.",inputSchema:{type:"object",properties:{}}},Yfe={name:"search_indi",description:"Searches the genealogy index for individuals by name. Returns up to 10 results starting with the ones that match the best.",inputSchema:{type:"object",properties:{query:{type:"string",description:"The name to search for."}},required:["query"]}},Xfe={name:"inspect_indi",description:"Fetches detailed information for a specific individual by ID, including their immediate relatives and life events.",inputSchema:{type:"object",properties:{id:{type:"string",description:"The ID of the individual."}},required:["id"]}},Jfe={name:"focus_indi",description:"Instructs the Topola viewer camera view to center on and focus a specific person. Restructures the tree view to show ancestors and descendants of the selected person.",inputSchema:{type:"object",properties:{id:{type:"string",description:"The ID to focus."}},required:["id"]}},Zfe={name:"find_relationship_path",description:"Finds the shortest path connecting two individuals (e.g., through parents or marriages). Returns an ordered list of connecting individuals.",inputSchema:{type:"object",properties:{source:{type:"string",description:"Start individual ID"},target:{type:"string",description:"End individual ID"}},required:["source","target"]}},ede={name:"get_ancestors",description:"Returns ancestors of a specific individual up to a maximum depth of 5 generations.",inputSchema:{type:"object",properties:{id:{type:"string",description:"Target individual ID"},generations:{type:"number",description:"Depth bound limit (1-5). Defaults to 3.",minimum:1,maximum:5,default:3}},required:["id"]}},tde={name:"get_descendants",description:"Returns descendants of a specific individual up to a maximum depth of 5 generations.",inputSchema:{type:"object",properties:{id:{type:"string",description:"Target individual ID"},generations:{type:"number",description:"Depth bound limit (1-5). Defaults to 3.",minimum:1,maximum:5,default:3}},required:["id"]}},GR=5,nde=10;function Go(e){return{content:[{type:"text",text:JSON.stringify(e)}],structuredContent:e}}function Dc(e){return{content:[{type:"text",text:e}]}}class rde{constructor(){this.detailIndi=null,this.searchIndex=null,this.chartData=null,this.indiMap=new Map,this.famMap=new Map,this.setSelectionCallback=null,this.toolsRegistered=!1}async handleGetSelectedPerson(){const t=this.detailIndi;return!t||t.startsWith("private_")?Dc("No person is currently selected."):Go(this.toFullIndi(t))}async handleSearchIndi(t){!this.searchIndex&&this.chartData&&(this.searchIndex=o3(this.chartData));const r=this.searchIndex;if(!r)return Dc("Data not loaded.");const i=r.search(t.query).slice(0,nde).map(a=>this.toBasicIndi(a.id)).filter(Boolean);return Go(i)}async handleInspectIndi(t){const r=this.toFullIndi(t.id);return r?Go(r):Dc(`No person found with id ${t.id}.`)}async handleFocusIndi(t){if(t.id.startsWith("private_"))return Dc(`No person found with id ${t.id}.`);const r=this.setSelectionCallback;return r?(r(t.id),Go({status:"success"})):Dc("Error shifting viewport.")}async handleFindRelationshipPath(t){const n=OZ(t.source,t.target,this.indiMap,this.famMap).map(i=>this.toBasicIndi(i)).filter(Boolean);return Go(n)}async handleGetAncestors(t){const r=Math.min(t.generations??3,GR),i=NZ(t.id,r,this.indiMap,this.famMap).map(a=>this.toBasicIndi(a)).filter(Boolean);return Go(i)}async handleGetDescendants(t){const r=Math.min(t.generations??3,GR),i=MZ(t.id,r,this.indiMap,this.famMap).map(a=>this.toBasicIndi(a)).filter(Boolean);return Go(i)}setDetailIndi(t){this.detailIndi=t}setData(t){t?(this.indiMap=Dm(t.chartData),this.famMap=ix(t.chartData),this.chartData=t.chartData,this.searchIndex=null):(this.indiMap.clear(),this.famMap.clear(),this.chartData=null,this.searchIndex=null)}setSetSelectionCallback(t){this.setSelectionCallback=t}getIndiName(t){const r=this.indiMap.get(t);return r&&[r.firstName,r.lastName].filter(Boolean).join(" ")||"Unknown"}getIndiReference(t){return{id:t,name:this.getIndiName(t)}}getEvent(t){if(!t)return;const r=[];if(t.date){const n=t.date;n.day||n.month||n.year?r.push([n.day,n.month,n.year].filter(Boolean).join("-")):n.text&&r.push(n.text)}return{date:r.join(" ")||void 0,place:t.place}}toBasicIndi(t){if(t.startsWith("private_"))return null;const r=this.indiMap.get(t);if(!r)return null;let n=null,i=null;if(r.famc){const a=this.famMap.get(r.famc);a&&(a.wife&&(n=this.getIndiReference(a.wife)),a.husb&&(i=this.getIndiReference(a.husb)))}return{id:r.id,name:this.getIndiName(r.id),birth:this.getEvent(r.birth),death:this.getEvent(r.death),mother:n,father:i}}toFullIndi(t){if(t.startsWith("private_"))return null;const r=this.indiMap.get(t);if(!r)return null;let n=null,i=null;if(r.famc){const o=this.famMap.get(r.famc);o&&(o.wife&&(n=this.toBasicIndi(o.wife)),o.husb&&(i=this.toBasicIndi(o.husb)))}const a=[],s=[];return r.fams&&r.fams.forEach(o=>{const l=this.famMap.get(o);if(l){const u=l.wife===t?l.husb:l.wife;u&&s.push({spouse:this.toBasicIndi(u),marriage:this.getEvent(l.marriage)}),l.children&&l.children.forEach(c=>{const d=this.toBasicIndi(c);d&&a.push(d)})}}),{id:r.id,name:this.getIndiName(r.id),birth:this.getEvent(r.birth),death:this.getEvent(r.death),mother:n,father:i,children:a,spouses:s}}getTools(){return[{...Kfe,execute:()=>this.handleGetSelectedPerson()},{...Yfe,execute:t=>this.handleSearchIndi(t)},{...Xfe,execute:t=>this.handleInspectIndi(t)},{...Jfe,execute:t=>this.handleFocusIndi(t)},{...Zfe,execute:t=>this.handleFindRelationshipPath(t)},{...ede,execute:t=>this.handleGetAncestors(t)},{...tde,execute:t=>this.handleGetDescendants(t)}]}registerTools(){if(this.toolsRegistered||!navigator.modelContext)return;const t=navigator.modelContext;this.getTools().forEach(r=>{t.registerTool(r)}),this.toolsRegistered=!0}unregisterTools(){if(!this.toolsRegistered||!navigator.modelContext)return;const r=navigator.modelContext.unregisterTool;typeof r=="function"&&this.getTools().forEach(n=>{try{r(n.name)}catch{}}),this.toolsRegistered=!1}}function ide(){const e=document.querySelector('meta[name="topola-static-url"]'),t=e==null?void 0:e.getAttribute("content");if(t&&!t.startsWith("__")&&!t.includes("{{ env"))return t}const Rp=ide();function ade(e){return O.jsxs(Ln,{negative:!0,className:"error",children:[O.jsx(Ln.Header,{children:O.jsx(Ie,{id:"error.failed_to_load_file",defaultMessage:"Failed to load file"})}),O.jsx("p",{children:e.message})]})}function ode(e){return O.jsx(Cr,{open:e.open,onClose:e.onDismiss,children:O.jsxs(Ln,{negative:!0,className:"errorPopup",onDismiss:e.onDismiss,children:[O.jsx(Ln.Header,{children:O.jsx(Ie,{id:"error.error",defaultMessage:"Error"})}),O.jsx("p",{children:e.message})]})})}function WR(e,t){const r=t[e];return typeof r=="string"?r:void 0}function sde(e){const t=dn.parse(e.search),r=m=>WR(m,t),n=r("view"),i=new Map([["relatives",Ga.Relatives],["fancy",Ga.Fancy],["donatso",Ga.Donatso]]),a=r("file"),s=r("url"),o=r("embedded")==="true";let l;if(Rp)l={source:Qt.GEDCOM_URL,url:Rp,handleCors:!1};else if(r("source")==="wikitree"){const m=dn.parse(window.location.search);l={source:Qt.WIKITREE,authcode:r("authcode")||WR("authcode",m)}}else if(r("source")==="google-drive"){const m=r("fileId");m&&(l={source:Qt.GOOGLE_DRIVE,fileId:m})}else a?l={source:Qt.UPLOADED,hash:a,gedcom:e.state&&e.state.data,images:e.state&&e.state.images}:s?l={source:Qt.GEDCOM_URL,url:s,handleCors:r("handleCors")!=="false"}:o&&(l={source:Qt.EMBEDDED});const u=r("indi"),c=Number(r("gen")),d=u?{id:u,generation:isNaN(c)?0:c}:void 0;function p(){return window.matchMedia("(max-width: 767px)").matches?r("sidePanel")==="true":r("sidePanel")!=="false"}return{sourceSpec:l,selection:d,chartType:i.get(n)||Ga.Hourglass,showSidePanel:p(),standalone:r("standalone")!=="false"&&!o&&!Rp,showWikiTreeMenus:r("showWikiTreeMenus")!=="false",freezeAnimation:r("freeze")==="true",config:FZ(t)}}const VR=new zee,QR=new Uee,KR=new $ee,YR=new Vee;function lde(){const[e,t]=J.useState(0),[r,n]=J.useState(),[i,a]=J.useState(),[s,o]=J.useState(),[l,u]=J.useState(),[c,d]=J.useState(!1),[p,m]=J.useState(!0),[w,g]=J.useState(!0),[_,E]=J.useState(Ga.Hourglass),[x,b]=J.useState(!1),[C,v]=J.useState(),[k,T]=J.useState(!1),[N,M]=J.useState(Qo),[j]=J.useState(()=>new rde),[D,H]=J.useState(!1),[X,W]=J.useState(),[U,V]=J.useState(()=>!!Ka.getAccessToken()),K=dr(),Y=go(),q=Bn(),F=J.useRef(!1),G=J.useRef(!0),z=J.useRef(0);J.useEffect(()=>(G.current=!0,()=>{G.current=!1}),[]);const B=J.useCallback(we=>{(!i||i.id!==we.id||i.generation!==we.generation)&&(a(we),o(we.id))},[i]);function se(we,et){if(et===void 0)return;const it=we.id===sx.HIDE,ht=we.sex===ZD.HIDE;Dm(et.chartData).forEach(L=>{L.hideId=it,L.hideSex=ht})}function de(){const we=!c;d(we),He({sidePanel:we?"true":"false"})}function me(we){u(we),t(2)}const Ee=J.useMemo(()=>new $te(K),[K]),Pe=J.useCallback((we,et)=>{if(!C||C.source!==we.source)return!0;const it={spec:we,selection:et},ht={spec:C,selection:i};switch(it.spec.source){case Qt.UPLOADED:return VR.isNewData(it,ht,r);case Qt.GEDCOM_URL:return QR.isNewData(it,ht,r);case Qt.WIKITREE:return Ee.isNewData(it,ht,r);case Qt.EMBEDDED:return KR.isNewData(it,ht,r);case Qt.GOOGLE_DRIVE:return YR.isNewData(it,ht,r)}},[C,i,r,Ee]),Ne=J.useCallback((we,et)=>{switch(we.source){case Qt.UPLOADED:return VR.loadData({spec:we,selection:et});case Qt.GEDCOM_URL:return QR.loadData({spec:we,selection:et});case Qt.WIKITREE:return Ee.loadData({spec:we,selection:et});case Qt.EMBEDDED:return KR.loadData({spec:we,selection:et});case Qt.GOOGLE_DRIVE:return YR.loadData({spec:we,selection:et})}},[Ee]);J.useEffect(()=>{const et=dn.parse(q.search).state;if(typeof et=="string"&&!F.current)try{const it=JSON.parse(et);if(it&&it.action==="open"&&Array.isArray(it.ids)&&it.ids.length>0){F.current=!0;const ht=it.ids[0];Y({pathname:"/view",search:dn.stringify({source:"google-drive",fileId:ht})},{replace:!0})}}catch(it){console.warn("Google Drive state query parameter JSON parsing failed or action mismatch:",it)}},[Y,q.search]);async function Le(){await Ka.signOut(),V(!1),n(void 0),a(void 0),o(void 0),qee(),Y({pathname:"/"},{replace:!0})}J.useEffect(()=>{(async()=>{var et,it;if(q.pathname!=="/view"){e!==0&&t(0),n(void 0);return}const we=sde(q);if(!we.sourceSpec){Y({pathname:"/"},{replace:!0});return}if(e===0||Pe(we.sourceSpec,we.selection)){t(1),v(we.sourceSpec),a(we.selection),o((et=we.selection)==null?void 0:et.id),m(we.standalone),g(we.showWikiTreeMenus),E(we.chartType),T(we.freezeAnimation),M(we.config);const ht=++z.current;try{const pe=await Ne(we.sourceSpec,we.selection);if(!G.current||z.current!==ht)return;n(pe),se(we.config,pe),d(we.showSidePanel),t(3)}catch(pe){if(!G.current||z.current!==ht)return;pe instanceof Df?we.sourceSpec.source===Qt.GOOGLE_DRIVE&&(W(we.sourceSpec.fileId),H(!0)):me(Qfe(pe,K))}}else if(e===3||e===4){const ht=we.sourceSpec.source===Qt.WIKITREE&&(!i||i.id!==((it=we.selection)==null?void 0:it.id));if(E(we.chartType),t(ht?4:3),B(Sy(r.chartData,we.selection)),ht){const pe=++z.current;try{const L=await UF(we.selection.id,K);if(!G.current||z.current!==pe)return;const I=Sy(L.chartData,we.selection);n(L),a(I),o(I.id),t(3)}catch(L){if(!G.current||z.current!==pe)return;t(3),rt(K.formatMessage({id:"error.failed_wikitree_load_more",defaultMessage:"Failed to load data from WikiTree. {error}"},{error:L}))}}}})()},[q,e,i,r,Y,K,Pe,Ne,B]),J.useEffect(()=>(j.registerTools(),()=>{j.unregisterTools()}),[j]),J.useEffect(()=>()=>{Um(r==null?void 0:r.images)},[r]),J.useEffect(()=>{j.setData(r||null)},[r,j]),J.useEffect(()=>{j.setDetailIndi(s||null)},[s,j]),J.useEffect(()=>{j.setSetSelectionCallback(we=>{Oe({id:we,generation:0})})},[j,q]);function He(we){const et=dn.parse(q.search);for(const it in we)et[it]=we[it];q.search=dn.stringify(et),Y(q)}function Oe(we){we.id.startsWith(fx)||(yn("selection_changed"),He({indi:we.id,gen:String(we.generation)}))}function Fe(we){o(we.id)}function We(){yn("print"),ree()}function rt(we){b(!0),u(we)}async function st(){yn("download_pdf");try{await see()}catch{rt(K.formatMessage({id:"error.failed_pdf",defaultMessage:"Failed to generate PDF file. Please try with a smaller diagram or download an SVG file."}))}}async function lt(){yn("download_png");try{await oee()}catch{rt(K.formatMessage({id:"error.failed_png",defaultMessage:"Failed to generate PNG file. Please try with a smaller diagram or download an SVG file."}))}}function At(){yn("download_svg"),iee()}function qt(){b(!1)}function gt(we){return r?_===Ga.Donatso?O.jsx(rie,{data:r.chartData,selection:we,onSelection:Oe}):O.jsx(pee,{data:r.chartData,selection:we,chartType:_,onSelection:Oe,onDetailSelection:Fe,freezeAnimation:k,colors:N.color,hideIds:N.id,hideSex:N.sex,placeDisplay:N.place,placeCount:N.placeCount}):null}function ct(){switch(e){case 3:case 4:{if(!r)return null;const we=Sy(r.chartData,i);return O.jsxs("div",{id:"content",children:[O.jsx(ode,{open:x,message:l,onDismiss:qt}),e===4?O.jsx(jl,{active:!0,size:"small",className:"loading-more"}):null,O.jsxs(Wl,{children:[O.jsx(Vfe,{data:r,selectedIndiId:s||we.id,config:N,expanded:c,onToggle:de,onConfigChange:et=>{M(et),se(et,r),He(LZ(et))}}),O.jsx(Vl,{children:gt(we)})]})]})}case 2:return O.jsx(ade,{message:l||"Unknown error"});case 0:case 1:return O.jsx(jl,{active:!0,size:"large"})}}return O.jsxs(O.Fragment,{children:[O.jsx($ue,{data:r==null?void 0:r.chartData,allowAllRelativesChart:(C==null?void 0:C.source)!==Qt.WIKITREE,allowPrintAndDownload:_!==Ga.Donatso,showingChart:q.pathname==="/view"&&(e===3||e===4),standalone:p,eventHandlers:{onSelection:Oe,onPrint:We,onDownloadPdf:st,onDownloadPng:lt,onDownloadSvg:At},showWikiTreeMenus:(C==null?void 0:C.source)===Qt.WIKITREE&&w,hasGoogleToken:U,onGoogleSignOut:Le,onGoogleTokenAcquired:()=>V(!0)}),Rp?O.jsxs(KC,{children:[O.jsx(ol,{path:"/view",element:ct()}),O.jsx(ol,{path:"*",element:O.jsx(QC,{to:"/view",replace:!0})})]}):O.jsxs(KC,{children:[O.jsx(ol,{path:"/",element:O.jsx(Jle,{})}),O.jsx(ol,{path:"/view",element:ct()}),O.jsx(ol,{path:"*",element:O.jsx(QC,{to:"/",replace:!0})})]}),D&&X&&O.jsx(Zle,{failedFileId:X,onAuthSuccess:we=>{H(!1),V(!0),we===X?t(0):Y({pathname:"/view",search:dn.stringify({source:"google-drive",fileId:we})},{replace:!0})},onCancel:()=>{H(!1),Y({pathname:"/"},{replace:!0})}})]})}const ude={"menu.open":"Отваряне","menu.open_file":"Отваряне на файл","menu.load_from_url":"Зареждане от адрес","menu.select_wikitree_id":"Избор на WikiTree ID","menu.print":"Отпечатване","menu.download":"Изтегляне","menu.pdf_file":"PDF файл","menu.png_file":"PNG файл","menu.svg_file":"SVG файл","menu.download_pdf":"Изтегляне като PDF","menu.download_png":"Изтегляне като PNG","menu.download_svg":"Изтегляне като SVG","menu.view":"Изглед","menu.hourglass":"Пясъчен часовник","menu.relatives":"Всички роднини","menu.donatso":"Семейна диаграма на Донацо","menu.fancy":"Декоративно дърво (експериментално)","menu.wikitree_login":"Вход в WikiTree","menu.wikitree_logged_in":"Вписани","menu.wikitree_popup_username":"Вписани сте в WikiTree като {username}","menu.wikitree_popup":"Вписани в WikiTree","menu.github":"Проект в GitHub","menu.search.placeholder":"Търсене на лице","menu.search.no_results":"Няма резултати","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy е приложение за преглед на родословни дървета, която дава възможност за разглеждане структурата на семейство.","intro.instructions":"Използвайте бутоните за отваряне на файл и зареждане от адрес, за да отворите GEDCOM файл. Повечето приложения и страници за генеалогия позволяват изнасяне на GEDCOM файлове.","intro.examples":"Примерни родословни дървета","intro.from":"от","intro.whats_new":"Последни промени","intro.full_changelog":"Списък с всички промени","whats_new.title":"Новото в това издание","intro.privacy":"Поверителност","intro.privacy_note":"При отваряне на файл тази страницата не изпраща никъде вашите данни - заредените файловете не напускат вашето устройство. При зареждане на файл от адрес, данните преминават през услугата {link}, за да бъдат избегнати проблеми при заявяването на файлове между различни сайтове (CORS).","load_from_url.title":"Зареждане от адрес","load_from_url.comment":"Данните от адреса ще преминат през услугата {link}, за да бъдат избегнати проблеми при заявяването на файлове между различни сайтове (CORS).","load_from_url.cancel":"Отказ","load_from_url.load":"Зареждане","select_wikitree_id.title":"Избиране на WikiTree ID","select_wikitree_id.comment":"Въведете идентификатор на профил в {wikiTreeLink}. Пример: {example1}, {example2}","select_wikitree_id.cancel":"Отказ","select_wikitree_id.load":"Зареждане","gedcom.ADOP":"Осиновяване","gedcom.BAPM":"Кръщене","gedcom.BARM":"Бар мицва","gedcom.BASM":"Бат мицва","gedcom.BIRT":"Раждане","gedcom.BLES":"Благословия","gedcom.BURI":"Погребение","gedcom.CENS":"Преброяване на населението","gedcom.CHR":"Кръщене","gedcom.CHRA":"Кръщение за възрастни","gedcom.CONF":"Потвърждение","gedcom.CREM":"Кремиране","gedcom.DEAT":"Смърт","gedcom.DEG":"Академична степен","gedcom.DIV":"Развод","gedcom.DIVF":"Подадено е заявление за развод","gedcom.DSCR":"Описание","gedcom.EDUC":"Образование","gedcom.ELEC":"Подбор за длъжността","gedcom.EMAIL":"Електронна поща","gedcom.EMIG":"Емигриране","gedcom.ENGA":"Годеж","gedcom.EVEN":"Събитие","gedcom.FACT":"Факт","gedcom.FCOM":"Първо причастие","gedcom.GRAD":"Завършване на обучението","gedcom.IMMI":"Имигриране","gedcom.MARB":"Забрана за брак","gedcom.MARC":"Брачен договор","gedcom.MARL":"Брачно свидетелство","gedcom.MARR":"Бракосъчетание","gedcom.MARS":"Предбрачен договор","gedcom.MDCL":"Медицинска информация","gedcom.MILT":"Военна служба","gedcom.NATU":"Натурализация","gedcom.OBJE":"Допълнителни файлове","gedcom.OCCU":"Професия","gedcom.ORDN":"Ръкополагане","gedcom.PROB":"Потвърждение на завещанието","gedcom.PROP":"Имот","gedcom.RESI":"Местожителство","gedcom.RETI":"Пенсиониране","gedcom.RELI":"Религия","gedcom.RIN":"ID","gedcom.SOUR":"Източници","gedcom.TITL":"Обръщение","gedcom.WILL":"Завещание","gedcom.WWW":"Препратка","gedcom._UPD":"Последно обновяване","gedcom.birth":"Рождено име","gedcom.married":"Име след брак","gedcom.maiden":"Моминско име","gedcom.immigrant":"Имигрантско име","gedcom.aka":"Също известни като","date.abt":"около","date.cal":"изчислено","date.est":"приблизително","date.between":"между {from} и {to}","date.after":"след {from}","date.before":"преди {to}","age.exact":"{age, plural, =0 {Под 1 година} one {{qualifier} 1 година} other {{qualifier} # години}}","age.less":"Под {age, plural, =0 {1 година} one {1 година} other {# години}}","age.more":"Над {age, plural, =0 {0 години} one {1 година} other {# години}}","age.between":"Между {ageFrom} {ageTo, plural, =0 {0 години} one {1 година} other {# години}}","error.error":"Грешка","error.failed_pdf":"Неуспешно създаване на PDF файл. Опитайте с по-малка диаграма или изтеглете SVG.","error.failed_png":"Неуспешно създаване на PNG файл. Опитайте с по-малка диаграма или изтеглете SVG.","error.failed_to_load_file":"Грешка при зареждане на файл","error.failed_wikitree_load_more":"Грешка при зареждане на данни от WikiTree. {error}}","error.GEDCOM_READ_FAILED":"Грешка при отваряне на GEDCOM файл","error.ERROR_LOADING_UPLOADED_FILE":"Грешка при зареждането на данни. Качете файла отново.","error.WIKITREE_ID_NOT_PROVIDED":"Не е указан идентификатор на профил в WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Профилът {id} в WikiTree е недостъпен. Опитайте да се впишете.","error.WIKITREE_PROFILE_NOT_FOUND":"Профилът {id} в WikiTree не е намерен","error.failed_to_load_image":"Грешка при зареждане на изображение","wikitree.private":"Скрито","tab.info":"Информация","tab.settings":"Настройки","config.colors":"Цвят","config.colors.NO_COLOR":"Без цвят","config.colors.COLOR_BY_GENERATION":"По поколения","config.colors.COLOR_BY_SEX":"По пол","config.ids":"Идентификатори","config.ids.HIDE":"Скриване","config.ids.SHOW":"Показване","config.sex":"Пол","config.sex.HIDE":"Скриване","config.sex.SHOW":"Показване","config.places":"Места","config.places.FULL":"пълно","config.places.SHORT":"съкратено","config.places.HIDE":"скриване","head.source":"Източник на данни","name.unknown_name":"Неизвестно име","extras.images":"Изображение","extras.notes":"Бележки","extras.sources":"Източници","extras.files":"Допълнителни файлове","family.immediate_family":"Най-близко семейство","family.parents":"Родители","family.father":"Баща","family.mother":"Майка","family.husband":"Съпруг","family.wife":"Съпруга","family.unknown_spouse":"Неизвестен съпруг/а","family.children":"Деца","family.child":"Дете","media.not_uploaded":"Файлът не е качен","menu.load_from_google_drive":"Зареждане от Google Диск","menu.google_sign_out":"Прекъсване на връзката с Google Диск","google_auth.title":"Изисква се достъп до Google Диск","google_auth.instructions":"За да прегледате този файл, трябва да се удостоверите и да изберете файла от вашия Google Диск, за да предоставите разрешения.","google_auth.picker_instructions_header":"Изискват се разрешения","google_auth.picker_instructions":"Приложението няма разрешение да чете този файл. Моля, изберете го в изскачащия прозорец на браузъра за файлове, за да предоставите достъп. Ако това е споделен файл, който не се показва, опитайте първо да добавите пряк път към вашия Диск.","google_auth.cancel":"Отказ","google_auth.grant_button":"Предоставяне на достъп и избор на файл","google_auth.switch_account_button":"Смяна на акаунт","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Интеграцията с Google Drive не е конфигурирана."},cde={"menu.open":"Otevřít","menu.open_file":"Otevřít soubor","menu.load_from_url":"Otevřít z URL","menu.select_wikitree_id":"Vybrat WikiTree ID","menu.print":"Tisknout","menu.download":"Stáhnout","menu.pdf_file":"Soubor PDF","menu.png_file":"Soubor PNG","menu.svg_file":"Soubor SVG","menu.download_pdf":"Stáhnout PDF","menu.download_png":"Stáhnout PNG","menu.download_svg":"Stáhnout SVG","menu.view":"Zobrazení","menu.hourglass":"Přesýpací hodiny","menu.relatives":"Všichni příbuzní","menu.donatso":"Donatso rodokmen","menu.fancy":"Rodinný strom (experimentální)","menu.wikitree_login":"Přihlášení na WikiTree","menu.wikitree_logged_in":"Přihlášeno","menu.wikitree_popup_username":"Přihlášeno do WikiTree jako {username}","menu.wikitree_popup":"Přihlášeno do WikiTree","menu.github":"GitHub projekt","menu.search.placeholder":"Hledej osobu","menu.search.no_results":"Žádné výsledky","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy vám umožňuje interaktivní prohlížení rodokmenu.","intro.instructions":"Kliknutím na OTEVŘÍT SOUBOR nebo OTEVŘÍT Z URL načtete soubor GEDCOM. Většina genealogických programů má funkci exportu do formátu GEDCOM.","intro.examples":"Níže je uvedeno několik příkladů použití z internetu:","intro.from":"zdroj:","intro.whats_new":"Co je nového","intro.full_changelog":"Úplný seznam změn","whats_new.title":"Co je nového v této verzi?","intro.privacy":"Soukromí","intro.privacy_note":"Pomocí funkce „Otevřít soubor“ nejsou vaše data nikam odesílána a zůstávají ve vašem počítači. Při použití funkce „Otevřít z URL“ jsou data z dané adresy odeslána službou {link}, aby bylo možné data načíst (CORS).","load_from_url.title":"Otevřít z adresy URL","load_from_url.comment":"Data z dané adresy URL budou načtena prostřednictvím služby {link}, aby nedocházelo k problémům s CORS.","load_from_url.cancel":"Storno","load_from_url.load":"Otevřít","select_wikitree_id.title":"Zadejte WikiTree ID","select_wikitree_id.comment":"Zadejte ID profilu {wikiTreeLink}. Příklad: {example1}, {example2}","select_wikitree_id.cancel":"Storno","select_wikitree_id.load":"Otevřít","gedcom.ADOP":"Adopce","gedcom.BAPM":"Křest","gedcom.BARM":"Bar micva","gedcom.BASM":"Bas micva","gedcom.BIRT":"Narození","gedcom.BLES":"Požehnání","gedcom.BURI":"Pohřeb","gedcom.CENS":"Sčítání lidu","gedcom.CHR":"Křest","gedcom.CHRA":"Křest dospělých","gedcom.CONF":"Potvrzení","gedcom.CREM":"Kremace","gedcom.DEAT":"Úmrtí","gedcom.DEG":"Academic degree","gedcom.DIV":"Rozvod","gedcom.DIVF":"Potvrzení","gedcom.DSCR":"Popis","gedcom.EDUC":"Vzdělání","gedcom.ELEC":"Výběr na pozici","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigrace","gedcom.ENGA":"zasnoubení","gedcom.EVEN":"Událost","gedcom.FACT":"Údaj","gedcom.FCOM":"První přijímání","gedcom.GRAD":"Dokončení školení ","gedcom.IMMI":"Imigrace","gedcom.MARB":"Družstvo","gedcom.MARC":"Manželská smlouva ","gedcom.MARL":"Oddací list","gedcom.MARR":"Svatba","gedcom.MARS":"Předmanželská smlouva","gedcom.MDCL":"Lékařské informace","gedcom.MILT":"Vojenská služba","gedcom.NATU":"Získání občanství","gedcom.OBJE":"Další soubory","gedcom.OCCU":"Povolání","gedcom.ORDN":"Vysvěcení","gedcom.PROB":"Potvrzení závěti","gedcom.PROP":"Majetek","gedcom.RESI":"Bydliště","gedcom.RETI":"Odchod do důchodu ","gedcom.RELI":"Vyznání","gedcom.RIN":"ID","gedcom.SOUR":"Zdroje","gedcom.TITL":"Titul","gedcom.WILL":"Závěť","gedcom.WWW":"Stránka WWW","gedcom._UPD":"Poslední aktualizace","gedcom.birth":"Rodné jméno","gedcom.married":"Jméno po svatbě","gedcom.maiden":"Jméno za svobodna","gedcom.immigrant":"Jméno získané imigrací","gedcom.aka":"Také znám(a) jako","date.abt":"kolem","date.cal":"vypočteno","date.est":"asi","date.between":"mezi {from} a {to}","date.after":"po {from}","date.before":"před {to}","age.exact":"{qualifier}{age, plural, =0 {Méně než rok} one {1 rok} few {# roky} other {# let}}","age.less":"Méne než {age, plural, =0 {1 rok} one {1 rok} few {# roky} other {# let}}","age.more":"Více než {age, plural, =0 {0 let} one {1 rok} few {# roky} other {# let}}","age.between":"Mezi {ageFrom} a {ageTo, plural, =0 {0 lety} one {1 rokem} few {# roky} other {# lety}}","error.error":"Chyba","error.failed_pdf":"Soubor PDF nelze vytvořit. Zkuste to znovu s menším diagramem nebo stáhněte soubor SVG.","error.failed_png":"Soubor PNG nelze vytvořit. Zkuste to znovu s menším diagramem nebo stáhněte soubor SVG.","error.failed_to_load_file":"Chyba při načítání souboru","error.failed_wikitree_load_more":"Chyba při načítání dat z WikiTree. {chyba}","error.GEDCOM_READ_FAILED":"Chyba při načítání souboru GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Chyba při načítání dat. Znovu otevřete soubor.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree ID nebylo získáno","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} není k dispozici","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} neexistuje","error.failed_to_load_image":"Nepodařilo se načíst obrázek","wikitree.private":"Soukromé","tab.info":"Informace","tab.settings":"Nastavení","config.colors":"Barvy","config.colors.NO_COLOR":"žádné","config.colors.COLOR_BY_GENERATION":"podle generace","config.colors.COLOR_BY_SEX":"podle pohlaví","config.ids":"Identifikátory","config.ids.HIDE":"skrýt","config.ids.SHOW":"zobrazit","config.sex":"Pohlaví","config.sex.HIDE":"skrýt","config.sex.SHOW":"zobrazit","config.places":"Místa","config.places.FULL":"plný","config.places.SHORT":"zkrácený","config.places.HIDE":"skrýt","head.source":"Zdroj dat","name.unknown_name":"N.N.","extras.images":"Obrázky","extras.notes":"Poznámky","extras.sources":"Zdroje","extras.files":"Další soubory","family.immediate_family":"Nejbližší rodina","family.parents":"Rodiče","family.father":"Otec","family.mother":"Matka","family.husband":"Manžel","family.wife":"Manželka","family.unknown_spouse":"Neznámý manžel/ka","family.children":"Děti","family.child":"Dítě","media.not_uploaded":"Soubor nebyl nahrán","menu.load_from_google_drive":"Načíst z Google Disku","menu.google_sign_out":"Odpojit Google Disk","google_auth.title":"Je vyžadován přístup k Disku Google","google_auth.instructions":"Chcete-li tento soubor zobrazit, musíte se ověřit a vybrat soubor z Disku Google, abyste udělili oprávnění.","google_auth.picker_instructions_header":"Vyžadována oprávnění","google_auth.picker_instructions":"Aplikace nemá oprávnění ke čtení tohoto souboru. Vyberte jej prosím v rozevíracím seznamu prohlížeče souborů pro udělení přístupu. Pokud se jedná o sdílený soubor, který se nezobrazuje, zkuste nejprve přidat zástupce na svůj Disk.","google_auth.cancel":"Zrušit","google_auth.grant_button":"Udělit přístup a vybrat soubor","google_auth.switch_account_button":"Přepnout účet","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Integrace s Diskem Google není nakonfigurována."},fde={"menu.open":"Öffnen","menu.open_file":"Datei öffnen","menu.load_from_url":"URL öffnen","menu.select_wikitree_id":"WikiTree ID auswählen","menu.print":"Drucken","menu.download":"Download","menu.pdf_file":"PDF-Datei","menu.png_file":"PNG-Datei","menu.svg_file":"SVG-Datei","menu.download_pdf":"PDF herunterladen","menu.download_png":"PNG herunterladen","menu.download_svg":"SVG herunterladen","menu.view":"Ansicht","menu.hourglass":"Sanduhrkarte","menu.relatives":"Alle Verwandten","menu.donatso":"Donatso-Stammbaum","menu.fancy":"Zierbaum (experimentell)","menu.wikitree_login":"Bei WikiTree anmelden","menu.wikitree_logged_in":"Eingeloggt","menu.wikitree_popup_username":"Bei WikiTree als {username} angemeldet","menu.wikitree_popup":"Bei WikiTree angemeldet","menu.github":"Projekt auf der GitHub-Website","menu.search.placeholder":"Person suchen","menu.search.no_results":"Keine Ergebnisse","intro.title":"Topola Genealogie","intro.description":"Mit der Topola Genealogie können Sie den Stammbaum auf interaktive Weise durchsuchen.","intro.instructions":"Klicken Sie auf Datei öffnen oder URL öffnen, um eine GEDCOM-Datei zu laden. Die meisten Genealogie-Programme verfügen über eine GEDCOM-Exportfunktion.","intro.examples":"Nachfolgend einige Beispiele aus dem Internet:","intro.from":"Quelle:","intro.whats_new":"Was ist neu","intro.full_changelog":"Siehe komplette Änderungshistorie","whats_new.title":"Was ist in dieser Version neu!","intro.privacy":"Datenschutz","intro.privacy_note":'Bei Verwendung der Funktion "Datei öffnen" werden Ihre Daten nirgendwo gesendet und verbleiben auf Ihrem Computer. Bei Verwendung der Funktion "URL öffnen" werden Daten von der angegebenen Adresse vom Dienst {link} an gesendet Ermöglichen des Ladens von Daten aus einer anderen Domäne (CORS).',"load_from_url.title":"Von URL öffnen","load_from_url.comment":"Die Daten der angegebenen URL werden über den {link} -Dienst geladen, um CORS-Probleme zu vermeiden.","load_from_url.cancel":"Abbrechen","load_from_url.load":"Öffnen","select_wikitree_id.title":"WikiTree ID eingeben","select_wikitree_id.comment":"Geben Sie die Profil-ID {wikiTreeLink} ein. Beispiele: {example1}, {example2}","select_wikitree_id.cancel":"Abbrechen","select_wikitree_id.load":"Öffnen","gedcom.ADOP":"Adoption","gedcom.BAPM":"Taufe","gedcom.BARM":"Bar-Mitzwah","gedcom.BASM":"Bas-Mitzwah","gedcom.BIRT":"Geburt","gedcom.BLES":"Segnung","gedcom.BURI":"Beerdigung","gedcom.CENS":"Volkszählung","gedcom.CHR":"Taufe","gedcom.CHRA":"Erwachsenentaufe","gedcom.CONF":"Konfirmation/Firmung","gedcom.CREM":"Feuerbestattung","gedcom.DEAT":"Tod","gedcom.DEG":"Akademischer Grad","gedcom.DIV":"Scheidung","gedcom.DIVF":"Scheidung eingereicht","gedcom.DSCR":"Beschreibung","gedcom.EDUC":"Ausbildung","gedcom.ELEC":"Auswahl für die Position","gedcom.EMAIL":"E-Mail","gedcom.EMIG":"Auswanderung","gedcom.ENGA":"Verlobung","gedcom.EVEN":"Ereignis","gedcom.FACT":"Merkmal","gedcom.FCOM":"Erstkommunion","gedcom.GRAD":"Ausbildungsabschluss","gedcom.IMMI":"Einwanderung","gedcom.MARB":"Aufgebot","gedcom.MARC":"Ehevertrag","gedcom.MARL":"Eheerlaubnis","gedcom.MARR":"Heirat","gedcom.MARS":"Ehevereinbarung","gedcom.MDCL":"Medizinische Informationen","gedcom.MILT":"Mititärdienst","gedcom.NATU":"Einbürgerung","gedcom.OBJE":"Zusätzliche Dateien","gedcom.OCCU":"Beruf","gedcom.ORDN":"Ordinierung","gedcom.PROB":"Testamentsbestätigung","gedcom.PROP":"Besitz","gedcom.RESI":"Wohnort","gedcom.RETI":"Ruhestand","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Quellen","gedcom.TITL":"Titel","gedcom.WILL":"Testament","gedcom.WWW":"Website","gedcom._UPD":"Zuletzt aktualisiert","gedcom.birth":"Geburtsname","gedcom.married":"Ehenamen","gedcom.maiden":"Mädchenname","gedcom.immigrant":"Immigrant name","gedcom.aka":"Auch bekannt als","date.abt":"Über","date.cal":"berechnet","date.est":"geschätzt","date.between":"zwischen {from} und {to}","date.after":"nach {from}","date.before":"vor {to}","age.exact":"{qualifier}{age, plural, =0 {Weniger als 1 Jahr} one {1 Jahr} other {# Jahre}}","age.less":"Weniger als {age, plural, =0 {1 Jahr} one {1 Jahr} other {# Jahre}}","age.more":"Mehr als {age, plural, =0 {0 Jahre} one {1 Jahr} other {# Jahre}}","age.between":"Zwischen {ageFrom} und {ageTo, plural, =0 {0 Jahre} one {1 Jahr} other {# Jahre}}","error.error":"Fehler","error.failed_pdf":"PDF konnte nicht erstellt werden. Versuchen Sie es erneut mit einem kleineren Diagramm oder laden Sie die SVG-Datei herunter.","error.failed_png":"Fehler beim Erstellen der PNG-Datei. Versuchen Sie es erneut mit einem kleineren Diagramm oder laden Sie die SVG-Datei herunter.","error.failed_to_load_file":"Fehler beim Laden der Datei","error.failed_wikitree_load_more":"Fehler beim Abrufen der Daten aus WikiTree. {error}","error.GEDCOM_READ_FAILED":"Fehler beim Lesen der GEDCOM-Datei","error.ERROR_LOADING_UPLOADED_FILE":"Fehler beim Laden der Daten. Bitte laden Sie Ihre Datei erneut hoch.","error.WIKITREE_ID_NOT_PROVIDED":"WikiTree-ID muss angegeben werden","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Das WikiTree-Profil {id} ist nicht zugänglich. Versuchen Sie sich anzumelden.","error.WIKITREE_PROFILE_NOT_FOUND":"WikiTree-Profil {id} nicht gefunden","error.failed_to_load_image":"Bilddatei konnte nicht geladen werden","wikitree.private":"Privat","tab.info":"Informationen","tab.settings":"Einstellungen","config.colors":"Farben","config.colors.NO_COLOR":"keine","config.colors.COLOR_BY_GENERATION":"je Generation","config.colors.COLOR_BY_SEX":"nach Geschlecht","config.ids":"Identifikation","config.ids.HIDE":"verbergen","config.ids.SHOW":"anzeigen","config.sex":"Geschlecht","config.sex.HIDE":"verbergen","config.sex.SHOW":"anzeigen","config.places":"Orte","config.places.FULL":"vollständig","config.places.SHORT":"gekürzt","config.places.HIDE":"verbergen","head.source":"Datenquelle","name.unknown_name":"N.N.","extras.images":"Bilder","extras.notes":"Notizen","extras.sources":"Quellen","extras.files":"Weitere Dateien","family.immediate_family":"Engere Familie","family.parents":"Eltern","family.father":"Vater","family.mother":"Mutter","family.husband":"Ehemann","family.wife":"Ehefrau","family.unknown_spouse":"Unbekannter Ehepartner","family.children":"Kinder","family.child":"Kind","media.not_uploaded":"Datei nicht hochgeladen","menu.load_from_google_drive":"Von Google Drive laden","menu.google_sign_out":"Google Drive trennen","google_auth.title":"Google Drive-Zugriff erforderlich","google_auth.instructions":"Um diese Datei anzuzeigen, müssen Sie sich authentifizieren und die Datei aus Ihrem Google Drive auswählen, um Berechtigungen zu erteilen.","google_auth.picker_instructions_header":"Berechtigungen erforderlich","google_auth.picker_instructions":"Die Anwendung hat keine Berechtigung, diese Datei zu lesen. Bitte wählen Sie sie im Dateibrowser-Popup aus, um Zugriff zu gewähren. Wenn es sich um eine freigegebene Datei handelt, die nicht angezeigt wird, versuchen Sie zuerst, eine Verknüpfung zu Ihrem Drive hinzuzufügen.","google_auth.cancel":"Abbrechen","google_auth.grant_button":"Zugriff gewähren & Datei auswählen","google_auth.switch_account_button":"Konto wechseln","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Die Google Drive-Integration ist nicht konfiguriert."},dde={"menu.open":"Ouvrir","menu.open_file":"Ouvrir le fichier","menu.load_from_url":"Ouvrir l'URL","menu.select_wikitree_id":"Sélectionnez l'ID WikiTree","menu.print":"Imprimer","menu.download":"Télécharger","menu.pdf_file":"Fichier PDF","menu.png_file":"Fichier PNG","menu.svg_file":"Fichier SVG","menu.download_pdf":"Télécharger le PDF","menu.download_png":"Télécharger PNG","menu.download_svg":"Télécharger SVG","menu.view":"Afficher","menu.hourglass":"Graphique en sablier","menu.relatives":"Tous les parents","menu.donatso":"Donatso tableau généalogique","menu.fancy":"Arbre ornemental (expérimental)","menu.wikitree_login":"Connectez-vous à WikiTree","menu.wikitree_logged_in":"Connecté","menu.wikitree_popup_username":"Connecté à WikiTree en tant que {username}","menu.wikitree_popup":"Connecté à WikiTree","menu.github":"Projet sur le site Web GitHub","menu.search.placeholder":"Rechercher une personne","menu.search.no_results":"Aucun résultat","intro.title":"Topola Généalogie","intro.description":"La Topola Généalogie vous permet de parcourir l'arbre généalogique de manière interactive.","intro.instructions":"Cliquez sur OPEN FILE ou OPEN URL pour charger un fichier GEDCOM. La plupart des logiciels de généalogie ont une fonction d'exportation GEDCOM.","intro.examples":"Voici quelques exemples trouvés sur Internet:","intro.from":"source:","intro.whats_new":"Quoi de neuf","intro.full_changelog":"Voir toutes les modifications","whats_new.title":"Quoi de neuf dans cette version?","intro.privacy":"Confidentialité","intro.privacy_note":`Lorsque vous utilisez la fonction "Ouvrir un fichier", vos données ne sont envoyées nulle part et restent sur votre ordinateur. Lorsque vous utilisez la fonction "Ouvrir l'URL", les données de l'adresse indiquée sont envoyées par le service {link} pour permettre le chargement des données depuis un autre domaine (CORS).`,"load_from_url.title":"Ouvrir depuis l'URL","load_from_url.comment":"Les données de l'URL donnée seront chargées via le service {link} pour éviter les problèmes CORS.","load_from_url.cancel":"Annuler","load_from_url.load":"Ouvrir","select_wikitree_id.title":"Entrez l'ID de WikiTree","select_wikitree_id.comment":"Entrez l'ID de profil {wikiTreeLink}. Exemples: {example1}, {example2}","select_wikitree_id.cancel":"Annuler","select_wikitree_id.load":"Ouvrir","gedcom.ADOP":"Adoption","gedcom.BAPM":"Baptême","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Naissance","gedcom.BLES":"Bénédiction","gedcom.BURI":"Funérailles","gedcom.CENS":"Recensement","gedcom.CHR":"Baptême","gedcom.CHRA":"Baptême des adultes","gedcom.CONF":"Confirmation","gedcom.CREM":"Crémation","gedcom.DEAT":"Mort","gedcom.DEG":"Diplôme universitaire","gedcom.DIV":"Divorce","gedcom.DIVF":"Divorce déposé","gedcom.DSCR":"Description","gedcom.EDUC":"Études","gedcom.ELEC":"Nomination au poste","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Émigration","gedcom.ENGA":"Fiançailles","gedcom.EVEN":"EVEN","gedcom.FACT":"FACT","gedcom.FCOM":"Première communion","gedcom.GRAD":"Achèvement de la formation","gedcom.IMMI":"Immigration","gedcom.MARB":"Équipe","gedcom.MARC":"Contrat de mariage ","gedcom.MARL":"Licence de mariage","gedcom.MARR":"Mariage","gedcom.MARS":"Contrat prénuptial","gedcom.MDCL":"Informations médicales","gedcom.MILT":"Service militaire","gedcom.NATU":"Naturalisation","gedcom.OBJE":"Fichiers supplémentaires","gedcom.OCCU":"Profession","gedcom.ORDN":"Ordination","gedcom.PROB":"Confirmation de volonté","gedcom.PROP":"Possession","gedcom.RESI":"Lieu de résidence","gedcom.RETI":"Retraite","gedcom.RELI":"Religion","gedcom.RIN":"ID","gedcom.SOUR":"Sources","gedcom.TITL":"Titre","gedcom.WILL":"Testament","gedcom.WWW":"Site Web","gedcom._UPD":"Dernière mise à jour","gedcom.birth":"Nom de naissance","gedcom.married":"Nom marital","gedcom.maiden":"Nom de jeune fille","gedcom.immigrant":"Nom d'immigrant","gedcom.aka":"Alias","date.abt":"environ","date.cal":"calculé","date.est":"estimé","date.between":"entre {from} et {to}","date.after":"après {from}","date.before":"avant {to}","age.exact":"{qualifier}{age, plural, =0 {Moins d'1 an} one {1 an} other {# ans}}","age.less":"Moins de {age, plural, =0 {1 an} one {1 an} other {# ans}}","age.more":"Plus de {age, plural, =0 {0 an} one {1 an} other {# ans}}","age.between":"Entre {ageFrom} et {ageTo, plural, =0 {0 an} one {1 an} other {# ans}}","error.error":"Erreur","error.failed_pdf":"Échec de la création du PDF. Réessayez avec un diagramme plus petit ou téléchargez le fichier SVG.","error.failed_png":"Impossible de créer le fichier PNG. Réessayez avec un diagramme plus petit ou téléchargez le fichier SVG.","error.failed_to_load_file":"Erreur lors du chargement du fichier","error.failed_wikitree_load_more":"Erreur lors de l'obtention des données de WikiTree. {error}","error.GEDCOM_READ_FAILED":"Erreur de lecture du fichier GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Erreur de chargement des données. Renvoyez votre fichier.","error.WIKITREE_ID_NOT_PROVIDED":"L'ID WikiTree est obligatoire","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Le profil WikiTree ${id} n'est pas accessible. Connectez-vous.","error.WIKITREE_PROFILE_NOT_FOUND":"Le profil WikiTree ${id} n'a pas été trouvé","error.failed_to_load_image":"Erreur de chargement de l'image","wikitree.private":"Privé","tab.info":"Informations","tab.settings":"Paramètres","config.colors":"Couleurs","config.colors.NO_COLOR":"aucune","config.colors.COLOR_BY_GENERATION":"par génération","config.colors.COLOR_BY_SEX":"par sexe","config.ids":"Identification","config.ids.HIDE":"cacher","config.ids.SHOW":"afficher","config.sex":"Sexe","config.sex.HIDE":"cacher","config.sex.SHOW":"afficher","config.places":"Lieux","config.places.FULL":"complet","config.places.SHORT":"abrégé","config.places.HIDE":"cacher","head.source":"Source de données","name.unknown_name":"?","extras.images":"Images","extras.notes":"Notes","extras.sources":"Sources","extras.files":"Fichiers supplémentaires","family.immediate_family":"Famille proche","family.parents":"Parents","family.father":"Père","family.mother":"Mère","family.husband":"Mari","family.wife":"Femme","family.unknown_spouse":"Conjoint inconnu","family.children":"Enfants","family.child":"Enfant","media.not_uploaded":"Fichier non téléversé","menu.load_from_google_drive":"Charger depuis Google Drive","menu.google_sign_out":"Déconnecter Google Drive","google_auth.title":"Accès à Google Drive requis","google_auth.instructions":"Pour afficher ce fichier, vous devez vous authentifier et sélectionner le fichier depuis votre Google Drive pour accorder les autorisations.","google_auth.picker_instructions_header":"Autorisations requises","google_auth.picker_instructions":"L'application n'a pas l'autorisation de lire ce fichier. Veuillez le sélectionner dans la fenêtre contextuelle du navigateur de fichiers pour accorder l'accès. S'il s'agit d'un fichier partagé qui ne s'affiche pas, essayez d'abord d'ajouter un raccourci vers votre Drive.","google_auth.cancel":"Annuler","google_auth.grant_button":"Accorder l'accès et sélectionner le fichier","google_auth.switch_account_button":"Changer de compte","error.GOOGLE_DRIVE_NOT_CONFIGURED":"L'intégration de Google Drive n'est pas configurée."},hde={"menu.open":"Apri","menu.open_file":"Apri file","menu.load_from_url":"Apri URL","menu.select_wikitree_id":"Seleziona ID WikiTree","menu.print":"Stampa","menu.download":"Scarica","menu.pdf_file":"File PDF","menu.png_file":"File PNG","menu.svg_file":"File SVG","menu.download_pdf":"Scarica PDF","menu.download_png":"Scarica PNG","menu.download_svg":"Scarica SVG","menu.view":"Visualizza","menu.hourglass":"Grafico a clessidra","menu.relatives":"Tutti i parenti","menu.donatso":"Donatso albero genealogico","menu.fancy":"Albero ornamentale (sperimentale)","menu.wikitree_login":"Accedi a WikiTree","menu.wikitree_logged_in":"Accesso effettuato","menu.wikitree_popup_username":"Accesso a WikiTree come {username}","menu.wikitree_popup":"Accesso a WikiTree","menu.github":"Progetto sul sito web GitHub","menu.search.placeholder":"Cerca persona","menu.search.no_results":"Nessun risultato","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy ti consente di esplorare l'albero genealogico in modo interattivo.","intro.instructions":"Fai clic su OPEN FILE o OPEN URL per caricare un file GEDCOM. La maggior parte dei software di genealogia ha una funzione di esportazione GEDCOM.","intro.examples":"Di seguito sono riportati alcuni esempi trovati su Internet:","intro.from":"fonte:","intro.whats_new":"Novità","intro.full_changelog":"Vedi il log delle modifiche completo","whats_new.title":"Cosa c'è di nuovo in questa versione?","intro.privacy":"Protezione dei dati","intro.privacy_note":`Quando si utilizza la funzione "Apri file", i dati non vengono inviati da nessuna parte e rimangono sul computer. Quando si utilizza la funzione "Apri URL", i dati dall'indirizzo specificato vengono inviati dal servizio {link} a consentire il caricamento dei dati da un altro dominio (CORS).`,"load_from_url.title":"Apri da URL","load_from_url.comment":"I dati dall'URL specificato verranno caricati tramite il servizio {link} per evitare problemi CORS.","load_from_url.cancel":"Annulla","load_from_url.load":"Apri","select_wikitree_id.title":"Inserisci ID WikiTree","select_wikitree_id.comment":"Inserisci l'ID profilo {wikiTreeLink}. Esempi: {example1}, {example2}","select_wikitree_id.cancel":"Annulla","select_wikitree_id.load":"Apri","gedcom.ADOP":"Adozione","gedcom.BAPM":"Battesimo","gedcom.BARM":"Bar Mitzvah","gedcom.BASM":"Bas Mitzvah","gedcom.BIRT":"Nascita","gedcom.BLES":"Benedizione","gedcom.BURI":"Sepoltura","gedcom.CENS":"Censimento","gedcom.CHR":"Battesimo","gedcom.CHRA":"Battesimo degli adulti","gedcom.CONF":"Cresima","gedcom.CREM":"Cremazione","gedcom.DEAT":"Morte","gedcom.DEG":"Titolo accademico","gedcom.DIV":"Divorzio","gedcom.DIVF":"Richiesta di divorzio","gedcom.DSCR":"Descrizione fisica","gedcom.EDUC":"Istruzione","gedcom.ELEC":"Elezione a carica","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigrazione","gedcom.ENGA":"Fidanzamento","gedcom.EVEN":"Evento","gedcom.FACT":"Fatto","gedcom.FCOM":"Prima Comunione","gedcom.GRAD":"Conseguimento del titolo di studio","gedcom.IMMI":"Immigrazione","gedcom.MARB":"Pubblicazioni matrimoniali","gedcom.MARC":"Accordo matrimoniale","gedcom.MARL":"Licenza di matrimonio","gedcom.MARR":"Matrimonio","gedcom.MARS":"Accordo prematrimoniale","gedcom.MDCL":"Informazioni mediche","gedcom.MILT":"Servizio militare","gedcom.NATU":"Naturalizzazione","gedcom.OBJE":"Media allegati","gedcom.OCCU":"Professione","gedcom.ORDN":"Ordinazione religiosa","gedcom.PROB":"Omologazione del testamento","gedcom.PROP":"Proprietà","gedcom.RESI":"Residenza","gedcom.RETI":"Pensionamento","gedcom.RELI":"Religione","gedcom.RIN":"ID","gedcom.SOUR":"Fonti","gedcom.TITL":"Titolo nobiliare/professionale","gedcom.WILL":"Testamento","gedcom.WWW":"Sito web","gedcom._UPD":"Ultimo aggiornamento","gedcom.birth":"Nome alla nascita","gedcom.married":"Nome dopo il matrimonio","gedcom.maiden":"Cognome da nubile","gedcom.immigrant":"Nome all'immigrazione","gedcom.aka":"Detto anche","date.abt":"circa","date.cal":"calcolato","date.est":"stimato","date.between":"tra il {from} e il {to}","date.after":"dopo il {from}","date.before":"prima del {to}","age.exact":"{qualifier}{age, plural, =0 {Meno di 1 anno} one {1 anno} other {# anni}}","age.less":"Meno di {age, plural, =0 {1 anno} one {1 anno} other {# anni}}","age.more":"Più di {age, plural, =0 {0 anni} one {1 anno} other {# anni}}","age.between":"Tra {ageFrom} e {ageTo, plural, =0 {0 anni} one {1 anno} other {# anni}}","error.error":"Errore","error.failed_pdf":"Impossibile creare PDF. Riprova con un diagramma più piccolo o scarica il file SVG.","error.failed_png":"Impossibile creare il file PNG. Riprova con un diagramma più piccolo o scarica il file SVG.","error.failed_to_load_file":"Errore durante il caricamento del file","error.failed_wikitree_load_more":"Errore durante il recupero dei dati da WikiTree. {error}","error.GEDCOM_READ_FAILED":"Impossibile leggere il file GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Errore durante il caricamento dei dati. Carica nuovamente il file.","error.WIKITREE_ID_NOT_PROVIDED":"È necessario fornire l'ID WikiTree.","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Il profilo WikiTree {id} non è accessibile. Prova ad effettuare il login.","error.WIKITREE_PROFILE_NOT_FOUND":"Profilo WikiTree {id} non trovato","error.failed_to_load_image":"Impossibile caricare il file immagine","wikitree.private":"Privato","tab.info":"Informazioni","tab.settings":"Impostazioni","config.colors":"Colori","config.colors.NO_COLOR":"nessuno","config.colors.COLOR_BY_GENERATION":"per generazione","config.colors.COLOR_BY_SEX":"per sesso","config.ids":"Identificazione","config.ids.HIDE":"nascondere","config.ids.SHOW":"visualizzare","config.sex":"Sesso","config.sex.HIDE":"nascondere","config.sex.SHOW":"visualizzare","config.places":"Luoghi","config.places.FULL":"completo","config.places.SHORT":"abbreviato","config.places.HIDE":"nascondere","head.source":"Origine dati","name.unknown_name":"N.N.","extras.images":"Immagini","extras.notes":"Appunti","extras.sources":"Fonti","extras.files":"File aggiuntivi","family.immediate_family":"Famiglia stretta","family.parents":"Genitori","family.father":"Padre","family.mother":"Madre","family.husband":"Marito","family.wife":"Moglie","family.unknown_spouse":"Coniuge sconosciuto","family.children":"Figli","family.child":"Figlio/a","media.not_uploaded":"File non caricato","menu.load_from_google_drive":"Carica da Google Drive","menu.google_sign_out":"Disconnetti Google Drive","google_auth.title":"Accesso a Google Drive richiesto","google_auth.instructions":"Per visualizzare questo file, devi autenticarti e selezionare il file dal tuo Google Drive per concedere le autorisations.","google_auth.picker_instructions_header":"Autorizzazioni richieste","google_auth.picker_instructions":"L'applicazione non ha l'autorizzazione di leggere questo file. Selezionalo nel popup del browser dei file per concedere l'accesso. Se si tratta di un file condiviso che non viene visualizzato, prova prima ad aggiungere una scorciatoia al tuo Drive.","google_auth.cancel":"Annulla","google_auth.grant_button":"Concedi l'accesso e seleziona il file","google_auth.switch_account_button":"Cambia account","error.GOOGLE_DRIVE_NOT_CONFIGURED":"L'integrazione con Google Drive non è configurata."},pde={"menu.open":"Otwórz","menu.open_file":"Otwórz plik","menu.load_from_url":"Otwórz URL","menu.select_wikitree_id":"Wybierz WikiTree ID","menu.print":"Drukuj","menu.download":"Pobierz","menu.pdf_file":"Plik PDF","menu.png_file":"Plik PNG","menu.svg_file":"Plik SVG","menu.download_pdf":"Pobierz PDF","menu.download_png":"Pobierz PNG","menu.download_svg":"Pobierz SVG","menu.view":"Widok","menu.hourglass":"Wykres klepsydrowy","menu.relatives":"Wszyscy krewni","menu.donatso":"Donatso wykres rodzinny","menu.fancy":"Ozdobne drzewo (eksperymentalne)","menu.wikitree_login":"Zaloguj do WikiTree","menu.wikitree_logged_in":"Zalogowano","menu.wikitree_popup_username":"Zalogowano do WikiTree jako {username}","menu.wikitree_popup":"Zalogowano do WikiTree","menu.github":"Projekt na stronie GitHub","menu.search.placeholder":"Szukaj osoby","menu.search.no_results":"Brak wyników","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy pozwala przeglądać drzewo genealogiczne w interaktywny sposób.","intro.instructions":"Kliknij OTWÓRZ PLIK lub OTWÓRZ URL, aby załadować plik GEDCOM. Większość programów genealogicznych posiada funkcję eksportu do pliku GEDCOM.","intro.examples":"Przykłady","intro.from":"źródło:","intro.whats_new":"Co nowego?","intro.full_changelog":"Zobacz pełną listę zmian","whats_new.title":"Co nowego w tej wersji?","intro.privacy":"Prywatność","intro.privacy_note":'Używając funkcji "Otwórz plik", Twoje dane nie są nigdzie wysyłane i pozostają na Twoim komputerze. Używając funkcji "Otwórz URL", dane z podanego adresu przesyłane są przez usługę {link} w celu umożliwienia załadowania danych z innej domeny (CORS).',"load_from_url.title":"Otwórz z adresu URL","load_from_url.comment":"Dane z podanego adresu URL zostaną załadowane poprzez usługę {link} w celu uniknięcia problemów z CORS.","load_from_url.cancel":"Anuluj","load_from_url.load":"Otwórz","select_wikitree_id.title":"Podaj WikiTree ID","select_wikitree_id.comment":"Wpisz identyfikator profilu {wikiTreeLink}. Przykłady: {example1}, {example2}","select_wikitree_id.cancel":"Anuluj","select_wikitree_id.load":"Otwórz","gedcom.ADOP":"Adopcja","gedcom.BAPM":"Chrzest","gedcom.BARM":"Bar Micwa","gedcom.BASM":"Bat Micwa","gedcom.BIRT":"Narodziny","gedcom.BLES":"Błogosławieństwo","gedcom.BURI":"Pogrzeb","gedcom.CENS":"Spis ludności","gedcom.CHR":"Chrzest","gedcom.CHRA":"Chrzest dorosłych","gedcom.CONF":"Bierzmowanie","gedcom.CREM":"Kremacja","gedcom.DEAT":"Śmierć","gedcom.DEG":"Stopień naukowy","gedcom.DIV":"Rozwód","gedcom.DIVF":"Wniesienie pozwu o rozwód","gedcom.DSCR":"Opis","gedcom.EDUC":"Wykształcenie","gedcom.ELEC":"Wybór na stanowisko","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Emigracja","gedcom.ENGA":"Zaręczyny","gedcom.EVEN":"Wydarzenie","gedcom.FACT":"Fakt","gedcom.FCOM":"Pierwsza komunia","gedcom.GRAD":"Ukończenie szkoły","gedcom.IMMI":"Imigracja","gedcom.MARB":"Zapowiedzi małżeńskie","gedcom.MARC":"Kontrakt małżeński","gedcom.MARL":"Licencja małżeńska","gedcom.MARR":"Małżeństwo","gedcom.MARS":"Ugoda małżeńska","gedcom.MDCL":"Informacje medyczne","gedcom.MILT":"Służba wojskowa","gedcom.NATU":"Nadanie obywatelstwa","gedcom.OBJE":"Dodatkowe pliki","gedcom.OCCU":"Zawód","gedcom.ORDN":"Święcenia","gedcom.PROB":"Postępowanie spadkowe","gedcom.PROP":"Nieruchomość","gedcom.RESI":"Miejsce zamieszkania","gedcom.RETI":"Emerytura","gedcom.RELI":"Religia","gedcom.RIN":"ID","gedcom.SOUR":"Źródła","gedcom.TITL":"Tytuł","gedcom.WILL":"Testament","gedcom.WWW":"Strona WWW","gedcom._UPD":"Ostatnia aktualizacja","gedcom.birth":"Nazwisko rodowe","gedcom.married":"Nazwisko po małżeństwie","gedcom.maiden":"Nazwisko panieńskie","gedcom.immigrant":"Nazwisko po imigracji","gedcom.aka":"Alias","date.abt":"około","date.cal":"wyliczone","date.est":"oszacowane","date.between":"między {from} a {to}","date.after":"po {from}","date.before":"przed {to}","age.exact":"{age, plural, =0 {Mniej niż 1 rok} one {{qualifier} 1 rok} many {{qualifier} # lat} other {{qualifier} # lata}}","age.less":"Mniej niż {age, plural, =0 {1 rok} one {1 rok} many {# lat} other {# lata}}","age.more":"Więcej niż {age, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","age.between":"Między {ageFrom} a {ageTo, plural, =0 {0 lat} one {1 rok} many {# lat} other {# lata}}","error.error":"Błąd","error.failed_pdf":"Nie udało się utworzyć pliku PDF. Spróbuj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_png":"Nie udało się utworzyć pliku PNG. Spróbuj jeszcze raz z mniejszym diagramem lub pobierz plik SVG.","error.failed_to_load_file":"Błąd wczytywania pliku","error.failed_wikitree_load_more":"Błąd podczas pobierania danych z WikiTree. {error}","error.GEDCOM_READ_FAILED":"Błąd wczytywania pliku GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Błąd wczytywania danych. Otwórz ponownie plik.","error.WIKITREE_ID_NOT_PROVIDED":"Identyfikator WikiTree nie został podany","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Profil WikiTree {id} nie jest dostępny","error.WIKITREE_PROFILE_NOT_FOUND":"Profil WikiTree {id} nie istnieje","error.failed_to_load_image":"Błąd podczas pobierania pliku ze zdjęciem","wikitree.private":"Prywatne","tab.info":"Informacje","tab.settings":"Ustawienia","config.colors":"Kolory","config.colors.NO_COLOR":"brak","config.colors.COLOR_BY_GENERATION":"według pokolenia","config.colors.COLOR_BY_SEX":"według płci","config.ids":"Identyfikator","config.ids.HIDE":"ukryj","config.ids.SHOW":"pokaż","config.sex":"Płeć","config.sex.HIDE":"ukryj","config.sex.SHOW":"pokaż","config.places":"Miejsca","config.places.FULL":"pełne","config.places.SHORT":"skrócone","config.places.HIDE":"ukryj","head.source":"Źródło danych","name.unknown_name":"N.N.","extras.images":"Zdjęcia","extras.notes":"Notatki","extras.sources":"Źródła","extras.files":"Dodatkowe pliki","family.immediate_family":"Najbliższa rodzina","family.parents":"Rodzice","family.father":"Ojciec","family.mother":"Matka","family.husband":"Mąż","family.wife":"Żona","family.unknown_spouse":"Nieznany współmałżonek","family.children":"Dzieci","family.child":"Dziecko","media.not_uploaded":"Plik nieprzesłany","menu.load_from_google_drive":"Otwórz z Dysku Google","menu.google_sign_out":"Rozłącz Dysk Google","google_auth.title":"Wymagany dostęp do Dysku Google","google_auth.instructions":"Aby wyświetlić ten plik, musisz się zalogować i wybrać plik z Dysku Google, aby przyznać uprawnienia.","google_auth.picker_instructions_header":"Wymagane uprawnienia","google_auth.picker_instructions":"Aplikacja nie ma uprawnień do odczytu tego pliku. Wybierz go w oknie wyszukiwania plików, aby przyznać dostęp. Jeśli to jest plik udostępniony, który się nie wyświetla, spróbuj najpierw dodać skrót do swojego Dysku.","google_auth.cancel":"Anuluj","google_auth.grant_button":"Przejdź do autoryzacji i wyboru pliku","google_auth.switch_account_button":"Przełącz konto","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Integracja z Dyskiem Google nie jest skonfigurowana."},mde={"menu.open":"Открыть","menu.open_file":"Открыть файл","menu.load_from_url":"Открыть URL","menu.select_wikitree_id":"Выберите WikiTree ID","menu.print":"Печать","menu.download":"Скачать","menu.pdf_file":"Файл PDF","menu.png_file":"Файл PNG","menu.svg_file":"Файл SVG","menu.download_pdf":"Скачать PDF","menu.download_png":"Скачать PNG","menu.download_svg":"Скачать SVG","menu.view":"Вид","menu.hourglass":"График Песочные часы","menu.relatives":"Все родственники","menu.donatso":"Donatso семейная схема","menu.fancy":"Декоративное дерево (экспериментальное)","menu.wikitree_login":"Войти в WikiTree","menu.wikitree_logged_in":"Вход выполнен","menu.wikitree_popup_username":"Вы вошли в WikiTree как {username}","menu.wikitree_popup":"Вы вошли в WikiTree","menu.github":"Проект на сайте GitHub","menu.search.placeholder":"Искать человека","menu.search.no_results":"Нет результатов","intro.title":"Topola Genealogy","intro.description":"Topola Genealogy позволяет просматривать семейное древо в интерактивном режиме.","intro.instructions":'Щелкните "Открыть файл" или "Открыть URL", чтобы загрузить файл GEDCOM. Большинство программ для генеалогии имеют функцию экспорта GEDCOM.',"intro.examples":"Ниже приведены некоторые примеры, найденные в Интернете:","intro.from":"источник:","intro.whats_new":"Что нового?","intro.full_changelog":"Список изменений","whats_new.title":"Что нового в этой версии?","intro.privacy":"Конфиденциальность","intro.privacy_note":'При использовании функции "Открыть файл" Ваши данные никуда не отправляются и остаются на Вашем компьютере. При использовании функции "Открыть URL" данные с указанного адреса отправляются службой {link} на включение загрузки данных из другого домена (CORS).',"load_from_url.title":"Открыть с адреса URL","load_from_url.comment":"Данные с указанного адреса URL будут загружены через службу {link}, чтобы избежать проблем CORS.","load_from_url.cancel":"Отменить","load_from_url.load":"Открыть","select_wikitree_id.title":"Введите идентификатор WikiTree","select_wikitree_id.comment":"Введите идентификатор профиля {wikiTreeLink}. Примеры: {example1}, {example2}","select_wikitree_id.cancel":"Отмена","select_wikitree_id.load":"Открыть","gedcom.ADOP":"Усыновление","gedcom.BAPM":"Крещение","gedcom.BARM":"Бар-мицва","gedcom.BASM":"Бас Мицва","gedcom.BIRT":"Рождение","gedcom.BLES":"Благословение","gedcom.BURI":"Похороны","gedcom.CENS":"Перепись населения","gedcom.CHR":"Крещение","gedcom.CHRA":"Крещение взрослых","gedcom.CONF":"Подтверждение","gedcom.CREM":"Кремация","gedcom.DEAT":"Смерть","gedcom.DEG":"Ученая степень","gedcom.DIV":"Развод","gedcom.DIVF":"Подано заявление о разводе","gedcom.DSCR":"Описание","gedcom.EDUC":"Образование","gedcom.ELEC":"Выбор на должность","gedcom.EMAIL":"E-mail","gedcom.EMIG":"Эмиграция","gedcom.ENGA":"Помолвка","gedcom.EVEN":"Событие","gedcom.FACT":"Факт","gedcom.FCOM":"Первое Причастие","gedcom.GRAD":"Завершение обучения","gedcom.IMMI":"Иммиграция","gedcom.MARB":"Отряд","gedcom.MARC":"Брачный контракт","gedcom.MARL":"Свидетельство о браке","gedcom.MARR":"Свадьба","gedcom.MARS":"Брачный договор","gedcom.MDCL":"Медицинская информация","gedcom.MILT":"Военная служба","gedcom.NATU":"Натурализация","gedcom.OBJE":"Дополнительные файлы","gedcom.OCCU":"Вид деятельности","gedcom.ORDN":"Рукоположение","gedcom.PROB":"Подтверждение завещания","gedcom.PROP":"Владение","gedcom.RESI":"Место жительства","gedcom.RETI":"Выход на пенсию","gedcom.RELI":"Религия","gedcom.RIN":"ID","gedcom.SOUR":"Источники","gedcom.TITL":"Титул","gedcom.WILL":"Завещание","gedcom.WWW":"Веб-сайт WWW","gedcom._UPD":"Последнее обновление","gedcom.birth":"Имя при рождении","gedcom.married":"Имя в браке","gedcom.maiden":"Девичья фамилия","gedcom.immigrant":"Имя в эмиграции","gedcom.aka":"Он(а) же","date.abt":"около","date.cal":"рассчитано","date.est":"приблизительно","date.between":"между {from} и {to}","date.after":"после {from}","date.before":"до {to}","age.exact":"{age, plural, =0 {Менее 1 года} one {{qualifier} 1 год} many {{qualifier} # лет} other {{qualifier} # года}}","age.less":"Менее {age, plural, =0 {1 года} one {1 год} many {# лет} other {# года}}","age.more":"Более {age, plural, =0 {0 лет} one {1 год} many {# лет} other {# года}}","age.between":"Между {ageFrom} {ageTo, plural, =0 {0 лет} one {1 год} many {# год} other {# лет}}","error.error":"Ошибка","error.failed_pdf":"Не удалось создать PDF-файл. Повторите попытку с меньшей диаграммой или загрузите файл SVG.","error.failed_png":"Не удалось создать файл PNG. Повторите попытку с меньшей схемой или загрузите файл SVG.","error.failed_to_load_file":"Ошибка загрузки файла","error.failed_wikitree_load_more":"Ошибка при получении данных из WikiTree. {error}","error.GEDCOM_READ_FAILED":"Ошибка чтения файла GEDCOM","error.ERROR_LOADING_UPLOADED_FILE":"Ошибка чтения данных. Повторите.","error.WIKITREE_ID_NOT_PROVIDED":"Не указан идентификатор WikiTree","error.WIKITREE_PROFILE_NOT_ACCESSIBLE":"Профиль WikiTree {id} недоступен","error.WIKITREE_PROFILE_NOT_FOUND":"Профиль WikiTree {id} не найден","error.failed_to_load_image":"Ошибка при открытии картинки","wikitree.private":"Частный","tab.info":"Информация","tab.settings":"Настройки","config.colors":"Цвет","config.colors.NO_COLOR":"Без цвета","config.colors.COLOR_BY_GENERATION":"По поколениям","config.colors.COLOR_BY_SEX":"По полу","config.ids":"Идентификатор","config.ids.HIDE":"Скрыть","config.ids.SHOW":"Показать","config.sex":"Пол","config.sex.HIDE":"Скрыть","config.sex.SHOW":"Показать","config.places":"Места","config.places.FULL":"полное","config.places.SHORT":"сокращённое","config.places.HIDE":"скрыть","head.source":"Источник данных","name.unknown_name":"Неизвестно","extras.images":"Картинки","extras.notes":"Примечание","extras.sources":"Источники","extras.files":"Дополнительные файлы","family.immediate_family":"Ближайшие родственники","family.parents":"Родители","family.father":"Отец","family.mother":"Мать","family.husband":"Муж","family.wife":"Жена","family.unknown_spouse":"Неизвестный супруг(а)","family.children":"Дети","family.child":"Ребёнок","media.not_uploaded":"Файл не загружен","menu.load_from_google_drive":"Загрузить с Google Диска","menu.google_sign_out":"Отключить Google Диск","google_auth.title":"Требуется доступ к Google Диску","google_auth.instructions":"Чтобы просмотреть этот файл, необходимо пройти авторизацию и выбрать файл на Google Диске для предоставления разрешений.","google_auth.picker_instructions_header":"Требуются разрешения","google_auth.picker_instructions":"У приложения нет разрешения на чтение этого файла. Пожалуйста, выберите его во всплывающем окне выбора файлов, чтобы предоставить доступ. Если это общий файл, который не отображается, попробуйте сначала добавить ярлык на свой Диск.","google_auth.cancel":"Отмена","google_auth.grant_button":"Предоставить доступ и выбрать файл","google_auth.switch_account_button":"Сменить аккаунт","error.GOOGLE_DRIVE_NOT_CONFIGURED":"Интеграция с Google Диском не настроена."},gde={bg:ude,cs:cde,de:fde,fr:dde,it:hde,pl:pde,ru:mde},XR=navigator.language&&navigator.language.split(/[-_]/)[0],JR=W4(),vde=document.getElementById("root"),ZR=nB.createRoot(vde);JR&&JR.name==="ie"?ZR.render(O.jsx("p",{children:"Topola Genealogy Viewer does not support Internet Explorer. Please try a different (modern) browser."})):ZR.render(O.jsx(Lz,{locale:XR,messages:gde[XR],children:O.jsxs(WZ,{children:[O.jsx("style",{children:GZ}),O.jsx(a$,{children:O.jsx(lde,{})})]})}));export{Sf as _,LW as a,mi as c,wn as g,T7 as t,_de as z}; diff --git a/assets/index.es-CVPd7of-.js b/assets/index.es-C84gT_zF.js similarity index 99% rename from assets/index.es-CVPd7of-.js rename to assets/index.es-C84gT_zF.js index 2f70ee0..3f62e92 100644 --- a/assets/index.es-CVPd7of-.js +++ b/assets/index.es-C84gT_zF.js @@ -1,4 +1,4 @@ -import{c as Ma,t as Ul,g as Qu}from"./index-Cf_PPE1y.js";var on={},un={},lr,ln;function Z(){if(ln)return lr;ln=1;var n=function(e){return e&&e.Math===Math&&e};return lr=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof Ma=="object"&&Ma)||n(typeof lr=="object"&&lr)||function(){return this}()||Function("return this")(),lr}var Qr={},Zr,hn;function ee(){return hn||(hn=1,Zr=function(n){try{return!!n()}catch{return!0}}),Zr}var Jr,fn;function Ee(){if(fn)return Jr;fn=1;var n=ee();return Jr=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Jr}var et,cn;function Ar(){if(cn)return et;cn=1;var n=ee();return et=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),et}var rt,vn;function se(){if(vn)return rt;vn=1;var n=Ar(),e=Function.prototype.call;return rt=n?e.bind(e):function(){return e.apply(e,arguments)},rt}var tt={},gn;function Gl(){if(gn)return tt;gn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return tt.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,tt}var it,dn;function ka(){return dn||(dn=1,it=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),it}var at,pn;function re(){if(pn)return at;pn=1;var n=Ar(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return at=n?t:function(i){return function(){return r.apply(i,arguments)}},at}var nt,yn;function Ze(){if(yn)return nt;yn=1;var n=re(),e=n({}.toString),r=n("".slice);return nt=function(t){return r(e(t),8,-1)},nt}var st,mn;function Zu(){if(mn)return st;mn=1;var n=re(),e=ee(),r=Ze(),t=Object,i=n("".split);return st=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,st}var ot,bn;function Je(){return bn||(bn=1,ot=function(n){return n==null}),ot}var ut,xn;function Re(){if(xn)return ut;xn=1;var n=Je(),e=TypeError;return ut=function(r){if(n(r))throw new e("Can't call method on "+r);return r},ut}var lt,On;function cr(){if(On)return lt;On=1;var n=Zu(),e=Re();return lt=function(r){return n(e(r))},lt}var ht,Tn;function te(){if(Tn)return ht;Tn=1;var n=typeof document=="object"&&document.all;return ht=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ht}var ft,Sn;function Ce(){if(Sn)return ft;Sn=1;var n=te();return ft=function(e){return typeof e=="object"?e!==null:n(e)},ft}var ct,En;function er(){if(En)return ct;En=1;var n=Z(),e=te(),r=function(t){return e(t)?t:void 0};return ct=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},ct}var vt,Rn;function Ir(){if(Rn)return vt;Rn=1;var n=re();return vt=n({}.isPrototypeOf),vt}var gt,Cn;function vr(){if(Cn)return gt;Cn=1;var n=Z(),e=n.navigator,r=e&&e.userAgent;return gt=r?String(r):"",gt}var dt,wn;function ja(){if(wn)return dt;wn=1;var n=Z(),e=vr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),dt=o,dt}var pt,Pn;function Ju(){if(Pn)return pt;Pn=1;var n=ja(),e=ee(),r=Z(),t=r.String;return pt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),pt}var yt,An;function el(){if(An)return yt;An=1;var n=Ju();return yt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yt}var mt,In;function rl(){if(In)return mt;In=1;var n=er(),e=te(),r=Ir(),t=el(),i=Object;return mt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},mt}var bt,Nn;function Nr(){if(Nn)return bt;Nn=1;var n=String;return bt=function(e){try{return n(e)}catch{return"Object"}},bt}var xt,_n;function Be(){if(_n)return xt;_n=1;var n=te(),e=Nr(),r=TypeError;return xt=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},xt}var Ot,Mn;function ar(){if(Mn)return Ot;Mn=1;var n=Be(),e=Je();return Ot=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Ot}var Tt,qn;function $l(){if(qn)return Tt;qn=1;var n=se(),e=te(),r=Ce(),t=TypeError;return Tt=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},Tt}var St={exports:{}},Et,Dn;function Me(){return Dn||(Dn=1,Et=!1),Et}var Rt,Vn;function Ba(){if(Vn)return Rt;Vn=1;var n=Z(),e=Object.defineProperty;return Rt=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Rt}var Ln;function Fa(){if(Ln)return St.exports;Ln=1;var n=Me(),e=Z(),r=Ba(),t="__core-js_shared__",i=St.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.41.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),St.exports}var Ct,kn;function Ua(){if(kn)return Ct;kn=1;var n=Fa();return Ct=function(e,r){return n[e]||(n[e]=r||{})},Ct}var wt,jn;function _r(){if(jn)return wt;jn=1;var n=Re(),e=Object;return wt=function(r){return e(n(r))},wt}var Pt,Bn;function we(){if(Bn)return Pt;Bn=1;var n=re(),e=_r(),r=n({}.hasOwnProperty);return Pt=Object.hasOwn||function(i,a){return r(e(i),a)},Pt}var At,Fn;function tl(){if(Fn)return At;Fn=1;var n=re(),e=0,r=Math.random(),t=n(1 .toString);return At=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},At}var It,Un;function ne(){if(Un)return It;Un=1;var n=Z(),e=Ua(),r=we(),t=tl(),i=Ju(),a=el(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return It=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},It}var Nt,Gn;function zl(){if(Gn)return Nt;Gn=1;var n=se(),e=Ce(),r=rl(),t=ar(),i=$l(),a=ne(),s=TypeError,o=a("toPrimitive");return Nt=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},Nt}var _t,$n;function il(){if($n)return _t;$n=1;var n=zl(),e=rl();return _t=function(r){var t=n(r,"string");return e(t)?t:t+""},_t}var Mt,zn;function Mr(){if(zn)return Mt;zn=1;var n=Z(),e=Ce(),r=n.document,t=e(r)&&e(r.createElement);return Mt=function(i){return t?r.createElement(i):{}},Mt}var qt,Hn;function al(){if(Hn)return qt;Hn=1;var n=Ee(),e=ee(),r=Mr();return qt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),qt}var Wn;function qr(){if(Wn)return Qr;Wn=1;var n=Ee(),e=se(),r=Gl(),t=ka(),i=cr(),a=il(),s=we(),o=al(),u=Object.getOwnPropertyDescriptor;return Qr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Qr}var Dt={},Vt,Yn;function nl(){if(Yn)return Vt;Yn=1;var n=Ee(),e=ee();return Vt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Vt}var Lt,Xn;function ue(){if(Xn)return Lt;Xn=1;var n=Ce(),e=String,r=TypeError;return Lt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},Lt}var Kn;function He(){if(Kn)return Dt;Kn=1;var n=Ee(),e=al(),r=nl(),t=ue(),i=il(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Dt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Dt}var kt,Qn;function gr(){if(Qn)return kt;Qn=1;var n=Ee(),e=He(),r=ka();return kt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},kt}var jt={exports:{}},Bt,Zn;function Dr(){if(Zn)return Bt;Zn=1;var n=Ee(),e=we(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Bt={EXISTS:i,PROPER:a,CONFIGURABLE:s},Bt}var Ft,Jn;function Ga(){if(Jn)return Ft;Jn=1;var n=re(),e=te(),r=Fa(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ft=r.inspectSource,Ft}var Ut,es;function Hl(){if(es)return Ut;es=1;var n=Z(),e=te(),r=n.WeakMap;return Ut=e(r)&&/native code/.test(String(r)),Ut}var Gt,rs;function $a(){if(rs)return Gt;rs=1;var n=Ua(),e=tl(),r=n("keys");return Gt=function(t){return r[t]||(r[t]=e(t))},Gt}var $t,ts;function za(){return ts||(ts=1,$t={}),$t}var zt,is;function Vr(){if(is)return zt;is=1;var n=Hl(),e=Z(),r=Ce(),t=gr(),i=we(),a=Fa(),s=$a(),o=za(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return zt={set:c,get:v,has:f,enforce:g,getterFor:d},zt}var as;function sl(){if(as)return jt.exports;as=1;var n=re(),e=ee(),r=te(),t=we(),i=Ee(),a=Dr().CONFIGURABLE,s=Ga(),o=Vr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=jt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),jt.exports}var Ht,ns;function rr(){if(ns)return Ht;ns=1;var n=te(),e=He(),r=sl(),t=Ba();return Ht=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},Ht}var Wt={},Yt,ss;function Wl(){if(ss)return Yt;ss=1;var n=Math.ceil,e=Math.floor;return Yt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Yt}var Xt,os;function Lr(){if(os)return Xt;os=1;var n=Wl();return Xt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Xt}var Kt,us;function Yl(){if(us)return Kt;us=1;var n=Lr(),e=Math.max,r=Math.min;return Kt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Kt}var Qt,ls;function nr(){if(ls)return Qt;ls=1;var n=Lr(),e=Math.min;return Qt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Qt}var Zt,hs;function Ha(){if(hs)return Zt;hs=1;var n=nr();return Zt=function(e){return n(e.length)},Zt}var Jt,fs;function ol(){if(fs)return Jt;fs=1;var n=cr(),e=Yl(),r=Ha(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return Jt={includes:t(!0),indexOf:t(!1)},Jt}var ei,cs;function ul(){if(cs)return ei;cs=1;var n=re(),e=we(),r=cr(),t=ol().indexOf,i=za(),a=n([].push);return ei=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ei}var ri,vs;function Wa(){return vs||(vs=1,ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ri}var gs;function Xl(){if(gs)return Wt;gs=1;var n=ul(),e=Wa(),r=e.concat("length","prototype");return Wt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Wt}var ti={},ds;function Kl(){return ds||(ds=1,ti.f=Object.getOwnPropertySymbols),ti}var ii,ps;function Ql(){if(ps)return ii;ps=1;var n=er(),e=re(),r=Xl(),t=Kl(),i=ue(),a=e([].concat);return ii=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ii}var ai,ys;function Zl(){if(ys)return ai;ys=1;var n=we(),e=Ql(),r=qr(),t=He();return ai=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h_;_++)if(P=R(f[_]),P&&s(v,P))return P;return new c(!1)}E=o(f,O)}for(M=m?f.next:E.next;!(w=e(M,E)).done;){try{P=R(w.value)}catch(A){l(E,"throw",A)}if(typeof P=="object"&&P&&s(v,P))return P}return new c(!1)},zi}var Hi,oo;function bh(){if(oo)return Hi;oo=1;var n=ne(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return Hi=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},Hi}var Wi,uo;function xl(){if(uo)return Wi;uo=1;var n=dr(),e=bh(),r=pr().CONSTRUCTOR;return Wi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Wi}var lo;function xh(){if(lo)return eo;lo=1;var n=le(),e=se(),r=Be(),t=yr(),i=Ka(),a=bl(),s=xl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),eo}var ho={},fo;function Oh(){if(fo)return ho;fo=1;var n=le(),e=Me(),r=pr().CONSTRUCTOR,t=dr(),i=er(),a=te(),s=rr(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return ho}var co={},vo;function Th(){if(vo)return co;vo=1;var n=le(),e=se(),r=Be(),t=yr(),i=Ka(),a=bl(),s=xl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),co}var go={},po;function Sh(){if(po)return go;po=1;var n=le(),e=yr(),r=pr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),go}var yo={},Yi,mo;function Eh(){if(mo)return Yi;mo=1;var n=ue(),e=Ce(),r=yr();return Yi=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Yi}var bo;function Rh(){if(bo)return yo;bo=1;var n=le(),e=er(),r=Me(),t=dr(),i=pr().CONSTRUCTOR,a=Eh(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),yo}var xo;function Ch(){return xo||(xo=1,dh(),xh(),Oh(),Th(),Sh(),Rh()),on}Ch();function Oo(n,e,r,t,i,a,s){try{var o=n[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(t,i)}function je(n){return function(){var e=this,r=arguments;return new Promise(function(t,i){var a=n.apply(e,r);function s(u){Oo(a,t,i,s,o,"next",u)}function o(u){Oo(a,t,i,s,o,"throw",u)}s(void 0)})}}var To={},So={},Xi,Eo;function qe(){if(Eo)return Xi;Eo=1;var n=Ya(),e=String;return Xi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Xi}var Ki,Ro;function Ol(){if(Ro)return Ki;Ro=1;var n=ue();return Ki=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Ki}var Qi,Co;function Tl(){if(Co)return Qi;Co=1;var n=ee(),e=Z(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Qi={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Qi}var Zi={},Ji,wo;function wh(){if(wo)return Ji;wo=1;var n=ul(),e=Wa();return Ji=Object.keys||function(t){return n(t,e)},Ji}var Po;function Ph(){if(Po)return Zi;Po=1;var n=Ee(),e=nl(),r=He(),t=ue(),i=cr(),a=wh();return Zi.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},Zi}var ea,Ao;function Fr(){if(Ao)return ea;Ao=1;var n=ue(),e=Ph(),r=Wa(),t=za(),i=gl(),a=Mr(),s=$a(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ea=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ea}var ra,Io;function Ah(){if(Io)return ra;Io=1;var n=ee(),e=Z(),r=e.RegExp;return ra=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(` +import{c as Ma,t as Ul,g as Qu}from"./index-CNK-MD2z.js";var on={},un={},lr,ln;function Z(){if(ln)return lr;ln=1;var n=function(e){return e&&e.Math===Math&&e};return lr=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof Ma=="object"&&Ma)||n(typeof lr=="object"&&lr)||function(){return this}()||Function("return this")(),lr}var Qr={},Zr,hn;function ee(){return hn||(hn=1,Zr=function(n){try{return!!n()}catch{return!0}}),Zr}var Jr,fn;function Ee(){if(fn)return Jr;fn=1;var n=ee();return Jr=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Jr}var et,cn;function Ar(){if(cn)return et;cn=1;var n=ee();return et=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),et}var rt,vn;function se(){if(vn)return rt;vn=1;var n=Ar(),e=Function.prototype.call;return rt=n?e.bind(e):function(){return e.apply(e,arguments)},rt}var tt={},gn;function Gl(){if(gn)return tt;gn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return tt.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,tt}var it,dn;function ka(){return dn||(dn=1,it=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),it}var at,pn;function re(){if(pn)return at;pn=1;var n=Ar(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return at=n?t:function(i){return function(){return r.apply(i,arguments)}},at}var nt,yn;function Ze(){if(yn)return nt;yn=1;var n=re(),e=n({}.toString),r=n("".slice);return nt=function(t){return r(e(t),8,-1)},nt}var st,mn;function Zu(){if(mn)return st;mn=1;var n=re(),e=ee(),r=Ze(),t=Object,i=n("".split);return st=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,st}var ot,bn;function Je(){return bn||(bn=1,ot=function(n){return n==null}),ot}var ut,xn;function Re(){if(xn)return ut;xn=1;var n=Je(),e=TypeError;return ut=function(r){if(n(r))throw new e("Can't call method on "+r);return r},ut}var lt,On;function cr(){if(On)return lt;On=1;var n=Zu(),e=Re();return lt=function(r){return n(e(r))},lt}var ht,Tn;function te(){if(Tn)return ht;Tn=1;var n=typeof document=="object"&&document.all;return ht=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ht}var ft,Sn;function Ce(){if(Sn)return ft;Sn=1;var n=te();return ft=function(e){return typeof e=="object"?e!==null:n(e)},ft}var ct,En;function er(){if(En)return ct;En=1;var n=Z(),e=te(),r=function(t){return e(t)?t:void 0};return ct=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},ct}var vt,Rn;function Ir(){if(Rn)return vt;Rn=1;var n=re();return vt=n({}.isPrototypeOf),vt}var gt,Cn;function vr(){if(Cn)return gt;Cn=1;var n=Z(),e=n.navigator,r=e&&e.userAgent;return gt=r?String(r):"",gt}var dt,wn;function ja(){if(wn)return dt;wn=1;var n=Z(),e=vr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),dt=o,dt}var pt,Pn;function Ju(){if(Pn)return pt;Pn=1;var n=ja(),e=ee(),r=Z(),t=r.String;return pt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),pt}var yt,An;function el(){if(An)return yt;An=1;var n=Ju();return yt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yt}var mt,In;function rl(){if(In)return mt;In=1;var n=er(),e=te(),r=Ir(),t=el(),i=Object;return mt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},mt}var bt,Nn;function Nr(){if(Nn)return bt;Nn=1;var n=String;return bt=function(e){try{return n(e)}catch{return"Object"}},bt}var xt,_n;function Be(){if(_n)return xt;_n=1;var n=te(),e=Nr(),r=TypeError;return xt=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},xt}var Ot,Mn;function ar(){if(Mn)return Ot;Mn=1;var n=Be(),e=Je();return Ot=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Ot}var Tt,qn;function $l(){if(qn)return Tt;qn=1;var n=se(),e=te(),r=Ce(),t=TypeError;return Tt=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},Tt}var St={exports:{}},Et,Dn;function Me(){return Dn||(Dn=1,Et=!1),Et}var Rt,Vn;function Ba(){if(Vn)return Rt;Vn=1;var n=Z(),e=Object.defineProperty;return Rt=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Rt}var Ln;function Fa(){if(Ln)return St.exports;Ln=1;var n=Me(),e=Z(),r=Ba(),t="__core-js_shared__",i=St.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.41.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),St.exports}var Ct,kn;function Ua(){if(kn)return Ct;kn=1;var n=Fa();return Ct=function(e,r){return n[e]||(n[e]=r||{})},Ct}var wt,jn;function _r(){if(jn)return wt;jn=1;var n=Re(),e=Object;return wt=function(r){return e(n(r))},wt}var Pt,Bn;function we(){if(Bn)return Pt;Bn=1;var n=re(),e=_r(),r=n({}.hasOwnProperty);return Pt=Object.hasOwn||function(i,a){return r(e(i),a)},Pt}var At,Fn;function tl(){if(Fn)return At;Fn=1;var n=re(),e=0,r=Math.random(),t=n(1 .toString);return At=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},At}var It,Un;function ne(){if(Un)return It;Un=1;var n=Z(),e=Ua(),r=we(),t=tl(),i=Ju(),a=el(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return It=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},It}var Nt,Gn;function zl(){if(Gn)return Nt;Gn=1;var n=se(),e=Ce(),r=rl(),t=ar(),i=$l(),a=ne(),s=TypeError,o=a("toPrimitive");return Nt=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},Nt}var _t,$n;function il(){if($n)return _t;$n=1;var n=zl(),e=rl();return _t=function(r){var t=n(r,"string");return e(t)?t:t+""},_t}var Mt,zn;function Mr(){if(zn)return Mt;zn=1;var n=Z(),e=Ce(),r=n.document,t=e(r)&&e(r.createElement);return Mt=function(i){return t?r.createElement(i):{}},Mt}var qt,Hn;function al(){if(Hn)return qt;Hn=1;var n=Ee(),e=ee(),r=Mr();return qt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),qt}var Wn;function qr(){if(Wn)return Qr;Wn=1;var n=Ee(),e=se(),r=Gl(),t=ka(),i=cr(),a=il(),s=we(),o=al(),u=Object.getOwnPropertyDescriptor;return Qr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Qr}var Dt={},Vt,Yn;function nl(){if(Yn)return Vt;Yn=1;var n=Ee(),e=ee();return Vt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Vt}var Lt,Xn;function ue(){if(Xn)return Lt;Xn=1;var n=Ce(),e=String,r=TypeError;return Lt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},Lt}var Kn;function He(){if(Kn)return Dt;Kn=1;var n=Ee(),e=al(),r=nl(),t=ue(),i=il(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Dt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Dt}var kt,Qn;function gr(){if(Qn)return kt;Qn=1;var n=Ee(),e=He(),r=ka();return kt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},kt}var jt={exports:{}},Bt,Zn;function Dr(){if(Zn)return Bt;Zn=1;var n=Ee(),e=we(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Bt={EXISTS:i,PROPER:a,CONFIGURABLE:s},Bt}var Ft,Jn;function Ga(){if(Jn)return Ft;Jn=1;var n=re(),e=te(),r=Fa(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ft=r.inspectSource,Ft}var Ut,es;function Hl(){if(es)return Ut;es=1;var n=Z(),e=te(),r=n.WeakMap;return Ut=e(r)&&/native code/.test(String(r)),Ut}var Gt,rs;function $a(){if(rs)return Gt;rs=1;var n=Ua(),e=tl(),r=n("keys");return Gt=function(t){return r[t]||(r[t]=e(t))},Gt}var $t,ts;function za(){return ts||(ts=1,$t={}),$t}var zt,is;function Vr(){if(is)return zt;is=1;var n=Hl(),e=Z(),r=Ce(),t=gr(),i=we(),a=Fa(),s=$a(),o=za(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return zt={set:c,get:v,has:f,enforce:g,getterFor:d},zt}var as;function sl(){if(as)return jt.exports;as=1;var n=re(),e=ee(),r=te(),t=we(),i=Ee(),a=Dr().CONFIGURABLE,s=Ga(),o=Vr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=jt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),jt.exports}var Ht,ns;function rr(){if(ns)return Ht;ns=1;var n=te(),e=He(),r=sl(),t=Ba();return Ht=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},Ht}var Wt={},Yt,ss;function Wl(){if(ss)return Yt;ss=1;var n=Math.ceil,e=Math.floor;return Yt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Yt}var Xt,os;function Lr(){if(os)return Xt;os=1;var n=Wl();return Xt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Xt}var Kt,us;function Yl(){if(us)return Kt;us=1;var n=Lr(),e=Math.max,r=Math.min;return Kt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Kt}var Qt,ls;function nr(){if(ls)return Qt;ls=1;var n=Lr(),e=Math.min;return Qt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Qt}var Zt,hs;function Ha(){if(hs)return Zt;hs=1;var n=nr();return Zt=function(e){return n(e.length)},Zt}var Jt,fs;function ol(){if(fs)return Jt;fs=1;var n=cr(),e=Yl(),r=Ha(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return Jt={includes:t(!0),indexOf:t(!1)},Jt}var ei,cs;function ul(){if(cs)return ei;cs=1;var n=re(),e=we(),r=cr(),t=ol().indexOf,i=za(),a=n([].push);return ei=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ei}var ri,vs;function Wa(){return vs||(vs=1,ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ri}var gs;function Xl(){if(gs)return Wt;gs=1;var n=ul(),e=Wa(),r=e.concat("length","prototype");return Wt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Wt}var ti={},ds;function Kl(){return ds||(ds=1,ti.f=Object.getOwnPropertySymbols),ti}var ii,ps;function Ql(){if(ps)return ii;ps=1;var n=er(),e=re(),r=Xl(),t=Kl(),i=ue(),a=e([].concat);return ii=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ii}var ai,ys;function Zl(){if(ys)return ai;ys=1;var n=we(),e=Ql(),r=qr(),t=He();return ai=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h_;_++)if(P=R(f[_]),P&&s(v,P))return P;return new c(!1)}E=o(f,O)}for(M=m?f.next:E.next;!(w=e(M,E)).done;){try{P=R(w.value)}catch(A){l(E,"throw",A)}if(typeof P=="object"&&P&&s(v,P))return P}return new c(!1)},zi}var Hi,oo;function bh(){if(oo)return Hi;oo=1;var n=ne(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return Hi=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},Hi}var Wi,uo;function xl(){if(uo)return Wi;uo=1;var n=dr(),e=bh(),r=pr().CONSTRUCTOR;return Wi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Wi}var lo;function xh(){if(lo)return eo;lo=1;var n=le(),e=se(),r=Be(),t=yr(),i=Ka(),a=bl(),s=xl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),eo}var ho={},fo;function Oh(){if(fo)return ho;fo=1;var n=le(),e=Me(),r=pr().CONSTRUCTOR,t=dr(),i=er(),a=te(),s=rr(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return ho}var co={},vo;function Th(){if(vo)return co;vo=1;var n=le(),e=se(),r=Be(),t=yr(),i=Ka(),a=bl(),s=xl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),co}var go={},po;function Sh(){if(po)return go;po=1;var n=le(),e=yr(),r=pr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),go}var yo={},Yi,mo;function Eh(){if(mo)return Yi;mo=1;var n=ue(),e=Ce(),r=yr();return Yi=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Yi}var bo;function Rh(){if(bo)return yo;bo=1;var n=le(),e=er(),r=Me(),t=dr(),i=pr().CONSTRUCTOR,a=Eh(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),yo}var xo;function Ch(){return xo||(xo=1,dh(),xh(),Oh(),Th(),Sh(),Rh()),on}Ch();function Oo(n,e,r,t,i,a,s){try{var o=n[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(t,i)}function je(n){return function(){var e=this,r=arguments;return new Promise(function(t,i){var a=n.apply(e,r);function s(u){Oo(a,t,i,s,o,"next",u)}function o(u){Oo(a,t,i,s,o,"throw",u)}s(void 0)})}}var To={},So={},Xi,Eo;function qe(){if(Eo)return Xi;Eo=1;var n=Ya(),e=String;return Xi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Xi}var Ki,Ro;function Ol(){if(Ro)return Ki;Ro=1;var n=ue();return Ki=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Ki}var Qi,Co;function Tl(){if(Co)return Qi;Co=1;var n=ee(),e=Z(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Qi={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Qi}var Zi={},Ji,wo;function wh(){if(wo)return Ji;wo=1;var n=ul(),e=Wa();return Ji=Object.keys||function(t){return n(t,e)},Ji}var Po;function Ph(){if(Po)return Zi;Po=1;var n=Ee(),e=nl(),r=He(),t=ue(),i=cr(),a=wh();return Zi.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},Zi}var ea,Ao;function Fr(){if(Ao)return ea;Ao=1;var n=ue(),e=Ph(),r=Wa(),t=za(),i=gl(),a=Mr(),s=$a(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ea=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ea}var ra,Io;function Ah(){if(Io)return ra;Io=1;var n=ee(),e=Z(),r=e.RegExp;return ra=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(` `)&&t.flags==="s")}),ra}var ta,No;function Ih(){if(No)return ta;No=1;var n=ee(),e=Z(),r=e.RegExp;return ta=n(function(){var t=r("(?b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$c")!=="bc"}),ta}var ia,_o;function Qa(){if(_o)return ia;_o=1;var n=se(),e=re(),r=qe(),t=Ol(),i=Tl(),a=Ua(),s=Fr(),o=Vr().get,u=Ah(),l=Ih(),h=a("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,v=c,f=e("".charAt),g=e("".indexOf),d=e("".replace),p=e("".slice),y=function(){var S=/a/,E=/b*/g;return n(c,S,"a"),n(c,E,"a"),S.lastIndex!==0||E.lastIndex!==0}(),m=i.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,x=y||b||m||u||l;return x&&(v=function(E){var O=this,_=o(O),V=r(E),P=_.raw,M,w,k,R,A,U,I;if(P)return P.lastIndex=O.lastIndex,M=n(v,P,V),O.lastIndex=P.lastIndex,M;var j=_.groups,N=m&&O.sticky,L=n(t,O),B=O.source,z=0,X=V;if(N&&(L=d(L,"y",""),g(L,"g")===-1&&(L+="g"),X=p(V,O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&f(V,O.lastIndex-1)!==` `)&&(B="(?: "+B+")",X=" "+X,z++),w=new RegExp("^(?:"+B+")",L)),b&&(w=new RegExp("^"+B+"$(?!\\s)",L)),y&&(k=O.lastIndex),R=n(c,N?w:O,X),N?R?(R.input=p(R.input,z),R[0]=p(R[0],z),R.index=O.lastIndex,O.lastIndex+=R[0].length):O.lastIndex=0:y&&R&&(O.lastIndex=O.global?R.index+R[0].length:k),b&&R&&R.length>1&&n(h,R[0],w,function(){for(A=1;A=f?u?"":void 0:(g=a(c,v),g<55296||g>56319||v+1===f||(d=a(c,v+1))<56320||d>57343?u?i(c,v):g:u?s(c,v,v+2):(g-55296<<10)+(d-56320)+65536)}};return na={codeAt:o(!1),charAt:o(!0)},na}var sa,Vo;function Ja(){if(Vo)return sa;Vo=1;var n=_h().charAt;return sa=function(e,r,t){return r+(t?n(e,r).length:1)},sa}var oa,Lo;function en(){if(Lo)return oa;Lo=1;var n=se(),e=ue(),r=te(),t=Ze(),i=Qa(),a=TypeError;return oa=function(s,o){var u=s.exec;if(r(u)){var l=n(u,s,o);return l!==null&&e(l),l}if(t(s)==="RegExp")return n(i,s,o);throw new a("RegExp#exec called on incompatible receiver")},oa}var ko;function Mh(){if(ko)return To;ko=1;var n=se(),e=Za(),r=ue(),t=Je(),i=nr(),a=qe(),s=Re(),o=ar(),u=Ja(),l=en();return e("match",function(h,c,v){return[function(g){var d=s(this),p=t(g)?void 0:o(g,h);return p?n(p,g,d):new RegExp(g)[h](a(d))},function(f){var g=r(this),d=a(f),p=v(c,g,d);if(p.done)return p.value;if(!g.global)return l(g,d);var y=g.unicode;g.lastIndex=0;for(var m=[],b=0,x;(x=l(g,d))!==null;){var S=a(x[0]);m[b]=S,S===""&&(g.lastIndex=u(d,i(g.lastIndex),y)),b++}return b===0?null:m}]}),To}Mh();var jo={},ua,Bo;function qh(){if(Bo)return ua;Bo=1;var n=re(),e=_r(),r=Math.floor,t=n("".charAt),i=n("".replace),a=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return ua=function(u,l,h,c,v,f){var g=h+u.length,d=c.length,p=o;return v!==void 0&&(v=e(v),p=s),i(f,p,function(y,m){var b;switch(t(m,0)){case"$":return"$";case"&":return u;case"`":return a(l,0,h);case"'":return a(l,g);case"<":b=v[a(m,1,-1)];break;default:var x=+m;if(x===0)return y;if(x>d){var S=r(x/10);return S===0?y:S<=d?c[S-1]===void 0?t(m,1):c[S-1]+t(m,1):y}b=c[x-1]}return b===void 0?"":b})},ua}var Fo;function Dh(){if(Fo)return jo;Fo=1;var n=vl(),e=se(),r=re(),t=Za(),i=ee(),a=ue(),s=te(),o=Je(),u=Lr(),l=nr(),h=qe(),c=Re(),v=Ja(),f=ar(),g=qh(),d=en(),p=ne(),y=p("replace"),m=Math.max,b=Math.min,x=r([].concat),S=r([].push),E=r("".indexOf),O=r("".slice),_=function(w){return w===void 0?w:String(w)},V=function(){return"a".replace(/./,"$0")==="$0"}(),P=function(){return/./[y]?/./[y]("a","$0")==="":!1}(),M=!i(function(){var w=/./;return w.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(w,"$")!=="7"});return t("replace",function(w,k,R){var A=P?"$":"$0";return[function(I,j){var N=c(this),L=o(I)?void 0:f(I,y);return L?e(L,I,N,j):e(k,h(N),I,j)},function(U,I){var j=a(this),N=h(U);if(typeof I=="string"&&E(I,A)===-1&&E(I,"$<")===-1){var L=R(k,j,N,I);if(L.done)return L.value}var B=s(I);B||(I=h(I));var z=j.global,X;z&&(X=j.unicode,j.lastIndex=0);for(var H=[],Q;Q=d(j,N),!(Q===null||(S(H,Q),!z));){var Fe=h(Q[0]);Fe===""&&(j.lastIndex=v(N,l(j.lastIndex),X))}for(var De="",Ae=0,de=0;de=Ae&&(De+=O(N,Ae,ye)+Ne,Ae=ye+pe.length)}return De+O(N,Ae)}]},!M||!V||P),jo}Dh();var Uo={},la,Go;function Vh(){if(Go)return la;Go=1;var n=Ce(),e=Ze(),r=ne(),t=r("match");return la=function(i){var a;return n(i)&&((a=i[t])!==void 0?!!a:e(i)==="RegExp")},la}var ha,$o;function rn(){if($o)return ha;$o=1;var n=Vh(),e=TypeError;return ha=function(r){if(n(r))throw new e("The method doesn't accept regular expressions");return r},ha}var fa,zo;function tn(){if(zo)return fa;zo=1;var n=ne(),e=n("match");return fa=function(r){var t=/./;try{"/./"[r](t)}catch{try{return t[e]=!1,"/./"[r](t)}catch{}}return!1},fa}var Ho;function Lh(){if(Ho)return Uo;Ho=1;var n=le(),e=Br(),r=qr().f,t=nr(),i=qe(),a=rn(),s=Re(),o=tn(),u=Me(),l=e("".slice),h=Math.min,c=o("startsWith"),v=!u&&!c&&!!function(){var f=r(String.prototype,"startsWith");return f&&!f.writable}();return n({target:"String",proto:!0,forced:!v&&!c},{startsWith:function(g){var d=i(s(this));a(g);var p=t(h(arguments.length>1?arguments[1]:void 0,d.length)),y=i(g);return l(d,p,p+y.length)===y}}),Uo}Lh();var ca,Wo;function kh(){if(Wo)return ca;Wo=1;var n=ne(),e=Fr(),r=He().f,t=n("unscopables"),i=Array.prototype;return i[t]===void 0&&r(i,t,{configurable:!0,value:e(null)}),ca=function(a){i[t][a]=!0},ca}var va,Yo;function jh(){if(Yo)return va;Yo=1;var n=ee();return va=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),va}var ga,Xo;function Sl(){if(Xo)return ga;Xo=1;var n=we(),e=te(),r=_r(),t=$a(),i=jh(),a=t("IE_PROTO"),s=Object,o=s.prototype;return ga=i?s.getPrototypeOf:function(u){var l=r(u);if(n(l,a))return l[a];var h=l.constructor;return e(h)&&l instanceof h?h.prototype:l instanceof s?o:null},ga}var da,Ko;function El(){if(Ko)return da;Ko=1;var n=ee(),e=te(),r=Ce(),t=Fr(),i=Sl(),a=rr(),s=ne(),o=Me(),u=s("iterator"),l=!1,h,c,v;[].keys&&(v=[].keys(),"next"in v?(c=i(i(v)),c!==Object.prototype&&(h=c)):l=!0);var f=!r(h)||n(function(){var g={};return h[u].call(g)!==g});return f?h={}:o&&(h=t(h)),e(h[u])||a(h,u,function(){return this}),da={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:l},da}var pa,Qo;function Bh(){if(Qo)return pa;Qo=1;var n=El().IteratorPrototype,e=Fr(),r=ka(),t=jr(),i=mr(),a=function(){return this};return pa=function(s,o,u,l){var h=o+" Iterator";return s.prototype=e(n,{next:r(+!l,u)}),t(s,h,!1,!0),i[h]=a,s},pa}var ya,Zo;function Fh(){if(Zo)return ya;Zo=1;var n=le(),e=se(),r=Me(),t=Dr(),i=te(),a=Bh(),s=Sl(),o=fl(),u=jr(),l=gr(),h=rr(),c=ne(),v=mr(),f=El(),g=t.PROPER,d=t.CONFIGURABLE,p=f.IteratorPrototype,y=f.BUGGY_SAFARI_ITERATORS,m=c("iterator"),b="keys",x="values",S="entries",E=function(){return this};return ya=function(O,_,V,P,M,w,k){a(V,_,P);var R=function(H){if(H===M&&N)return N;if(!y&&H&&H in I)return I[H];switch(H){case b:return function(){return new V(this,H)};case x:return function(){return new V(this,H)};case S:return function(){return new V(this,H)}}return function(){return new V(this)}},A=_+" Iterator",U=!1,I=O.prototype,j=I[m]||I["@@iterator"]||M&&I[M],N=!y&&j||R(M),L=_==="Array"&&I.entries||j,B,z,X;if(L&&(B=s(L.call(new O)),B!==Object.prototype&&B.next&&(!r&&s(B)!==p&&(o?o(B,p):i(B[m])||h(B,m,E)),u(B,A,!0,!0),r&&(v[A]=E))),g&&M===x&&j&&j.name!==x&&(!r&&d?l(I,"name",x):(U=!0,N=function(){return e(j,this)})),M)if(z={values:R(x),keys:w?N:R(b),entries:R(S)},k)for(X in z)(y||U||!(X in I))&&h(I,X,z[X]);else n({target:_,proto:!0,forced:y||U},z);return(!r||k)&&I[m]!==N&&h(I,m,N,{name:M}),v[_]=N,z},ya}var ma,Jo;function Uh(){return Jo||(Jo=1,ma=function(n,e){return{value:n,done:e}}),ma}var ba,eu;function Rl(){if(eu)return ba;eu=1;var n=cr(),e=kh(),r=mr(),t=Vr(),i=He().f,a=Fh(),s=Uh(),o=Me(),u=Ee(),l="Array Iterator",h=t.set,c=t.getterFor(l);ba=a(Array,"Array",function(f,g){h(this,{type:l,target:n(f),index:0,kind:g})},function(){var f=c(this),g=f.target,d=f.index++;if(!g||d>=g.length)return f.target=null,s(void 0,!0);switch(f.kind){case"keys":return s(d,!1);case"values":return s(g[d],!1)}return s([d,g[d]],!1)},"values");var v=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&v.name!=="values")try{i(v,"name",{value:"values"})}catch{}return ba}Rl();var ru={},xa,tu;function Gh(){return tu||(tu=1,xa={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}),xa}var Oa,iu;function $h(){if(iu)return Oa;iu=1;var n=Mr(),e=n("span").classList,r=e&&e.constructor&&e.constructor.prototype;return Oa=r===Object.prototype?void 0:r,Oa}var au;function zh(){if(au)return ru;au=1;var n=Z(),e=Gh(),r=$h(),t=Rl(),i=gr(),a=jr(),s=ne(),o=s("iterator"),u=t.values,l=function(c,v){if(c){if(c[o]!==u)try{i(c,o,u)}catch{c[o]=u}if(a(c,v,!0),e[v]){for(var f in t)if(c[f]!==t[f])try{i(c,f,t[f])}catch{c[f]=t[f]}}}};for(var h in e)l(n[h]&&n[h].prototype,h);return l(r,"DOMTokenList"),ru}zh();function an(n,e,r){return(e=Ul(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var nu={},Ta,su;function Hh(){if(su)return Ta;su=1;var n=Be(),e=_r(),r=Zu(),t=Ha(),i=TypeError,a="Reduce of empty array with no initial value",s=function(o){return function(u,l,h,c){var v=e(u),f=r(v),g=t(v);if(n(l),g===0&&h<2)throw new i(a);var d=o?g-1:0,p=o?-1:1;if(h<2)for(;;){if(d in f){c=f[d],d+=p;break}if(d+=p,o?d<0:g<=d)throw new i(a)}for(;o?d>=0:g>d;d+=p)d in f&&(c=l(c,f[d],d,v));return c}};return Ta={left:s(!1),right:s(!0)},Ta}var Sa,ou;function Cl(){if(ou)return Sa;ou=1;var n=ee();return Sa=function(e,r){var t=[][e];return!!t&&n(function(){t.call(null,r||function(){return 1},1)})},Sa}var uu;function Wh(){if(uu)return nu;uu=1;var n=le(),e=Hh().left,r=Cl(),t=ja(),i=kr(),a=!i&&t>79&&t<83,s=a||!r("reduce");return n({target:"Array",proto:!0,forced:s},{reduce:function(u){var l=arguments.length;return e(this,u,l,l>1?arguments[1]:void 0)}}),nu}Wh();var lu={},hu;function Yh(){if(hu)return lu;hu=1;var n=le(),e=Br(),r=qr().f,t=nr(),i=qe(),a=rn(),s=Re(),o=tn(),u=Me(),l=e("".slice),h=Math.min,c=o("endsWith"),v=!u&&!c&&!!function(){var f=r(String.prototype,"endsWith");return f&&!f.writable}();return n({target:"String",proto:!0,forced:!v&&!c},{endsWith:function(g){var d=i(s(this));a(g);var p=arguments.length>1?arguments[1]:void 0,y=d.length,m=p===void 0?y:h(t(p),y),b=i(g);return l(d,m-b.length,m)===b}}),lu}Yh();var fu={},cu;function Xh(){if(cu)return fu;cu=1;var n=se(),e=re(),r=Za(),t=ue(),i=Je(),a=Re(),s=cl(),o=Ja(),u=nr(),l=qe(),h=ar(),c=en(),v=Tl(),f=ee(),g=v.UNSUPPORTED_Y,d=4294967295,p=Math.min,y=e([].push),m=e("".slice),b=!f(function(){var S=/(?:)/,E=S.exec;S.exec=function(){return E.apply(this,arguments)};var O="ab".split(S);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),x="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return r("split",function(S,E,O){var _="0".split(void 0,0).length?function(V,P){return V===void 0&&P===0?[]:n(E,this,V,P)}:E;return[function(P,M){var w=a(this),k=i(P)?void 0:h(P,S);return k?n(k,P,w,M):n(_,l(w),P,M)},function(V,P){var M=t(this),w=l(V);if(!x){var k=O(_,M,w,P,_!==E);if(k.done)return k.value}var R=s(M,RegExp),A=M.unicode,U=(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")+(g?"g":"y"),I=new R(g?"^(?:"+M.source+")":M,U),j=P===void 0?d:P>>>0;if(j===0)return[];if(w.length===0)return c(I,w)===null?[w]:[];for(var N=0,L=0,B=[];L"u"?Ma:window,r=["moz","webkit"],t="AnimationFrame",i=e["request"+t],a=e["cancel"+t]||e["cancelRequest"+t],s=0;!i&&s3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l "+d.toRGB()+" -> "+d.toHex());g.appendChild(p),g.appendChild(y),f.appendChild(g)}catch{}return f}}),Pa}var nf=af();const qa=Qu(nf);var Ou={},Tu;function sf(){if(Tu)return Ou;Tu=1;var n=le(),e=Br(),r=ol().indexOf,t=Cl(),i=e([].indexOf),a=!!i&&1/i([1],1,-0)<0,s=a||!t("indexOf");return n({target:"Array",proto:!0,forced:s},{indexOf:function(u){var l=arguments.length>1?arguments[1]:void 0;return a?i(this,u,l)||0:r(this,u,l)}}),Ou}sf();var Su={},Eu;function of(){if(Eu)return Su;Eu=1;var n=le(),e=re(),r=rn(),t=Re(),i=qe(),a=tn(),s=e("".indexOf);return n({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~s(i(t(this)),i(r(u)),arguments.length>1?arguments[1]:void 0)}}),Su}of();var Ru={},Aa,Cu;function uf(){if(Cu)return Aa;Cu=1;var n=Ze();return Aa=Array.isArray||function(r){return n(r)==="Array"},Aa}var wu;function lf(){if(wu)return Ru;wu=1;var n=le(),e=re(),r=uf(),t=e([].reverse),i=[1,2];return n({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),t(this)}}),Ru}lf();/*! ***************************************************************************** diff --git a/assets/jspdf.es.min-CaL9kIto.js b/assets/jspdf.es.min-DBgo2d8h.js similarity index 99% rename from assets/jspdf.es.min-CaL9kIto.js rename to assets/jspdf.es.min-DBgo2d8h.js index 76699dd..3f08523 100644 --- a/assets/jspdf.es.min-CaL9kIto.js +++ b/assets/jspdf.es.min-DBgo2d8h.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.es-CVPd7of-.js","./index-Cf_PPE1y.js","./index-Bg8H0aKE.css"])))=>i.map(i=>d[i]); -var Jh=Object.defineProperty;var $h=(n,e,t)=>e in n?Jh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var xe=(n,e,t)=>$h(n,typeof e!="symbol"?e+"":e,t);import{_ as Se,z as Po,a as so}from"./index-Cf_PPE1y.js";function Kh(n){if(Array.isArray(n))return n}function Xh(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i,o,s,f,u=[],c=!0,d=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(c=(i=s.call(t)).done)&&(u.push(i.value),u.length!==e);c=!0);}catch(m){d=!0,o=m}finally{try{if(!c&&t.return!=null&&(f=t.return(),Object(f)!==f))return}finally{if(d)throw o}}return u}}function wl(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=Array(e);ti.map(i=>d[i]); +var Jh=Object.defineProperty;var $h=(n,e,t)=>e in n?Jh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var xe=(n,e,t)=>$h(n,typeof e!="symbol"?e+"":e,t);import{_ as Se,z as Po,a as so}from"./index-CNK-MD2z.js";function Kh(n){if(Array.isArray(n))return n}function Xh(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i,o,s,f,u=[],c=!0,d=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(c=(i=s.call(t)).done)&&(u.push(i.value),u.length!==e);c=!0);}catch(m){d=!0,o=m}finally{try{if(!c&&t.return!=null&&(f=t.return(),Object(f)!==f))return}finally{if(d)throw o}}return u}}function wl(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,i=Array(e);t{const n=new Uint8Array(4),e=new Uint32Array(n.buffer);return!((e[0]=1)&n[0])})(),oo={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Mo{constructor(e=nc,t={}){xe(this,"buffer");xe(this,"byteLength");xe(this,"byteOffset");xe(this,"length");xe(this,"offset");xe(this,"lastWrittenByte");xe(this,"littleEndian");xe(this,"_data");xe(this,"_mark");xe(this,"_marks");let i=!1;typeof e=="number"?e=new ArrayBuffer(e):(i=!0,this.lastWrittenByte=e.byteLength);const o=t.offset?t.offset>>>0:0,s=e.byteLength-o;let f=o;(ArrayBuffer.isView(e)||e instanceof Mo)&&(e.byteLength!==e.buffer.byteLength&&(f=e.byteOffset+o),e=e.buffer),i?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=e,this.length=s,this.byteLength=s,this.byteOffset=f,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,f,s),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(e===void 0)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const i=(this.offset+e)*2,o=new Uint8Array(i);o.set(new Uint8Array(this.buffer)),this.buffer=o.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const i=oo[t].BYTES_PER_ELEMENT*e,o=this.byteOffset+this.offset,s=this.buffer.slice(o,o+i);if(this.littleEndian===rc&&t!=="uint8"&&t!=="int8"){const u=new Uint8Array(this.buffer.slice(o,o+i));u.reverse();const c=new oo[t](u.buffer);return this.offset+=i,c.reverse(),c}const f=new oo[t](s);return this.offset+=i,f}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let i=0;ithis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Zi(n){let e=n.length;for(;--e>=0;)n[e]=0}const ic=3,ac=258,ku=29,sc=256,oc=sc+1+ku,Pu=30,lc=512,uc=new Array((oc+2)*2);Zi(uc);const hc=new Array(Pu*2);Zi(hc);const cc=new Array(lc);Zi(cc);const fc=new Array(ac-ic+1);Zi(fc);const dc=new Array(ku);Zi(dc);const pc=new Array(Pu);Zi(pc);const gc=(n,e,t,i)=>{let o=n&65535|0,s=n>>>16&65535|0,f=0;for(;t!==0;){f=t>2e3?2e3:t,t-=f;do o=o+e[i++]|0,s=s+o|0;while(--f);o%=65521,s%=65521}return o|s<<16|0};var Io=gc;const mc=()=>{let n,e=[];for(var t=0;t<256;t++){n=t;for(var i=0;i<8;i++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return e},vc=new Uint32Array(mc()),bc=(n,e,t,i)=>{const o=vc,s=i+t;n^=-1;for(let f=i;f>>8^o[(n^e[f])&255];return n^-1};var hr=bc,Co={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Iu={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const wc=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var yc=function(n){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)wc(t,i)&&(n[i]=t[i])}}return n},xc=n=>{let e=0;for(let i=0,o=n.length;i=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Aa[254]=Aa[254]=1;var _c=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let e,t,i,o,s,f=n.length,u=0;for(o=0;o>>6,e[s++]=128|t&63):t<65536?(e[s++]=224|t>>>12,e[s++]=128|t>>>6&63,e[s++]=128|t&63):(e[s++]=240|t>>>18,e[s++]=128|t>>>12&63,e[s++]=128|t>>>6&63,e[s++]=128|t&63);return e};const Ac=(n,e)=>{if(e<65534&&n.subarray&&Fu)return String.fromCharCode.apply(null,n.length===e?n:n.subarray(0,e));let t="";for(let i=0;i{const t=e||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,e));let i,o;const s=new Array(t*2);for(o=0,i=0;i4){s[o++]=65533,i+=u-1;continue}for(f&=u===2?31:u===3?15:7;u>1&&i1){s[o++]=65533;continue}f<65536?s[o++]=f:(f-=65536,s[o++]=55296|f>>10&1023,s[o++]=56320|f&1023)}return Ac(s,o)},Lc=(n,e)=>{e=e||n.length,e>n.length&&(e=n.length);let t=e-1;for(;t>=0&&(n[t]&192)===128;)t--;return t<0||t===0?e:t+Aa[n[t]]>e?t:e},Fo={string2buf:_c,buf2string:Nc,utf8border:Lc};function Sc(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var kc=Sc;const ss=16209,Pc=16191;var Ic=function(e,t){let i,o,s,f,u,c,d,m,A,P,p,B,O,M,S,Y,J,D,lt,yt,mt,tt,z,et;const N=e.state;i=e.next_in,z=e.input,o=i+(e.avail_in-5),s=e.next_out,et=e.output,f=s-(t-e.avail_out),u=s+(e.avail_out-257),c=N.dmax,d=N.wsize,m=N.whave,A=N.wnext,P=N.window,p=N.hold,B=N.bits,O=N.lencode,M=N.distcode,S=(1<>>24,p>>>=D,B-=D,D=J>>>16&255,D===0)et[s++]=J&65535;else if(D&16){lt=J&65535,D&=15,D&&(B>>=D,B-=D),B<15&&(p+=z[i++]<>>24,p>>>=D,B-=D,D=J>>>16&255,D&16){if(yt=J&65535,D&=15,Bc){e.msg="invalid distance too far back",N.mode=ss;break t}if(p>>>=D,B-=D,D=s-f,yt>D){if(D=yt-D,D>m&&N.sane){e.msg="invalid distance too far back",N.mode=ss;break t}if(mt=0,tt=P,A===0){if(mt+=d-D,D2;)et[s++]=tt[mt++],et[s++]=tt[mt++],et[s++]=tt[mt++],lt-=3;lt&&(et[s++]=tt[mt++],lt>1&&(et[s++]=tt[mt++]))}else{mt=s-yt;do et[s++]=et[mt++],et[s++]=et[mt++],et[s++]=et[mt++],lt-=3;while(lt>2);lt&&(et[s++]=et[mt++],lt>1&&(et[s++]=et[mt++]))}}else if((D&64)===0){J=M[(J&65535)+(p&(1<>3,i-=lt,B-=lt<<3,p&=(1<{const c=u.bits;let d=0,m=0,A=0,P=0,p=0,B=0,O=0,M=0,S=0,Y=0,J,D,lt,yt,mt,tt=null,z;const et=new Uint16Array(zi+1),N=new Uint16Array(zi+1);let E=null,q,U,rt;for(d=0;d<=zi;d++)et[d]=0;for(m=0;m=1&&et[P]===0;P--);if(p>P&&(p=P),P===0)return o[s++]=1<<24|64<<16|0,o[s++]=1<<24|64<<16|0,u.bits=1,0;for(A=1;A0&&(n===Nl||P!==1))return-1;for(N[1]=0,d=1;d_l||n===Ll&&S>Al)return 1;for(;;){q=d-O,f[m]+1=z?(U=E[f[m]-z],rt=tt[f[m]-z]):(U=96,rt=0),J=1<>O)+D]=q<<24|U<<16|rt|0;while(D!==0);for(J=1<>=1;if(J!==0?(Y&=J-1,Y+=J):Y=0,m++,--et[d]===0){if(d===P)break;d=e[t+f[m]]}if(d>p&&(Y&yt)!==lt){for(O===0&&(O=p),mt+=A,B=d-O,M=1<_l||n===Ll&&S>Al)return 1;lt=Y&yt,o[lt]=p<<24|B<<16|mt-s|0}}return Y!==0&&(o[mt+Y]=d-O<<24|64<<16|0),u.bits=p,0};var _a=jc;const Bc=0,Eu=1,Ou=2,{Z_FINISH:Sl,Z_BLOCK:Mc,Z_TREES:os,Z_OK:mi,Z_STREAM_END:Rc,Z_NEED_DICT:Tc,Z_STREAM_ERROR:Hn,Z_DATA_ERROR:ju,Z_MEM_ERROR:Bu,Z_BUF_ERROR:Dc,Z_DEFLATED:kl}=Iu,As=16180,Pl=16181,Il=16182,Cl=16183,Fl=16184,El=16185,Ol=16186,jl=16187,Bl=16188,Ml=16189,ys=16190,Pr=16191,uo=16192,Rl=16193,ho=16194,Tl=16195,Dl=16196,ql=16197,Ul=16198,ls=16199,us=16200,zl=16201,Hl=16202,Wl=16203,Vl=16204,Gl=16205,co=16206,Yl=16207,Jl=16208,Be=16209,Mu=16210,Ru=16211,qc=852,Uc=592,zc=15,Hc=zc,$l=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function Wc(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const bi=n=>{if(!n)return 1;const e=n.state;return!e||e.strm!==n||e.modeRu?1:0},Tu=n=>{if(bi(n))return Hn;const e=n.state;return n.total_in=n.total_out=e.total=0,n.msg="",e.wrap&&(n.adler=e.wrap&1),e.mode=As,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(qc),e.distcode=e.distdyn=new Int32Array(Uc),e.sane=1,e.back=-1,mi},Du=n=>{if(bi(n))return Hn;const e=n.state;return e.wsize=0,e.whave=0,e.wnext=0,Tu(n)},qu=(n,e)=>{let t;if(bi(n))return Hn;const i=n.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Hn:(i.window!==null&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,Du(n))},Uu=(n,e)=>{if(!n)return Hn;const t=new Wc;n.state=t,t.strm=n,t.window=null,t.mode=As;const i=qu(n,e);return i!==mi&&(n.state=null),i},Vc=n=>Uu(n,Hc);let Kl=!0,fo,po;const Gc=n=>{if(Kl){fo=new Int32Array(512),po=new Int32Array(32);let e=0;for(;e<144;)n.lens[e++]=8;for(;e<256;)n.lens[e++]=9;for(;e<280;)n.lens[e++]=7;for(;e<288;)n.lens[e++]=8;for(_a(Eu,n.lens,0,288,fo,0,n.work,{bits:9}),e=0;e<32;)n.lens[e++]=5;_a(Ou,n.lens,0,32,po,0,n.work,{bits:5}),Kl=!1}n.lencode=fo,n.lenbits=9,n.distcode=po,n.distbits=5},zu=(n,e,t,i)=>{let o;const s=n.state;return s.window===null&&(s.wsize=1<=s.wsize?(s.window.set(e.subarray(t-s.wsize,t),0),s.wnext=0,s.whave=s.wsize):(o=s.wsize-s.wnext,o>i&&(o=i),s.window.set(e.subarray(t-i,t-i+o),s.wnext),i-=o,i?(s.window.set(e.subarray(t-i,t),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave{let t,i,o,s,f,u,c,d,m,A,P,p,B,O,M=0,S,Y,J,D,lt,yt,mt,tt;const z=new Uint8Array(4);let et,N;const E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(bi(n)||!n.output||!n.input&&n.avail_in!==0)return Hn;t=n.state,t.mode===Pr&&(t.mode=uo),f=n.next_out,o=n.output,c=n.avail_out,s=n.next_in,i=n.input,u=n.avail_in,d=t.hold,m=t.bits,A=u,P=c,tt=mi;t:for(;;)switch(t.mode){case As:if(t.wrap===0){t.mode=uo;break}for(;m<16;){if(u===0)break t;u--,d+=i[s++]<>>8&255,t.check=hr(t.check,z,2,0),d=0,m=0,t.mode=Pl;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((d&255)<<8)+(d>>8))%31){n.msg="incorrect header check",t.mode=Be;break}if((d&15)!==kl){n.msg="unknown compression method",t.mode=Be;break}if(d>>>=4,m-=4,mt=(d&15)+8,t.wbits===0&&(t.wbits=mt),mt>15||mt>t.wbits){n.msg="invalid window size",t.mode=Be;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,t.check=hr(t.check,z,2,0)),d=0,m=0,t.mode=Il;case Il:for(;m<32;){if(u===0)break t;u--,d+=i[s++]<>>8&255,z[2]=d>>>16&255,z[3]=d>>>24&255,t.check=hr(t.check,z,4,0)),d=0,m=0,t.mode=Cl;case Cl:for(;m<16;){if(u===0)break t;u--,d+=i[s++]<>8),t.flags&512&&t.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,t.check=hr(t.check,z,2,0)),d=0,m=0,t.mode=Fl;case Fl:if(t.flags&1024){for(;m<16;){if(u===0)break t;u--,d+=i[s++]<>>8&255,t.check=hr(t.check,z,2,0)),d=0,m=0}else t.head&&(t.head.extra=null);t.mode=El;case El:if(t.flags&1024&&(p=t.length,p>u&&(p=u),p&&(t.head&&(mt=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(s,s+p),mt)),t.flags&512&&t.wrap&4&&(t.check=hr(t.check,i,p,s)),u-=p,s+=p,t.length-=p),t.length))break t;t.length=0,t.mode=Ol;case Ol:if(t.flags&2048){if(u===0)break t;p=0;do mt=i[s+p++],t.head&&mt&&t.length<65536&&(t.head.name+=String.fromCharCode(mt));while(mt&&p>9&1,t.head.done=!0),n.adler=t.check=0,t.mode=Pr;break;case Ml:for(;m<32;){if(u===0)break t;u--,d+=i[s++]<>>=m&7,m-=m&7,t.mode=co;break}for(;m<3;){if(u===0)break t;u--,d+=i[s++]<>>=1,m-=1,d&3){case 0:t.mode=Rl;break;case 1:if(Gc(t),t.mode=ls,e===os){d>>>=2,m-=2;break t}break;case 2:t.mode=Dl;break;case 3:n.msg="invalid block type",t.mode=Be}d>>>=2,m-=2;break;case Rl:for(d>>>=m&7,m-=m&7;m<32;){if(u===0)break t;u--,d+=i[s++]<>>16^65535)){n.msg="invalid stored block lengths",t.mode=Be;break}if(t.length=d&65535,d=0,m=0,t.mode=ho,e===os)break t;case ho:t.mode=Tl;case Tl:if(p=t.length,p){if(p>u&&(p=u),p>c&&(p=c),p===0)break t;o.set(i.subarray(s,s+p),f),u-=p,s+=p,c-=p,f+=p,t.length-=p;break}t.mode=Pr;break;case Dl:for(;m<14;){if(u===0)break t;u--,d+=i[s++]<>>=5,m-=5,t.ndist=(d&31)+1,d>>>=5,m-=5,t.ncode=(d&15)+4,d>>>=4,m-=4,t.nlen>286||t.ndist>30){n.msg="too many length or distance symbols",t.mode=Be;break}t.have=0,t.mode=ql;case ql:for(;t.have>>=3,m-=3}for(;t.have<19;)t.lens[E[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,et={bits:t.lenbits},tt=_a(Bc,t.lens,0,19,t.lencode,0,t.work,et),t.lenbits=et.bits,tt){n.msg="invalid code lengths set",t.mode=Be;break}t.have=0,t.mode=Ul;case Ul:for(;t.have>>24,Y=M>>>16&255,J=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>>=S,m-=S,t.lens[t.have++]=J;else{if(J===16){for(N=S+2;m>>=S,m-=S,t.have===0){n.msg="invalid bit length repeat",t.mode=Be;break}mt=t.lens[t.have-1],p=3+(d&3),d>>>=2,m-=2}else if(J===17){for(N=S+3;m>>=S,m-=S,mt=0,p=3+(d&7),d>>>=3,m-=3}else{for(N=S+7;m>>=S,m-=S,mt=0,p=11+(d&127),d>>>=7,m-=7}if(t.have+p>t.nlen+t.ndist){n.msg="invalid bit length repeat",t.mode=Be;break}for(;p--;)t.lens[t.have++]=mt}}if(t.mode===Be)break;if(t.lens[256]===0){n.msg="invalid code -- missing end-of-block",t.mode=Be;break}if(t.lenbits=9,et={bits:t.lenbits},tt=_a(Eu,t.lens,0,t.nlen,t.lencode,0,t.work,et),t.lenbits=et.bits,tt){n.msg="invalid literal/lengths set",t.mode=Be;break}if(t.distbits=6,t.distcode=t.distdyn,et={bits:t.distbits},tt=_a(Ou,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,et),t.distbits=et.bits,tt){n.msg="invalid distances set",t.mode=Be;break}if(t.mode=ls,e===os)break t;case ls:t.mode=us;case us:if(u>=6&&c>=258){n.next_out=f,n.avail_out=c,n.next_in=s,n.avail_in=u,t.hold=d,t.bits=m,Ic(n,P),f=n.next_out,o=n.output,c=n.avail_out,s=n.next_in,i=n.input,u=n.avail_in,d=t.hold,m=t.bits,t.mode===Pr&&(t.back=-1);break}for(t.back=0;M=t.lencode[d&(1<>>24,Y=M>>>16&255,J=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>D)],S=M>>>24,Y=M>>>16&255,J=M&65535,!(D+S<=m);){if(u===0)break t;u--,d+=i[s++]<>>=D,m-=D,t.back+=D}if(d>>>=S,m-=S,t.back+=S,t.length=J,Y===0){t.mode=Gl;break}if(Y&32){t.back=-1,t.mode=Pr;break}if(Y&64){n.msg="invalid literal/length code",t.mode=Be;break}t.extra=Y&15,t.mode=zl;case zl:if(t.extra){for(N=t.extra;m>>=t.extra,m-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=Hl;case Hl:for(;M=t.distcode[d&(1<>>24,Y=M>>>16&255,J=M&65535,!(S<=m);){if(u===0)break t;u--,d+=i[s++]<>D)],S=M>>>24,Y=M>>>16&255,J=M&65535,!(D+S<=m);){if(u===0)break t;u--,d+=i[s++]<>>=D,m-=D,t.back+=D}if(d>>>=S,m-=S,t.back+=S,Y&64){n.msg="invalid distance code",t.mode=Be;break}t.offset=J,t.extra=Y&15,t.mode=Wl;case Wl:if(t.extra){for(N=t.extra;m>>=t.extra,m-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){n.msg="invalid distance too far back",t.mode=Be;break}t.mode=Vl;case Vl:if(c===0)break t;if(p=P-c,t.offset>p){if(p=t.offset-p,p>t.whave&&t.sane){n.msg="invalid distance too far back",t.mode=Be;break}p>t.wnext?(p-=t.wnext,B=t.wsize-p):B=t.wnext-p,p>t.length&&(p=t.length),O=t.window}else O=o,B=f-t.offset,p=t.length;p>c&&(p=c),c-=p,t.length-=p;do o[f++]=O[B++];while(--p);t.length===0&&(t.mode=us);break;case Gl:if(c===0)break t;o[f++]=t.length,c--,t.mode=us;break;case co:if(t.wrap){for(;m<32;){if(u===0)break t;u--,d|=i[s++]<{if(bi(n))return Hn;let e=n.state;return e.window&&(e.window=null),n.state=null,mi},$c=(n,e)=>{if(bi(n))return Hn;const t=n.state;return(t.wrap&2)===0?Hn:(t.head=e,e.done=!1,mi)},Kc=(n,e)=>{const t=e.length;let i,o,s;return bi(n)||(i=n.state,i.wrap!==0&&i.mode!==ys)?Hn:i.mode===ys&&(o=1,o=Io(o,e,t,0),o!==i.check)?ju:(s=zu(n,e,t,t),s?(i.mode=Mu,Bu):(i.havedict=1,mi))};var Xc=Du,Zc=qu,Qc=Tu,tf=Vc,ef=Uu,nf=Yc,rf=Jc,af=$c,sf=Kc,of="pako inflate (from Nodeca project)",Ir={inflateReset:Xc,inflateReset2:Zc,inflateResetKeep:Qc,inflateInit:tf,inflateInit2:ef,inflate:nf,inflateEnd:rf,inflateGetHeader:af,inflateSetDictionary:sf,inflateInfo:of};function lf(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var uf=lf;const Hu=Object.prototype.toString,{Z_NO_FLUSH:hf,Z_FINISH:cf,Z_OK:Na,Z_STREAM_END:go,Z_NEED_DICT:mo,Z_STREAM_ERROR:ff,Z_DATA_ERROR:Xl,Z_MEM_ERROR:df}=Iu;function La(n){this.options=Cu.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(n&&n.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new kc,this.strm.avail_out=0;let t=Ir.inflateInit2(this.strm,e.windowBits);if(t!==Na)throw new Error(Co[t]);if(this.header=new uf,Ir.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Fo.string2buf(e.dictionary):Hu.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=Ir.inflateSetDictionary(this.strm,e.dictionary),t!==Na)))throw new Error(Co[t])}La.prototype.push=function(n,e){const t=this.strm,i=this.options.chunkSize,o=this.options.dictionary;let s,f,u;if(this.ended)return!1;for(e===~~e?f=e:f=e===!0?cf:hf,Hu.call(n)==="[object ArrayBuffer]"?t.input=new Uint8Array(n):t.input=n,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),s=Ir.inflate(t,f),s===mo&&o&&(s=Ir.inflateSetDictionary(t,o),s===Na?s=Ir.inflate(t,f):s===Xl&&(s=mo));t.avail_in>0&&s===go&&t.state.wrap>0&&n[t.next_in]!==0;)Ir.inflateReset(t),s=Ir.inflate(t,f);switch(s){case ff:case Xl:case mo:case df:return this.onEnd(s),this.ended=!0,!1}if(u=t.avail_out,t.next_out&&(t.avail_out===0||s===go))if(this.options.to==="string"){let c=Fo.utf8border(t.output,t.next_out),d=t.next_out-c,m=Fo.buf2string(t.output,c);t.next_out=d,t.avail_out=i-d,d&&t.output.set(t.output.subarray(c,c+d),0),this.onData(m)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(s===Na&&u===0)){if(s===go)return s=Ir.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};La.prototype.onData=function(n){this.chunks.push(n)};La.prototype.onEnd=function(n){n===Na&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Cu.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function pf(n,e){const t=new La(e);if(t.push(n),t.err)throw t.msg||Co[t.err];return t.result}var gf=La,mf=pf,vf={Inflate:gf,inflate:mf};const{Inflate:bf,inflate:wf}=vf;var Zl=bf,yf=wf;const Wu=[];for(let n=0;n<256;n++){let e=n;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;Wu[n]=e}const Ql=4294967295;function xf(n,e,t){let i=n;for(let o=0;o>>8;return i}function _f(n,e){return(xf(Ql,n,e)^Ql)>>>0}function tu(n,e,t){const i=n.readUint32(),o=_f(new Uint8Array(n.buffer,n.byteOffset+n.offset-e-4,e),e);if(o!==i)throw new Error(`CRC mismatch for chunk ${t}. Expected ${i}, found ${o}`)}function Vu(n,e,t){for(let i=0;i>1)&255}else{for(;s>1)&255;for(;s>1)&255}}function $u(n,e,t,i,o){let s=0;if(t.length===0){for(;s=t||yt>=i))for(let mt=0;mt>8&255}const Cf=new Uint16Array([255]),Ff=new Uint8Array(Cf.buffer),Ef=Ff[0]===255,Of=new Uint8Array(0);function eu(n){const{data:e,width:t,height:i,channels:o,depth:s}=n,f=Math.ceil(s/8)*o,u=Math.ceil(s/8*o*t),c=new Uint8Array(i*u);let d=Of,m=0,A,P;for(let p=0;p>8&255}const ps=Uint8Array.of(137,80,78,71,13,10,26,10);function nu(n){if(!Bf(n.readBytes(ps.length)))throw new Error("wrong PNG signature")}function Bf(n){if(n.length79)throw new Error("keyword length must be between 1 and 79")}const Df=/^[\u0000-\u00FF]*$/;function qf(n){if(!Df.test(n))throw new Error("invalid latin1 text")}function Uf(n,e,t){const i=Xu(e);n[i]=zf(e,t-i.length-1)}function Xu(n){for(n.mark();n.readByte()!==Rf;);const e=n.offset;n.reset();const t=Ku.decode(n.readBytes(e-n.offset-1));return n.skip(1),Tf(t),t}function zf(n,e){return Ku.decode(n.readBytes(e))}const Bn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},vo={UNKNOWN:-1,DEFLATE:0},ru={UNKNOWN:-1,ADAPTIVE:0},bo={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},hs={NONE:0,BACKGROUND:1,PREVIOUS:2},wo={SOURCE:0,OVER:1};class Hf extends Mo{constructor(t,i={}){super(t);xe(this,"_checkCrc");xe(this,"_inflator");xe(this,"_png");xe(this,"_apng");xe(this,"_end");xe(this,"_hasPalette");xe(this,"_palette");xe(this,"_hasTransparency");xe(this,"_transparency");xe(this,"_compressionMethod");xe(this,"_filterMethod");xe(this,"_interlaceMethod");xe(this,"_colorType");xe(this,"_isAnimated");xe(this,"_numberOfFrames");xe(this,"_numberOfPlays");xe(this,"_frames");xe(this,"_writingDataChunks");const{checkCrc:o=!1}=i;this._checkCrc=o,this._inflator=new Zl,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=vo.UNKNOWN,this._filterMethod=ru.UNKNOWN,this._interlaceMethod=bo.UNKNOWN,this._colorType=Bn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(nu(this);!this._end;){const t=this.readUint32(),i=this.readChars(4);this.decodeChunk(t,i)}return this.decodeImage(),this._png}decodeApng(){for(nu(this);!this._end;){const t=this.readUint32(),i=this.readChars(4);this.decodeApngChunk(t,i)}return this.decodeApngImage(),this._apng}decodeChunk(t,i){const o=this.offset;switch(i){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case Mf:Uf(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?tu(this,t+4,i):this.skip(4)}decodeApngChunk(t,i){const o=this.offset;switch(i!=="fdAT"&&i!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),i){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,i),this.offset=o+t;break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${i}`);this._checkCrc?tu(this,t+4,i):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=Wf(this.readUint8());const i=this.readUint8();this._colorType=i;let o;switch(i){case Bn.GREYSCALE:o=1;break;case Bn.TRUECOLOUR:o=3;break;case Bn.INDEXED_COLOUR:o=1;break;case Bn.GREYSCALE_ALPHA:o=2;break;case Bn.TRUECOLOUR_ALPHA:o=4;break;case Bn.UNKNOWN:default:throw new Error(`Unknown color type: ${i}`)}if(this._png.channels=o,this._compressionMethod=this.readUint8(),this._compressionMethod!==vo.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const i=t/3;this._hasPalette=!0;const o=[];this._palette=o;for(let s=0;sthis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let i=0;ithis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let i=0;for(;i{const c=((f+i.yOffset)*this._png.width+i.xOffset+u)*this._png.channels,d=(f*i.width+u)*this._png.channels;return{index:c,frameIndex:d}};switch(i.blendOp){case wo.SOURCE:for(let f=0;f=200&&e.status<=299}function cs(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(e)}}var di=$t.saveAs||((typeof window>"u"?"undefined":Se(window))!=="object"||window!==$t?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,t){var i=$t.URL||$t.webkitURL,o=document.createElement("a");e=e||n.name||"download",o.download=e,o.rel="noopener",typeof n=="string"?(o.href=n,o.origin!==location.origin?au(o.href)?xo(n,e,t):cs(o,o.target="_blank"):cs(o)):(o.href=i.createObjectURL(n),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){cs(o)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,t){if(e=e||n.name||"download",typeof n=="string")if(au(n))xo(n,e,t);else{var i=document.createElement("a");i.href=n,i.target="_blank",setTimeout(function(){cs(i)})}else navigator.msSaveOrOpenBlob(function(o,s){return s===void 0?s={autoBom:!1}:Se(s)!=="object"&&(Le.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(n,t),e)}:function(n,e,t,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof n=="string")return xo(n,e,t);var o=n.type==="application/octet-stream",s=/constructor/i.test($t.HTMLElement)||$t.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||o&&s)&&(typeof FileReader>"u"?"undefined":Se(FileReader))==="object"){var u=new FileReader;u.onloadend=function(){var m=u.result;m=f?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=m:location=m,i=null},u.readAsDataURL(n)}else{var c=$t.URL||$t.webkitURL,d=c.createObjectURL(n);i?i.location=d:location.href=d,i=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov @@ -130,7 +130,7 @@ T* `):l.join(` Tj * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * ==================================================================== - */function d1(){var n,e=this.internal.__metadata__.metadata,t=unescape(encodeURIComponent(e));n=this.internal.__metadata__.rawXml?t:''+t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+"",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+n.length+" >>"),this.internal.write("stream"),this.internal.write(n),this.internal.write("endstream"),this.internal.write("endobj")}function p1(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(n){var e,t,i,o,s,f,u,c,d,m=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new c,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new f,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new f,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new A(this),e=this.internal.f2,t=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,f=this.internal.Point,u=this.internal.Rectangle,c=this.internal.Matrix,d=new m}]);var A=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var j=x;Object.defineProperty(this,"pdf",{get:function(){return j}});var R=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return R},set:function(k){R=!!k}});var V=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return V},set:function(k){V=!!k}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(k){isNaN(k)||($=k)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(k){isNaN(k)||(Q=k)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(k){var Lt;typeof k=="number"?Lt=[k,k,k,k]:((Lt=new Array(4))[0]=k[0],Lt[1]=k.length>=2?k[1]:Lt[0],Lt[2]=k.length>=3?k[2]:Lt[0],Lt[3]=k.length>=4?k[3]:Lt[1]),d.margin=Lt}});var it=!1;Object.defineProperty(this,"autoPaging",{get:function(){return it},set:function(k){it=k}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(k){at=k}});var dt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return dt},set:function(k){dt=k}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(k){k instanceof m&&(d=k)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(k){d.path=k}});var _t=[];Object.defineProperty(this,"ctxStack",{get:function(){return _t},set:function(k){_t=k}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(k){var Lt;Lt=P(k),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(k){var Lt=P(k);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(k){["butt","round","square"].indexOf(k)!==-1&&(this.ctx.lineCap=k,this.pdf.setLineCap(k))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(k){isNaN(k)||(this.ctx.lineWidth=k,this.pdf.setLineWidth(k))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(k){["bevel","round","miter"].indexOf(k)!==-1&&(this.ctx.lineJoin=k,this.pdf.setLineJoin(k))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(k){isNaN(k)||(this.ctx.miterLimit=k,this.pdf.setMiterLimit(k))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(k){this.ctx.textBaseline=k}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(k){["right","end","center","left","start"].indexOf(k)!==-1&&(this.ctx.textAlign=k)}});var St=null,kt=null,zt=null;Object.defineProperty(this,"fontFaces",{get:function(){return zt},set:function(k){St=null,kt=null,zt=k}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(k){var Lt;if(this.ctx.font=k,(Lt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(k))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],bt=Lt[4];Lt[5];var Wt=Lt[6],It=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(bt)[2];bt=Math.floor(It==="px"?parseFloat(bt)*this.pdf.internal.scaleFactor:It==="em"?parseFloat(bt)*this.pdf.getFontSize():parseFloat(bt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(bt);var Ut=function(Rt){var ze,ge,se=[],oe=Rt.trim();if(oe==="")return Lo;if(oe in fu)return[fu[oe]];for(;oe!=="";){switch(ge=null,ze=(oe=pu(oe)).charAt(0)){case'"':case"'":ge=o1(oe.substring(1),ze);break;default:ge=l1(oe)}if(ge===null||(se.push(ge[0]),(oe=pu(ge[1]))!==""&&oe.charAt(0)!==","))return Lo;oe=oe.replace(/^,/,"")}return se}(Wt);if(this.fontFaces){var Dt=function(Rt,ze){var ge=Rt.getFontList(),se=JSON.stringify(ge);if(St===null||kt!==se){var oe=function(Oe){var qt=[];return Object.keys(Oe).forEach(function(ke){Oe[ke].forEach(function(Yt){var Qt=null;switch(Yt){case"bold":Qt={family:ke,weight:"bold"};break;case"italic":Qt={family:ke,style:"italic"};break;case"bolditalic":Qt={family:ke,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:ke}}Qt!==null&&(Qt.ref={name:ke,style:Yt},qt.push(Qt))})}),qt}(ge);St=function(Oe){for(var qt={},ke=0;ke=700||ae==="bold")&&(Zt="bold"),ae==="italic"&&(Zt+="italic"),Zt.length===0&&(Zt="normal");for(var ce="",he={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Bt=0;Bt=2*Math.PI&&(V=0,$=2*Math.PI),this.path.push({type:"arc",x,y:j,radius:R,startAngle:V,endAngle:$,counterclockwise:Q})},A.prototype.arcTo=function(x,j,R,V,$){throw new Error("arcTo not implemented.")},A.prototype.rect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,j),this.lineTo(x+R,j),this.lineTo(x+R,j+V),this.lineTo(x,j+V),this.lineTo(x,j),this.lineTo(x+R,j),this.lineTo(x,j)},A.prototype.fillRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,j,R,V),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin)}},A.prototype.strokeRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");B.call(this)||(this.beginPath(),this.rect(x,j,R,V),this.stroke())},A.prototype.clearRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,j,R,V))},A.prototype.save=function(x){x=typeof x!="boolean"||x;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};A.prototype.drawImage=function(x,j,R,V,$,Q,it,at,dt){var _t=this.pdf.getImageProperties(x),St=1,kt=1,zt=1,k=1;V!==void 0&&at!==void 0&&(zt=at/V,k=dt/$,St=_t.width/V*at/V,kt=_t.height/$*dt/$),Q===void 0&&(Q=j,it=R,j=0,R=0),V!==void 0&&at===void 0&&(at=V,dt=$),V===void 0&&at===void 0&&(at=_t.width,dt=_t.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new c,bt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new u(Q-j*zt,it-R*k,V*St,$*kt));if(this.autoPaging){for(var Wt,It=M.call(this,bt),Ut=[],Dt=0;Dtve||Ztbt||It0)){for(;dt>=0;dt--)if($[dt-1].close!==!0&&$[dt-1].begin!==!0){$[dt-1].deltas.push(R),$[dt-1].abs.push(at);break}}break;case"bct":R=[at.x1-Q[it-1].x,at.y1-Q[it-1].y,at.x2-Q[it-1].x,at.y2-Q[it-1].y,at.x-Q[it-1].x,at.y-Q[it-1].y],$[$.length-1].deltas.push(R);break;case"qct":var _t=Q[it-1].x+2/3*(at.x1-Q[it-1].x),St=Q[it-1].y+2/3*(at.y1-Q[it-1].y),kt=at.x+2/3*(at.x1-at.x),zt=at.y+2/3*(at.y1-at.y),k=at.x,Lt=at.y;R=[_t-Q[it-1].x,St-Q[it-1].y,kt-Q[it-1].x,zt-Q[it-1].y,k-Q[it-1].x,Lt-Q[it-1].y],$[$.length-1].deltas.push(R);break;case"arc":$.push({deltas:[],abs:[],arc:!0}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(at)}}V=j?null:x==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht<$.length;Ht++)if($[Ht].arc)for(var bt=$[Ht].abs,Wt=0;Wt=.01&&(V=this.pdf.internal.getFontSize(),this.pdf.setFontSize(V*x.scale),$=this.lineWidth,this.lineWidth=$*x.scale);var ne=this.autoPaging!=="text";if(ne||Bt.y+Bt.h<=Dt){if(ne||Bt.y>=It&&Bt.x<=ue){var Rt=ne?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||ue-Bt.x)[0],ze=Y([JSON.parse(JSON.stringify(kt))],this.posX+this.margin[3],-ce+It+this.ctx.prevPageLastElemOffset)[0],ge=ne&&(Wt>Ht||Wt=.01&&(this.pdf.setFontSize(V),this.lineWidth=$)}}else x.scale>=.01&&(V=this.pdf.internal.getFontSize(),this.pdf.setFontSize(V*x.scale),$=this.lineWidth,this.lineWidth=$*x.scale),this.pdf.text(x.text,dt.x+this.posX,dt.y+this.posY,{angle:x.angle,align:j,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(V),this.lineWidth=$)},q=function(x,j,R,V){R=R||0,V=V||0,this.pdf.internal.out(t(x+R)+" "+i(j+V)+" l")},U=function(x,j,R){return this.pdf.lines(x,j,R,null,null)},rt=function(x,j,R,V,$,Q,it,at){this.pdf.internal.out([e(o(R+x)),e(s(V+j)),e(o($+x)),e(s(Q+j)),e(o(it+x)),e(s(at+j)),"c"].join(" "))},ct=function(x,j,R,V){for(var $=2*Math.PI,Q=Math.PI/2;j>R;)j-=$;var it=Math.abs(R-j);it<$&&V&&(it=$-it);for(var at=[],dt=V?-1:1,_t=j;it>1e-5;){var St=_t+dt*Math.min(it,Q);at.push(pt.call(this,x,_t,St)),it-=Math.abs(St-_t),_t=St}return at},pt=function(x,j,R){var V=(R-j)/2,$=x*Math.cos(V),Q=x*Math.sin(V),it=$,at=-Q,dt=it*it+at*at,_t=dt+it*$+at*Q,St=4/3*(Math.sqrt(2*dt*_t)-_t)/(it*Q-at*$),kt=it-St*at,zt=at+St*it,k=kt,Lt=-zt,ae=V+j,Ht=Math.cos(ae),bt=Math.sin(ae);return{x1:x*Math.cos(j),y1:x*Math.sin(j),x2:kt*Ht-zt*bt,y2:kt*bt+zt*Ht,x3:k*Ht-Lt*bt,y3:k*bt+Lt*Ht,x4:x*Math.cos(R),y4:x*Math.sin(R)}},nt=function(x){return 180*x/Math.PI},ft=function(x,j,R,V,$,Q){var it=x+.5*(R-x),at=j+.5*(V-j),dt=$+.5*(R-$),_t=Q+.5*(V-Q),St=Math.min(x,$,it,dt),kt=Math.max(x,$,it,dt),zt=Math.min(j,Q,at,_t),k=Math.max(j,Q,at,_t);return new u(St,zt,kt-St,k-zt)},At=function(x,j,R,V,$,Q,it,at){var dt,_t,St,kt,zt,k,Lt,ae,Ht,bt,Wt,It,Ut,Dt,ve=R-x,ue=V-j,Zt=$-R,ce=Q-V,he=it-$,Bt=at-Q;for(_t=0;_t<41;_t++)Ht=(Lt=(St=x+(dt=_t/40)*ve)+dt*((zt=R+dt*Zt)-St))+dt*(zt+dt*($+dt*he-zt)-Lt),bt=(ae=(kt=j+dt*ue)+dt*((k=V+dt*ce)-kt))+dt*(k+dt*(Q+dt*Bt-k)-ae),_t==0?(Wt=Ht,It=bt,Ut=Ht,Dt=bt):(Wt=Math.min(Wt,Ht),It=Math.min(It,bt),Ut=Math.max(Ut,Ht),Dt=Math.max(Dt,bt));return new u(Math.round(Wt),Math.round(It),Math.round(Ut-Wt),Math.round(Dt-It))},xt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,j,R=(x=this.ctx.lineDash,j=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:j}));this.prevLineDash!==R&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=R)}}})(Tt.API),function(n){var e=function(f){var u,c,d,m,A,P,p,B,O,M;for(c=[],d=0,m=(f+=u="\0\0\0\0".slice(f.length%4||4)).length;m>d;d+=4)(A=(f.charCodeAt(d)<<24)+(f.charCodeAt(d+1)<<16)+(f.charCodeAt(d+2)<<8)+f.charCodeAt(d+3))!==0?(P=(A=((A=((A=((A=(A-(M=A%85))/85)-(O=A%85))/85)-(B=A%85))/85)-(p=A%85))/85)%85,c.push(P+33,p+33,B+33,O+33,M+33)):c.push(122);return function(S,Y){for(var J=Y;J>0;J--)S.pop()}(c,u.length),String.fromCharCode.apply(String,c)+"~>"},t=function(f){var u,c,d,m,A,P=String,p="length",B=255,O="charCodeAt",M="slice",S="replace";for(f[M](-2),f=f[M](0,-2)[S](/\s/g,"")[S]("z","!!!!!"),d=[],m=0,A=(f+=u="uuuuu"[M](f[p]%5||5))[p];A>m;m+=5)c=52200625*(f[O](m)-33)+614125*(f[O](m+1)-33)+7225*(f[O](m+2)-33)+85*(f[O](m+3)-33)+(f[O](m+4)-33),d.push(B&c>>24,B&c>>16,B&c>>8,B&c);return function(Y,J){for(var D=J;D>0;D--)Y.pop()}(d,u[p]),P.fromCharCode.apply(P,d)},i=function(f){return f.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">"},o=function(f){var u=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((f=f.replace(/\s/g,"")).indexOf(">")!==-1&&(f=f.substr(0,f.indexOf(">"))),f.length%2&&(f+="0"),u.test(f)===!1)return"";for(var c="",d=0;dimport("./html2canvas.esm-CBrSDip1.js"),[],import.meta.url)).catch(function(u){return Promise.reject(new Error("Could not load html2canvas: "+u))}).then(function(u){return u.default?u.default:u})}function t(){return($t.DOMPurify?Promise.resolve($t.DOMPurify):so(()=>import("./purify.es-BaNf_EpD.js"),[],import.meta.url)).catch(function(u){return Promise.reject(new Error("Could not load dompurify: "+u))}).then(function(u){return u.default?u.default:u})}var i=function(u){var c=Se(u);return c==="undefined"?"undefined":c==="string"||u instanceof String?"string":c==="number"||u instanceof Number?"number":c==="function"||u instanceof Function?"function":u&&u.constructor===Array?"array":u&&u.nodeType===1?"element":c==="object"?"object":"unknown"},o=function(u,c){var d=document.createElement(u);for(var m in c.className&&(d.className=c.className),c.innerHTML&&c.dompurify&&(d.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)d.style[m]=c.style[m];return d},s=function u(c,d){for(var m=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),A=c.firstChild;A;A=A.nextSibling)d!==!0&&A.nodeType===1&&A.nodeName==="SCRIPT"||m.appendChild(u(A,d));return c.nodeType===1&&(c.nodeName==="CANVAS"?(m.width=c.width,m.height=c.height,m.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(m.value=c.value),m.addEventListener("load",function(){m.scrollTop=c.scrollTop,m.scrollLeft=c.scrollLeft},!0)),m},f=function u(c){var d=Object.assign(u.convert(Promise.resolve()),JSON.parse(JSON.stringify(u.template))),m=u.convert(Promise.resolve(),d);return(m=m.setProgress(1,u,1,[u])).set(c)};(f.prototype=Object.create(Promise.prototype)).constructor=f,f.convert=function(u,c){return u.__proto__=c||f.prototype,u},f.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},f.prototype.from=function(u,c){return this.then(function(){switch(c=c||function(d){switch(i(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(u),c){case"string":return this.then(t).then(function(d){return this.set({src:o("div",{innerHTML:u,dompurify:d})})});case"element":return this.set({src:u});case"canvas":return this.set({canvas:u});case"img":return this.set({img:u});default:return this.error("Unknown source type.")}})},f.prototype.to=function(u){switch(u){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},f.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var u={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(u.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:u}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},f.prototype.toCanvas=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(e).then(function(c){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,c(this.prop.container,d)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},f.prototype.toContext2d=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(e).then(function(c){var d=this.opt.jsPDF,m=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,P=Object.assign({async:!0,allowTaint:!0,scale:A,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete P.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=m,m)for(var p=0;pO&&(B=M,M=O,O=B);else{if(u!=="l"&&u!=="landscape")throw"Invalid orientation: "+u;u="l",O>M&&(B=M,M=O,O=B)}return{width:M,height:O,unit:c,k:A,orientation:u}},n.html=function(u,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(No):null;var d=new f(c);return c.worker?d:d.from(u).doCallback()}}(Tt.API),Tt.API.addJS=function(n){var e,t,i=function(o){for(var s="",f=0;f=0&&o[d]==="\\";d--)c++;s+=c%2==0?"\\"+u:u}else s+=u}return s}(n);return this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+i+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){e!==void 0&&t!==void 0&&this.internal.out("/Names <>")}),this},function(n){var e;n.events.push(["postPutResources",function(){var t=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=t.outline.render().split(/\r\n/),s=0;s> endobj")}var p=t.internal.newObject();for(t.internal.write("<< /Names [ "),s=0;s>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+p+" 0 R"),t.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(i,o,s){var f={title:o,options:s,children:[]};return i==null&&(i=this.root),i.children.push(f),f},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(i){i.id=t.internal.newObjectDeferred();for(var o=0;o0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},t.outline.renderItems=function(i){for(var o=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s0&&this.line("/Prev "+this.makeRef(i.children[s-1])),s0&&(this.line("/First "+this.makeRef(f.children[0])),this.line("/Last "+this.makeRef(f.children[f.children.length-1])));var u=this.count=this.count_r({count:0},f);if(u>0&&this.line("/Count "+u),f.options&&f.options.pageNumber){var c=t.internal.getPageInfo(f.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var d=0;d'+t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+"",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+n.length+" >>"),this.internal.write("stream"),this.internal.write(n),this.internal.write("endstream"),this.internal.write("endobj")}function p1(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(n){var e,t,i,o,s,f,u,c,d,m=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new c,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new f,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new f,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new A(this),e=this.internal.f2,t=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,f=this.internal.Point,u=this.internal.Rectangle,c=this.internal.Matrix,d=new m}]);var A=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var j=x;Object.defineProperty(this,"pdf",{get:function(){return j}});var R=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return R},set:function(k){R=!!k}});var V=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return V},set:function(k){V=!!k}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(k){isNaN(k)||($=k)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(k){isNaN(k)||(Q=k)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(k){var Lt;typeof k=="number"?Lt=[k,k,k,k]:((Lt=new Array(4))[0]=k[0],Lt[1]=k.length>=2?k[1]:Lt[0],Lt[2]=k.length>=3?k[2]:Lt[0],Lt[3]=k.length>=4?k[3]:Lt[1]),d.margin=Lt}});var it=!1;Object.defineProperty(this,"autoPaging",{get:function(){return it},set:function(k){it=k}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(k){at=k}});var dt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return dt},set:function(k){dt=k}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(k){k instanceof m&&(d=k)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(k){d.path=k}});var _t=[];Object.defineProperty(this,"ctxStack",{get:function(){return _t},set:function(k){_t=k}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(k){var Lt;Lt=P(k),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(k){var Lt=P(k);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(k){["butt","round","square"].indexOf(k)!==-1&&(this.ctx.lineCap=k,this.pdf.setLineCap(k))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(k){isNaN(k)||(this.ctx.lineWidth=k,this.pdf.setLineWidth(k))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(k){["bevel","round","miter"].indexOf(k)!==-1&&(this.ctx.lineJoin=k,this.pdf.setLineJoin(k))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(k){isNaN(k)||(this.ctx.miterLimit=k,this.pdf.setMiterLimit(k))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(k){this.ctx.textBaseline=k}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(k){["right","end","center","left","start"].indexOf(k)!==-1&&(this.ctx.textAlign=k)}});var St=null,kt=null,zt=null;Object.defineProperty(this,"fontFaces",{get:function(){return zt},set:function(k){St=null,kt=null,zt=k}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(k){var Lt;if(this.ctx.font=k,(Lt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(k))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],bt=Lt[4];Lt[5];var Wt=Lt[6],It=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(bt)[2];bt=Math.floor(It==="px"?parseFloat(bt)*this.pdf.internal.scaleFactor:It==="em"?parseFloat(bt)*this.pdf.getFontSize():parseFloat(bt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(bt);var Ut=function(Rt){var ze,ge,se=[],oe=Rt.trim();if(oe==="")return Lo;if(oe in fu)return[fu[oe]];for(;oe!=="";){switch(ge=null,ze=(oe=pu(oe)).charAt(0)){case'"':case"'":ge=o1(oe.substring(1),ze);break;default:ge=l1(oe)}if(ge===null||(se.push(ge[0]),(oe=pu(ge[1]))!==""&&oe.charAt(0)!==","))return Lo;oe=oe.replace(/^,/,"")}return se}(Wt);if(this.fontFaces){var Dt=function(Rt,ze){var ge=Rt.getFontList(),se=JSON.stringify(ge);if(St===null||kt!==se){var oe=function(Oe){var qt=[];return Object.keys(Oe).forEach(function(ke){Oe[ke].forEach(function(Yt){var Qt=null;switch(Yt){case"bold":Qt={family:ke,weight:"bold"};break;case"italic":Qt={family:ke,style:"italic"};break;case"bolditalic":Qt={family:ke,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:ke}}Qt!==null&&(Qt.ref={name:ke,style:Yt},qt.push(Qt))})}),qt}(ge);St=function(Oe){for(var qt={},ke=0;ke=700||ae==="bold")&&(Zt="bold"),ae==="italic"&&(Zt+="italic"),Zt.length===0&&(Zt="normal");for(var ce="",he={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Bt=0;Bt=2*Math.PI&&(V=0,$=2*Math.PI),this.path.push({type:"arc",x,y:j,radius:R,startAngle:V,endAngle:$,counterclockwise:Q})},A.prototype.arcTo=function(x,j,R,V,$){throw new Error("arcTo not implemented.")},A.prototype.rect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,j),this.lineTo(x+R,j),this.lineTo(x+R,j+V),this.lineTo(x,j+V),this.lineTo(x,j),this.lineTo(x+R,j),this.lineTo(x,j)},A.prototype.fillRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,j,R,V),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin)}},A.prototype.strokeRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");B.call(this)||(this.beginPath(),this.rect(x,j,R,V),this.stroke())},A.prototype.clearRect=function(x,j,R,V){if(isNaN(x)||isNaN(j)||isNaN(R)||isNaN(V))throw Le.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,j,R,V))},A.prototype.save=function(x){x=typeof x!="boolean"||x;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};A.prototype.drawImage=function(x,j,R,V,$,Q,it,at,dt){var _t=this.pdf.getImageProperties(x),St=1,kt=1,zt=1,k=1;V!==void 0&&at!==void 0&&(zt=at/V,k=dt/$,St=_t.width/V*at/V,kt=_t.height/$*dt/$),Q===void 0&&(Q=j,it=R,j=0,R=0),V!==void 0&&at===void 0&&(at=V,dt=$),V===void 0&&at===void 0&&(at=_t.width,dt=_t.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new c,bt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new u(Q-j*zt,it-R*k,V*St,$*kt));if(this.autoPaging){for(var Wt,It=M.call(this,bt),Ut=[],Dt=0;Dtve||Ztbt||It0)){for(;dt>=0;dt--)if($[dt-1].close!==!0&&$[dt-1].begin!==!0){$[dt-1].deltas.push(R),$[dt-1].abs.push(at);break}}break;case"bct":R=[at.x1-Q[it-1].x,at.y1-Q[it-1].y,at.x2-Q[it-1].x,at.y2-Q[it-1].y,at.x-Q[it-1].x,at.y-Q[it-1].y],$[$.length-1].deltas.push(R);break;case"qct":var _t=Q[it-1].x+2/3*(at.x1-Q[it-1].x),St=Q[it-1].y+2/3*(at.y1-Q[it-1].y),kt=at.x+2/3*(at.x1-at.x),zt=at.y+2/3*(at.y1-at.y),k=at.x,Lt=at.y;R=[_t-Q[it-1].x,St-Q[it-1].y,kt-Q[it-1].x,zt-Q[it-1].y,k-Q[it-1].x,Lt-Q[it-1].y],$[$.length-1].deltas.push(R);break;case"arc":$.push({deltas:[],abs:[],arc:!0}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(at)}}V=j?null:x==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht<$.length;Ht++)if($[Ht].arc)for(var bt=$[Ht].abs,Wt=0;Wt=.01&&(V=this.pdf.internal.getFontSize(),this.pdf.setFontSize(V*x.scale),$=this.lineWidth,this.lineWidth=$*x.scale);var ne=this.autoPaging!=="text";if(ne||Bt.y+Bt.h<=Dt){if(ne||Bt.y>=It&&Bt.x<=ue){var Rt=ne?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||ue-Bt.x)[0],ze=Y([JSON.parse(JSON.stringify(kt))],this.posX+this.margin[3],-ce+It+this.ctx.prevPageLastElemOffset)[0],ge=ne&&(Wt>Ht||Wt=.01&&(this.pdf.setFontSize(V),this.lineWidth=$)}}else x.scale>=.01&&(V=this.pdf.internal.getFontSize(),this.pdf.setFontSize(V*x.scale),$=this.lineWidth,this.lineWidth=$*x.scale),this.pdf.text(x.text,dt.x+this.posX,dt.y+this.posY,{angle:x.angle,align:j,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(V),this.lineWidth=$)},q=function(x,j,R,V){R=R||0,V=V||0,this.pdf.internal.out(t(x+R)+" "+i(j+V)+" l")},U=function(x,j,R){return this.pdf.lines(x,j,R,null,null)},rt=function(x,j,R,V,$,Q,it,at){this.pdf.internal.out([e(o(R+x)),e(s(V+j)),e(o($+x)),e(s(Q+j)),e(o(it+x)),e(s(at+j)),"c"].join(" "))},ct=function(x,j,R,V){for(var $=2*Math.PI,Q=Math.PI/2;j>R;)j-=$;var it=Math.abs(R-j);it<$&&V&&(it=$-it);for(var at=[],dt=V?-1:1,_t=j;it>1e-5;){var St=_t+dt*Math.min(it,Q);at.push(pt.call(this,x,_t,St)),it-=Math.abs(St-_t),_t=St}return at},pt=function(x,j,R){var V=(R-j)/2,$=x*Math.cos(V),Q=x*Math.sin(V),it=$,at=-Q,dt=it*it+at*at,_t=dt+it*$+at*Q,St=4/3*(Math.sqrt(2*dt*_t)-_t)/(it*Q-at*$),kt=it-St*at,zt=at+St*it,k=kt,Lt=-zt,ae=V+j,Ht=Math.cos(ae),bt=Math.sin(ae);return{x1:x*Math.cos(j),y1:x*Math.sin(j),x2:kt*Ht-zt*bt,y2:kt*bt+zt*Ht,x3:k*Ht-Lt*bt,y3:k*bt+Lt*Ht,x4:x*Math.cos(R),y4:x*Math.sin(R)}},nt=function(x){return 180*x/Math.PI},ft=function(x,j,R,V,$,Q){var it=x+.5*(R-x),at=j+.5*(V-j),dt=$+.5*(R-$),_t=Q+.5*(V-Q),St=Math.min(x,$,it,dt),kt=Math.max(x,$,it,dt),zt=Math.min(j,Q,at,_t),k=Math.max(j,Q,at,_t);return new u(St,zt,kt-St,k-zt)},At=function(x,j,R,V,$,Q,it,at){var dt,_t,St,kt,zt,k,Lt,ae,Ht,bt,Wt,It,Ut,Dt,ve=R-x,ue=V-j,Zt=$-R,ce=Q-V,he=it-$,Bt=at-Q;for(_t=0;_t<41;_t++)Ht=(Lt=(St=x+(dt=_t/40)*ve)+dt*((zt=R+dt*Zt)-St))+dt*(zt+dt*($+dt*he-zt)-Lt),bt=(ae=(kt=j+dt*ue)+dt*((k=V+dt*ce)-kt))+dt*(k+dt*(Q+dt*Bt-k)-ae),_t==0?(Wt=Ht,It=bt,Ut=Ht,Dt=bt):(Wt=Math.min(Wt,Ht),It=Math.min(It,bt),Ut=Math.max(Ut,Ht),Dt=Math.max(Dt,bt));return new u(Math.round(Wt),Math.round(It),Math.round(Ut-Wt),Math.round(Dt-It))},xt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,j,R=(x=this.ctx.lineDash,j=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:j}));this.prevLineDash!==R&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=R)}}})(Tt.API),function(n){var e=function(f){var u,c,d,m,A,P,p,B,O,M;for(c=[],d=0,m=(f+=u="\0\0\0\0".slice(f.length%4||4)).length;m>d;d+=4)(A=(f.charCodeAt(d)<<24)+(f.charCodeAt(d+1)<<16)+(f.charCodeAt(d+2)<<8)+f.charCodeAt(d+3))!==0?(P=(A=((A=((A=((A=(A-(M=A%85))/85)-(O=A%85))/85)-(B=A%85))/85)-(p=A%85))/85)%85,c.push(P+33,p+33,B+33,O+33,M+33)):c.push(122);return function(S,Y){for(var J=Y;J>0;J--)S.pop()}(c,u.length),String.fromCharCode.apply(String,c)+"~>"},t=function(f){var u,c,d,m,A,P=String,p="length",B=255,O="charCodeAt",M="slice",S="replace";for(f[M](-2),f=f[M](0,-2)[S](/\s/g,"")[S]("z","!!!!!"),d=[],m=0,A=(f+=u="uuuuu"[M](f[p]%5||5))[p];A>m;m+=5)c=52200625*(f[O](m)-33)+614125*(f[O](m+1)-33)+7225*(f[O](m+2)-33)+85*(f[O](m+3)-33)+(f[O](m+4)-33),d.push(B&c>>24,B&c>>16,B&c>>8,B&c);return function(Y,J){for(var D=J;D>0;D--)Y.pop()}(d,u[p]),P.fromCharCode.apply(P,d)},i=function(f){return f.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">"},o=function(f){var u=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((f=f.replace(/\s/g,"")).indexOf(">")!==-1&&(f=f.substr(0,f.indexOf(">"))),f.length%2&&(f+="0"),u.test(f)===!1)return"";for(var c="",d=0;dimport("./html2canvas.esm-CBrSDip1.js"),[],import.meta.url)).catch(function(u){return Promise.reject(new Error("Could not load html2canvas: "+u))}).then(function(u){return u.default?u.default:u})}function t(){return($t.DOMPurify?Promise.resolve($t.DOMPurify):so(()=>import("./purify.es-Csrj9YNg.js"),[],import.meta.url)).catch(function(u){return Promise.reject(new Error("Could not load dompurify: "+u))}).then(function(u){return u.default?u.default:u})}var i=function(u){var c=Se(u);return c==="undefined"?"undefined":c==="string"||u instanceof String?"string":c==="number"||u instanceof Number?"number":c==="function"||u instanceof Function?"function":u&&u.constructor===Array?"array":u&&u.nodeType===1?"element":c==="object"?"object":"unknown"},o=function(u,c){var d=document.createElement(u);for(var m in c.className&&(d.className=c.className),c.innerHTML&&c.dompurify&&(d.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)d.style[m]=c.style[m];return d},s=function u(c,d){for(var m=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),A=c.firstChild;A;A=A.nextSibling)d!==!0&&A.nodeType===1&&A.nodeName==="SCRIPT"||m.appendChild(u(A,d));return c.nodeType===1&&(c.nodeName==="CANVAS"?(m.width=c.width,m.height=c.height,m.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(m.value=c.value),m.addEventListener("load",function(){m.scrollTop=c.scrollTop,m.scrollLeft=c.scrollLeft},!0)),m},f=function u(c){var d=Object.assign(u.convert(Promise.resolve()),JSON.parse(JSON.stringify(u.template))),m=u.convert(Promise.resolve(),d);return(m=m.setProgress(1,u,1,[u])).set(c)};(f.prototype=Object.create(Promise.prototype)).constructor=f,f.convert=function(u,c){return u.__proto__=c||f.prototype,u},f.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},f.prototype.from=function(u,c){return this.then(function(){switch(c=c||function(d){switch(i(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(u),c){case"string":return this.then(t).then(function(d){return this.set({src:o("div",{innerHTML:u,dompurify:d})})});case"element":return this.set({src:u});case"canvas":return this.set({canvas:u});case"img":return this.set({img:u});default:return this.error("Unknown source type.")}})},f.prototype.to=function(u){switch(u){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},f.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var u={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(u.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:u}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},f.prototype.toCanvas=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(e).then(function(c){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,c(this.prop.container,d)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},f.prototype.toContext2d=function(){var u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).then(e).then(function(c){var d=this.opt.jsPDF,m=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,P=Object.assign({async:!0,allowTaint:!0,scale:A,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete P.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=m,m)for(var p=0;pO&&(B=M,M=O,O=B);else{if(u!=="l"&&u!=="landscape")throw"Invalid orientation: "+u;u="l",O>M&&(B=M,M=O,O=B)}return{width:M,height:O,unit:c,k:A,orientation:u}},n.html=function(u,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(No):null;var d=new f(c);return c.worker?d:d.from(u).doCallback()}}(Tt.API),Tt.API.addJS=function(n){var e,t,i=function(o){for(var s="",f=0;f=0&&o[d]==="\\";d--)c++;s+=c%2==0?"\\"+u:u}else s+=u}return s}(n);return this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+i+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){e!==void 0&&t!==void 0&&this.internal.out("/Names <>")}),this},function(n){var e;n.events.push(["postPutResources",function(){var t=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=t.outline.render().split(/\r\n/),s=0;s> endobj")}var p=t.internal.newObject();for(t.internal.write("<< /Names [ "),s=0;s>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+p+" 0 R"),t.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(i,o,s){var f={title:o,options:s,children:[]};return i==null&&(i=this.root),i.children.push(f),f},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(i){i.id=t.internal.newObjectDeferred();for(var o=0;o0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},t.outline.renderItems=function(i){for(var o=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s0&&this.line("/Prev "+this.makeRef(i.children[s-1])),s0&&(this.line("/First "+this.makeRef(f.children[0])),this.line("/Last "+this.makeRef(f.children[f.children.length-1])));var u=this.count=this.count_r({count:0},f);if(u>0&&this.line("/Count "+u),f.options&&f.options.pageNumber){var c=t.internal.getPageInfo(f.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var d=0;d1){U=!0,ct=void 0;var $=z*et;pt=new Uint8Array($);for(var Q=new DataView(N.buffer),it=0;it<$;it++){var at=So(Q,it,q),dt=yl(E[at],4)[3];pt[it]=dt}}else ft===0&&(ct=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:U?8:void 0,colorBytes:N,alphaBytes:pt,needSMask:U,palette:rt,mask:ct}}(s):c===2||c===4?function(tt){for(var z=tt.data,et=tt.width,N=tt.height,E=tt.channels,q=tt.depth,U=E===2?"DeviceGray":"DeviceRGB",rt=E-1,ct=et*N,pt=rt,nt=ct*pt,ft=1*ct,At=Math.ceil(nt*q/8),xt=Math.ceil(ft*q/8),x=new Uint8Array(At),j=new Uint8Array(xt),R=new DataView(z.buffer),V=new DataView(x.buffer),$=new DataView(j.buffer),Q=!1,it=0;it536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(e);try{this[n]()}catch(t){Le.log("bit decode error:"+t)}},Xn.prototype.bit1=function(){var n,e=Math.ceil(this.width/8),t=e%4;for(n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o>7-u&1];this.data[f+4*u]=c.blue,this.data[f+4*u+1]=c.green,this.data[f+4*u+2]=c.red,this.data[f+4*u+3]=255}t!==0&&(this.pos+=4-t)}},Xn.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),e=n%4,t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,o=0;o>4,c=15&s,d=this.palette[u];if(this.data[f]=d.blue,this.data[f+1]=d.green,this.data[f+2]=d.red,this.data[f+3]=255,2*o+1>=this.width)break;d=this.palette[c],this.data[f+4]=d.blue,this.data[f+4+1]=d.green,this.data[f+4+2]=d.red,this.data[f+4+3]=255}e!==0&&(this.pos+=4-e)}},Xn.prototype.bit8=function(){for(var n=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,i=0;i=0;t--){for(var i=this.bottom_up?t:this.height-1-t,o=0;o>5&e)/e*255|0,c=(s>>10&e)/e*255|0,d=s>>15?255:0,m=i*this.width*4+4*o;this.data[m]=c,this.data[m+1]=u,this.data[m+2]=f,this.data[m+3]=d}this.pos+=n}},Xn.prototype.bit16=function(){for(var n=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var o=this.bottom_up?i:this.height-1-i,s=0;s>5&t)/t*255|0,d=(f>>11)/e*255|0,m=o*this.width*4+4*s;this.data[m]=d,this.data[m+1]=c,this.data[m+2]=u,this.data[m+3]=255}this.pos+=n}},Xn.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,t=0;t=0;n--)for(var e=this.bottom_up?n:this.height-1-n,t=0;ti&&(o.push(n.slice(c,s)),u=0,c=s),u+=e[s],s++;return c!==s&&o.push(n.slice(c,s)),o},vu=function(n,e,t){t||(t={});var i,o,s,f,u,c,d,m=[],A=[m],P=t.textIndent||0,p=0,B=0,O=n.split(" "),M=ds.apply(this,[" ",t])[0];if(c=t.lineIndent===-1?O[0].length+2:t.lineIndent||0){var S=Array(c).join(" "),Y=[];O.map(function(D){(D=D.split(/\s*\n/)).length>1?Y=Y.concat(D.map(function(lt,yt){return(yt&<.length?` `:"")+lt})):Y.push(D[0])}),O=Y,c=gu.apply(this,[S,t])}for(s=0,f=O.length;se||J){if(B>e){for(u=mu.apply(this,[i,o,e-(P+p),e]),m.push(u.shift()),m=[u.pop()];u.length;)A.push([u.shift()]);B=o.slice(i.length-(m[0]?m[0].length:0)).reduce(function(D,lt){return D+lt},0)}else m=[i];A.push(m),P=B+c,p=M}else m.push(i),P+=p+B,p=M}return d=c?function(D,lt){return(lt?S:"")+D.join(" ")}:function(D){return D.join(" ")},A.map(d)},Wi.splitTextToSize=function(n,e,t){var i,o=(t=t||{}).fontSize||this.internal.getFontSize(),s=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var A=this.internal.getFont(m.fontName,m.fontStyle),P="Unicode";return A.metadata[P]?{widths:A.metadata[P].widths||{0:1},kerning:A.metadata[P].kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);i=Array.isArray(n)?n:String(n).split(/\r?\n/);var f=1*this.internal.scaleFactor*e/o;s.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/o:0,s.lineIndent=t.lineIndent;var u,c,d=[];for(u=0,c=i.length;uimport("./index.es-CVPd7of-.js"),__vite__mapDeps([0,1,2]),import.meta.url)).catch(function(P){return Promise.reject(new Error("Could not load canvg: "+P))}).then(function(P){return P.default?P.default:P}).then(function(P){return P.fromString(d,n,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(P){return P.render(m)}).then(function(){A.addImage(c.toDataURL("image/jpeg",1),e,t,i,o,f,u)})},Tt.API.putTotalPages=function(n){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var o=0;o1){for(m=0;me||J){if(B>e){for(u=mu.apply(this,[i,o,e-(P+p),e]),m.push(u.shift()),m=[u.pop()];u.length;)A.push([u.shift()]);B=o.slice(i.length-(m[0]?m[0].length:0)).reduce(function(D,lt){return D+lt},0)}else m=[i];A.push(m),P=B+c,p=M}else m.push(i),P+=p+B,p=M}return d=c?function(D,lt){return(lt?S:"")+D.join(" ")}:function(D){return D.join(" ")},A.map(d)},Wi.splitTextToSize=function(n,e,t){var i,o=(t=t||{}).fontSize||this.internal.getFontSize(),s=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var A=this.internal.getFont(m.fontName,m.fontStyle),P="Unicode";return A.metadata[P]?{widths:A.metadata[P].widths||{0:1},kerning:A.metadata[P].kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);i=Array.isArray(n)?n:String(n).split(/\r?\n/);var f=1*this.internal.scaleFactor*e/o;s.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/o:0,s.lineIndent=t.lineIndent;var u,c,d=[];for(u=0,c=i.length;uimport("./index.es-C84gT_zF.js"),__vite__mapDeps([0,1,2]),import.meta.url)).catch(function(P){return Promise.reject(new Error("Could not load canvg: "+P))}).then(function(P){return P.default?P.default:P}).then(function(P){return P.fromString(d,n,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(P){return P.render(m)}).then(function(){A.addImage(c.toDataURL("image/jpeg",1),e,t,i,o,f,u)})},Tt.API.putTotalPages=function(n){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var o=0;o1){for(m=0;m2?a-2:0),b=2;b1?l-1:0),f=1;f"u"?null:T(BigInt.prototype.toString),Et=typeof Symbol>"u"?null:T(Symbol.prototype.toString),u=T(Object.prototype.hasOwnProperty),ne=T(Object.prototype.toString),g=T(RegExp.prototype.test),de=rn(TypeError);function T(i){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),f=1;f2&&arguments[2]!==void 0?arguments[2]:ie;if(mt&&mt(i,null),!O(n))return i;let a=n.length;for(;a--;){let f=n[a];if(typeof f=="string"){const b=l(f);b!==f&&(Kt(n)||(n[a]=b),f=b)}i[f]=!0}return i}function an(i){for(let n=0;n/gm),pn=N(/\$\{[\w\W]*/gm),Tn=N(/^data-[\-\w.\u00B7-\uFFFF]+$/),dn=N(/^aria-[\-\w]+$/),bt=N(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_n=N(/^(?:\w+script|data):/i),En=N(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Dt=N(/^html$/i),An=N(/^[a-z][.\w]*(-[.\w]+)+$/i);var Rt=Object.freeze({__proto__:null,ARIA_ATTR:dn,ATTR_WHITESPACE:En,CUSTOM_ELEMENT:An,DATA_ATTR:Tn,DOCTYPE_NAME:Dt,ERB_EXPR:mn,IS_ALLOWED_URI:bt,IS_SCRIPT_OR_DATA:_n,MUSTACHE_EXPR:un,TMPLIT_EXPR:pn});const oe={element:1,text:3,progressingInstruction:7,comment:8,document:9},gn=function(){return typeof window>"u"?null:window},hn=function(n,l){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let a=null;const f="data-tt-policy-suffix";l&&l.hasAttribute(f)&&(a=l.getAttribute(f));const b="dompurify"+(a?"#"+a:"");try{return n.createPolicy(b,{createHTML(H){return H},createScriptURL(H){return H}})}catch{return console.warn("TrustedTypes policy "+b+" could not be created."),null}},Ot=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function It(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn();const n=r=>It(r);if(n.version="3.4.2",n.removed=[],!i||!i.document||i.document.nodeType!==oe.document||!i.Element)return n.isSupported=!1,n;let{document:l}=i;const a=l,f=a.currentScript,{DocumentFragment:b,HTMLTemplateElement:H,Node:Ee,Element:ze,NodeFilter:V,NamedNodeMap:Lt=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:Nt,DOMParser:Ct,trustedTypes:re}=i,$=ze.prototype,Mt=j($,"cloneNode"),wt=j($,"remove"),Pt=j($,"nextSibling"),xt=j($,"childNodes"),ae=j($,"parentNode");if(typeof H=="function"){const r=l.createElement("template");r.content&&r.content.ownerDocument&&(l=r.content.ownerDocument)}let S,q="";const{implementation:Ae,createNodeIterator:kt,createDocumentFragment:Ut,getElementsByTagName:vt}=l,{importNode:Ft}=a;let R=Ot();n.isSupported=typeof yt=="function"&&typeof ae=="function"&&Ae&&Ae.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:se,ERB_EXPR:le,TMPLIT_EXPR:ce,DATA_ATTR:Ht,ARIA_ATTR:zt,IS_SCRIPT_OR_DATA:Gt,ATTR_WHITESPACE:Ge,CUSTOM_ELEMENT:Bt}=Rt;let{IS_ALLOWED_URI:Be}=Rt,_=null;const We=s({},[...At,...xe,...ke,...Ue,...gt]);let A=null;const Ye=s({},[...ht,...ve,...St,..._e]);let m=Object.seal(X(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,fe=null;const k=Object.seal(X(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Xe=!0,ge=!0,je=!1,Ve=!0,U=!1,Z=!0,v=!1,he=!1,Se=!1,z=!1,ue=!1,me=!1,$e=!0,qe=!1;const Ke="user-content-";let Re=!0,J=!1,G={},w=null;const Oe=s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ze=null;const Je=s({},["audio","video","img","source","image","track"]);let ye=null;const Qe=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pe="http://www.w3.org/1998/Math/MathML",Te="http://www.w3.org/2000/svg",P="http://www.w3.org/1999/xhtml";let B=P,be=!1,De=null;const Wt=s({},[pe,Te,P],Pe);let Ie=s({},["mi","mo","mn","ms","mtext"]),Le=s({},["annotation-xml"]);const Yt=s({},["title","style","font","a","script"]);let Q=null;const Xt=["application/xhtml+xml","text/html"],jt="text/html";let d=null,W=null;const Vt=l.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(W&&W===e)return;(!e||typeof e!="object")&&(e={}),e=I(e),Q=Xt.indexOf(e.PARSER_MEDIA_TYPE)===-1?jt:e.PARSER_MEDIA_TYPE,d=Q==="application/xhtml+xml"?Pe:ie,_=u(e,"ALLOWED_TAGS")&&O(e.ALLOWED_TAGS)?s({},e.ALLOWED_TAGS,d):We,A=u(e,"ALLOWED_ATTR")&&O(e.ALLOWED_ATTR)?s({},e.ALLOWED_ATTR,d):Ye,De=u(e,"ALLOWED_NAMESPACES")&&O(e.ALLOWED_NAMESPACES)?s({},e.ALLOWED_NAMESPACES,Pe):Wt,ye=u(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)?s(I(Qe),e.ADD_URI_SAFE_ATTR,d):Qe,Ze=u(e,"ADD_DATA_URI_TAGS")&&O(e.ADD_DATA_URI_TAGS)?s(I(Je),e.ADD_DATA_URI_TAGS,d):Je,w=u(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)?s({},e.FORBID_CONTENTS,d):Oe,K=u(e,"FORBID_TAGS")&&O(e.FORBID_TAGS)?s({},e.FORBID_TAGS,d):I({}),fe=u(e,"FORBID_ATTR")&&O(e.FORBID_ATTR)?s({},e.FORBID_ATTR,d):I({}),G=u(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?I(e.USE_PROFILES):e.USE_PROFILES:!1,Xe=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,je=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ve=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=e.SAFE_FOR_TEMPLATES||!1,Z=e.SAFE_FOR_XML!==!1,v=e.WHOLE_DOCUMENT||!1,z=e.RETURN_DOM||!1,ue=e.RETURN_DOM_FRAGMENT||!1,me=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,$e=e.SANITIZE_DOM!==!1,qe=e.SANITIZE_NAMED_PROPS||!1,Re=e.KEEP_CONTENT!==!1,J=e.IN_PLACE||!1,Be=ln(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:bt,B=typeof e.NAMESPACE=="string"?e.NAMESPACE:P,Ie=u(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?I(e.MATHML_TEXT_INTEGRATION_POINTS):s({},["mi","mo","mn","ms","mtext"]),Le=u(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?I(e.HTML_INTEGRATION_POINTS):s({},["annotation-xml"]);const t=u(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?I(e.CUSTOM_ELEMENT_HANDLING):X(null);if(m=X(null),u(t,"tagNameCheck")&&et(t.tagNameCheck)&&(m.tagNameCheck=t.tagNameCheck),u(t,"attributeNameCheck")&&et(t.attributeNameCheck)&&(m.attributeNameCheck=t.attributeNameCheck),u(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),U&&(ge=!1),ue&&(z=!0),G&&(_=s({},gt),A=X(null),G.html===!0&&(s(_,At),s(A,ht)),G.svg===!0&&(s(_,xe),s(A,ve),s(A,_e)),G.svgFilters===!0&&(s(_,ke),s(A,ve),s(A,_e)),G.mathMl===!0&&(s(_,Ue),s(A,St),s(A,_e))),k.tagCheck=null,k.attributeCheck=null,u(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?k.tagCheck=e.ADD_TAGS:O(e.ADD_TAGS)&&(_===We&&(_=I(_)),s(_,e.ADD_TAGS,d))),u(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?k.attributeCheck=e.ADD_ATTR:O(e.ADD_ATTR)&&(A===Ye&&(A=I(A)),s(A,e.ADD_ATTR,d))),u(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)&&s(ye,e.ADD_URI_SAFE_ATTR,d),u(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)&&(w===Oe&&(w=I(w)),s(w,e.FORBID_CONTENTS,d)),u(e,"ADD_FORBID_CONTENTS")&&O(e.ADD_FORBID_CONTENTS)&&(w===Oe&&(w=I(w)),s(w,e.ADD_FORBID_CONTENTS,d)),Re&&(_["#text"]=!0),v&&s(_,["html","head","body"]),_.table&&(s(_,["tbody"]),delete K.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=e.TRUSTED_TYPES_POLICY,q=S.createHTML("")}else S===void 0&&(S=hn(re,f)),S!==null&&typeof q=="string"&&(q=S.createHTML(""));y&&y(e),W=e},tt=s({},[...xe,...ke,...cn]),nt=s({},[...Ue,...fn]),$t=function(e){let t=ae(e);(!t||!t.tagName)&&(t={namespaceURI:B,tagName:"template"});const o=ie(e.tagName),c=ie(t.tagName);return De[e.namespaceURI]?e.namespaceURI===Te?t.namespaceURI===P?o==="svg":t.namespaceURI===pe?o==="svg"&&(c==="annotation-xml"||Ie[c]):!!tt[o]:e.namespaceURI===pe?t.namespaceURI===P?o==="math":t.namespaceURI===Te?o==="math"&&Le[c]:!!nt[o]:e.namespaceURI===P?t.namespaceURI===Te&&!Le[c]||t.namespaceURI===pe&&!Ie[c]?!1:!nt[o]&&(Yt[o]||!tt[o]):!!(Q==="application/xhtml+xml"&&De[e.namespaceURI]):!1},C=function(e){te(n.removed,{element:e});try{ae(e).removeChild(e)}catch{wt(e)}},F=function(e,t){try{te(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{te(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(z||ue)try{C(t)}catch{}else try{t.setAttribute(e,"")}catch{}},ot=function(e){let t=null,o=null;if(Se)e=""+e;else{const p=Tt(e,/^[\r\n\t ]+/);o=p&&p[0]}Q==="application/xhtml+xml"&&B===P&&(e=''+e+"");const c=S?S.createHTML(e):e;if(B===P)try{t=new Ct().parseFromString(c,Q)}catch{}if(!t||!t.documentElement){t=Ae.createDocument(B,"template",null);try{t.documentElement.innerHTML=be?q:c}catch{}}const h=t.body||t.documentElement;return e&&o&&h.insertBefore(l.createTextNode(o),h.childNodes[0]||null),B===P?vt.call(t,v?"html":"body")[0]:v?t.documentElement:h},it=function(e){return kt.call(e.ownerDocument||e,e,V.SHOW_ELEMENT|V.SHOW_COMMENT|V.SHOW_TEXT|V.SHOW_PROCESSING_INSTRUCTION|V.SHOW_CDATA_SECTION,null)},Ce=function(e){return e instanceof Nt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Lt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Me=function(e){return typeof Ee=="function"&&e instanceof Ee};function x(r,e,t){ee(r,o=>{o.call(n,e,t,W)})}const rt=function(e){let t=null;if(x(R.beforeSanitizeElements,e,null),Ce(e))return C(e),!0;const o=d(e.nodeName);if(x(R.uponSanitizeElement,e,{tagName:o,allowedTags:_}),Z&&e.hasChildNodes()&&!Me(e.firstElementChild)&&g(/<[/\w!]/g,e.innerHTML)&&g(/<[/\w!]/g,e.textContent)||Z&&e.namespaceURI===P&&o==="style"&&Me(e.firstElementChild)||e.nodeType===oe.progressingInstruction||Z&&e.nodeType===oe.comment&&g(/<[/\w]/g,e.data))return C(e),!0;if(K[o]||!(k.tagCheck instanceof Function&&k.tagCheck(o))&&!_[o]){if(!K[o]&&st(o)&&(m.tagNameCheck instanceof RegExp&&g(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o)))return!1;if(Re&&!w[o]){const c=ae(e)||e.parentNode,h=xt(e)||e.childNodes;if(h&&c){const p=h.length;for(let D=p-1;D>=0;--D){const L=Mt(h[D],!0);c.insertBefore(L,Pt(e))}}}return C(e),!0}return e instanceof ze&&!$t(e)||(o==="noscript"||o==="noembed"||o==="noframes")&&g(/<\/no(script|embed|frames)/i,e.innerHTML)?(C(e),!0):(U&&e.nodeType===oe.text&&(t=e.textContent,ee([se,le,ce],c=>{t=Y(t,c," ")}),e.textContent!==t&&(te(n.removed,{element:e.cloneNode()}),e.textContent=t)),x(R.afterSanitizeElements,e,null),!1)},at=function(e,t,o){if(fe[t]||$e&&(t==="id"||t==="name")&&(o in l||o in Vt))return!1;const c=A[t]||k.attributeCheck instanceof Function&&k.attributeCheck(t,e);if(!(ge&&!fe[t]&&g(Ht,t))){if(!(Xe&&g(zt,t))){if(!c||fe[t]){if(!(st(e)&&(m.tagNameCheck instanceof RegExp&&g(m.tagNameCheck,e)||m.tagNameCheck instanceof Function&&m.tagNameCheck(e))&&(m.attributeNameCheck instanceof RegExp&&g(m.attributeNameCheck,t)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(t,e))||t==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&g(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o))))return!1}else if(!ye[t]){if(!g(Be,Y(o,Ge,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&dt(o,"data:")===0&&Ze[e])){if(!(je&&!g(Gt,Y(o,Ge,"")))){if(o)return!1}}}}}}return!0},qt=s({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),st=function(e){return!qt[ie(e)]&&g(Bt,e)},lt=function(e){x(R.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ce(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0};let c=t.length;for(;c--;){const h=t[c],{name:p,namespaceURI:D,value:L}=h,M=d(p),we=L;let E=p==="value"?we:tn(we);if(o.attrName=M,o.attrValue=E,o.keepAttr=!0,o.forceKeepAttr=void 0,x(R.uponSanitizeAttribute,e,o),E=o.attrValue,qe&&(M==="id"||M==="name")&&dt(E,Ke)!==0&&(F(p,e),E=Ke+E),Z&&g(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,E)){F(p,e);continue}if(M==="attributename"&&Tt(E,"href")){F(p,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){F(p,e);continue}if(!Ve&&g(/\/>/i,E)){F(p,e);continue}U&&ee([se,le,ce],ut=>{E=Y(E,ut," ")});const ft=d(e.nodeName);if(!at(ft,M,E)){F(p,e);continue}if(S&&typeof re=="object"&&typeof re.getAttributeType=="function"&&!D)switch(re.getAttributeType(ft,M)){case"TrustedHTML":{E=S.createHTML(E);break}case"TrustedScriptURL":{E=S.createScriptURL(E);break}}if(E!==we)try{D?e.setAttributeNS(D,p,E):e.setAttribute(p,E),Ce(e)?C(e):pt(n.removed)}catch{F(p,e)}}x(R.afterSanitizeAttributes,e,null)},ct=function(e){let t=null;const o=it(e);for(x(R.beforeSanitizeShadowDOM,e,null);t=o.nextNode();)x(R.uponSanitizeShadowNode,t,null),rt(t),lt(t),t.content instanceof b&&ct(t.content);x(R.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,o=null,c=null,h=null;if(be=!r,be&&(r=""),typeof r!="string"&&!Me(r)&&(r=sn(r),typeof r!="string"))throw de("dirty is not a string, aborting");if(!n.isSupported)return r;if(he||Ne(e),n.removed=[],typeof r=="string"&&(J=!1),J){const L=r.nodeName;if(typeof L=="string"){const M=d(L);if(!_[M]||K[M])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof Ee)t=ot(""),o=t.ownerDocument.importNode(r,!0),o.nodeType===oe.element&&o.nodeName==="BODY"||o.nodeName==="HTML"?t=o:t.appendChild(o);else{if(!z&&!U&&!v&&r.indexOf("<")===-1)return S&&me?S.createHTML(r):r;if(t=ot(r),!t)return z?null:me?q:""}t&&Se&&C(t.firstChild);const p=it(J?r:t);for(;c=p.nextNode();)rt(c),lt(c),c.content instanceof b&&ct(c.content);if(J)return r;if(z){if(U){t.normalize();let L=t.innerHTML;ee([se,le,ce],M=>{L=Y(L,M," ")}),t.innerHTML=L}if(ue)for(h=Ut.call(t.ownerDocument);t.firstChild;)h.appendChild(t.firstChild);else h=t;return(A.shadowroot||A.shadowrootmode)&&(h=Ft.call(a,h,!0)),h}let D=v?t.outerHTML:t.innerHTML;return v&&_["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&g(Dt,t.ownerDocument.doctype.name)&&(D=" -`+D),U&&ee([se,le,ce],L=>{D=Y(D,L," ")}),S&&me?S.createHTML(D):D},n.setConfig=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ne(r),he=!0},n.clearConfig=function(){W=null,he=!1},n.isValidAttribute=function(r,e,t){W||Ne({});const o=d(r),c=d(e);return at(o,c,t)},n.addHook=function(r,e){typeof e=="function"&&te(R[r],e)},n.removeHook=function(r,e){if(e!==void 0){const t=Qt(R[r],e);return t===-1?void 0:en(R[r],t,1)[0]}return pt(R[r])},n.removeHooks=function(r){R[r]=[]},n.removeAllHooks=function(){R=Ot()},n}var Sn=It();export{Sn as default}; diff --git a/assets/purify.es-Csrj9YNg.js b/assets/purify.es-Csrj9YNg.js new file mode 100644 index 0000000..1654fdc --- /dev/null +++ b/assets/purify.es-Csrj9YNg.js @@ -0,0 +1,3 @@ +/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */function Mt(n,o){(o==null||o>n.length)&&(o=n.length);for(var s=0,l=Array(o);s2?l-2:0),m=2;m1?s-1:0),u=1;u"u"?null:A(BigInt.prototype.toString),Ft=typeof Symbol>"u"?null:A(Symbol.prototype.toString),S=A(Object.prototype.hasOwnProperty),Te=A(Object.prototype.toString),b=A(RegExp.prototype.test),q=zn(TypeError);function A(n){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u2&&arguments[2]!==void 0?arguments[2]:_e;if(Pt&&Pt(n,null),!Y(o))return n;let l=o.length;for(;l--;){let u=o[l];if(typeof u=="string"){const m=s(u);m!==u&&(Cn(o)||(o[l]=m),u=m)}n[u]=!0}return n}function Hn(n){for(let o=0;o/g),Xn=R(/\${[\w\W]*/g),Vn=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),qn=R(/^aria-[\-\w]+$/),Wt=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Kn=R(/^(?:\w+script|data):/i),Zn=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Jn=R(/^html$/i),Qn=R(/^[a-z][.\w]*(-[.\w]+)+$/i),Yt=R(/<[/\w!]/g),eo=R(/<[/\w]/g),to=R(/<\/no(script|embed|frames)/i),no=R(/\/>/i),v={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},oo=function(){return typeof window>"u"?null:window},ro=function(o,s){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let l=null;const u="data-tt-policy-suffix";s&&s.hasAttribute(u)&&(l=s.getAttribute(u));const m="dompurify"+(l?"#"+l:"");try{return o.createPolicy(m,{createHTML(N){return N},createScriptURL(N){return N}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},jt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},W=function(o,s,l,u){return S(o,s)&&Y(o[s])?f(u.base?D(u.base):{},o[s],u.transform):l};function Vt(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oo();const o=i=>Vt(i);if(o.version="3.4.11",o.removed=[],!n||!n.document||n.document.nodeType!==v.document||!n.Element)return o.isSupported=!1,o;let s=n.document;const l=s,u=l.currentScript;n.DocumentFragment;const m=n.HTMLTemplateElement,N=n.Node,re=n.Element,w=n.NodeFilter,ie=n.NamedNodeMap;ie===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;const Ie=n.DOMParser,he=n.trustedTypes,j=re.prototype,qt=U(j,"cloneNode"),tt=U(j,"remove"),Kt=U(j,"nextSibling"),ae=U(j,"childNodes"),se=U(j,"parentNode"),nt=U(j,"shadowRoot"),De=U(j,"attributes"),C=N&&N.prototype?U(N.prototype,"nodeType"):null,z=N&&N.prototype?U(N.prototype,"nodeName"):null;if(typeof m=="function"){const i=s.createElement("template");i.content&&i.content.ownerDocument&&(s=i.content.ownerDocument)}let L,$="",Le,ot=!1,le=0;const rt=function(){if(le>0)throw q('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},K=function(e){rt(),le++;try{return L.createHTML(e)}finally{le--}},Zt=function(e){rt(),le++;try{return L.createScriptURL(e)}finally{le--}},Jt=function(){return ot||(Le=ro(he,u),ot=!0),Le},ge=s,we=ge.implementation,it=ge.createNodeIterator,Qt=ge.createDocumentFragment,en=ge.getElementsByTagName,tn=l.importNode;let g=jt();o.isSupported=typeof $t=="function"&&typeof se=="function"&&we&&we.createHTMLDocument!==void 0;const nn=jn,on=$n,rn=Xn,an=Vn,sn=qn,ln=Kn,at=Zn,cn=Qn;let st=Wt,d=null;const lt=f({},[...zt,...qe,...Ke,...Ze,...Ht]);let T=null;const ct=f({},[...Gt,...Je,...Bt,...Ne]);let _=Object.seal(oe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ce=null,ut=null;const H=Object.seal(oe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,Ce=!0,pt=!1,mt=!0,G=!1,ue=!0,X=!1,Me=!1,Pe=null,xe=null,ke=!1,Z=!1,Ee=!1,Ae=!1,dt=!0,Tt=!1;const _t="user-content-";let ve=!0,Ue=!1,J={},x=null;const Fe=f({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ht=null;const gt=f({},["audio","video","img","source","image","track"]);let ze=null;const Et=f({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ye="http://www.w3.org/1998/Math/MathML",Se="http://www.w3.org/2000/svg",k="http://www.w3.org/1999/xhtml";let Q=k,He=!1,Ge=null;const un=f({},[ye,Se,k],Ve),At=O(["mi","mo","mn","ms","mtext"]);let Be=f({},At);const yt=O(["annotation-xml"]);let We=f({},yt);const fn=f({},["title","style","font","a","script"]);let fe=null;const pn=["application/xhtml+xml","text/html"],mn="text/html";let h=null,ee=null;const dn=s.createElement("form"),St=function(e){return e instanceof RegExp||e instanceof Function},Ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ee&&ee===e)return;(!e||typeof e!="object")&&(e={}),e=D(e),fe=pn.indexOf(e.PARSER_MEDIA_TYPE)===-1?mn:e.PARSER_MEDIA_TYPE,h=fe==="application/xhtml+xml"?Ve:_e,d=W(e,"ALLOWED_TAGS",lt,{transform:h}),T=W(e,"ALLOWED_ATTR",ct,{transform:h}),Ge=W(e,"ALLOWED_NAMESPACES",un,{transform:Ve}),ze=W(e,"ADD_URI_SAFE_ATTR",Et,{transform:h,base:Et}),ht=W(e,"ADD_DATA_URI_TAGS",gt,{transform:h,base:gt}),x=W(e,"FORBID_CONTENTS",Fe,{transform:h}),ce=W(e,"FORBID_TAGS",D({}),{transform:h}),ut=W(e,"FORBID_ATTR",D({}),{transform:h}),J=S(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?D(e.USE_PROFILES):e.USE_PROFILES:!1,ft=e.ALLOW_ARIA_ATTR!==!1,Ce=e.ALLOW_DATA_ATTR!==!1,pt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,mt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,G=e.SAFE_FOR_TEMPLATES||!1,ue=e.SAFE_FOR_XML!==!1,X=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,Ee=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,ke=e.FORCE_BODY||!1,dt=e.SANITIZE_DOM!==!1,Tt=e.SANITIZE_NAMED_PROPS||!1,ve=e.KEEP_CONTENT!==!1,Ue=e.IN_PLACE||!1,st=Bn(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Wt,Q=typeof e.NAMESPACE=="string"?e.NAMESPACE:k,Be=S(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?D(e.MATHML_TEXT_INTEGRATION_POINTS):f({},At),We=S(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?D(e.HTML_INTEGRATION_POINTS):f({},yt);const t=S(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?D(e.CUSTOM_ELEMENT_HANDLING):oe(null);if(_=oe(null),S(t,"tagNameCheck")&&St(t.tagNameCheck)&&(_.tagNameCheck=t.tagNameCheck),S(t,"attributeNameCheck")&&St(t.attributeNameCheck)&&(_.attributeNameCheck=t.attributeNameCheck),S(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),R(_),G&&(Ce=!1),Ee&&(Z=!0),J&&(d=f({},Ht),T=oe(null),J.html===!0&&(f(d,zt),f(T,Gt)),J.svg===!0&&(f(d,qe),f(T,Je),f(T,Ne)),J.svgFilters===!0&&(f(d,Ke),f(T,Je),f(T,Ne)),J.mathMl===!0&&(f(d,Ze),f(T,Bt),f(T,Ne))),H.tagCheck=null,H.attributeCheck=null,S(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?H.tagCheck=e.ADD_TAGS:Y(e.ADD_TAGS)&&(d===lt&&(d=D(d)),f(d,e.ADD_TAGS,h))),S(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?H.attributeCheck=e.ADD_ATTR:Y(e.ADD_ATTR)&&(T===ct&&(T=D(T)),f(T,e.ADD_ATTR,h))),S(e,"ADD_URI_SAFE_ATTR")&&Y(e.ADD_URI_SAFE_ATTR)&&f(ze,e.ADD_URI_SAFE_ATTR,h),S(e,"FORBID_CONTENTS")&&Y(e.FORBID_CONTENTS)&&(x===Fe&&(x=D(x)),f(x,e.FORBID_CONTENTS,h)),S(e,"ADD_FORBID_CONTENTS")&&Y(e.ADD_FORBID_CONTENTS)&&(x===Fe&&(x=D(x)),f(x,e.ADD_FORBID_CONTENTS,h)),ve&&(d["#text"]=!0),X&&f(d,["html","head","body"]),d.table&&(f(d,["tbody"]),delete ce.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const r=L;L=e.TRUSTED_TYPES_POLICY;try{$=K("")}catch(a){throw L=r,a}}else e.TRUSTED_TYPES_POLICY===null?(L=void 0,$=""):(L===void 0&&(L=Jt()),L&&typeof $=="string"&&($=K("")));O&&O(e),ee=e},bt=f({},[...qe,...Ke,...Wn]),Ot=f({},[...Ze,...Yn]),Tn=function(e,t,r){return t.namespaceURI===k?e==="svg":t.namespaceURI===ye?e==="svg"&&(r==="annotation-xml"||Be[r]):!!bt[e]},_n=function(e,t,r){return t.namespaceURI===k?e==="math":t.namespaceURI===Se?e==="math"&&We[r]:!!Ot[e]},hn=function(e,t,r){return t.namespaceURI===Se&&!We[r]||t.namespaceURI===ye&&!Be[r]?!1:!Ot[e]&&(fn[e]||!bt[e])},gn=function(e){let t=se(e);(!t||!t.tagName)&&(t={namespaceURI:Q,tagName:"template"});const r=_e(e.tagName),a=_e(t.tagName);return Ge[e.namespaceURI]?e.namespaceURI===Se?Tn(r,t,a):e.namespaceURI===ye?_n(r,t,a):e.namespaceURI===k?hn(r,t,a):!!(fe==="application/xhtml+xml"&&Ge[e.namespaceURI]):!1},B=function(e){ne(o.removed,{element:e});try{se(e).removeChild(e)}catch{if(tt(e),!se(e))throw q("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Rt=function(e){const t=ae(e);if(t){const a=[];me(t,c=>{ne(a,c)}),me(a,c=>{try{tt(c)}catch{}})}const r=De(e);if(r)for(let a=r.length-1;a>=0;--a){const c=r[a],p=c&&c.name;if(typeof p=="string")try{e.removeAttribute(p)}catch{}}},V=function(e,t){try{ne(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{ne(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(Z||Ee)try{B(t)}catch{}else try{t.setAttribute(e,"")}catch{}},En=function(e){const t=De(e);if(t)for(let r=t.length-1;r>=0;--r){const a=t[r],c=a&&a.name;if(!(typeof c!="string"||T[h(c)]))try{e.removeAttribute(c)}catch{}}},An=function(e){const t=[e];for(;t.length>0;){const r=t.pop();(C?C(r):r.nodeType)===v.element&&En(r);const c=ae(r);if(c)for(let p=c.length-1;p>=0;--p)t.push(c[p])}},Nt=function(e){let t=null,r=null;if(ke)e=""+e;else{const p=kt(e,/^[\r\n\t ]+/);r=p&&p[0]}fe==="application/xhtml+xml"&&Q===k&&(e=''+e+"");const a=L?K(e):e;if(Q===k)try{t=new Ie().parseFromString(a,fe)}catch{}if(!t||!t.documentElement){t=we.createDocument(Q,"template",null);try{t.documentElement.innerHTML=He?$:a}catch{}}const c=t.body||t.documentElement;return e&&r&&c.insertBefore(s.createTextNode(r),c.childNodes[0]||null),Q===k?en.call(t,X?"html":"body")[0]:X?t.documentElement:c},It=function(e){return it.call(e.ownerDocument||e,e,w.SHOW_ELEMENT|w.SHOW_COMMENT|w.SHOW_TEXT|w.SHOW_PROCESSING_INSTRUCTION|w.SHOW_CDATA_SECTION,null)},be=function(e){return e=de(e,nn," "),e=de(e,on," "),e=de(e,rn," "),e},je=function(e){var t;e.normalize();const r=it.call(e.ownerDocument||e,e,w.SHOW_TEXT|w.SHOW_COMMENT|w.SHOW_CDATA_SECTION|w.SHOW_PROCESSING_INSTRUCTION,null);let a=r.nextNode();for(;a;)a.data=be(a.data),a=r.nextNode();const c=(t=e.querySelectorAll)===null||t===void 0?void 0:t.call(e,"template");c&&me(c,p=>{te(p.content)&&je(p.content)})},Oe=function(e){const t=z?z(e):null;return typeof t!="string"||h(t)!=="form"?!1:typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||e.attributes!==De(e)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function"||e.nodeType!==C(e)||e.childNodes!==ae(e)},te=function(e){if(!C||typeof e!="object"||e===null)return!1;try{return C(e)===v.documentFragment}catch{return!1}},pe=function(e){if(!C||typeof e!="object"||e===null)return!1;try{return typeof C(e)=="number"}catch{return!1}};function F(i,e,t){i.length!==0&&me(i,r=>{r.call(o,e,t,ee)})}const yn=function(e,t){return!!(ue&&e.hasChildNodes()&&!pe(e.firstElementChild)&&b(Yt,e.textContent)&&b(Yt,e.innerHTML)||ue&&e.namespaceURI===k&&t==="style"&&pe(e.firstElementChild)||e.nodeType===v.processingInstruction||ue&&e.nodeType===v.comment&&b(eo,e.data))},Sn=function(e,t){if(!ce[t]&&wt(t)&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,t)||_.tagNameCheck instanceof Function&&_.tagNameCheck(t)))return!1;if(ve&&!x[t]){const r=se(e),a=ae(e);if(a&&r){const c=a.length;for(let p=c-1;p>=0;--p){const y=Ue?a[p]:qt(a[p],!0);r.insertBefore(y,Kt(e))}}}return B(e),!0},Dt=function(e){if(F(g.beforeSanitizeElements,e,null),Oe(e))return B(e),!0;const t=h(z?z(e):e.nodeName);if(F(g.uponSanitizeElement,e,{tagName:t,allowedTags:d}),yn(e,t))return B(e),!0;if(ce[t]||!(H.tagCheck instanceof Function&&H.tagCheck(t))&&!d[t])return Sn(e,t);if((C?C(e):e.nodeType)===v.element&&!gn(e)||(t==="noscript"||t==="noembed"||t==="noframes")&&b(to,e.innerHTML))return B(e),!0;if(G&&e.nodeType===v.text){const a=be(e.textContent);e.textContent!==a&&(ne(o.removed,{element:e.cloneNode()}),e.textContent=a)}return F(g.afterSanitizeElements,e,null),!1},Lt=function(e,t,r){if(ut[t]||dt&&(t==="id"||t==="name")&&(r in s||r in dn))return!1;const a=T[t]||H.attributeCheck instanceof Function&&H.attributeCheck(t,e);if(!(Ce&&b(an,t))){if(!(ft&&b(sn,t))){if(a){if(!ze[t]){if(!b(st,de(r,at,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&vt(r,"data:")===0&&ht[e])){if(!(pt&&!b(ln,de(r,at,"")))){if(r)return!1}}}}}else if(!(wt(e)&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,e)||_.tagNameCheck instanceof Function&&_.tagNameCheck(e))&&(_.attributeNameCheck instanceof RegExp&&b(_.attributeNameCheck,t)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(t,e))||t==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,r)||_.tagNameCheck instanceof Function&&_.tagNameCheck(r))))return!1}}return!0},bn=f({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wt=function(e){return!bn[_e(e)]&&b(cn,e)},On=function(e,t,r,a){if(L&&typeof he=="object"&&typeof he.getAttributeType=="function"&&!r)switch(he.getAttributeType(e,t)){case"TrustedHTML":return K(a);case"TrustedScriptURL":return Zt(a)}return a},Rn=function(e,t,r,a){try{r?e.setAttributeNS(r,t,a):e.setAttribute(t,a),Oe(e)?B(e):xt(o.removed)}catch{V(t,e)}},Ct=function(e){F(g.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Oe(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0};let a=t.length;const c=h(e.nodeName);for(;a--;){const p=t[a],y=p.name,E=p.namespaceURI,M=p.value,P=h(y),Xe=M;let I=y==="value"?Xe:vn(Xe);if(r.attrName=P,r.attrValue=I,r.keepAttr=!0,r.forceKeepAttr=void 0,F(g.uponSanitizeAttribute,e,r),I=r.attrValue,Tt&&(P==="id"||P==="name")&&vt(I,_t)!==0&&(V(y,e),I=_t+I),ue&&b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,I)){V(y,e);continue}if(P==="attributename"&&kt(I,"href")){V(y,e);continue}if(!r.forceKeepAttr){if(!r.keepAttr){V(y,e);continue}if(!mt&&b(no,I)){V(y,e);continue}if(G&&(I=be(I)),!Lt(c,P,I)){V(y,e);continue}I=On(c,P,E,I),I!==Xe&&Rn(e,y,E,I)}}F(g.afterSanitizeAttributes,e,null)},Re=function(e){let t=null;const r=It(e);for(F(g.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(F(g.uponSanitizeShadowNode,t,null),Dt(t),Ct(t),te(t.content)&&Re(t.content),(C?C(t):t.nodeType)===v.element){const c=nt(t);te(c)&&($e(c),Re(c))}F(g.afterSanitizeShadowDOM,e,null)},$e=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const r=t.pop();if(r.shadow){Re(r.shadow);continue}const a=r.node,p=(C?C(a):a.nodeType)===v.element,y=ae(a);if(y)for(let E=y.length-1;E>=0;--E)t.push({node:y[E],shadow:null});if(p){const E=z?z(a):null;if(typeof E=="string"&&h(E)==="template"){const M=a.content;te(M)&&t.push({node:M,shadow:null})}}if(p){const E=nt(a);te(E)&&t.push({node:null,shadow:E},{node:E,shadow:null})}}};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,r=null,a=null,c=null;if(He=!i,He&&(i=""),typeof i!="string"&&!pe(i)&&(i=Gn(i),typeof i!="string"))throw q("dirty is not a string, aborting");if(!o.isSupported)return i;Me?(d=Pe,T=xe):Ye(e),(g.uponSanitizeElement.length>0||g.uponSanitizeAttribute.length>0)&&(d=D(d)),g.uponSanitizeAttribute.length>0&&(T=D(T)),o.removed=[];const p=Ue&&typeof i!="string"&&pe(i);if(p){const M=z?z(i):i.nodeName;if(typeof M=="string"){const P=h(M);if(!d[P]||ce[P])throw q("root node is forbidden and cannot be sanitized in-place")}if(Oe(i))throw q("root node is clobbered and cannot be sanitized in-place");try{$e(i)}catch(P){throw Rt(i),P}}else if(pe(i))t=Nt(""),r=t.ownerDocument.importNode(i,!0),r.nodeType===v.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r),$e(r);else{if(!Z&&!G&&!X&&i.indexOf("<")===-1)return L&&Ae?K(i):i;if(t=Nt(i),!t)return Z?null:Ae?$:""}t&&ke&&B(t.firstChild);const y=It(p?i:t);try{for(;a=y.nextNode();)Dt(a),Ct(a),te(a.content)&&Re(a.content)}catch(M){throw p&&Rt(i),M}if(p)return me(o.removed,M=>{M.element&&An(M.element)}),G&&je(i),i;if(Z){if(G&&je(t),Ee)for(c=Qt.call(t.ownerDocument);t.firstChild;)c.appendChild(t.firstChild);else c=t;return(T.shadowroot||T.shadowrootmode)&&(c=tn.call(l,c,!0)),c}let E=X?t.outerHTML:t.innerHTML;return X&&d["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(Jn,t.ownerDocument.doctype.name)&&(E=" +`+E),G&&(E=be(E)),L&&Ae?K(E):E},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ye(i),Me=!0,Pe=d,xe=T},o.clearConfig=function(){ee=null,Me=!1,Pe=null,xe=null,L=Le,$=""},o.isValidAttribute=function(i,e,t){ee||Ye({});const r=h(i),a=h(e);return Lt(r,a,t)},o.addHook=function(i,e){typeof e=="function"&&S(g,i)&&ne(g[i],e)},o.removeHook=function(i,e){if(S(g,i)){if(e!==void 0){const t=xn(g[i],e);return t===-1?void 0:kn(g[i],t,1)[0]}return xt(g[i])}},o.removeHooks=function(i){S(g,i)&&(g[i]=[])},o.removeAllHooks=function(){g=jt()},o}var io=Vt();export{io as default}; diff --git a/index.html b/index.html index f27f66f..2ff0568 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@ Topola Genealogy Viewer - +