gedcom-ts 2.0.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/README.md +370 -89
  3. package/dist/commons/Act.d.ts +38 -6
  4. package/dist/commons/DateAct.d.ts +40 -2
  5. package/dist/commons/Identifier.enum.d.ts +3 -0
  6. package/dist/commons/IndiAttribute.d.ts +11 -0
  7. package/dist/commons/IndiGedcomSubLine.d.ts +6 -0
  8. package/dist/commons/MultimediaFile.d.ts +13 -2
  9. package/dist/commons/Person.d.ts +21 -3
  10. package/dist/commons/PersonNameVariant.d.ts +21 -0
  11. package/dist/commons/Place.d.ts +19 -0
  12. package/dist/commons/gedcomEventTags.d.ts +10 -0
  13. package/dist/edit/ActEdit.d.ts +29 -0
  14. package/dist/edit/ActsEdit.d.ts +17 -0
  15. package/dist/edit/DateActEdit.d.ts +37 -0
  16. package/dist/edit/NotesEdit.d.ts +14 -0
  17. package/dist/edit/PersonEdit.d.ts +27 -0
  18. package/dist/edit/PlaceEdit.d.ts +23 -0
  19. package/dist/edit/index.d.ts +19 -0
  20. package/dist/export/GEDCOM.d.ts +33 -4
  21. package/dist/import/LoadFile.d.ts +14 -0
  22. package/dist/import/ReadGed.d.ts +43 -0
  23. package/dist/import/SplitedInformations.d.ts +29 -3
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.d.ts +17 -4
  26. package/dist/index.mjs +1 -1
  27. package/dist/utils/gedcom/actExtraction.d.ts +3 -1
  28. package/dist/utils/gedcom/datasetVersion.d.ts +7 -0
  29. package/dist/utils/gedcom/extractIndiNamesAndAttributes.d.ts +4 -0
  30. package/dist/utils/gedcom/labelKeyedRecords.d.ts +13 -0
  31. package/dist/utils/gedcom/mediaFormFromUri.d.ts +2 -0
  32. package/dist/utils/gedcom/parseStandaloneObje.d.ts +9 -0
  33. package/dist/utils/gedcom/personName.d.ts +7 -0
  34. package/dist/utils/gedcom/pointers.d.ts +16 -0
  35. package/dist/version.d.ts +6 -0
  36. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x4a7418=_0x3bd6;(function(_0x5c3ac3,_0x15dee3){const _0x3979c4=_0x3bd6,_0x364fc3=_0x5c3ac3();while(!![]){try{const _0x439cd6=parseInt(_0x3979c4(0x212))/0x1*(parseInt(_0x3979c4(0x191))/0x2)+-parseInt(_0x3979c4(0x173))/0x3*(parseInt(_0x3979c4(0x111))/0x4)+parseInt(_0x3979c4(0x13e))/0x5*(-parseInt(_0x3979c4(0x21f))/0x6)+parseInt(_0x3979c4(0x1aa))/0x7*(-parseInt(_0x3979c4(0x126))/0x8)+parseInt(_0x3979c4(0x1ec))/0x9*(-parseInt(_0x3979c4(0x14a))/0xa)+parseInt(_0x3979c4(0x211))/0xb+-parseInt(_0x3979c4(0xd3))/0xc*(parseInt(_0x3979c4(0x1c0))/0xd);if(_0x439cd6===_0x15dee3)break;else _0x364fc3['push'](_0x364fc3['shift']());}catch(_0x2c5619){_0x364fc3['push'](_0x364fc3['shift']());}}}(_0x33ab,0x76a49));var dt=Object[_0x4a7418(0x1b4)],ft=(_0x181bce,_0x4dfce8,_0x5c707c)=>_0x4dfce8 in _0x181bce?dt(_0x181bce,_0x4dfce8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c707c}):_0x181bce[_0x4dfce8]=_0x5c707c,l=(_0x3a60b6,_0x55ec3f,_0x183993)=>ft(_0x3a60b6,typeof _0x55ec3f!='symbol'?_0x55ec3f+'':_0x55ec3f,_0x183993),g=(_0x398e8f=>(_0x398e8f['ABBR']='ABBR',_0x398e8f[_0x4a7418(0x12e)]=_0x4a7418(0x12e),_0x398e8f[_0x4a7418(0x11e)]=_0x4a7418(0x11e),_0x398e8f[_0x4a7418(0xd8)]='ADR2',_0x398e8f[_0x4a7418(0x1fa)]='ADOP',_0x398e8f['AFN']=_0x4a7418(0x102),_0x398e8f[_0x4a7418(0x140)]='AGE',_0x398e8f[_0x4a7418(0x112)]='AGNC',_0x398e8f[_0x4a7418(0x18d)]=_0x4a7418(0x18d),_0x398e8f[_0x4a7418(0x168)]=_0x4a7418(0x168),_0x398e8f['ANCI']=_0x4a7418(0xcd),_0x398e8f['ANUL']=_0x4a7418(0x135),_0x398e8f[_0x4a7418(0x1e6)]=_0x4a7418(0x1e6),_0x398e8f[_0x4a7418(0xd7)]='AUTH',_0x398e8f['BAPL']='BAPL',_0x398e8f[_0x4a7418(0x1ff)]='BAPM',_0x398e8f[_0x4a7418(0x187)]='BARM',_0x398e8f[_0x4a7418(0x14e)]='BASM',_0x398e8f[_0x4a7418(0xe6)]=_0x4a7418(0xe6),_0x398e8f['BLES']=_0x4a7418(0x21c),_0x398e8f[_0x4a7418(0x1fb)]=_0x4a7418(0x1fb),_0x398e8f[_0x4a7418(0x1b3)]='BURI',_0x398e8f['CALN']='CALN',_0x398e8f[_0x4a7418(0x139)]='CAST',_0x398e8f[_0x4a7418(0x148)]=_0x4a7418(0x148),_0x398e8f['CENS']=_0x4a7418(0xe7),_0x398e8f[_0x4a7418(0xe8)]=_0x4a7418(0xe8),_0x398e8f[_0x4a7418(0x178)]=_0x4a7418(0x178),_0x398e8f[_0x4a7418(0x1f7)]='CHIL',_0x398e8f[_0x4a7418(0x1f4)]='CHR',_0x398e8f['CHRA']='CHRA',_0x398e8f[_0x4a7418(0x180)]=_0x4a7418(0x180),_0x398e8f['CONC']=_0x4a7418(0x176),_0x398e8f['CONF']=_0x4a7418(0xea),_0x398e8f['CONL']=_0x4a7418(0x1bf),_0x398e8f[_0x4a7418(0x1d8)]=_0x4a7418(0x1d8),_0x398e8f[_0x4a7418(0xde)]='COPR',_0x398e8f[_0x4a7418(0x1cc)]=_0x4a7418(0x1cc),_0x398e8f['CREM']=_0x4a7418(0x1ac),_0x398e8f[_0x4a7418(0x11c)]='CTRY',_0x398e8f[_0x4a7418(0x1de)]='DATA',_0x398e8f[_0x4a7418(0x19d)]=_0x4a7418(0x19d),_0x398e8f[_0x4a7418(0x1b7)]=_0x4a7418(0x1b7),_0x398e8f['DESC']=_0x4a7418(0x132),_0x398e8f[_0x4a7418(0x1ca)]='DESI',_0x398e8f[_0x4a7418(0xfa)]=_0x4a7418(0xfa),_0x398e8f[_0x4a7418(0x1ef)]=_0x4a7418(0x1ef),_0x398e8f[_0x4a7418(0x108)]='DIVF',_0x398e8f[_0x4a7418(0x16b)]='DSCR',_0x398e8f[_0x4a7418(0x13d)]=_0x4a7418(0x13d),_0x398e8f['EMIG']=_0x4a7418(0x1b8),_0x398e8f[_0x4a7418(0x1e3)]=_0x4a7418(0x1e3),_0x398e8f[_0x4a7418(0x1a9)]=_0x4a7418(0x1a9),_0x398e8f[_0x4a7418(0x196)]=_0x4a7418(0x196),_0x398e8f[_0x4a7418(0x174)]=_0x4a7418(0x174),_0x398e8f[_0x4a7418(0x1f6)]=_0x4a7418(0x1f6),_0x398e8f['FAMF']='FAMF',_0x398e8f['FAMS']='FAMS',_0x398e8f['FCOM']=_0x4a7418(0x20b),_0x398e8f['FILE']='FILE',_0x398e8f['FORM']=_0x4a7418(0xef),_0x398e8f['GEDC']=_0x4a7418(0x13a),_0x398e8f[_0x4a7418(0x172)]=_0x4a7418(0x172),_0x398e8f['GRAD']='GRAD',_0x398e8f[_0x4a7418(0x115)]='HEAD',_0x398e8f['HUSB']='HUSB',_0x398e8f['IDNO']=_0x4a7418(0xe9),_0x398e8f[_0x4a7418(0x1e7)]=_0x4a7418(0x1e7),_0x398e8f['INDI']='INDI',_0x398e8f['LANG']='LANG',_0x398e8f['LEGA']=_0x4a7418(0x1b5),_0x398e8f['MARB']='MARB',_0x398e8f['MARC']='MARC',_0x398e8f['MARL']=_0x4a7418(0x1b0),_0x398e8f[_0x4a7418(0x1b1)]=_0x4a7418(0x1b1),_0x398e8f['MARS']=_0x4a7418(0x1db),_0x398e8f['MEDI']=_0x4a7418(0x20e),_0x398e8f['NAME']='NAME',_0x398e8f['NATI']='NATI',_0x398e8f['NATU']=_0x4a7418(0x19e),_0x398e8f[_0x4a7418(0x185)]='NCHI',_0x398e8f['NICK']='NICK',_0x398e8f['NMR']=_0x4a7418(0x19b),_0x398e8f['NOTE']=_0x4a7418(0x151),_0x398e8f[_0x4a7418(0x1c7)]='NPFX',_0x398e8f[_0x4a7418(0x1cb)]='NSFX',_0x398e8f[_0x4a7418(0x121)]='OBJE',_0x398e8f[_0x4a7418(0x15a)]=_0x4a7418(0x15a),_0x398e8f['ORDI']=_0x4a7418(0xd6),_0x398e8f['ORDN']=_0x4a7418(0x162),_0x398e8f['PAGE']='PAGE',_0x398e8f[_0x4a7418(0xf4)]=_0x4a7418(0xf4),_0x398e8f['PHON']=_0x4a7418(0x1eb),_0x398e8f[_0x4a7418(0x209)]=_0x4a7418(0x209),_0x398e8f['POST']='POST',_0x398e8f['PROB']=_0x4a7418(0x175),_0x398e8f[_0x4a7418(0x1f9)]=_0x4a7418(0x1f9),_0x398e8f['PUBL']='PUBL',_0x398e8f[_0x4a7418(0x1f5)]='QUAY',_0x398e8f['REFN']='REFN',_0x398e8f[_0x4a7418(0xed)]='RELA',_0x398e8f['RELI']=_0x4a7418(0x128),_0x398e8f[_0x4a7418(0x17a)]=_0x4a7418(0x17a),_0x398e8f[_0x4a7418(0x1c3)]='RESI',_0x398e8f[_0x4a7418(0xce)]=_0x4a7418(0xce),_0x398e8f[_0x4a7418(0x11b)]=_0x4a7418(0x11b),_0x398e8f[_0x4a7418(0x166)]=_0x4a7418(0x166),_0x398e8f['RIN']=_0x4a7418(0x16d),_0x398e8f['ROLE']='ROLE',_0x398e8f[_0x4a7418(0x1af)]=_0x4a7418(0x1af),_0x398e8f['SLGC']=_0x4a7418(0x195),_0x398e8f['SLGS']=_0x4a7418(0x224),_0x398e8f[_0x4a7418(0x130)]=_0x4a7418(0x130),_0x398e8f[_0x4a7418(0x131)]=_0x4a7418(0x131),_0x398e8f[_0x4a7418(0x125)]='SSN',_0x398e8f['STAE']=_0x4a7418(0x155),_0x398e8f[_0x4a7418(0x1c4)]=_0x4a7418(0x1c4),_0x398e8f[_0x4a7418(0x170)]=_0x4a7418(0x170),_0x398e8f[_0x4a7418(0x1e8)]='SUBN',_0x398e8f[_0x4a7418(0x123)]=_0x4a7418(0x123),_0x398e8f[_0x4a7418(0x1ba)]=_0x4a7418(0x1ba),_0x398e8f[_0x4a7418(0x163)]='TEXT',_0x398e8f['TIME']='TIME',_0x398e8f['TITL']=_0x4a7418(0x1c8),_0x398e8f[_0x4a7418(0x1b2)]=_0x4a7418(0x1b2),_0x398e8f['TYPE']=_0x4a7418(0x22e),_0x398e8f[_0x4a7418(0x150)]=_0x4a7418(0x150),_0x398e8f['WIFE']=_0x4a7418(0x189),_0x398e8f['WILL']='WILL',_0x398e8f))(g||{}),H=[0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f],$=['JAN','FEB',_0x4a7418(0x215),'APR',_0x4a7418(0x15c),'JUN',_0x4a7418(0x1c5),'AUG','SEP',_0x4a7418(0x15f),_0x4a7418(0x14b),_0x4a7418(0xe4)],At={0x1:_0x4a7418(0x1e9),0x2:_0x4a7418(0x1e5),0x3:_0x4a7418(0x215),0x4:'APR',0x5:'MAY',0x6:_0x4a7418(0x216),0x7:_0x4a7418(0x1c5),0x8:'AUG',0x9:'SEP',0xa:_0x4a7418(0x15f),0xb:'NOV',0xc:'DEC'},T=class{constructor(_0x1d8018){const _0x39b3f9=_0x4a7418;l(this,_0x39b3f9(0x204)),l(this,'day',null),l(this,_0x39b3f9(0x1fd),null),l(this,_0x39b3f9(0x20c)),l(this,_0x39b3f9(0x16a),null),l(this,'endMonth',null),l(this,_0x39b3f9(0xfb));let _0x4a5639=_0x1d8018?.['trim']();if(!_0x4a5639||_0x4a5639===_0x39b3f9(0xdb)||this[_0x39b3f9(0xff)](_0x4a5639))return;let _0x128bb5=_0x4a5639['split'](/\s+/);switch(_0x128bb5[_0x39b3f9(0x1a8)]){case 0x1:this['parseSinglePart'](_0x128bb5[0x0]);break;case 0x2:this[_0x39b3f9(0x221)](_0x128bb5[0x0],_0x128bb5[0x1]);break;case 0x3:this['parseThreeParts'](_0x128bb5[0x0],_0x128bb5[0x1],_0x128bb5[0x2]);break;case 0x4:this['parseFourParts'](_0x128bb5[0x0],_0x128bb5[0x1],_0x128bb5[0x2],_0x128bb5[0x3]);break;default:break;}}get[_0x4a7418(0x164)](){const _0x2ed808=_0x4a7418;if(!this['year'])return null;if(this[_0x2ed808(0x204)]===_0x2ed808(0x1e4)&&this[_0x2ed808(0xfb)]){let _0x3a9379=this['formatCoreDate'](this[_0x2ed808(0x171)],this[_0x2ed808(0x1fd)],this['year']),_0x3747a9=this[_0x2ed808(0x194)](this['endDay'],this['endMonth'],this[_0x2ed808(0xfb)]);return _0x2ed808(0x10a)+_0x3a9379+_0x2ed808(0x207)+_0x3747a9;}if(this[_0x2ed808(0x204)]===_0x2ed808(0x149)&&this['endYear']){let _0xe48f6c=this['formatCoreDate'](this[_0x2ed808(0x171)],this['month'],this[_0x2ed808(0x20c)]),_0x41b3d5=this[_0x2ed808(0x194)](this[_0x2ed808(0x16a)],this[_0x2ed808(0x136)],this[_0x2ed808(0xfb)]);return'FROM\x20'+_0xe48f6c+_0x2ed808(0x14c)+_0x41b3d5;}let _0x23533c=this['month']?this[_0x2ed808(0x171)]?this[_0x2ed808(0x171)]+'\x20'+this[_0x2ed808(0x1fd)]+'\x20'+this['year']:this['month']+'\x20'+this['year']:''+this[_0x2ed808(0x20c)];return this['typeDateAct']?this['typeDateAct']+'\x20'+_0x23533c:_0x23533c;}[_0x4a7418(0x10b)](_0x272a6b,_0x43828f,_0x27e0e5){const _0xc2364b=_0x4a7418;this['clearDate'](),this[_0xc2364b(0x20c)]=_0x272a6b,this[_0xc2364b(0x1fd)]=_0x43828f??null,this[_0xc2364b(0x171)]=_0x27e0e5??null;}[_0x4a7418(0x220)](_0x4c6186,_0x5879cd,_0x411747,_0x19a685){const _0x218322=_0x4a7418;this[_0x218322(0x154)](),this['typeDateAct']=_0x4c6186,this[_0x218322(0x20c)]=_0x5879cd,this[_0x218322(0x1fd)]=_0x411747??null,this[_0x218322(0x171)]=_0x19a685??null;}[_0x4a7418(0x182)](_0xaa134f,_0xaf33b3){const _0x42689d=_0x4a7418;this['clearDate'](),this['typeDateAct']=_0x42689d(0x1e4),this[_0x42689d(0x20c)]=_0xaa134f[_0x42689d(0x20c)],this[_0x42689d(0x1fd)]=_0xaa134f[_0x42689d(0x1fd)]??null,this['day']=_0xaa134f['day']??null,this[_0x42689d(0xfb)]=_0xaf33b3['year'],this[_0x42689d(0x136)]=_0xaf33b3[_0x42689d(0x1fd)]??null,this[_0x42689d(0x16a)]=_0xaf33b3['day']??null;}[_0x4a7418(0x1e1)](_0x574a75,_0x4e6e8e){const _0x4fe83d=_0x4a7418;this['clearDate'](),this[_0x4fe83d(0x204)]='FROM',this['year']=_0x574a75[_0x4fe83d(0x20c)],this[_0x4fe83d(0x1fd)]=_0x574a75['month']??null,this['day']=_0x574a75[_0x4fe83d(0x171)]??null,this['endYear']=_0x4e6e8e[_0x4fe83d(0x20c)],this['endMonth']=_0x4e6e8e['month']??null,this[_0x4fe83d(0x16a)]=_0x4e6e8e['day']??null;}[_0x4a7418(0x154)](){const _0x481ba7=_0x4a7418;this[_0x481ba7(0x204)]=void 0x0,this[_0x481ba7(0x171)]=null,this[_0x481ba7(0x1fd)]=null,this[_0x481ba7(0x20c)]=void 0x0,this['endDay']=null,this['endMonth']=null,this[_0x481ba7(0xfb)]=void 0x0;}[_0x4a7418(0xe3)](_0x4548e3){return At[_0x4548e3]??null;}['parseSinglePart'](_0x2c3d9e){const _0x5d2863=_0x4a7418;if(_0x2c3d9e[_0x5d2863(0xfc)]('/')){this['assignMonthYearFromSlash'](_0x2c3d9e);return;}this[_0x5d2863(0x1fd)]=null,this['year']=Number(_0x2c3d9e);}[_0x4a7418(0x221)](_0x4d3a39,_0x3c44f7){const _0x513e4f=_0x4a7418;if(this['isRelativeType'](_0x4d3a39)){if(this[_0x513e4f(0x204)]=_0x4d3a39,_0x3c44f7[_0x513e4f(0xfc)]('/')){this['assignMonthYearFromSlash'](_0x3c44f7);return;}this[_0x513e4f(0x1fd)]=null,this[_0x513e4f(0x20c)]=Number(_0x3c44f7);return;}if(_0x4d3a39['includes']('/')){this[_0x513e4f(0x19c)](_0x4d3a39);return;}this[_0x513e4f(0x1fd)]=this['parseMonthToken'](_0x4d3a39),this[_0x513e4f(0x20c)]=Number(_0x3c44f7);}[_0x4a7418(0x153)](_0x54882c,_0x21e4ea,_0x2ed46d){const _0x2e77dc=_0x4a7418;if(this[_0x2e77dc(0x143)](_0x54882c)){this['typeDateAct']=_0x54882c,this[_0x2e77dc(0x1fd)]=this['parseMonthToken'](_0x21e4ea),this['year']=Number(_0x2ed46d);return;}if(_0x21e4ea['includes']('/')){this[_0x2e77dc(0x19c)](_0x21e4ea);return;}let _0x22cc75=Number(_0x54882c);this[_0x2e77dc(0x171)]=_0x22cc75>=0x1&&_0x22cc75<=0x1f?_0x22cc75:null,this[_0x2e77dc(0x1fd)]=this['parseMonthToken'](_0x21e4ea),this[_0x2e77dc(0x20c)]=Number(_0x2ed46d);}['parseFourParts'](_0x387399,_0x2db37e,_0x157c76,_0x1893b9){const _0x33be1a=_0x4a7418;if(!this['isRelativeType'](_0x387399))return;this['typeDateAct']=_0x387399;let _0x5e87a7=Number(_0x2db37e);this['day']=_0x5e87a7>=0x1&&_0x5e87a7<=0x1f?_0x5e87a7:null,this[_0x33be1a(0x1fd)]=this[_0x33be1a(0x138)](_0x157c76),this[_0x33be1a(0x20c)]=Number(_0x1893b9);}[_0x4a7418(0x19c)](_0x4dac35){const _0x46ece6=_0x4a7418;let [_0x33d930,_0xed201e]=_0x4dac35['split']('/');this[_0x46ece6(0x1fd)]=this[_0x46ece6(0xe3)](_0x33d930),this[_0x46ece6(0x20c)]=Number(_0xed201e);}['parseMonthToken'](_0x2d21e2){return $['includes'](_0x2d21e2)?_0x2d21e2:null;}[_0x4a7418(0x194)](_0x54cef2,_0xa5dc5b,_0x45eea8){return _0x45eea8?_0xa5dc5b?_0x54cef2?_0x54cef2+'\x20'+_0xa5dc5b+'\x20'+_0x45eea8:_0xa5dc5b+'\x20'+_0x45eea8:''+_0x45eea8:'';}[_0x4a7418(0xff)](_0x429dfc){const _0x28b591=_0x4a7418;let _0x378482=/^BET\s+(.+)\s+AND\s+(.+)$/[_0x28b591(0x18c)](_0x429dfc);if(_0x378482?.[0x1]&&_0x378482?.[0x2]){let _0x4a2bc3=this['parseCoreDateValue'](_0x378482[0x1]),_0x2e091f=this['parseCoreDateValue'](_0x378482[0x2]);return!_0x4a2bc3||!_0x2e091f?!0x1:(this[_0x28b591(0x182)](_0x4a2bc3,_0x2e091f),!0x0);}let _0x6c70b2=/^FROM\s+(.+)\s+TO\s+(.+)$/['exec'](_0x429dfc);if(_0x6c70b2?.[0x1]&&_0x6c70b2?.[0x2]){let _0x5171f0=this[_0x28b591(0x19f)](_0x6c70b2[0x1]),_0x251723=this[_0x28b591(0x19f)](_0x6c70b2[0x2]);return!_0x5171f0||!_0x251723?!0x1:(this[_0x28b591(0x1e1)](_0x5171f0,_0x251723),!0x0);}return!0x1;}[_0x4a7418(0x19f)](_0x1bf323){const _0x34f6d2=_0x4a7418;let _0x43d90f=_0x1bf323['trim']()[_0x34f6d2(0x1f8)](/\s+/);if(_0x43d90f[_0x34f6d2(0x1a8)]===0x1){let _0x5e3c77=Number(_0x43d90f[0x0]);return Number['isFinite'](_0x5e3c77)?{'year':_0x5e3c77}:null;}if(_0x43d90f[_0x34f6d2(0x1a8)]===0x2){if(_0x43d90f[0x0]['includes']('/')){let [_0x136220,_0x295517]=_0x43d90f[0x0][_0x34f6d2(0x1f8)]('/'),_0x2f5739=Number(_0x295517);return Number[_0x34f6d2(0x11d)](_0x2f5739)?{'year':_0x2f5739,'month':this[_0x34f6d2(0xe3)](_0x136220)}:null;}let _0x137217=this[_0x34f6d2(0x138)](_0x43d90f[0x0]),_0x13ae0e=Number(_0x43d90f[0x1]);return Number['isFinite'](_0x13ae0e)?{'year':_0x13ae0e,'month':_0x137217}:null;}if(_0x43d90f[_0x34f6d2(0x1a8)]===0x3){let _0x3741f6=Number(_0x43d90f[0x0]),_0x5325d4=this[_0x34f6d2(0x138)](_0x43d90f[0x1]),_0x2dc9de=Number(_0x43d90f[0x2]);return Number['isFinite'](_0x2dc9de)?{'year':_0x2dc9de,'month':_0x5325d4,'day':_0x3741f6>=0x1&&_0x3741f6<=0x1f?_0x3741f6:null}:null;}return null;}['isRelativeType'](_0xb63dc1){return _0xb63dc1==='BEF'||_0xb63dc1==='ABT'||_0xb63dc1==='AFT';}[_0x4a7418(0xe0)](){const _0x1190a9=_0x4a7418;let _0x5af34a=new Date()[_0x1190a9(0x200)]();if(this['year']&&(this[_0x1190a9(0x20c)]<0x0||this[_0x1190a9(0x20c)]>_0x5af34a))return!0x1;if(this[_0x1190a9(0x20c)]&&!this[_0x1190a9(0x1fd)]&&!this['day'])return!0x0;if(this['month']&&!$['includes'](this[_0x1190a9(0x1fd)]))return!0x1;if(this[_0x1190a9(0x20c)]&&this[_0x1190a9(0x1fd)]&&!this[_0x1190a9(0x171)])return!0x0;if(this[_0x1190a9(0x171)]){let _0x3f68c2=this[_0x1190a9(0x20c)]%0x4===0x0&&this[_0x1190a9(0x20c)]%0x64!==0x0||this['year']%0x190===0x0,_0x4ae434;if(this['month']===_0x1190a9(0x1e5)&&_0x3f68c2)_0x4ae434=0x1d;else{let _0x36581c=$['findIndex'](_0x2aa8fa=>_0x2aa8fa===this[_0x1190a9(0x1fd)]);_0x4ae434=H[_0x1190a9(0x12d)](_0x511e6d=>_0x511e6d<=new Date(this[_0x1190a9(0x20c)],_0x36581c,0x0)['getDate']())[_0x1190a9(0x1a8)];}return H[_0x1190a9(0xfc)](this[_0x1190a9(0x171)])&&this[_0x1190a9(0x171)]<=_0x4ae434;}return!0x1;}},gt=(_0x1e3da8,_0x468071,_0x58d546)=>_0x1e3da8?_0x468071?_0x58d546?_0x58d546+'\x20'+_0x468071+'\x20'+_0x1e3da8:_0x468071+'\x20'+_0x1e3da8:''+_0x1e3da8:'',E=class{constructor(_0x34590b,_0x5b3d64){const _0x5ba4f4=_0x4a7418;l(this,_0x5ba4f4(0x1ab),null),l(this,'coordinate'),(_0x34590b&&(this['city']=_0x34590b),this[_0x5ba4f4(0x1bb)]=_0x5b3d64??new v());}['addCity'](_0x53311e){const _0x2f5345=_0x4a7418;this[_0x2f5345(0x1ab)]=_0x53311e;}},v=class{constructor(_0x3e6443,_0x2eb696){const _0x147994=_0x4a7418;l(this,'latitude'),l(this,_0x147994(0x1d0)),(this[_0x147994(0xfe)]=_0x3e6443,this[_0x147994(0x1d0)]=_0x2eb696);}['addCoordinates']([_0x59856c,_0x19e7d8]){this['latitude']=_0x59856c,this['longitude']=_0x19e7d8;}},N=class{constructor(_0x2432e4){const _0x311569=_0x4a7418;l(this,'relativePath'),l(this,_0x311569(0xd1)),this[_0x311569(0xd1)]=_0x2432e4;}get['filename'](){return this['file']['name'];}},y=class{constructor(){const _0x4c0ce4=_0x4a7418;l(this,_0x4c0ce4(0x122)),l(this,_0x4c0ce4(0x114),[]);}[_0x4a7418(0xe2)](_0x26f2a7){const _0x33b3c1=_0x4a7418;let _0xfea81=_0x26f2a7[_0x33b3c1(0xd1)]?.['name']??'',_0x5cde64=(this[_0x33b3c1(0x122)]??'')[_0x33b3c1(0x1a4)](/\/+$/,'');_0x26f2a7['relativePath']=_0x5cde64?_0x5cde64+'/'+_0xfea81:_0xfea81,this[_0x33b3c1(0x114)][_0x33b3c1(0x203)](_0x26f2a7);}['removeFromIndex'](_0x4002af){const _0x1a0e84=_0x4a7418;let _0x23fff5=this['files']['findIndex']((_0x4104c2,_0x554e4c)=>_0x554e4c===_0x4002af);_0x23fff5>=0x0&&this['files'][_0x1a0e84(0x16c)](_0x23fff5,0x1);}['removeAll'](){const _0x1c8f4c=_0x4a7418;this[_0x1c8f4c(0x114)]=[];}},D=class{constructor(){const _0x322e8a=_0x4a7418;l(this,'INDIS',[]),l(this,_0x322e8a(0x218)),l(this,_0x322e8a(0x226));}['updateLines'](_0x2d54fb){_0x2d54fb?.['length']>0x0&&(this['lines']=_0x2d54fb);}['removeLines'](){const _0x1d772e=_0x4a7418;this[_0x1d772e(0x226)]=[];}['updateType'](_0x584f16){this['type']=_0x584f16;}['addIndis'](_0x1dc291){const _0x4c9a38=_0x4a7418;this[_0x4c9a38(0x205)]=_0x1dc291;}},P=class{constructor(){l(this,'list',[]);}[_0x4a7418(0x118)](_0x139b24){const _0x3d9920=_0x4a7418;this[_0x3d9920(0x117)][_0x3d9920(0x203)](_0x139b24);}['updateFromIndex'](_0xa6afed,_0x1c2da7){this['list'][_0x1c2da7]=_0xa6afed;}[_0x4a7418(0x21a)](_0x172cac){const _0x226a50=_0x4a7418;let _0x3d90a6=this['list']['findIndex']((_0x3595c0,_0x589208)=>_0x589208===_0x172cac);_0x3d90a6>=0x0&&this[_0x226a50(0x117)][_0x226a50(0x16c)](_0x3d90a6,0x1);}[_0x4a7418(0x1a3)](){const _0x4fccdf=_0x4a7418;this[_0x4fccdf(0x117)]=[];}};function M(_0x3e7b42){const _0x197d5d=_0x4a7418;let _0x4bf747=_0x3e7b42['trimStart'](),_0x5f2ef8=_0x4bf747['indexOf']('\x20');if(_0x5f2ef8<=0x0)return null;let _0xf3ed68=_0x4bf747[_0x197d5d(0x1fc)](0x0,_0x5f2ef8),_0x5382c5=_0x4bf747[_0x197d5d(0x1fc)](_0x5f2ef8+0x1)['trimStart'](),_0x321307=_0x5382c5['indexOf']('\x20');if(_0x321307<=0x0)return{'level':_0xf3ed68,'tag':_0x5382c5,'value':''};let _0x53fc1a=_0x5382c5[_0x197d5d(0x1fc)](0x0,_0x321307),_0x52db32=_0x5382c5['slice'](_0x321307+0x1);return{'level':_0xf3ed68,'tag':_0x53fc1a,'value':_0x52db32};}function yt(_0x4c14af){const _0x24ac37=_0x4a7418;let _0x234f60=_0x4c14af['lastIndexOf']('.');return _0x234f60<=0x0?{'stem':_0x4c14af,'ext':''}:{'stem':_0x4c14af[_0x24ac37(0x1fc)](0x0,_0x234f60),'ext':_0x4c14af[_0x24ac37(0x1fc)](_0x234f60)};}function Mt(_0x2b4195,_0x116a3d,_0x3bebb1){return _0x3bebb1===0x0?''+_0x2b4195+_0x116a3d:_0x2b4195+'_'+_0x3bebb1+_0x116a3d;}function L(_0x58b127,_0x42ed10,_0x2fd698){const _0x38746a=_0x4a7418;let _0x53ec4b=new Set(_0x2fd698),_0x1b3b73=_0x58b127['replace'](/\/+$/,''),_0x1af30f=_0x42ed10[_0x38746a(0x1a4)](/^[/\\]+|[/\\]+/g,''),{stem:_0x55d5d1,ext:_0x744d18}=yt(_0x1af30f),_0xe8fbdd=0x2710;for(let _0xf879fe=0x0;_0xf879fe<_0xe8fbdd;_0xf879fe++){let _0x4b67bb=Mt(_0x55d5d1,_0x744d18,_0xf879fe),_0x22c69c=_0x1b3b73?_0x1b3b73+'/'+_0x4b67bb:_0x4b67bb;if(!_0x53ec4b[_0x38746a(0x14f)](_0x22c69c))return _0x22c69c;}throw new Error(_0x38746a(0x159));}function w(_0x198989,_0x4f8728){const _0x598e78=_0x4a7418;return[..._0x198989,..._0x4f8728[_0x598e78(0x1c2)](_0x4efa32=>_0x4efa32[_0x598e78(0x122)])[_0x598e78(0x12d)](_0xe7bec8=>!!_0xe7bec8)];}function O(_0x46fc78,_0x5aade7){const _0x2a6c44=_0x4a7418;let _0x266396=_0x46fc78[_0x2a6c44(0x208)](),_0x168064=new RegExp('^@'+_0x5aade7+_0x2a6c44(0x1f3))['exec'](_0x266396);return _0x168064?.[0x1]?Number(_0x168064[0x1]):null;}function tt(_0x28b1a8,_0x3af584,_0x54574){const _0x29e17f=_0x4a7418;let _0x167cc8='@'+_0x3af584,_0x1b7eb5=_0x28b1a8[_0x29e17f(0x13f)](_0x167cc8);if(_0x1b7eb5<0x0)return null;let _0x2df921=_0x28b1a8['indexOf']('@',_0x1b7eb5+_0x167cc8[_0x29e17f(0x1a8)]);if(_0x2df921<=_0x1b7eb5||!_0x28b1a8[_0x29e17f(0xfc)](_0x54574,_0x2df921))return null;let _0x576ecb=_0x28b1a8[_0x29e17f(0x1fc)](_0x1b7eb5+_0x167cc8[_0x29e17f(0x1a8)],_0x2df921);return/^\d+$/[_0x29e17f(0x10f)](_0x576ecb)?Number(_0x576ecb):null;}function et(_0x478085,_0xe514a0){const _0x31a7f5=_0x4a7418;let _0x4809a5='@'+_0xe514a0,_0x1f91c5=_0x478085[_0x31a7f5(0x13f)](_0x4809a5);if(_0x1f91c5<0x0)return null;let _0x38ef9a=_0x478085['indexOf']('@',_0x1f91c5+_0x4809a5[_0x31a7f5(0x1a8)]);if(_0x38ef9a<=_0x1f91c5)return null;let _0x4d5407=_0x478085[_0x31a7f5(0x1fc)](_0x1f91c5+_0x4809a5[_0x31a7f5(0x1a8)],_0x38ef9a);return/^\d+$/['test'](_0x4d5407)?Number(_0x4d5407):null;}var Ft=['BIRT','DEAT',_0x4a7418(0x1b1),'BURI','CHR',_0x4a7418(0x1ef)];function nt(_0x1a5a39,_0x368cae){const _0x2eda59=_0x4a7418;let _0x462ffb=[],_0x3b26f1=[..._0x368cae],_0x4c2311=_0x422075=>_0x422075[_0x2eda59(0x201)]()['startsWith']('1\x20');for(let _0x5bd8c8=0x0;_0x5bd8c8<_0x1a5a39['length'];_0x5bd8c8++){let _0x1d78cf=_0x1a5a39[_0x5bd8c8];if(_0x1d78cf['startsWith'](_0x2eda59(0x1d5))||_0x1d78cf[_0x2eda59(0x17c)](_0x2eda59(0xda))){let _0x161e32=et(_0x1d78cf,'I');_0x161e32!==null&&_0x3b26f1[_0x2eda59(0x203)](_0x161e32);}if(Ft[_0x2eda59(0x190)](_0x215df0=>_0x1d78cf['startsWith']('1\x20'+_0x215df0))){let _0x44756c=[_0x1d78cf],_0x7d02d2=_0x5bd8c8+0x1,_0x2fc554=_0x1a5a39[_0x7d02d2];for(;_0x2fc554&&!_0x4c2311(_0x2fc554);)_0x44756c['push'](_0x2fc554),_0x7d02d2+=0x1,_0x2fc554=_0x1a5a39[_0x7d02d2];_0x462ffb[_0x2eda59(0x203)](_0x44756c),_0x5bd8c8=_0x7d02d2-0x1;}}return{'entries':_0x462ffb['filter'](_0x13be2a=>_0x13be2a['length']>0x1),'indis':_0x3b26f1};}var Et=[_0x4a7418(0xe6),_0x4a7418(0x1b7),'MARR',_0x4a7418(0x1b3),_0x4a7418(0x1f4),_0x4a7418(0x1ef)],rt=['BIRT',_0x4a7418(0x1f4),_0x4a7418(0x1b1),_0x4a7418(0x1ef),_0x4a7418(0x1b7),'BURI'],st=[_0x4a7418(0x1e9),_0x4a7418(0x1e5),'MAR','APR',_0x4a7418(0x15c),'JUN',_0x4a7418(0x1c5),_0x4a7418(0x156),_0x4a7418(0x12f),_0x4a7418(0x15f),_0x4a7418(0x14b),'DEC'],B=class{constructor(_0x2a7656,_0x385558,_0x52a796,_0x466c9e,_0x4c864c,_0x3bf7e2,_0x53a2be){const _0x5b25af=_0x4a7418;l(this,_0x5b25af(0x218)),l(this,'dateAct',null),l(this,_0x5b25af(0x1ed),null),l(this,'INDIS',[]),l(this,_0x5b25af(0x1d3),new Map()),l(this,'multimediaFiles',new y()),l(this,_0x5b25af(0x228),new P()),(this[_0x5b25af(0x218)]=_0x2a7656,_0x385558&&(this['dateAct']=_0x385558),_0x52a796&&(this['place']=_0x52a796),_0x466c9e?.[_0x5b25af(0x1a8)]>0x0&&(this['INDIS']=_0x466c9e),_0x4c864c&&(this['multimediaFiles']=_0x4c864c),_0x3bf7e2&&(this[_0x5b25af(0x1d3)]=_0x3bf7e2),_0x53a2be&&(this[_0x5b25af(0x228)]=_0x53a2be));}get[_0x4a7418(0x114)](){const _0x597cb4=_0x4a7418;return Array[_0x597cb4(0x12b)](this['newMultimediaFiles']['values']());}get[_0x4a7418(0x11a)](){const _0x1b1cfc=_0x4a7418;return Array['from'](this[_0x1b1cfc(0x1d3)][_0x1b1cfc(0x152)]());}['addMultimedia'](_0x43fe82,_0x522c5e){const _0x30ecbf=_0x4a7418;let _0x28a2df=_0x522c5e??this[_0x30ecbf(0x205)][0x0];if(_0x28a2df===void 0x0||!_0x43fe82?.[_0x30ecbf(0xd1)])return;let _0x5548a9=_0x28a2df+'/'+this[_0x30ecbf(0x218)],_0x4db91c=this['mediaRelativePathsInUse'](),_0x29e975=L(_0x5548a9,_0x43fe82[_0x30ecbf(0xd1)]['name'],_0x4db91c);_0x43fe82['relativePath']=_0x29e975,this[_0x30ecbf(0x206)]['files'][_0x30ecbf(0x203)](_0x43fe82),this[_0x30ecbf(0x1d3)][_0x30ecbf(0x186)](_0x29e975,_0x43fe82);}[_0x4a7418(0x14d)](_0x31572b){const _0x480e5e=_0x4a7418;let _0x4d3568=Array[_0x480e5e(0x12b)](this['newMultimediaFiles']['keys']())[_0x480e5e(0x1c9)]((_0x927916,_0x43b59d)=>_0x31572b===_0x43b59d);if(_0x4d3568){this['newMultimediaFiles'][_0x480e5e(0x183)](_0x4d3568);let _0x1afbf6=this['multimediaFiles'][_0x480e5e(0x114)]['findIndex'](_0x36fb2f=>_0x36fb2f[_0x480e5e(0x122)]===_0x4d3568);_0x1afbf6>=0x0&&this['multimediaFiles'][_0x480e5e(0x114)][_0x480e5e(0x16c)](_0x1afbf6,0x1);}}[_0x4a7418(0x10c)](){const _0x297819=_0x4a7418;return w(this[_0x297819(0x1d3)][_0x297819(0x152)](),this[_0x297819(0x206)][_0x297819(0x114)]);}['updateType'](_0x30355a){this['type']=_0x30355a;}['addIndis'](_0x39f231){this['INDIS']=_0x39f231;}[_0x4a7418(0x213)](_0x4f7783){const _0x251ef9=_0x4a7418;this[_0x251ef9(0x1ed)]=_0x4f7783;}['updateDateAct'](_0x53c2bb){const _0x2355a8=_0x4a7418;_0x53c2bb?.[_0x2355a8(0xe0)]()&&(this['dateAct']=_0x53c2bb);}},F=class{constructor(){const _0x1b4e52=_0x4a7418;l(this,_0x1b4e52(0x117),[]);}['add'](_0x1a796e){const _0x1fa7c8=_0x4a7418;this[_0x1fa7c8(0x117)]['push'](_0x1a796e);}['updateFromIndex'](_0x336c23,_0x573aea){this['list'][_0x573aea]=_0x336c23;}[_0x4a7418(0x21a)](_0x2b8354){const _0x1ded7f=_0x4a7418;let _0x121f12=this[_0x1ded7f(0x117)][_0x1ded7f(0xe1)]((_0x148525,_0x428903)=>_0x428903===_0x2b8354);_0x121f12>=0x0&&this[_0x1ded7f(0x117)]['splice'](_0x121f12,0x1);}['removeAll'](){this['list']=[];}['sortByDate'](){const _0x20c402=_0x4a7418;this[_0x20c402(0x117)]=[...this['list']][_0x20c402(0xf7)]((_0x156909,_0x2b22d8)=>{const _0x36359d=_0x20c402;let _0x353974=this[_0x36359d(0x214)](_0x156909),_0x1e7227=this[_0x36359d(0x214)](_0x2b22d8),_0x5d2ee9=this['compareMarriageAndDivorce'](_0x156909,_0x2b22d8);if(_0x5d2ee9!==0x0)return _0x5d2ee9;if(!_0x353974&&!_0x1e7227)return this[_0x36359d(0x137)](_0x156909[_0x36359d(0x218)],_0x2b22d8[_0x36359d(0x218)]);if(!_0x353974&&_0x1e7227)return 0x1;if(_0x353974&&!_0x1e7227)return-0x1;let _0x1a522d=_0x156909[_0x36359d(0xd4)][_0x36359d(0x20c)],_0x179d4f=_0x2b22d8['dateAct'][_0x36359d(0x20c)];if(_0x1a522d!==_0x179d4f)return _0x1a522d-_0x179d4f;let _0x2a7c1a=_0x156909['dateAct']?.[_0x36359d(0x1fd)]||'',_0xeba6b7=_0x2b22d8[_0x36359d(0xd4)]?.[_0x36359d(0x1fd)]||'',_0x41be30=st[_0x36359d(0x13f)](_0x2a7c1a),_0x5d21b3=st[_0x36359d(0x13f)](_0xeba6b7),_0x5997dc=_0x41be30===-0x1?Number[_0x36359d(0x160)]:_0x41be30,_0x2c156b=_0x5d21b3===-0x1?Number[_0x36359d(0x160)]:_0x5d21b3;if(_0x5997dc!==_0x2c156b)return _0x5997dc-_0x2c156b;let _0x2da380=_0x156909[_0x36359d(0xd4)]?.[_0x36359d(0x171)]||0x0,_0x5d7f26=_0x2b22d8[_0x36359d(0xd4)]?.[_0x36359d(0x171)]||0x0;return _0x2da380-_0x5d7f26;});}[_0x4a7418(0x214)](_0x1e813b){const _0x25f511=_0x4a7418;let _0x135386=_0x1e813b[_0x25f511(0xd4)]?.['year'];return Number[_0x25f511(0x11d)](_0x135386)&&_0x135386>0x0;}['compareByTypeOrder'](_0x461352,_0xfdfd89){const _0x75f35c=_0x4a7418;let _0x4de190=rt[_0x75f35c(0x13f)](_0x461352),_0x414a02=rt['indexOf'](_0xfdfd89);return _0x4de190-_0x414a02;}[_0x4a7418(0x1ad)](_0xb55d29,_0x4994b9){const _0x395278=_0x4a7418;return!(_0xb55d29['type']===_0x395278(0x1b1)&&_0x4994b9['type']===_0x395278(0x1ef)||_0xb55d29[_0x395278(0x218)]===_0x395278(0x1ef)&&_0x4994b9['type']==='MARR')||!this['haveSameParticipants'](_0xb55d29,_0x4994b9)?0x0:_0xb55d29['type']==='MARR'?-0x1:0x1;}['haveSameParticipants'](_0x228dc1,_0x469933){const _0x1d7256=_0x4a7418;if(_0x228dc1['INDIS'][_0x1d7256(0x1a8)]===0x0||_0x469933[_0x1d7256(0x205)]['length']===0x0||_0x228dc1[_0x1d7256(0x205)][_0x1d7256(0x1a8)]!==_0x469933['INDIS'][_0x1d7256(0x1a8)])return!0x1;let _0x5de616=[..._0x228dc1[_0x1d7256(0x205)]]['sort']((_0x2e5f42,_0x129709)=>_0x2e5f42-_0x129709),_0x55872d=[..._0x469933['INDIS']]['sort']((_0x3e41b1,_0x2f4ca9)=>_0x3e41b1-_0x2f4ca9);return _0x5de616['every']((_0x5b36e6,_0x17a4c5)=>_0x5b36e6===_0x55872d[_0x17a4c5]);}},G=class extends F{[_0x4a7418(0x158)](_0x4e4f58,_0x3a690c,_0x32ae7f){const _0x4770fa=_0x4a7418;let _0x52079b=nt(_0x4e4f58,_0x3a690c);this['convertToActs'](_0x52079b['entries'],_0x52079b[_0x4770fa(0x1f0)],_0x32ae7f);}['convertToActs'](_0x582284,_0x4f6e8d,_0x378ca3){const _0x14ebf3=_0x4a7418;for(let _0x90de00 of _0x582284){let _0x217706=_0x90de00[0x0],_0x120eb2=this[_0x14ebf3(0x1d1)](_0x217706);if(!_0x120eb2)continue;let _0x44c902,_0x88b1e=new E(),_0x498ff8=new y(),_0x2d8786=new Map(),_0x5e84ff=[];for(let _0x5b7385=0x1;_0x5b7385<_0x90de00[_0x14ebf3(0x1a8)];_0x5b7385++){let _0x15299b=_0x90de00[_0x5b7385],_0x3c6102=M(_0x15299b);if(!_0x3c6102)continue;let {tag:_0x51a648,value:_0x36591c}=_0x3c6102;switch(_0x51a648){case'DATE':{let _0x243f6d=_0x36591c;_0x243f6d!=='inconnue'&&(_0x44c902=new T(_0x243f6d));break;}case _0x14ebf3(0x209):{let _0x26fce8=_0x36591c;_0x88b1e[_0x14ebf3(0x229)](_0x26fce8);break;}case _0x14ebf3(0x1e0):case _0x14ebf3(0x1d4):{let _0x13870e=_0x36591c;_0x5e84ff['push'](Number(_0x13870e));break;}case _0x14ebf3(0x210):{let _0x476c22=_0x36591c['trim'](),_0x5e916c=_0x378ca3[_0x14ebf3(0x188)](_0x476c22),_0x1bc2fe=new N(_0x5e916c);_0x1bc2fe[_0x14ebf3(0x122)]=_0x476c22,_0x498ff8[_0x14ebf3(0x114)]['push'](_0x1bc2fe),_0x2d8786[_0x14ebf3(0x186)](_0x476c22,_0x1bc2fe);break;}default:break;}_0x5e84ff[_0x14ebf3(0x1a8)]===0x2&&_0x88b1e[_0x14ebf3(0x1bb)][_0x14ebf3(0x104)](_0x5e84ff);}if(_0x44c902||_0x88b1e){let _0x4c4c94=new B(_0x120eb2,_0x44c902,_0x88b1e,[],_0x498ff8,_0x2d8786);_0x4c4c94['addIndis'](_0x4f6e8d),this['add'](_0x4c4c94);}}}[_0x4a7418(0x1d1)](_0x27440d){const _0x52822c=_0x4a7418;return Et['find'](_0x172973=>_0x27440d[_0x52822c(0xfc)](_0x172973))??null;}};function it(_0x37c5d8){const _0x2462c2=_0x4a7418;let _0x16557e=/\/([^/]+)\//[_0x2462c2(0x18c)](_0x37c5d8);return{'firstnames':(_0x16557e?_0x37c5d8[_0x2462c2(0x1a4)](_0x16557e[0x0],''):_0x37c5d8)['replace'](/"/g,'')[_0x2462c2(0x1a4)](/\/+/g,'')['trim']()['split'](/\s+/)[_0x2462c2(0x12d)](Boolean),'lastname':_0x16557e?.[0x1]?.[_0x2462c2(0x208)]()[_0x2462c2(0x116)]()??''};}function ot(_0x53c28e){const _0x303054=_0x4a7418;for(let _0x305022 of _0x53c28e){let _0x117675=M(_0x305022);if(_0x117675?.[_0x303054(0x1d6)]===_0x303054(0x1e2))return _0x117675[_0x303054(0x219)];}return null;}var R=(_0x209f4a=>(_0x209f4a['M']='M',_0x209f4a['F']='F',_0x209f4a))(R||{}),S=class{constructor(_0x49193d,_0x362719,_0x582f72,_0x26aff1,_0xa5a2a6,_0x3a3063,_0xdac742,_0x1e2fe2,_0xb67e98,_0x1cf28){const _0x2d289c=_0x4a7418;l(this,'sosa'),l(this,'INDI'),l(this,'SEX'),l(this,_0x2d289c(0x13b)),l(this,_0x2d289c(0x167)),l(this,_0x2d289c(0x1f6)),l(this,_0x2d289c(0xf3),[]),l(this,'newMultimediaFiles',new Map()),l(this,_0x2d289c(0x206),new y()),l(this,'acts',new F()),l(this,_0x2d289c(0x228),new P()),(this['INDI']=_0xdac742,this[_0x2d289c(0x1af)]=_0x362719,this['FAMC']=_0xa5a2a6,this['FAMS']=_0x3a3063??[],this[_0x2d289c(0xd5)]=_0x49193d,this['firstnames']=_0x582f72??[],this[_0x2d289c(0x167)]=_0x26aff1??'',_0x1e2fe2&&_0x1e2fe2['files'][_0x2d289c(0x1a8)]>0x0&&(this[_0x2d289c(0x206)]=_0x1e2fe2),_0x1cf28&&_0x1cf28['list']['length']>0x0&&(this[_0x2d289c(0x199)]=_0x1cf28));}get[_0x4a7418(0x114)](){const _0x3b9dea=_0x4a7418;return Array[_0x3b9dea(0x12b)](this[_0x3b9dea(0x1d3)]['values']());}get['keysFiles'](){const _0x3b389d=_0x4a7418;return Array[_0x3b389d(0x12b)](this[_0x3b389d(0x1d3)][_0x3b389d(0x152)]());}[_0x4a7418(0x124)](_0x3c5c3f,_0x469c0c,_0x11efdd,_0x9657dc){const _0x7d3ac9=_0x4a7418;let _0x2ffa02=_0x3c5c3f['map'](_0x1d7823=>_0x1d7823['replace'](/[\n\r]+/g,''));_0x2ffa02['forEach'](_0x23a68b=>{const _0x49b60d=_0x3bd6;this[_0x49b60d(0x133)](_0x23a68b,_0x11efdd,_0x9657dc);}),this['createFirstnamesAndLastnameJson'](_0x2ffa02);let _0x356920=new G(),_0x187413=typeof this[_0x7d3ac9(0x1bc)]=='number'?[this[_0x7d3ac9(0x1bc)]]:[];_0x356920['extractActsInfo'](_0x2ffa02,_0x187413,_0x11efdd),this[_0x7d3ac9(0xf3)]?.['length']>0x0&&_0x469c0c&&this[_0x7d3ac9(0xf3)][_0x7d3ac9(0x19a)](_0x3dbe15=>{const _0x335ecd=_0x7d3ac9;let _0x49ac0c=_0x469c0c[_0x335ecd(0x188)](_0x3dbe15);_0x356920[_0x335ecd(0x158)](_0x49ac0c,[],_0x11efdd);}),this[_0x7d3ac9(0x199)]=_0x356920,this[_0x7d3ac9(0x199)][_0x7d3ac9(0x145)]();}[_0x4a7418(0x133)](_0x3b0e4c,_0x4f6baf,_0x28d0e3){const _0x787ef8=_0x4a7418;let _0x325794=M(_0x3b0e4c);if(!_0x325794)return;let {level:_0x47f935,tag:_0x30ef09,value:_0x23693e}=_0x325794;if(_0x47f935==='0'&&_0x30ef09['startsWith']('@I')){this[_0x787ef8(0x18b)](_0x3b0e4c);return;}switch(_0x30ef09){case _0x787ef8(0x1af):this['createSexFromValue'](_0x23693e);break;case'FAMC':this[_0x787ef8(0x15e)](_0x23693e);break;case'FAMS':this[_0x787ef8(0x127)](_0x23693e);break;case'NOTE':this[_0x787ef8(0x1be)](_0x23693e,_0x28d0e3);break;case _0x787ef8(0x210):this[_0x787ef8(0x177)](_0x23693e,_0x4f6baf);break;default:break;}}[_0x4a7418(0x18b)](_0x31d8e5){const _0x476dd3=_0x4a7418;let _0x55d262=tt(_0x31d8e5,'I',_0x476dd3(0x1bc));_0x55d262!==null&&(this[_0x476dd3(0x1bc)]=_0x55d262);}[_0x4a7418(0x105)](_0x38d5ea){const _0x1e4ea9=_0x4a7418;let _0x47a253=_0x38d5ea[_0x1e4ea9(0x208)]();(_0x47a253==='M'||_0x47a253==='F')&&(this['SEX']=_0x47a253);}[_0x4a7418(0x15e)](_0x41522f){const _0x29ee61=_0x4a7418;let _0xabe6f9=O(_0x41522f,'F');_0xabe6f9!==null&&(this[_0x29ee61(0x1f6)]=_0xabe6f9);}[_0x4a7418(0x127)](_0x305e84){const _0x5da10f=_0x4a7418;let _0x1622ef=O(_0x305e84,'F');_0x1622ef!==null&&this[_0x5da10f(0xf3)][_0x5da10f(0x203)](_0x1622ef);}['createMultimediaFilesFromValue'](_0x5c3bad,_0x3f40b0){const _0x5ba02e=_0x4a7418;if(!_0x3f40b0?.[_0x5ba02e(0x20f)]||!_0x5c3bad)return;let _0x3142b0=_0x5c3bad[_0x5ba02e(0x208)](),_0x1a516f=new N(_0x3f40b0['get'](_0x3142b0));_0x1a516f['relativePath']=_0x3142b0,this['multimediaFiles'][_0x5ba02e(0x114)][_0x5ba02e(0x203)](_0x1a516f),this[_0x5ba02e(0x1d3)][_0x5ba02e(0x186)](_0x3142b0,_0x1a516f);}[_0x4a7418(0x1be)](_0x12506a,_0x79344e){const _0x289221=_0x4a7418;let _0x4cb1cd=_0x12506a['trim']();if(!_0x4cb1cd)return;let _0x211a11=O(_0x4cb1cd,'N');if(_0x211a11!==null&&_0x79344e?.['size']){let _0x526b0d=_0x79344e['get'](_0x211a11);if(!_0x526b0d||_0x526b0d['length']===0x0)return;let _0xafa145=new D();_0xafa145['updateLines']([..._0x526b0d]),typeof this[_0x289221(0x1bc)]=='number'&&_0xafa145['addIndis']([this['INDI']]),this[_0x289221(0x228)]['addNote'](_0xafa145);return;}let _0x3607fe=new D();_0x3607fe[_0x289221(0x1da)]([_0x4cb1cd]),typeof this['INDI']==_0x289221(0xf5)&&_0x3607fe['addIndis']([this[_0x289221(0x1bc)]]),this[_0x289221(0x228)]['addNote'](_0x3607fe);}[_0x4a7418(0x1f1)](_0x3a7ec7){const _0x5ec750=_0x4a7418;if(typeof this['INDI']!=_0x5ec750(0xf5)||!_0x3a7ec7?.[_0x5ec750(0xd1)])return;let _0x4add39=''+this['INDI'],_0x21ad49=this['mediaRelativePathsInUse'](),_0x59313e=L(_0x4add39,_0x3a7ec7[_0x5ec750(0xd1)][_0x5ec750(0x15d)],_0x21ad49);_0x3a7ec7[_0x5ec750(0x122)]=_0x59313e,this[_0x5ec750(0x206)]['files']['push'](_0x3a7ec7),this['newMultimediaFiles']['set'](_0x59313e,_0x3a7ec7);}[_0x4a7418(0x18a)](_0x423984){const _0x1f0b40=_0x4a7418;this[_0x1f0b40(0x1d3)]['delete'](_0x423984);let _0x389337=this['multimediaFiles'][_0x1f0b40(0x114)][_0x1f0b40(0xe1)](_0x4c5e06=>_0x4c5e06['relativePath']===_0x423984);_0x389337>=0x0&&this['multimediaFiles'][_0x1f0b40(0x114)][_0x1f0b40(0x16c)](_0x389337,0x1);}[_0x4a7418(0x10c)](){const _0x234d53=_0x4a7418;return w(this['newMultimediaFiles'][_0x234d53(0x152)](),this['multimediaFiles']['files']);}[_0x4a7418(0x16f)](_0x13ad76){const _0x36762b=_0x4a7418;let _0x3e3b96=ot(_0x13ad76);if(!_0x3e3b96)return;let _0x97254f=it(_0x3e3b96);this['firstnames']=_0x97254f['firstnames'],this[_0x36762b(0x167)]=_0x97254f['lastname'];}},U=class extends F{constructor(_0x5c1c76){super(),l(this,'year'),this['year']=_0x5c1c76;}},J=class{constructor(_0x3e75ff){const _0x3f83e6=_0x4a7418;l(this,_0x3f83e6(0x22a),[]),(this[_0x3f83e6(0x22a)]=[..._0x3e75ff]['reduce']((_0x64de0b,_0x3f8441)=>{const _0x1decaf=_0x3f83e6;let _0x17a8ec,{dateAct:_0x1a8992,INDIS:_0x4ba93f}=_0x3f8441;if(_0x1a8992?.[_0x1decaf(0x20c)]){let _0x4dded9=Number(_0x1a8992['year']),_0xc8159b=_0x64de0b[_0x1decaf(0xe1)](_0x17beea=>_0x17beea?.[_0x1decaf(0x20c)]===_0x4dded9);_0xc8159b>=0x0?(_0x17a8ec=_0x64de0b[_0xc8159b],_0x17a8ec[_0x1decaf(0x117)]['find'](_0x1d0ce8=>_0x1d0ce8[_0x1decaf(0x205)][_0x1decaf(0x1c9)](_0x4b90e=>_0x4ba93f[_0x1decaf(0xfc)](_0x4b90e)))||(_0x17a8ec['add'](_0x3f8441),_0x64de0b[_0xc8159b]=_0x17a8ec)):(_0x17a8ec=new U(_0x4dded9),_0x17a8ec[_0x1decaf(0xe2)](_0x3f8441),_0x64de0b['push'](_0x17a8ec));}return _0x64de0b;},[]),this['sortByYear']());}['sortByYear'](){const _0x3f2f83=_0x4a7418;this['events']=[...this[_0x3f2f83(0x22a)]]['sort']((_0x49f0fd,_0x47bd54)=>_0x49f0fd[_0x3f2f83(0x20c)]-_0x47bd54['year']);}},k=class{constructor(_0x5217a8){const _0x55c301=_0x4a7418;l(this,'informationPersons',[]),l(this,'informationFamilies',new Map()),l(this,_0x55c301(0x1fe),new Map()),_0x5217a8!==void 0x0&&this[_0x55c301(0x20d)](_0x5217a8);}['ingestGedcomText'](_0x1b8e9e){const _0x4fb68b=_0x4a7418;let _0x53bbb1=_0x1b8e9e['split']('\x0a')[_0x4fb68b(0x1c2)](_0x50bcdc=>_0x50bcdc[_0x4fb68b(0x1a4)](/\r$/,'')),_0x46276a=[],_0x29fd50=()=>{const _0x4dc912=_0x4fb68b;_0x46276a[_0x4dc912(0x1a8)]!==0x0&&(this['ingestRecordBlock'](_0x46276a[_0x4dc912(0xdf)]('\x0a')),_0x46276a=[]);};for(let _0x483800 of _0x53bbb1)_0x483800['startsWith']('0\x20')?(_0x29fd50(),_0x46276a=[_0x483800]):_0x46276a['length']>0x0&&_0x46276a['push'](_0x483800);_0x29fd50();}async['ingestGedcomFileStream'](_0x304559){const _0x407d22=_0x4a7418;if(typeof _0x304559['stream']!='function'||typeof TextDecoderStream>'u'){this[_0x407d22(0x20d)](await _0x304559[_0x407d22(0x157)]());return;}let _0x31b7c6=_0x304559['stream']()[_0x407d22(0x21b)](new TextDecoderStream())['getReader'](),_0x3ae970='',_0x4d3a42=null,_0x330abd=()=>{const _0x5703c9=_0x407d22;if(!_0x4d3a42||_0x4d3a42['length']===0x0){_0x4d3a42=null;return;}let _0x432f84=_0x4d3a42[_0x5703c9(0xdf)]('\x0a');_0x4d3a42=null,this[_0x5703c9(0x1c1)](_0x432f84);};for(;;){let {done:_0x4baf5e,value:_0x1a43d6}=await _0x31b7c6['read']();if(_0x1a43d6){_0x3ae970+=_0x1a43d6;let _0x5b41cc=_0x3ae970['indexOf']('\x0a');for(;_0x5b41cc!==-0x1;){let _0x554bab=_0x3ae970[_0x407d22(0x1fc)](0x0,_0x5b41cc);_0x3ae970=_0x3ae970['slice'](_0x5b41cc+0x1),_0x5b41cc=_0x3ae970[_0x407d22(0x13f)]('\x0a');let _0x46687b=_0x554bab['replace'](/\r$/,'');_0x46687b[_0x407d22(0x17c)]('0\x20')?(_0x330abd(),_0x4d3a42=[_0x46687b]):_0x4d3a42&&_0x4d3a42[_0x407d22(0x203)](_0x46687b);}}if(_0x4baf5e){if(_0x3ae970[_0x407d22(0x1a8)]===0x0){_0x330abd();break;}let _0x16107e=_0x3ae970[_0x407d22(0x1a4)](/\r$/,'');_0x16107e[_0x407d22(0x17c)]('0\x20')?(_0x330abd(),_0x4d3a42=[_0x16107e]):_0x4d3a42&&_0x4d3a42[_0x407d22(0x203)](_0x16107e),_0x330abd();break;}}}['ingestRecordBlock'](_0x151f64){const _0x12445b=_0x4a7418;let _0x459450=_0x151f64[_0x12445b(0x1f8)]('\x0a')[0x0]?.[_0x12445b(0x201)]()??'',_0x5c84d7=_0x459450['startsWith']('0\x20')?_0x459450[_0x12445b(0x1fc)](0x2):_0x459450;switch(''+_0x5c84d7[0x0]+_0x5c84d7[0x1]){case'@I':this[_0x12445b(0x1b6)](_0x151f64);break;case'@F':this[_0x12445b(0x179)](_0x151f64);break;case'@N':this[_0x12445b(0x21d)](_0x151f64);break;case'@S':break;default:break;}}['splitInformationPersons'](_0x3b10fd){const _0x124ca1=_0x4a7418;this[_0x124ca1(0x1cf)]['push'](_0x3b10fd['split']('\x0a'));}['splitInformationFamilies'](_0x1da34d){const _0x549120=_0x4a7418;let _0x308b1d=this['extractXrefId'](_0x1da34d,'@F');if(_0x308b1d===null)return;let _0x50bdfb=_0x1da34d['split']('\x0a')['slice'](0x1);this[_0x549120(0x197)]['set'](_0x308b1d,_0x50bdfb);}['splitInformationNotes'](_0x394475){const _0x328fdf=_0x4a7418;let _0x23fae5=this[_0x328fdf(0x1df)](_0x394475,'@N');if(_0x23fae5===null)return;let _0x29fbb6=_0x394475['split']('\x0a')['slice'](0x1);this[_0x328fdf(0x1fe)]['set'](_0x23fae5,_0x29fbb6);}[_0x4a7418(0x1df)](_0x1f1b8b,_0x4a5834){const _0x35aee6=_0x4a7418;let _0x2e5327=_0x1f1b8b['indexOf'](_0x4a5834);if(_0x2e5327<0x0)return null;let _0x4963ea=_0x1f1b8b[_0x35aee6(0x13f)]('@',_0x2e5327+_0x4a5834[_0x35aee6(0x1a8)]);if(_0x4963ea<=_0x2e5327)return null;let _0x27597a=_0x1f1b8b[_0x35aee6(0x1fc)](_0x2e5327+_0x4a5834[_0x35aee6(0x1a8)],_0x4963ea);return/^\d+$/['test'](_0x27597a)?Number(_0x27597a):null;}},at=_0x5343ae=>{const _0xa758a=_0x4a7418;let _0x470351=_0x5343ae[_0xa758a(0x1c2)](_0xf85f59=>_0xf85f59[_0xa758a(0x1bc)])[_0xa758a(0x12d)](_0x2e690b=>typeof _0x2e690b==_0xa758a(0xf5))['sort']((_0x5b7f44,_0x57fe42)=>_0x5b7f44-_0x57fe42);return _0x470351[_0xa758a(0x1a8)]===0x0?0x1:_0x470351[_0x470351[_0xa758a(0x1a8)]-0x1]+0x1;},b=class o extends k{constructor(_0x215411,_0x374d64,_0x4d415b,_0x3c8859){const _0x91b57b=_0x4a7418;super(_0x215411),l(this,_0x91b57b(0xe5)),l(this,_0x91b57b(0xfd)),l(this,'partnersMap'),l(this,_0x91b57b(0x144)),l(this,_0x91b57b(0x10e)),l(this,'placesMap'),(this['mapFiles']=_0x374d64??new Map(),this['placesMap']=_0x4d415b??new Map(),this[_0x91b57b(0xfd)]=_0x3c8859??new Map(),_0x215411!==void 0x0&&this['finalizeAfterParse']());}static async[_0x4a7418(0x12c)](_0x27a9d2,_0x5980e1,_0x35abbf,_0x49d2ce){const _0x484598=_0x4a7418;let _0x540dbc=new o(void 0x0,_0x5980e1,_0x35abbf,_0x49d2ce);return await _0x540dbc[_0x484598(0x222)](_0x27a9d2),_0x540dbc['finalizeAfterParse'](),_0x540dbc;}[_0x4a7418(0x1dc)](){const _0x43d4fa=_0x4a7418;this[_0x43d4fa(0xe5)]=this[_0x43d4fa(0x1bd)](),this['hydratePlacesFromActs'](),this['partnersMap']=new Map(),this[_0x43d4fa(0x144)]=new Map(),this[_0x43d4fa(0x1a6)]();}[_0x4a7418(0x1a6)](){const _0x4c13f3=_0x4a7418;this[_0x4c13f3(0xe5)]['forEach'](_0x4ef84f=>{const _0x2ebeb5=_0x4c13f3;this[_0x2ebeb5(0x202)](_0x4ef84f),this['linkPersonAsChild'](_0x4ef84f);});}[_0x4a7418(0x198)](_0x2d0270){const _0x238bc4=_0x4a7418;return this[_0x238bc4(0x227)](_0x2d0270,[])[_0x238bc4(0xf7)]((_0x363d58,_0x5753e4)=>_0x363d58[_0x238bc4(0xd5)]-_0x5753e4[_0x238bc4(0xd5)]);}[_0x4a7418(0x110)](){const _0x4aac54=_0x4a7418;return at(this[_0x4aac54(0xe5)]);}['haveParentsOfPerson'](_0x44f0b7,_0x10a5b9,_0x2405e0){const _0x3ed917=_0x4a7418;let _0x513aa9=Object['assign']({},_0x44f0b7);if(_0x513aa9['sosa']=_0x2405e0?_0x2405e0*0x2+(_0x44f0b7['SEX']==='F'?0x1:0x0):0x1,this['partnersMap'][_0x3ed917(0x14f)](_0x513aa9['FAMC'])){let _0x1e2a8b=[...this['partnersMap']['get'](_0x513aa9['FAMC'])];_0x1e2a8b['length']>0x0&&_0x1e2a8b[_0x3ed917(0x19a)](_0x101e90=>{const _0x4ec0f7=_0x3ed917;this['haveParentsOfPerson'](_0x101e90,_0x10a5b9,_0x513aa9[_0x4ec0f7(0xd5)]);});}return _0x10a5b9['push'](_0x513aa9),_0x10a5b9;}[_0x4a7418(0x1bd)](){const _0x35809b=_0x4a7418;return this['informationPersons']?.['length']?this[_0x35809b(0x1cf)][_0x35809b(0x1c2)](_0x354194=>this[_0x35809b(0x193)](_0x354194))['sort']((_0x3c1707,_0x193043)=>(_0x3c1707['FAMC']??Number['MAX_SAFE_INTEGER'])-(_0x193043['FAMC']??Number[_0x35809b(0x160)])):[];}[_0x4a7418(0x193)](_0x4bc2ee){const _0xeddf17=_0x4a7418;let _0x25e153=new S();return _0x25e153[_0xeddf17(0x124)](_0x4bc2ee,this['informationFamilies'],this['mapFiles'],this[_0xeddf17(0x1fe)]),typeof _0x25e153[_0xeddf17(0x1bc)]==_0xeddf17(0xf5)&&this['mapPersons'][_0xeddf17(0x186)](_0x25e153[_0xeddf17(0x1bc)],_0x25e153),_0x25e153;}['hydratePlacesFromActs'](){const _0x14aa80=_0x4a7418;this[_0x14aa80(0xe5)]['forEach'](_0x361814=>{const _0x47ccfb=_0x14aa80;_0x361814[_0x47ccfb(0x199)][_0x47ccfb(0x117)]['forEach'](_0x49764c=>{const _0x2636fa=_0x47ccfb;let _0x33a200=_0x49764c[_0x2636fa(0x1ed)]?.[_0x2636fa(0x1ab)];_0x33a200&&this[_0x2636fa(0x22b)](_0x33a200,_0x49764c['place']);});});}[_0x4a7418(0x22b)](_0x4925af,_0x4b8b95){const _0x11fc94=_0x4a7418;let _0x3972c9=this['placesMap'][_0x11fc94(0x188)](_0x4925af);if(!_0x3972c9){this['placesMap']['set'](_0x4925af,_0x4b8b95);return;}let {latitude:_0x2709f5,longitude:_0x57eb33}=_0x3972c9[_0x11fc94(0x1bb)];(_0x2709f5===0x0||_0x2709f5)&&(_0x57eb33===0x0||_0x57eb33)||this[_0x11fc94(0x1ce)][_0x11fc94(0x186)](_0x4925af,_0x4b8b95);}['linkPersonAsPartner'](_0x58bafa){const _0x1313d6=_0x4a7418;_0x58bafa[_0x1313d6(0xf3)]?.[_0x1313d6(0x1a8)]&&_0x58bafa['FAMS'][_0x1313d6(0x19a)](_0x4bc7cc=>{const _0xf284d2=_0x1313d6;let _0x45b9c0=this[_0xf284d2(0x1a5)][_0xf284d2(0x188)](_0x4bc7cc)??[];this['partnersMap'][_0xf284d2(0x186)](_0x4bc7cc,[_0x58bafa,..._0x45b9c0]);});}[_0x4a7418(0x165)](_0x13b3b9){const _0xc46902=_0x4a7418;if(!_0x13b3b9['FAMC'])return;let _0xa4cd64=this[_0xc46902(0x144)][_0xc46902(0x188)](_0x13b3b9['FAMC'])??[];this['childsMap']['set'](_0x13b3b9[_0xc46902(0x1f6)],[_0x13b3b9,..._0xa4cd64]);}};import{unzipSync as _0x2525b7}from'fflate';function _0x3bd6(_0x1b1f46,_0x55ff32){_0x1b1f46=_0x1b1f46-0xcd;const _0x33ab35=_0x33ab();let _0x3bd66f=_0x33ab35[_0x1b1f46];return _0x3bd66f;}var Pt=async _0x478a86=>{if(!(_0x478a86 instanceof File))throw new Error('file\x20must\x20be\x20a\x20File');let {type:_0x51e7af}=_0x478a86;return _0x51e7af==='application/zip'?Dt(_0x478a86):lt(_0x478a86);},lt=async(_0x28c4a9,_0x7c7ac0)=>{const _0x2d3537=_0x4a7418;if(!(_0x28c4a9 instanceof File))throw new Error(_0x2d3537(0x1d7));if(!/\.ged$/[_0x2d3537(0x10f)](_0x28c4a9[_0x2d3537(0x15d)]))throw new Error(_0x2d3537(0x129));return b[_0x2d3537(0x12c)](_0x28c4a9,_0x7c7ac0);},vt=async _0x3fb90d=>{const _0x2d1931=_0x4a7418;let _0x3942d8=_0x2525b7(new Uint8Array(await _0x3fb90d['arrayBuffer']())),_0x1772ac=new Map();for(let [_0x527080,_0xa2ce60]of Object['entries'](_0x3942d8))_0x527080[_0x2d1931(0x17e)]('/')||_0x1772ac[_0x2d1931(0x186)](_0x527080,new File([Uint8Array['from'](_0xa2ce60)],_0x527080));return _0x1772ac;},Dt=async _0x51180d=>{const _0x2e8c7e=_0x4a7418;if(!(_0x51180d instanceof File))throw new Error('Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File');let _0x5a8089=await vt(_0x51180d[_0x2e8c7e(0x1fc)]()),_0x1ca960=/\.ged$/;for(let _0x16ccf1 of _0x5a8089[_0x2e8c7e(0x152)]())if(_0x1ca960[_0x2e8c7e(0x10f)](_0x16ccf1))return lt(_0x5a8089['get'](_0x16ccf1),_0x5a8089);throw new Error(_0x2e8c7e(0x109));};function _0x33ab(){const _0x43d0a4=['1\x20HUSB','tag','Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File','CONT','\x20CONT\x20','updateLines','MARS','finalizeAfterParse','getName','DATA','extractXrefId','LATI','updateFromToDates','NAME','ENDL','BET','FEB','ASSO','IMMI','SUBN','JAN','1\x20CHIL\x20@I','PHON','1395HvzEjv','place','getIndi','DIV','indis','addMultimedia','send','(\x5cd+)@$','CHR','QUAY','FAMC','CHIL','split','PROP','ADOP','BLOB','slice','month','informationNotes','BAPM','getFullYear','trimStart','linkPersonAsPartner','push','typeDateAct','INDIS','multimediaFiles','\x20AND\x20','trim','PLAC','unknown','FCOM','year','ingestGedcomText','MEDI','size','FILE','10134146pSkZpZ','83euhQKh','updatePlace','hasSortableDate','MAR','JUN','FILES','type','value','removeFromIndex','pipeThrough','BLES','splitInformationNotes','parse','2496ObOrWs','updateQualifiedDate','parseTwoParts','ingestGedcomFileStream','1\x20FILE\x20','SLGS','formatDate','lines','haveParentsOfPerson','notes','addCity','events','upsertPlace','1\x20DATE\x20','NOTES','TYPE','.ged','ANCI','RESN','contentGedcom','beginGedcom','file','resolveZipPath','1147140NqRnwe','dateAct','sosa','ORDI','AUTH','ADR2','1\x20GEDC','1\x20WIFE','inconnue','all','getFamc','COPR','join','isValid','findIndex','add','convertMonth','DEC','persons','BIRT','CENS','CHAN','IDNO','CONF','gedcom-ts_','getPlace','RELA','toLocaleTimeString','FORM','download','gedcomBlob','.zip','FAMS','PEDI','number','resolvePersonIndi','sort','arrayBuffer','2\x20FORM\x20LINEAGE-LINKED','DEST','endYear','includes','mapPersons','latitude','tryParseRangeDate','onerror','responseText','AFN','1\x20SOUR\x20generated\x20by\x20gedcom-ts','addCoordinates','createSexFromValue','onload','setInformationFamilies','DIVF','You\x20don\x27t\x20have\x20any\x20.ged\x20File\x20in\x20your\x20.gdz\x20File','BET\x20','updateExactDate','mediaRelativePathsInUse','https://nominatim.openstreetmap.org/search.php?city=','mapFiles','test','generateUniqueIndi','9804vYVQdE','AGNC','line','files','HEAD','toUpperCase','list','addNote','2\x20TIME\x20','keysFiles','RETI','CTRY','isFinite','ADR1','2\x20FILE\x20','getFams','OBJE','relativePath','SURN','createPersonJson','SSN','24rnsOAC','createFAMSFromValue','RELI','Le\x20type\x20doit-être\x20au\x20format:\x20application/x-gedcom','2\x20DATE\x20','from','fromGedcomFile','filter','ADDR','SEP','SOUR','SPFX','DESC','parsePersonLine','getSex','ANUL','endMonth','compareByTypeOrder','parseMonthToken','CAST','GEDC','firstnames','status','EDUC','1015nTlPnZ','indexOf','AGE','now','_gedcom-ts_','isRelativeType','childsMap','sortByDate','entries','getFiles','CAUS','FROM','39790XwoZKr','NOV','\x20TO\x20','removeMultimedia','BASM','has','VERS','NOTE','keys','parseThreeParts','clearDate','STAE','AUG','text','extractActsInfo','Impossible\x20de\x20trouver\x20un\x20nom\x20de\x20fichier\x20média\x20disponible','OCCU','localeCompare','MAY','name','createFAMCFromValue','OCT','MAX_SAFE_INTEGER','ACTS','ORDN','TEXT','date','linkPersonAsChild','RFN','lastname','ANCE','PLACE','endDay','DSCR','splice','RIN','fr-FR','createFirstnamesAndLastnameJson','SUBM','day','GIVN','87NbooPf','FAM','PROB','CONC','createMultimediaFilesFromValue','CHAR','splitInformationFamilies','REPO','toLocaleDateString','startsWith','getType','endsWith','\x20@I','CITY','application/zip','updateBetweenDates','delete','getFile','NCHI','set','BARM','get','WIFE','deleteMultimedia','createIndiFromZeroLine','exec','ALIA','HUSB','title','some','22166PZnDQr','0\x20@F','buildPerson','formatCoreDate','SLGC','EVEN','informationFamilies','createDirectAncestries','acts','forEach','NMR','assignMonthYearFromSlash','DATE','NATU','parseCoreDateValue','application/x-gedcom','4\x20LATI\x20','string','removeAll','replace','partnersMap','groupPartners','media/events/','length','ENGA','244923XFhKzj','city','CREM','compareMarriageAndDivorce','1\x20NAME','SEX','MARL','MARR','TRLR','BURI','defineProperty','LEGA','splitInformationPersons','DEAT','EMIG','1\x20FAMC\x20@F','TEMP','coordinate','INDI','createPersons','addNoteFromGedcom','CONL','65QrIbbT','ingestRecordBlock','map','RESI','STAT','JUL','ownerIndi','NPFX','TITL','find','DESI','NSFX','CORP','haveFiles','placesMap','informationPersons','longitude','resolveTypeAct','resolveActIndis','newMultimediaFiles','LONG'];_0x33ab=function(){return _0x43d0a4;};return _0x33ab();}import{zip as _0x4662b1}from'fflate';var ct='\x0a';function St(_0x4a12f8){const _0x552958=_0x4a7418;if(!_0x4a12f8?.[_0x552958(0x1a8)])return'';let _0x581cb4='',_0x3779ab=!0x1;for(let _0xf96c55 of _0x4a12f8){let _0x2809e4=M(_0xf96c55[_0x552958(0x201)]());if(!_0x2809e4)continue;let {level:_0x3371eb,tag:_0x5b7b9a,value:_0xa5c53c}=_0x2809e4;if(_0x3371eb==='0'&&_0xa5c53c==='NOTE'&&_0x5b7b9a[_0x552958(0x17c)]('@N')&&_0x5b7b9a['endsWith']('@')){_0x3779ab=!0x0;continue;}if(_0x5b7b9a===_0x552958(0x151)){_0x581cb4=_0xa5c53c,_0x3779ab=!0x0;continue;}if(_0x5b7b9a===_0x552958(0x176)){_0x581cb4+=_0xa5c53c,_0x3779ab=!0x0;continue;}if(_0x5b7b9a===_0x552958(0x1d8)){_0x581cb4+=(_0x581cb4?'\x0a':'')+_0xa5c53c,_0x3779ab=!0x0;continue;}}return _0x3779ab?_0x581cb4['replace'](/\r\n/g,'\x0a')[_0x552958(0x1a4)](/\r/g,'\x0a'):_0x4a12f8['filter'](_0x541258=>_0x541258[_0x552958(0x1a8)]>0x0)['join']('\x0a')['replace'](/\r\n/g,'\x0a')[_0x552958(0x1a4)](/\r/g,'\x0a');}function Rt(_0x3cbd70,_0x289223){const _0x186f8c=_0x4a7418;let _0x3544ca=St(_0x3cbd70[_0x186f8c(0x226)]??[]);if(!_0x3544ca[_0x186f8c(0x208)]())return'';let _0x2ddf63=_0x289223+0x1,_0x1285fb=_0x3544ca[_0x186f8c(0x1f8)]('\x0a');for(;_0x1285fb[_0x186f8c(0x1a8)]>0x0&&_0x1285fb[0x0]==='';)_0x1285fb['shift']();if(_0x1285fb[_0x186f8c(0x1a8)]===0x0)return'';let [_0x2f6096,..._0x4e3c11]=_0x1285fb,_0x5c6aeb=_0x289223+'\x20NOTE\x20'+_0x2f6096+ct;return _0x4e3c11[_0x186f8c(0x1a8)]===0x0?_0x5c6aeb:_0x5c6aeb+_0x4e3c11[_0x186f8c(0x1c2)](_0x4bdb59=>_0x2ddf63+_0x186f8c(0x1d9)+_0x4bdb59+ct)[_0x186f8c(0xdf)]('');}function z(_0x2ffc16,_0x35779c){const _0x205c41=_0x4a7418;return _0x2ffc16?.['list']?.['length']?_0x2ffc16[_0x205c41(0x117)][_0x205c41(0x1c2)](_0x29e239=>Rt(_0x29e239,_0x35779c))[_0x205c41(0xdf)](''):'';}var p='\x0a',xt={'day':'2-digit','month':'2-digit','year':'numeric'},ut=(_0x374339,_0x5436af,_0x5d74a4)=>{const _0xdd6dce=_0x4a7418;let _0x18609c=_0x5436af[_0xdd6dce(0x122)]?.['trim']();if(_0x18609c&&_0x18609c[_0xdd6dce(0xfc)]('/'))return _0x18609c;let _0x73807a=_0x18609c||_0x5436af[_0xdd6dce(0xd1)]['name'];return _0x5d74a4['length']===0x1?_0x5d74a4[0x0]+'/'+_0x374339[_0xdd6dce(0x218)]+'/'+_0x73807a:_0xdd6dce(0x1a7)+(_0x5d74a4[_0xdd6dce(0x1a8)]>0x1?_0x5d74a4[_0xdd6dce(0xdf)]('-'):_0xdd6dce(0x20a))+'/'+_0x374339[_0xdd6dce(0x218)]+'/'+_0x73807a;},ht=(_0x222b7e,_0x2e5bfc)=>{const _0x1e8eab=_0x4a7418;let _0x4d3020=URL['createObjectURL'](_0x222b7e),_0x2cb2cf=document['createElement']('a');_0x2cb2cf['href']=_0x4d3020,_0x2cb2cf[_0x1e8eab(0xf0)]=_0x2e5bfc,_0x2cb2cf['click'](),setTimeout(()=>URL['revokeObjectURL'](_0x4d3020),0x0);},j=(..._0x57da6)=>{const _0x38872c=_0x4a7418;let _0x3f5bcf=new Map();for(let _0x5090eb of _0x57da6)if(_0x5090eb?.['length'])for(let _0x585484 of _0x5090eb){if(!_0x585484?.['file'])continue;let _0x819991=_0x585484[_0x38872c(0x122)]||_0x585484[_0x38872c(0xd1)]['name'];_0x3f5bcf[_0x38872c(0x14f)](_0x819991)||_0x3f5bcf[_0x38872c(0x186)](_0x819991,_0x585484);}return Array[_0x38872c(0x12b)](_0x3f5bcf['values']());},V=class{constructor(_0x5d61f2,_0x3e7db1,_0x3689ae){const _0x3affa7=_0x4a7418;l(this,_0x3affa7(0x18f)),l(this,_0x3affa7(0xe5)),l(this,'onCreate',Date[_0x3affa7(0x141)]()),l(this,_0x3affa7(0x1cd),!0x1);let _0xe87c0a=_0x5d61f2?.['trim']();this['title']=_0xe87c0a?_0xe87c0a+_0x3affa7(0x142)+this['onCreate']:_0x3affa7(0xeb)+this['onCreate'],this['persons']=_0x3e7db1,this[_0x3affa7(0x1cd)]=_0x3689ae;}get[_0x4a7418(0xd0)](){const _0xf4ca5d=_0x4a7418;let _0x5ef325=new Date();return'0\x20HEAD'+p+_0xf4ca5d(0x103)+p+_0xf4ca5d(0x22c)+_0x5ef325[_0xf4ca5d(0x17b)]('fr-FR',xt)+p+_0xf4ca5d(0x119)+_0x5ef325[_0xf4ca5d(0xee)](_0xf4ca5d(0x16e))+p+'1\x20FILE\x20'+this['title']+p+_0xf4ca5d(0xd9)+p+_0xf4ca5d(0xf9)+p+'1\x20CHAR\x20UTF-8'+p;}get['contentGedcom'](){const _0x9c932d=_0x4a7418;return this['persons'][_0x9c932d(0x1c2)](_0x2817b6=>new q(_0x2817b6,this[_0x9c932d(0x1cd)])['line']())[_0x9c932d(0xdf)]('')+new Z(this['persons'])[_0x9c932d(0x226)]();}[_0x4a7418(0xf1)](){const _0x4796b6=_0x4a7418;return new Blob([''+this['beginGedcom']+this[_0x4796b6(0xcf)]+_0x4796b6(0x1b2)],{'type':_0x4796b6(0x1a0)});}},W=class extends V{constructor(..._0x96bf38){const _0x2615e6=_0x4a7418;let [_0x2219b1,_0xa0ebd]=typeof _0x96bf38[0x0]==_0x2615e6(0x1a2)?[_0x96bf38[0x0],_0x96bf38[0x1]]:[void 0x0,_0x96bf38[0x0]];super(_0x2219b1,_0xa0ebd,!0x0);}async[_0x4a7418(0xf0)](){const _0x3b01a5=_0x4a7418;let _0x31e02a={};_0x31e02a[this[_0x3b01a5(0x18f)]+_0x3b01a5(0x22f)]=new Uint8Array(await this[_0x3b01a5(0xf1)]()[_0x3b01a5(0xf8)]());let _0x27c761=[];this['persons'][_0x3b01a5(0x19a)](_0x5b22f3=>{const _0x4b6041=_0x3b01a5;let _0x3d62ba=this[_0x4b6041(0xf6)](_0x5b22f3);j(_0x5b22f3[_0x4b6041(0x114)],_0x5b22f3['multimediaFiles']['files'])[_0x4b6041(0x19a)](_0x115a89=>{const _0x5b9cf8=_0x4b6041;let _0xb11723=this[_0x5b9cf8(0xd2)](_0x115a89,_0x3d62ba);_0x27c761[_0x5b9cf8(0x203)](this['zipFile'](_0x31e02a,_0x115a89,_0xb11723));}),_0x5b22f3[_0x4b6041(0x199)]['list'][_0x4b6041(0x19a)](_0x4afaae=>{const _0x1462b7=_0x4b6041;let _0x18e5ec=this[_0x1462b7(0x1d2)](_0x3d62ba,_0x4afaae);j(_0x4afaae['files'],_0x4afaae[_0x1462b7(0x206)][_0x1462b7(0x114)])[_0x1462b7(0x19a)](_0x177d2d=>{let _0x5b3bd8=ut(_0x4afaae,_0x177d2d,_0x18e5ec);_0x27c761['push'](this['zipFile'](_0x31e02a,_0x177d2d,_0x5b3bd8));});});}),await Promise[_0x3b01a5(0xdc)](_0x27c761),_0x4662b1(_0x31e02a,{'level':0x9},(_0x5136e8,_0x2ad522)=>{if(_0x5136e8)throw _0x5136e8;let _0x1fa53a=Uint8Array['from'](_0x2ad522);setTimeout(()=>{const _0xa16e27=_0x3bd6;ht(new Blob([_0x1fa53a],{'type':_0xa16e27(0x181)}),this['title']+_0xa16e27(0xf2));},0x0);});}[_0x4a7418(0xf6)](_0x194689){const _0x1ee968=_0x4a7418;if(typeof _0x194689[_0x1ee968(0x1bc)]=='number')return''+_0x194689[_0x1ee968(0x1bc)];for(let _0xaad4f4 of _0x194689[_0x1ee968(0x199)][_0x1ee968(0x117)]){let _0x4e8bea=_0xaad4f4['INDIS']['find'](_0x33a1a8=>typeof _0x33a1a8==_0x1ee968(0xf5));if(_0x4e8bea!==void 0x0)return''+_0x4e8bea;}return'';}['resolveActIndis'](_0x416a33,_0x46a527){const _0x3ce6d7=_0x4a7418;let _0x561ded=new Set();return _0x416a33&&_0x561ded[_0x3ce6d7(0xe2)](_0x416a33),_0x46a527['INDIS'][_0x3ce6d7(0x12d)](_0x24aad7=>typeof _0x24aad7=='number')['forEach'](_0x247325=>_0x561ded[_0x3ce6d7(0xe2)](''+_0x247325)),Array[_0x3ce6d7(0x12b)](_0x561ded);}['resolveZipPath'](_0x4493a5,_0x27c016){const _0x14e8af=_0x4a7418;let _0x58b863=_0x27c016[_0x14e8af(0x1a4)](/\/+$/,''),_0x3cde4f=_0x4493a5[_0x14e8af(0x122)]?.[_0x14e8af(0x208)]();if(_0x3cde4f&&_0x3cde4f[_0x14e8af(0xfc)]('/'))return _0x3cde4f;let _0xfebb5d=_0x3cde4f||_0x4493a5[_0x14e8af(0xd1)]['name'];return _0x58b863?_0x58b863+'/'+_0xfebb5d:_0xfebb5d;}async['zipFile'](_0x3a13f5,_0x435724,_0x13186c){let {file:_0x3c14cf,relativePath:_0x4ea456}=_0x435724;if(!_0x3c14cf)return;let _0x1b17c0=_0x13186c||_0x4ea456||_0x3c14cf['name'];_0x3a13f5[_0x1b17c0]=new Uint8Array(await _0x3c14cf['arrayBuffer']());}},_=class extends V{constructor(..._0x3b20ca){let [_0x56e93b,_0x124ac9]=typeof _0x3b20ca[0x0]=='string'?[_0x3b20ca[0x0],_0x3b20ca[0x1]]:[void 0x0,_0x3b20ca[0x0]];super(_0x56e93b,_0x124ac9,!0x1);}[_0x4a7418(0xf0)](){const _0x28f624=_0x4a7418;ht(this[_0x28f624(0xf1)](),this[_0x28f624(0x18f)]+_0x28f624(0x22f));}},Z=class{constructor(_0x277d08){const _0x3c42a4=_0x4a7418;l(this,_0x3c42a4(0x197),new Map()),_0x277d08['forEach'](_0x2cc2b4=>{const _0x490800=_0x3c42a4;let {FAMS:_0x48ac3d,FAMC:_0x42ca93,INDI:_0x26a2a9}=_0x2cc2b4;_0x48ac3d[_0x490800(0x1a8)]>0x0&&this[_0x490800(0x107)]('1\x20'+(_0x2cc2b4[_0x490800(0x1af)]==='M'?_0x490800(0x18e):_0x490800(0x189))+_0x490800(0x17f)+_0x26a2a9+'@\x0a',_0x48ac3d),_0x42ca93&&this[_0x490800(0x107)](_0x490800(0x1ea)+_0x26a2a9+'@\x0a',[_0x42ca93]);});}['lines'](){const _0xcf4402=_0x4a7418;let _0x28791a=[];for(let [_0x1b6f1a,_0x230dda]of this[_0xcf4402(0x197)][_0xcf4402(0x146)]())_0x28791a[_0xcf4402(0x203)](_0xcf4402(0x192)+_0x1b6f1a+'@\x20FAM\x0a',_0x230dda[_0xcf4402(0xdf)](''));return _0x28791a[_0xcf4402(0xdf)]('');}[_0x4a7418(0x107)](_0x569b55,_0x3c7e75){const _0x3147d9=_0x4a7418;_0x3c7e75[_0x3147d9(0x19a)](_0x3f892d=>{const _0x45f145=_0x3147d9;if(this['informationFamilies']['has'](_0x3f892d)){let _0x2c136d=this[_0x45f145(0x197)][_0x45f145(0x188)](_0x3f892d);_0x2c136d[_0x45f145(0x203)](_0x569b55),this[_0x45f145(0x197)][_0x45f145(0x186)](_0x3f892d,_0x2c136d);}else this[_0x45f145(0x197)][_0x45f145(0x186)](_0x3f892d,[_0x569b55]);});}},q=class{constructor(_0x37fa2e,_0x5a7d73){const _0x5ec8e9=_0x4a7418;l(this,_0x5ec8e9(0x1bc)),l(this,'NAME'),l(this,'SEX',''),l(this,'FAMS'),l(this,_0x5ec8e9(0x1f6)),l(this,_0x5ec8e9(0x217),''),l(this,_0x5ec8e9(0x161),''),l(this,_0x5ec8e9(0x22d),''),(this['INDI']=this[_0x5ec8e9(0x1ee)](_0x37fa2e),this[_0x5ec8e9(0x1e2)]=this[_0x5ec8e9(0x1dd)](_0x37fa2e),this['SEX']=this[_0x5ec8e9(0x134)](_0x37fa2e),this['FAMS']=this['getFams'](_0x37fa2e),this[_0x5ec8e9(0x1f6)]=this['getFamc'](_0x37fa2e),_0x5a7d73&&_0x37fa2e[_0x5ec8e9(0x206)][_0x5ec8e9(0x114)][_0x5ec8e9(0x1a8)]>0x0&&(this[_0x5ec8e9(0x217)]=this[_0x5ec8e9(0x147)](_0x37fa2e)),_0x37fa2e[_0x5ec8e9(0x199)][_0x5ec8e9(0x117)]?.[_0x5ec8e9(0x1a8)]>0x0&&(this['ACTS']=new Q(_0x37fa2e)[_0x5ec8e9(0x113)]()),_0x37fa2e[_0x5ec8e9(0x228)][_0x5ec8e9(0x117)][_0x5ec8e9(0x1a8)]>0x0&&(this[_0x5ec8e9(0x22d)]=z(_0x37fa2e[_0x5ec8e9(0x228)],0x1)));}[_0x4a7418(0x113)](){const _0xee7675=_0x4a7418;return this[_0xee7675(0x1bc)]+this['NAME']+this[_0xee7675(0x1af)]+this['FILES']+this[_0xee7675(0x161)]+this[_0xee7675(0x22d)]+this['FAMS']+this['FAMC'];}[_0x4a7418(0x1ee)](_0x166b5d){return'0\x20@I'+_0x166b5d['INDI']+'@\x20INDI'+p;}[_0x4a7418(0x1dd)](_0x190a6d){const _0xc45c6f=_0x4a7418;let _0x1645bd=_0x190a6d[_0xc45c6f(0x13b)]?.[_0xc45c6f(0x1a8)]>0x0?[..._0x190a6d['firstnames']]:[],_0x3ad596=_0x190a6d[_0xc45c6f(0x167)]??'';if(_0x1645bd[_0xc45c6f(0x1a8)]>0x0||_0x3ad596['length']>0x0){let _0x9a072d=_0xc45c6f(0x1ae);return _0x1645bd['length']>0x0&&(_0x1645bd[0x0]='\x22'+_0x1645bd[0x0]+'\x22',_0x9a072d+='\x20'+_0x1645bd['join']('\x20')),_0x3ad596&&_0x3ad596[_0xc45c6f(0x1a8)]>0x0&&(_0x9a072d+='\x20/'+_0x3ad596+'/'),_0x9a072d+p;}return'';}[_0x4a7418(0x134)](_0x25e895){const _0x30e80f=_0x4a7418;return'1\x20SEX\x20'+_0x25e895[_0x30e80f(0x1af)]+p;}[_0x4a7418(0x147)](_0x508194){const _0x50fdcb=_0x4a7418;return _0x508194[_0x50fdcb(0x206)]?.['files']['map'](_0x550f37=>_0x50fdcb(0x223)+_0x550f37['relativePath']+p)[_0x50fdcb(0xdf)]('')??'';}[_0x4a7418(0x120)](_0xc604b8){const _0x39532f=_0x4a7418;return _0xc604b8[_0x39532f(0xf3)][_0x39532f(0x12d)](_0x3210ac=>_0x3210ac>=0x0)[_0x39532f(0x1c2)](_0x59792b=>'1\x20FAMS\x20@F'+_0x59792b+'@'+p)[_0x39532f(0xdf)]('');}[_0x4a7418(0xdd)](_0x52a42b){const _0x1b4c30=_0x4a7418;return _0x52a42b['FAMC']?_0x1b4c30(0x1b9)+_0x52a42b[_0x1b4c30(0x1f6)]+'@'+p:'';}},K=class o{constructor(_0x140939,_0x2d0202){const _0x243d56=_0x4a7418;l(this,_0x243d56(0x22e)),l(this,'PLACE'),l(this,'DATE'),l(this,'NOTES'),l(this,_0x243d56(0x217)),l(this,_0x243d56(0x1c6)),(this['ownerIndi']=_0x2d0202,this['TYPE']=this[_0x243d56(0x17d)](_0x140939),this[_0x243d56(0x169)]=this[_0x243d56(0xec)](_0x140939),this[_0x243d56(0x19d)]=this['getDate'](_0x140939),this[_0x243d56(0x22d)]=z(_0x140939['notes'],0x2),this['FILES']=this[_0x243d56(0x184)](_0x140939));}static[_0x4a7418(0x225)](_0x228ee7){const _0x5b7c49=_0x4a7418;return _0x228ee7[_0x5b7c49(0x164)]??'';}['line'](){const _0x3cac09=_0x4a7418;return this[_0x3cac09(0x22e)]+this['DATE']+this[_0x3cac09(0x169)]+this[_0x3cac09(0x22d)]+this[_0x3cac09(0x217)];}[_0x4a7418(0x184)](_0x295949){const _0x5a87f7=_0x4a7418;let _0x1fbf85=this[_0x5a87f7(0x1d2)](_0x295949);return j(_0x295949[_0x5a87f7(0x114)],_0x295949[_0x5a87f7(0x206)]['files'])[_0x5a87f7(0x1c2)](_0x3c11a4=>_0x5a87f7(0x11f)+ut(_0x295949,_0x3c11a4,_0x1fbf85)+p)[_0x5a87f7(0xdf)]('');}[_0x4a7418(0x1d2)](_0x1d811a){const _0xd7efe1=_0x4a7418;let _0x401438=new Set();return typeof this[_0xd7efe1(0x1c6)]==_0xd7efe1(0xf5)&&_0x401438['add'](''+this[_0xd7efe1(0x1c6)]),_0x1d811a[_0xd7efe1(0x205)]['filter'](_0x4baf2f=>typeof _0x4baf2f==_0xd7efe1(0xf5))['forEach'](_0x4cf3d3=>_0x401438['add'](''+_0x4cf3d3)),Array['from'](_0x401438);}[_0x4a7418(0x17d)](_0x188515){return'1\x20'+_0x188515['type']+p;}['getDate'](_0x2827f6){const _0x5e063f=_0x4a7418;return _0x2827f6?.['dateAct']?.['date']?_0x5e063f(0x12a)+o[_0x5e063f(0x225)](_0x2827f6[_0x5e063f(0xd4)])+p:'';}['getPlace'](_0x3c88af){const _0x521927=_0x4a7418;let _0x15b658=_0x3c88af['place']?.[_0x521927(0x1ab)];if(!_0x15b658)return'';let {latitude:_0x5d77e7,longitude:_0x56e32f}=_0x3c88af[_0x521927(0x1ed)]['coordinate'],_0x40884d='2\x20PLAC\x20'+_0x15b658+p;return!_0x5d77e7||!_0x56e32f?_0x40884d:_0x40884d+('3\x20MAP'+p+_0x521927(0x1a1)+_0x5d77e7+p+'4\x20LONG\x20'+_0x56e32f+p);}},Q=class{constructor(_0x47b5b5){const _0x5f153b=_0x4a7418;l(this,'acts'),l(this,'INDI'),(this['acts']=_0x47b5b5['acts'][_0x5f153b(0x117)],this[_0x5f153b(0x1bc)]=_0x47b5b5['INDI']);}['line'](){const _0x326c02=_0x4a7418;return this[_0x326c02(0x199)]['map'](_0x460d32=>new K(_0x460d32,this[_0x326c02(0x1bc)])['line']())['join']('');}},mt=(_0x383692,_0x2331cd,_0x1232de,_0x3277c6)=>{const _0x2ed0e2=_0x4a7418;if(_0x3277c6=_0x3277c6??new Map(),_0x1232de=_0x1232de??0x1,typeof _0x383692['INDI']!='number')return _0x3277c6;if(_0x3277c6[_0x2ed0e2(0x186)](_0x383692[_0x2ed0e2(0x1bc)],_0x1232de),_0x2331cd[_0x2ed0e2(0x14f)](_0x383692['FAMC'])){let _0xae2d96=_0x2331cd[_0x2ed0e2(0x188)](_0x383692['FAMC']);_0xae2d96?.[_0x2ed0e2(0x1a8)]>0x1&&(_0xae2d96=[..._0xae2d96][_0x2ed0e2(0xf7)]((_0x95fb49,_0x2f3d46)=>_0x95fb49[_0x2ed0e2(0x1af)]&&_0x2f3d46[_0x2ed0e2(0x1af)]?_0x2f3d46['SEX'][_0x2ed0e2(0x15b)](_0x95fb49[_0x2ed0e2(0x1af)]):0x0)),_0xae2d96[_0x2ed0e2(0x19a)](_0xaeefaf=>{const _0x457458=_0x2ed0e2;_0xaeefaf[_0x457458(0x1af)]&&(_0x3277c6=mt(_0xaeefaf,_0x2331cd,_0x1232de*0x2+(_0xaeefaf[_0x457458(0x1af)]==='M'?0x0:0x1),_0x3277c6));});}return _0x3277c6;},It=[_0x4a7418(0xe6),_0x4a7418(0x1b7),_0x4a7418(0x1b3),'CHR'],Ct=['MARR','DIV'],$t=(_0x2fad52,_0x48d75b)=>{const _0x290dc5=_0x4a7418;let _0x56c91c=new Set(_0x2fad52[_0x290dc5(0x117)]['map'](_0x3f7497=>_0x3f7497[_0x290dc5(0x218)])),_0x5b14c3=[...It[_0x290dc5(0x12d)](_0xe41f11=>!_0x56c91c[_0x290dc5(0x14f)](_0xe41f11)),...Ct];return _0x48d75b&&(_0x5b14c3[_0x290dc5(0xfc)](_0x48d75b[_0x290dc5(0x218)])||_0x5b14c3[_0x290dc5(0x203)](_0x48d75b[_0x290dc5(0x218)])),_0x5b14c3;};function Lt(_0x5d6d3f,_0xb1df65){const _0xc0052e=_0x4a7418;let _0x5d6288=_0xc0052e(0x10d)+encodeURIComponent(_0x5d6d3f)+'&polygon_geojson=1&format=jsonv2',_0x1c9010=new XMLHttpRequest();_0x1c9010['open']('GET',_0x5d6288,!0x0),_0x1c9010[_0xc0052e(0x106)]=function(){const _0x458e29=_0xc0052e;if(_0x1c9010['status']>=0xc8&&_0x1c9010[_0x458e29(0x13c)]<0x190){let _0x2b6207=JSON[_0x458e29(0x21e)](_0x1c9010[_0x458e29(0x101)])[_0x458e29(0x1c2)](_0x4d1f58=>{const _0x4f8a0b=_0x458e29;let {display_name:_0xa735bc,lat:_0x40e59d,lon:_0x5900c6}=_0x4d1f58,_0x3f46ad=_0xa735bc['split'](',\x20'),_0x73eef5=_0x3f46ad[0x0]+',\x20'+_0x3f46ad[_0x3f46ad[_0x4f8a0b(0x1a8)]-0x2]+',\x20'+_0x3f46ad[_0x3f46ad['length']-0x1];return new E(_0x73eef5,new v(_0x40e59d,_0x5900c6));});_0xb1df65(_0x2b6207);}else _0xb1df65([]);},_0x1c9010[_0xc0052e(0x100)]=function(){_0xb1df65([]);},_0x1c9010[_0xc0052e(0x1f2)]();}var rn=g;export{B as Act,F as Acts,U as ActsByYear,v as CoordinateGPS,T as DateAct,J as EventsByYears,_ as ExportGedcomFile,W as ExportGedzipFile,rn as Identificator,g as Identifier,N as MultimediaFile,y as MultimediaFiles,D as Note,P as Notes,S as Person,E as Place,b as ReadGed,R as Sex,mt as createSosaMap,gt as dateToDateLine,H as days,Lt as getCityCoordinates,Pt as importGedFile,$ as months,$t as remainingTypesAct};
1
+ const _0x3ef337=_0xab6a;(function(_0x4014ac,_0x2bc59c){const _0x1c1003=_0xab6a,_0x3a3573=_0x4014ac();while(!![]){try{const _0x16a85c=-parseInt(_0x1c1003(0x242))/0x1*(parseInt(_0x1c1003(0x14d))/0x2)+-parseInt(_0x1c1003(0x154))/0x3*(parseInt(_0x1c1003(0x1f4))/0x4)+-parseInt(_0x1c1003(0x217))/0x5*(parseInt(_0x1c1003(0x29a))/0x6)+parseInt(_0x1c1003(0xc6))/0x7+-parseInt(_0x1c1003(0x250))/0x8+-parseInt(_0x1c1003(0xfd))/0x9*(-parseInt(_0x1c1003(0x1a2))/0xa)+parseInt(_0x1c1003(0xaa))/0xb;if(_0x16a85c===_0x2bc59c)break;else _0x3a3573['push'](_0x3a3573['shift']());}catch(_0x2e1071){_0x3a3573['push'](_0x3a3573['shift']());}}}(_0x1b1f,0x4720f));var pe=Object['defineProperty'],fe=(_0x1446df,_0x485a5e,_0x481b4b)=>_0x485a5e in _0x1446df?pe(_0x1446df,_0x485a5e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x481b4b}):_0x1446df[_0x485a5e]=_0x481b4b,a=(_0x1eab3d,_0x389f23,_0x507738)=>fe(_0x1eab3d,typeof _0x389f23!=_0x3ef337(0x1bc)?_0x389f23+'':_0x389f23,_0x507738),M=(_0x1081c4=>(_0x1081c4[_0x3ef337(0x167)]='ABBR',_0x1081c4[_0x3ef337(0x157)]='ADDR',_0x1081c4[_0x3ef337(0x27d)]='ADR1',_0x1081c4['ADR2']=_0x3ef337(0x278),_0x1081c4[_0x3ef337(0xbf)]=_0x3ef337(0xbf),_0x1081c4['AFN']='AFN',_0x1081c4[_0x3ef337(0x245)]='AGE',_0x1081c4[_0x3ef337(0x1a3)]='AGNC',_0x1081c4[_0x3ef337(0x28f)]=_0x3ef337(0x28f),_0x1081c4['ANCE']='ANCE',_0x1081c4['ANCI']='ANCI',_0x1081c4[_0x3ef337(0x192)]='ANUL',_0x1081c4['ASSO']='ASSO',_0x1081c4['AUTH']=_0x3ef337(0x14b),_0x1081c4[_0x3ef337(0x1fe)]='BAPL',_0x1081c4[_0x3ef337(0x235)]='BAPM',_0x1081c4['BARM']=_0x3ef337(0x227),_0x1081c4['BASM']=_0x3ef337(0x27c),_0x1081c4['BIRT']=_0x3ef337(0x23b),_0x1081c4[_0x3ef337(0x208)]=_0x3ef337(0x208),_0x1081c4[_0x3ef337(0x230)]=_0x3ef337(0x230),_0x1081c4['BURI']='BURI',_0x1081c4['CALN']='CALN',_0x1081c4['CAST']=_0x3ef337(0x165),_0x1081c4[_0x3ef337(0xc2)]='CAUS',_0x1081c4[_0x3ef337(0x26b)]='CENS',_0x1081c4[_0x3ef337(0x122)]=_0x3ef337(0x122),_0x1081c4[_0x3ef337(0x1b8)]=_0x3ef337(0x1b8),_0x1081c4[_0x3ef337(0x267)]='CHIL',_0x1081c4[_0x3ef337(0x282)]=_0x3ef337(0x282),_0x1081c4[_0x3ef337(0xee)]=_0x3ef337(0xee),_0x1081c4[_0x3ef337(0x199)]=_0x3ef337(0x199),_0x1081c4['CONC']='CONC',_0x1081c4['CONF']='CONF',_0x1081c4['CONL']=_0x3ef337(0x1c3),_0x1081c4['CONT']='CONT',_0x1081c4[_0x3ef337(0xd3)]='COPR',_0x1081c4[_0x3ef337(0x18c)]=_0x3ef337(0x18c),_0x1081c4[_0x3ef337(0xfc)]=_0x3ef337(0xfc),_0x1081c4[_0x3ef337(0x284)]=_0x3ef337(0x284),_0x1081c4[_0x3ef337(0x16f)]=_0x3ef337(0x16f),_0x1081c4[_0x3ef337(0x195)]=_0x3ef337(0x195),_0x1081c4['DEAT']=_0x3ef337(0xcc),_0x1081c4['DESC']=_0x3ef337(0x233),_0x1081c4[_0x3ef337(0x128)]=_0x3ef337(0x128),_0x1081c4[_0x3ef337(0x180)]='DEST',_0x1081c4[_0x3ef337(0x1f1)]='DIV',_0x1081c4['DIVF']='DIVF',_0x1081c4[_0x3ef337(0xca)]=_0x3ef337(0xca),_0x1081c4[_0x3ef337(0x1f7)]=_0x3ef337(0x1f7),_0x1081c4[_0x3ef337(0x24d)]=_0x3ef337(0x24d),_0x1081c4[_0x3ef337(0x231)]=_0x3ef337(0x231),_0x1081c4[_0x3ef337(0x272)]='ENGA',_0x1081c4[_0x3ef337(0x1bd)]='EVEN',_0x1081c4['FAM']='FAM',_0x1081c4[_0x3ef337(0xda)]=_0x3ef337(0xda),_0x1081c4[_0x3ef337(0x286)]=_0x3ef337(0x286),_0x1081c4[_0x3ef337(0x168)]='FAMS',_0x1081c4[_0x3ef337(0x238)]=_0x3ef337(0x238),_0x1081c4[_0x3ef337(0x1df)]='FACT',_0x1081c4['FILE']='FILE',_0x1081c4[_0x3ef337(0x149)]='FORM',_0x1081c4['GEDC']='GEDC',_0x1081c4['GIVN']='GIVN',_0x1081c4['GRAD']='GRAD',_0x1081c4['HEAD']='HEAD',_0x1081c4[_0x3ef337(0x237)]='HUSB',_0x1081c4[_0x3ef337(0x1d7)]='IDNO',_0x1081c4[_0x3ef337(0x25a)]=_0x3ef337(0x25a),_0x1081c4['INDI']=_0x3ef337(0x163),_0x1081c4[_0x3ef337(0xeb)]=_0x3ef337(0xeb),_0x1081c4[_0x3ef337(0x10d)]='LEGA',_0x1081c4[_0x3ef337(0xcb)]='MARB',_0x1081c4[_0x3ef337(0xd0)]=_0x3ef337(0xd0),_0x1081c4['MARL']=_0x3ef337(0xd8),_0x1081c4['MARR']=_0x3ef337(0x298),_0x1081c4[_0x3ef337(0x1b4)]=_0x3ef337(0x1b4),_0x1081c4[_0x3ef337(0xc9)]='MEDI',_0x1081c4[_0x3ef337(0x183)]='NAME',_0x1081c4[_0x3ef337(0x1fb)]='NATI',_0x1081c4[_0x3ef337(0x1c5)]=_0x3ef337(0x1c5),_0x1081c4[_0x3ef337(0x145)]='NCHI',_0x1081c4['NICK']=_0x3ef337(0xaf),_0x1081c4['NMR']=_0x3ef337(0xa5),_0x1081c4[_0x3ef337(0x15c)]='NOTE',_0x1081c4['NPFX']=_0x3ef337(0x107),_0x1081c4[_0x3ef337(0x175)]=_0x3ef337(0x175),_0x1081c4['OBJE']='OBJE',_0x1081c4['OCCU']='OCCU',_0x1081c4['ORDI']='ORDI',_0x1081c4[_0x3ef337(0x132)]=_0x3ef337(0x132),_0x1081c4[_0x3ef337(0x12b)]='PAGE',_0x1081c4['PEDI']=_0x3ef337(0x236),_0x1081c4[_0x3ef337(0x294)]=_0x3ef337(0x294),_0x1081c4['PHRASE']='PHRASE',_0x1081c4['PLAC']='PLAC',_0x1081c4[_0x3ef337(0x256)]=_0x3ef337(0x256),_0x1081c4[_0x3ef337(0x244)]=_0x3ef337(0x244),_0x1081c4[_0x3ef337(0x16c)]='PROP',_0x1081c4[_0x3ef337(0x202)]='PUBL',_0x1081c4[_0x3ef337(0x248)]='QUAY',_0x1081c4[_0x3ef337(0x17b)]='REFN',_0x1081c4['RELA']='RELA',_0x1081c4[_0x3ef337(0x17c)]=_0x3ef337(0x17c),_0x1081c4[_0x3ef337(0x221)]=_0x3ef337(0x221),_0x1081c4['RESI']=_0x3ef337(0x1fc),_0x1081c4[_0x3ef337(0x271)]=_0x3ef337(0x271),_0x1081c4['RETI']='RETI',_0x1081c4[_0x3ef337(0xe2)]='RFN',_0x1081c4['RIN']='RIN',_0x1081c4[_0x3ef337(0x23d)]='ROLE',_0x1081c4['SEX']=_0x3ef337(0x189),_0x1081c4[_0x3ef337(0x1ca)]=_0x3ef337(0x1ca),_0x1081c4[_0x3ef337(0x194)]='SLGS',_0x1081c4['SOUR']=_0x3ef337(0xdf),_0x1081c4[_0x3ef337(0x13e)]='SPFX',_0x1081c4[_0x3ef337(0x23c)]='SSN',_0x1081c4['SDATE']=_0x3ef337(0x1c9),_0x1081c4['STAE']=_0x3ef337(0xe6),_0x1081c4['STAT']='STAT',_0x1081c4[_0x3ef337(0x133)]='SUBM',_0x1081c4[_0x3ef337(0x288)]=_0x3ef337(0x288),_0x1081c4[_0x3ef337(0x1ff)]='SURN',_0x1081c4[_0x3ef337(0x10f)]=_0x3ef337(0x10f),_0x1081c4[_0x3ef337(0xf2)]='TEXT',_0x1081c4[_0x3ef337(0x106)]='TIME',_0x1081c4['TITL']='TITL',_0x1081c4['TRLR']=_0x3ef337(0x1ed),_0x1081c4[_0x3ef337(0x1e6)]=_0x3ef337(0x1e6),_0x1081c4[_0x3ef337(0x24e)]=_0x3ef337(0x24e),_0x1081c4[_0x3ef337(0x26f)]='WIFE',_0x1081c4[_0x3ef337(0x21d)]='WILL',_0x1081c4))(M||{}),Tt=[0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f],lt=[_0x3ef337(0x209),_0x3ef337(0x1c1),'MAR','APR','MAY','JUN','JUL',_0x3ef337(0x27b),_0x3ef337(0x136),'OCT','NOV','DEC'],Dt={0x1:'JAN',0x2:'FEB',0x3:_0x3ef337(0x1c8),0x4:_0x3ef337(0x200),0x5:_0x3ef337(0x19d),0x6:'JUN',0x7:_0x3ef337(0x120),0x8:_0x3ef337(0x27b),0x9:'SEP',0xa:_0x3ef337(0x255),0xb:'NOV',0xc:'DEC'},U=class i{constructor(_0x54178c){const _0x5cecaa=_0x3ef337;a(this,'typeDateAct'),a(this,_0x5cecaa(0xad),null),a(this,'month',null),a(this,'year'),a(this,_0x5cecaa(0x1fd),null),a(this,_0x5cecaa(0x1b6),null),a(this,_0x5cecaa(0x121)),a(this,'datePhrase',null),a(this,_0x5cecaa(0x258),null),a(this,'verbatimDatePayload',null);let _0x2059da=(_0x54178c?.['trim']()??'')['replace'](/\r/g,''),_0x4cf777=this['stripCalendarPrefixes'](_0x2059da),{core:_0x28576b,phrase:_0x1dc2d4}=i[_0x5cecaa(0x246)](_0x4cf777),_0x5835d7=_0x28576b[_0x5cecaa(0x23a)](/\s+/g,'\x20')['trim']();if(_0x1dc2d4&&(this['datePhrase']=_0x1dc2d4),!_0x5835d7||_0x5835d7===_0x5cecaa(0x10b))return;if(this[_0x5cecaa(0x27e)](_0x5835d7)){this['applyVerbatimFallback'](_0x2059da);return;}if(this[_0x5cecaa(0x18a)](_0x5835d7)){this['applyVerbatimFallback'](_0x2059da);return;}if(this[_0x5cecaa(0x1ba)](_0x5835d7)){this['applyVerbatimFallback'](_0x2059da);return;}let _0x32d762=_0x5835d7['split'](/\s+/);switch(_0x32d762[_0x5cecaa(0x17e)]){case 0x1:this[_0x5cecaa(0x109)](_0x32d762[0x0]);break;case 0x2:this[_0x5cecaa(0x18e)](_0x32d762[0x0],_0x32d762[0x1]);break;case 0x3:this[_0x5cecaa(0x115)](_0x32d762[0x0],_0x32d762[0x1],_0x32d762[0x2]);break;case 0x4:this['parseFourParts'](_0x32d762[0x0],_0x32d762[0x1],_0x32d762[0x2],_0x32d762[0x3]);break;default:break;}this[_0x5cecaa(0x1de)](_0x2059da);}[_0x3ef337(0x1de)](_0x5cd235){const _0x56d18c=_0x3ef337;if(this['hasStructuredDateForExport']()){this[_0x56d18c(0xe0)]=null;return;}_0x5cd235&&(this['verbatimDatePayload']=_0x5cd235);}[_0x3ef337(0x1e7)](){const _0x3c0ad1=_0x3ef337;return this[_0x3c0ad1(0x28d)]==='BET'||this['typeDateAct']===_0x3c0ad1(0x210)?Number[_0x3c0ad1(0x1cc)](this[_0x3c0ad1(0x104)])&&Number[_0x3c0ad1(0x1cc)](this[_0x3c0ad1(0x121)]):Number['isFinite'](this['year']);}get[_0x3ef337(0x1c7)](){const _0x3ba4b8=_0x3ef337;let _0x1b9630=this[_0x3ba4b8(0xe0)]?.[_0x3ba4b8(0x290)]();if(_0x1b9630)return _0x1b9630;if(!this[_0x3ba4b8(0x104)])return null;if(this[_0x3ba4b8(0x28d)]===_0x3ba4b8(0x280)&&this[_0x3ba4b8(0x121)]){let _0xa31cb3=this[_0x3ba4b8(0x1ef)](this[_0x3ba4b8(0xad)],this[_0x3ba4b8(0xde)],this[_0x3ba4b8(0x104)]),_0x3079f8=this[_0x3ba4b8(0x1ef)](this[_0x3ba4b8(0x1fd)],this[_0x3ba4b8(0x1b6)],this['endYear']);return'BET\x20'+_0xa31cb3+_0x3ba4b8(0xab)+_0x3079f8;}if(this['typeDateAct']==='FROM'&&this[_0x3ba4b8(0x121)]){let _0x3b700c=this[_0x3ba4b8(0x1ef)](this[_0x3ba4b8(0xad)],this[_0x3ba4b8(0xde)],this['year']),_0x16380a=this['formatCoreDate'](this[_0x3ba4b8(0x1fd)],this[_0x3ba4b8(0x1b6)],this['endYear']);return _0x3ba4b8(0x21f)+_0x3b700c+_0x3ba4b8(0x15d)+_0x16380a;}let _0xe943ab=this['month']?this[_0x3ba4b8(0xad)]?this[_0x3ba4b8(0xad)]+'\x20'+this[_0x3ba4b8(0xde)]+'\x20'+this[_0x3ba4b8(0x104)]:this[_0x3ba4b8(0xde)]+'\x20'+this[_0x3ba4b8(0x104)]:''+this['year'];return this[_0x3ba4b8(0x28d)]?this[_0x3ba4b8(0x28d)]+'\x20'+_0xe943ab:_0xe943ab;}['setDateTimeFromImport'](_0x317be2){const _0x256d24=_0x3ef337;let _0x5917b5=_0x317be2[_0x256d24(0x290)]();_0x5917b5&&(this['dateTime']=_0x5917b5);}['updateExactDate'](_0x16c980,_0x1eb2d5,_0x8f7f40){const _0x3872f5=_0x3ef337;this[_0x3872f5(0x11e)](),this[_0x3872f5(0x104)]=_0x16c980,this['month']=_0x1eb2d5??null,this[_0x3872f5(0xad)]=_0x8f7f40??null;}[_0x3ef337(0xd2)](_0x1be3f3){const _0x2c86bc=_0x3ef337;let _0x2de9a1=_0x1be3f3['trim']();_0x2de9a1&&(this[_0x2c86bc(0x1c4)]=this[_0x2c86bc(0x1c4)]?.[_0x2c86bc(0x290)]()?this[_0x2c86bc(0x1c4)]['trim']()+'\x20'+_0x2de9a1:_0x2de9a1);}['updateQualifiedDate'](_0x3b5be5,_0x232c26,_0x4704e7,_0x37e285){const _0x42ab5d=_0x3ef337;this[_0x42ab5d(0x11e)](),this[_0x42ab5d(0x28d)]=_0x3b5be5,this[_0x42ab5d(0x104)]=_0x232c26,this[_0x42ab5d(0xde)]=_0x4704e7??null,this['day']=_0x37e285??null;}[_0x3ef337(0x1ee)](_0xe248e8,_0x77ac8f){const _0x1468ac=_0x3ef337;this['clearDate'](),this[_0x1468ac(0x28d)]='BET',this[_0x1468ac(0x104)]=_0xe248e8['year'],this['month']=_0xe248e8['month']??null,this[_0x1468ac(0xad)]=_0xe248e8[_0x1468ac(0xad)]??null,this[_0x1468ac(0x121)]=_0x77ac8f[_0x1468ac(0x104)],this['endMonth']=_0x77ac8f['month']??null,this['endDay']=_0x77ac8f[_0x1468ac(0xad)]??null;}[_0x3ef337(0x214)](_0x3dda57,_0x5a485e){const _0x2e89ad=_0x3ef337;this['clearDate'](),this['typeDateAct']=_0x2e89ad(0x210),this[_0x2e89ad(0x104)]=_0x3dda57['year'],this[_0x2e89ad(0xde)]=_0x3dda57['month']??null,this[_0x2e89ad(0xad)]=_0x3dda57[_0x2e89ad(0xad)]??null,this[_0x2e89ad(0x121)]=_0x5a485e['year'],this['endMonth']=_0x5a485e['month']??null,this['endDay']=_0x5a485e['day']??null;}[_0x3ef337(0x11e)](){const _0x339b85=_0x3ef337;this[_0x339b85(0x28d)]=void 0x0,this['day']=null,this[_0x339b85(0xde)]=null,this[_0x339b85(0x104)]=void 0x0,this[_0x339b85(0x1fd)]=null,this['endMonth']=null,this[_0x339b85(0x121)]=void 0x0,this[_0x339b85(0x1c4)]=null,this[_0x339b85(0x258)]=null,this['verbatimDatePayload']=null;}[_0x3ef337(0x203)](_0x25f4d9){const _0x2e5972=_0x3ef337;let _0x53a46f=new i(_0x25f4d9);this[_0x2e5972(0x11e)](),this['typeDateAct']=_0x53a46f[_0x2e5972(0x28d)],this[_0x2e5972(0xad)]=_0x53a46f[_0x2e5972(0xad)],this['month']=_0x53a46f[_0x2e5972(0xde)],this[_0x2e5972(0x104)]=_0x53a46f['year'],this[_0x2e5972(0x1fd)]=_0x53a46f['endDay'],this[_0x2e5972(0x1b6)]=_0x53a46f[_0x2e5972(0x1b6)],this['endYear']=_0x53a46f[_0x2e5972(0x121)],this[_0x2e5972(0x1c4)]=_0x53a46f[_0x2e5972(0x1c4)],this[_0x2e5972(0x258)]=_0x53a46f['dateTime'],this[_0x2e5972(0xe0)]=_0x53a46f[_0x2e5972(0xe0)];}['tryParseIsoYmd'](_0xa4aeb8){const _0x1aa9dc=_0x3ef337;let _0x528dcc=/^(\d{4})-(\d{2})-(\d{2})$/['exec'](_0xa4aeb8);if(!_0x528dcc?.[0x1]||!_0x528dcc[0x2]||!_0x528dcc[0x3])return!0x1;let _0x57ed6b=Number(_0x528dcc[0x1]),_0x343149=Number(_0x528dcc[0x2]),_0x5730df=Number(_0x528dcc[0x3]);if(!Number['isFinite'](_0x57ed6b)||_0x343149<0x1||_0x343149>0xc||_0x5730df<0x1||_0x5730df>0x1f)return!0x1;let _0xa1b3f2=Dt[String(_0x343149)]??null;return _0xa1b3f2?(this[_0x1aa9dc(0xde)]=_0xa1b3f2,this[_0x1aa9dc(0x104)]=_0x57ed6b,this['day']=_0x5730df,!0x0):!0x1;}[_0x3ef337(0x18a)](_0x182ab2){const _0x4e4447=_0x3ef337;let _0x1f409c=/^(\d{4})-(\d{2})$/[_0x4e4447(0x155)](_0x182ab2);if(!_0x1f409c?.[0x1]||!_0x1f409c[0x2])return!0x1;let _0x15e351=Number(_0x1f409c[0x1]),_0x372749=Number(_0x1f409c[0x2]);if(!Number['isFinite'](_0x15e351)||_0x372749<0x1||_0x372749>0xc)return!0x1;let _0x54237e=Dt[String(_0x372749)]??null;return _0x54237e?(this['month']=_0x54237e,this['year']=_0x15e351,this['day']=null,!0x0):!0x1;}static['extractInlineParentheticalPhrase'](_0x157943){const _0x1d3dd0=_0x3ef337;let _0x251615=/\s*\(([^)]*)\)\s*$/[_0x1d3dd0(0x155)](_0x157943);if(!_0x251615)return{'core':_0x157943[_0x1d3dd0(0x290)](),'phrase':null};let _0x522aae=_0x251615[0x1][_0x1d3dd0(0x290)](),_0x52a4e4=_0x157943['slice'](0x0,_0x251615[_0x1d3dd0(0x281)])['trim']();return{'core':_0x52a4e4[_0x1d3dd0(0x17e)]?_0x52a4e4:_0x157943[_0x1d3dd0(0x290)](),'phrase':_0x522aae[_0x1d3dd0(0x17e)]?_0x522aae:null};}[_0x3ef337(0x220)](_0x578ff6){return Dt[_0x578ff6]??null;}['parseSinglePart'](_0x31fb18){const _0x1db68f=_0x3ef337;_0x31fb18['includes']('/')&&this[_0x1db68f(0x1a7)](_0x31fb18)||(this[_0x1db68f(0xde)]=null,this['year']=Number(_0x31fb18));}[_0x3ef337(0x18e)](_0x31acb8,_0x2a802c){const _0x56410e=_0x3ef337;if(this[_0x56410e(0x20b)](_0x31acb8)){if(this['typeDateAct']=_0x31acb8,_0x2a802c['includes']('/')&&this[_0x56410e(0x1a7)](_0x2a802c))return;this[_0x56410e(0xde)]=null,this['year']=Number(_0x2a802c);return;}_0x31acb8[_0x56410e(0x1db)]('/')&&this[_0x56410e(0x1a7)](_0x31acb8)||(this[_0x56410e(0xde)]=this['parseMonthToken'](_0x31acb8),this[_0x56410e(0x104)]=Number(_0x2a802c));}[_0x3ef337(0x115)](_0x3445df,_0x56aa1b,_0x378854){const _0x3dcd28=_0x3ef337;if(this['isRelativeType'](_0x3445df)){this[_0x3dcd28(0x28d)]=_0x3445df,this[_0x3dcd28(0xde)]=this[_0x3dcd28(0x22d)](_0x56aa1b),this[_0x3dcd28(0x104)]=Number(_0x378854);return;}if(_0x56aa1b['includes']('/')&&this[_0x3dcd28(0x1a7)](_0x56aa1b))return;let _0x31e734=Number(_0x3445df);this[_0x3dcd28(0xad)]=_0x31e734>=0x1&&_0x31e734<=0x1f?_0x31e734:null,this['month']=this['parseMonthToken'](_0x56aa1b),this['year']=Number(_0x378854);}[_0x3ef337(0x130)](_0x4e6750,_0x11e027,_0x15f4ea,_0x21c02a){const _0x59bf5a=_0x3ef337;if(!this[_0x59bf5a(0x20b)](_0x4e6750))return;this[_0x59bf5a(0x28d)]=_0x4e6750;let _0x3a8440=Number(_0x11e027);this['day']=_0x3a8440>=0x1&&_0x3a8440<=0x1f?_0x3a8440:null,this[_0x59bf5a(0xde)]=this[_0x59bf5a(0x22d)](_0x15f4ea),this['year']=Number(_0x21c02a);}['tryConsumeMonthYearSlash'](_0x1d602a){const _0x286da5=_0x3ef337;let _0x5b55a6=_0x1d602a[_0x286da5(0x290)]();if(!/^\d{1,2}\/\d{2,4}$/['test'](_0x5b55a6))return!0x1;let [_0x151a68,_0x28cc73]=_0x5b55a6[_0x286da5(0x1a9)]('/');if(!_0x151a68||!_0x28cc73)return!0x1;this[_0x286da5(0xde)]=this['convertMonth'](_0x151a68);let _0x33849f=Number(_0x28cc73);return Number[_0x286da5(0x1cc)](_0x33849f)?(this[_0x286da5(0x104)]=_0x33849f,!0x0):!0x1;}['parseMonthToken'](_0x2e7a86){const _0x38a7b9=_0x3ef337;return lt[_0x38a7b9(0x1db)](_0x2e7a86)?_0x2e7a86:null;}['formatCoreDate'](_0x23f3d2,_0x5c6eda,_0x3aa86d){return _0x3aa86d?_0x5c6eda?_0x23f3d2?_0x23f3d2+'\x20'+_0x5c6eda+'\x20'+_0x3aa86d:_0x5c6eda+'\x20'+_0x3aa86d:''+_0x3aa86d:'';}['tryParseRangeDate'](_0x2a6746){const _0x2e0961=_0x3ef337;let _0x3f40b0=/^BET\s+(.+)\s+AND\s+(.+)$/[_0x2e0961(0x155)](_0x2a6746);if(_0x3f40b0?.[0x1]&&_0x3f40b0?.[0x2]){let _0x13376b=this[_0x2e0961(0x117)](_0x3f40b0[0x1]),_0x1ae705=this['parseCoreDateValue'](_0x3f40b0[0x2]);return!_0x13376b||!_0x1ae705?!0x1:(this['updateBetweenDates'](_0x13376b,_0x1ae705),!0x0);}let _0x155287=/^FROM\s+(.+)\s+TO\s+(.+)$/[_0x2e0961(0x155)](_0x2a6746);if(_0x155287?.[0x1]&&_0x155287?.[0x2]){let _0xe583a6=this[_0x2e0961(0x117)](_0x155287[0x1]),_0x4dcf00=this[_0x2e0961(0x117)](_0x155287[0x2]);return!_0xe583a6||!_0x4dcf00?!0x1:(this['updateFromToDates'](_0xe583a6,_0x4dcf00),!0x0);}return!0x1;}['parseCoreDateValue'](_0x32e1e6){const _0x284b79=_0x3ef337;let _0x23ee4d=this['stripCalendarPrefixes'](i[_0x284b79(0x246)](_0x32e1e6['trim']())[_0x284b79(0x211)][_0x284b79(0x290)]())[_0x284b79(0x1a9)](/\s+/);if(_0x23ee4d['length']===0x1){let _0x158083=Number(_0x23ee4d[0x0]);return Number['isFinite'](_0x158083)?{'year':_0x158083}:null;}if(_0x23ee4d['length']===0x2){if(_0x23ee4d[0x0]['includes']('/')){let _0x1144df=_0x23ee4d[0x0][_0x284b79(0x290)]();if(!/^\d{1,2}\/\d{2,4}$/['test'](_0x1144df))return null;let [_0x2d3be4,_0x4285eb]=_0x1144df['split']('/'),_0x54464e=Number(_0x4285eb);return!Number['isFinite'](_0x54464e)||!_0x2d3be4?null:{'year':_0x54464e,'month':this[_0x284b79(0x220)](_0x2d3be4)};}let _0x4ad93a=this[_0x284b79(0x22d)](_0x23ee4d[0x0]),_0x519cf3=Number(_0x23ee4d[0x1]);return Number[_0x284b79(0x1cc)](_0x519cf3)?{'year':_0x519cf3,'month':_0x4ad93a}:null;}if(_0x23ee4d[_0x284b79(0x17e)]===0x3){let _0x5af66d=Number(_0x23ee4d[0x0]),_0x47cb59=this[_0x284b79(0x22d)](_0x23ee4d[0x1]),_0x49b0cb=Number(_0x23ee4d[0x2]);return Number[_0x284b79(0x1cc)](_0x49b0cb)?{'year':_0x49b0cb,'month':_0x47cb59,'day':_0x5af66d>=0x1&&_0x5af66d<=0x1f?_0x5af66d:null}:null;}return null;}['isRelativeType'](_0x24e2e2){const _0x2e9f6a=_0x3ef337;return _0x24e2e2===_0x2e9f6a(0x20c)||_0x24e2e2===_0x2e9f6a(0xe1)||_0x24e2e2==='AFT'||_0x24e2e2==='INT'||_0x24e2e2===_0x2e9f6a(0x222)||_0x24e2e2===_0x2e9f6a(0x25c);}[_0x3ef337(0x1ce)](_0xcdeef4){const _0x30ae79=_0x3ef337;return _0xcdeef4[_0x30ae79(0x23a)](/@#[^@]+@\s*/g,'')[_0x30ae79(0x290)]();}[_0x3ef337(0x116)](){const _0x2fea34=_0x3ef337;let _0x53cf85=new Date()[_0x2fea34(0x216)]();if(this[_0x2fea34(0x104)]&&(this[_0x2fea34(0x104)]<0x0||this['year']>_0x53cf85))return!0x1;if(this[_0x2fea34(0x104)]&&!this[_0x2fea34(0xde)]&&!this[_0x2fea34(0xad)])return!0x0;if(this[_0x2fea34(0xde)]&&!lt[_0x2fea34(0x1db)](this[_0x2fea34(0xde)]))return!0x1;if(this[_0x2fea34(0x104)]&&this[_0x2fea34(0xde)]&&!this[_0x2fea34(0xad)])return!0x0;if(this[_0x2fea34(0xad)]){let _0x4df45b=this[_0x2fea34(0x104)]%0x4===0x0&&this[_0x2fea34(0x104)]%0x64!==0x0||this[_0x2fea34(0x104)]%0x190===0x0,_0x9b19a5;if(this['month']==='FEB'&&_0x4df45b)_0x9b19a5=0x1d;else{let _0x5e08ed=lt[_0x2fea34(0xef)](_0x3443fc=>_0x3443fc===this[_0x2fea34(0xde)]);_0x9b19a5=Tt[_0x2fea34(0xdc)](_0x238f9a=>_0x238f9a<=new Date(this[_0x2fea34(0x104)],_0x5e08ed,0x0)[_0x2fea34(0x131)]())['length'];}return Tt[_0x2fea34(0x1db)](this['day'])&&this[_0x2fea34(0xad)]<=_0x9b19a5;}return!0x1;}},ge=(_0x219fcf,_0x206b20,_0x4e595c)=>_0x219fcf?_0x206b20?_0x4e595c?_0x4e595c+'\x20'+_0x206b20+'\x20'+_0x219fcf:_0x206b20+'\x20'+_0x219fcf:''+_0x219fcf:'',L=class{constructor(_0x48b41f,_0x4b1dfd){const _0x2b1c1c=_0x3ef337;a(this,_0x2b1c1c(0x292),null),a(this,'county',null),a(this,'state',null),a(this,_0x2b1c1c(0xb9),null),a(this,_0x2b1c1c(0x197),null),a(this,'coordinate'),(_0x48b41f&&(this[_0x2b1c1c(0x292)]=_0x48b41f),this[_0x2b1c1c(0xbe)]=_0x4b1dfd??new V());}[_0x3ef337(0x1cf)](_0x5c0bfc){const _0x328c81=_0x3ef337;let _0x752d65=_0x5c0bfc[_0x328c81(0x1a9)](',')[_0x328c81(0x27f)](_0x5583b5=>_0x5583b5[_0x328c81(0x290)]()),_0x27ec53=_0x752d65['length'],_0x345e57=()=>{const _0x38053f=_0x328c81;this[_0x38053f(0x292)]=null,this['county']=null,this['state']=null,this['country']=null,this['placPhrase']=null;};if(_0x27ec53===0x0||_0x752d65[_0x328c81(0x158)](_0x5f090c=>!_0x5f090c)){_0x345e57();return;}if(_0x27ec53===0x1){this[_0x328c81(0x292)]=_0x752d65[0x0]||null,this['county']=null,this['state']=null,this['country']=null;return;}if(_0x27ec53===0x2){this[_0x328c81(0x292)]=_0x752d65[0x0]||null,this['county']=null,this['state']=null,this[_0x328c81(0xb9)]=_0x752d65[0x1]||null;return;}if(_0x27ec53===0x3){this['city']=_0x752d65[0x0]||null,this[_0x328c81(0x296)]=_0x752d65[0x1]||null,this[_0x328c81(0x113)]=null,this['country']=_0x752d65[0x2]||null;return;}if(_0x27ec53===0x4){this[_0x328c81(0x292)]=_0x752d65[0x0]||null,this['county']=_0x752d65[0x1]||null,this['state']=_0x752d65[0x2]||null,this[_0x328c81(0xb9)]=_0x752d65[0x3]||null;return;}this[_0x328c81(0x292)]=_0x752d65[0x0]||null,this[_0x328c81(0x296)]=_0x752d65[0x1]||null,this[_0x328c81(0x113)]=_0x752d65[0x2]||null,this[_0x328c81(0xb9)]=_0x752d65[_0x328c81(0xa7)](0x3)['join'](',\x20')[_0x328c81(0x290)]()||null;}[_0x3ef337(0x219)](_0x143067){const _0x1d3d77=_0x3ef337;let _0x1a755e=_0x143067[_0x1d3d77(0x290)]();_0x1a755e&&(this[_0x1d3d77(0x197)]=this[_0x1d3d77(0x197)]?.[_0x1d3d77(0x290)]()?this[_0x1d3d77(0x197)]['trim']()+'\x20'+_0x1a755e:_0x1a755e);}[_0x3ef337(0x12c)](){const _0x34c7bc=_0x3ef337;if(this['county']&&this[_0x34c7bc(0x296)]['length']>0x0||this['state']&&this[_0x34c7bc(0x113)][_0x34c7bc(0x17e)]>0x0||this[_0x34c7bc(0xb9)]&&this[_0x34c7bc(0xb9)]['length']>0x0)return[this[_0x34c7bc(0x292)],this['county'],this['state'],this['country']]['map'](_0x2177bc=>(_0x2177bc??'')[_0x34c7bc(0x290)]())['join'](',\x20');let _0x4844d7=(this[_0x34c7bc(0x292)]??'')['trim']();return _0x4844d7[_0x34c7bc(0x17e)]>0x0?_0x4844d7:null;}['addCity'](_0xb7bed3){const _0x1aa977=_0x3ef337;_0xb7bed3[_0x1aa977(0x1db)](',')?this['setFromGedcom7PlacPayload'](_0xb7bed3):(this[_0x1aa977(0x296)]=null,this[_0x1aa977(0x113)]=null,this['country']=null,this[_0x1aa977(0x197)]=null,this['city']=_0xb7bed3);}},V=class{constructor(_0x2455b0,_0x3b2309){const _0x53abae=_0x3ef337;a(this,_0x53abae(0xc4)),a(this,_0x53abae(0xae)),(this['latitude']=_0x2455b0,this[_0x53abae(0xae)]=_0x3b2309);}[_0x3ef337(0xa1)]([_0x1c7522,_0x335b6b]){const _0x31ef0d=_0x3ef337;this['latitude']=_0x1c7522,this[_0x31ef0d(0xae)]=_0x335b6b;}},k=['ADOP',_0x3ef337(0x235),'BARM','BASM',_0x3ef337(0x23b),_0x3ef337(0x208),_0x3ef337(0x166),'CENS','CHR','CHRA',_0x3ef337(0xe5),_0x3ef337(0xfc),'DEAT','EMIG','EVEN',_0x3ef337(0x238),_0x3ef337(0xd7),_0x3ef337(0x25a),'NATU','ORDN',_0x3ef337(0x244),'RETI',_0x3ef337(0x21d),_0x3ef337(0x192),_0x3ef337(0x1f1),'DIVF',_0x3ef337(0x272),_0x3ef337(0xcb),_0x3ef337(0xd0),'MARL',_0x3ef337(0x298),_0x3ef337(0x1b4)],It=['BIRT','CHR','ADOP','BAPM',_0x3ef337(0x208),'BARM',_0x3ef337(0x27c),_0x3ef337(0xee),_0x3ef337(0xe5),'FCOM',_0x3ef337(0xd7),_0x3ef337(0x24d),_0x3ef337(0x25a),_0x3ef337(0x26b),_0x3ef337(0x1c5),'ORDN',_0x3ef337(0x229),_0x3ef337(0x244),_0x3ef337(0x21d),_0x3ef337(0x1bd),_0x3ef337(0x272),_0x3ef337(0xcb),_0x3ef337(0xd8),_0x3ef337(0xd0),'MARR',_0x3ef337(0x1b4),_0x3ef337(0x192),_0x3ef337(0x138),'DIV',_0x3ef337(0xcc),_0x3ef337(0xfc),_0x3ef337(0x166)],W=new Set(k),v=class{constructor(_0x3fdb83,_0x3b9802,_0x5c2ddb){const _0x5b9a59=_0x3ef337;a(this,_0x5b9a59(0xd9),''),a(this,_0x5b9a59(0x1d8)),a(this,'sourceUri'),a(this,_0x5b9a59(0x191)),(this[_0x5b9a59(0x1d8)]=_0x3fdb83,_0x3b9802!==void 0x0&&(this[_0x5b9a59(0x1f8)]=_0x3b9802),_0x5c2ddb!==void 0x0&&(this['objeXrefId']=_0x5c2ddb));}get[_0x3ef337(0x153)](){const _0x49d0ab=_0x3ef337;return this['file']?.[_0x49d0ab(0x26e)]??this['relativePath']?.['split']('/')['pop']()??'media';}[_0x3ef337(0x254)](){const _0x52c992=_0x3ef337;return!!this['file']||!!this['sourceUri']?.[_0x52c992(0x290)]()||this['objeXrefId']!=null;}},S=class{constructor(){const _0x226c9d=_0x3ef337;a(this,_0x226c9d(0xd9)),a(this,'files',[]);}['add'](_0xdc4bd2){const _0x57888b=_0x3ef337;let _0x21c824=_0xdc4bd2[_0x57888b(0x1d8)]?.['name']??'',_0x3cfea6=(this[_0x57888b(0xd9)]??'')[_0x57888b(0x23a)](/\/+$/,'');_0xdc4bd2['relativePath']=_0x3cfea6?_0x3cfea6+'/'+_0x21c824:_0x21c824,this[_0x57888b(0xc7)][_0x57888b(0x19e)](_0xdc4bd2);}[_0x3ef337(0x1a8)](_0x2385db){const _0x2dcce8=_0x3ef337;let _0xc38ab6=this[_0x2dcce8(0xc7)]['findIndex']((_0x44ba2d,_0x2c47c1)=>_0x2c47c1===_0x2385db);_0xc38ab6>=0x0&&this['files']['splice'](_0xc38ab6,0x1);}[_0x3ef337(0x139)](){this['files']=[];}},_=class{constructor(){const _0x1f5153=_0x3ef337;a(this,_0x1f5153(0x20d),[]),a(this,_0x1f5153(0x10e)),a(this,_0x1f5153(0x15e));}['updateLines'](_0x531631){const _0x4afa54=_0x3ef337;_0x531631?.[_0x4afa54(0x17e)]>0x0&&(this[_0x4afa54(0x15e)]=_0x531631);}[_0x3ef337(0x144)](){this['lines']=[];}[_0x3ef337(0x1d1)](_0x3d351f){const _0x7f066c=_0x3ef337;this[_0x7f066c(0x10e)]=_0x3d351f;}[_0x3ef337(0x135)](_0x5c02f7){const _0x2d7fec=_0x3ef337;this[_0x2d7fec(0x20d)]=_0x5c02f7;}},C=class{constructor(){a(this,'list',[]);}[_0x3ef337(0x21b)](_0x2019ec){const _0x5378bd=_0x3ef337;this[_0x5378bd(0x198)][_0x5378bd(0x19e)](_0x2019ec);}['updateFromIndex'](_0x6caac2,_0x139527){const _0x232f7a=_0x3ef337;this[_0x232f7a(0x198)][_0x139527]=_0x6caac2;}['removeFromIndex'](_0x4bf83e){const _0x41f8c2=_0x3ef337;let _0x39c388=this['list']['findIndex']((_0x580930,_0x3be20d)=>_0x3be20d===_0x4bf83e);_0x39c388>=0x0&&this[_0x41f8c2(0x198)]['splice'](_0x39c388,0x1);}['removeAll'](){this['list']=[];}};function f(_0xc2602c){const _0x3a6be1=_0x3ef337;let _0x188ea5=_0xc2602c['trimStart'](),_0x403f6d=_0x188ea5['indexOf']('\x20');if(_0x403f6d<=0x0)return null;let _0x30eb7f=_0x188ea5[_0x3a6be1(0xa7)](0x0,_0x403f6d),_0x592538=_0x188ea5[_0x3a6be1(0xa7)](_0x403f6d+0x1)[_0x3a6be1(0x19a)](),_0x13ffad=_0x592538[_0x3a6be1(0x25b)]('\x20');if(_0x13ffad<=0x0)return{'level':_0x30eb7f,'tag':_0x592538,'value':''};let _0x3c0a1c=_0x592538[_0x3a6be1(0xa7)](0x0,_0x13ffad),_0x143103=_0x592538['slice'](_0x13ffad+0x1);return{'level':_0x30eb7f,'tag':_0x3c0a1c,'value':_0x143103};}function ye(_0x107e78){let _0x4bd66f=_0x107e78['lastIndexOf']('.');return _0x4bd66f<=0x0?{'stem':_0x107e78,'ext':''}:{'stem':_0x107e78['slice'](0x0,_0x4bd66f),'ext':_0x107e78['slice'](_0x4bd66f)};}function Ae(_0x20fb54,_0x5f01bc,_0x49a332){return _0x49a332===0x0?''+_0x20fb54+_0x5f01bc:_0x20fb54+'_'+_0x49a332+_0x5f01bc;}function ut(_0x5d96b3,_0xb3e239,_0x373e7c){const _0x18d164=_0x3ef337;let _0x385f54=new Set(_0x373e7c),_0x2ab71b=_0x5d96b3[_0x18d164(0x23a)](/\/+$/,''),_0x4e3a5c=_0xb3e239[_0x18d164(0x23a)](/^[/\\]+|[/\\]+/g,''),{stem:_0x80dc26,ext:_0x3c6020}=ye(_0x4e3a5c),_0x174705=0x2710;for(let _0x4462c7=0x0;_0x4462c7<_0x174705;_0x4462c7++){let _0x137e82=Ae(_0x80dc26,_0x3c6020,_0x4462c7),_0x455a0b=_0x2ab71b?_0x2ab71b+'/'+_0x137e82:_0x137e82;if(!_0x385f54[_0x18d164(0x161)](_0x455a0b))return _0x455a0b;}throw new Error(_0x18d164(0x17d));}function ct(_0x2f6d2c,_0x1f59ee){const _0x52eff4=_0x3ef337;return[..._0x2f6d2c,..._0x1f59ee[_0x52eff4(0x27f)](_0x1300ea=>_0x1300ea['relativePath'])['filter'](_0x258af9=>!!_0x258af9)];}function Z(_0x5ae42b){let _0x3de3a3=_0x5ae42b['trim']();return/^\d+$/['test'](_0x3de3a3)?String(Number(_0x3de3a3)):_0x3de3a3;}function xt(_0x335aa5){const _0x2390da=_0x3ef337;let _0x1942c4=new Map(),_0x57cae2=0x0;for(let _0x2a9843 of _0x335aa5[_0x2390da(0x1b2)]())if(/^\d+$/[_0x2390da(0x206)](_0x2a9843)){let _0x227da9=Number(_0x2a9843);_0x57cae2=Math[_0x2390da(0xff)](_0x57cae2,_0x227da9),_0x1942c4[_0x2390da(0xed)](_0x2a9843,_0x227da9);}let _0x13501d=[..._0x335aa5['keys']()]['filter'](_0x2c557f=>!/^\d+$/[_0x2390da(0x206)](_0x2c557f))[_0x2390da(0x13c)](),_0x1c615b=_0x57cae2+0x1;for(let _0x339deb of _0x13501d)_0x1942c4[_0x2390da(0xed)](_0x339deb,_0x1c615b++);let _0x4ed69f=new Map();for(let [_0x375d9d,_0x58bab7]of _0x335aa5){let _0x455695=_0x1942c4[_0x2390da(0x1cb)](_0x375d9d);_0x455695!==void 0x0&&_0x4ed69f[_0x2390da(0xed)](_0x455695,_0x58bab7);}return{'byNumericId':_0x4ed69f,'pointerToId':_0x1942c4};}function D(_0x43f7c6,_0x260766){const _0x4066bd=_0x3ef337;let _0xa9573=_0x43f7c6['trim'](),_0x8a4494=new RegExp('^@'+_0x260766+'(\x5cd+)@$')[_0x4066bd(0x155)](_0xa9573);return _0x8a4494?.[0x1]?Number(_0x8a4494[0x1]):null;}function Pe(_0x17b97a,_0x33e7c5){const _0x128074=_0x3ef337;let _0x209a81=_0x17b97a[_0x128074(0x290)](),_0x5eac8b=new RegExp('^@'+_0x33e7c5+'([^@]+)@$')['exec'](_0x209a81);return _0x5eac8b?.[0x1]?.['trim']()?_0x5eac8b[0x1][_0x128074(0x290)]():null;}function mt(_0x5cc08b,_0x44600b){let _0x1a39ee=Pe(_0x5cc08b,_0x44600b);return _0x1a39ee===null?null:Z(_0x1a39ee);}function $(_0x16ffd6,_0x3a0d0f,_0x525952){const _0xe86037=_0x3ef337;let _0x48ef5c='@'+_0x3a0d0f,_0x65b2fd=_0x16ffd6['indexOf'](_0x48ef5c);if(_0x65b2fd<0x0)return null;let _0x4a42d3=_0x16ffd6[_0xe86037(0x25b)]('@',_0x65b2fd+_0x48ef5c['length']);if(_0x4a42d3<=_0x65b2fd||!_0x16ffd6['includes'](_0x525952,_0x4a42d3))return null;let _0x5dd49c=_0x16ffd6['slice'](_0x65b2fd+_0x48ef5c[_0xe86037(0x17e)],_0x4a42d3);return/^\d+$/[_0xe86037(0x206)](_0x5dd49c)?Number(_0x5dd49c):null;}function ht(_0x424e17){const _0x222ee2=_0x3ef337;let _0x27a8b2=_0x424e17[_0x222ee2(0x19a)]();if($(_0x27a8b2,'I',_0x222ee2(0x163))!==null)return null;let _0x41c3d5=/^0\s+@([^@]+)@\s+INDI\b/['exec'](_0x27a8b2);return _0x41c3d5?.[0x1]?.[_0x222ee2(0x290)]()?_0x41c3d5[0x1][_0x222ee2(0x290)]():null;}function Jt(_0x82874f,_0x3b5159){const _0x97567a=_0x3ef337;let _0x13d2d3=_0x82874f[_0x97567a(0x290)]();if(!_0x13d2d3)return null;let _0x4ccd7b=D(_0x13d2d3,'I');if(_0x4ccd7b!==null)return _0x4ccd7b;if(_0x13d2d3[_0x97567a(0x252)]('@')&&_0x13d2d3[_0x97567a(0x12a)]('@')&&_0x13d2d3[_0x97567a(0x17e)]>=0x4){let _0x43b1b6=_0x13d2d3['slice'](0x1,-0x1)['trim']();if(!_0x43b1b6)return null;let _0x4388df=_0x3b5159?.[_0x97567a(0x1cb)](_0x43b1b6);if(_0x4388df!==void 0x0)return _0x4388df;}return null;}function Ee(_0x53b620){const _0x2044df=_0x3ef337;return _0x53b620[_0x2044df(0x19a)]()['match'](/^1\s+([A-Z][A-Z0-9_]*)/)?.[0x1]??null;}function Wt(_0x37a4aa,_0x2190f8,_0xa1f7ce){const _0x3d3ac2=_0x3ef337;let _0x9bb841=[],_0x57cc74=[..._0x2190f8],_0x1f5b4e=_0x3f152a=>{let _0x5f593a=_0x3f152a['trimStart']();return/^1\s+/['test'](_0x5f593a);};for(let _0x5e6390=0x0;_0x5e6390<_0x37a4aa['length'];_0x5e6390++){let _0x1a7a80=_0x37a4aa[_0x5e6390],_0x5f4d43=f(_0x1a7a80);if(_0x5f4d43?.['level']==='1'&&(_0x5f4d43[_0x3d3ac2(0x1b7)]===_0x3d3ac2(0x237)||_0x5f4d43['tag']==='WIFE')){let _0x16ce63=Jt(_0x5f4d43[_0x3d3ac2(0xbc)],_0xa1f7ce);_0x16ce63!==null&&_0x57cc74['push'](_0x16ce63);}let _0x2cea54=Ee(_0x1a7a80);if(_0x2cea54&&W['has'](_0x2cea54)){let _0x10a16e=[_0x1a7a80],_0x47438d=_0x5e6390+0x1,_0x118ce9=_0x37a4aa[_0x47438d];for(;_0x118ce9&&!_0x1f5b4e(_0x118ce9);)_0x10a16e[_0x3d3ac2(0x19e)](_0x118ce9),_0x47438d+=0x1,_0x118ce9=_0x37a4aa[_0x47438d];_0x9bb841[_0x3d3ac2(0x19e)](_0x10a16e),_0x5e6390=_0x47438d-0x1;}}return{'entries':_0x9bb841[_0x3d3ac2(0xdc)](_0x2e767b=>_0x2e767b[_0x3d3ac2(0x17e)]>0x1),'indis':_0x57cc74};}function dt(_0x1e64dc){const _0x2ad61c=_0x3ef337;return _0x1e64dc['replace'](/\r\n/g,'\x0a')[_0x2ad61c(0x23a)](/\r/g,'\x0a')['trimEnd']();}function ve(_0x187ff2){const _0x26d769=_0x3ef337;return _0x187ff2==='DATE'||_0x187ff2===_0x26d769(0x143)||_0x187ff2===_0x26d769(0x270)||_0x187ff2===_0x26d769(0x140)||_0x187ff2==='SDATE';}var be=[...k],Zt=[...It],Kt=['JAN',_0x3ef337(0x1c1),'MAR',_0x3ef337(0x200),'MAY',_0x3ef337(0x13b),_0x3ef337(0x120),_0x3ef337(0x27b),'SEP',_0x3ef337(0x255),_0x3ef337(0x263),'DEC'],pt=class{constructor(_0x390d4a,_0x5bcd76,_0x17f532,_0x502357,_0x563709,_0x1ad034,_0x5659a7,_0x8a5bfb){const _0x307282=_0x3ef337;a(this,'type'),a(this,_0x307282(0x25e),null),a(this,'place',null),a(this,_0x307282(0x20d),[]),a(this,_0x307282(0xe3)),a(this,_0x307282(0xa2)),a(this,'sdateAct',null),a(this,'eventPhrases',[]),a(this,_0x307282(0x268),[]),a(this,_0x307282(0x277),[]),a(this,_0x307282(0x150),new Map()),a(this,_0x307282(0xe7),new S()),a(this,'notes',new C()),(this['type']=_0x390d4a,_0x5bcd76&&(this['dateAct']=_0x5bcd76),_0x17f532&&(this['place']=_0x17f532),_0x502357?.[_0x307282(0x17e)]>0x0&&(this[_0x307282(0x20d)]=_0x502357),_0x563709&&(this[_0x307282(0xe7)]=_0x563709),_0x1ad034&&(this['newMultimediaFiles']=_0x1ad034),_0x5659a7&&(this[_0x307282(0x14a)]=_0x5659a7),_0x8a5bfb?.[_0x307282(0xe3)]!==void 0x0&&(this[_0x307282(0xe3)]=_0x8a5bfb[_0x307282(0xe3)]),_0x8a5bfb?.[_0x307282(0xa2)]!==void 0x0&&(this['evenTypeLabel']=_0x8a5bfb['evenTypeLabel']),_0x8a5bfb?.['sdateAct']&&(this[_0x307282(0x18f)]=_0x8a5bfb['sdateAct']),_0x8a5bfb?.[_0x307282(0xb1)]?.['length']&&(this[_0x307282(0xb1)]=[..._0x8a5bfb['eventPhrases']]),_0x8a5bfb?.[_0x307282(0x268)]?.[_0x307282(0x17e)]&&(this[_0x307282(0x268)]=[..._0x8a5bfb['preservedSubrecordPrefix']]),_0x8a5bfb?.['preservedSubrecordSuffix']?.[_0x307282(0x17e)]&&(this[_0x307282(0x277)]=[..._0x8a5bfb['preservedSubrecordSuffix']]));}get[_0x3ef337(0xc7)](){const _0x2d0280=_0x3ef337;return Array['from'](this[_0x2d0280(0x150)]['values']());}get[_0x3ef337(0x16a)](){const _0x166cfe=_0x3ef337;return Array[_0x166cfe(0x174)](this[_0x166cfe(0x150)]['keys']());}['addMultimedia'](_0x21e5df,_0x3d70cc){const _0x1a9750=_0x3ef337;let _0x34d235=_0x3d70cc??this[_0x1a9750(0x20d)][0x0];if(_0x34d235===void 0x0||!_0x21e5df?.[_0x1a9750(0x1d8)])return;let _0x1ed61a=_0x34d235+'/'+this['type'],_0x314b92=this['mediaRelativePathsInUse'](),_0x3f503b=ut(_0x1ed61a,_0x21e5df['file'][_0x1a9750(0x26e)],_0x314b92);_0x21e5df[_0x1a9750(0xd9)]=_0x3f503b,this[_0x1a9750(0xe7)][_0x1a9750(0xc7)][_0x1a9750(0x19e)](_0x21e5df),this['newMultimediaFiles'][_0x1a9750(0xed)](_0x3f503b,_0x21e5df);}[_0x3ef337(0x241)](_0x4a9f8e){const _0x570808=_0x3ef337;let _0x3927a9=Array[_0x570808(0x174)](this[_0x570808(0x150)]['keys']())['find']((_0x15fff4,_0x531de8)=>_0x4a9f8e===_0x531de8);if(_0x3927a9){this['newMultimediaFiles']['delete'](_0x3927a9);let _0x2fa89d=this[_0x570808(0xe7)][_0x570808(0xc7)][_0x570808(0xef)](_0x51333b=>_0x51333b[_0x570808(0xd9)]===_0x3927a9);_0x2fa89d>=0x0&&this[_0x570808(0xe7)][_0x570808(0xc7)]['splice'](_0x2fa89d,0x1);}}[_0x3ef337(0x162)](){const _0x15c605=_0x3ef337;return ct(this[_0x15c605(0x150)][_0x15c605(0x1b2)](),this[_0x15c605(0xe7)]['files']);}['updateType'](_0x4d78c7){const _0x15114a=_0x3ef337;this[_0x15114a(0x10e)]=_0x4d78c7;}[_0x3ef337(0x135)](_0x3ad711){const _0x266e64=_0x3ef337;this[_0x266e64(0x20d)]=_0x3ad711;}[_0x3ef337(0x1e9)](_0x112ae7){const _0x50e5b0=_0x3ef337;this[_0x50e5b0(0x1e1)]=_0x112ae7;}['updateDateAct'](_0xf90e29){const _0x1f9bba=_0x3ef337;if(_0xf90e29===null){this['dateAct']=null;return;}_0xf90e29?.['isValid']()&&(this[_0x1f9bba(0x25e)]=_0xf90e29);}[_0x3ef337(0x1d6)](_0x3cb19b){const _0x4e9480=_0x3ef337;if(_0x3cb19b===null){this[_0x4e9480(0x18f)]=null;return;}_0x3cb19b['isValid']()&&(this['sdateAct']=_0x3cb19b);}},T=class{constructor(){const _0x1a3853=_0x3ef337;a(this,_0x1a3853(0x198),[]);}[_0x3ef337(0x125)](_0x1424a4){const _0x360eba=_0x3ef337;this[_0x360eba(0x198)]['push'](_0x1424a4);}['updateFromIndex'](_0x4d2ded,_0x18d106){const _0x296e2c=_0x3ef337;this[_0x296e2c(0x198)][_0x18d106]=_0x4d2ded;}[_0x3ef337(0x1a8)](_0x5ac320){const _0x1b0d06=_0x3ef337;let _0x1bbd7c=this[_0x1b0d06(0x198)][_0x1b0d06(0xef)]((_0x38b2f5,_0x283de7)=>_0x283de7===_0x5ac320);_0x1bbd7c>=0x0&&this[_0x1b0d06(0x198)][_0x1b0d06(0x101)](_0x1bbd7c,0x1);}[_0x3ef337(0x139)](){const _0x27a47b=_0x3ef337;this[_0x27a47b(0x198)]=[];}[_0x3ef337(0x1e2)](){this['list']=[...this['list']]['sort']((_0x4eecfe,_0x279f46)=>{const _0x3d7bdc=_0xab6a;let _0x1c0803=this['hasSortableDate'](_0x4eecfe),_0x49b880=this[_0x3d7bdc(0x12d)](_0x279f46),_0x2fd9af=this[_0x3d7bdc(0x1a4)](_0x4eecfe,_0x279f46);if(_0x2fd9af!==0x0)return _0x2fd9af;if(!_0x1c0803&&!_0x49b880)return this['compareByTypeOrder'](_0x4eecfe[_0x3d7bdc(0x10e)],_0x279f46['type']);if(!_0x1c0803&&_0x49b880)return 0x1;if(_0x1c0803&&!_0x49b880)return-0x1;let _0x538a72=this[_0x3d7bdc(0x1c2)](_0x4eecfe),_0x1c4d73=this[_0x3d7bdc(0x1c2)](_0x279f46),_0x47b4e0=_0x538a72['year'],_0x3e57c2=_0x1c4d73['year'];if(_0x47b4e0!==_0x3e57c2)return _0x47b4e0-_0x3e57c2;let _0x3af498=_0x538a72['month']||'',_0x31decb=_0x1c4d73[_0x3d7bdc(0xde)]||'',_0x1d815b=Kt['indexOf'](_0x3af498),_0x25a77b=Kt[_0x3d7bdc(0x25b)](_0x31decb),_0x659f3b=_0x1d815b===-0x1?Number['MAX_SAFE_INTEGER']:_0x1d815b,_0x3d4b25=_0x25a77b===-0x1?Number['MAX_SAFE_INTEGER']:_0x25a77b;if(_0x659f3b!==_0x3d4b25)return _0x659f3b-_0x3d4b25;let _0x272c06=_0x538a72['day']||0x0,_0x14446a=_0x1c4d73[_0x3d7bdc(0xad)]||0x0;return _0x272c06-_0x14446a;});}[_0x3ef337(0x1c2)](_0x27500a){const _0x504dc0=_0x3ef337;let _0x2b081b=_0x27500a[_0x504dc0(0x25e)];if(_0x2b081b?.[_0x504dc0(0x104)]&&_0x2b081b[_0x504dc0(0x116)]())return _0x2b081b;let _0xf8c858=_0x27500a['sdateAct'];return _0xf8c858?.[_0x504dc0(0x104)]&&_0xf8c858[_0x504dc0(0x116)]()?_0xf8c858:_0x2b081b??_0xf8c858??null;}[_0x3ef337(0x12d)](_0x2e7598){const _0x51903c=_0x3ef337;let _0x1a639c=this['sortDateAct'](_0x2e7598)?.[_0x51903c(0x104)];return Number[_0x51903c(0x1cc)](_0x1a639c)&&_0x1a639c>0x0;}['compareByTypeOrder'](_0x5829d8,_0x48ed0e){const _0x1308a9=_0x3ef337;let _0x2d8f9b=Zt['indexOf'](_0x5829d8),_0x59c126=Zt[_0x1308a9(0x25b)](_0x48ed0e),_0x334fb4=_0x2d8f9b===-0x1?Number[_0x1308a9(0x14f)]:_0x2d8f9b,_0x169308=_0x59c126===-0x1?Number[_0x1308a9(0x14f)]:_0x59c126;return _0x334fb4-_0x169308;}[_0x3ef337(0x1a4)](_0x39c59c,_0x13722b){const _0x2625ca=_0x3ef337;return!(_0x39c59c['type']===_0x2625ca(0x298)&&_0x13722b[_0x2625ca(0x10e)]===_0x2625ca(0x1f1)||_0x39c59c['type']===_0x2625ca(0x1f1)&&_0x13722b[_0x2625ca(0x10e)]==='MARR')||!this['haveSameParticipants'](_0x39c59c,_0x13722b)?0x0:_0x39c59c[_0x2625ca(0x10e)]===_0x2625ca(0x298)?-0x1:0x1;}[_0x3ef337(0xd1)](_0x4c2d4c,_0x3f66ca){const _0x34af2e=_0x3ef337;if(_0x4c2d4c[_0x34af2e(0x20d)][_0x34af2e(0x17e)]===0x0||_0x3f66ca[_0x34af2e(0x20d)][_0x34af2e(0x17e)]===0x0||_0x4c2d4c[_0x34af2e(0x20d)][_0x34af2e(0x17e)]!==_0x3f66ca['INDIS'][_0x34af2e(0x17e)])return!0x1;let _0x330dc5=[..._0x4c2d4c[_0x34af2e(0x20d)]][_0x34af2e(0x13c)]((_0x4ac79c,_0x425eb6)=>_0x4ac79c-_0x425eb6),_0x33d1ae=[..._0x3f66ca['INDIS']][_0x34af2e(0x13c)]((_0x12e172,_0x3b8204)=>_0x12e172-_0x3b8204);return _0x330dc5['every']((_0x29fd61,_0x3802f8)=>_0x29fd61===_0x33d1ae[_0x3802f8]);}},ft=class extends T{['extractActsInfo'](_0x4fb1d3,_0x3c75d1,_0x1e671a,_0x21755f,_0x152342){const _0x1e6277=_0x3ef337;let _0x1573ca=Wt(_0x4fb1d3,_0x3c75d1,_0x152342);this['convertToActs'](_0x1573ca['entries'],_0x1573ca[_0x1e6277(0x12e)],_0x1e671a,_0x21755f);}['convertToActs'](_0x3474c0,_0x319235,_0x124938,_0x2cf1a7){const _0x21d78d=_0x3ef337;for(let _0x94d00f of _0x3474c0){let _0x134b05=_0x94d00f[0x0],_0x3d7168=this[_0x21d78d(0xd5)](_0x134b05);if(!_0x3d7168)continue;let _0x4079a1,_0x2baf6c=new L(),_0x2ad5fb=new S(),_0xa3f03=new Map(),_0x3aa3e5=[],_0x5e2603=f(_0x134b05),_0x460bf8,_0x31adc4;_0x5e2603?.['tag']===_0x21d78d(0x1bd)&&(_0x460bf8=_0x5e2603['value']?.['trim']()??'');let _0x122550,_0x4af904=[],_0x3a824a=[],_0x55b30e=[],_0x456fc9=!0x1,_0x213e12=!0x1,_0x46e238=!0x1,_0x493ddf=!0x1;for(let _0x57756f=0x1;_0x57756f<_0x94d00f['length'];_0x57756f++){let _0x9110c6=_0x94d00f[_0x57756f],_0x15726c=f(_0x9110c6);if(!_0x15726c)continue;let {level:_0x577ffc,tag:_0x2dd5c6,value:_0x15d60a}=_0x15726c,_0xbfc55b=Number(_0x577ffc);if(Number[_0x21d78d(0x251)](_0xbfc55b))continue;let _0x45a91c=!0x1;if(_0x2dd5c6===_0x21d78d(0x1e6)&&_0x577ffc==='2'&&(_0x31adc4=_0x15d60a['trim'](),_0x3d7168==='EVEN'&&(_0x45a91c=!0x0)),_0x213e12&&_0xbfc55b>0x2){if(_0xbfc55b===0x3&&_0x2dd5c6===_0x21d78d(0x1f2)){_0x4079a1?.['appendDatePhraseFromImport'](_0x15d60a);continue;}if(_0xbfc55b===0x3&&_0x2dd5c6===_0x21d78d(0x106)){_0x4079a1?.['setDateTimeFromImport'](_0x15d60a);continue;}(_0x456fc9?_0x55b30e:_0x3a824a)['push'](dt(_0x9110c6));continue;}if(_0x493ddf&&_0xbfc55b>0x2){if(_0xbfc55b===0x3&&_0x2dd5c6===_0x21d78d(0x1f2)){_0x122550?.['appendDatePhraseFromImport'](_0x15d60a);continue;}if(_0xbfc55b===0x3&&_0x2dd5c6==='TIME'){_0x122550?.['setDateTimeFromImport'](_0x15d60a);continue;}(_0x456fc9?_0x55b30e:_0x3a824a)['push'](dt(_0x9110c6));continue;}if(_0x46e238&&_0xbfc55b>0x2){if(_0x2dd5c6===_0x21d78d(0x1f3))continue;if(_0xbfc55b===0x3&&_0x2dd5c6===_0x21d78d(0x1f2)){_0x2baf6c[_0x21d78d(0x219)](_0x15d60a);continue;}if(_0x2dd5c6!=='LATI'&&_0x2dd5c6!==_0x21d78d(0xdd)){(_0x456fc9?_0x55b30e:_0x3a824a)[_0x21d78d(0x19e)](dt(_0x9110c6));continue;}}if(_0x577ffc==='2'&&_0x2dd5c6!==_0x21d78d(0x195)&&(_0x213e12=!0x1),_0x577ffc==='2'&&_0x2dd5c6!==_0x21d78d(0x143)&&(_0x46e238=!0x1),_0x577ffc==='2'&&_0x2dd5c6!=='SDATE'&&(_0x493ddf=!0x1),!_0x45a91c)switch(_0x2dd5c6){case _0x21d78d(0x195):{let _0xfb7d71=_0x15d60a;_0xfb7d71!=='inconnue'&&(_0x4079a1=new U(_0xfb7d71),_0x213e12=!0x0,_0x45a91c=!0x0);break;}case _0x21d78d(0x1c9):{if(_0x577ffc!=='2')break;let _0x17f720=_0x15d60a[_0x21d78d(0x290)]();_0x17f720&&_0x17f720!==_0x21d78d(0x10b)&&(_0x122550=new U(_0x17f720),_0x493ddf=!0x0,_0x45a91c=!0x0);break;}case'PHRASE':{if(_0x577ffc==='2'){let _0x257a87=_0x15d60a['trim']();_0x257a87&&_0x4af904[_0x21d78d(0x19e)](_0x257a87),_0x45a91c=!0x0;}break;}case'PLAC':{_0x15d60a[_0x21d78d(0x290)]()&&_0x2baf6c['setFromGedcom7PlacPayload'](_0x15d60a),_0x46e238=!0x0,_0x45a91c=!0x0;break;}case'LATI':case'LONG':{let _0x927eed=_0x15d60a;_0x3aa3e5[_0x21d78d(0x19e)](Number(_0x927eed)),_0x45a91c=!0x0;break;}case'FILE':{let _0x349c9c=_0x15d60a[_0x21d78d(0x290)](),_0x327a6f=_0x124938['get'](_0x349c9c);if(!_0x327a6f&&/^https?:\/\//i[_0x21d78d(0x206)](_0x349c9c)){let _0x90505=new v(void 0x0,_0x349c9c);_0x90505['relativePath']=_0x349c9c,_0x2ad5fb[_0x21d78d(0xc7)][_0x21d78d(0x19e)](_0x90505),_0xa3f03[_0x21d78d(0xed)](_0x349c9c,_0x90505),_0x45a91c=!0x0;break;}if(!_0x327a6f)break;let _0x230f83=new v(_0x327a6f);_0x230f83['relativePath']=_0x349c9c,_0x2ad5fb['files']['push'](_0x230f83),_0xa3f03[_0x21d78d(0xed)](_0x349c9c,_0x230f83),_0x45a91c=!0x0;break;}case _0x21d78d(0x140):{if(_0x577ffc!=='2')break;let _0x4d1002=D(_0x15d60a,'O');if(_0x4d1002===null)break;let _0x1b7c1f=_0x21d78d(0x249)+_0x4d1002,_0x4acda5=_0x2cf1a7?.['get'](_0x4d1002)?.[_0x21d78d(0x1f8)]??null,_0x2ecbde=new v(void 0x0,_0x4acda5,_0x4d1002);_0x2ecbde[_0x21d78d(0xd9)]=_0x1b7c1f,_0x2ad5fb['files'][_0x21d78d(0x19e)](_0x2ecbde),_0xa3f03[_0x21d78d(0xed)](_0x1b7c1f,_0x2ecbde),_0x45a91c=!0x0;break;}default:break;}if(!_0x456fc9&&_0x45a91c&&_0x577ffc==='2'&&ve(_0x2dd5c6)&&(_0x2dd5c6===_0x21d78d(0x195)?_0x15d60a[_0x21d78d(0x290)]()&&_0x15d60a!==_0x21d78d(0x10b)&&(_0x456fc9=!0x0):_0x456fc9=!0x0),!_0x45a91c&&_0xbfc55b>=0x2){let _0x19b26f=dt(_0x9110c6);_0x19b26f[_0x21d78d(0x290)]()['length']>0x0&&(_0x456fc9?_0x55b30e:_0x3a824a)[_0x21d78d(0x19e)](_0x19b26f);}_0x3aa3e5[_0x21d78d(0x17e)]===0x2&&(_0x2baf6c['coordinate'][_0x21d78d(0xa1)](_0x3aa3e5),_0x3aa3e5[_0x21d78d(0x17e)]=0x0);}let _0x1cd7c1={};_0x3d7168===_0x21d78d(0x1bd)&&(_0x1cd7c1['evenDescription']=_0x460bf8??'',_0x1cd7c1['evenTypeLabel']=_0x31adc4?.['length']?_0x31adc4:'CUSTOM'),_0x122550&&(_0x1cd7c1[_0x21d78d(0x18f)]=_0x122550),_0x4af904[_0x21d78d(0x17e)]&&(_0x1cd7c1[_0x21d78d(0xb1)]=_0x4af904),_0x3a824a[_0x21d78d(0x17e)]&&(_0x1cd7c1[_0x21d78d(0x268)]=_0x3a824a),_0x55b30e[_0x21d78d(0x17e)]&&(_0x1cd7c1[_0x21d78d(0x277)]=_0x55b30e);let _0x2cb808=new pt(_0x3d7168,_0x4079a1,_0x2baf6c,[],_0x2ad5fb,_0xa3f03,void 0x0,Object[_0x21d78d(0x1b2)](_0x1cd7c1)[_0x21d78d(0x17e)]?_0x1cd7c1:void 0x0);_0x2cb808[_0x21d78d(0x135)](_0x319235),this[_0x21d78d(0x125)](_0x2cb808);}}[_0x3ef337(0xd5)](_0x4d9ea1){const _0x19eb8b=_0x3ef337;let _0x15bce1=f(_0x4d9ea1);if(!_0x15bce1||_0x15bce1[_0x19eb8b(0x262)]!=='1')return null;let _0xea0faf=_0x15bce1['tag'];return be[_0x19eb8b(0x1db)](_0xea0faf)?_0xea0faf:null;}},K=class{constructor(_0x3ff77b,_0x169886,_0x5188d4=[]){const _0x21e5d0=_0x3ef337;a(this,_0x21e5d0(0x1b7),_0x3ff77b),a(this,'value',_0x169886),a(this,'children',_0x5188d4);}[_0x3ef337(0x14c)](_0x1acec4){const _0x386b49=_0x3ef337;let _0x187873='1\x20'+this['tag']+'\x20'+this[_0x386b49(0xbc)]+_0x1acec4;for(let _0x22cc3b of this[_0x386b49(0x1e8)])_0x187873+=_0x22cc3b['level']+'\x20'+_0x22cc3b[_0x386b49(0x1b7)]+'\x20'+_0x22cc3b['value']+_0x1acec4;return _0x187873;}},Q=class{constructor(_0x879f19,_0x5ee8c5,_0x485bc4=[]){const _0x1f2682=_0x3ef337;a(this,'payload',_0x879f19),a(this,_0x1f2682(0x265),_0x5ee8c5),a(this,_0x1f2682(0x260),_0x485bc4);}[_0x3ef337(0x14c)](_0x292c85){const _0x10715e=_0x3ef337;let _0x5ef68e='2\x20TRAN\x20'+this['payload']+_0x292c85;this[_0x10715e(0x265)]?.['trim']()&&(_0x5ef68e+='3\x20LANG\x20'+this['lang'][_0x10715e(0x290)]()+_0x292c85);for(let _0x50c4db of this['parts'])_0x5ef68e+=_0x50c4db[_0x10715e(0x262)]+'\x20'+_0x50c4db[_0x10715e(0x1b7)]+'\x20'+_0x50c4db['value']+_0x292c85;return _0x5ef68e;}},q=class{constructor(_0x42043e,_0x1f32a3,_0x3caf6d=[],_0x272ad5=[]){const _0x2a89bb=_0x3ef337;a(this,_0x2a89bb(0x266),_0x42043e),a(this,_0x2a89bb(0x10e),_0x1f32a3),a(this,_0x2a89bb(0x260),_0x3caf6d),a(this,_0x2a89bb(0x160),_0x272ad5);}[_0x3ef337(0x14c)](_0x3be6f5){const _0x19b216=_0x3ef337;let _0x5c0b2e=_0x19b216(0x24a)+this[_0x19b216(0x266)]+_0x3be6f5;this[_0x19b216(0x10e)]?.[_0x19b216(0x290)]()&&(_0x5c0b2e+='2\x20TYPE\x20'+this[_0x19b216(0x10e)]['trim']()+_0x3be6f5);for(let _0x3e4bcc of this[_0x19b216(0x260)])_0x5c0b2e+=_0x3e4bcc[_0x19b216(0x262)]+'\x20'+_0x3e4bcc[_0x19b216(0x1b7)]+'\x20'+_0x3e4bcc[_0x19b216(0xbc)]+_0x3be6f5;for(let _0x37aace of this['translations'])_0x5c0b2e+=_0x37aace[_0x19b216(0x14c)](_0x3be6f5);return _0x5c0b2e;}},Me=new Set(['NAME','SEX',_0x3ef337(0xda),_0x3ef337(0x168),_0x3ef337(0x15c),_0x3ef337(0x270),'OBJE']),Fe=new Set(['FACT',_0x3ef337(0xca),_0x3ef337(0x165),_0x3ef337(0x1f7),'IDNO',_0x3ef337(0x1fb),'NCHI',_0x3ef337(0xa5),_0x3ef337(0x19c),_0x3ef337(0x16c),_0x3ef337(0x17c),'RESI','SSN','TITL',_0x3ef337(0x271)]);function _0x1b1f(){const _0x204267=['toGedcom','26QtlrJI','deleteMultimedia','MAX_SAFE_INTEGER','newMultimediaFiles','appendDatePhrase','getDateBlock','filename','672987jbDLQd','exec','setInformationFamilies','ADDR','every','2\x20TIME\x20','famPointerToId','lastname','NOTE','\x20TO\x20','lines','PLACE','translations','has','mediaRelativePathsInUse','INDI','1\x20NAME\x20gedcom-ts','CAST','BURI','ABBR','FAMS','forEach','keysFiles','zipFile','PROP','2\x20TYPE\x20','toLowerCase','DATA','arrayBuffer','_preservedTopLevelRecords','7.0','1\x20SCHMA','from','NSFX','0\x20TRLR','setFamc','Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File','size','resolveZipPath','REFN','RELI','Impossible\x20de\x20trouver\x20un\x20nom\x20de\x20fichier\x20média\x20disponible','length','getIndi','DEST','ACTS','contentGedcom','NAME','getPlace','resolvedInformationNotes','onerror','individualPointerToIndiNumber','3\x20PHRASE\x20','SEX','tryParseIsoYm','setFromGedcom7Payload','CORP','setDateAct','parseTwoParts','sdateAct','trimEnd','objeXrefId','ANUL','linkPersonAsChild','SLGS','DATE','GET','placPhrase','list','CITY','trimStart','unknown','OCCU','MAY','push','getIndiAttributes','toLocaleDateString','sosa','15020kxLUMv','AGNC','compareMarriageAndDivorce','5.5','haveParentsOfPerson','tryConsumeMonthYearSlash','removeFromIndex','split','\x20@I','acts','2.1.0','createIndiFromZeroLine','getName','TRAN','setEventPhrases','replaceAt','keys','mapPersons','MARS','fromGedcomFile','endMonth','tag','CHAR','parsePersonLine','tryParseRangeDate','setCountry','symbol','EVEN','numeric','createFAMSFromValue','persons','FEB','sortDateAct','CONL','datePhrase','NATU','1\x20CHAR\x20UTF-8','date','MAR','SDATE','SLGC','get','isFinite','PRESERVED_SUFFIX','stripCalendarPrefixes','setFromGedcom7PlacPayload','assign','updateType','isIndiRecordFirstLine','open','3\x20MAP','attributes','updateSdateAct','IDNO','file','getFams','Act\x20index\x20','includes','all','CUSTOM','applyVerbatimFallback','FACT','.png','place','sortByDate','image/jpeg','.jpeg','image/png','TYPE','hasStructuredDateForExport','children','updatePlace','image/gif','setBetween','sortByYear','TRLR','updateBetweenDates','formatCoreDate','setIndis','DIV','PHRASE','MAP','8LpdvDG','preservedTopLevelRecords','gedcom-ts_','EDUC','sourceUri','objePayloadById','1\x20OBJE\x20@O','NATI','RESI','endDay','BAPL','SURN','APR','splitInformationNotes','PUBL','applyGedcomDatePayload','You\x20don\x27t\x20have\x20any\x20.ged\x20File\x20in\x20your\x20.gdz\x20File','.ged','test','2\x20FILE\x20','BLES','JAN','setExactDate','isRelativeType','BEF','INDIS','extractNoteRecordLabel','BIRTH','FROM','core','responseText','byNumericId','updateFromToDates','informationFamiliesByLabel','getFullYear','18330PQMILh','pointerToId','appendPlacPhraseFromImport','joinExtraTopLevelRecords','addNote','2-digit','WILL','formatDateFamilyBlock','FROM\x20','convertMonth','REPO','EST','createDirectAncestries','stream','1\x20FAMC\x20@F','setPlacPhrase','BARM','1\x20DEST\x20','RETI','obje:','ownerIndi','Le\x20type\x20doit-être\x20au\x20format:\x20application/x-gedcom','parseMonthToken','1\x20EVEN\x20','onload','BLOB','ENDL','mapFiles','DESC','join','BAPM','PEDI','HUSB','FCOM','NOTES','replace','BIRT','SSN','ROLE','file\x20must\x20be\x20a\x20File','2\x20PHRASE\x20','1\x20NAME','removeMultimedia','44584USUcOB','application/zip','PROB','AGE','extractInlineParentheticalPhrase','video/mp4','QUAY','obje:O','1\x20NAME\x20','ATTRS','absorbStandaloneObjeBlocksInto','EMIG','VERS','setPreservedSuffix','3650248TBjpRP','isNaN','startsWith','headCopyright','hasExportablePayload','OCT','POST','.zip','dateTime','createPersons','IMMI','indexOf','CAL','text','dateAct','formatPreservedBlock','parts','0\x20@O','level','NOV','getFile','lang','payload','CHIL','preservedSubrecordPrefix','.jpg','.gif','CENS','gedcomBlob','image/webp','name','WIFE','FILE','RESN','ENGA','setState','notePointerToId','toUpperCase','entries','preservedSubrecordSuffix','ADR2','2\x20NAME\x20gedcom-ts','events','AUG','BASM','ADR1','tryParseIsoYmd','map','BET','index','CHR','1\x20SOUR\x20generated\x20by\x20gedcom-ts','CTRY','updateLines','FAMF','headSchemaTagDefs','SUBN','en-US','EVENT_PHRASES','nameVariants','resolvedInformationFamilies','typeDateAct','ingestGedcomText','ALIA','trim','find','city','2\x20VERS\x20','PHON','\x20CONT\x20','county','informationHeaderLines','MARR','appendFams','816hPTQKs','splitInformationFamilies','createMultimediaFromObjePointer','addCoordinates','evenTypeLabel','linkPersonAsPartner','extractActsInfo','NMR','_gedcom-ts_','slice','setDateTimeFromImport','createFirstnamesAndLastnameJson','18861469IJCfuW','\x20AND\x20','placesMap','day','longitude','NICK','resolvePersonIndi','eventPhrases','sanitizeSublinePayload','media','setPlace','fr-FR','PRESERVED_PREFIX','line','firstnames','country','extractFamRecordLabel','createPersonJson','value','1\x20COPR\x20','coordinate','ADOP','informationNotesByLabel','.pdf','CAUS','onCreate','latitude','exportOptions','753683TWWjEd','files','4\x20LONG\x20','MEDI','DSCR','MARB','DEAT','buildPersonMultimediaLines','getFamc','buildPerson','MARC','haveSameParticipants','appendDatePhraseFromImport','COPR','1\x20FILE\x20','resolveTypeAct','parse','GRAD','MARL','relativePath','FAMC','1\x20FAMS\x20@F','filter','LONG','month','SOUR','verbatimDatePayload','ABT','RFN','evenDescription','string','CONF','STAE','multimediaFiles','addMultimedia','resolveActIndis','setSosa','LANG','createSexFromValue','set','CHRA','findIndex','clearPlacPhrase','2\x20FORM\x20City,\x20County,\x20State,\x20Country','TEXT','defaultSubmitterRecord','groupPartners','application/x-gedcom','createMultimediaFilesFromValue','title','setCoordinates','preserveTopLevelRecord','status','finalizeAfterParse','CREM','2709OzMxwq','setAttributes','max','download','splice','setNameVariants','replaceCoordinateModel','year','number','TIME','NPFX','getEventPhrasesBlock','parseSinglePart','application/pdf','inconnue','clear','LEGA','type','TEMP','clearPreservedPrefix','setCounty','@\x20FAM','state','setPreservedPrefix','parseThreeParts','isValid','parseCoreDateValue','buildTextualIndiXrefToSyntheticIdMap','target','beginGedcom','createFAMCFromValue','datasetVersion','FILES','clearDate','childsMap','JUL','endYear','CHAN','updateFromIndex','informationPersons','add','clearFams','ingestRecordBlock','DESI','informationFamilies','endsWith','PAGE','toGedcom7PlacPayload','hasSortableDate','indis','haveFiles','parseFourParts','getDate','ORDN','SUBM','read','addIndis','SEP','hydratePlacesFromActs','DIVF','removeAll','extraTopLevelRecords','JUN','sort','2\x20FORM\x20','SPFX','audio/mpeg','OBJE','updateExactDate','pipeThrough','PLAC','removeLines','NCHI','setType','partnersMap','getSdateBlock','FORM','notes','AUTH'];_0x1b1f=function(){return _0x204267;};return _0x1b1f();}function Ne(_0x28c837){const _0x49ef25=_0x3ef337;return Me[_0x49ef25(0x161)](_0x28c837)||W['has'](_0x28c837)?!0x1:Fe[_0x49ef25(0x161)](_0x28c837);}function Se(_0x18f6cf){const _0x3cd4f1=_0x3ef337;let _0xc7540d=f(_0x18f6cf[0x0]),_0x589ee2=new q(_0xc7540d?.[_0x3cd4f1(0xbc)]??''),_0x4aae05=0x1;for(;_0x4aae05<_0x18f6cf['length'];){let _0x8b7791=f(_0x18f6cf[_0x4aae05]);if(!_0x8b7791){_0x4aae05+=0x1;continue;}if(_0x8b7791['level']==='2'&&_0x8b7791[_0x3cd4f1(0x1b7)]==='TYPE')_0x589ee2[_0x3cd4f1(0x10e)]=_0x8b7791[_0x3cd4f1(0xbc)]['trim'](),_0x4aae05+=0x1;else{if(_0x8b7791['level']==='2'&&_0x8b7791[_0x3cd4f1(0x1b7)]===_0x3cd4f1(0x1af)){let _0x307c60=new Q(_0x8b7791[_0x3cd4f1(0xbc)]);for(_0x4aae05+=0x1;_0x4aae05<_0x18f6cf[_0x3cd4f1(0x17e)];){let _0x3924d3=f(_0x18f6cf[_0x4aae05]);if(!_0x3924d3||_0x3924d3['level']==='2')break;_0x3924d3[_0x3cd4f1(0x262)]==='3'&&_0x3924d3['tag']===_0x3cd4f1(0xeb)?_0x307c60[_0x3cd4f1(0x265)]=_0x3924d3['value'][_0x3cd4f1(0x290)]():_0x307c60[_0x3cd4f1(0x260)][_0x3cd4f1(0x19e)]({'level':_0x3924d3[_0x3cd4f1(0x262)],'tag':_0x3924d3['tag'],'value':_0x3924d3[_0x3cd4f1(0xbc)]}),_0x4aae05+=0x1;}_0x589ee2[_0x3cd4f1(0x160)][_0x3cd4f1(0x19e)](_0x307c60);}else _0x8b7791['level']==='2'&&_0x589ee2[_0x3cd4f1(0x260)]['push']({'level':'2','tag':_0x8b7791['tag'],'value':_0x8b7791['value']}),_0x4aae05+=0x1;}}return _0x589ee2;}function Rt(_0x5db4d2){const _0x54c411=_0x3ef337;let _0x1a4820=[],_0x5cd599=0x0;for(;_0x5cd599<_0x5db4d2['length'];){let _0x43e8c9=f(_0x5db4d2[_0x5cd599]);if(!_0x43e8c9){_0x5cd599+=0x1;continue;}if(_0x43e8c9['level']==='1'&&_0x43e8c9[_0x54c411(0x1b7)]==='NAME'){let _0x4f12d3=[_0x5db4d2[_0x5cd599]];for(_0x5cd599+=0x1;_0x5cd599<_0x5db4d2['length'];){let _0x2549b0=f(_0x5db4d2[_0x5cd599]);if(!_0x2549b0||_0x2549b0[_0x54c411(0x262)]==='1')break;_0x4f12d3[_0x54c411(0x19e)](_0x5db4d2[_0x5cd599]),_0x5cd599+=0x1;}_0x1a4820[_0x54c411(0x19e)](Se(_0x4f12d3));continue;}_0x5cd599+=0x1;}return _0x1a4820;}function De(_0x4d5854){const _0x2752c7=_0x3ef337;let _0x539f42=f(_0x4d5854[0x0]);if(!_0x539f42||_0x539f42['level']!=='1')return null;let _0x33c76c=[];for(let _0x5774c4=0x1;_0x5774c4<_0x4d5854['length'];_0x5774c4+=0x1){let _0x5e0d42=f(_0x4d5854[_0x5774c4]);_0x5e0d42&&_0x5e0d42[_0x2752c7(0x262)]!=='1'&&_0x33c76c[_0x2752c7(0x19e)]({'level':_0x5e0d42['level'],'tag':_0x5e0d42['tag'],'value':_0x5e0d42[_0x2752c7(0xbc)]});}return new K(_0x539f42['tag'],_0x539f42['value'],_0x33c76c);}function Lt(_0x33e5f4){const _0x107093=_0x3ef337;let _0x41b15c=[],_0x1dd9bf=0x0;for(;_0x1dd9bf<_0x33e5f4['length'];){let _0x3dbf44=f(_0x33e5f4[_0x1dd9bf]);if(!_0x3dbf44||_0x3dbf44[_0x107093(0x262)]!=='1'){_0x1dd9bf+=0x1;continue;}if(!Ne(_0x3dbf44['tag'])){_0x1dd9bf+=0x1;continue;}let _0x359065=[_0x33e5f4[_0x1dd9bf]];for(_0x1dd9bf+=0x1;_0x1dd9bf<_0x33e5f4['length'];){let _0x394d21=f(_0x33e5f4[_0x1dd9bf]);if(!_0x394d21||_0x394d21['level']==='1')break;_0x359065[_0x107093(0x19e)](_0x33e5f4[_0x1dd9bf]),_0x1dd9bf+=0x1;}let _0x4b152c=De(_0x359065);_0x4b152c&&_0x41b15c['push'](_0x4b152c);}return _0x41b15c;}function Ct(_0x36c9f6){const _0x2fd34f=_0x3ef337;let _0x1c5e88=/\/([^/]+)\//['exec'](_0x36c9f6);return{'firstnames':(_0x1c5e88?_0x36c9f6['replace'](_0x1c5e88[0x0],''):_0x36c9f6)[_0x2fd34f(0x23a)](/"/g,'')[_0x2fd34f(0x23a)](/\/+/g,'')[_0x2fd34f(0x290)]()[_0x2fd34f(0x1a9)](/\s+/)[_0x2fd34f(0xdc)](Boolean),'lastname':_0x1c5e88?.[0x1]?.[_0x2fd34f(0x290)]()[_0x2fd34f(0x275)]()??''};}function Qt(_0x3f92b1){const _0x1ab91d=_0x3ef337;let _0x1710d7=null,_0x26b162=-0x1;for(let _0x346d08=0x0;_0x346d08<_0x3f92b1['length'];_0x346d08++){let _0x354e74=f(_0x3f92b1[_0x346d08]);if(_0x354e74?.['tag']!=='NAME'||_0x354e74['level']!=='1')continue;let _0x501f9e=_0x354e74[_0x1ab91d(0xbc)],_0x565da4=!0x1;for(let _0x352f44=_0x346d08+0x1;_0x352f44<_0x3f92b1['length'];_0x352f44++){let _0x406b69=f(_0x3f92b1[_0x352f44]);if(_0x406b69){if(_0x406b69[_0x1ab91d(0x262)]==='1')break;if(_0x406b69[_0x1ab91d(0x262)]==='2'&&_0x406b69['tag']==='TYPE'){let _0x59cab9=_0x406b69['value']['trim']()[_0x1ab91d(0x275)]();(_0x59cab9===_0x1ab91d(0x20f)||_0x59cab9===_0x1ab91d(0x23b))&&(_0x565da4=!0x0);}}}let _0x13efbf=0x0;_0x565da4&&(_0x13efbf+=0x64),/\/[^/]+\//['test'](_0x501f9e)&&(_0x13efbf+=0xa),_0x13efbf>_0x26b162&&(_0x26b162=_0x13efbf,_0x1710d7=_0x501f9e);}return _0x1710d7;}function $t(_0x472a18){const _0x3ce9d7=_0x3ef337;if(_0x472a18['length']===0x0)return null;let _0x16107c=null,_0x4d3a40=-0x1;for(let _0x5957f8 of _0x472a18){let _0x54f68c=_0x5957f8[_0x3ce9d7(0x10e)]?.['trim']()['toUpperCase'](),_0x5f5ac0=0x0;(_0x54f68c===_0x3ce9d7(0x20f)||_0x54f68c===_0x3ce9d7(0x23b))&&(_0x5f5ac0+=0x64),/\/[^/]+\//['test'](_0x5957f8[_0x3ce9d7(0x266)])&&(_0x5f5ac0+=0xa),_0x5f5ac0>_0x4d3a40&&(_0x4d3a40=_0x5f5ac0,_0x16107c=_0x5957f8);}return _0x16107c;}var et=(_0x2368f6=>(_0x2368f6['M']='M',_0x2368f6['F']='F',_0x2368f6['U']='U',_0x2368f6['X']='X',_0x2368f6))(et||{}),tt=class{constructor(_0x4eb129,_0x524aed,_0x1b38b7,_0xfe97ff,_0x254d03,_0x41c52f,_0x2f4468,_0x2a2867,_0x13d54b,_0x418323,_0x30e4a7,_0x1e6c53){const _0x2d774a=_0x3ef337;a(this,_0x2d774a(0x1a1)),a(this,'INDI'),a(this,'SEX'),a(this,'firstnames'),a(this,_0x2d774a(0x15b)),a(this,_0x2d774a(0xda)),a(this,_0x2d774a(0x168),[]),a(this,'newMultimediaFiles',new Map()),a(this,_0x2d774a(0xe7),new S()),a(this,'acts',new T()),a(this,_0x2d774a(0x14a),new C()),a(this,_0x2d774a(0x28b),[]),a(this,'attributes',[]),(this[_0x2d774a(0x163)]=_0x2f4468,this[_0x2d774a(0x189)]=_0x524aed,this['FAMC']=_0x254d03,this[_0x2d774a(0x168)]=_0x41c52f??[],this[_0x2d774a(0x1a1)]=_0x4eb129,this['firstnames']=_0x1b38b7??[],this[_0x2d774a(0x15b)]=_0xfe97ff??'',_0x2a2867&&_0x2a2867['files'][_0x2d774a(0x17e)]>0x0&&(this['multimediaFiles']=_0x2a2867),_0x418323&&_0x418323['list']['length']>0x0&&(this['acts']=_0x418323),_0x30e4a7&&_0x30e4a7[_0x2d774a(0x17e)]>0x0&&(this[_0x2d774a(0x28b)]=[..._0x30e4a7]),_0x1e6c53&&_0x1e6c53['length']>0x0&&(this['attributes']=[..._0x1e6c53]));}get[_0x3ef337(0xc7)](){const _0x2569df=_0x3ef337;return Array[_0x2569df(0x174)](this['newMultimediaFiles']['values']());}get[_0x3ef337(0x16a)](){const _0x28e7d5=_0x3ef337;return Array['from'](this[_0x28e7d5(0x150)][_0x28e7d5(0x1b2)]());}[_0x3ef337(0xbb)](_0x1a84ed,_0x206d01,_0x43e429,_0x64c85a,_0x4c03c5,_0x271633){const _0x4a8e2b=_0x3ef337;let _0x567164=_0x1a84ed['map'](_0x129713=>_0x129713[_0x4a8e2b(0x23a)](/[\n\r]+/g,''));_0x567164['forEach'](_0x47f439=>{this['parsePersonLine'](_0x47f439,_0x43e429,_0x64c85a,_0x4c03c5,_0x271633);}),this[_0x4a8e2b(0x28b)]=Rt(_0x567164),this[_0x4a8e2b(0x1d5)]=Lt(_0x567164),this[_0x4a8e2b(0xa9)](_0x567164);let _0x340f8d=new ft(),_0x3a1fc9=typeof this[_0x4a8e2b(0x163)]==_0x4a8e2b(0x105)?[this['INDI']]:[];_0x340f8d[_0x4a8e2b(0xa4)](_0x567164,_0x3a1fc9,_0x43e429,_0x271633?.['objePayloadById'],_0x4c03c5),this[_0x4a8e2b(0x168)]?.['length']>0x0&&_0x206d01&&this[_0x4a8e2b(0x168)][_0x4a8e2b(0x169)](_0x16e2ef=>{const _0x27ecb8=_0x4a8e2b;let _0x4e94bc=_0x206d01[_0x27ecb8(0x1cb)](_0x16e2ef);_0x340f8d[_0x27ecb8(0xa4)](_0x4e94bc??[],[],_0x43e429,_0x271633?.['objePayloadById'],_0x4c03c5);}),this[_0x4a8e2b(0x1ab)]=_0x340f8d,this[_0x4a8e2b(0x1ab)][_0x4a8e2b(0x1e2)]();}[_0x3ef337(0x1b9)](_0x5347ff,_0x4e7ecf,_0x4e6087,_0x341d4f,_0x5271f4){const _0x342d2c=_0x3ef337;let _0x5913af=f(_0x5347ff);if(!_0x5913af)return;let {level:_0x7f0e41,tag:_0x2d9f27,value:_0x9c9ffd}=_0x5913af;if(_0x7f0e41==='0'&&_0x9c9ffd['trim']()==='INDI'){this['createIndiFromZeroLine'](_0x5347ff,_0x341d4f);return;}switch(_0x2d9f27){case'SEX':this['createSexFromValue'](_0x9c9ffd);break;case'FAMC':this[_0x342d2c(0x11b)](_0x9c9ffd,_0x5271f4);break;case'FAMS':this['createFAMSFromValue'](_0x9c9ffd,_0x5271f4);break;case'NOTE':this['addNoteFromGedcom'](_0x9c9ffd,_0x4e6087,_0x5271f4);break;case'FILE':_0x7f0e41==='1'&&this[_0x342d2c(0xf6)](_0x9c9ffd,_0x4e7ecf);break;case _0x342d2c(0x140):_0x7f0e41==='1'&&this['createMultimediaFromObjePointer'](_0x9c9ffd,_0x5271f4);break;default:break;}}[_0x3ef337(0x1ad)](_0x4c6769,_0x2e8e9f){const _0x201724=_0x3ef337;let _0x42b363=$(_0x4c6769,'I',_0x201724(0x163));if(_0x42b363!==null){this['INDI']=_0x42b363;return;}let _0x2441b7=ht(_0x4c6769);_0x2441b7!=null&&_0x2e8e9f?.['has'](_0x2441b7)&&(this[_0x201724(0x163)]=_0x2e8e9f[_0x201724(0x1cb)](_0x2441b7));}[_0x3ef337(0xec)](_0x148cf1){let _0x1e879b=_0x148cf1['trim']();(_0x1e879b==='M'||_0x1e879b==='F'||_0x1e879b==='U'||_0x1e879b==='X')&&(this['SEX']=_0x1e879b);}[_0x3ef337(0x11b)](_0x1b0503,_0x4717ae){const _0x2a9497=_0x3ef337;let _0x3af698=D(_0x1b0503,'F');if(_0x3af698===null){let _0x8bca56=mt(_0x1b0503,'F');_0x8bca56!=null&&(_0x3af698=_0x4717ae?.[_0x2a9497(0x15a)]?.['get'](_0x8bca56)??null);}_0x3af698!==null&&(this['FAMC']=_0x3af698);}[_0x3ef337(0x1bf)](_0x5d713b,_0x79971c){const _0x1afa1b=_0x3ef337;let _0x209cb4=D(_0x5d713b,'F');if(_0x209cb4===null){let _0x855eea=mt(_0x5d713b,'F');_0x855eea!=null&&(_0x209cb4=_0x79971c?.['famPointerToId']?.[_0x1afa1b(0x1cb)](_0x855eea)??null);}_0x209cb4!==null&&this['FAMS'][_0x1afa1b(0x19e)](_0x209cb4);}[_0x3ef337(0xf6)](_0xf8b5cf,_0x4e7c84){const _0x335a54=_0x3ef337;let _0x3524ec=_0xf8b5cf['trim']();if(!_0x3524ec)return;let _0x31256f=_0x4e7c84?.[_0x335a54(0x1cb)](_0x3524ec);if(!_0x31256f&&/^https?:\/\//i[_0x335a54(0x206)](_0x3524ec)){let _0x30a5a7=new v(void 0x0,_0x3524ec);_0x30a5a7[_0x335a54(0xd9)]=_0x3524ec,this[_0x335a54(0xe7)]['files']['push'](_0x30a5a7),this[_0x335a54(0x150)]['set'](_0x3524ec,_0x30a5a7);return;}if(!_0x31256f||!_0x4e7c84?.[_0x335a54(0x179)])return;let _0x1739b8=new v(_0x31256f);_0x1739b8['relativePath']=_0x3524ec,this[_0x335a54(0xe7)]['files'][_0x335a54(0x19e)](_0x1739b8),this['newMultimediaFiles'][_0x335a54(0xed)](_0x3524ec,_0x1739b8);}[_0x3ef337(0xa0)](_0x5c91c6,_0x513f91){const _0x6ece37=_0x3ef337;let _0x4b9004=D(_0x5c91c6[_0x6ece37(0x290)](),'O');if(_0x4b9004===null)return;let _0x14072f='obje:O'+_0x4b9004,_0x474746=_0x513f91?.['objePayloadById']?.[_0x6ece37(0x1cb)](_0x4b9004)?.[_0x6ece37(0x1f8)]??null,_0x54923a=new v(void 0x0,_0x474746,_0x4b9004);_0x54923a[_0x6ece37(0xd9)]=_0x14072f,this[_0x6ece37(0xe7)]['files'][_0x6ece37(0x19e)](_0x54923a),this[_0x6ece37(0x150)]['set'](_0x14072f,_0x54923a);}['addNoteFromGedcom'](_0x529a5c,_0x45fd57,_0x42c7ce){const _0x33d861=_0x3ef337;let _0x4c0e22=_0x529a5c['trim']();if(!_0x4c0e22)return;let _0x80ec6a=D(_0x4c0e22,'N');if(_0x80ec6a===null){let _0x3a4d5a=mt(_0x4c0e22,'N');_0x3a4d5a!=null&&(_0x80ec6a=_0x42c7ce?.[_0x33d861(0x274)]?.['get'](_0x3a4d5a)??null);}if(_0x80ec6a!==null&&_0x45fd57?.[_0x33d861(0x179)]){let _0x36b958=_0x45fd57['get'](_0x80ec6a);if(!_0x36b958||_0x36b958[_0x33d861(0x17e)]===0x0)return;let _0x4aec78=new _();_0x4aec78[_0x33d861(0x285)]([..._0x36b958]),typeof this['INDI']==_0x33d861(0x105)&&_0x4aec78[_0x33d861(0x135)]([this[_0x33d861(0x163)]]),this[_0x33d861(0x14a)][_0x33d861(0x21b)](_0x4aec78);return;}let _0x18d3d8=new _();_0x18d3d8['updateLines']([_0x4c0e22]),typeof this['INDI']==_0x33d861(0x105)&&_0x18d3d8['addIndis']([this[_0x33d861(0x163)]]),this[_0x33d861(0x14a)]['addNote'](_0x18d3d8);}[_0x3ef337(0xe8)](_0x5501bf){const _0x4c8e95=_0x3ef337;if(typeof this[_0x4c8e95(0x163)]!='number'||!_0x5501bf?.[_0x4c8e95(0x1d8)])return;let _0x9f33d6=''+this[_0x4c8e95(0x163)],_0x3ae44f=this['mediaRelativePathsInUse'](),_0x241980=ut(_0x9f33d6,_0x5501bf[_0x4c8e95(0x1d8)]['name'],_0x3ae44f);_0x5501bf[_0x4c8e95(0xd9)]=_0x241980,this[_0x4c8e95(0xe7)]['files'][_0x4c8e95(0x19e)](_0x5501bf),this['newMultimediaFiles']['set'](_0x241980,_0x5501bf);}[_0x3ef337(0x14e)](_0x51adf6){const _0x2e7c3a=_0x3ef337;this[_0x2e7c3a(0x150)]['delete'](_0x51adf6);let _0x593c7d=this[_0x2e7c3a(0xe7)]['files'][_0x2e7c3a(0xef)](_0x34b9ab=>_0x34b9ab['relativePath']===_0x51adf6);_0x593c7d>=0x0&&this['multimediaFiles'][_0x2e7c3a(0xc7)][_0x2e7c3a(0x101)](_0x593c7d,0x1);}[_0x3ef337(0x162)](){const _0x392d7c=_0x3ef337;return ct(this[_0x392d7c(0x150)][_0x392d7c(0x1b2)](),this[_0x392d7c(0xe7)]['files']);}['createFirstnamesAndLastnameJson'](_0x120971){const _0x4a75db=_0x3ef337;if(this[_0x4a75db(0x28b)]['length']>0x0){let _0x53911d=$t(this['nameVariants'])??this[_0x4a75db(0x28b)][0x0],_0x45c149=Ct(_0x53911d[_0x4a75db(0x266)]);this['firstnames']=_0x45c149['firstnames'],this['lastname']=_0x45c149['lastname'];return;}let _0x142299=Qt(_0x120971);if(!_0x142299)return;let _0x4182d3=Ct(_0x142299);this['firstnames']=_0x4182d3[_0x4a75db(0xb8)],this[_0x4a75db(0x15b)]=_0x4182d3['lastname'];}},gt=class extends T{constructor(_0x207824){const _0x321025=_0x3ef337;super(),a(this,_0x321025(0x104)),this[_0x321025(0x104)]=_0x207824;}},Ot=class{constructor(_0x53740f){const _0x281221=_0x3ef337;a(this,_0x281221(0x27a),[]),(this[_0x281221(0x27a)]=[..._0x53740f]['reduce']((_0x1e19d2,_0x13fd5a)=>{const _0x26272f=_0x281221;let _0x14f9e3,{dateAct:_0x257161,INDIS:_0x3f5ac4}=_0x13fd5a;if(_0x257161?.[_0x26272f(0x104)]){let _0x20263d=Number(_0x257161[_0x26272f(0x104)]),_0x58a775=_0x1e19d2['findIndex'](_0x39f2a5=>_0x39f2a5?.['year']===_0x20263d);_0x58a775>=0x0?(_0x14f9e3=_0x1e19d2[_0x58a775],_0x14f9e3['list'][_0x26272f(0x291)](_0x48476d=>_0x48476d[_0x26272f(0x20d)]['find'](_0x21bd16=>_0x3f5ac4['includes'](_0x21bd16)))||(_0x14f9e3[_0x26272f(0x125)](_0x13fd5a),_0x1e19d2[_0x58a775]=_0x14f9e3)):(_0x14f9e3=new gt(_0x20263d),_0x14f9e3[_0x26272f(0x125)](_0x13fd5a),_0x1e19d2[_0x26272f(0x19e)](_0x14f9e3));}return _0x1e19d2;},[]),this['sortByYear']());}[_0x3ef337(0x1ec)](){const _0x5c6ece=_0x3ef337;this[_0x5c6ece(0x27a)]=[...this['events']]['sort']((_0x96b676,_0x1e85e6)=>_0x96b676[_0x5c6ece(0x104)]-_0x1e85e6[_0x5c6ece(0x104)]);}};function qt(_0x369a00){const _0x3964e9=_0x3ef337;let _0x32cc6b=_0x369a00[_0x3964e9(0x1a9)](/\r?\n/),_0x13b81d=_0x32cc6b[0x0]?.['trimStart']()??'',_0x73effd=/^0\s+@O(\d+)@\s+OBJE\b/i[_0x3964e9(0x155)](_0x13b81d);if(!_0x73effd?.[0x1])return null;let _0x174d91=Number(_0x73effd[0x1]),_0x3630c7='';for(let _0x47babc of _0x32cc6b[_0x3964e9(0xa7)](0x1)){let _0xf130e0=_0x47babc[_0x3964e9(0x23a)](/\r$/,''),_0xcc1c37=f(_0xf130e0);if(!_0xcc1c37||_0xcc1c37['tag']!=='FILE'||_0xcc1c37['level']!=='1'&&_0xcc1c37[_0x3964e9(0x262)]!=='2')continue;let _0x2a99f8=_0xcc1c37[_0x3964e9(0xbc)]['trim']();if(_0x2a99f8){if(/^https?:\/\//i['test'](_0x2a99f8))return{'id':_0x174d91,'sourceUri':_0x2a99f8};_0x3630c7||(_0x3630c7=_0x2a99f8);}}return _0x3630c7?{'id':_0x174d91,'sourceUri':_0x3630c7}:null;}var yt=class{constructor(_0x4a17a6){const _0x200c31=_0x3ef337;a(this,_0x200c31(0x297),null),a(this,_0x200c31(0x124),[]),a(this,_0x200c31(0x215),new Map()),a(this,_0x200c31(0xc0),new Map()),a(this,_0x200c31(0x171),[]),_0x4a17a6!==void 0x0&&this[_0x200c31(0x28e)](_0x4a17a6);}get[_0x3ef337(0x1f5)](){return this['_preservedTopLevelRecords'];}['ingestGedcomText'](_0x16022e){const _0x3375c4=_0x3ef337;let _0x2c20eb=_0x16022e[_0x3375c4(0x1a9)]('\x0a')[_0x3375c4(0x27f)](_0x4601aa=>_0x4601aa['replace'](/\r$/,'')),_0x5ca566=[],_0x263cf1=()=>{const _0x523817=_0x3375c4;_0x5ca566[_0x523817(0x17e)]!==0x0&&(this[_0x523817(0x127)](_0x5ca566[_0x523817(0x234)]('\x0a')),_0x5ca566=[]);};for(let _0x32ee14 of _0x2c20eb)_0x32ee14['startsWith']('0\x20')?(_0x263cf1(),_0x5ca566=[_0x32ee14]):_0x5ca566[_0x3375c4(0x17e)]>0x0&&_0x5ca566['push'](_0x32ee14);_0x263cf1();}async['ingestGedcomFileStream'](_0x4d83a1){const _0x3b3d4b=_0x3ef337;if(typeof _0x4d83a1[_0x3b3d4b(0x224)]!='function'||typeof TextDecoderStream>'u'){this[_0x3b3d4b(0x28e)](await _0x4d83a1[_0x3b3d4b(0x25d)]());return;}let _0x11e886=_0x4d83a1[_0x3b3d4b(0x224)]()[_0x3b3d4b(0x142)](new TextDecoderStream())['getReader'](),_0xe541b9='',_0x67b436=null,_0x4a85c6=()=>{const _0x5c3183=_0x3b3d4b;if(!_0x67b436||_0x67b436[_0x5c3183(0x17e)]===0x0){_0x67b436=null;return;}let _0x2d5b40=_0x67b436[_0x5c3183(0x234)]('\x0a');_0x67b436=null,this['ingestRecordBlock'](_0x2d5b40);};for(;;){let {done:_0x1587a6,value:_0x27078e}=await _0x11e886[_0x3b3d4b(0x134)]();if(_0x27078e){_0xe541b9+=_0x27078e;let _0x4eb856=_0xe541b9['indexOf']('\x0a');for(;_0x4eb856!==-0x1;){let _0x4bf808=_0xe541b9[_0x3b3d4b(0xa7)](0x0,_0x4eb856);_0xe541b9=_0xe541b9[_0x3b3d4b(0xa7)](_0x4eb856+0x1),_0x4eb856=_0xe541b9['indexOf']('\x0a');let _0x47e4ed=_0x4bf808[_0x3b3d4b(0x23a)](/\r$/,'');_0x47e4ed[_0x3b3d4b(0x252)]('0\x20')?(_0x4a85c6(),_0x67b436=[_0x47e4ed]):_0x67b436&&_0x67b436[_0x3b3d4b(0x19e)](_0x47e4ed);}}if(_0x1587a6){if(_0xe541b9[_0x3b3d4b(0x17e)]===0x0){_0x4a85c6();break;}let _0x33de4a=_0xe541b9[_0x3b3d4b(0x23a)](/\r$/,'');_0x33de4a['startsWith']('0\x20')?(_0x4a85c6(),_0x67b436=[_0x33de4a]):_0x67b436&&_0x67b436['push'](_0x33de4a),_0x4a85c6();break;}}}['ingestRecordBlock'](_0x11a764){const _0x4e7a5a=_0x3ef337;let _0x2033f7=_0x11a764[_0x4e7a5a(0x1a9)]('\x0a')[0x0]?.[_0x4e7a5a(0x19a)]()??'';if(/^0\s+HEAD\b/[_0x4e7a5a(0x206)](_0x2033f7)){this['splitInformationHeader'](_0x11a764);return;}let _0x173909=_0x2033f7['startsWith']('0\x20')?_0x2033f7['slice'](0x2):_0x2033f7;if(this['isIndiRecordFirstLine'](_0x2033f7)){this['splitInformationPersons'](_0x11a764);return;}switch(''+_0x173909[0x0]+_0x173909[0x1]){case'@F':this[_0x4e7a5a(0x9f)](_0x11a764)||this['preserveTopLevelRecord'](_0x11a764);break;case'@N':this[_0x4e7a5a(0x201)](_0x11a764)||this['preserveTopLevelRecord'](_0x11a764);break;case'@S':this[_0x4e7a5a(0xf9)](_0x11a764);break;default:this['preserveTopLevelRecord'](_0x11a764);break;}}[_0x3ef337(0xf9)](_0x4d7ae3){const _0x2ceafb=_0x3ef337;let _0x129120=_0x4d7ae3['split']('\x0a')[0x0]?.[_0x2ceafb(0x19a)]()??'';/^0\s+TRLR\b/['test'](_0x129120)||this[_0x2ceafb(0x171)][_0x2ceafb(0x19e)](_0x4d7ae3);}[_0x3ef337(0x1d2)](_0x1a635b){const _0x2ac690=_0x3ef337;return/^0\s+@[^@\r\n]+@\s+INDI\b/['test'](_0x1a635b[_0x2ac690(0x19a)]());}[_0x3ef337(0x24c)](){const _0x17d00e=_0x3ef337;let _0x3ff440=new Map();for(let _0x22a74f=this['_preservedTopLevelRecords'][_0x17d00e(0x17e)]-0x1;_0x22a74f>=0x0;_0x22a74f--){let _0x5c5e7c=this['_preservedTopLevelRecords'][_0x22a74f],_0x559e78=qt(_0x5c5e7c);_0x559e78&&(_0x3ff440[_0x17d00e(0xed)](_0x559e78['id'],{'sourceUri':_0x559e78[_0x17d00e(0x1f8)]}),this['_preservedTopLevelRecords'][_0x17d00e(0x101)](_0x22a74f,0x1));}return _0x3ff440;}['splitInformationHeader'](_0x4a72b8){const _0x91b37=_0x3ef337;this[_0x91b37(0x297)]=_0x4a72b8[_0x91b37(0x1a9)]('\x0a')[_0x91b37(0x27f)](_0x12b703=>_0x12b703['replace'](/\r$/,''));}['splitInformationPersons'](_0x5d7fc0){const _0x11ebd3=_0x3ef337;this['informationPersons'][_0x11ebd3(0x19e)](_0x5d7fc0[_0x11ebd3(0x1a9)]('\x0a'));}[_0x3ef337(0x9f)](_0x136f9e){const _0x5c80f6=_0x3ef337;let _0x23a790=this['extractFamRecordLabel'](_0x136f9e);if(_0x23a790===null)return!0x1;let _0x510138=Z(_0x23a790),_0x5ed2ad=_0x136f9e['split']('\x0a')[_0x5c80f6(0xa7)](0x1);return this[_0x5c80f6(0x215)]['set'](_0x510138,_0x5ed2ad),!0x0;}[_0x3ef337(0x201)](_0x255682){const _0x4773db=_0x3ef337;let _0x3c242e=this[_0x4773db(0x20e)](_0x255682);if(_0x3c242e===null)return!0x1;let _0x2bd9ea=Z(_0x3c242e),_0x24868e=_0x255682['split']('\x0a')[_0x4773db(0xa7)](0x1);return this[_0x4773db(0xc0)]['set'](_0x2bd9ea,_0x24868e),!0x0;}[_0x3ef337(0xba)](_0x2e4be1){const _0x40227e=_0x3ef337;let _0x13d3dd=_0x2e4be1[_0x40227e(0x1a9)](/\r?\n/)[0x0]?.[_0x40227e(0x19a)]()??'',_0x13b113=/^0\s+@F([^@\r\n]+)@\s+FAM\b/i[_0x40227e(0x155)](_0x13d3dd);return _0x13b113?.[0x1]?.[_0x40227e(0x290)]()?_0x13b113[0x1][_0x40227e(0x290)]():null;}[_0x3ef337(0x20e)](_0x13d15c){const _0x2ae15e=_0x3ef337;let _0x115503=_0x13d15c[_0x2ae15e(0x1a9)](/\r?\n/)[0x0]?.[_0x2ae15e(0x19a)]()??'',_0x277f37=/^0\s+@N([^@\r\n]+)@\s+(?:NOTE|SNOTE)\b/i[_0x2ae15e(0x155)](_0x115503);return _0x277f37?.[0x1]?.['trim']()?_0x277f37[0x1][_0x2ae15e(0x290)]():null;}},te=_0x183310=>{const _0x2aeffb=_0x3ef337;let _0x55c5bb=_0x183310[_0x2aeffb(0x27f)](_0x56057c=>_0x56057c[_0x2aeffb(0x163)])['filter'](_0x5d3b8c=>typeof _0x5d3b8c==_0x2aeffb(0x105))['sort']((_0x13b549,_0x54c032)=>_0x13b549-_0x54c032);return _0x55c5bb[_0x2aeffb(0x17e)]===0x0?0x1:_0x55c5bb[_0x55c5bb[_0x2aeffb(0x17e)]-0x1]+0x1;};function Gt(_0x507e08){const _0x384e21=_0x3ef337;if(!_0x507e08?.[_0x384e21(0x17e)])return'unknown';for(let _0x312561 of _0x507e08){let _0x35364b=f(_0x312561);if(_0x35364b?.[_0x384e21(0x262)]==='2'&&_0x35364b[_0x384e21(0x1b7)]==='VERS'){let _0x34cd98=_0x35364b[_0x384e21(0xbc)][_0x384e21(0x290)]();if(/^7(\.|$)/['test'](_0x34cd98))return'7.0';if(/^(5\.|4\.|3\.|2\.|1\.)/[_0x384e21(0x206)](_0x34cd98))return _0x384e21(0x1a5);}}return _0x384e21(0x19b);}var j=class i extends yt{constructor(_0x543646,_0x1793da,_0x449504,_0x5b7163){const _0x37d9fa=_0x3ef337;super(_0x543646),a(this,'resolvedInformationFamilies',new Map()),a(this,_0x37d9fa(0x185),new Map()),a(this,'famPointerToId',new Map()),a(this,'notePointerToId',new Map()),a(this,_0x37d9fa(0x1f9),new Map()),a(this,_0x37d9fa(0x11c),_0x37d9fa(0x19b)),a(this,'persons'),a(this,_0x37d9fa(0x1b3)),a(this,_0x37d9fa(0x147)),a(this,_0x37d9fa(0x11f)),a(this,_0x37d9fa(0x232)),a(this,'placesMap'),a(this,_0x37d9fa(0x187),new Map()),(this['mapFiles']=_0x1793da??new Map(),this[_0x37d9fa(0xac)]=_0x449504??new Map(),this['mapPersons']=_0x5b7163??new Map(),_0x543646!==void 0x0&&this['finalizeAfterParse']());}static['empty'](_0x54fdd8){const _0x2b11cc=_0x3ef337;let _0x55bf68=new i(void 0x0,_0x54fdd8?.[_0x2b11cc(0x232)],_0x54fdd8?.['placesMap']);return _0x55bf68[_0x2b11cc(0xfb)](),_0x55bf68['datasetVersion']=_0x2b11cc(0x172),_0x55bf68;}static async['fromGedcomFile'](_0x50b2cc,_0x3feaa2,_0x1b70ba,_0x4c0e65){const _0x43c8d8=_0x3ef337;let _0x12f5da=new i(void 0x0,_0x3feaa2,_0x1b70ba,_0x4c0e65);return await _0x12f5da['ingestGedcomFileStream'](_0x50b2cc),_0x12f5da[_0x43c8d8(0xfb)](),_0x12f5da;}['finalizeAfterParse'](){const _0x4ecefd=_0x3ef337;this[_0x4ecefd(0x1f9)]=this[_0x4ecefd(0x24c)]();let _0x2b5092=xt(this[_0x4ecefd(0x215)]),_0x37388d=xt(this['informationNotesByLabel']);this[_0x4ecefd(0x28c)]=_0x2b5092['byNumericId'],this[_0x4ecefd(0x185)]=_0x37388d[_0x4ecefd(0x213)],this[_0x4ecefd(0x15a)]=_0x2b5092['pointerToId'],this[_0x4ecefd(0x274)]=_0x37388d[_0x4ecefd(0x218)],this['datasetVersion']=Gt(this[_0x4ecefd(0x297)]),this['persons']=this['createPersons'](),this[_0x4ecefd(0x137)](),this[_0x4ecefd(0x147)]=new Map(),this['childsMap']=new Map(),this['groupPartners']();}[_0x3ef337(0xf4)](){const _0x30a1d5=_0x3ef337;this['partnersMap']['clear'](),this[_0x30a1d5(0x11f)][_0x30a1d5(0x10c)](),this[_0x30a1d5(0x1c0)]['forEach'](_0x4ba266=>{const _0x51a748=_0x30a1d5;this[_0x51a748(0xa3)](_0x4ba266),this[_0x51a748(0x193)](_0x4ba266);});}[_0x3ef337(0x223)](_0x2ce629){const _0xe369dd=_0x3ef337;return this['haveParentsOfPerson'](_0x2ce629,[])['sort']((_0x475fdf,_0x4f25eb)=>_0x475fdf[_0xe369dd(0x1a1)]-_0x4f25eb[_0xe369dd(0x1a1)]);}['generateUniqueIndi'](){const _0x3c631d=_0x3ef337;return te(this[_0x3c631d(0x1c0)]);}['resolveIndividualPointer'](_0x3ef3d3){const _0x44e3ac=_0x3ef337;let _0x3e9bfc=_0x3ef3d3[_0x44e3ac(0x290)]();_0x3e9bfc['startsWith']('@')&&_0x3e9bfc['endsWith']('@')&&_0x3e9bfc[_0x44e3ac(0x17e)]>=0x2&&(_0x3e9bfc=_0x3e9bfc['slice'](0x1,-0x1));let _0x1e89a3=this['individualPointerToIndiNumber'][_0x44e3ac(0x1cb)](_0x3e9bfc);return _0x1e89a3!==void 0x0?this[_0x44e3ac(0x1b3)]['get'](_0x1e89a3):void 0x0;}['getChildrenForParent'](_0x496443){const _0x7b14ce=_0x3ef337;let _0x8c576a=new Set(),_0x4652c0=[];for(let _0xa61a5e of _0x496443[_0x7b14ce(0x168)]??[])for(let _0x1466cb of this['childsMap'][_0x7b14ce(0x1cb)](_0xa61a5e)??[])_0x8c576a[_0x7b14ce(0x161)](_0x1466cb['INDI'])||(_0x8c576a[_0x7b14ce(0x125)](_0x1466cb[_0x7b14ce(0x163)]),_0x4652c0[_0x7b14ce(0x19e)](_0x1466cb));return _0x4652c0;}['getChildrenOfFamily'](_0x4f0b1e){return[...this['childsMap']['get'](_0x4f0b1e)??[]];}[_0x3ef337(0x1a6)](_0x59deba,_0x317ffb,_0x5985d3){const _0x319ef0=_0x3ef337;let _0x377111=Object[_0x319ef0(0x1d0)]({},_0x59deba);if(_0x377111['sosa']=_0x5985d3?_0x5985d3*0x2+(_0x59deba[_0x319ef0(0x189)]==='F'?0x1:0x0):0x1,this['partnersMap']['has'](_0x377111['FAMC'])){let _0x220cfa=[...this[_0x319ef0(0x147)][_0x319ef0(0x1cb)](_0x377111[_0x319ef0(0xda)])];_0x220cfa[_0x319ef0(0x17e)]>0x0&&_0x220cfa[_0x319ef0(0x169)](_0x464bcd=>{const _0x492c32=_0x319ef0;this['haveParentsOfPerson'](_0x464bcd,_0x317ffb,_0x377111[_0x492c32(0x1a1)]);});}return _0x317ffb['push'](_0x377111),_0x317ffb;}[_0x3ef337(0x259)](){const _0x422763=_0x3ef337;if(this['individualPointerToIndiNumber'][_0x422763(0x10c)](),!this['informationPersons']?.[_0x422763(0x17e)])return[];let _0x3418a4=this[_0x422763(0x118)]();_0x3418a4[_0x422763(0x169)]((_0x38381a,_0xb59626)=>{const _0x5881b5=_0x422763;this['individualPointerToIndiNumber'][_0x5881b5(0xed)](_0xb59626,_0x38381a);});for(let _0x4b7953 of this[_0x422763(0x124)]){let _0x4ff90a=_0x4b7953[0x0]?.['trimStart']()??'',_0x452543=$(_0x4ff90a,'I',_0x422763(0x163));_0x452543!==null&&this['individualPointerToIndiNumber'][_0x422763(0xed)]('I'+_0x452543,_0x452543);}return this[_0x422763(0x124)]['map'](_0xa00c4e=>this[_0x422763(0xcf)](_0xa00c4e,_0x3418a4))[_0x422763(0x13c)]((_0x366e2e,_0x3c9db8)=>(_0x366e2e['FAMC']??Number[_0x422763(0x14f)])-(_0x3c9db8[_0x422763(0xda)]??Number['MAX_SAFE_INTEGER']));}[_0x3ef337(0x118)](){const _0x470d7f=_0x3ef337;let _0x5e773b=new Map(),_0xfc4ef0=0x0;for(let _0x194eb0 of this['informationPersons']){let _0xaa857b=_0x194eb0[0x0]?.[_0x470d7f(0x19a)]()??'',_0x543988=$(_0xaa857b,'I',_0x470d7f(0x163));_0x543988!==null&&(_0xfc4ef0=Math['max'](_0xfc4ef0,_0x543988));}let _0x2bb57b=_0xfc4ef0+0x1;for(let _0x31b861 of this[_0x470d7f(0x124)]){let _0x5c48d6=_0x31b861[0x0]?.[_0x470d7f(0x19a)]()??'';if($(_0x5c48d6,'I',_0x470d7f(0x163))!==null)continue;let _0x1bf5d4=ht(_0x5c48d6);!_0x1bf5d4||_0x5e773b[_0x470d7f(0x161)](_0x1bf5d4)||(_0x5e773b['set'](_0x1bf5d4,_0x2bb57b),_0x2bb57b+=0x1);}return _0x5e773b;}['buildPerson'](_0x2ecc32,_0x5a7112){const _0x4afb4f=_0x3ef337;let _0x2eb73b=new tt();return _0x2eb73b['createPersonJson'](_0x2ecc32,this['resolvedInformationFamilies'],this[_0x4afb4f(0x232)],this['resolvedInformationNotes'],_0x5a7112,{'famPointerToId':this['famPointerToId'],'notePointerToId':this['notePointerToId'],'objePayloadById':this[_0x4afb4f(0x1f9)]}),typeof _0x2eb73b['INDI']==_0x4afb4f(0x105)&&this['mapPersons'][_0x4afb4f(0xed)](_0x2eb73b[_0x4afb4f(0x163)],_0x2eb73b),_0x2eb73b;}[_0x3ef337(0x137)](){const _0x36eefb=_0x3ef337;this[_0x36eefb(0x1c0)][_0x36eefb(0x169)](_0x2ed919=>{const _0x2b6ce2=_0x36eefb;_0x2ed919[_0x2b6ce2(0x1ab)]['list'][_0x2b6ce2(0x169)](_0x2f1b3d=>{const _0x17af85=_0x2b6ce2;let _0x33b133=_0x2f1b3d[_0x17af85(0x1e1)]?.[_0x17af85(0x292)];_0x33b133&&this['upsertPlace'](_0x33b133,_0x2f1b3d['place']);});});}['upsertPlace'](_0x4c4f0a,_0x2c9048){const _0x222f5a=_0x3ef337;let _0x8a9309=this[_0x222f5a(0xac)][_0x222f5a(0x1cb)](_0x4c4f0a);if(!_0x8a9309){this[_0x222f5a(0xac)][_0x222f5a(0xed)](_0x4c4f0a,_0x2c9048);return;}let {latitude:_0x468dfc,longitude:_0x57ed70}=_0x8a9309['coordinate'];(_0x468dfc===0x0||_0x468dfc)&&(_0x57ed70===0x0||_0x57ed70)||this[_0x222f5a(0xac)]['set'](_0x4c4f0a,_0x2c9048);}['linkPersonAsPartner'](_0x299b55){const _0xff03c5=_0x3ef337;_0x299b55[_0xff03c5(0x168)]?.['length']&&_0x299b55[_0xff03c5(0x168)]['forEach'](_0x374803=>{const _0x14a5c4=_0xff03c5;let _0x137585=this['partnersMap'][_0x14a5c4(0x1cb)](_0x374803)??[];this['partnersMap'][_0x14a5c4(0xed)](_0x374803,[_0x299b55,..._0x137585]);});}['linkPersonAsChild'](_0xdee8a7){const _0x2f5b0b=_0x3ef337;if(_0xdee8a7[_0x2f5b0b(0xda)]===void 0x0)return;let _0x4a5f18=this['childsMap'][_0x2f5b0b(0x1cb)](_0xdee8a7['FAMC'])??[];this[_0x2f5b0b(0x11f)]['set'](_0xdee8a7[_0x2f5b0b(0xda)],[_0xdee8a7,..._0x4a5f18]);}};import{unzipSync as _0xde652f}from'fflate';var ee='ZIP\x20chiffré\x20(mot\x20de\x20passe)\x20ou\x20.ged\x20illisible\x20dans\x20l’archive\x20:\x20extrayez\x20le\x20fichier\x20.ged\x20avec\x20votre\x20explorateur\x20ou\x20utilitaire\x20ZIP,\x20puis\x20importez\x20uniquement\x20ce\x20.ged.\x20L’import\x20direct\x20des\x20archives\x20protégées\x20par\x20mot\x20de\x20passe\x20n’est\x20pas\x20pris\x20en\x20charge.',Ie=_0xa75af0=>j['empty'](_0xa75af0),xe=async _0x44f03d=>{const _0xf4e7e=_0x3ef337;if(!(_0x44f03d instanceof File))throw new Error(_0xf4e7e(0x23e));let {type:_0x53a36c,name:_0x3b2c51}=_0x44f03d,_0x1bd932=_0x53a36c===_0xf4e7e(0x243),_0x2d42bf=/\.(zip|gdz)$/i[_0xf4e7e(0x206)](_0x3b2c51);return _0x1bd932||_0x2d42bf?Le(_0x44f03d):re(_0x44f03d);},re=async(_0x36e876,_0x513736)=>{const _0x13cafc=_0x3ef337;if(!(_0x36e876 instanceof File))throw new Error(_0x13cafc(0x178));if(!/\.ged$/i[_0x13cafc(0x206)](_0x36e876[_0x13cafc(0x26e)]))throw new Error(_0x13cafc(0x22c));return j[_0x13cafc(0x1b5)](_0x36e876,_0x513736);},Re=async _0x53dcab=>{const _0x4e0bff=_0x3ef337;let _0xcf929f=_0xde652f(new Uint8Array(await _0x53dcab['arrayBuffer']())),_0x2e2483=new Map();for(let [_0xfdfde4,_0x301be1]of Object[_0x4e0bff(0x276)](_0xcf929f))_0xfdfde4[_0x4e0bff(0x12a)]('/')||_0x2e2483['set'](_0xfdfde4,new File([Uint8Array['from'](_0x301be1)],_0xfdfde4));return _0x2e2483;},Le=async _0x476f4f=>{const _0xa4c480=_0x3ef337;if(!(_0x476f4f instanceof File))throw new Error(_0xa4c480(0x178));let _0xdb1a62=await Re(_0x476f4f['slice']()),_0xfc1aeb=/\.ged$/i;for(let _0x4c2ade of _0xdb1a62['keys']())if(_0xfc1aeb[_0xa4c480(0x206)](_0x4c2ade)){let _0x5826cd=_0xdb1a62[_0xa4c480(0x1cb)](_0x4c2ade),_0x26880f=await _0x5826cd['slice'](0x0,0x1000)[_0xa4c480(0x25d)]();if(!/^0\s+HEAD\b/m[_0xa4c480(0x206)](_0x26880f))throw new Error(ee);return re(_0x5826cd,_0xdb1a62);}throw new Error(_0xa4c480(0x204));};import{zip as _0x3c9a0b}from'fflate';var ne='\x0a';function $e(_0x3563f0){const _0x6b1af6=_0x3ef337;if(!_0x3563f0?.[_0x6b1af6(0x17e)])return'';let _0x44db8a='',_0x45a214=!0x1;for(let _0x1d7456 of _0x3563f0){let _0xd3a10c=f(_0x1d7456[_0x6b1af6(0x19a)]());if(!_0xd3a10c)continue;let {level:_0x425544,tag:_0x206470,value:_0x5160bc}=_0xd3a10c;if(_0x425544==='0'&&_0x5160bc==='NOTE'&&_0x206470['startsWith']('@N')&&_0x206470[_0x6b1af6(0x12a)]('@')){_0x45a214=!0x0;continue;}if(_0x206470===_0x6b1af6(0x15c)){_0x44db8a=_0x5160bc,_0x45a214=!0x0;continue;}if(_0x206470==='CONC'){_0x44db8a+=_0x5160bc,_0x45a214=!0x0;continue;}if(_0x206470==='CONT'){_0x44db8a+=(_0x44db8a?'\x0a':'')+_0x5160bc,_0x45a214=!0x0;continue;}}return _0x45a214?_0x44db8a[_0x6b1af6(0x23a)](/\r\n/g,'\x0a')[_0x6b1af6(0x23a)](/\r/g,'\x0a'):_0x3563f0['filter'](_0x55c8a9=>_0x55c8a9['length']>0x0)[_0x6b1af6(0x234)]('\x0a')['replace'](/\r\n/g,'\x0a')[_0x6b1af6(0x23a)](/\r/g,'\x0a');}function Oe(_0x146f1c,_0x212f12){const _0x385faf=_0x3ef337;let _0x5e6520=$e(_0x146f1c[_0x385faf(0x15e)]??[]);if(!_0x5e6520[_0x385faf(0x290)]())return'';let _0x43da65=_0x212f12+0x1,_0x5730a7=_0x5e6520['split']('\x0a');for(;_0x5730a7[_0x385faf(0x17e)]>0x0&&_0x5730a7[0x0]==='';)_0x5730a7['shift']();if(_0x5730a7[_0x385faf(0x17e)]===0x0)return'';let [_0x5df065,..._0x1645a4]=_0x5730a7,_0x4a18bd=_0x212f12+'\x20NOTE\x20'+_0x5df065+ne;return _0x1645a4[_0x385faf(0x17e)]===0x0?_0x4a18bd:_0x4a18bd+_0x1645a4[_0x385faf(0x27f)](_0x3412be=>_0x43da65+_0x385faf(0x295)+_0x3412be+ne)[_0x385faf(0x234)]('');}function Bt(_0x3c67b6,_0x576577){const _0x5bdbe9=_0x3ef337;return _0x3c67b6?.['list']?.['length']?_0x3c67b6[_0x5bdbe9(0x198)]['map'](_0x557ce9=>Oe(_0x557ce9,_0x576577))['join'](''):'';}function wt(_0x146ebe){const _0x3931a9=_0x3ef337;let _0x10abab=_0x146ebe[_0x3931a9(0x1a9)](/[?#]/)[0x0]?.[_0x3931a9(0x16e)]()??'';return _0x10abab[_0x3931a9(0x12a)](_0x3931a9(0x1e0))?_0x3931a9(0x1e5):_0x10abab[_0x3931a9(0x12a)](_0x3931a9(0x269))||_0x10abab[_0x3931a9(0x12a)](_0x3931a9(0x1e4))?_0x3931a9(0x1e3):_0x10abab['endsWith'](_0x3931a9(0x26a))?_0x3931a9(0x1ea):_0x10abab[_0x3931a9(0x12a)]('.webp')?_0x3931a9(0x26d):_0x10abab['endsWith']('.mp3')?_0x3931a9(0x13f):_0x10abab[_0x3931a9(0x12a)]('.mp4')?_0x3931a9(0x247):_0x10abab[_0x3931a9(0x12a)](_0x3931a9(0xc1))?_0x3931a9(0x10a):'application/octet-stream';}var Ut=_0x3ef337(0x1ac),m='\x0a',Be={'day':_0x3ef337(0x21c),'month':_0x3ef337(0x21c),'year':_0x3ef337(0x1be)};function se(_0x5a804a){const _0x5d20cd=_0x3ef337;return _0x5a804a[_0x5d20cd(0x17e)]===0x1?{'title':void 0x0,'persons':_0x5a804a[0x0],'options':{}}:_0x5a804a['length']===0x2?typeof _0x5a804a[0x0]==_0x5d20cd(0xe4)?{'title':_0x5a804a[0x0],'persons':_0x5a804a[0x1],'options':{}}:{'title':void 0x0,'persons':_0x5a804a[0x0],'options':_0x5a804a[0x1]}:{'title':_0x5a804a[0x0],'persons':_0x5a804a[0x1],'options':_0x5a804a[0x2]};}var we=_0x1f4a4d=>_0x1f4a4d[_0x3ef337(0x23a)](/\s+/g,'\x20')[_0x3ef337(0x290)]()[_0x3ef337(0xa7)](0x0,0xf8),Ue=_0x11f0b9=>_0x11f0b9[_0x3ef337(0x23a)](/[\r\n]+/g,'')[_0x3ef337(0x23a)](/\s+/g,'\x20')[_0x3ef337(0x290)]()['slice'](0x0,0xf8),Ve=_0x54cba7=>_0x54cba7[_0x3ef337(0x290)]()['replace'](/\s+/g,'')[_0x3ef337(0xa7)](0x0,0x1f),ke=_0x4768a6=>_0x4768a6[_0x3ef337(0x23a)](/[\r\n]+/g,'')[_0x3ef337(0x23a)](/\s+/g,'\x20')[_0x3ef337(0x290)]()['slice'](0x0,0xf8),_e=_0xa11d8d=>{const _0x37dbb9=_0x3ef337;if(!_0xa11d8d?.[_0x37dbb9(0x17e)])return'';let _0x5df4a0=[];for(let {tag:_0x282bcd,uri:_0x413b63}of _0xa11d8d){let _0x1112a1=Ve(_0x282bcd),_0x40b7d7=ke(_0x413b63);!_0x1112a1||!_0x40b7d7||_0x5df4a0['push']('2\x20TAG\x20'+_0x1112a1+'\x20'+_0x40b7d7+m);}return _0x5df4a0['length']?_0x37dbb9(0x173)+m+_0x5df4a0[_0x37dbb9(0x234)](''):'';},je=_0x342891=>_0x342891==='M'?_0x3ef337(0x237):_0x342891==='F'?'WIFE':_0x3ef337(0x237),ie='@U1@',oe=(_0x21a7fa,_0x4a3c91,_0x47a404)=>{const _0x517f16=_0x3ef337;if(_0x4a3c91[_0x517f16(0x191)]!=null)return'';if(!_0x4a3c91[_0x517f16(0x1d8)]&&_0x4a3c91['sourceUri']?.['trim']())return _0x4a3c91[_0x517f16(0x1f8)][_0x517f16(0x290)]();let _0x1e9b9d=_0x4a3c91['relativePath']?.['trim']();if(_0x1e9b9d&&_0x1e9b9d['includes']('/'))return _0x1e9b9d;let _0x5a4649=_0x1e9b9d||(_0x4a3c91[_0x517f16(0x1d8)]?.[_0x517f16(0x26e)]??_0x517f16(0xb3));return _0x47a404['length']===0x1?_0x47a404[0x0]+'/'+_0x21a7fa['type']+'/'+_0x5a4649:'media/events/'+(_0x47a404['length']>0x1?_0x47a404['join']('-'):_0x517f16(0x19b))+'/'+_0x21a7fa[_0x517f16(0x10e)]+'/'+_0x5a4649;},ae=(_0x5d71dc,_0x256be7)=>{let _0x5f2f0a=URL['createObjectURL'](_0x5d71dc),_0x2c46ab=document['createElement']('a');_0x2c46ab['href']=_0x5f2f0a,_0x2c46ab['download']=_0x256be7,_0x2c46ab['click'](),setTimeout(()=>URL['revokeObjectURL'](_0x5f2f0a),0x0);},At=(..._0xb20dfc)=>{const _0x847395=_0x3ef337;let _0x3670c9=new Map();for(let _0x1bf537 of _0xb20dfc)if(_0x1bf537?.[_0x847395(0x17e)])for(let _0x97a148 of _0x1bf537){if(!_0x97a148?.[_0x847395(0x254)]())continue;let _0x5c756d=_0x97a148['relativePath']||_0x97a148['file']?.[_0x847395(0x26e)]||_0x97a148['sourceUri']?.[_0x847395(0x290)]()||(_0x97a148['objeXrefId']!=null?_0x847395(0x22a)+_0x97a148[_0x847395(0x191)]:'');_0x5c756d&&(_0x3670c9['has'](_0x5c756d)||_0x3670c9[_0x847395(0xed)](_0x5c756d,_0x97a148));}return Array['from'](_0x3670c9['values']());},Pt=class{constructor(_0x2cb88a,_0x6a1569,_0x5ba80c,_0x4b63b5){const _0x4f965e=_0x3ef337;a(this,'title'),a(this,'persons'),a(this,'onCreate',Date['now']()),a(this,_0x4f965e(0x12f),!0x1),a(this,_0x4f965e(0xc5));let _0x5cbd1f=_0x2cb88a?.['trim']();this[_0x4f965e(0xf7)]=_0x5cbd1f?_0x5cbd1f+_0x4f965e(0xa6)+this[_0x4f965e(0xc3)]:_0x4f965e(0x1f6)+this[_0x4f965e(0xc3)],this[_0x4f965e(0x1c0)]=_0x6a1569,this[_0x4f965e(0x12f)]=_0x5ba80c,this[_0x4f965e(0xc5)]=_0x4b63b5??{};}get[_0x3ef337(0x11a)](){const _0x134b6c=_0x3ef337;let _0x575cb5=new Date(),_0x12b01a=(this[_0x134b6c(0xc5)]['headLanguageTag']?.[_0x134b6c(0x290)]()||_0x134b6c(0x289))[_0x134b6c(0x23a)](/[\r\n]/g,''),_0x3b95ca=this['exportOptions'][_0x134b6c(0x253)]?.['trim'](),_0x2dd64f=_0x3b95ca?_0x134b6c(0xbd)+we(_0x3b95ca)+m:'',_0x322282=_e(this[_0x134b6c(0xc5)][_0x134b6c(0x287)]??null),_0xd8da7a=this['exportOptions']['headDestination']?.[_0x134b6c(0x290)](),_0x2ca9b8=_0xd8da7a?_0x134b6c(0x228)+Ue(_0xd8da7a)+m:'';return'0\x20HEAD'+m+'1\x20GEDC'+m+'2\x20VERS\x207.0'+m+_0x322282+(_0x134b6c(0x1c6)+m+'1\x20LANG\x20'+_0x12b01a+m)+_0x2dd64f+(_0x134b6c(0x283)+m+_0x134b6c(0x293)+Ut+m+_0x134b6c(0x279)+m)+_0x2ca9b8+('1\x20DATE\x20'+_0x575cb5[_0x134b6c(0x1a0)](_0x134b6c(0xb5),Be)+m+_0x134b6c(0x159)+_0x575cb5['toLocaleTimeString']('fr-FR')+m+'1\x20FILE\x20'+this[_0x134b6c(0xf7)]+m+'1\x20PLAC'+m+_0x134b6c(0xf1)+m+'1\x20SUBM\x20'+ie+m);}get[_0x3ef337(0xf3)](){const _0x5eaed0=_0x3ef337;return'0\x20'+ie+'\x20SUBM'+m+_0x5eaed0(0x164)+m;}['collectObjeRecords'](){const _0x144440=_0x3ef337;let _0x3120d1=[],_0x38c350=new Set(),_0x754b03=_0x4aa056=>{const _0x28e582=_0xab6a;if(_0x4aa056[_0x28e582(0x191)]==null||_0x38c350['has'](_0x4aa056[_0x28e582(0x191)]))return;let _0x852ef1=_0x4aa056[_0x28e582(0x1f8)]?.['trim']();if(!_0x852ef1)return;_0x38c350[_0x28e582(0x125)](_0x4aa056[_0x28e582(0x191)]);let _0x4ca3c9=wt(_0x852ef1);_0x3120d1['push'](_0x28e582(0x261)+_0x4aa056['objeXrefId']+'@\x20OBJE'+m+'1\x20FILE\x20'+_0x852ef1+m+_0x28e582(0x13d)+_0x4ca3c9+m);};for(let _0x25394b of this['persons']){_0x25394b[_0x144440(0xe7)][_0x144440(0xc7)]['forEach'](_0x754b03);for(let _0x2a947e of _0x25394b[_0x144440(0x1ab)][_0x144440(0x198)])At(_0x2a947e['files'],_0x2a947e['multimediaFiles'][_0x144440(0xc7)])[_0x144440(0x169)](_0x754b03);}return _0x3120d1[_0x144440(0x234)]('');}['joinExtraTopLevelRecords'](){const _0x5835a4=_0x3ef337;let _0x2417d2=this['exportOptions'][_0x5835a4(0x13a)];return _0x2417d2?.[_0x5835a4(0x17e)]?_0x2417d2['map'](_0x42fb9d=>_0x42fb9d[_0x5835a4(0x23a)](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')['trimEnd']()['split']('\x0a')[_0x5835a4(0x234)](m)+m)[_0x5835a4(0x234)](''):'';}get[_0x3ef337(0x182)](){const _0x34e04a=_0x3ef337;return this[_0x34e04a(0x1c0)][_0x34e04a(0x27f)](_0x3d22f5=>new jt(_0x3d22f5,this[_0x34e04a(0x12f)])['line']())['join']('')+new _t(this[_0x34e04a(0x1c0)])['lines']();}[_0x3ef337(0x26c)](){const _0x3aa60f=_0x3ef337;return new Blob([''+this['beginGedcom']+this['contentGedcom']+this['collectObjeRecords']()+this[_0x3aa60f(0x21a)]()+this[_0x3aa60f(0xf3)]+_0x3aa60f(0x176)+m],{'type':_0x3aa60f(0xf5)});}},Vt=class extends Pt{constructor(..._0x189f88){let {title:_0x129f08,persons:_0x2f9209,options:_0x18be5}=se(_0x189f88);super(_0x129f08,_0x2f9209,!0x0,_0x18be5);}async[_0x3ef337(0x100)](){const _0x5c28ce=_0x3ef337;let _0x2e73c2={};_0x2e73c2[this[_0x5c28ce(0xf7)]+_0x5c28ce(0x205)]=new Uint8Array(await this['gedcomBlob']()[_0x5c28ce(0x170)]());let _0xa03c90=[];this['persons']['forEach'](_0x1ce093=>{const _0x257336=_0x5c28ce;let _0x60669=this['resolvePersonIndi'](_0x1ce093);At(_0x1ce093[_0x257336(0xc7)],_0x1ce093[_0x257336(0xe7)][_0x257336(0xc7)])[_0x257336(0x169)](_0x54d29c=>{const _0x5b5676=_0x257336;let _0x17ed6f=this['resolveZipPath'](_0x54d29c,_0x60669);_0xa03c90[_0x5b5676(0x19e)](this[_0x5b5676(0x16b)](_0x2e73c2,_0x54d29c,_0x17ed6f));}),_0x1ce093['acts'][_0x257336(0x198)]['forEach'](_0x48f41f=>{const _0x9c312c=_0x257336;let _0x20cdd0=this['resolveActIndis'](_0x60669,_0x48f41f);At(_0x48f41f[_0x9c312c(0xc7)],_0x48f41f['multimediaFiles'][_0x9c312c(0xc7)])['forEach'](_0x8f0d17=>{const _0xb3d050=_0x9c312c;let _0x27a305=oe(_0x48f41f,_0x8f0d17,_0x20cdd0);_0xa03c90[_0xb3d050(0x19e)](this[_0xb3d050(0x16b)](_0x2e73c2,_0x8f0d17,_0x27a305));});});}),await Promise[_0x5c28ce(0x1dc)](_0xa03c90),_0x3c9a0b(_0x2e73c2,{'level':0x9},(_0x5a48b4,_0xb15a08)=>{const _0x38eace=_0x5c28ce;if(_0x5a48b4)throw _0x5a48b4;let _0x1f7607=Uint8Array[_0x38eace(0x174)](_0xb15a08);setTimeout(()=>{const _0x362a2b=_0x38eace;ae(new Blob([_0x1f7607],{'type':_0x362a2b(0x243)}),this['title']+_0x362a2b(0x257));},0x0);});}[_0x3ef337(0xb0)](_0x24d57b){const _0x2e1e63=_0x3ef337;if(typeof _0x24d57b['INDI']=='number')return''+_0x24d57b['INDI'];for(let _0x5bba76 of _0x24d57b[_0x2e1e63(0x1ab)]['list']){let _0x1dd3ac=_0x5bba76[_0x2e1e63(0x20d)]['find'](_0x325eca=>typeof _0x325eca==_0x2e1e63(0x105));if(_0x1dd3ac!==void 0x0)return''+_0x1dd3ac;}return'';}['resolveActIndis'](_0x3eefad,_0x107112){const _0x3c1094=_0x3ef337;let _0xa07e9a=new Set();return _0x3eefad&&_0xa07e9a[_0x3c1094(0x125)](_0x3eefad),_0x107112['INDIS'][_0x3c1094(0xdc)](_0x451ab3=>typeof _0x451ab3=='number')['forEach'](_0x17eb6f=>_0xa07e9a['add'](''+_0x17eb6f)),Array[_0x3c1094(0x174)](_0xa07e9a);}[_0x3ef337(0x17a)](_0x571701,_0x95a5e5){const _0x4c44ac=_0x3ef337;let _0x55b160=_0x95a5e5[_0x4c44ac(0x23a)](/\/+$/,''),_0x571200=_0x571701['relativePath']?.[_0x4c44ac(0x290)]();if(_0x571200&&_0x571200['includes']('/'))return _0x571200;let _0x569c64=_0x571200||(_0x571701['file']?.['name']??_0x4c44ac(0xb3));return _0x55b160?_0x55b160+'/'+_0x569c64:_0x569c64;}async[_0x3ef337(0x16b)](_0x3e5ca1,_0x21e202,_0x3c8ee8){const _0x2e2e30=_0x3ef337;let {file:_0x39fd78,relativePath:_0x5299a6}=_0x21e202;if(!_0x39fd78)return;let _0x2c4c97=_0x3c8ee8||_0x5299a6||_0x39fd78[_0x2e2e30(0x26e)];_0x3e5ca1[_0x2c4c97]=new Uint8Array(await _0x39fd78['arrayBuffer']());}},kt=class extends Pt{constructor(..._0x570a50){let {title:_0x5ac611,persons:_0x57cd41,options:_0x3a96fe}=se(_0x570a50);super(_0x5ac611,_0x57cd41,!0x1,_0x3a96fe);}['download'](){const _0x16063e=_0x3ef337;ae(this['gedcomBlob'](),this['title']+_0x16063e(0x205));}},_t=class{constructor(_0x4132a3){const _0x483262=_0x3ef337;a(this,_0x483262(0x129),new Map()),_0x4132a3[_0x483262(0x169)](_0x547f4f=>{const _0xc6b5c3=_0x483262;let {FAMS:_0x348326,FAMC:_0xe49fac,INDI:_0x856fe5}=_0x547f4f;_0x348326[_0xc6b5c3(0x17e)]>0x0&&this[_0xc6b5c3(0x156)]('1\x20'+je(_0x547f4f[_0xc6b5c3(0x189)])+_0xc6b5c3(0x1aa)+_0x856fe5+'@'+m,_0x348326),_0xe49fac!==void 0x0&&this['setInformationFamilies']('1\x20CHIL\x20@I'+_0x856fe5+'@'+m,[_0xe49fac]);});}[_0x3ef337(0x15e)](){const _0x537f9b=_0x3ef337;let _0x5d7325=[];for(let [_0x531212,_0x4c261e]of this[_0x537f9b(0x129)][_0x537f9b(0x276)]())_0x5d7325[_0x537f9b(0x19e)]('0\x20@F'+_0x531212+_0x537f9b(0x112)+m,_0x4c261e['join'](''));return _0x5d7325[_0x537f9b(0x234)]('');}[_0x3ef337(0x156)](_0x165274,_0x315622){_0x315622['forEach'](_0x2f2d01=>{const _0x35b32f=_0xab6a;if(this[_0x35b32f(0x129)][_0x35b32f(0x161)](_0x2f2d01)){let _0x1a07b8=this[_0x35b32f(0x129)][_0x35b32f(0x1cb)](_0x2f2d01);_0x1a07b8[_0x35b32f(0x19e)](_0x165274),this['informationFamilies'][_0x35b32f(0xed)](_0x2f2d01,_0x1a07b8);}else this[_0x35b32f(0x129)][_0x35b32f(0xed)](_0x2f2d01,[_0x165274]);});}},jt=class{constructor(_0x1a626d,_0x743c76){const _0x336676=_0x3ef337;a(this,'INDI'),a(this,_0x336676(0x183)),a(this,_0x336676(0x189),''),a(this,'ATTRS',''),a(this,'FAMS'),a(this,_0x336676(0xda)),a(this,_0x336676(0x11d),''),a(this,_0x336676(0x181),''),a(this,_0x336676(0x239),''),a(this,_0x336676(0x12f));if(this[_0x336676(0x12f)]=_0x743c76,this[_0x336676(0x163)]=this[_0x336676(0x17f)](_0x1a626d),this[_0x336676(0x183)]=this[_0x336676(0x1ae)](_0x1a626d),this[_0x336676(0x189)]=this['getSex'](_0x1a626d),this[_0x336676(0x24b)]=this[_0x336676(0x19f)](_0x1a626d),this[_0x336676(0x168)]=this['getFams'](_0x1a626d),this['FAMC']=this[_0x336676(0xce)](_0x1a626d),_0x1a626d['multimediaFiles'][_0x336676(0xc7)][_0x336676(0x17e)]>0x0){let _0xfeb329=this['buildPersonMultimediaLines'](_0x1a626d);_0xfeb329&&(this[_0x336676(0x11d)]=_0xfeb329);}_0x1a626d['acts']['list']?.['length']>0x0&&(this['ACTS']=new Ht(_0x1a626d)['line']()),_0x1a626d['notes']['list'][_0x336676(0x17e)]>0x0&&(this['NOTES']=Bt(_0x1a626d[_0x336676(0x14a)],0x1));}['line'](){const _0x2343fb=_0x3ef337;return this['INDI']+this['NAME']+this['SEX']+this['ATTRS']+this[_0x2343fb(0x11d)]+this[_0x2343fb(0x181)]+this['NOTES']+this[_0x2343fb(0x168)]+this['FAMC'];}[_0x3ef337(0x17f)](_0x12a34f){return'0\x20@I'+_0x12a34f['INDI']+'@\x20INDI'+m;}[_0x3ef337(0x1ae)](_0x37fd66){const _0x534be1=_0x3ef337;if(_0x37fd66[_0x534be1(0x28b)][_0x534be1(0x17e)]>0x0)return _0x37fd66[_0x534be1(0x28b)][_0x534be1(0x27f)](_0x301c40=>_0x301c40['toGedcom'](m))[_0x534be1(0x234)]('');let _0x1c46db=_0x37fd66[_0x534be1(0xb8)]?.['length']>0x0?[..._0x37fd66['firstnames']]:[],_0x2f3f6f=_0x37fd66['lastname']??'';if(_0x1c46db['length']>0x0||_0x2f3f6f[_0x534be1(0x17e)]>0x0){let _0x3b1008=_0x534be1(0x240);return _0x1c46db[_0x534be1(0x17e)]>0x0&&(_0x1c46db[0x0]='\x22'+_0x1c46db[0x0]+'\x22',_0x3b1008+='\x20'+_0x1c46db['join']('\x20')),_0x2f3f6f&&_0x2f3f6f['length']>0x0&&(_0x3b1008+='\x20/'+_0x2f3f6f+'/'),_0x3b1008+m;}return'';}[_0x3ef337(0x19f)](_0x3599f0){const _0x5bb476=_0x3ef337;return _0x3599f0['attributes'][_0x5bb476(0x27f)](_0x18321d=>_0x18321d[_0x5bb476(0x14c)](m))['join']('');}['getSex'](_0x30a699){const _0x48f52e=_0x3ef337;return _0x30a699[_0x48f52e(0x189)]===void 0x0?'':'1\x20SEX\x20'+_0x30a699[_0x48f52e(0x189)]+m;}[_0x3ef337(0xcd)](_0x2b30b8){const _0x2d910f=_0x3ef337;return _0x2b30b8[_0x2d910f(0xe7)]['files']['map'](_0x2ad34b=>_0x2ad34b['objeXrefId']!=null?_0x2d910f(0x1fa)+_0x2ad34b['objeXrefId']+'@'+m:_0x2ad34b['sourceUri']?.['trim']()?_0x2d910f(0xd4)+_0x2ad34b[_0x2d910f(0x1f8)]['trim']()+m:this[_0x2d910f(0x12f)]&&_0x2ad34b['file']&&_0x2ad34b['relativePath']?_0x2d910f(0xd4)+_0x2ad34b[_0x2d910f(0xd9)]+m:'')['filter'](Boolean)['join']('');}[_0x3ef337(0x1d9)](_0x550003){const _0x468e23=_0x3ef337;return _0x550003[_0x468e23(0x168)][_0x468e23(0xdc)](_0x42f506=>_0x42f506>=0x0)['map'](_0x4e60b6=>_0x468e23(0xdb)+_0x4e60b6+'@'+m)[_0x468e23(0x234)]('');}['getFamc'](_0x183cd9){const _0x24dbc0=_0x3ef337;return _0x183cd9[_0x24dbc0(0xda)]!==void 0x0?_0x24dbc0(0x225)+_0x183cd9[_0x24dbc0(0xda)]+'@'+m:'';}},Xt=class i{constructor(_0x214930,_0x3529e2){const _0x60087d=_0x3ef337;a(this,'TYPE'),a(this,_0x60087d(0xb6)),a(this,_0x60087d(0x15f)),a(this,'DATE'),a(this,'SDATE'),a(this,_0x60087d(0x28a)),a(this,_0x60087d(0x1cd)),a(this,'NOTES'),a(this,_0x60087d(0x11d)),a(this,'ownerIndi'),(this['ownerIndi']=_0x3529e2,this['TYPE']=this['getType'](_0x214930),this['PRESERVED_PREFIX']=i['formatPreservedBlock'](_0x214930['preservedSubrecordPrefix']),this[_0x60087d(0x15f)]=this[_0x60087d(0x184)](_0x214930),this[_0x60087d(0x195)]=this[_0x60087d(0x152)](_0x214930),this[_0x60087d(0x1c9)]=this[_0x60087d(0x148)](_0x214930),this['EVENT_PHRASES']=this[_0x60087d(0x108)](_0x214930),this['PRESERVED_SUFFIX']=i[_0x60087d(0x25f)](_0x214930[_0x60087d(0x277)]),this['NOTES']=Bt(_0x214930['notes'],0x2),this['FILES']=this[_0x60087d(0x264)](_0x214930));}static[_0x3ef337(0x25f)](_0x3a19ae){const _0x4291aa=_0x3ef337;return _0x3a19ae?.['length']?_0x3a19ae[_0x4291aa(0x27f)](_0x4ee09c=>''+_0x4ee09c[_0x4291aa(0x190)]()+m)[_0x4291aa(0x234)](''):'';}static['formatDate'](_0x366b2e){const _0x403ad3=_0x3ef337;return _0x366b2e[_0x403ad3(0x1c7)]??'';}static[_0x3ef337(0xb2)](_0x4dccfd,_0x1cff8c=0xc8){const _0xc19e5a=_0x3ef337;return _0x4dccfd[_0xc19e5a(0x23a)](/[\r\n]+/g,'\x20')[_0xc19e5a(0x23a)](/\s+/g,'\x20')['trim']()['slice'](0x0,_0x1cff8c);}static[_0x3ef337(0x21e)](_0x1f5145,_0x2ae27b){const _0x357cb9=_0x3ef337;if(!_0x2ae27b?.['date'])return'';let _0x709a26='2\x20'+_0x1f5145+'\x20'+i['formatDate'](_0x2ae27b)+m,_0x7e982a=_0x2ae27b['dateTime']?.[_0x357cb9(0x290)]();_0x7e982a&&(_0x709a26+='3\x20TIME\x20'+i[_0x357cb9(0xb2)](_0x7e982a)+m);let _0x4334ed=_0x2ae27b['datePhrase']?.['trim']();return _0x4334ed&&(_0x709a26+='3\x20PHRASE\x20'+i['sanitizeSublinePayload'](_0x4334ed)+m),_0x709a26;}[_0x3ef337(0xb7)](){const _0x188d3a=_0x3ef337;return this['TYPE']+this['PRESERVED_PREFIX']+this[_0x188d3a(0x195)]+this[_0x188d3a(0x15f)]+this['SDATE']+this[_0x188d3a(0x28a)]+this[_0x188d3a(0x1cd)]+this['NOTES']+this[_0x188d3a(0x11d)];}[_0x3ef337(0x264)](_0x283777){const _0x13bac6=_0x3ef337;let _0xc46ad7=this['resolveActIndis'](_0x283777);return At(_0x283777[_0x13bac6(0xc7)],_0x283777[_0x13bac6(0xe7)][_0x13bac6(0xc7)])['map'](_0xd9c5ec=>_0xd9c5ec[_0x13bac6(0x191)]!=null?'2\x20OBJE\x20@O'+_0xd9c5ec['objeXrefId']+'@'+m:_0xd9c5ec['sourceUri']?.[_0x13bac6(0x290)]()?_0x13bac6(0x207)+_0xd9c5ec[_0x13bac6(0x1f8)][_0x13bac6(0x290)]()+m:_0xd9c5ec[_0x13bac6(0x1d8)]?_0x13bac6(0x207)+oe(_0x283777,_0xd9c5ec,_0xc46ad7)+m:'')['filter'](Boolean)[_0x13bac6(0x234)]('');}[_0x3ef337(0xe9)](_0x519617){const _0x44a2bf=_0x3ef337;let _0xe95121=new Set();return typeof this[_0x44a2bf(0x22b)]=='number'&&_0xe95121[_0x44a2bf(0x125)](''+this[_0x44a2bf(0x22b)]),_0x519617[_0x44a2bf(0x20d)][_0x44a2bf(0xdc)](_0x335cec=>typeof _0x335cec==_0x44a2bf(0x105))['forEach'](_0x517aa5=>_0xe95121[_0x44a2bf(0x125)](''+_0x517aa5)),Array['from'](_0xe95121);}['getType'](_0x17b60b){const _0x556469=_0x3ef337;if(_0x17b60b[_0x556469(0x10e)]===_0x556469(0x1bd)){let _0x3aa922=(_0x17b60b[_0x556469(0xe3)]??'')[_0x556469(0x290)]()||'Y',_0x11dfdb=(_0x17b60b[_0x556469(0xa2)]??'')[_0x556469(0x290)]()||_0x556469(0x1dd);return _0x556469(0x22e)+_0x3aa922+m+_0x556469(0x16d)+_0x11dfdb+m;}return'1\x20'+_0x17b60b[_0x556469(0x10e)]+m;}[_0x3ef337(0x152)](_0x23ca8c){const _0x4dfc00=_0x3ef337;return _0x23ca8c?.['dateAct']?i[_0x4dfc00(0x21e)]('DATE',_0x23ca8c['dateAct']):'';}[_0x3ef337(0x148)](_0x503079){const _0x45e5a5=_0x3ef337;return _0x503079?.['sdateAct']?i[_0x45e5a5(0x21e)](_0x45e5a5(0x1c9),_0x503079['sdateAct']):'';}[_0x3ef337(0x108)](_0x324b1b){const _0x2c7192=_0x3ef337;return _0x324b1b[_0x2c7192(0xb1)]?.[_0x2c7192(0x17e)]?_0x324b1b['eventPhrases'][_0x2c7192(0x27f)](_0xdfe689=>{const _0x444521=_0x2c7192;let _0x4f98de=_0xdfe689[_0x444521(0x290)]();return _0x4f98de?_0x444521(0x23f)+i[_0x444521(0xb2)](_0x4f98de)+m:'';})[_0x2c7192(0xdc)](Boolean)['join'](''):'';}['getPlace'](_0x2d78f7){const _0x1db5fe=_0x3ef337;let _0x54dc5b=_0x2d78f7['place'];if(!_0x54dc5b)return'';let _0x3a0405=_0x54dc5b['toGedcom7PlacPayload'](),_0x2cfc13=_0x54dc5b['placPhrase']?.['trim']()??'';if(!_0x3a0405&&!_0x2cfc13)return'';let _0x53fb0a=_0x3a0405??_0x2cfc13,_0x21788d='2\x20PLAC\x20'+_0x53fb0a+m;_0x3a0405&&_0x2cfc13&&(_0x21788d+=_0x1db5fe(0x188)+i[_0x1db5fe(0xb2)](_0x2cfc13)+m);let {latitude:_0x549522,longitude:_0xdfdc14}=_0x54dc5b[_0x1db5fe(0xbe)];return!_0x549522||!_0xdfdc14?_0x21788d:_0x21788d+(_0x1db5fe(0x1d4)+m+'4\x20LATI\x20'+_0x549522+m+_0x1db5fe(0xc8)+_0xdfdc14+m);}},Ht=class{constructor(_0x3e3644){const _0x3d1342=_0x3ef337;a(this,'acts'),a(this,_0x3d1342(0x163)),(this['acts']=_0x3e3644[_0x3d1342(0x1ab)]['list'],this[_0x3d1342(0x163)]=_0x3e3644[_0x3d1342(0x163)]);}[_0x3ef337(0xb7)](){const _0x5d0ac5=_0x3ef337;return this[_0x5d0ac5(0x1ab)]['map'](_0x92dbba=>new Xt(_0x92dbba,this['INDI'])['line']())[_0x5d0ac5(0x234)]('');}},le=(_0x153c4e,_0x436c6b,_0x44d7d5,_0x351dff)=>{const _0x1e31cc=_0x3ef337;if(_0x351dff=_0x351dff??new Map(),_0x44d7d5=_0x44d7d5??0x1,typeof _0x153c4e[_0x1e31cc(0x163)]!=_0x1e31cc(0x105))return _0x351dff;if(_0x351dff[_0x1e31cc(0xed)](_0x153c4e['INDI'],_0x44d7d5),_0x436c6b['has'](_0x153c4e['FAMC'])){let _0x162913=_0x436c6b[_0x1e31cc(0x1cb)](_0x153c4e[_0x1e31cc(0xda)]);_0x162913?.[_0x1e31cc(0x17e)]>0x1&&(_0x162913=[..._0x162913]['sort']((_0x31b62f,_0x58b957)=>_0x31b62f['SEX']&&_0x58b957[_0x1e31cc(0x189)]?_0x58b957[_0x1e31cc(0x189)]['localeCompare'](_0x31b62f['SEX']):0x0)),_0x162913[_0x1e31cc(0x169)](_0x45f434=>{const _0x38d351=_0x1e31cc;_0x45f434['SEX']&&(_0x351dff=le(_0x45f434,_0x436c6b,_0x44d7d5*0x2+(_0x45f434[_0x38d351(0x189)]==='M'?0x0:0x1),_0x351dff));});}return _0x351dff;},ue=['BIRT',_0x3ef337(0xcc),_0x3ef337(0x166),'CHR'],Xe=k[_0x3ef337(0xdc)](_0x49a330=>!ue['includes'](_0x49a330)),He=(_0x1d70db,_0x2bc6e1)=>{const _0x50b738=_0x3ef337;let _0x25279b=new Set(_0x1d70db[_0x50b738(0x198)][_0x50b738(0x27f)](_0x54557f=>_0x54557f[_0x50b738(0x10e)])),_0x1ceea1=[...ue[_0x50b738(0xdc)](_0x18881a=>!_0x25279b['has'](_0x18881a)),...Xe];return _0x2bc6e1&&(_0x1ceea1['includes'](_0x2bc6e1[_0x50b738(0x10e)])||_0x1ceea1['push'](_0x2bc6e1[_0x50b738(0x10e)])),_0x1ceea1;};function Ye(_0x39f23d,_0x5cac04){const _0x30ba95=_0x3ef337;let _0x19e7af='https://nominatim.openstreetmap.org/search.php?city='+encodeURIComponent(_0x39f23d)+'&polygon_geojson=1&format=jsonv2',_0x8bf9a3=new XMLHttpRequest();_0x8bf9a3[_0x30ba95(0x1d3)](_0x30ba95(0x196),_0x19e7af,!0x0),_0x8bf9a3[_0x30ba95(0x22f)]=function(){const _0x5cf6f8=_0x30ba95;if(_0x8bf9a3[_0x5cf6f8(0xfa)]>=0xc8&&_0x8bf9a3[_0x5cf6f8(0xfa)]<0x190){let _0x360a18=JSON[_0x5cf6f8(0xd6)](_0x8bf9a3[_0x5cf6f8(0x212)])['map'](_0x1f2292=>{const _0x20f4f7=_0x5cf6f8;let {display_name:_0x1cf36d,lat:_0x16ac93,lon:_0x4027c2}=_0x1f2292,_0xfdae9c=_0x1cf36d[_0x20f4f7(0x1a9)](',\x20'),_0x10fa6e=_0xfdae9c[0x0]+',\x20'+_0xfdae9c[_0xfdae9c['length']-0x2]+',\x20'+_0xfdae9c[_0xfdae9c['length']-0x1];return new L(_0x10fa6e,new V(_0x16ac93,_0x4027c2));});_0x5cac04(_0x360a18);}else _0x5cac04([]);},_0x8bf9a3[_0x30ba95(0x186)]=function(){_0x5cac04([]);},_0x8bf9a3['send']();}function ce(_0x447a55){const _0x6b52e6=_0x3ef337;return _0x447a55['replace'](/\r\n/g,'\x0a')[_0x6b52e6(0x23a)](/\r/g,'\x0a')[_0x6b52e6(0x190)]();}function _0xab6a(_0x45796d,_0x1bd28b){_0x45796d=_0x45796d-0x9f;const _0x1b1fc6=_0x1b1f();let _0xab6a62=_0x1b1fc6[_0x45796d];return _0xab6a62;}var rt=class{constructor(_0x3d78fa){a(this,'target',_0x3d78fa);}get['value'](){const _0x4d8eb5=_0x3ef337;return this[_0x4d8eb5(0x119)];}[_0x3ef337(0x146)](_0x1e2bd7){const _0x3ab0f0=_0x3ef337;return this['target'][_0x3ab0f0(0x1d1)](_0x1e2bd7),this;}[_0x3ef337(0x1f0)](_0x19008d){const _0x33e52c=_0x3ef337;return this[_0x33e52c(0x119)][_0x33e52c(0x135)]([..._0x19008d]),this;}[_0x3ef337(0x18d)](_0x19713c){const _0x5508c6=_0x3ef337;return this[_0x5508c6(0x119)]['updateDateAct'](_0x19713c),this;}['setSdateAct'](_0x3e3f0a){const _0x10db93=_0x3ef337;return this[_0x10db93(0x119)]['updateSdateAct'](_0x3e3f0a),this;}[_0x3ef337(0xb4)](_0x4c9a36){const _0x3a9576=_0x3ef337;return this[_0x3a9576(0x119)][_0x3a9576(0x1e9)](_0x4c9a36),this;}['setEvenDescription'](_0x8b8fdb){const _0x522bdb=_0x3ef337;return this[_0x522bdb(0x119)][_0x522bdb(0xe3)]=_0x8b8fdb??'',this;}['setEvenTypeLabel'](_0x35af24){const _0x435bf3=_0x3ef337;return this[_0x435bf3(0x119)]['evenTypeLabel']=_0x35af24??'',this;}[_0x3ef337(0x1b0)](_0x32b7c2){return this['target']['eventPhrases']=[..._0x32b7c2],this;}['clearEventPhrases'](){const _0x47d6b4=_0x3ef337;return this[_0x47d6b4(0x119)][_0x47d6b4(0xb1)]=[],this;}['appendEventPhrase'](_0x4ab0fc){const _0x1520e4=_0x3ef337;let _0x41ee6d=_0x4ab0fc[_0x1520e4(0x290)]();return _0x41ee6d&&this[_0x1520e4(0x119)][_0x1520e4(0xb1)][_0x1520e4(0x19e)](_0x41ee6d),this;}[_0x3ef337(0x114)](_0x8b59bc){const _0x240b08=_0x3ef337;return this['target'][_0x240b08(0x268)]=[..._0x8b59bc],this;}['appendPreservedPrefixLine'](_0x49fadb){const _0x1f44a8=_0x3ef337;let _0x4f280b=ce(_0x49fadb)[_0x1f44a8(0x290)]();return _0x4f280b&&this[_0x1f44a8(0x119)][_0x1f44a8(0x268)]['push'](_0x4f280b),this;}[_0x3ef337(0x110)](){const _0x4976ad=_0x3ef337;return this[_0x4976ad(0x119)]['preservedSubrecordPrefix']=[],this;}[_0x3ef337(0x24f)](_0x135dfe){return this['target']['preservedSubrecordSuffix']=[..._0x135dfe],this;}['appendPreservedSuffixLine'](_0x57ca44){const _0xb1620c=_0x3ef337;let _0x28beb0=ce(_0x57ca44)[_0xb1620c(0x290)]();return _0x28beb0&&this['target']['preservedSubrecordSuffix'][_0xb1620c(0x19e)](_0x28beb0),this;}['clearPreservedSuffix'](){const _0x2047fd=_0x3ef337;return this[_0x2047fd(0x119)]['preservedSubrecordSuffix']=[],this;}};function Et(_0x546271){return new rt(_0x546271);}var nt=class{constructor(_0x3e2d17){const _0x1754b8=_0x3ef337;a(this,_0x1754b8(0x119),_0x3e2d17);}get[_0x3ef337(0xbc)](){const _0x350f95=_0x3ef337;return this[_0x350f95(0x119)];}[_0x3ef337(0x125)](_0x1edc61){const _0x118c99=_0x3ef337;return this[_0x118c99(0x119)][_0x118c99(0x125)](_0x1edc61),this;}['replaceAt'](_0x5c69f4,_0x9c634){return this['target']['updateFromIndex'](_0x9c634,_0x5c69f4),this;}['removeAt'](_0x5b0e12){const _0x1a1eaf=_0x3ef337;return this['target'][_0x1a1eaf(0x1a8)](_0x5b0e12),this;}['clear'](){const _0x16dffa=_0x3ef337;return this['target'][_0x16dffa(0x139)](),this;}[_0x3ef337(0x1e2)](){const _0x5bf4c5=_0x3ef337;return this[_0x5bf4c5(0x119)][_0x5bf4c5(0x1e2)](),this;}['at'](_0x11334a){const _0x2914d3=_0x3ef337;let _0x15b08e=this['target']['list'][_0x11334a];if(!_0x15b08e)throw new RangeError(_0x2914d3(0x1da)+_0x11334a+'\x20out\x20of\x20range');return Et(_0x15b08e);}};function vt(_0x5dee79){return new nt(_0x5dee79);}var it=class{constructor(_0x31034b){a(this,'target',_0x31034b);}get[_0x3ef337(0xbc)](){const _0x40747e=_0x3ef337;return this[_0x40747e(0x119)];}[_0x3ef337(0x10c)](){const _0x5d5cb0=_0x3ef337;return this['target'][_0x5d5cb0(0x11e)](),this;}['applyGedcomPayload'](_0x2ecacf){const _0x3b4b2d=_0x3ef337;return this[_0x3b4b2d(0x119)][_0x3b4b2d(0x203)](_0x2ecacf),this;}[_0x3ef337(0x20a)](_0x55907f,_0x1dbc26,_0x3e90f0){const _0xaeeeed=_0x3ef337;return this[_0xaeeeed(0x119)][_0xaeeeed(0x141)](_0x55907f,_0x1dbc26,_0x3e90f0),this;}['setQualified'](_0x13fd86,_0x1cd7fe,_0x3fc6a7,_0x1ae422){const _0x4c8144=_0x3ef337;return this[_0x4c8144(0x119)]['updateQualifiedDate'](_0x13fd86,_0x1cd7fe,_0x3fc6a7,_0x1ae422),this;}[_0x3ef337(0x1eb)](_0x4101f4,_0x9dd840){const _0x51454c=_0x3ef337;return this[_0x51454c(0x119)][_0x51454c(0x1ee)](_0x4101f4,_0x9dd840),this;}['setFromTo'](_0x4ec015,_0x4ca091){const _0x3bc25b=_0x3ef337;return this[_0x3bc25b(0x119)][_0x3bc25b(0x214)](_0x4ec015,_0x4ca091),this;}['setTime'](_0x314e9d){const _0x5bae09=_0x3ef337;return _0x314e9d===null||_0x314e9d===''?(this[_0x5bae09(0x119)][_0x5bae09(0x258)]=null,this):(this['target'][_0x5bae09(0xa8)](_0x314e9d),this);}['setDatePhrase'](_0x48d3f0){const _0x24d6e5=_0x3ef337;return this['target']['datePhrase']=_0x48d3f0?.[_0x24d6e5(0x290)]()?_0x48d3f0[_0x24d6e5(0x290)]():null,this;}[_0x3ef337(0x151)](_0x31db18){const _0x214c95=_0x3ef337;return this[_0x214c95(0x119)][_0x214c95(0xd2)](_0x31db18),this;}['setVerbatimPayload'](_0x3d60a7){const _0x44e5cd=_0x3ef337;return this[_0x44e5cd(0x119)][_0x44e5cd(0xe0)]=_0x3d60a7?.['trim']()?_0x3d60a7['trim']():null,this;}};function me(_0x4ae2d7){return new it(_0x4ae2d7);}var st=class{constructor(_0x480f5b){a(this,'target',_0x480f5b);}get[_0x3ef337(0xbc)](){const _0xf41d68=_0x3ef337;return this[_0xf41d68(0x119)];}[_0x3ef337(0x125)](_0x4419fc){const _0x58ece7=_0x3ef337;return this[_0x58ece7(0x119)]['addNote'](_0x4419fc),this;}[_0x3ef337(0x1b1)](_0x2eb2c1,_0x67c3ef){const _0x1df91c=_0x3ef337;return this[_0x1df91c(0x119)][_0x1df91c(0x123)](_0x67c3ef,_0x2eb2c1),this;}['removeAt'](_0x1ac0f3){const _0xcaeaff=_0x3ef337;return this[_0xcaeaff(0x119)]['removeFromIndex'](_0x1ac0f3),this;}[_0x3ef337(0x10c)](){const _0x30627d=_0x3ef337;return this[_0x30627d(0x119)]['removeAll'](),this;}};function bt(_0x547025){return new st(_0x547025);}var ot=class{constructor(_0x30f78f){const _0x22c6a7=_0x3ef337;a(this,_0x22c6a7(0x119),_0x30f78f);}get[_0x3ef337(0xbc)](){const _0x88eb35=_0x3ef337;return this[_0x88eb35(0x119)];}['setSex'](_0x5b42a5){return this['target']['SEX']=_0x5b42a5,this;}['setLastname'](_0x58d00e){const _0x9e8cd3=_0x3ef337;return this[_0x9e8cd3(0x119)]['lastname']=_0x58d00e,this;}['setFirstnames'](_0x363465){return this['target']['firstnames']=[..._0x363465],this;}[_0x3ef337(0xea)](_0x4904f3){return this['target']['sosa']=_0x4904f3,this;}[_0x3ef337(0x177)](_0x3d333c){const _0x535167=_0x3ef337;return this[_0x535167(0x119)][_0x535167(0xda)]=_0x3d333c,this;}['setFams'](_0x46be05){const _0x38c398=_0x3ef337;return this[_0x38c398(0x119)]['FAMS']=[..._0x46be05],this;}[_0x3ef337(0x126)](){const _0x3c2bcf=_0x3ef337;return this[_0x3c2bcf(0x119)]['FAMS']=[],this;}[_0x3ef337(0x299)](_0x58ae69){const _0x5cb5cd=_0x3ef337;return this[_0x5cb5cd(0x119)][_0x5cb5cd(0x168)][_0x5cb5cd(0x19e)](_0x58ae69),this;}[_0x3ef337(0x102)](_0x147859){const _0x2a9303=_0x3ef337;return this[_0x2a9303(0x119)][_0x2a9303(0x28b)]=[..._0x147859],this;}[_0x3ef337(0xfe)](_0x43a1e4){return this['target']['attributes']=[..._0x43a1e4],this;}['acts'](){const _0x5a0930=_0x3ef337;return vt(this[_0x5a0930(0x119)]['acts']);}['notes'](){const _0x5a821=_0x3ef337;return bt(this[_0x5a821(0x119)][_0x5a821(0x14a)]);}};function he(_0x17a57a){return new ot(_0x17a57a);}var at=class{constructor(_0x3751e6){const _0x1b5ccd=_0x3ef337;a(this,_0x1b5ccd(0x119),_0x3751e6);}get[_0x3ef337(0xbc)](){return this['target'];}[_0x3ef337(0x18b)](_0x227901){const _0x40daa5=_0x3ef337;return this[_0x40daa5(0x119)]['setFromGedcom7PlacPayload'](_0x227901),this;}['setCity'](_0x14a714){const _0x591604=_0x3ef337;return this[_0x591604(0x119)][_0x591604(0x292)]=_0x14a714?.[_0x591604(0x290)]()?_0x14a714[_0x591604(0x290)]():null,this;}[_0x3ef337(0x111)](_0x349dc5){const _0x4d2bff=_0x3ef337;return this[_0x4d2bff(0x119)][_0x4d2bff(0x296)]=_0x349dc5?.['trim']()?_0x349dc5[_0x4d2bff(0x290)]():null,this;}[_0x3ef337(0x273)](_0x47e05e){const _0x178230=_0x3ef337;return this[_0x178230(0x119)][_0x178230(0x113)]=_0x47e05e?.['trim']()?_0x47e05e['trim']():null,this;}[_0x3ef337(0x1bb)](_0x123d24){const _0x4606d8=_0x3ef337;return this[_0x4606d8(0x119)]['country']=_0x123d24?.['trim']()?_0x123d24['trim']():null,this;}[_0x3ef337(0x226)](_0x4af773){const _0x5135f7=_0x3ef337;return this['target'][_0x5135f7(0x197)]=_0x4af773?.['trim']()?_0x4af773[_0x5135f7(0x290)]():null,this;}['appendPlacPhrase'](_0x209dd8){const _0x3dff79=_0x3ef337;return this[_0x3dff79(0x119)]['appendPlacPhraseFromImport'](_0x209dd8),this;}[_0x3ef337(0xf0)](){const _0x20b9a4=_0x3ef337;return this[_0x20b9a4(0x119)][_0x20b9a4(0x197)]=null,this;}[_0x3ef337(0xf8)](_0x34b1f4,_0x228faa){const _0x32fd5b=_0x3ef337;return this[_0x32fd5b(0x119)]['coordinate'][_0x32fd5b(0xa1)]([_0x34b1f4,_0x228faa]),this;}['clearCoordinates'](){const _0xad48fa=_0x3ef337;return this[_0xad48fa(0x119)]['coordinate']['latitude']=void 0x0,this[_0xad48fa(0x119)][_0xad48fa(0xbe)][_0xad48fa(0xae)]=void 0x0,this;}[_0x3ef337(0x103)](_0x3454f2){const _0x1e00d8=_0x3ef337;return this[_0x1e00d8(0x119)][_0x1e00d8(0xbe)]=_0x3454f2,this;}['clearStructured'](){const _0x386f53=_0x3ef337;return this['target'][_0x386f53(0x292)]=null,this[_0x386f53(0x119)][_0x386f53(0x296)]=null,this[_0x386f53(0x119)][_0x386f53(0x113)]=null,this['target'][_0x386f53(0xb9)]=null,this['target']['placPhrase']=null,this['clearCoordinates'](),this;}};function de(_0x1a3537){return new at(_0x1a3537);}var Pi=M;export{pt as Act,rt as ActEdit,T as Acts,gt as ActsByYear,nt as ActsEdit,V as CoordinateGPS,U as DateAct,it as DateActEdit,Ot as EventsByYears,kt as ExportGedcomFile,Vt as ExportGedzipFile,k as GEDCOM_7_ALL_EVENT_TAGS,It as GEDCOM_7_EVENT_SORT_ORDER,W as GEDCOM_7_EVENT_TAG_SET,Ut as GEDCOM_LIBRARY_VERSION,ee as IMPORT_ERR_ZIP_GED_UNREADABLE,Pi as Identificator,M as Identifier,K as IndiAttribute,v as MultimediaFile,S as MultimediaFiles,_ as Note,C as Notes,st as NotesEdit,tt as Person,ot as PersonEdit,Q as PersonNameTranslation,q as PersonNameVariant,L as Place,at as PlaceEdit,j as ReadGed,et as Sex,Ie as createEmptyReadGed,le as createSosaMap,ge as dateToDateLine,Tt as days,Et as editAct,vt as editActs,me as editDateAct,bt as editNotes,he as editPerson,de as editPlace,Lt as extractIndiAttributes,Rt as extractPersonNameVariants,Ye as getCityCoordinates,wt as guessMediaFormFromUri,xe as importGedFile,lt as months,He as remainingTypesAct,Gt as resolveDatasetVersion,$t as selectPrimaryNameVariant};
@@ -3,4 +3,6 @@ export type ActsExtractionResult = {
3
3
  entries: GedcomActEntry[];
4
4
  indis: number[];
5
5
  };
6
- export declare function extractActEntriesAndIndis(lines: string[], initialIndis: number[]): ActsExtractionResult;
6
+ /** Level-1 tag from a line like `1 BIRT` or `1 DIVF` (no false match on `DIV` vs `DIVF`). */
7
+ export declare function gedcomLevel1Tag(line: string): string | null;
8
+ export declare function extractActEntriesAndIndis(lines: string[], initialIndis: number[], textualIndiXrefToIndi?: ReadonlyMap<string, number>): ActsExtractionResult;
@@ -0,0 +1,7 @@
1
+ /** Version logique du jeu de données déduite du bloc `HEAD`. */
2
+ export type GedcomDatasetVersion = "7.0" | "5.5" | "unknown";
3
+ /**
4
+ * Déduit la version FamilySearch GEDCOM à partir des lignes du bloc `0 HEAD` …
5
+ * (sous-structure `GEDC`.`VERS`, typiquement niveau 2).
6
+ */
7
+ export declare function resolveDatasetVersion(headerLines: string[] | null | undefined): GedcomDatasetVersion;
@@ -0,0 +1,4 @@
1
+ import { IndiAttribute } from "../../commons/IndiAttribute";
2
+ import { PersonNameVariant } from "../../commons/PersonNameVariant";
3
+ export declare function extractPersonNameVariants(personLines: string[]): PersonNameVariant[];
4
+ export declare function extractIndiAttributes(personLines: string[]): IndiAttribute[];
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Clés d’xref `F` / `N` canoniques : `005` → `5`, les libellés non numériques restent inchangés.
3
+ */
4
+ export declare function canonicalFamOrNoteLabel(inner: string): string;
5
+ export type LabelKeyedMapsResult = {
6
+ byNumericId: Map<number, string[]>;
7
+ pointerToId: Map<string, number>;
8
+ };
9
+ /**
10
+ * À partir d’une carte « libelle xref → lignes sous l’en-tête `0` », produit une carte par id
11
+ * numérique interne et la table de résolution `@FfamA@` / `@Nfoo@` → id.
12
+ */
13
+ export declare function resolveLabelKeyedMapToNumericIds(labelMap: Map<string, string[]>): LabelKeyedMapsResult;
@@ -0,0 +1,2 @@
1
+ /** Best-effort `FORM` (media type) for GEDCOM 7 `OBJE`.`FILE` from a URI or path. */
2
+ export declare function guessMediaFormFromUri(uri: string): string;
@@ -0,0 +1,9 @@
1
+ export type StandaloneObjePayload = {
2
+ id: number;
3
+ sourceUri: string;
4
+ };
5
+ /**
6
+ * Extrait l’id `@O{n}@` et le premier `FILE` utile d’un enregistrement `0 @O…@ OBJE`.
7
+ * Préfère une URI `http(s)`, sinon première valeur `FILE` non vide.
8
+ */
9
+ export declare function parseStandaloneObjeBlock(block: string): StandaloneObjePayload | null;
@@ -1,6 +1,13 @@
1
+ import type { PersonNameVariant } from "../../commons/PersonNameVariant";
1
2
  export type ParsedPersonName = {
2
3
  firstnames: string[];
3
4
  lastname: string;
4
5
  };
5
6
  export declare function parsePersonName(rawName: string): ParsedPersonName;
7
+ /**
8
+ * Choisit la valeur `1 NAME` la plus pertinente : priorité au bloc avec `2 TYPE BIRTH`
9
+ * (GEDCOM 7 / noms multiples), sinon premier nom avec patronyme `/…/`, sinon le premier `NAME`.
10
+ */
6
11
  export declare function extractRawNameFromGedcomLines(lines: string[]): string | null;
12
+ /** Même logique que {@link extractRawNameFromGedcomLines} appliquée aux blocs `NAME` déjà découpés. */
13
+ export declare function selectPrimaryNameVariant(variants: PersonNameVariant[]): PersonNameVariant | null;
@@ -1,3 +1,19 @@
1
1
  export declare function extractNumericPointer(value: string, prefix: string): number | null;
2
+ /**
3
+ * Libellé brut entre `@F` / `@N` et `@` (tout caractère sauf `@`), sans canoniser.
4
+ */
5
+ export declare function extractPointerInnerLabel(value: string, prefixLetter: "F" | "N"): string | null;
6
+ /** Clé pour {@link resolveLabelKeyedMapToNumericIds} : canonise les ids numériques (`01` → `1`). */
7
+ export declare function extractFamNotePointerKey(value: string, prefixLetter: "F" | "N"): string | null;
2
8
  export declare function extractEntityIdFromZeroLine(line: string, prefix: string, entityTag: string): number | null;
9
+ /**
10
+ * Xref « textuelle » sous `0 @…@ INDI` (ex. GRAMPS `@Homer_Simpson@`).
11
+ * Retourne `null` si l’xref est déjà le schéma numérique `@I{n}@` (géré par {@link extractEntityIdFromZeroLine}).
12
+ */
13
+ export declare function extractTextualIndiXrefFromZeroLine(line: string): string | null;
3
14
  export declare function extractPointerIdFromLine(line: string, prefix: string): number | null;
15
+ /**
16
+ * Résout la valeur d’un pointeur `INDI` (`@I12@`, `@Homer_Simpson@`) vers un id numérique interne,
17
+ * comme pour {@link extractTextualIndiXrefFromZeroLine} + {@link extractNumericPointer}.
18
+ */
19
+ export declare function resolveIndiPointerValueToId(pointerValue: string, textualIndiXrefToIndi?: ReadonlyMap<string, number>): number | null;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Version affichée dans l’export GEDCOM (`HEAD`.`SOUR`.`VERS`, etc.).
3
+ * **À aligner sur** la propriété `version` du `package.json` à chaque release
4
+ * (un test vérifie l’égalité).
5
+ */
6
+ export declare const GEDCOM_LIBRARY_VERSION = "2.1.0";