gedcom-ts 1.1.1 → 2.0.1
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.
- package/LICENSE +22 -0
- package/README.md +228 -35
- package/dist/commons/Act.d.ts +38 -5
- package/dist/commons/ActsByYears.d.ts +10 -0
- package/dist/commons/DateAct.d.ts +24 -5
- package/dist/commons/MultimediaFile.d.ts +14 -0
- package/dist/commons/Note.d.ts +18 -0
- package/dist/commons/Person.d.ts +44 -0
- package/dist/commons/Place.d.ts +7 -9
- package/dist/export/GEDCOM.d.ts +46 -37
- package/dist/import/LoadFile.d.ts +2 -0
- package/dist/import/ReadGed.d.ts +17 -17
- package/dist/import/SplitedInformations.d.ts +13 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +12 -4
- package/dist/index.mjs +1 -0
- package/dist/services/CitySearch.d.ts +2 -0
- package/dist/utils/acts-helper/acts-helper.d.ts +2 -0
- package/dist/utils/gedcom/formatNoteForExport.d.ts +12 -0
- package/dist/utils/gedcom/parseGedcomLine.d.ts +13 -0
- package/dist/utils/indi/indi.d.ts +2 -0
- package/dist/utils/multimedia/nextAvailableRelativeMediaPath.d.ts +9 -0
- package/dist/utils/sosa/calculate-sosa.d.ts +2 -0
- package/package.json +50 -13
- package/CHANGELOG.md +0 -58
- package/dist/commons/Act.js +0 -20
- package/dist/commons/DateAct.js +0 -130
- package/dist/commons/Identificator.enum.js +0 -132
- package/dist/commons/People.d.ts +0 -29
- package/dist/commons/People.js +0 -88
- package/dist/commons/Place.js +0 -24
- package/dist/commons/Separators.js +0 -4
- package/dist/commons/Utils-People.d.ts +0 -2
- package/dist/commons/Utils-People.js +0 -9
- package/dist/export/GEDCOM.js +0 -189
- package/dist/import/ReadGed.js +0 -92
- package/dist/index.js +0 -6
- package/webpack.config.ts +0 -28
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x3cb43d=_0x18bd;(function(_0x82666a,_0x5bdea4){const _0x2cb8a5=_0x18bd,_0x20b8bd=_0x82666a();while(!![]){try{const _0xb28d36=-parseInt(_0x2cb8a5(0x32d))/0x1+-parseInt(_0x2cb8a5(0x28a))/0x2*(parseInt(_0x2cb8a5(0x323))/0x3)+parseInt(_0x2cb8a5(0x2cf))/0x4+parseInt(_0x2cb8a5(0x308))/0x5+parseInt(_0x2cb8a5(0x2e4))/0x6*(parseInt(_0x2cb8a5(0x224))/0x7)+parseInt(_0x2cb8a5(0x2ba))/0x8*(-parseInt(_0x2cb8a5(0x2db))/0x9)+parseInt(_0x2cb8a5(0x244))/0xa;if(_0xb28d36===_0x5bdea4)break;else _0x20b8bd['push'](_0x20b8bd['shift']());}catch(_0xa8a2f7){_0x20b8bd['push'](_0x20b8bd['shift']());}}}(_0x1295,0x67dc2));var pe=Object[_0x3cb43d(0x269)],T=Object['defineProperty'],de=Object['getOwnPropertyDescriptor'],fe=Object[_0x3cb43d(0x24a)],Ae=Object[_0x3cb43d(0x326)],ge=Object[_0x3cb43d(0x23c)][_0x3cb43d(0x23a)],Me=(_0x3909dd,_0x480664,_0x3fbac5)=>_0x480664 in _0x3909dd?T(_0x3909dd,_0x480664,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fbac5}):_0x3909dd[_0x480664]=_0x3fbac5,Fe=(_0x9a9180,_0x201d78)=>{for(var _0x1e4343 in _0x201d78)T(_0x9a9180,_0x1e4343,{'get':_0x201d78[_0x1e4343],'enumerable':!0x0});},q=(_0x554ff7,_0x470598,_0x3df15a,_0x5e4b6d)=>{const _0x37f116=_0x3cb43d;if(_0x470598&&typeof _0x470598=='object'||typeof _0x470598==_0x37f116(0x2be)){for(let _0x54c06e of fe(_0x470598))!ge[_0x37f116(0x2b7)](_0x554ff7,_0x54c06e)&&_0x54c06e!==_0x3df15a&&T(_0x554ff7,_0x54c06e,{'get':()=>_0x470598[_0x54c06e],'enumerable':!(_0x5e4b6d=de(_0x470598,_0x54c06e))||_0x5e4b6d[_0x37f116(0x2b5)]});}return _0x554ff7;},K=(_0x121a37,_0x52bc5d,_0x1c7d7a)=>(_0x1c7d7a=_0x121a37!=null?pe(Ae(_0x121a37)):{},q(_0x52bc5d||!_0x121a37||!_0x121a37[_0x3cb43d(0x236)]?T(_0x1c7d7a,_0x3cb43d(0x29e),{'value':_0x121a37,'enumerable':!0x0}):_0x1c7d7a,_0x121a37)),Ee=_0x132f74=>q(T({},_0x3cb43d(0x236),{'value':!0x0}),_0x132f74),a=(_0x755781,_0x3e6c9f,_0x110612)=>Me(_0x755781,typeof _0x3e6c9f!=_0x3cb43d(0x33d)?_0x3e6c9f+'':_0x3e6c9f,_0x110612),xe={};Fe(xe,{'Act':()=>C,'Acts':()=>M,'ActsByYear':()=>$,'CoordinateGPS':()=>y,'DateAct':()=>S,'EventsByYears':()=>J,'ExportGedcomFile':()=>k,'ExportGedzipFile':()=>U,'Identificator':()=>N,'MultimediaFile':()=>E,'MultimediaFiles':()=>g,'Note':()=>v,'Notes':()=>b,'Person':()=>R,'Place':()=>F,'ReadGed':()=>x,'Sex':()=>D,'createSosaMap':()=>Z,'dateToDateLine':()=>Q,'days':()=>I,'getCityCoordinates':()=>le,'importGedFile':()=>oe,'months':()=>w,'remainingTypesAct':()=>ue}),module[_0x3cb43d(0x264)]=Ee(xe);var I=[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],w=[_0x3cb43d(0x21a),'FEB',_0x3cb43d(0x307),'APR',_0x3cb43d(0x2c1),_0x3cb43d(0x216),'JUL','AUG',_0x3cb43d(0x208),'OCT','NOV','DEC'],S=class{constructor(_0x29fcaa){const _0x393b65=_0x3cb43d;a(this,_0x393b65(0x2a2)),a(this,'day',null),a(this,'month',null),a(this,'year');if(_0x29fcaa&&_0x29fcaa!=='inconnue'){let _0x50dd3c=_0x29fcaa[_0x393b65(0x2bd)]()[_0x393b65(0x346)](/\s+/);switch(_0x50dd3c[_0x393b65(0x246)]){case 0x1:if(_0x50dd3c[0x0][_0x393b65(0x1f8)]('/')){let [_0x3c5bf0,_0x516059]=_0x50dd3c[0x0][_0x393b65(0x346)]('/');this[_0x393b65(0x1fe)]=this[_0x393b65(0x334)](_0x3c5bf0),this[_0x393b65(0x239)]=Number(_0x516059);}else this['month']=null,this['year']=Number(_0x50dd3c[0x0]);break;case 0x2:if(_0x50dd3c[0x0]===_0x393b65(0x23f)||_0x50dd3c[0x0]==='ABT'){if(this[_0x393b65(0x2a2)]=_0x50dd3c[0x0],_0x50dd3c[0x1]['includes']('/')){let [_0x1fa039,_0x1c4106]=_0x50dd3c[0x1][_0x393b65(0x346)]('/');this[_0x393b65(0x1fe)]=this['convertMonth'](_0x1fa039),this[_0x393b65(0x239)]=Number(_0x1c4106);}else this[_0x393b65(0x1fe)]=null,this['year']=Number(_0x50dd3c[0x1]);}else{if(_0x50dd3c[0x0]['includes']('/')){let [_0x155621,_0x6f1340]=_0x50dd3c[0x0][_0x393b65(0x346)]('/');this[_0x393b65(0x1fe)]=this[_0x393b65(0x334)](_0x155621),this[_0x393b65(0x239)]=Number(_0x6f1340);}else this[_0x393b65(0x1fe)]=_0x50dd3c[0x0]??null,this['year']=Number(_0x50dd3c[0x1]);}break;case 0x3:if(_0x50dd3c[0x0]==='BEF'||_0x50dd3c[0x0]===_0x393b65(0x330))this[_0x393b65(0x2a2)]=_0x50dd3c[0x0],this[_0x393b65(0x1fe)]=_0x50dd3c[0x1],this['year']=Number(_0x50dd3c[0x2]);else{if(_0x50dd3c[0x1]['includes']('/')){let [_0x29ac5f,_0x142d97]=_0x50dd3c[0x1][_0x393b65(0x346)]('/');this[_0x393b65(0x1fe)]=this[_0x393b65(0x334)](_0x29ac5f),this['year']=Number(_0x142d97);}else this['day']=Number(_0x50dd3c[0x0])>=0x1&&Number(_0x50dd3c[0x0])<=0x1f?Number(_0x50dd3c[0x0]):null,this[_0x393b65(0x1fe)]=_0x50dd3c[0x1],this['year']=Number(_0x50dd3c[0x2]);}break;}}}get['date'](){const _0x34a7c0=_0x3cb43d;return this[_0x34a7c0(0x239)]?this['month']?this[_0x34a7c0(0x2f3)]?this['day']+'\x20'+this[_0x34a7c0(0x1fe)]+'\x20'+this[_0x34a7c0(0x239)]:this[_0x34a7c0(0x1fe)]+'\x20'+this[_0x34a7c0(0x239)]:''+this['year']:null;}['convertMonth'](_0x4818c0){const _0xe32393=_0x3cb43d;switch(_0x4818c0){case'1':return'JAN';case'2':return'FEB';case'3':return'MAR';case'4':return _0xe32393(0x1ff);case'5':return'MAY';case'6':return _0xe32393(0x216);case'7':return _0xe32393(0x336);case'8':return'AUG';case'9':return _0xe32393(0x208);case'10':return _0xe32393(0x21f);case'11':return'NOV';case'12':return _0xe32393(0x1f5);default:return null;}}[_0x3cb43d(0x33f)](){const _0x53daf9=_0x3cb43d;let _0x42c209=new Date()[_0x53daf9(0x22d)]();if(this[_0x53daf9(0x239)]&&(this[_0x53daf9(0x239)]<0x0||this['year']>_0x42c209))return!0x1;if(this[_0x53daf9(0x239)]&&!this[_0x53daf9(0x1fe)]&&!this[_0x53daf9(0x2f3)])return!0x0;if(this[_0x53daf9(0x1fe)]&&!w[_0x53daf9(0x1f8)](this[_0x53daf9(0x1fe)]))return!0x1;if(this[_0x53daf9(0x239)]&&this['month']&&!this['day'])return!0x0;if(this[_0x53daf9(0x2f3)]){let _0x1d3b09=this['year']%0x4===0x0&&this[_0x53daf9(0x239)]%0x64!==0x0||this['year']%0x190===0x0,_0x2be5d5;if(this['month']==='FEB'&&_0x1d3b09)_0x2be5d5=0x1d;else{let _0x4cfefd=w[_0x53daf9(0x33e)](_0x305213=>_0x305213===this['month']);_0x2be5d5=I['filter'](_0x228bf4=>_0x228bf4<=new Date(this[_0x53daf9(0x239)],_0x4cfefd,0x0)[_0x53daf9(0x26a)]())['length'];}return I[_0x53daf9(0x1f8)](this['day'])&&this[_0x53daf9(0x2f3)]<=_0x2be5d5;}return!0x1;}},Q=(_0x972bea,_0x8b05d6,_0x4ee698)=>_0x972bea?_0x8b05d6?_0x4ee698?_0x4ee698+'\x20'+_0x8b05d6+'\x20'+_0x972bea:_0x8b05d6+'\x20'+_0x972bea:''+_0x972bea:'',F=class{constructor(_0x50a053,_0x1472da){const _0x5c064d=_0x3cb43d;a(this,'city',null),a(this,'coordinate'),(_0x50a053&&(this[_0x5c064d(0x31b)]=_0x50a053),this[_0x5c064d(0x303)]=_0x1472da??new y());}[_0x3cb43d(0x2f4)](_0x39e7da){const _0x52ec6e=_0x3cb43d;this[_0x52ec6e(0x31b)]=_0x39e7da;}},y=class{constructor(_0x55f15d,_0x276649){const _0x3fb119=_0x3cb43d;a(this,'latitude'),a(this,'longitude'),(this['latitude']=_0x55f15d,this[_0x3fb119(0x24d)]=_0x276649);}['addCoordinates']([_0x4efa75,_0x495885]){const _0x413bae=_0x3cb43d;this[_0x413bae(0x22b)]=_0x4efa75,this['longitude']=_0x495885;}},N=(_0x297cc2=>(_0x297cc2[_0x3cb43d(0x24b)]='ABBR',_0x297cc2[_0x3cb43d(0x292)]=_0x3cb43d(0x292),_0x297cc2[_0x3cb43d(0x270)]=_0x3cb43d(0x2d9),_0x297cc2[_0x3cb43d(0x28b)]=_0x3cb43d(0x31a),_0x297cc2[_0x3cb43d(0x34b)]='ADOP',_0x297cc2['AFN']='AFN',_0x297cc2['AGE']=_0x3cb43d(0x26c),_0x297cc2[_0x3cb43d(0x277)]=_0x3cb43d(0x277),_0x297cc2['ALIA']=_0x3cb43d(0x345),_0x297cc2[_0x3cb43d(0x2a3)]='ANCE',_0x297cc2['ANCI']=_0x3cb43d(0x2d1),_0x297cc2['ANUL']=_0x3cb43d(0x214),_0x297cc2[_0x3cb43d(0x241)]=_0x3cb43d(0x241),_0x297cc2['AUTH']='AUTH',_0x297cc2[_0x3cb43d(0x2bc)]='BAPL',_0x297cc2[_0x3cb43d(0x213)]='BAPM',_0x297cc2[_0x3cb43d(0x2fe)]=_0x3cb43d(0x2fe),_0x297cc2[_0x3cb43d(0x24c)]=_0x3cb43d(0x24c),_0x297cc2[_0x3cb43d(0x332)]='BIRT',_0x297cc2['BLES']=_0x3cb43d(0x284),_0x297cc2['BLOB']=_0x3cb43d(0x2f6),_0x297cc2['BURI']=_0x3cb43d(0x2a5),_0x297cc2[_0x3cb43d(0x2d2)]=_0x3cb43d(0x2d2),_0x297cc2[_0x3cb43d(0x2cb)]=_0x3cb43d(0x2cb),_0x297cc2['CAUS']='CAUS',_0x297cc2[_0x3cb43d(0x1f6)]=_0x3cb43d(0x1f6),_0x297cc2['CHAN']='CHAN',_0x297cc2['CHAR']='CHAR',_0x297cc2[_0x3cb43d(0x1f7)]=_0x3cb43d(0x1f7),_0x297cc2['CHR']=_0x3cb43d(0x290),_0x297cc2[_0x3cb43d(0x278)]=_0x3cb43d(0x278),_0x297cc2[_0x3cb43d(0x2fb)]=_0x3cb43d(0x2fb),_0x297cc2[_0x3cb43d(0x245)]=_0x3cb43d(0x245),_0x297cc2['CONF']=_0x3cb43d(0x23d),_0x297cc2[_0x3cb43d(0x234)]='CONL',_0x297cc2[_0x3cb43d(0x2c3)]=_0x3cb43d(0x2c3),_0x297cc2['COPR']=_0x3cb43d(0x2e2),_0x297cc2['CORP']='CORP',_0x297cc2['CREM']='CREM',_0x297cc2['CTRY']=_0x3cb43d(0x202),_0x297cc2[_0x3cb43d(0x30d)]=_0x3cb43d(0x30d),_0x297cc2[_0x3cb43d(0x2a1)]='DATE',_0x297cc2[_0x3cb43d(0x205)]=_0x3cb43d(0x205),_0x297cc2[_0x3cb43d(0x23e)]='DESC',_0x297cc2['DESI']=_0x3cb43d(0x203),_0x297cc2[_0x3cb43d(0x2b0)]=_0x3cb43d(0x2b0),_0x297cc2['DIV']='DIV',_0x297cc2[_0x3cb43d(0x2a0)]='DIVF',_0x297cc2[_0x3cb43d(0x229)]='DSCR',_0x297cc2['EDUC']=_0x3cb43d(0x281),_0x297cc2[_0x3cb43d(0x329)]='EMIG',_0x297cc2['ENDL']='ENDL',_0x297cc2[_0x3cb43d(0x222)]='ENGA',_0x297cc2[_0x3cb43d(0x2f0)]=_0x3cb43d(0x2f0),_0x297cc2[_0x3cb43d(0x2d5)]=_0x3cb43d(0x2d5),_0x297cc2[_0x3cb43d(0x305)]=_0x3cb43d(0x305),_0x297cc2[_0x3cb43d(0x302)]='FAMF',_0x297cc2['FAMS']=_0x3cb43d(0x242),_0x297cc2[_0x3cb43d(0x2ff)]=_0x3cb43d(0x2ff),_0x297cc2[_0x3cb43d(0x20b)]=_0x3cb43d(0x20b),_0x297cc2['FORM']=_0x3cb43d(0x27c),_0x297cc2['GEDC']=_0x3cb43d(0x243),_0x297cc2['GIVN']=_0x3cb43d(0x235),_0x297cc2['GRAD']='GRAD',_0x297cc2[_0x3cb43d(0x256)]=_0x3cb43d(0x256),_0x297cc2[_0x3cb43d(0x22a)]=_0x3cb43d(0x22a),_0x297cc2['IDNO']=_0x3cb43d(0x24e),_0x297cc2[_0x3cb43d(0x352)]='IMMI',_0x297cc2[_0x3cb43d(0x25c)]=_0x3cb43d(0x25c),_0x297cc2['LANG']=_0x3cb43d(0x2f2),_0x297cc2[_0x3cb43d(0x271)]=_0x3cb43d(0x271),_0x297cc2['MARB']=_0x3cb43d(0x267),_0x297cc2[_0x3cb43d(0x2bb)]=_0x3cb43d(0x2bb),_0x297cc2['MARL']=_0x3cb43d(0x313),_0x297cc2['MARR']=_0x3cb43d(0x28d),_0x297cc2[_0x3cb43d(0x27b)]='MARS',_0x297cc2[_0x3cb43d(0x273)]=_0x3cb43d(0x273),_0x297cc2[_0x3cb43d(0x2b4)]='NAME',_0x297cc2[_0x3cb43d(0x328)]=_0x3cb43d(0x328),_0x297cc2[_0x3cb43d(0x30e)]='NATU',_0x297cc2[_0x3cb43d(0x2ad)]='NCHI',_0x297cc2[_0x3cb43d(0x2a8)]='NICK',_0x297cc2[_0x3cb43d(0x32a)]='NMR',_0x297cc2['NOTE']=_0x3cb43d(0x232),_0x297cc2['NPFX']=_0x3cb43d(0x263),_0x297cc2['NSFX']=_0x3cb43d(0x24f),_0x297cc2[_0x3cb43d(0x2ca)]=_0x3cb43d(0x2ca),_0x297cc2[_0x3cb43d(0x1f9)]=_0x3cb43d(0x1f9),_0x297cc2[_0x3cb43d(0x2c0)]=_0x3cb43d(0x2c0),_0x297cc2['ORDN']=_0x3cb43d(0x27a),_0x297cc2[_0x3cb43d(0x217)]=_0x3cb43d(0x217),_0x297cc2['PEDI']=_0x3cb43d(0x2ac),_0x297cc2['PHON']='PHON',_0x297cc2['PLAC']='PLAC',_0x297cc2[_0x3cb43d(0x25b)]='POST',_0x297cc2[_0x3cb43d(0x2c4)]=_0x3cb43d(0x2c4),_0x297cc2[_0x3cb43d(0x306)]=_0x3cb43d(0x306),_0x297cc2['PUBL']=_0x3cb43d(0x254),_0x297cc2[_0x3cb43d(0x2d6)]=_0x3cb43d(0x2d6),_0x297cc2['REFN']=_0x3cb43d(0x20c),_0x297cc2[_0x3cb43d(0x347)]='RELA',_0x297cc2['RELI']=_0x3cb43d(0x2b9),_0x297cc2[_0x3cb43d(0x295)]=_0x3cb43d(0x295),_0x297cc2[_0x3cb43d(0x300)]=_0x3cb43d(0x300),_0x297cc2[_0x3cb43d(0x2da)]='RESN',_0x297cc2[_0x3cb43d(0x339)]=_0x3cb43d(0x339),_0x297cc2['RFN']='RFN',_0x297cc2['RIN']=_0x3cb43d(0x28f),_0x297cc2[_0x3cb43d(0x2f8)]='ROLE',_0x297cc2['SEX']='SEX',_0x297cc2[_0x3cb43d(0x283)]=_0x3cb43d(0x283),_0x297cc2[_0x3cb43d(0x34d)]=_0x3cb43d(0x34d),_0x297cc2['SOUR']=_0x3cb43d(0x220),_0x297cc2[_0x3cb43d(0x25d)]=_0x3cb43d(0x25d),_0x297cc2[_0x3cb43d(0x2d4)]='SSN',_0x297cc2[_0x3cb43d(0x227)]=_0x3cb43d(0x227),_0x297cc2[_0x3cb43d(0x275)]=_0x3cb43d(0x275),_0x297cc2['SUBM']='SUBM',_0x297cc2['SUBN']='SUBN',_0x297cc2[_0x3cb43d(0x258)]=_0x3cb43d(0x258),_0x297cc2[_0x3cb43d(0x343)]=_0x3cb43d(0x343),_0x297cc2[_0x3cb43d(0x28e)]=_0x3cb43d(0x28e),_0x297cc2[_0x3cb43d(0x2df)]=_0x3cb43d(0x2df),_0x297cc2[_0x3cb43d(0x2d8)]=_0x3cb43d(0x2d8),_0x297cc2[_0x3cb43d(0x2fa)]=_0x3cb43d(0x2fa),_0x297cc2['TYPE']=_0x3cb43d(0x288),_0x297cc2[_0x3cb43d(0x2e1)]='VERS',_0x297cc2['WIFE']='WIFE',_0x297cc2['WILL']='WILL',_0x297cc2))(N||{}),E=class{constructor(_0x4895d7){const _0x2a569f=_0x3cb43d;a(this,'relativePath'),a(this,_0x2a569f(0x2cc)),this[_0x2a569f(0x2cc)]=_0x4895d7;}get['filename'](){return this['file']['name'];}},g=class{constructor(){const _0x15d2e3=_0x3cb43d;a(this,_0x15d2e3(0x333)),a(this,_0x15d2e3(0x274),[]);}['add'](_0x3be74e){const _0x517966=_0x3cb43d;let _0x59af5f=_0x3be74e['file']?.[_0x517966(0x296)]??'',_0x5bf24c=(this[_0x517966(0x333)]??'')[_0x517966(0x249)](/\/+$/,'');_0x3be74e[_0x517966(0x333)]=_0x5bf24c?_0x5bf24c+'/'+_0x59af5f:_0x59af5f,this[_0x517966(0x274)]['push'](_0x3be74e);}[_0x3cb43d(0x29b)](_0x419cf4){let _0x1f23b4=this['files']['findIndex']((_0x535fc9,_0xd8c0b3)=>_0xd8c0b3===_0x419cf4);_0x1f23b4>=0x0&&this['files']['splice'](_0x1f23b4,0x1);}[_0x3cb43d(0x2e8)](){this['files']=[];}};function P(_0x11aa70){const _0x2ad75a=_0x3cb43d;let _0x2a376d=_0x11aa70[_0x2ad75a(0x297)](),_0x1328d7=_0x2a376d[_0x2ad75a(0x30a)]('\x20');if(_0x1328d7<=0x0)return null;let _0x2b5126=_0x2a376d['slice'](0x0,_0x1328d7),_0x25b724=_0x2a376d[_0x2ad75a(0x2c8)](_0x1328d7+0x1)[_0x2ad75a(0x297)](),_0x79a443=_0x25b724['indexOf']('\x20');if(_0x79a443<=0x0)return{'level':_0x2b5126,'tag':_0x25b724,'value':''};let _0x4993d7=_0x25b724[_0x2ad75a(0x2c8)](0x0,_0x79a443),_0x38176b=_0x25b724[_0x2ad75a(0x2c8)](_0x79a443+0x1);return{'level':_0x2b5126,'tag':_0x4993d7,'value':_0x38176b};}function ye(_0x4d75f9){const _0x885af7=_0x3cb43d;let _0x554c92=_0x4d75f9[_0x885af7(0x223)]('.');return _0x554c92<=0x0?{'stem':_0x4d75f9,'ext':''}:{'stem':_0x4d75f9['slice'](0x0,_0x554c92),'ext':_0x4d75f9[_0x885af7(0x2c8)](_0x554c92)};}function Ne(_0x555d71,_0x209ccc,_0x1f2352){return _0x1f2352===0x0?''+_0x555d71+_0x209ccc:_0x555d71+'_'+_0x1f2352+_0x209ccc;}function _0x18bd(_0x4069c9,_0x58cf90){_0x4069c9=_0x4069c9-0x1f4;const _0x12959e=_0x1295();let _0x18bdbb=_0x12959e[_0x4069c9];return _0x18bdbb;}function O(_0x337d88,_0x1aa9c9,_0x3c5a9c){const _0x187b76=_0x3cb43d;let _0x4779e0=new Set(_0x3c5a9c),_0x3f142a=_0x337d88[_0x187b76(0x249)](/\/+$/,''),_0xc43846=_0x1aa9c9[_0x187b76(0x249)](/^[/\\]+|[/\\]+/g,''),{stem:_0x364b69,ext:_0x4fbc5c}=ye(_0xc43846),_0x4150e6=0x2710;for(let _0x5188bd=0x0;_0x5188bd<_0x4150e6;_0x5188bd++){let _0x594a87=Ne(_0x364b69,_0x4fbc5c,_0x5188bd),_0x5bd985=_0x3f142a?_0x3f142a+'/'+_0x594a87:_0x594a87;if(!_0x4779e0['has'](_0x5bd985))return _0x5bd985;}throw new Error(_0x187b76(0x261));}function _0x1295(){const _0x1433b2=['responseText','informationPersons','FEB','sort','endsWith','EVEN','send','LANG','day','addCity','createIndiFromZeroLine','BLOB','1\x20FAMC\x20@F','ROLE','text','TRLR','CITY','pipeThrough','finalizeAfterParse','BARM','FCOM','RESI','1\x20SOUR\x20generated\x20by\x20gedcom-ts','FAMF','coordinate','from','FAMC','PROP','MAR','1297500rlolqo','updateType','indexOf','createElement','blob','DATA','NATU','dateAct','\x20FILE\x20','getFileLines','https://nominatim.openstreetmap.org/search.php?city=','MARL','informationNotes','FILES','ingestRecordBlock','setInformationFamilies','1\x20NAME','jszip','ADDR2','city','INDIS','file\x20must\x20be\x20a\x20File','0\x20@F','addIndis','events','forEach','getFams','241239fuRCzH','mediaRelativePathsInUse','\x20CONT\x20','getPrototypeOf','placesMap','NATI','EMIG','NMR','2\x20FILE\x20','getName','831282YvpRXM','resolveActIndis','test','ABT','reduce','BIRT','relativePath','convertMonth','2\x20TIME\x20','JUL','tag','@\x20FAM\x0a','RETI','onCreate','has','formatDate','symbol','findIndex','isValid','lastname','&polygon_geojson=1&format=jsonv2','ingestGedcomText','TEMP','1\x20DATE\x20','ALIA','split','RELA','persons','application/zip','ACTS','ADOP','find','SLGS','1\x20CHIL\x20@I','newMultimediaFiles','0\x20HEAD','1\x20FILE\x20','IMMI','contentGedcom','getType','DEC','CENS','CHIL','includes','OCCU','resolvePersonIndi','resolveZipPath','ingestGedcomFileStream','extractActsInfo','month','APR','extractXrefId','createFAMCFromValue','CTRY','DESI','place','DEAT','0\x20@I','firstnames','SEP','deleteMultimedia','collectMediaFiles','FILE','REFN','childsMap','addNoteFromGedcom','notes','async','informationFamilies','1\x20BIRT','BAPM','ANUL','2-digit','JUN','PAGE','status','byteLength','JAN','GET','createPersons','value','ownerIndi','OCT','SOUR','href','ENGA','lastIndexOf','837298fIJHoA','stream','LATI','STAE','dir','DSCR','HUSB','latitude','sosa','getFullYear','createMultimediaFilesFromValue','1\x20HUSB','createObjectURL','sortByYear','NOTE','3\x20MAP','CONL','GIVN','__esModule','acts','getFamc','year','hasOwnProperty','DEFLATE','prototype','CONF','DESC','BEF','getFile','ASSO','FAMS','GEDC','12661290dXhDTg','CONC','length','onerror','parse','replace','getOwnPropertyNames','ABBR','BASM','longitude','IDNO','NSFX','2\x20FORM\x20LINEAGE-LINKED','You\x20don\x27t\x20have\x20any\x20.ged\x20File\x20in\x20your\x20.gdz\x20File','parsePersonLine','mapPersons','PUBL','SEX','HEAD','revokeObjectURL','SURN','add','createFirstnamesAndLastnameJson','POST','INDI','SPFX','@\x20INDI','list','groupPartners','Impossible\x20de\x20trouver\x20un\x20nom\x20de\x20fichier\x20média\x20disponible','title','NPFX','exports','LONG','toUpperCase','MARB','line','create','getDate','startsWith','AGE','addMultimedia','.ged','createPersonJson','ADR1','LEGA','download','MEDI','files','STAT','keys','AGNC','CHRA','sortByDate','ORDN','MARS','FORM','values','1\x20DEAT','localeCompare','1\x20GEDC','EDUC','set','SLGC','BLES','number','assign','4\x20LONG\x20','TYPE','updateLines','2LSbqMT','ADR2','getIndi','MARR','TEXT','RIN','CHR','exec','ADDR','\x20@I','type','REPO','name','trimStart','multimediaFiles','splice','push','removeFromIndex','mapFiles','map','default','removeLines','DIVF','DATE','typeDateAct','ANCE','filter','BURI','splitInformationFamilies','PLACE','NICK','createFAMSFromValue','1\x20SEX\x20','media/events/','PEDI','NCHI','then','buffer','DEST','get','read','join','NAME','enumerable','generateAsync','call','size','RELI','96864vOIEcz','MARC','BAPL','trim','function','beginGedcom','ORDI','MAY','partnersMap','CONT','PROB','generateUniqueIndi','byteOffset','addNote','slice','delete','OBJE','CAST','file','splitInformationPersons','\x20NOTE\x20','2012392ubGPOJ','createDirectAncestries','ANCI','CALN','lines','SSN','FAM','QUAY','NOTES','TITL','ADDR1','RESN','603LKGFgG','fr-FR','zip','Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File','TIME','haveParentsOfPerson','VERS','COPR','shift','6vgUjgl','getPlace','unknown','NOV','removeAll','click','2\x20DATE\x20'];_0x1295=function(){return _0x1433b2;};return _0x1295();}var C=class{constructor(_0x655227,_0x36a8f9,_0x206f38,_0x3691d9,_0x14c6e3,_0x5d9fa4,_0x4759d5){const _0x441283=_0x3cb43d;a(this,'type'),a(this,_0x441283(0x30f),null),a(this,_0x441283(0x204),null),a(this,_0x441283(0x31c),[]),a(this,_0x441283(0x34f),new Map()),a(this,'multimediaFiles',new g()),a(this,'notes'),(this['type']=_0x655227,_0x36a8f9&&(this[_0x441283(0x30f)]=_0x36a8f9),_0x206f38&&(this['place']=_0x206f38),_0x3691d9?.[_0x441283(0x246)]>0x0&&(this['INDIS']=_0x3691d9),_0x14c6e3&&(this[_0x441283(0x298)]=_0x14c6e3),_0x5d9fa4&&(this[_0x441283(0x34f)]=_0x5d9fa4),_0x4759d5&&(this[_0x441283(0x20f)]=_0x4759d5));}get['files'](){const _0x5d0c15=_0x3cb43d;return Array[_0x5d0c15(0x304)](this[_0x5d0c15(0x34f)][_0x5d0c15(0x27d)]());}get['keysFiles'](){const _0x512f07=_0x3cb43d;return Array[_0x512f07(0x304)](this['newMultimediaFiles'][_0x512f07(0x276)]());}[_0x3cb43d(0x26d)](_0x5ef473,_0x168d89){const _0x55814c=_0x3cb43d;let _0x5124e0=_0x168d89??this[_0x55814c(0x31c)][0x0];if(_0x5124e0===void 0x0||!_0x5ef473?.[_0x55814c(0x2cc)])return;let _0x500286=_0x5124e0+'/'+this['type'],_0x5f2a56=this[_0x55814c(0x324)](),_0x1222a3=O(_0x500286,_0x5ef473[_0x55814c(0x2cc)][_0x55814c(0x296)],_0x5f2a56);_0x5ef473[_0x55814c(0x333)]=_0x1222a3,this[_0x55814c(0x298)]['files'][_0x55814c(0x29a)](_0x5ef473),this['newMultimediaFiles'][_0x55814c(0x282)](_0x1222a3,_0x5ef473);}['removeMultimedia'](_0x4e0433){const _0x40d171=_0x3cb43d;let _0xa7b047=Array[_0x40d171(0x304)](this[_0x40d171(0x34f)]['keys']())[_0x40d171(0x34c)]((_0x196cd7,_0x26b950)=>_0x4e0433===_0x26b950);if(_0xa7b047){this['newMultimediaFiles'][_0x40d171(0x2c9)](_0xa7b047);let _0x5aac88=this[_0x40d171(0x298)][_0x40d171(0x274)][_0x40d171(0x33e)](_0x1924c1=>_0x1924c1[_0x40d171(0x333)]===_0xa7b047);_0x5aac88>=0x0&&this[_0x40d171(0x298)]['files'][_0x40d171(0x299)](_0x5aac88,0x1);}}['mediaRelativePathsInUse'](){const _0x4ba2b4=_0x3cb43d;return[...this[_0x4ba2b4(0x34f)]['keys'](),...this['multimediaFiles'][_0x4ba2b4(0x274)][_0x4ba2b4(0x29d)](_0x527ddb=>_0x527ddb['relativePath'])['filter'](_0x114011=>!!_0x114011)];}[_0x3cb43d(0x309)](_0x3f125f){const _0x51e9d1=_0x3cb43d;this[_0x51e9d1(0x294)]=_0x3f125f;}[_0x3cb43d(0x31f)](_0x17fb8b){const _0x28d569=_0x3cb43d;this[_0x28d569(0x31c)]=_0x17fb8b;}['updatePlace'](_0x27a1fb){this['place']=_0x27a1fb;}['updateDateAct'](_0x2cf70d){const _0x514435=_0x3cb43d;_0x2cf70d?.[_0x514435(0x33f)]()&&(this['dateAct']=_0x2cf70d);}},M=class{constructor(){const _0x17742b=_0x3cb43d;a(this,_0x17742b(0x25f),[]);}[_0x3cb43d(0x259)](_0x15da93){const _0x133a07=_0x3cb43d;this['list'][_0x133a07(0x29a)](_0x15da93);}['updateFromIndex'](_0x2e663c,_0x1657d2){const _0x2412c3=_0x3cb43d;this[_0x2412c3(0x25f)][_0x1657d2]=_0x2e663c;}[_0x3cb43d(0x29b)](_0x3a11c3){const _0x2156db=_0x3cb43d;let _0x21fff2=this[_0x2156db(0x25f)]['findIndex']((_0x8621a4,_0x952453)=>_0x952453===_0x3a11c3);_0x21fff2>=0x0&&this['list']['splice'](_0x21fff2,0x1);}[_0x3cb43d(0x2e8)](){this['list']=[];}[_0x3cb43d(0x279)](){const _0x3a55a5=_0x3cb43d;this['list']=[...this[_0x3a55a5(0x25f)]]['sort']((_0x24b5fe,_0x153a90)=>{const _0x4c4208=_0x3a55a5;let _0x49bbf0=_0x24b5fe['dateAct']?.[_0x4c4208(0x239)]||0x0,_0x113b23=_0x153a90[_0x4c4208(0x30f)]?.[_0x4c4208(0x239)]||0x0;if(_0x49bbf0!==_0x113b23)return _0x49bbf0-_0x113b23;let _0x110784=_0x24b5fe[_0x4c4208(0x30f)]?.[_0x4c4208(0x1fe)]||'',_0x4d0038=_0x153a90[_0x4c4208(0x30f)]?.[_0x4c4208(0x1fe)]||'',_0x17d4ba=[_0x4c4208(0x21a),_0x4c4208(0x2ed),'MAR',_0x4c4208(0x1ff),'MAY',_0x4c4208(0x216),'JUL','AUG','SEP',_0x4c4208(0x21f),_0x4c4208(0x2e7),'DEC'],_0x1e20c0=_0x17d4ba['indexOf'](_0x110784),_0x28b186=_0x17d4ba[_0x4c4208(0x30a)](_0x4d0038);if(_0x1e20c0!==_0x28b186)return _0x1e20c0-_0x28b186;let _0x127607=_0x24b5fe[_0x4c4208(0x30f)]?.['day']||0x0,_0x1546fc=_0x153a90['dateAct']?.['day']||0x0;return _0x127607-_0x1546fc;});}},B=class extends M{[_0x3cb43d(0x1fd)](_0x1211f9,_0x4216e3,_0x342d5e){const _0x23befc=_0x3cb43d;let _0xcc8c2=[],_0x534473=_0x29b0d8=>_0x29b0d8[_0x23befc(0x297)]()[_0x23befc(0x26b)]('1\x20'),_0x19a860=_0x466c2f=>{const _0x35f380=_0x23befc;let _0x56db10=_0x466c2f['indexOf']('@I');if(_0x56db10<0x0)return null;let _0x2f5485=_0x466c2f[_0x35f380(0x30a)]('@',_0x56db10+0x2);if(_0x2f5485<=_0x56db10)return null;let _0x1733f0=_0x466c2f['slice'](_0x56db10+0x2,_0x2f5485);return/^\d+$/[_0x35f380(0x32f)](_0x1733f0)?Number(_0x1733f0):null;};for(let _0x5c0987=0x0;_0x5c0987<_0x1211f9[_0x23befc(0x246)];_0x5c0987++){let _0x23a6de=_0x1211f9[_0x5c0987];if(_0x23a6de[_0x23befc(0x26b)](_0x23befc(0x22f))||_0x23a6de[_0x23befc(0x26b)]('1\x20WIFE')){let _0x2c0ad9=_0x19a860(_0x23a6de);_0x2c0ad9!==null&&_0x4216e3[_0x23befc(0x29a)](_0x2c0ad9);}if(_0x23a6de['startsWith'](_0x23befc(0x212))||_0x23a6de[_0x23befc(0x26b)](_0x23befc(0x27e))||_0x23a6de['startsWith']('1\x20MARR')){let _0x1f6b15=[_0x23a6de],_0x466d1b=_0x5c0987+0x1,_0x296793=_0x1211f9[_0x466d1b];for(;_0x296793&&!_0x534473(_0x296793);)_0x1f6b15['push'](_0x296793),_0x466d1b+=0x1,_0x296793=_0x1211f9[_0x466d1b];_0xcc8c2[_0x23befc(0x29a)](_0x1f6b15),_0x5c0987=_0x466d1b-0x1;}}this['convertToActs'](_0xcc8c2['filter'](_0x250cf6=>_0x250cf6[_0x23befc(0x246)]>0x1),_0x4216e3,_0x342d5e);}['convertToActs'](_0x567d82,_0x2cd181,_0xd205dc){const _0x3eeb5b=_0x3cb43d;for(let _0x335856 of _0x567d82){let _0x573484=_0x335856[0x0],_0x2820fa=_0x573484[_0x3eeb5b(0x1f8)]('BIRT')?'BIRT':_0x573484[_0x3eeb5b(0x1f8)](_0x3eeb5b(0x205))?_0x3eeb5b(0x205):'MARR',_0x58f1a3,_0x3c975c=new F(),_0x5ceb27=new g(),_0x5e7e3d=new Map(),_0x2c1a0b=[];for(let _0x516eef=0x1;_0x516eef<_0x335856[_0x3eeb5b(0x246)];_0x516eef++){let _0x43d15d=_0x335856[_0x516eef],_0x32e490=P(_0x43d15d);if(!_0x32e490)continue;let {tag:_0x3776af,value:_0x51920b}=_0x32e490;switch(_0x3776af){case _0x3eeb5b(0x2a1):{let _0xf156a=_0x51920b;_0xf156a!=='inconnue'&&(_0x58f1a3=new S(_0xf156a));break;}case'PLAC':{let _0x3db490=_0x51920b;_0x3c975c[_0x3eeb5b(0x2f4)](_0x3db490);break;}case _0x3eeb5b(0x226):case _0x3eeb5b(0x265):{let _0x1c320d=_0x51920b;_0x2c1a0b[_0x3eeb5b(0x29a)](Number(_0x1c320d));break;}case'FILE':{let _0x5f20a3=_0x51920b[_0x3eeb5b(0x2bd)](),_0x4a02f8=_0xd205dc[_0x3eeb5b(0x2b1)](_0x5f20a3),_0x49d40c=new E(_0x4a02f8);_0x49d40c[_0x3eeb5b(0x333)]=_0x5f20a3,_0x5ceb27[_0x3eeb5b(0x274)][_0x3eeb5b(0x29a)](_0x49d40c),_0x5e7e3d[_0x3eeb5b(0x282)](_0x5f20a3,_0x49d40c);break;}default:break;}_0x2c1a0b[_0x3eeb5b(0x246)]===0x2&&_0x3c975c[_0x3eeb5b(0x303)]['addCoordinates'](_0x2c1a0b);}if(_0x58f1a3||_0x3c975c){let _0x297b83=new C(_0x2820fa,_0x58f1a3,_0x3c975c,[],_0x5ceb27,_0x5e7e3d);_0x297b83[_0x3eeb5b(0x31f)](_0x2cd181),this['add'](_0x297b83);}}}},v=class{constructor(){const _0x2096b0=_0x3cb43d;a(this,'INDIS',[]),a(this,'type'),a(this,_0x2096b0(0x2d3));}[_0x3cb43d(0x289)](_0x1a5a2e){const _0x18fd22=_0x3cb43d;_0x1a5a2e?.[_0x18fd22(0x246)]>0x0&&(this['lines']=_0x1a5a2e);}[_0x3cb43d(0x29f)](){const _0x3953be=_0x3cb43d;this[_0x3953be(0x2d3)]=[];}['updateType'](_0x346331){this['type']=_0x346331;}['addIndis'](_0xda1810){this['INDIS']=_0xda1810;}},b=class{constructor(){const _0xfa1ab0=_0x3cb43d;a(this,_0xfa1ab0(0x25f),[]);}[_0x3cb43d(0x2c7)](_0x4da40f){const _0x110a3a=_0x3cb43d;this[_0x110a3a(0x25f)][_0x110a3a(0x29a)](_0x4da40f);}['updateFromIndex'](_0x437ac0,_0x1d90f4){const _0xcf4b23=_0x3cb43d;this[_0xcf4b23(0x25f)][_0x1d90f4]=_0x437ac0;}['removeFromIndex'](_0x266caa){const _0x53ded7=_0x3cb43d;let _0x1408c8=this[_0x53ded7(0x25f)]['findIndex']((_0x2e985f,_0x422e1f)=>_0x422e1f===_0x266caa);_0x1408c8>=0x0&&this[_0x53ded7(0x25f)]['splice'](_0x1408c8,0x1);}['removeAll'](){this['list']=[];}},D=(_0xc1e799=>(_0xc1e799['M']='M',_0xc1e799['F']='F',_0xc1e799))(D||{}),R=class{constructor(_0x42c9e4,_0x37605e,_0x4daed4,_0xd8c6dc,_0xb96c68,_0x6bee83,_0x1cbd02,_0x9bd4ab,_0x46f759,_0x161f1b){const _0x563c02=_0x3cb43d;a(this,_0x563c02(0x22c)),a(this,'INDI'),a(this,'SEX'),a(this,'firstnames'),a(this,_0x563c02(0x340)),a(this,_0x563c02(0x305)),a(this,'FAMS',[]),a(this,_0x563c02(0x34f),new Map()),a(this,_0x563c02(0x298),new g()),a(this,_0x563c02(0x237),new M()),a(this,'notes',new b()),(this[_0x563c02(0x25c)]=_0x1cbd02,this['SEX']=_0x37605e,this[_0x563c02(0x305)]=_0xb96c68,this[_0x563c02(0x242)]=_0x6bee83??[],this['sosa']=_0x42c9e4,this['firstnames']=_0x4daed4??[],this['lastname']=_0xd8c6dc??'',_0x9bd4ab&&_0x9bd4ab[_0x563c02(0x274)][_0x563c02(0x246)]>0x0&&(this['multimediaFiles']=_0x9bd4ab),_0x161f1b&&_0x161f1b['list']['length']>0x0&&(this[_0x563c02(0x237)]=_0x161f1b));}get[_0x3cb43d(0x274)](){const _0x37d31f=_0x3cb43d;return Array['from'](this[_0x37d31f(0x34f)][_0x37d31f(0x27d)]());}get['keysFiles'](){const _0x30d96e=_0x3cb43d;return Array['from'](this[_0x30d96e(0x34f)]['keys']());}[_0x3cb43d(0x26f)](_0xaeb939,_0x5d8b2b,_0xbd7f74,_0x4b34b3){const _0xf74ab1=_0x3cb43d;let _0x65c88c=_0xaeb939[_0xf74ab1(0x29d)](_0x4890cc=>_0x4890cc[_0xf74ab1(0x249)](/[\n\r]+/g,''));_0x65c88c[_0xf74ab1(0x321)](_0xf13e30=>{this['parsePersonLine'](_0xf13e30,_0xbd7f74,_0x4b34b3);}),this[_0xf74ab1(0x25a)](_0x65c88c);let _0x3c5611=new B();_0x3c5611[_0xf74ab1(0x1fd)](_0x65c88c,[this['INDI']],_0xbd7f74),this['FAMS']?.[_0xf74ab1(0x246)]>0x0&&_0x5d8b2b&&this['FAMS'][_0xf74ab1(0x321)](_0x5380a4=>{const _0x1d2c5d=_0xf74ab1;let _0x419e26=_0x5d8b2b[_0x1d2c5d(0x2b1)](_0x5380a4);_0x3c5611[_0x1d2c5d(0x1fd)](_0x419e26,[],_0xbd7f74);}),this[_0xf74ab1(0x237)]=_0x3c5611,this[_0xf74ab1(0x237)][_0xf74ab1(0x279)]();}[_0x3cb43d(0x252)](_0x483743,_0x52cbee,_0x4d3e3c){const _0xd116d9=_0x3cb43d;let _0x4f917c=P(_0x483743);if(!_0x4f917c)return;let {level:_0x1e5bba,tag:_0x44d8f4,value:_0x168f75}=_0x4f917c;if(_0x1e5bba==='0'&&_0x44d8f4[_0xd116d9(0x26b)]('@I')){this[_0xd116d9(0x2f5)](_0x483743);return;}switch(_0x44d8f4){case'SEX':this['createSexFromValue'](_0x168f75);break;case'FAMC':this[_0xd116d9(0x201)](_0x168f75);break;case _0xd116d9(0x242):this[_0xd116d9(0x2a9)](_0x168f75);break;case'NOTE':this['addNoteFromGedcom'](_0x168f75,_0x4d3e3c);break;case _0xd116d9(0x20b):this[_0xd116d9(0x22e)](_0x168f75,_0x52cbee);break;default:break;}}['createIndiFromZeroLine'](_0x36f79a){const _0x3aef8c=_0x3cb43d;let _0x192b3a=_0x36f79a[_0x3aef8c(0x30a)]('@I');if(_0x192b3a<0x0)return;let _0x4a01cb=_0x36f79a[_0x3aef8c(0x30a)]('@',_0x192b3a+0x2);if(_0x4a01cb<=_0x192b3a||!_0x36f79a['includes'](_0x3aef8c(0x25c),_0x4a01cb))return;let _0x6ffa15=_0x36f79a[_0x3aef8c(0x2c8)](_0x192b3a+0x2,_0x4a01cb);/^\d+$/[_0x3aef8c(0x32f)](_0x6ffa15)&&(this['INDI']=Number(_0x6ffa15));}['createSexFromValue'](_0x27ceb2){const _0x40fcf4=_0x3cb43d;let _0x5c0832=_0x27ceb2[_0x40fcf4(0x2bd)]();(_0x5c0832==='M'||_0x5c0832==='F')&&(this['SEX']=_0x5c0832);}[_0x3cb43d(0x201)](_0xefcda){const _0x1e2dc5=_0x3cb43d;let _0x16e64b=_0xefcda['trim'](),_0xcd208=/^@F(\d+)@$/['exec'](_0x16e64b);_0xcd208?.[0x1]&&(this[_0x1e2dc5(0x305)]=Number(_0xcd208[0x1]));}[_0x3cb43d(0x2a9)](_0x2588b5){const _0x3e2820=_0x3cb43d;let _0x2d411a=_0x2588b5['trim'](),_0x3bb6cb=/^@F(\d+)@$/[_0x3e2820(0x291)](_0x2d411a);_0x3bb6cb?.[0x1]&&this['FAMS'][_0x3e2820(0x29a)](Number(_0x3bb6cb[0x1]));}[_0x3cb43d(0x22e)](_0x2b042d,_0x1729d3){const _0x4c7b80=_0x3cb43d;if(!_0x1729d3?.[_0x4c7b80(0x2b8)]||!_0x2b042d)return;let _0x1db71a=_0x2b042d[_0x4c7b80(0x2bd)](),_0x4b1217=new E(_0x1729d3[_0x4c7b80(0x2b1)](_0x1db71a));_0x4b1217['relativePath']=_0x1db71a,this['multimediaFiles'][_0x4c7b80(0x274)]['push'](_0x4b1217),this[_0x4c7b80(0x34f)][_0x4c7b80(0x282)](_0x1db71a,_0x4b1217);}[_0x3cb43d(0x20e)](_0x25c48e,_0x9e4100){const _0x12e248=_0x3cb43d;let _0x331eab=_0x25c48e['trim']();if(!_0x331eab)return;let _0x3ca4e3=/^@N(\d+)@$/[_0x12e248(0x291)](_0x331eab);if(_0x3ca4e3?.[0x1]&&_0x9e4100?.['size']){let _0x421247=Number(_0x3ca4e3[0x1]),_0x5822f8=_0x9e4100['get'](_0x421247);if(!_0x5822f8||_0x5822f8[_0x12e248(0x246)]===0x0)return;let _0x1fec96=new v();_0x1fec96['updateLines']([..._0x5822f8]),this[_0x12e248(0x25c)]&&_0x1fec96['addIndis']([this['INDI']]),this[_0x12e248(0x20f)][_0x12e248(0x2c7)](_0x1fec96);return;}let _0xdd15b6=new v();_0xdd15b6['updateLines']([_0x331eab]),this[_0x12e248(0x25c)]&&_0xdd15b6[_0x12e248(0x31f)]([this['INDI']]),this[_0x12e248(0x20f)]['addNote'](_0xdd15b6);}['addMultimedia'](_0x4b1a4f){const _0x2835ee=_0x3cb43d;if(!this['INDI']||!_0x4b1a4f?.['file'])return;let _0x1afbab=''+this['INDI'],_0x3339e5=this['mediaRelativePathsInUse'](),_0x387278=O(_0x1afbab,_0x4b1a4f[_0x2835ee(0x2cc)][_0x2835ee(0x296)],_0x3339e5);_0x4b1a4f[_0x2835ee(0x333)]=_0x387278,this['multimediaFiles']['files']['push'](_0x4b1a4f),this[_0x2835ee(0x34f)]['set'](_0x387278,_0x4b1a4f);}[_0x3cb43d(0x209)](_0x1b1331){const _0x7daf2f=_0x3cb43d;this[_0x7daf2f(0x34f)][_0x7daf2f(0x2c9)](_0x1b1331);let _0x321cc8=this[_0x7daf2f(0x298)][_0x7daf2f(0x274)]['findIndex'](_0x27386d=>_0x27386d['relativePath']===_0x1b1331);_0x321cc8>=0x0&&this[_0x7daf2f(0x298)]['files'][_0x7daf2f(0x299)](_0x321cc8,0x1);}[_0x3cb43d(0x324)](){const _0x51d9a8=_0x3cb43d;return[...this[_0x51d9a8(0x34f)][_0x51d9a8(0x276)](),...this[_0x51d9a8(0x298)][_0x51d9a8(0x274)][_0x51d9a8(0x29d)](_0x453ac6=>_0x453ac6['relativePath'])[_0x51d9a8(0x2a4)](_0x225541=>!!_0x225541)];}[_0x3cb43d(0x25a)](_0x2bdbbb){const _0x4fb94f=_0x3cb43d;let _0x3e7ea4;for(let _0x41c7b3 of _0x2bdbbb){let _0x5cd50d=P(_0x41c7b3);if(_0x5cd50d?.[_0x4fb94f(0x337)]==='NAME'){_0x3e7ea4=_0x5cd50d[_0x4fb94f(0x21d)];break;}}if(!_0x3e7ea4)return;let _0x5b571d=/\/([^/]+)\//[_0x4fb94f(0x291)](_0x3e7ea4);this[_0x4fb94f(0x207)]=(_0x5b571d?_0x3e7ea4[_0x4fb94f(0x249)](_0x5b571d[0x0],''):_0x3e7ea4)[_0x4fb94f(0x249)](/"/g,'')[_0x4fb94f(0x249)](/\/+/g,'')['trim']()[_0x4fb94f(0x346)](/\s+/)[_0x4fb94f(0x2a4)](Boolean),this[_0x4fb94f(0x340)]=_0x5b571d?.[0x1]?.[_0x4fb94f(0x2bd)]()[_0x4fb94f(0x266)]()??'';}},te=K(require('jszip'),0x1),ee='\x0a';function ve(_0x5cf46f){const _0x319eb3=_0x3cb43d;if(!_0x5cf46f?.[_0x319eb3(0x246)])return'';let _0x560741='',_0x5e91e2=!0x1;for(let _0x4da56d of _0x5cf46f){let _0x437196=P(_0x4da56d['trimStart']());if(!_0x437196)continue;let {level:_0x4bde7d,tag:_0x587ca5,value:_0x1b27e8}=_0x437196;if(_0x4bde7d==='0'&&_0x1b27e8===_0x319eb3(0x232)&&_0x587ca5[_0x319eb3(0x26b)]('@N')&&_0x587ca5[_0x319eb3(0x2ef)]('@')){_0x5e91e2=!0x0;continue;}if(_0x587ca5===_0x319eb3(0x232)){_0x560741=_0x1b27e8,_0x5e91e2=!0x0;continue;}if(_0x587ca5==='CONC'){_0x560741+=_0x1b27e8,_0x5e91e2=!0x0;continue;}if(_0x587ca5===_0x319eb3(0x2c3)){_0x560741+=(_0x560741?'\x0a':'')+_0x1b27e8,_0x5e91e2=!0x0;continue;}}return _0x5e91e2?_0x560741[_0x319eb3(0x249)](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a'):_0x5cf46f[_0x319eb3(0x2a4)](_0x550907=>_0x550907['length']>0x0)['join']('\x0a')['replace'](/\r\n/g,'\x0a')[_0x319eb3(0x249)](/\r/g,'\x0a');}function Se(_0x363709,_0x144c2d){const _0x2186b1=_0x3cb43d;let _0x352a45=ve(_0x363709['lines']??[]);if(!_0x352a45['trim']())return'';let _0xe7a443=_0x144c2d+0x1,_0x5dccc2=_0x352a45['split']('\x0a');for(;_0x5dccc2[_0x2186b1(0x246)]>0x0&&_0x5dccc2[0x0]==='';)_0x5dccc2[_0x2186b1(0x2e3)]();if(_0x5dccc2[_0x2186b1(0x246)]===0x0)return'';let [_0xb65d98,..._0x56c3bc]=_0x5dccc2,_0x2b38d3=_0x144c2d+_0x2186b1(0x2ce)+_0xb65d98+ee;return _0x56c3bc[_0x2186b1(0x246)]===0x0?_0x2b38d3:_0x2b38d3+_0x56c3bc[_0x2186b1(0x29d)](_0x2502ac=>_0xe7a443+_0x2186b1(0x325)+_0x2502ac+ee)[_0x2186b1(0x2b3)]('');}function V(_0x339014,_0x2cf82c){const _0x510e63=_0x3cb43d;return _0x339014?.[_0x510e63(0x25f)]?.[_0x510e63(0x246)]?_0x339014['list'][_0x510e63(0x29d)](_0x41a1bc=>Se(_0x41a1bc,_0x2cf82c))[_0x510e63(0x2b3)](''):'';}var d='\x0a',se=(_0x4cade0,_0x5977e0,_0x2c484b)=>{const _0x3eaf6b=_0x3cb43d;let _0x288d31=_0x5977e0[_0x3eaf6b(0x333)]?.[_0x3eaf6b(0x2bd)]();if(_0x288d31&&_0x288d31['includes']('/'))return _0x288d31;let _0x10c033=_0x288d31||_0x5977e0['file'][_0x3eaf6b(0x296)];return _0x2c484b['length']===0x1?_0x2c484b[0x0]+'/'+_0x4cade0['type']+'/'+_0x10c033:_0x3eaf6b(0x2ab)+(_0x2c484b['length']>0x1?_0x2c484b['join']('-'):_0x3eaf6b(0x2e6))+'/'+_0x4cade0['type']+'/'+_0x10c033;},ie=(_0x549a9b,_0x13e323)=>{const _0x23f71b=_0x3cb43d;let _0x4c39f0=URL[_0x23f71b(0x230)](_0x549a9b),_0x28d704=document[_0x23f71b(0x30b)]('a');_0x28d704[_0x23f71b(0x221)]=_0x4c39f0,_0x28d704[_0x23f71b(0x272)]=_0x13e323,_0x28d704[_0x23f71b(0x2e9)](),setTimeout(()=>URL[_0x23f71b(0x257)](_0x4c39f0),0x0);},G=class{constructor(_0x5ce995,_0x4536e5,_0x71e008){const _0x21456e=_0x3cb43d;a(this,_0x21456e(0x262)),a(this,_0x21456e(0x348)),a(this,_0x21456e(0x33a),Date['now']()),a(this,'haveFiles',!0x1);let _0x5c858e=_0x5ce995?.[_0x21456e(0x2bd)]();this['title']=_0x5c858e?_0x5c858e+'_gedcom-ts_'+this['onCreate']:'gedcom-ts_'+this['onCreate'],this[_0x21456e(0x348)]=_0x4536e5,this['haveFiles']=_0x71e008;}get[_0x3cb43d(0x2bf)](){const _0x2953ff=_0x3cb43d;let _0x2e6311=new Date(),_0x59e1cc={'day':_0x2953ff(0x215),'month':_0x2953ff(0x215),'year':'numeric'};return _0x2953ff(0x350)+d+_0x2953ff(0x301)+d+_0x2953ff(0x344)+_0x2e6311['toLocaleDateString'](_0x2953ff(0x2dc),_0x59e1cc)+d+_0x2953ff(0x335)+_0x2e6311['toLocaleTimeString'](_0x2953ff(0x2dc))+d+'1\x20FILE\x20'+this[_0x2953ff(0x262)]+d+_0x2953ff(0x280)+d+_0x2953ff(0x250)+d+'1\x20CHAR\x20UTF-8'+d;}get['contentGedcom'](){const _0x12c543=_0x3cb43d;return this[_0x12c543(0x348)]['map'](_0x2003c3=>new Y(_0x2003c3,this['haveFiles'])[_0x12c543(0x268)]())[_0x12c543(0x2b3)]('')+new j(this['persons'])[_0x12c543(0x2d3)]();}['gedcomBlob'](){const _0x167615=_0x3cb43d;return new Blob([''+this['beginGedcom']+this[_0x167615(0x353)]+'TRLR'],{'type':'application/x-gedcom'});}},U=class extends G{constructor(..._0xfe0a11){const _0x3611d6=_0x3cb43d;let [_0x370f6e,_0x1febce]=typeof _0xfe0a11[0x0]=='string'?[_0xfe0a11[0x0],_0xfe0a11[0x1]]:[void 0x0,_0xfe0a11[0x0]];super(_0x370f6e,_0x1febce,!0x0),a(this,_0x3611d6(0x2dd)),this[_0x3611d6(0x2dd)]=new te[(_0x3611d6(0x29e))]();}async['download'](){const _0x3943e6=_0x3cb43d;this[_0x3943e6(0x2dd)][_0x3943e6(0x2cc)](this['title']+_0x3943e6(0x26e),this['gedcomBlob']()),this['persons'][_0x3943e6(0x321)](_0x32a417=>{const _0x13220a=_0x3943e6;let _0x5ac65f=this[_0x13220a(0x1fa)](_0x32a417);this[_0x13220a(0x20a)](_0x32a417[_0x13220a(0x274)],_0x32a417['multimediaFiles'][_0x13220a(0x274)])[_0x13220a(0x321)](_0x1a7b43=>{let _0x39c5fc=this['resolveZipPath'](_0x1a7b43,_0x5ac65f);this['zipFile'](_0x1a7b43,_0x39c5fc);}),_0x32a417['acts'][_0x13220a(0x25f)][_0x13220a(0x321)](_0x291ee3=>{const _0x20cdea=_0x13220a;let _0x1cfee6=this['resolveActIndis'](_0x5ac65f,_0x291ee3);this[_0x20cdea(0x20a)](_0x291ee3[_0x20cdea(0x274)],_0x291ee3['multimediaFiles']['files'])['forEach'](_0x4cd850=>{let _0x393cb5=se(_0x291ee3,_0x4cd850,_0x1cfee6);this['zipFile'](_0x4cd850,_0x393cb5);});});}),this[_0x3943e6(0x2dd)][_0x3943e6(0x2b6)]({'type':_0x3943e6(0x30c),'compression':_0x3943e6(0x23b),'compressionOptions':{'level':0x9}})['then'](_0x3bff70=>{ie(_0x3bff70,this['title']+'.zip');});}[_0x3cb43d(0x20a)](..._0x225a70){const _0x134371=_0x3cb43d;let _0x57a7cc=new Map();for(let _0x3a870c of _0x225a70)if(_0x3a870c?.['length'])for(let _0x31d563 of _0x3a870c){if(!_0x31d563?.['file'])continue;let _0x4a2e16=_0x31d563['relativePath']||_0x31d563['file']['name'];_0x57a7cc['has'](_0x4a2e16)||_0x57a7cc[_0x134371(0x282)](_0x4a2e16,_0x31d563);}return Array[_0x134371(0x304)](_0x57a7cc[_0x134371(0x27d)]());}['resolvePersonIndi'](_0x3f203a){const _0x31f509=_0x3cb43d;if(typeof _0x3f203a[_0x31f509(0x25c)]==_0x31f509(0x285))return''+_0x3f203a[_0x31f509(0x25c)];for(let _0x3aa665 of _0x3f203a['acts'][_0x31f509(0x25f)]){let _0x1b0a1b=_0x3aa665['INDIS']['find'](_0x350161=>typeof _0x350161=='number');if(_0x1b0a1b!==void 0x0)return''+_0x1b0a1b;}return'';}[_0x3cb43d(0x32e)](_0x38b845,_0x1955a1){const _0x7fc778=_0x3cb43d;let _0x105737=new Set();return _0x38b845&&_0x105737[_0x7fc778(0x259)](_0x38b845),_0x1955a1['INDIS'][_0x7fc778(0x2a4)](_0x459e57=>typeof _0x459e57=='number')['forEach'](_0x4207b6=>_0x105737[_0x7fc778(0x259)](''+_0x4207b6)),Array['from'](_0x105737);}[_0x3cb43d(0x1fb)](_0x37a890,_0x387ec1){const _0x612b61=_0x3cb43d;let _0xf35eed=_0x387ec1[_0x612b61(0x249)](/\/+$/,''),_0x549aad=_0x37a890[_0x612b61(0x333)]?.[_0x612b61(0x2bd)]();if(_0x549aad&&_0x549aad['includes']('/'))return _0x549aad;let _0x16fca6=_0x549aad||_0x37a890[_0x612b61(0x2cc)][_0x612b61(0x296)];return _0xf35eed?_0xf35eed+'/'+_0x16fca6:_0x16fca6;}['zipFile'](_0x45ff6b,_0x54682c){const _0x1b87f1=_0x3cb43d;let {file:_0x2382a8,relativePath:_0x373d78}=_0x45ff6b;_0x2382a8&&this['zip'][_0x1b87f1(0x2cc)](_0x54682c||_0x373d78||_0x2382a8['name'],_0x2382a8);}},k=class extends G{constructor(..._0xe4bf6f){let [_0x485f45,_0x5af0f1]=typeof _0xe4bf6f[0x0]=='string'?[_0xe4bf6f[0x0],_0xe4bf6f[0x1]]:[void 0x0,_0xe4bf6f[0x0]];super(_0x485f45,_0x5af0f1,!0x1);}[_0x3cb43d(0x272)](){const _0xb45d16=_0x3cb43d;ie(this['gedcomBlob'](),this['title']+_0xb45d16(0x26e));}},j=class{constructor(_0xf3599f){const _0x3fdc03=_0x3cb43d;a(this,'informationFamilies',new Map()),_0xf3599f[_0x3fdc03(0x321)](_0x15fa33=>{const _0x6be2a7=_0x3fdc03;let {FAMS:_0x40e9ad,FAMC:_0x2353b7,INDI:_0x8d0e36}=_0x15fa33;_0x40e9ad[_0x6be2a7(0x246)]>0x0&&this[_0x6be2a7(0x317)]('1\x20'+(_0x15fa33['SEX']==='M'?_0x6be2a7(0x22a):'WIFE')+_0x6be2a7(0x293)+_0x8d0e36+'@\x0a',_0x40e9ad),_0x2353b7&&this[_0x6be2a7(0x317)](_0x6be2a7(0x34e)+_0x8d0e36+'@\x0a',[_0x2353b7]);});}['lines'](){const _0x115c3b=_0x3cb43d;let _0x1d5ff5=[];for(let [_0x4c8c19,_0x37f055]of this['informationFamilies']['entries']())_0x1d5ff5[_0x115c3b(0x29a)](_0x115c3b(0x31e)+_0x4c8c19+_0x115c3b(0x338),_0x37f055['join'](''));return _0x1d5ff5['join']('');}[_0x3cb43d(0x317)](_0x29d4cd,_0x1e16b1){const _0x5a6ecc=_0x3cb43d;_0x1e16b1[_0x5a6ecc(0x321)](_0x2d23b6=>{const _0x4e9ba7=_0x5a6ecc;if(this[_0x4e9ba7(0x211)][_0x4e9ba7(0x33b)](_0x2d23b6)){let _0x2ef7de=this[_0x4e9ba7(0x211)][_0x4e9ba7(0x2b1)](_0x2d23b6);_0x2ef7de[_0x4e9ba7(0x29a)](_0x29d4cd),this[_0x4e9ba7(0x211)]['set'](_0x2d23b6,_0x2ef7de);}else this[_0x4e9ba7(0x211)]['set'](_0x2d23b6,[_0x29d4cd]);});}},Y=class{constructor(_0x29c5d4,_0x2a0781){const _0x4245c3=_0x3cb43d;a(this,'INDI'),a(this,_0x4245c3(0x2b4)),a(this,'SEX',''),a(this,'FAMS'),a(this,'FAMC'),a(this,_0x4245c3(0x315),''),a(this,'ACTS',''),a(this,_0x4245c3(0x2d7),''),(this['INDI']=this['getIndi'](_0x29c5d4),this['NAME']=this['getName'](_0x29c5d4),this[_0x4245c3(0x255)]=this['getSex'](_0x29c5d4),this[_0x4245c3(0x242)]=this['getFams'](_0x29c5d4),this[_0x4245c3(0x305)]=this[_0x4245c3(0x238)](_0x29c5d4),_0x2a0781&&_0x29c5d4[_0x4245c3(0x298)][_0x4245c3(0x274)][_0x4245c3(0x246)]>0x0&&(this['FILES']=this['getFiles'](_0x29c5d4)),_0x29c5d4[_0x4245c3(0x237)][_0x4245c3(0x25f)]?.[_0x4245c3(0x246)]>0x0&&(this[_0x4245c3(0x34a)]=new W(_0x29c5d4)['line']()),_0x29c5d4[_0x4245c3(0x20f)][_0x4245c3(0x25f)]['length']>0x0&&(this['NOTES']=V(_0x29c5d4['notes'],0x1)));}[_0x3cb43d(0x268)](){const _0x5503b0=_0x3cb43d;return this['INDI']+this[_0x5503b0(0x2b4)]+this['SEX']+this[_0x5503b0(0x315)]+this[_0x5503b0(0x34a)]+this['NOTES']+this[_0x5503b0(0x242)]+this['FAMC'];}[_0x3cb43d(0x311)](_0x13f1ee,_0x5bbef0,_0x500d85='1'){const _0x245750=_0x3cb43d;return _0x5bbef0?.[_0x245750(0x29d)](_0x60d824=>_0x500d85+_0x245750(0x310)+_0x13f1ee+'/'+_0x60d824['filename']+d)[_0x245750(0x2b3)]('')??'';}[_0x3cb43d(0x28c)](_0x298f95){const _0x5ba6f5=_0x3cb43d;return _0x5ba6f5(0x206)+_0x298f95[_0x5ba6f5(0x25c)]+_0x5ba6f5(0x25e)+d;}[_0x3cb43d(0x32c)](_0x4521a4){const _0x819463=_0x3cb43d;let _0x7639b1=_0x4521a4[_0x819463(0x207)]?.['length']>0x0?[..._0x4521a4['firstnames']]:[],_0x55fcd7=_0x4521a4[_0x819463(0x340)]??'';if(_0x7639b1||_0x55fcd7){let _0x5837a3=_0x819463(0x318);return _0x7639b1&&_0x7639b1[_0x819463(0x246)]>0x0&&(_0x7639b1[0x0]='\x22'+_0x7639b1[0x0]+'\x22',_0x5837a3+='\x20'+_0x7639b1['join']('\x20')),_0x55fcd7&&_0x55fcd7[_0x819463(0x246)]>0x0&&(_0x5837a3+='\x20/'+_0x55fcd7+'/'),_0x5837a3+d;}return'';}['getSex'](_0x5add2f){const _0x31ef59=_0x3cb43d;return _0x31ef59(0x2aa)+_0x5add2f['SEX']+d;}['getFiles'](_0x4fd4ed){const _0x494ff4=_0x3cb43d;return _0x4fd4ed[_0x494ff4(0x298)]?.[_0x494ff4(0x274)][_0x494ff4(0x29d)](_0x3c5d31=>_0x494ff4(0x351)+_0x3c5d31[_0x494ff4(0x333)]+d)[_0x494ff4(0x2b3)]('')??'';}[_0x3cb43d(0x322)](_0x1a8f8a){const _0x139ef7=_0x3cb43d;return _0x1a8f8a['FAMS'][_0x139ef7(0x2a4)](_0x4e22c3=>_0x4e22c3>=0x0)['map'](_0x12a4e1=>'1\x20FAMS\x20@F'+_0x12a4e1+'@'+d)['join']('');}[_0x3cb43d(0x238)](_0x2c002b){const _0x550382=_0x3cb43d;return _0x2c002b['FAMC']?_0x550382(0x2f7)+_0x2c002b[_0x550382(0x305)]+'@'+d:'';}},z=class o{constructor(_0xd92f8c,_0x17972f){const _0x24d30e=_0x3cb43d;a(this,_0x24d30e(0x288)),a(this,_0x24d30e(0x2a7)),a(this,'DATE'),a(this,'NOTES'),a(this,'FILES'),a(this,_0x24d30e(0x21e)),(this['ownerIndi']=_0x17972f,this['TYPE']=this[_0x24d30e(0x1f4)](_0xd92f8c),this['PLACE']=this[_0x24d30e(0x2e5)](_0xd92f8c),this[_0x24d30e(0x2a1)]=this['getDate'](_0xd92f8c),this['NOTES']=V(_0xd92f8c[_0x24d30e(0x20f)],0x2),this['FILES']=this['getFile'](_0xd92f8c));}static['formatDate'](_0x69831){const _0xc49019=_0x3cb43d;return _0x69831['date']?''+(_0x69831[_0xc49019(0x2f3)]?_0x69831[_0xc49019(0x2f3)]+'\x20':'')+(_0x69831['month']?_0x69831['month']+'\x20':'')+(_0x69831[_0xc49019(0x239)]?''+_0x69831['year']:''):'';}['line'](){const _0xc170ad=_0x3cb43d;return this[_0xc170ad(0x288)]+this['DATE']+this[_0xc170ad(0x2a7)]+this['NOTES']+this[_0xc170ad(0x315)];}[_0x3cb43d(0x240)](_0x1c802a){const _0x506e85=_0x3cb43d;let _0x233280=new Map();return[..._0x1c802a[_0x506e85(0x274)],..._0x1c802a[_0x506e85(0x298)][_0x506e85(0x274)]][_0x506e85(0x321)](_0x384d35=>{const _0x4c88f3=_0x506e85;if(!_0x384d35?.[_0x4c88f3(0x2cc)])return;let _0x10d604=_0x384d35[_0x4c88f3(0x333)]||_0x384d35['file'][_0x4c88f3(0x296)];_0x233280[_0x4c88f3(0x33b)](_0x10d604)||_0x233280[_0x4c88f3(0x282)](_0x10d604,_0x384d35);}),Array[_0x506e85(0x304)](_0x233280['values']())[_0x506e85(0x29d)](_0x4158e0=>{const _0x339ff4=_0x506e85;let _0x5b2e72=new Set();return typeof this[_0x339ff4(0x21e)]=='number'&&_0x5b2e72[_0x339ff4(0x259)](''+this[_0x339ff4(0x21e)]),_0x1c802a['INDIS']['filter'](_0x52dcd0=>typeof _0x52dcd0=='number')[_0x339ff4(0x321)](_0x3af24a=>_0x5b2e72[_0x339ff4(0x259)](''+_0x3af24a)),_0x339ff4(0x32b)+se(_0x1c802a,_0x4158e0,Array[_0x339ff4(0x304)](_0x5b2e72))+d;})[_0x506e85(0x2b3)]('');}[_0x3cb43d(0x1f4)](_0x430347){return'1\x20'+_0x430347['type']+d;}['getDate'](_0x1bbd34){const _0x3b6dc4=_0x3cb43d;return _0x1bbd34?.[_0x3b6dc4(0x30f)]?.['date']?_0x3b6dc4(0x2ea)+o[_0x3b6dc4(0x33c)](_0x1bbd34[_0x3b6dc4(0x30f)])+d:'';}[_0x3cb43d(0x2e5)](_0x3468e3){const _0x11bc47=_0x3cb43d;if(!_0x3468e3[_0x11bc47(0x204)])return'';let {city:_0x3556df,coordinate:_0x1ee9f1}=_0x3468e3['place'];if(_0x3556df){let _0x1f077c='2\x20PLAC\x20'+_0x3468e3['place']['city']+d,_0x5d6e41='';return _0x1ee9f1[_0x11bc47(0x22b)]&&_0x1ee9f1['longitude']&&(_0x5d6e41=_0x11bc47(0x233)+d+'4\x20LATI\x20'+_0x1ee9f1[_0x11bc47(0x22b)]+d+_0x11bc47(0x287)+_0x1ee9f1['longitude']+d),_0x1f077c+_0x5d6e41;}return'';}},W=class{constructor(_0x10a812){const _0x49c0eb=_0x3cb43d;a(this,_0x49c0eb(0x237)),a(this,_0x49c0eb(0x25c)),(this[_0x49c0eb(0x237)]=_0x10a812[_0x49c0eb(0x237)]['list'],this['INDI']=_0x10a812[_0x49c0eb(0x25c)]);}[_0x3cb43d(0x268)](){const _0x14374f=_0x3cb43d;return this[_0x14374f(0x237)][_0x14374f(0x29d)](_0x3a0fbd=>new z(_0x3a0fbd,this['INDI'])[_0x14374f(0x268)]())[_0x14374f(0x2b3)]('');}},X=class{constructor(_0x18ee4e){const _0xa665ce=_0x3cb43d;a(this,_0xa665ce(0x2ec),[]),a(this,_0xa665ce(0x211),new Map()),a(this,_0xa665ce(0x314),new Map()),_0x18ee4e!==void 0x0&&this['ingestGedcomText'](_0x18ee4e);}[_0x3cb43d(0x342)](_0x3c741e){const _0x2f1b9e=_0x3cb43d;let _0x5ef007=_0x3c741e[_0x2f1b9e(0x346)]('\x0a')['map'](_0x5f05f5=>_0x5f05f5[_0x2f1b9e(0x249)](/\r$/,'')),_0x3740b7=[],_0x3a366a=()=>{const _0x4e06a7=_0x2f1b9e;_0x3740b7[_0x4e06a7(0x246)]!==0x0&&(this['ingestRecordBlock'](_0x3740b7['join']('\x0a')),_0x3740b7=[]);};for(let _0x37ea23 of _0x5ef007)_0x37ea23['startsWith']('0\x20')?(_0x3a366a(),_0x3740b7=[_0x37ea23]):_0x3740b7[_0x2f1b9e(0x246)]>0x0&&_0x3740b7['push'](_0x37ea23);_0x3a366a();}async['ingestGedcomFileStream'](_0xfe5844){const _0x31ca4a=_0x3cb43d;if(typeof _0xfe5844[_0x31ca4a(0x225)]!='function'||typeof TextDecoderStream>'u'){this['ingestGedcomText'](await _0xfe5844[_0x31ca4a(0x2f9)]());return;}let _0x287572=_0xfe5844[_0x31ca4a(0x225)]()[_0x31ca4a(0x2fc)](new TextDecoderStream())['getReader'](),_0xbce955='',_0x46c315=null,_0x20e22b=()=>{const _0x19c0c2=_0x31ca4a;if(!_0x46c315||_0x46c315[_0x19c0c2(0x246)]===0x0){_0x46c315=null;return;}let _0x57e849=_0x46c315[_0x19c0c2(0x2b3)]('\x0a');_0x46c315=null,this[_0x19c0c2(0x316)](_0x57e849);};for(;;){let {done:_0x5082af,value:_0x15c62c}=await _0x287572[_0x31ca4a(0x2b2)]();if(_0x15c62c){_0xbce955+=_0x15c62c;let _0x1de769=_0xbce955['indexOf']('\x0a');for(;_0x1de769!==-0x1;){let _0x21e866=_0xbce955['slice'](0x0,_0x1de769);_0xbce955=_0xbce955[_0x31ca4a(0x2c8)](_0x1de769+0x1),_0x1de769=_0xbce955[_0x31ca4a(0x30a)]('\x0a');let _0x389bf2=_0x21e866[_0x31ca4a(0x249)](/\r$/,'');_0x389bf2['startsWith']('0\x20')?(_0x20e22b(),_0x46c315=[_0x389bf2]):_0x46c315&&_0x46c315[_0x31ca4a(0x29a)](_0x389bf2);}}if(_0x5082af){if(_0xbce955['length']>0x0){let _0x357715=_0xbce955['replace'](/\r$/,'');_0x357715['startsWith']('0\x20')?(_0x20e22b(),_0x46c315=[_0x357715]):_0x46c315&&_0x46c315[_0x31ca4a(0x29a)](_0x357715);}_0x20e22b();break;}}}['ingestRecordBlock'](_0x147db0){const _0x4b0e76=_0x3cb43d;let _0x5eb77b=_0x147db0[_0x4b0e76(0x346)]('\x0a')[0x0]?.[_0x4b0e76(0x297)]()??'',_0x1ae0c7=_0x5eb77b[_0x4b0e76(0x26b)]('0\x20')?_0x5eb77b[_0x4b0e76(0x2c8)](0x2):_0x5eb77b;switch(''+_0x1ae0c7[0x0]+_0x1ae0c7[0x1]){case'@I':this[_0x4b0e76(0x2cd)](_0x147db0);break;case'@F':this[_0x4b0e76(0x2a6)](_0x147db0);break;case'@N':this['splitInformationNotes'](_0x147db0);break;case'@S':break;default:break;}}[_0x3cb43d(0x2cd)](_0x18bef9){const _0x178907=_0x3cb43d;this['informationPersons'][_0x178907(0x29a)](_0x18bef9[_0x178907(0x346)]('\x0a'));}['splitInformationFamilies'](_0x1a9a2){const _0x2fcbe2=_0x3cb43d;let _0x240b8d=this['extractXrefId'](_0x1a9a2,'@F');if(_0x240b8d===null)return;let _0x30cbff=_0x1a9a2[_0x2fcbe2(0x346)]('\x0a')['slice'](0x1);this[_0x2fcbe2(0x211)][_0x2fcbe2(0x282)](_0x240b8d,_0x30cbff);}['splitInformationNotes'](_0x4d5e37){const _0x49738a=_0x3cb43d;let _0x40a557=this[_0x49738a(0x200)](_0x4d5e37,'@N');if(_0x40a557===null)return;let _0x72b75d=_0x4d5e37['split']('\x0a')['slice'](0x1);this[_0x49738a(0x314)][_0x49738a(0x282)](_0x40a557,_0x72b75d);}[_0x3cb43d(0x200)](_0x196111,_0x38d1d4){const _0x39a042=_0x3cb43d;let _0x56311d=_0x196111[_0x39a042(0x30a)](_0x38d1d4);if(_0x56311d<0x0)return null;let _0x52e397=_0x196111['indexOf']('@',_0x56311d+_0x38d1d4[_0x39a042(0x246)]);if(_0x52e397<=_0x56311d)return null;let _0x1cbd45=_0x196111[_0x39a042(0x2c8)](_0x56311d+_0x38d1d4['length'],_0x52e397);return/^\d+$/[_0x39a042(0x32f)](_0x1cbd45)?Number(_0x1cbd45):null;}},ne=_0x39a309=>{const _0x4094e7=_0x3cb43d;let _0x2c2cb0=_0x39a309['map'](_0x5cc074=>_0x5cc074[_0x4094e7(0x25c)])[_0x4094e7(0x2ee)]((_0x1c83b7,_0x5b49af)=>_0x1c83b7-_0x5b49af);return _0x2c2cb0[_0x2c2cb0[_0x4094e7(0x246)]-0x1]+0x1;},x=class o extends X{constructor(_0x3cd4cf,_0x1e3189,_0x53aa0d,_0x7c877e){const _0x2d9447=_0x3cb43d;super(_0x3cd4cf),a(this,'persons'),a(this,_0x2d9447(0x253)),a(this,_0x2d9447(0x2c2)),a(this,_0x2d9447(0x20d)),a(this,_0x2d9447(0x29c)),a(this,'placesMap'),(this[_0x2d9447(0x29c)]=_0x1e3189??new Map(),this['placesMap']=_0x53aa0d??new Map(),this[_0x2d9447(0x253)]=_0x7c877e??new Map(),_0x3cd4cf!==void 0x0&&this['finalizeAfterParse']());}static async['fromGedcomFile'](_0x254824,_0x38396d,_0x145652,_0x39bb9d){const _0x5ac0ba=_0x3cb43d;let _0x2d9e74=new o(void 0x0,_0x38396d,_0x145652,_0x39bb9d);return await _0x2d9e74[_0x5ac0ba(0x1fc)](_0x254824),_0x2d9e74[_0x5ac0ba(0x2fd)](),_0x2d9e74;}['finalizeAfterParse'](){const _0x5d52dd=_0x3cb43d;this['persons']=this['createPersons'](),this[_0x5d52dd(0x348)]?.['length']>0x0&&this['persons'][_0x5d52dd(0x321)](_0x4a6895=>{const _0x228da8=_0x5d52dd;let _0x3107e2=_0x4a6895['acts'][_0x228da8(0x25f)];_0x3107e2[_0x228da8(0x246)]>0x0&&_0x3107e2['forEach'](_0x2ed9de=>{const _0xd45e07=_0x228da8;if(this['placesMap'][_0xd45e07(0x33b)](_0x2ed9de['place']['city'])){let {latitude:_0x3e24c0,longitude:_0x142d72}=this[_0xd45e07(0x327)][_0xd45e07(0x2b1)](_0x2ed9de[_0xd45e07(0x204)][_0xd45e07(0x31b)])[_0xd45e07(0x303)];(_0x3e24c0===0x0||_0x3e24c0)&&(_0x142d72===0x0||_0x142d72)||this[_0xd45e07(0x327)][_0xd45e07(0x282)](_0x2ed9de[_0xd45e07(0x204)]['city'],_0x2ed9de[_0xd45e07(0x204)]);}else this[_0xd45e07(0x327)]['set'](_0x2ed9de[_0xd45e07(0x204)][_0xd45e07(0x31b)],_0x2ed9de[_0xd45e07(0x204)]);});}),this['partnersMap']=new Map(),this['childsMap']=new Map(),this[_0x5d52dd(0x260)]();}[_0x3cb43d(0x260)](){[...this['persons']]['forEach'](_0x48abbd=>{const _0x1694bb=_0x18bd;if(_0x48abbd['FAMS']?.['length']>0x0&&_0x48abbd[_0x1694bb(0x242)][_0x1694bb(0x321)](_0xd22d40=>{const _0x560464=_0x1694bb;let _0x533ad0=[_0x48abbd];this[_0x560464(0x2c2)][_0x560464(0x33b)](_0xd22d40)&&(_0x533ad0=[..._0x533ad0,...this[_0x560464(0x2c2)][_0x560464(0x2b1)](_0xd22d40)]),this[_0x560464(0x2c2)]['set'](_0xd22d40,_0x533ad0);}),_0x48abbd['FAMC']){let _0x220f5a=[_0x48abbd];this['childsMap'][_0x1694bb(0x33b)](_0x48abbd['FAMC'])&&(_0x220f5a=[..._0x220f5a,...this[_0x1694bb(0x20d)]['get'](_0x48abbd[_0x1694bb(0x305)])]),this[_0x1694bb(0x20d)][_0x1694bb(0x282)](_0x48abbd['FAMC'],_0x220f5a);}});}[_0x3cb43d(0x2d0)](_0x4f00df){const _0x470bcb=_0x3cb43d;return this['haveParentsOfPerson'](_0x4f00df,[])[_0x470bcb(0x2ee)]((_0xc0b39f,_0x382e69)=>_0xc0b39f['sosa']-_0x382e69[_0x470bcb(0x22c)]);}[_0x3cb43d(0x2c5)](){return ne(this['persons']);}['haveParentsOfPerson'](_0x4fe0f1,_0xf9cd53,_0x43a32a){const _0x137246=_0x3cb43d;let _0x30a80d=Object[_0x137246(0x286)]({},_0x4fe0f1);if(_0x30a80d['sosa']=_0x43a32a?_0x43a32a*0x2+(_0x4fe0f1['SEX']==='F'?0x1:0x0):0x1,this[_0x137246(0x2c2)][_0x137246(0x33b)](_0x30a80d['FAMC'])){let _0x37defe=[...this['partnersMap'][_0x137246(0x2b1)](_0x30a80d[_0x137246(0x305)])];_0x37defe&&_0x37defe['length']>0x0&&_0x37defe[_0x137246(0x321)](_0x230de5=>{const _0x4799a3=_0x137246;this[_0x4799a3(0x2e0)](_0x230de5,_0xf9cd53,_0x30a80d[_0x4799a3(0x22c)]);});}return _0xf9cd53['push'](_0x30a80d),_0xf9cd53;}[_0x3cb43d(0x21c)](){const _0x5f00e4=_0x3cb43d;return this[_0x5f00e4(0x2ec)]?.[_0x5f00e4(0x246)]>0x0?this['informationPersons'][_0x5f00e4(0x29d)](_0x123511=>{const _0x2a68cb=_0x5f00e4;let _0x19c917=new R();return _0x19c917[_0x2a68cb(0x26f)](_0x123511,this[_0x2a68cb(0x211)],this[_0x2a68cb(0x29c)],this['informationNotes']),this[_0x2a68cb(0x253)][_0x2a68cb(0x282)](_0x19c917[_0x2a68cb(0x25c)],_0x19c917),_0x19c917;})[_0x5f00e4(0x2ee)]((_0x4092d1,_0x1e4ae8)=>_0x4092d1['FAMC']-_0x1e4ae8[_0x5f00e4(0x305)]):[];}},re=K(require(_0x3cb43d(0x319)),0x1),oe=async _0x3e8a1d=>{const _0x51f448=_0x3cb43d;if(_0x3e8a1d&&_0x3e8a1d instanceof File){let {type:_0x1ee576}=_0x3e8a1d;return _0x1ee576===_0x51f448(0x349)?De(_0x3e8a1d):ae(_0x3e8a1d);}throw new Error(_0x51f448(0x31d));},ae=async(_0x507c90,_0x593982)=>{const _0x10545e=_0x3cb43d;if(_0x507c90){if(/\.ged$/[_0x10545e(0x32f)](_0x507c90?.[_0x10545e(0x296)]))return x['fromGedcomFile'](_0x507c90,_0x593982);throw new Error('Le\x20type\x20doit-être\x20au\x20format:\x20application/x-gedcom');}throw new Error('Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File');},be=async(_0x558cf4,_0x5c0441)=>{const _0x34cc06=_0x3cb43d;let _0x84755e=await _0x558cf4[_0x34cc06(0x210)]('uint8array'),_0x3b912b=_0x84755e[_0x34cc06(0x2af)][_0x34cc06(0x2c8)](_0x84755e[_0x34cc06(0x2c6)],_0x84755e[_0x34cc06(0x2c6)]+_0x84755e[_0x34cc06(0x219)]),_0x4c7938=new Blob([_0x3b912b]);return new File([_0x4c7938],_0x5c0441);},Re=async _0x42fa89=>{const _0x29e589=_0x3cb43d;let _0x542b07=await new re[(_0x29e589(0x29e))]()['loadAsync'](_0x42fa89),_0x23113d=new Map(),_0x357503=[];return _0x542b07['forEach']((_0x515de2,_0x14b947)=>{const _0xa887c6=_0x29e589;_0x14b947[_0xa887c6(0x228)]||_0x357503['push'](new Promise((_0x356eed,_0x2989c5)=>{const _0x9699b=_0xa887c6;be(_0x14b947,_0x515de2)[_0x9699b(0x2ae)](_0x1053e0=>{const _0x329656=_0x9699b;_0x23113d[_0x329656(0x282)](_0x515de2,_0x1053e0),_0x356eed();})['catch'](_0x2989c5);}));}),await Promise['all'](_0x357503),_0x23113d;},De=async _0x1e71d2=>{const _0x2ade37=_0x3cb43d;if(_0x1e71d2){let _0x2d7989=await Re(_0x1e71d2['slice']()),_0x17a6da=/\.ged$/;for(let _0x32213a of _0x2d7989[_0x2ade37(0x276)]())if(_0x17a6da[_0x2ade37(0x32f)](_0x32213a))return await ae(_0x2d7989['get'](_0x32213a),_0x2d7989);throw new Error(_0x2ade37(0x251));}throw new Error(_0x2ade37(0x2de));};function le(_0x630ac1,_0x3e08ec){const _0x490327=_0x3cb43d;let _0xdb57a0=_0x490327(0x312)+encodeURIComponent(_0x630ac1)+_0x490327(0x341),_0x4cc4f9=new XMLHttpRequest();_0x4cc4f9['open'](_0x490327(0x21b),_0xdb57a0,!0x0),_0x4cc4f9['onload']=function(){const _0x1e99ca=_0x490327;if(_0x4cc4f9[_0x1e99ca(0x218)]>=0xc8&&_0x4cc4f9[_0x1e99ca(0x218)]<0x190){let _0x26a122=JSON[_0x1e99ca(0x248)](_0x4cc4f9[_0x1e99ca(0x2eb)])[_0x1e99ca(0x29d)](_0x51a1f9=>{const _0x4fa645=_0x1e99ca;let {display_name:_0x179334,lat:_0x5562ee,lon:_0x40788f}=_0x51a1f9,_0x104316=_0x179334[_0x4fa645(0x346)](',\x20'),_0x5983bf=_0x104316[0x0]+',\x20'+_0x104316[_0x104316['length']-0x2]+',\x20'+_0x104316[_0x104316['length']-0x1];return new F(_0x5983bf,new y(_0x5562ee,_0x40788f));});_0x3e08ec(_0x26a122);}else _0x3e08ec([]);},_0x4cc4f9[_0x490327(0x247)]=function(){_0x3e08ec([]);},_0x4cc4f9[_0x490327(0x2f1)]();}var Z=(_0x4758a0,_0x51deb5,_0x4204d7,_0x1151a8)=>{const _0x5efda6=_0x3cb43d;if(_0x1151a8=_0x1151a8??new Map(),_0x4204d7=_0x4204d7??0x1,_0x1151a8[_0x5efda6(0x282)](_0x4758a0[_0x5efda6(0x25c)],_0x4204d7),_0x51deb5['has'](_0x4758a0[_0x5efda6(0x305)])){let _0x44f623=_0x51deb5[_0x5efda6(0x2b1)](_0x4758a0[_0x5efda6(0x305)]);_0x44f623?.['length']>0x1&&(_0x44f623=[..._0x44f623][_0x5efda6(0x2ee)]((_0x570fb3,_0x54f712)=>_0x570fb3[_0x5efda6(0x255)]&&_0x54f712[_0x5efda6(0x255)]?_0x54f712['SEX'][_0x5efda6(0x27f)](_0x570fb3['SEX']):0x0)),_0x44f623[_0x5efda6(0x321)](_0x522ffd=>{const _0x35ead7=_0x5efda6;_0x522ffd[_0x35ead7(0x255)]&&(_0x1151a8=Z(_0x522ffd,_0x51deb5,_0x4204d7*0x2+(_0x522ffd[_0x35ead7(0x255)]==='M'?0x0:0x1),_0x1151a8));});}return _0x1151a8;},ue=(_0x1ce238,_0x1b4b31)=>{const _0x570185=_0x3cb43d;let _0x49122b=[_0x570185(0x332),'DEAT'],_0x40d1d6=[..._0x1ce238[_0x570185(0x25f)]][_0x570185(0x29d)](_0x4774c8=>_0x4774c8[_0x570185(0x294)]);return _0x49122b=[..._0x49122b]['filter'](_0x13e40c=>!_0x40d1d6[_0x570185(0x1f8)](_0x13e40c)),_0x49122b[_0x570185(0x29a)](_0x570185(0x28d)),_0x1b4b31&&([..._0x49122b][_0x570185(0x1f8)](_0x1b4b31['type'])||_0x49122b[_0x570185(0x29a)](_0x1b4b31[_0x570185(0x294)])),_0x49122b;},$=class extends M{constructor(_0x15f1ce){super(),a(this,'year'),this['year']=_0x15f1ce;}},J=class{constructor(_0x3df303){const _0x14f857=_0x3cb43d;a(this,'events',[]),(this['events']=[..._0x3df303][_0x14f857(0x331)]((_0x570893,_0x249417)=>{const _0x4b3c51=_0x14f857;let _0x173bd0,{dateAct:_0x5a4412,INDIS:_0x1d5361}=_0x249417;if(_0x5a4412?.[_0x4b3c51(0x239)]){let _0x3681a4=Number(_0x5a4412[_0x4b3c51(0x239)]),_0x47f276=_0x570893[_0x4b3c51(0x33e)](_0x3bd5d3=>_0x3bd5d3?.[_0x4b3c51(0x239)]===_0x3681a4);_0x47f276>=0x0?(_0x173bd0=_0x570893[_0x47f276],_0x173bd0[_0x4b3c51(0x25f)][_0x4b3c51(0x34c)](_0x1e154a=>_0x1e154a['INDIS'][_0x4b3c51(0x34c)](_0x3a1309=>_0x1d5361[_0x4b3c51(0x1f8)](_0x3a1309)))||(_0x173bd0[_0x4b3c51(0x259)](_0x249417),_0x570893[_0x47f276]=_0x173bd0)):(_0x173bd0=new $(_0x3681a4),_0x173bd0['add'](_0x249417),_0x570893['push'](_0x173bd0));}return _0x570893;},[]),this['sortByYear']());}[_0x3cb43d(0x231)](){const _0x3124d5=_0x3cb43d;this['events']=[...this[_0x3124d5(0x320)]][_0x3124d5(0x2ee)]((_0xbfbc15,_0x3a776a)=>_0xbfbc15[_0x3124d5(0x239)]-_0x3a776a['year']);}};0x0&&(module['exports']={'Act':Act,'Acts':Acts,'ActsByYear':ActsByYear,'CoordinateGPS':CoordinateGPS,'DateAct':DateAct,'EventsByYears':EventsByYears,'ExportGedcomFile':ExportGedcomFile,'ExportGedzipFile':ExportGedzipFile,'Identificator':Identificator,'MultimediaFile':MultimediaFile,'MultimediaFiles':MultimediaFiles,'Note':Note,'Notes':Notes,'Person':Person,'Place':Place,'ReadGed':ReadGed,'Sex':Sex,'createSosaMap':createSosaMap,'dateToDateLine':dateToDateLine,'days':days,'getCityCoordinates':getCityCoordinates,'importGedFile':importGedFile,'months':months,'remainingTypesAct':remainingTypesAct});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { Act } from "./commons/Act";
|
|
3
|
-
export {
|
|
1
|
+
export { Person, Sex } from "./commons/Person";
|
|
2
|
+
export { Act, Acts, TypeAct } from "./commons/Act";
|
|
3
|
+
export { DateAct, Day, Month, dateToDateLine, days, months } from "./commons/DateAct";
|
|
4
|
+
export { MultimediaFile, MultimediaFiles } from "./commons/MultimediaFile";
|
|
5
|
+
export { Place, CoordinateGPS } from "./commons/Place";
|
|
6
|
+
export { Notes, Note, TypeNote } from "./commons/Note";
|
|
4
7
|
export { Identificator } from "./commons/Identificator.enum";
|
|
5
|
-
export {
|
|
8
|
+
export { ExportGedcomFile, ExportGedzipFile } from "./export/GEDCOM";
|
|
6
9
|
export { ReadGed } from "./import/ReadGed";
|
|
10
|
+
export { importGedFile } from "./import/LoadFile";
|
|
11
|
+
export { getCityCoordinates } from "./services/CitySearch";
|
|
12
|
+
export { createSosaMap } from "./utils/sosa/calculate-sosa";
|
|
13
|
+
export { remainingTypesAct } from "./utils/acts-helper/acts-helper";
|
|
14
|
+
export { EventsByYears, ActsByYear } from "./commons/ActsByYears";
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x11810c=_0xdd4c;(function(_0x7343e4,_0x335673){const _0xe9ca95=_0xdd4c,_0x1d6e7a=_0x7343e4();while(!![]){try{const _0x3c710c=parseInt(_0xe9ca95(0x1db))/0x1*(parseInt(_0xe9ca95(0x154))/0x2)+-parseInt(_0xe9ca95(0x19e))/0x3+-parseInt(_0xe9ca95(0x248))/0x4*(parseInt(_0xe9ca95(0x1c9))/0x5)+parseInt(_0xe9ca95(0x219))/0x6*(-parseInt(_0xe9ca95(0x1ad))/0x7)+-parseInt(_0xe9ca95(0x1a5))/0x8*(parseInt(_0xe9ca95(0x14e))/0x9)+-parseInt(_0xe9ca95(0x195))/0xa*(parseInt(_0xe9ca95(0xfe))/0xb)+parseInt(_0xe9ca95(0x140))/0xc;if(_0x3c710c===_0x335673)break;else _0x1d6e7a['push'](_0x1d6e7a['shift']());}catch(_0x39f6e1){_0x1d6e7a['push'](_0x1d6e7a['shift']());}}}(_0x28be,0xe3868));var ne=Object['defineProperty'],re=(_0x57b59f,_0x1a9861,_0x2454ff)=>_0x1a9861 in _0x57b59f?ne(_0x57b59f,_0x1a9861,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2454ff}):_0x57b59f[_0x1a9861]=_0x2454ff,a=(_0x2333a6,_0x8588e4,_0x17c903)=>re(_0x2333a6,typeof _0x8588e4!='symbol'?_0x8588e4+'':_0x8588e4,_0x17c903),G=[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],U=['JAN',_0x11810c(0x130),_0x11810c(0x145),_0x11810c(0x1ef),'MAY',_0x11810c(0x1f5),_0x11810c(0x101),_0x11810c(0x1b4),'SEP',_0x11810c(0x204),_0x11810c(0x178),'DEC'],S=class{constructor(_0x4555c5){const _0xa61a19=_0x11810c;a(this,_0xa61a19(0x102)),a(this,_0xa61a19(0xfd),null),a(this,'month',null),a(this,'year');if(_0x4555c5&&_0x4555c5!=='inconnue'){let _0xfb7bfc=_0x4555c5[_0xa61a19(0x127)]()[_0xa61a19(0x109)](/\s+/);switch(_0xfb7bfc[_0xa61a19(0x1eb)]){case 0x1:if(_0xfb7bfc[0x0]['includes']('/')){let [_0x184387,_0x2194a8]=_0xfb7bfc[0x0]['split']('/');this['month']=this['convertMonth'](_0x184387),this['year']=Number(_0x2194a8);}else this[_0xa61a19(0x23e)]=null,this['year']=Number(_0xfb7bfc[0x0]);break;case 0x2:if(_0xfb7bfc[0x0]==='BEF'||_0xfb7bfc[0x0]==='ABT'){if(this[_0xa61a19(0x102)]=_0xfb7bfc[0x0],_0xfb7bfc[0x1][_0xa61a19(0x1ee)]('/')){let [_0x5d4c0c,_0x85d788]=_0xfb7bfc[0x1][_0xa61a19(0x109)]('/');this['month']=this['convertMonth'](_0x5d4c0c),this[_0xa61a19(0x241)]=Number(_0x85d788);}else this['month']=null,this[_0xa61a19(0x241)]=Number(_0xfb7bfc[0x1]);}else{if(_0xfb7bfc[0x0][_0xa61a19(0x1ee)]('/')){let [_0x5f0f7b,_0x43d599]=_0xfb7bfc[0x0]['split']('/');this['month']=this[_0xa61a19(0x161)](_0x5f0f7b),this['year']=Number(_0x43d599);}else this[_0xa61a19(0x23e)]=_0xfb7bfc[0x0]??null,this['year']=Number(_0xfb7bfc[0x1]);}break;case 0x3:if(_0xfb7bfc[0x0]===_0xa61a19(0x16c)||_0xfb7bfc[0x0]===_0xa61a19(0x18d))this[_0xa61a19(0x102)]=_0xfb7bfc[0x0],this['month']=_0xfb7bfc[0x1],this[_0xa61a19(0x241)]=Number(_0xfb7bfc[0x2]);else{if(_0xfb7bfc[0x1][_0xa61a19(0x1ee)]('/')){let [_0x99eb83,_0x5704e5]=_0xfb7bfc[0x1][_0xa61a19(0x109)]('/');this[_0xa61a19(0x23e)]=this[_0xa61a19(0x161)](_0x99eb83),this['year']=Number(_0x5704e5);}else this['day']=Number(_0xfb7bfc[0x0])>=0x1&&Number(_0xfb7bfc[0x0])<=0x1f?Number(_0xfb7bfc[0x0]):null,this['month']=_0xfb7bfc[0x1],this['year']=Number(_0xfb7bfc[0x2]);}break;}}}get['date'](){const _0x29a2a8=_0x11810c;return this[_0x29a2a8(0x241)]?this[_0x29a2a8(0x23e)]?this[_0x29a2a8(0xfd)]?this['day']+'\x20'+this['month']+'\x20'+this[_0x29a2a8(0x241)]:this['month']+'\x20'+this[_0x29a2a8(0x241)]:''+this['year']:null;}['convertMonth'](_0x327eac){const _0x1ca332=_0x11810c;switch(_0x327eac){case'1':return _0x1ca332(0x196);case'2':return _0x1ca332(0x130);case'3':return _0x1ca332(0x145);case'4':return _0x1ca332(0x1ef);case'5':return _0x1ca332(0x202);case'6':return _0x1ca332(0x1f5);case'7':return'JUL';case'8':return'AUG';case'9':return'SEP';case'10':return'OCT';case'11':return'NOV';case'12':return'DEC';default:return null;}}['isValid'](){const _0x1b6935=_0x11810c;let _0x849662=new Date()['getFullYear']();if(this[_0x1b6935(0x241)]&&(this['year']<0x0||this[_0x1b6935(0x241)]>_0x849662))return!0x1;if(this['year']&&!this[_0x1b6935(0x23e)]&&!this['day'])return!0x0;if(this[_0x1b6935(0x23e)]&&!U[_0x1b6935(0x1ee)](this[_0x1b6935(0x23e)]))return!0x1;if(this['year']&&this['month']&&!this['day'])return!0x0;if(this[_0x1b6935(0xfd)]){let _0x388fd8=this[_0x1b6935(0x241)]%0x4===0x0&&this[_0x1b6935(0x241)]%0x64!==0x0||this[_0x1b6935(0x241)]%0x190===0x0,_0x158ea2;if(this['month']===_0x1b6935(0x130)&&_0x388fd8)_0x158ea2=0x1d;else{let _0x1c9301=U[_0x1b6935(0x148)](_0x32b21c=>_0x32b21c===this[_0x1b6935(0x23e)]);_0x158ea2=G[_0x1b6935(0x247)](_0x3c9466=>_0x3c9466<=new Date(this['year'],_0x1c9301,0x0)[_0x1b6935(0x1e6)]())[_0x1b6935(0x1eb)];}return G[_0x1b6935(0x1ee)](this['day'])&&this[_0x1b6935(0xfd)]<=_0x158ea2;}return!0x1;}},oe=(_0x15848c,_0x570641,_0x258fea)=>_0x15848c?_0x570641?_0x258fea?_0x258fea+'\x20'+_0x570641+'\x20'+_0x15848c:_0x570641+'\x20'+_0x15848c:''+_0x15848c:'',F=class{constructor(_0x4841a7,_0x5ae3b9){const _0x2613bf=_0x11810c;a(this,_0x2613bf(0x1d0),null),a(this,'coordinate'),(_0x4841a7&&(this[_0x2613bf(0x1d0)]=_0x4841a7),this['coordinate']=_0x5ae3b9??new N());}['addCity'](_0x29bd1f){const _0x4c77b2=_0x11810c;this[_0x4c77b2(0x1d0)]=_0x29bd1f;}},N=class{constructor(_0x461f8e,_0x116a64){const _0x333954=_0x11810c;a(this,_0x333954(0x1d3)),a(this,_0x333954(0x1be)),(this[_0x333954(0x1d3)]=_0x461f8e,this['longitude']=_0x116a64);}[_0x11810c(0x237)]([_0x53ae85,_0x1652e4]){const _0x2622f7=_0x11810c;this[_0x2622f7(0x1d3)]=_0x53ae85,this[_0x2622f7(0x1be)]=_0x1652e4;}},P=(_0x65f522=>(_0x65f522['ABBR']='ABBR',_0x65f522['ADDR']=_0x11810c(0x216),_0x65f522['ADR1']=_0x11810c(0x10c),_0x65f522['ADR2']='ADDR2',_0x65f522[_0x11810c(0x1b8)]=_0x11810c(0x1b8),_0x65f522[_0x11810c(0x21b)]='AFN',_0x65f522[_0x11810c(0x146)]=_0x11810c(0x146),_0x65f522['AGNC']='AGNC',_0x65f522['ALIA']=_0x11810c(0x224),_0x65f522[_0x11810c(0x1cf)]='ANCE',_0x65f522['ANCI']=_0x11810c(0xf9),_0x65f522['ANUL']=_0x11810c(0x1d6),_0x65f522[_0x11810c(0x171)]=_0x11810c(0x171),_0x65f522['AUTH']=_0x11810c(0x190),_0x65f522['BAPL']='BAPL',_0x65f522[_0x11810c(0x173)]=_0x11810c(0x173),_0x65f522[_0x11810c(0x14c)]='BARM',_0x65f522[_0x11810c(0x17e)]='BASM',_0x65f522[_0x11810c(0x223)]=_0x11810c(0x223),_0x65f522['BLES']=_0x11810c(0x23b),_0x65f522[_0x11810c(0x137)]=_0x11810c(0x137),_0x65f522[_0x11810c(0x185)]=_0x11810c(0x185),_0x65f522[_0x11810c(0x22f)]=_0x11810c(0x22f),_0x65f522[_0x11810c(0x132)]=_0x11810c(0x132),_0x65f522['CAUS']=_0x11810c(0x1ed),_0x65f522[_0x11810c(0x230)]=_0x11810c(0x230),_0x65f522['CHAN']='CHAN',_0x65f522[_0x11810c(0x1ca)]=_0x11810c(0x1ca),_0x65f522[_0x11810c(0x1d5)]=_0x11810c(0x1d5),_0x65f522[_0x11810c(0x129)]=_0x11810c(0x129),_0x65f522[_0x11810c(0x1a3)]=_0x11810c(0x1a3),_0x65f522[_0x11810c(0x20f)]=_0x11810c(0x20f),_0x65f522[_0x11810c(0x11f)]=_0x11810c(0x11f),_0x65f522['CONF']=_0x11810c(0x113),_0x65f522[_0x11810c(0xfa)]='CONL',_0x65f522[_0x11810c(0x17d)]='CONT',_0x65f522[_0x11810c(0x1cb)]=_0x11810c(0x1cb),_0x65f522['CORP']=_0x11810c(0x1dc),_0x65f522['CREM']=_0x11810c(0x15c),_0x65f522['CTRY']=_0x11810c(0x1f3),_0x65f522[_0x11810c(0x115)]=_0x11810c(0x115),_0x65f522[_0x11810c(0x17c)]=_0x11810c(0x17c),_0x65f522['DEAT']='DEAT',_0x65f522[_0x11810c(0x16b)]=_0x11810c(0x16b),_0x65f522[_0x11810c(0x1fb)]=_0x11810c(0x1fb),_0x65f522[_0x11810c(0x117)]=_0x11810c(0x117),_0x65f522[_0x11810c(0x1b6)]=_0x11810c(0x1b6),_0x65f522['DIVF']='DIVF',_0x65f522['DSCR']=_0x11810c(0x226),_0x65f522[_0x11810c(0x20a)]=_0x11810c(0x20a),_0x65f522[_0x11810c(0x1d7)]=_0x11810c(0x1d7),_0x65f522[_0x11810c(0x1f6)]='ENDL',_0x65f522[_0x11810c(0x18c)]='ENGA',_0x65f522[_0x11810c(0x208)]=_0x11810c(0x208),_0x65f522[_0x11810c(0x1de)]='FAM',_0x65f522['FAMC']='FAMC',_0x65f522[_0x11810c(0x136)]='FAMF',_0x65f522[_0x11810c(0x1cc)]='FAMS',_0x65f522[_0x11810c(0x172)]=_0x11810c(0x172),_0x65f522[_0x11810c(0x1e4)]='FILE',_0x65f522['FORM']='FORM',_0x65f522[_0x11810c(0x1bc)]=_0x11810c(0x1bc),_0x65f522[_0x11810c(0x1e7)]=_0x11810c(0x1e7),_0x65f522['GRAD']=_0x11810c(0x225),_0x65f522[_0x11810c(0x14a)]='HEAD',_0x65f522['HUSB']='HUSB',_0x65f522[_0x11810c(0x20c)]='IDNO',_0x65f522['IMMI']=_0x11810c(0x119),_0x65f522['INDI']=_0x11810c(0x157),_0x65f522[_0x11810c(0x16e)]='LANG',_0x65f522['LEGA']='LEGA',_0x65f522[_0x11810c(0x133)]=_0x11810c(0x133),_0x65f522['MARC']=_0x11810c(0x213),_0x65f522[_0x11810c(0x179)]='MARL',_0x65f522[_0x11810c(0x22a)]=_0x11810c(0x22a),_0x65f522['MARS']=_0x11810c(0x1a0),_0x65f522['MEDI']=_0x11810c(0x23f),_0x65f522['NAME']=_0x11810c(0x15d),_0x65f522[_0x11810c(0x1bd)]=_0x11810c(0x1bd),_0x65f522['NATU']=_0x11810c(0x118),_0x65f522['NCHI']=_0x11810c(0x11a),_0x65f522['NICK']=_0x11810c(0x103),_0x65f522['NMR']=_0x11810c(0x1a6),_0x65f522['NOTE']=_0x11810c(0x169),_0x65f522['NPFX']=_0x11810c(0x125),_0x65f522['NSFX']=_0x11810c(0x1b0),_0x65f522['OBJE']='OBJE',_0x65f522[_0x11810c(0x108)]='OCCU',_0x65f522['ORDI']=_0x11810c(0x1af),_0x65f522[_0x11810c(0x1f0)]='ORDN',_0x65f522[_0x11810c(0x1d2)]=_0x11810c(0x1d2),_0x65f522[_0x11810c(0x13d)]='PEDI',_0x65f522['PHON']=_0x11810c(0x1fd),_0x65f522['PLAC']='PLAC',_0x65f522[_0x11810c(0x167)]=_0x11810c(0x167),_0x65f522[_0x11810c(0x142)]=_0x11810c(0x142),_0x65f522[_0x11810c(0x13a)]='PROP',_0x65f522[_0x11810c(0x1d1)]=_0x11810c(0x1d1),_0x65f522['QUAY']=_0x11810c(0x1e1),_0x65f522['REFN']='REFN',_0x65f522[_0x11810c(0x1ae)]=_0x11810c(0x1ae),_0x65f522[_0x11810c(0x1a1)]='RELI',_0x65f522[_0x11810c(0x1f4)]=_0x11810c(0x1f4),_0x65f522[_0x11810c(0x245)]=_0x11810c(0x245),_0x65f522[_0x11810c(0x211)]=_0x11810c(0x211),_0x65f522[_0x11810c(0x1ac)]=_0x11810c(0x1ac),_0x65f522[_0x11810c(0x126)]='RFN',_0x65f522[_0x11810c(0x124)]=_0x11810c(0x124),_0x65f522[_0x11810c(0x23c)]='ROLE',_0x65f522[_0x11810c(0x1bb)]=_0x11810c(0x1bb),_0x65f522[_0x11810c(0x15f)]='SLGC',_0x65f522[_0x11810c(0x217)]=_0x11810c(0x217),_0x65f522[_0x11810c(0x188)]=_0x11810c(0x188),_0x65f522[_0x11810c(0x12a)]=_0x11810c(0x12a),_0x65f522[_0x11810c(0x240)]='SSN',_0x65f522[_0x11810c(0x1c5)]=_0x11810c(0x1c5),_0x65f522[_0x11810c(0x22e)]=_0x11810c(0x22e),_0x65f522[_0x11810c(0x229)]=_0x11810c(0x229),_0x65f522['SUBN']=_0x11810c(0x112),_0x65f522[_0x11810c(0x1e3)]=_0x11810c(0x1e3),_0x65f522[_0x11810c(0x10f)]=_0x11810c(0x10f),_0x65f522['TEXT']=_0x11810c(0x1aa),_0x65f522[_0x11810c(0x1dd)]='TIME',_0x65f522[_0x11810c(0x14b)]=_0x11810c(0x14b),_0x65f522[_0x11810c(0x1c4)]=_0x11810c(0x1c4),_0x65f522[_0x11810c(0x1fc)]='TYPE',_0x65f522[_0x11810c(0x184)]=_0x11810c(0x184),_0x65f522['WIFE']=_0x11810c(0x1a8),_0x65f522['WILL']='WILL',_0x65f522))(P||{}),E=class{constructor(_0x1eb7bd){const _0x2ce799=_0x11810c;a(this,_0x2ce799(0x13f)),a(this,'file'),this[_0x2ce799(0x122)]=_0x1eb7bd;}get['filename'](){const _0x246b94=_0x11810c;return this[_0x246b94(0x122)][_0x246b94(0x15b)];}},g=class{constructor(){const _0x53b1bc=_0x11810c;a(this,_0x53b1bc(0x13f)),a(this,_0x53b1bc(0x15e),[]);}[_0x11810c(0x19f)](_0x1c475c){const _0x1cb7f6=_0x11810c;let _0x3028fc=_0x1c475c[_0x1cb7f6(0x122)]?.['name']??'',_0x3edf5f=(this[_0x1cb7f6(0x13f)]??'')[_0x1cb7f6(0x1ce)](/\/+$/,'');_0x1c475c['relativePath']=_0x3edf5f?_0x3edf5f+'/'+_0x3028fc:_0x3028fc,this['files'][_0x1cb7f6(0x100)](_0x1c475c);}[_0x11810c(0x1f8)](_0x358bb8){const _0x21fca3=_0x11810c;let _0x3ff970=this[_0x21fca3(0x15e)][_0x21fca3(0x148)]((_0x2e1ab0,_0x309f3e)=>_0x309f3e===_0x358bb8);_0x3ff970>=0x0&&this['files'][_0x21fca3(0x151)](_0x3ff970,0x1);}[_0x11810c(0x149)](){const _0x358120=_0x11810c;this[_0x358120(0x15e)]=[];}};function y(_0x1bc96f){const _0x5a5a00=_0x11810c;let _0x453839=_0x1bc96f[_0x5a5a00(0x214)](),_0x3e2df2=_0x453839['indexOf']('\x20');if(_0x3e2df2<=0x0)return null;let _0x27a8a0=_0x453839[_0x5a5a00(0x242)](0x0,_0x3e2df2),_0x456aa5=_0x453839[_0x5a5a00(0x242)](_0x3e2df2+0x1)[_0x5a5a00(0x214)](),_0x4bc1d2=_0x456aa5[_0x5a5a00(0x11c)]('\x20');if(_0x4bc1d2<=0x0)return{'level':_0x27a8a0,'tag':_0x456aa5,'value':''};let _0x21ab8b=_0x456aa5[_0x5a5a00(0x242)](0x0,_0x4bc1d2),_0x330098=_0x456aa5['slice'](_0x4bc1d2+0x1);return{'level':_0x27a8a0,'tag':_0x21ab8b,'value':_0x330098};}function ae(_0x111ee){const _0x40b0b7=_0x11810c;let _0x28abcd=_0x111ee['lastIndexOf']('.');return _0x28abcd<=0x0?{'stem':_0x111ee,'ext':''}:{'stem':_0x111ee[_0x40b0b7(0x242)](0x0,_0x28abcd),'ext':_0x111ee[_0x40b0b7(0x242)](_0x28abcd)};}function le(_0x260a72,_0x53acec,_0x40aa1c){return _0x40aa1c===0x0?''+_0x260a72+_0x53acec:_0x260a72+'_'+_0x40aa1c+_0x53acec;}function C(_0x2e3a29,_0x342e79,_0x46f085){const _0xfc38a3=_0x11810c;let _0x43f354=new Set(_0x46f085),_0x3ceda7=_0x2e3a29[_0xfc38a3(0x1ce)](/\/+$/,''),_0x378575=_0x342e79['replace'](/^[/\\]+|[/\\]+/g,''),{stem:_0x4bd73f,ext:_0x4dbd12}=ae(_0x378575),_0x1ccca2=0x2710;for(let _0x40223e=0x0;_0x40223e<_0x1ccca2;_0x40223e++){let _0x50fae3=le(_0x4bd73f,_0x4dbd12,_0x40223e),_0x3d0aa4=_0x3ceda7?_0x3ceda7+'/'+_0x50fae3:_0x50fae3;if(!_0x43f354[_0xfc38a3(0x10d)](_0x3d0aa4))return _0x3d0aa4;}throw new Error(_0xfc38a3(0x14d));}var $=class{constructor(_0x4805e1,_0x2e3f1c,_0x8cdb6a,_0x53ae5e,_0x33161a,_0x4f34da,_0x4baa05){const _0x4df915=_0x11810c;a(this,_0x4df915(0x164)),a(this,'dateAct',null),a(this,'place',null),a(this,_0x4df915(0x193),[]),a(this,'newMultimediaFiles',new Map()),a(this,'multimediaFiles',new g()),a(this,_0x4df915(0x191)),(this[_0x4df915(0x164)]=_0x4805e1,_0x2e3f1c&&(this[_0x4df915(0x1e0)]=_0x2e3f1c),_0x8cdb6a&&(this[_0x4df915(0x150)]=_0x8cdb6a),_0x53ae5e?.[_0x4df915(0x1eb)]>0x0&&(this[_0x4df915(0x193)]=_0x53ae5e),_0x33161a&&(this[_0x4df915(0x11e)]=_0x33161a),_0x4f34da&&(this[_0x4df915(0x159)]=_0x4f34da),_0x4baa05&&(this[_0x4df915(0x191)]=_0x4baa05));}get[_0x11810c(0x15e)](){const _0x269bb7=_0x11810c;return Array[_0x269bb7(0x16a)](this['newMultimediaFiles']['values']());}get[_0x11810c(0x1c6)](){const _0x1bd6e4=_0x11810c;return Array['from'](this[_0x1bd6e4(0x159)][_0x1bd6e4(0x209)]());}[_0x11810c(0x134)](_0x27a0d4,_0x1a1cfa){const _0x30bc31=_0x11810c;let _0x43393c=_0x1a1cfa??this['INDIS'][0x0];if(_0x43393c===void 0x0||!_0x27a0d4?.[_0x30bc31(0x122)])return;let _0x210c23=_0x43393c+'/'+this[_0x30bc31(0x164)],_0x4e94f6=this[_0x30bc31(0x1c8)](),_0x57d172=C(_0x210c23,_0x27a0d4[_0x30bc31(0x122)]['name'],_0x4e94f6);_0x27a0d4['relativePath']=_0x57d172,this['multimediaFiles'][_0x30bc31(0x15e)][_0x30bc31(0x100)](_0x27a0d4),this['newMultimediaFiles'][_0x30bc31(0x11b)](_0x57d172,_0x27a0d4);}['removeMultimedia'](_0x18e3be){const _0xd47ff9=_0x11810c;let _0x3503c7=Array['from'](this[_0xd47ff9(0x159)][_0xd47ff9(0x209)]())['find']((_0x5c9bcc,_0x279344)=>_0x18e3be===_0x279344);if(_0x3503c7){this[_0xd47ff9(0x159)]['delete'](_0x3503c7);let _0x4d4f3d=this[_0xd47ff9(0x11e)]['files']['findIndex'](_0x2a101e=>_0x2a101e[_0xd47ff9(0x13f)]===_0x3503c7);_0x4d4f3d>=0x0&&this[_0xd47ff9(0x11e)]['files'][_0xd47ff9(0x151)](_0x4d4f3d,0x1);}}['mediaRelativePathsInUse'](){const _0x3ab576=_0x11810c;return[...this[_0x3ab576(0x159)]['keys'](),...this['multimediaFiles'][_0x3ab576(0x15e)]['map'](_0x1c3d87=>_0x1c3d87[_0x3ab576(0x13f)])[_0x3ab576(0x247)](_0x35e41e=>!!_0x35e41e)];}[_0x11810c(0x17a)](_0x1b8054){const _0x252867=_0x11810c;this[_0x252867(0x164)]=_0x1b8054;}[_0x11810c(0x116)](_0x19a65d){const _0x48f329=_0x11810c;this[_0x48f329(0x193)]=_0x19a65d;}[_0x11810c(0x1e5)](_0x339292){const _0x49a2d2=_0x11810c;this[_0x49a2d2(0x150)]=_0x339292;}[_0x11810c(0x21f)](_0x1124d3){const _0x4dc92e=_0x11810c;_0x1124d3?.[_0x4dc92e(0x1fa)]()&&(this[_0x4dc92e(0x1e0)]=_0x1124d3);}},M=class{constructor(){a(this,'list',[]);}['add'](_0x5d3548){const _0x4b93c6=_0x11810c;this[_0x4b93c6(0x19d)][_0x4b93c6(0x100)](_0x5d3548);}[_0x11810c(0x165)](_0xa22e4a,_0x2127b9){this['list'][_0x2127b9]=_0xa22e4a;}[_0x11810c(0x1f8)](_0x43a69c){const _0x137a4e=_0x11810c;let _0x346713=this[_0x137a4e(0x19d)][_0x137a4e(0x148)]((_0x2f0d67,_0x4a5b7f)=>_0x4a5b7f===_0x43a69c);_0x346713>=0x0&&this['list'][_0x137a4e(0x151)](_0x346713,0x1);}[_0x11810c(0x149)](){const _0x303380=_0x11810c;this[_0x303380(0x19d)]=[];}[_0x11810c(0x220)](){const _0x5abfc5=_0x11810c;this[_0x5abfc5(0x19d)]=[...this['list']]['sort']((_0x395c81,_0x1da5d1)=>{const _0x1de4ec=_0x5abfc5;let _0x3a6bb7=_0x395c81['dateAct']?.['year']||0x0,_0x34378a=_0x1da5d1['dateAct']?.['year']||0x0;if(_0x3a6bb7!==_0x34378a)return _0x3a6bb7-_0x34378a;let _0x1bb91c=_0x395c81['dateAct']?.['month']||'',_0x4df580=_0x1da5d1[_0x1de4ec(0x1e0)]?.['month']||'',_0x314735=['JAN',_0x1de4ec(0x130),'MAR','APR','MAY',_0x1de4ec(0x1f5),_0x1de4ec(0x101),'AUG',_0x1de4ec(0x1c1),_0x1de4ec(0x204),_0x1de4ec(0x178),'DEC'],_0x418c9a=_0x314735[_0x1de4ec(0x11c)](_0x1bb91c),_0x5533b7=_0x314735[_0x1de4ec(0x11c)](_0x4df580);if(_0x418c9a!==_0x5533b7)return _0x418c9a-_0x5533b7;let _0x589ff2=_0x395c81['dateAct']?.[_0x1de4ec(0xfd)]||0x0,_0x404ffe=_0x1da5d1[_0x1de4ec(0x1e0)]?.[_0x1de4ec(0xfd)]||0x0;return _0x589ff2-_0x404ffe;});}},L=class extends M{[_0x11810c(0x1d8)](_0x2c3426,_0x4156d5,_0x6d2757){const _0xa9be95=_0x11810c;let _0xaf592=[],_0x19d43f=_0x1c9a77=>_0x1c9a77[_0xa9be95(0x214)]()['startsWith']('1\x20'),_0x2b6e0d=_0x5b35cb=>{const _0x29de3f=_0xa9be95;let _0x232080=_0x5b35cb[_0x29de3f(0x11c)]('@I');if(_0x232080<0x0)return null;let _0x2a68a6=_0x5b35cb['indexOf']('@',_0x232080+0x2);if(_0x2a68a6<=_0x232080)return null;let _0x2cd9c0=_0x5b35cb[_0x29de3f(0x242)](_0x232080+0x2,_0x2a68a6);return/^\d+$/[_0x29de3f(0x239)](_0x2cd9c0)?Number(_0x2cd9c0):null;};for(let _0x59435e=0x0;_0x59435e<_0x2c3426[_0xa9be95(0x1eb)];_0x59435e++){let _0x54ba9d=_0x2c3426[_0x59435e];if(_0x54ba9d[_0xa9be95(0x183)](_0xa9be95(0x13c))||_0x54ba9d['startsWith'](_0xa9be95(0x201))){let _0x12658e=_0x2b6e0d(_0x54ba9d);_0x12658e!==null&&_0x4156d5['push'](_0x12658e);}if(_0x54ba9d['startsWith'](_0xa9be95(0x1b2))||_0x54ba9d['startsWith'](_0xa9be95(0x1b5))||_0x54ba9d[_0xa9be95(0x183)]('1\x20MARR')){let _0x557fa0=[_0x54ba9d],_0x53a192=_0x59435e+0x1,_0x1927fa=_0x2c3426[_0x53a192];for(;_0x1927fa&&!_0x19d43f(_0x1927fa);)_0x557fa0[_0xa9be95(0x100)](_0x1927fa),_0x53a192+=0x1,_0x1927fa=_0x2c3426[_0x53a192];_0xaf592[_0xa9be95(0x100)](_0x557fa0),_0x59435e=_0x53a192-0x1;}}this[_0xa9be95(0x232)](_0xaf592[_0xa9be95(0x247)](_0x4261f8=>_0x4261f8[_0xa9be95(0x1eb)]>0x1),_0x4156d5,_0x6d2757);}['convertToActs'](_0xac7061,_0x6ac30,_0x379396){const _0x3ac122=_0x11810c;for(let _0x5e4c9f of _0xac7061){let _0x3dc087=_0x5e4c9f[0x0],_0x4d6a01=_0x3dc087[_0x3ac122(0x1ee)](_0x3ac122(0x223))?_0x3ac122(0x223):_0x3dc087[_0x3ac122(0x1ee)](_0x3ac122(0x1a2))?'DEAT':'MARR',_0x99dee3,_0x4eeb84=new F(),_0x4d6e84=new g(),_0x3463e3=new Map(),_0x57c629=[];for(let _0x2cc352=0x1;_0x2cc352<_0x5e4c9f['length'];_0x2cc352++){let _0x38d889=_0x5e4c9f[_0x2cc352],_0x342b3b=y(_0x38d889);if(!_0x342b3b)continue;let {tag:_0x11318e,value:_0x4640a6}=_0x342b3b;switch(_0x11318e){case _0x3ac122(0x17c):{let _0x20aa8a=_0x4640a6;_0x20aa8a!==_0x3ac122(0x166)&&(_0x99dee3=new S(_0x20aa8a));break;}case _0x3ac122(0x228):{let _0x4362b3=_0x4640a6;_0x4eeb84[_0x3ac122(0x227)](_0x4362b3);break;}case _0x3ac122(0xfb):case _0x3ac122(0x187):{let _0x32fc7f=_0x4640a6;_0x57c629['push'](Number(_0x32fc7f));break;}case'FILE':{let _0x2c9e61=_0x4640a6[_0x3ac122(0x127)](),_0x3a2fac=_0x379396['get'](_0x2c9e61),_0x4c3aaf=new E(_0x3a2fac);_0x4c3aaf[_0x3ac122(0x13f)]=_0x2c9e61,_0x4d6e84['files'][_0x3ac122(0x100)](_0x4c3aaf),_0x3463e3[_0x3ac122(0x11b)](_0x2c9e61,_0x4c3aaf);break;}default:break;}_0x57c629[_0x3ac122(0x1eb)]===0x2&&_0x4eeb84[_0x3ac122(0x17f)][_0x3ac122(0x237)](_0x57c629);}if(_0x99dee3||_0x4eeb84){let _0x320923=new $(_0x4d6a01,_0x99dee3,_0x4eeb84,[],_0x4d6e84,_0x3463e3);_0x320923['addIndis'](_0x6ac30),this['add'](_0x320923);}}}},v=class{constructor(){const _0x5c059e=_0x11810c;a(this,_0x5c059e(0x193),[]),a(this,_0x5c059e(0x164)),a(this,'lines');}['updateLines'](_0x39c4a8){const _0x294523=_0x11810c;_0x39c4a8?.[_0x294523(0x1eb)]>0x0&&(this[_0x294523(0x13b)]=_0x39c4a8);}[_0x11810c(0x120)](){this['lines']=[];}[_0x11810c(0x17a)](_0x421cc0){this['type']=_0x421cc0;}['addIndis'](_0x1b7c4d){this['INDIS']=_0x1b7c4d;}},b=class{constructor(){a(this,'list',[]);}[_0x11810c(0x141)](_0x50907d){const _0x32eff8=_0x11810c;this['list'][_0x32eff8(0x100)](_0x50907d);}['updateFromIndex'](_0x10c711,_0x33bfcf){this['list'][_0x33bfcf]=_0x10c711;}[_0x11810c(0x1f8)](_0x592d39){const _0x5d581c=_0x11810c;let _0x1ae5eb=this['list'][_0x5d581c(0x148)]((_0x4231ab,_0x4f47be)=>_0x4f47be===_0x592d39);_0x1ae5eb>=0x0&&this[_0x5d581c(0x19d)]['splice'](_0x1ae5eb,0x1);}['removeAll'](){const _0x302891=_0x11810c;this[_0x302891(0x19d)]=[];}},D=(_0x47a0cf=>(_0x47a0cf['M']='M',_0x47a0cf['F']='F',_0x47a0cf))(D||{}),R=class{constructor(_0x1f87d9,_0x1f74e3,_0xe0467b,_0x52d9fb,_0x3ce4f6,_0x5f29ae,_0x3517c1,_0x4e0953,_0x535992,_0x1bc60f){const _0x21b979=_0x11810c;a(this,_0x21b979(0x21d)),a(this,_0x21b979(0x157)),a(this,_0x21b979(0x1bb)),a(this,'firstnames'),a(this,_0x21b979(0x1f7)),a(this,'FAMC'),a(this,_0x21b979(0x1cc),[]),a(this,'newMultimediaFiles',new Map()),a(this,_0x21b979(0x11e),new g()),a(this,_0x21b979(0x152),new M()),a(this,_0x21b979(0x191),new b()),(this['INDI']=_0x3517c1,this[_0x21b979(0x1bb)]=_0x1f74e3,this[_0x21b979(0x1ff)]=_0x3ce4f6,this[_0x21b979(0x1cc)]=_0x5f29ae??[],this['sosa']=_0x1f87d9,this['firstnames']=_0xe0467b??[],this['lastname']=_0x52d9fb??'',_0x4e0953&&_0x4e0953[_0x21b979(0x15e)][_0x21b979(0x1eb)]>0x0&&(this[_0x21b979(0x11e)]=_0x4e0953),_0x1bc60f&&_0x1bc60f[_0x21b979(0x19d)][_0x21b979(0x1eb)]>0x0&&(this[_0x21b979(0x152)]=_0x1bc60f));}get[_0x11810c(0x15e)](){const _0x2ddcbc=_0x11810c;return Array['from'](this['newMultimediaFiles'][_0x2ddcbc(0x16d)]());}get[_0x11810c(0x1c6)](){const _0x2d16b=_0x11810c;return Array['from'](this['newMultimediaFiles'][_0x2d16b(0x209)]());}[_0x11810c(0x246)](_0x42e9e9,_0x348ed8,_0x54e597,_0x281917){const _0x5ea675=_0x11810c;let _0x25f5d8=_0x42e9e9['map'](_0xdbad6a=>_0xdbad6a['replace'](/[\n\r]+/g,''));_0x25f5d8['forEach'](_0x422f62=>{this['parsePersonLine'](_0x422f62,_0x54e597,_0x281917);}),this[_0x5ea675(0x135)](_0x25f5d8);let _0x29affb=new L();_0x29affb[_0x5ea675(0x1d8)](_0x25f5d8,[this['INDI']],_0x54e597),this[_0x5ea675(0x1cc)]?.[_0x5ea675(0x1eb)]>0x0&&_0x348ed8&&this[_0x5ea675(0x1cc)][_0x5ea675(0x11d)](_0x3f05c7=>{let _0x412d4e=_0x348ed8['get'](_0x3f05c7);_0x29affb['extractActsInfo'](_0x412d4e,[],_0x54e597);}),this[_0x5ea675(0x152)]=_0x29affb,this['acts']['sortByDate']();}[_0x11810c(0x198)](_0x3e00aa,_0x190b85,_0x4241a7){const _0x4947e2=_0x11810c;let _0x3e55f1=y(_0x3e00aa);if(!_0x3e55f1)return;let {level:_0x4b85f0,tag:_0x2bb787,value:_0x1a62ac}=_0x3e55f1;if(_0x4b85f0==='0'&&_0x2bb787['startsWith']('@I')){this[_0x4947e2(0x205)](_0x3e00aa);return;}switch(_0x2bb787){case _0x4947e2(0x1bb):this[_0x4947e2(0x1bf)](_0x1a62ac);break;case _0x4947e2(0x1ff):this['createFAMCFromValue'](_0x1a62ac);break;case _0x4947e2(0x1cc):this['createFAMSFromValue'](_0x1a62ac);break;case _0x4947e2(0x169):this[_0x4947e2(0x243)](_0x1a62ac,_0x4241a7);break;case _0x4947e2(0x1e4):this[_0x4947e2(0x194)](_0x1a62ac,_0x190b85);break;default:break;}}[_0x11810c(0x205)](_0x22f38d){const _0x31dddf=_0x11810c;let _0x48a81f=_0x22f38d['indexOf']('@I');if(_0x48a81f<0x0)return;let _0x4db8f8=_0x22f38d[_0x31dddf(0x11c)]('@',_0x48a81f+0x2);if(_0x4db8f8<=_0x48a81f||!_0x22f38d['includes'](_0x31dddf(0x157),_0x4db8f8))return;let _0xc7ca99=_0x22f38d[_0x31dddf(0x242)](_0x48a81f+0x2,_0x4db8f8);/^\d+$/['test'](_0xc7ca99)&&(this[_0x31dddf(0x157)]=Number(_0xc7ca99));}['createSexFromValue'](_0x1c5f4){const _0x2179bd=_0x11810c;let _0x3a553=_0x1c5f4[_0x2179bd(0x127)]();(_0x3a553==='M'||_0x3a553==='F')&&(this['SEX']=_0x3a553);}['createFAMCFromValue'](_0x4dc867){const _0x349c04=_0x11810c;let _0x2d3e3b=_0x4dc867[_0x349c04(0x127)](),_0x2e2420=/^@F(\d+)@$/['exec'](_0x2d3e3b);_0x2e2420?.[0x1]&&(this['FAMC']=Number(_0x2e2420[0x1]));}['createFAMSFromValue'](_0x1734bc){const _0x43f0c9=_0x11810c;let _0x863007=_0x1734bc['trim'](),_0x49c1d9=/^@F(\d+)@$/[_0x43f0c9(0x21c)](_0x863007);_0x49c1d9?.[0x1]&&this['FAMS'][_0x43f0c9(0x100)](Number(_0x49c1d9[0x1]));}[_0x11810c(0x194)](_0x160835,_0x4d386b){const _0x4118cb=_0x11810c;if(!_0x4d386b?.[_0x4118cb(0x180)]||!_0x160835)return;let _0x5ef67a=_0x160835[_0x4118cb(0x127)](),_0x578a82=new E(_0x4d386b[_0x4118cb(0x18a)](_0x5ef67a));_0x578a82[_0x4118cb(0x13f)]=_0x5ef67a,this[_0x4118cb(0x11e)][_0x4118cb(0x15e)][_0x4118cb(0x100)](_0x578a82),this[_0x4118cb(0x159)]['set'](_0x5ef67a,_0x578a82);}['addNoteFromGedcom'](_0x4468ac,_0x270450){const _0x42e477=_0x11810c;let _0x200516=_0x4468ac[_0x42e477(0x127)]();if(!_0x200516)return;let _0x38d462=/^@N(\d+)@$/['exec'](_0x200516);if(_0x38d462?.[0x1]&&_0x270450?.['size']){let _0x17923c=Number(_0x38d462[0x1]),_0x38bf97=_0x270450['get'](_0x17923c);if(!_0x38bf97||_0x38bf97[_0x42e477(0x1eb)]===0x0)return;let _0x376ac0=new v();_0x376ac0[_0x42e477(0x21e)]([..._0x38bf97]),this[_0x42e477(0x157)]&&_0x376ac0[_0x42e477(0x116)]([this[_0x42e477(0x157)]]),this['notes'][_0x42e477(0x141)](_0x376ac0);return;}let _0x56e27b=new v();_0x56e27b[_0x42e477(0x21e)]([_0x200516]),this[_0x42e477(0x157)]&&_0x56e27b['addIndis']([this[_0x42e477(0x157)]]),this[_0x42e477(0x191)]['addNote'](_0x56e27b);}[_0x11810c(0x134)](_0x207862){const _0x29daf4=_0x11810c;if(!this[_0x29daf4(0x157)]||!_0x207862?.[_0x29daf4(0x122)])return;let _0xac5b0f=''+this['INDI'],_0x25f406=this['mediaRelativePathsInUse'](),_0x3c2f07=C(_0xac5b0f,_0x207862['file'][_0x29daf4(0x15b)],_0x25f406);_0x207862[_0x29daf4(0x13f)]=_0x3c2f07,this[_0x29daf4(0x11e)]['files'][_0x29daf4(0x100)](_0x207862),this[_0x29daf4(0x159)][_0x29daf4(0x11b)](_0x3c2f07,_0x207862);}['deleteMultimedia'](_0xcdbbd2){const _0x4996c5=_0x11810c;this['newMultimediaFiles']['delete'](_0xcdbbd2);let _0x3af986=this['multimediaFiles']['files'][_0x4996c5(0x148)](_0x1117a0=>_0x1117a0[_0x4996c5(0x13f)]===_0xcdbbd2);_0x3af986>=0x0&&this['multimediaFiles'][_0x4996c5(0x15e)]['splice'](_0x3af986,0x1);}['mediaRelativePathsInUse'](){const _0x451cd5=_0x11810c;return[...this['newMultimediaFiles']['keys'](),...this[_0x451cd5(0x11e)]['files'][_0x451cd5(0xfc)](_0x20be11=>_0x20be11['relativePath'])[_0x451cd5(0x247)](_0x36c93d=>!!_0x36c93d)];}[_0x11810c(0x135)](_0x378d3e){const _0x51dc93=_0x11810c;let _0x1a56f3;for(let _0x20e7ee of _0x378d3e){let _0xccee35=y(_0x20e7ee);if(_0xccee35?.[_0x51dc93(0x153)]===_0x51dc93(0x15d)){_0x1a56f3=_0xccee35[_0x51dc93(0x189)];break;}}if(!_0x1a56f3)return;let _0xa1fd30=/\/([^/]+)\//[_0x51dc93(0x21c)](_0x1a56f3);this[_0x51dc93(0x1c7)]=(_0xa1fd30?_0x1a56f3[_0x51dc93(0x1ce)](_0xa1fd30[0x0],''):_0x1a56f3)[_0x51dc93(0x1ce)](/"/g,'')[_0x51dc93(0x1ce)](/\/+/g,'')['trim']()[_0x51dc93(0x109)](/\s+/)[_0x51dc93(0x247)](Boolean),this[_0x51dc93(0x1f7)]=_0xa1fd30?.[0x1]?.['trim']()['toUpperCase']()??'';}};function _0xdd4c(_0x176b06,_0x5bfcb1){_0x176b06=_0x176b06-0xf9;const _0x28be4b=_0x28be();let _0xdd4c18=_0x28be4b[_0x176b06];return _0xdd4c18;}import _0x5ffce5 from'jszip';var Z='\x0a';function me(_0x82bac2){const _0x4e2a39=_0x11810c;if(!_0x82bac2?.[_0x4e2a39(0x1eb)])return'';let _0x1dc363='',_0x2c4eef=!0x1;for(let _0x4acb79 of _0x82bac2){let _0x4300a6=y(_0x4acb79[_0x4e2a39(0x214)]());if(!_0x4300a6)continue;let {level:_0x4611d2,tag:_0x399db4,value:_0x59d974}=_0x4300a6;if(_0x4611d2==='0'&&_0x59d974===_0x4e2a39(0x169)&&_0x399db4[_0x4e2a39(0x183)]('@N')&&_0x399db4[_0x4e2a39(0x123)]('@')){_0x2c4eef=!0x0;continue;}if(_0x399db4===_0x4e2a39(0x169)){_0x1dc363=_0x59d974,_0x2c4eef=!0x0;continue;}if(_0x399db4===_0x4e2a39(0x11f)){_0x1dc363+=_0x59d974,_0x2c4eef=!0x0;continue;}if(_0x399db4===_0x4e2a39(0x17d)){_0x1dc363+=(_0x1dc363?'\x0a':'')+_0x59d974,_0x2c4eef=!0x0;continue;}}return _0x2c4eef?_0x1dc363[_0x4e2a39(0x1ce)](/\r\n/g,'\x0a')[_0x4e2a39(0x1ce)](/\r/g,'\x0a'):_0x82bac2['filter'](_0x326b8a=>_0x326b8a[_0x4e2a39(0x1eb)]>0x0)['join']('\x0a')['replace'](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a');}function he(_0x301a41,_0x274697){const _0x9036d5=_0x11810c;let _0x22e34c=me(_0x301a41[_0x9036d5(0x13b)]??[]);if(!_0x22e34c[_0x9036d5(0x127)]())return'';let _0x2f5323=_0x274697+0x1,_0x5709e9=_0x22e34c['split']('\x0a');for(;_0x5709e9[_0x9036d5(0x1eb)]>0x0&&_0x5709e9[0x0]==='';)_0x5709e9[_0x9036d5(0x233)]();if(_0x5709e9['length']===0x0)return'';let [_0x2bca9e,..._0x5c85d3]=_0x5709e9,_0x27277f=_0x274697+'\x20NOTE\x20'+_0x2bca9e+Z;return _0x5c85d3[_0x9036d5(0x1eb)]===0x0?_0x27277f:_0x27277f+_0x5c85d3[_0x9036d5(0xfc)](_0x11ace2=>_0x2f5323+'\x20CONT\x20'+_0x11ace2+Z)['join']('');}function k(_0xa45609,_0x3f1385){const _0x155787=_0x11810c;return _0xa45609?.[_0x155787(0x19d)]?.[_0x155787(0x1eb)]?_0xa45609['list']['map'](_0x3cdb61=>he(_0x3cdb61,_0x3f1385))['join'](''):'';}var d='\x0a',_=(_0x79d8f6,_0x510d5e,_0x4e5d72)=>{const _0x573553=_0x11810c;let _0x302d9d=_0x510d5e[_0x573553(0x13f)]?.[_0x573553(0x127)]();if(_0x302d9d&&_0x302d9d[_0x573553(0x1ee)]('/'))return _0x302d9d;let _0x5b5f23=_0x302d9d||_0x510d5e[_0x573553(0x122)][_0x573553(0x15b)];return _0x4e5d72[_0x573553(0x1eb)]===0x1?_0x4e5d72[0x0]+'/'+_0x79d8f6[_0x573553(0x164)]+'/'+_0x5b5f23:_0x573553(0xff)+(_0x4e5d72[_0x573553(0x1eb)]>0x1?_0x4e5d72['join']('-'):'unknown')+'/'+_0x79d8f6[_0x573553(0x164)]+'/'+_0x5b5f23;},q=(_0x18d78d,_0x4e239d)=>{const _0x436bc7=_0x11810c;let _0xd7c949=URL[_0x436bc7(0x1a7)](_0x18d78d),_0x227470=document['createElement']('a');_0x227470[_0x436bc7(0x218)]=_0xd7c949,_0x227470[_0x436bc7(0x1a9)]=_0x4e239d,_0x227470['click'](),setTimeout(()=>URL[_0x436bc7(0x10a)](_0xd7c949),0x0);},I=class{constructor(_0x266ce4,_0x5d765a,_0x5863df){const _0x2cb608=_0x11810c;a(this,'title'),a(this,'persons'),a(this,'onCreate',Date[_0x2cb608(0x163)]()),a(this,_0x2cb608(0x176),!0x1);let _0x2ee30c=_0x266ce4?.[_0x2cb608(0x127)]();this[_0x2cb608(0x21a)]=_0x2ee30c?_0x2ee30c+'_gedcom-ts_'+this['onCreate']:_0x2cb608(0x13e)+this[_0x2cb608(0x203)],this[_0x2cb608(0x235)]=_0x5d765a,this['haveFiles']=_0x5863df;}get['beginGedcom'](){const _0x511057=_0x11810c;let _0x33a27a=new Date(),_0x31fc8e={'day':_0x511057(0x181),'month':_0x511057(0x181),'year':'numeric'};return'0\x20HEAD'+d+'1\x20SOUR\x20generated\x20by\x20gedcom-ts'+d+_0x511057(0x182)+_0x33a27a['toLocaleDateString'](_0x511057(0x1f1),_0x31fc8e)+d+_0x511057(0x177)+_0x33a27a['toLocaleTimeString']('fr-FR')+d+_0x511057(0x156)+this[_0x511057(0x21a)]+d+'1\x20GEDC'+d+'2\x20FORM\x20LINEAGE-LINKED'+d+_0x511057(0x234)+d;}get['contentGedcom'](){const _0x565914=_0x11810c;return this[_0x565914(0x235)]['map'](_0x4c7835=>new V(_0x4c7835,this[_0x565914(0x176)])['line']())['join']('')+new H(this['persons'])[_0x565914(0x13b)]();}['gedcomBlob'](){const _0x3833cb=_0x11810c;return new Blob([''+this[_0x3833cb(0x144)]+this[_0x3833cb(0x1df)]+'TRLR'],{'type':_0x3833cb(0x104)});}},X=class extends I{constructor(..._0x2decda){const _0x3aa73b=_0x11810c;let [_0x428670,_0x2c2f78]=typeof _0x2decda[0x0]==_0x3aa73b(0x139)?[_0x2decda[0x0],_0x2decda[0x1]]:[void 0x0,_0x2decda[0x0]];super(_0x428670,_0x2c2f78,!0x0),a(this,'zip'),this[_0x3aa73b(0x210)]=new _0x5ffce5();}async[_0x11810c(0x1a9)](){const _0x3b2361=_0x11810c;this['zip'][_0x3b2361(0x122)](this['title']+'.ged',this['gedcomBlob']()),this['persons'][_0x3b2361(0x11d)](_0x5c1ec5=>{const _0x2bf09a=_0x3b2361;let _0x5131b3=this[_0x2bf09a(0x19b)](_0x5c1ec5);this[_0x2bf09a(0x18e)](_0x5c1ec5[_0x2bf09a(0x15e)],_0x5c1ec5[_0x2bf09a(0x11e)]['files'])[_0x2bf09a(0x11d)](_0x30ffdb=>{const _0xb4c051=_0x2bf09a;let _0x4f4c8a=this[_0xb4c051(0x1f2)](_0x30ffdb,_0x5131b3);this[_0xb4c051(0x197)](_0x30ffdb,_0x4f4c8a);}),_0x5c1ec5[_0x2bf09a(0x152)][_0x2bf09a(0x19d)]['forEach'](_0x54fa15=>{const _0x32b89a=_0x2bf09a;let _0x4205cd=this['resolveActIndis'](_0x5131b3,_0x54fa15);this['collectMediaFiles'](_0x54fa15['files'],_0x54fa15['multimediaFiles'][_0x32b89a(0x15e)])[_0x32b89a(0x11d)](_0xc8093e=>{const _0x14c53b=_0x32b89a;let _0xe15cee=_(_0x54fa15,_0xc8093e,_0x4205cd);this[_0x14c53b(0x197)](_0xc8093e,_0xe15cee);});});}),this[_0x3b2361(0x210)][_0x3b2361(0x175)]({'type':'blob','compression':_0x3b2361(0x1ec),'compressionOptions':{'level':0x9}})[_0x3b2361(0x236)](_0x48bd08=>{const _0x3f487b=_0x3b2361;q(_0x48bd08,this[_0x3f487b(0x21a)]+_0x3f487b(0x16f));});}['collectMediaFiles'](..._0x3bca43){const _0x48616f=_0x11810c;let _0x184676=new Map();for(let _0x30f92a of _0x3bca43)if(_0x30f92a?.[_0x48616f(0x1eb)])for(let _0x22fa95 of _0x30f92a){if(!_0x22fa95?.['file'])continue;let _0x27effb=_0x22fa95[_0x48616f(0x13f)]||_0x22fa95[_0x48616f(0x122)]['name'];_0x184676['has'](_0x27effb)||_0x184676['set'](_0x27effb,_0x22fa95);}return Array[_0x48616f(0x16a)](_0x184676['values']());}[_0x11810c(0x19b)](_0x53a9b8){const _0xf6f28a=_0x11810c;if(typeof _0x53a9b8['INDI']==_0xf6f28a(0x1da))return''+_0x53a9b8['INDI'];for(let _0x16d75a of _0x53a9b8['acts'][_0xf6f28a(0x19d)]){let _0x58e888=_0x16d75a['INDIS']['find'](_0x5c1c84=>typeof _0x5c1c84=='number');if(_0x58e888!==void 0x0)return''+_0x58e888;}return'';}[_0x11810c(0x168)](_0x21a80a,_0x3b286a){const _0x5e3c4b=_0x11810c;let _0xf99eb2=new Set();return _0x21a80a&&_0xf99eb2[_0x5e3c4b(0x19f)](_0x21a80a),_0x3b286a[_0x5e3c4b(0x193)][_0x5e3c4b(0x247)](_0x544aa8=>typeof _0x544aa8==_0x5e3c4b(0x1da))[_0x5e3c4b(0x11d)](_0x1dc831=>_0xf99eb2[_0x5e3c4b(0x19f)](''+_0x1dc831)),Array['from'](_0xf99eb2);}[_0x11810c(0x1f2)](_0x415fdb,_0x29f3e8){const _0x51366b=_0x11810c;let _0x9ba43f=_0x29f3e8[_0x51366b(0x1ce)](/\/+$/,''),_0x51709c=_0x415fdb['relativePath']?.[_0x51366b(0x127)]();if(_0x51709c&&_0x51709c[_0x51366b(0x1ee)]('/'))return _0x51709c;let _0x366789=_0x51709c||_0x415fdb[_0x51366b(0x122)]['name'];return _0x9ba43f?_0x9ba43f+'/'+_0x366789:_0x366789;}[_0x11810c(0x197)](_0xb0dd18,_0x14ca45){const _0x41789a=_0x11810c;let {file:_0x11c4e3,relativePath:_0x1052b3}=_0xb0dd18;_0x11c4e3&&this[_0x41789a(0x210)]['file'](_0x14ca45||_0x1052b3||_0x11c4e3[_0x41789a(0x15b)],_0x11c4e3);}},J=class extends I{constructor(..._0x10cf63){const _0x3e4322=_0x11810c;let [_0x54c877,_0x407936]=typeof _0x10cf63[0x0]==_0x3e4322(0x139)?[_0x10cf63[0x0],_0x10cf63[0x1]]:[void 0x0,_0x10cf63[0x0]];super(_0x54c877,_0x407936,!0x1);}[_0x11810c(0x1a9)](){const _0x4dd914=_0x11810c;q(this[_0x4dd914(0x15a)](),this['title']+_0x4dd914(0x174));}},H=class{constructor(_0x3b3b9f){a(this,'informationFamilies',new Map()),_0x3b3b9f['forEach'](_0x3d83e8=>{const _0x3c001e=_0xdd4c;let {FAMS:_0x4d19d7,FAMC:_0x4dfead,INDI:_0x35c13d}=_0x3d83e8;_0x4d19d7['length']>0x0&&this[_0x3c001e(0x1a4)]('1\x20'+(_0x3d83e8['SEX']==='M'?_0x3c001e(0x106):_0x3c001e(0x1a8))+'\x20@I'+_0x35c13d+'@\x0a',_0x4d19d7),_0x4dfead&&this[_0x3c001e(0x1a4)]('1\x20CHIL\x20@I'+_0x35c13d+'@\x0a',[_0x4dfead]);});}[_0x11810c(0x13b)](){const _0x3dbbd9=_0x11810c;let _0x371f15=[];for(let [_0xae3418,_0x495a55]of this['informationFamilies']['entries']())_0x371f15[_0x3dbbd9(0x100)](_0x3dbbd9(0x199)+_0xae3418+_0x3dbbd9(0x19a),_0x495a55[_0x3dbbd9(0x12e)](''));return _0x371f15[_0x3dbbd9(0x12e)]('');}[_0x11810c(0x1a4)](_0x1c2e63,_0x4f790b){const _0x44d53f=_0x11810c;_0x4f790b[_0x44d53f(0x11d)](_0x506287=>{const _0x5b5225=_0x44d53f;if(this[_0x5b5225(0x222)][_0x5b5225(0x10d)](_0x506287)){let _0xde37ec=this[_0x5b5225(0x222)][_0x5b5225(0x18a)](_0x506287);_0xde37ec[_0x5b5225(0x100)](_0x1c2e63),this['informationFamilies'][_0x5b5225(0x11b)](_0x506287,_0xde37ec);}else this[_0x5b5225(0x222)][_0x5b5225(0x11b)](_0x506287,[_0x1c2e63]);});}},V=class{constructor(_0x1cc197,_0x129e84){const _0xf3e435=_0x11810c;a(this,_0xf3e435(0x157)),a(this,_0xf3e435(0x15d)),a(this,_0xf3e435(0x1bb),''),a(this,_0xf3e435(0x1cc)),a(this,_0xf3e435(0x1ff)),a(this,'FILES',''),a(this,'ACTS',''),a(this,_0xf3e435(0x238),''),(this[_0xf3e435(0x157)]=this['getIndi'](_0x1cc197),this['NAME']=this[_0xf3e435(0x1c3)](_0x1cc197),this[_0xf3e435(0x1bb)]=this['getSex'](_0x1cc197),this[_0xf3e435(0x1cc)]=this[_0xf3e435(0x105)](_0x1cc197),this[_0xf3e435(0x1ff)]=this['getFamc'](_0x1cc197),_0x129e84&&_0x1cc197['multimediaFiles'][_0xf3e435(0x15e)]['length']>0x0&&(this[_0xf3e435(0x20e)]=this['getFiles'](_0x1cc197)),_0x1cc197[_0xf3e435(0x152)][_0xf3e435(0x19d)]?.['length']>0x0&&(this[_0xf3e435(0x12c)]=new Y(_0x1cc197)['line']()),_0x1cc197[_0xf3e435(0x191)][_0xf3e435(0x19d)]['length']>0x0&&(this[_0xf3e435(0x238)]=k(_0x1cc197[_0xf3e435(0x191)],0x1)));}['line'](){const _0x165a2d=_0x11810c;return this[_0x165a2d(0x157)]+this['NAME']+this[_0x165a2d(0x1bb)]+this[_0x165a2d(0x20e)]+this['ACTS']+this['NOTES']+this[_0x165a2d(0x1cc)]+this[_0x165a2d(0x1ff)];}[_0x11810c(0x1c0)](_0x26c7c7,_0x4e8dc2,_0x38a94b='1'){const _0x2732bc=_0x11810c;return _0x4e8dc2?.[_0x2732bc(0xfc)](_0x183372=>_0x38a94b+'\x20FILE\x20'+_0x26c7c7+'/'+_0x183372[_0x2732bc(0x12f)]+d)['join']('')??'';}['getIndi'](_0x3b268c){const _0x1b919a=_0x11810c;return _0x1b919a(0x107)+_0x3b268c[_0x1b919a(0x157)]+'@\x20INDI'+d;}[_0x11810c(0x1c3)](_0x356c68){const _0x509d16=_0x11810c;let _0x1eff7e=_0x356c68[_0x509d16(0x1c7)]?.[_0x509d16(0x1eb)]>0x0?[..._0x356c68[_0x509d16(0x1c7)]]:[],_0x521eae=_0x356c68[_0x509d16(0x1f7)]??'';if(_0x1eff7e||_0x521eae){let _0x57173a=_0x509d16(0x1ea);return _0x1eff7e&&_0x1eff7e['length']>0x0&&(_0x1eff7e[0x0]='\x22'+_0x1eff7e[0x0]+'\x22',_0x57173a+='\x20'+_0x1eff7e[_0x509d16(0x12e)]('\x20')),_0x521eae&&_0x521eae[_0x509d16(0x1eb)]>0x0&&(_0x57173a+='\x20/'+_0x521eae+'/'),_0x57173a+d;}return'';}[_0x11810c(0x17b)](_0x130dac){const _0x5c6e98=_0x11810c;return'1\x20SEX\x20'+_0x130dac[_0x5c6e98(0x1bb)]+d;}['getFiles'](_0x16896f){const _0xe835df=_0x11810c;return _0x16896f[_0xe835df(0x11e)]?.['files']['map'](_0x514527=>'1\x20FILE\x20'+_0x514527[_0xe835df(0x13f)]+d)['join']('')??'';}[_0x11810c(0x105)](_0x14b4e5){const _0x2bc48f=_0x11810c;return _0x14b4e5[_0x2bc48f(0x1cc)]['filter'](_0x2261aa=>_0x2261aa>=0x0)[_0x2bc48f(0xfc)](_0xfea51a=>'1\x20FAMS\x20@F'+_0xfea51a+'@'+d)[_0x2bc48f(0x12e)]('');}[_0x11810c(0x192)](_0x318158){const _0x677e4=_0x11810c;return _0x318158[_0x677e4(0x1ff)]?_0x677e4(0x1e9)+_0x318158[_0x677e4(0x1ff)]+'@'+d:'';}},j=class o{constructor(_0x57059a,_0x282eac){const _0x18fe9c=_0x11810c;a(this,'TYPE'),a(this,_0x18fe9c(0x138)),a(this,_0x18fe9c(0x17c)),a(this,_0x18fe9c(0x238)),a(this,'FILES'),a(this,'ownerIndi'),(this['ownerIndi']=_0x282eac,this[_0x18fe9c(0x1fc)]=this[_0x18fe9c(0x12b)](_0x57059a),this[_0x18fe9c(0x138)]=this[_0x18fe9c(0x212)](_0x57059a),this[_0x18fe9c(0x17c)]=this['getDate'](_0x57059a),this[_0x18fe9c(0x238)]=k(_0x57059a['notes'],0x2),this[_0x18fe9c(0x20e)]=this['getFile'](_0x57059a));}static[_0x11810c(0x111)](_0x2c0cf9){const _0x178e1b=_0x11810c;return _0x2c0cf9['date']?''+(_0x2c0cf9['day']?_0x2c0cf9[_0x178e1b(0xfd)]+'\x20':'')+(_0x2c0cf9['month']?_0x2c0cf9['month']+'\x20':'')+(_0x2c0cf9['year']?''+_0x2c0cf9[_0x178e1b(0x241)]:''):'';}['line'](){const _0x179e14=_0x11810c;return this[_0x179e14(0x1fc)]+this['DATE']+this[_0x179e14(0x138)]+this['NOTES']+this['FILES'];}[_0x11810c(0x23a)](_0xe27c4){const _0x31fa76=_0x11810c;let _0x53d1c1=new Map();return[..._0xe27c4[_0x31fa76(0x15e)],..._0xe27c4[_0x31fa76(0x11e)]['files']][_0x31fa76(0x11d)](_0x2437c0=>{const _0x257264=_0x31fa76;if(!_0x2437c0?.['file'])return;let _0x4e13e7=_0x2437c0['relativePath']||_0x2437c0[_0x257264(0x122)][_0x257264(0x15b)];_0x53d1c1[_0x257264(0x10d)](_0x4e13e7)||_0x53d1c1[_0x257264(0x11b)](_0x4e13e7,_0x2437c0);}),Array[_0x31fa76(0x16a)](_0x53d1c1['values']())[_0x31fa76(0xfc)](_0x123213=>{const _0x5c72ff=_0x31fa76;let _0x378d60=new Set();return typeof this[_0x5c72ff(0x131)]==_0x5c72ff(0x1da)&&_0x378d60['add'](''+this['ownerIndi']),_0xe27c4[_0x5c72ff(0x193)]['filter'](_0x3bbf94=>typeof _0x3bbf94==_0x5c72ff(0x1da))['forEach'](_0x1f620d=>_0x378d60[_0x5c72ff(0x19f)](''+_0x1f620d)),_0x5c72ff(0x12d)+_(_0xe27c4,_0x123213,Array[_0x5c72ff(0x16a)](_0x378d60))+d;})['join']('');}[_0x11810c(0x12b)](_0xace364){return'1\x20'+_0xace364['type']+d;}['getDate'](_0x1e2b09){const _0x3ddddc=_0x11810c;return _0x1e2b09?.[_0x3ddddc(0x1e0)]?.[_0x3ddddc(0x22d)]?_0x3ddddc(0x121)+o[_0x3ddddc(0x111)](_0x1e2b09[_0x3ddddc(0x1e0)])+d:'';}[_0x11810c(0x212)](_0x5e8a8a){const _0x40c386=_0x11810c;if(!_0x5e8a8a[_0x40c386(0x150)])return'';let {city:_0x25c030,coordinate:_0x10d572}=_0x5e8a8a[_0x40c386(0x150)];if(_0x25c030){let _0x5d191b='2\x20PLAC\x20'+_0x5e8a8a['place']['city']+d,_0x2d3092='';return _0x10d572[_0x40c386(0x1d3)]&&_0x10d572['longitude']&&(_0x2d3092='3\x20MAP'+d+_0x40c386(0x1fe)+_0x10d572[_0x40c386(0x1d3)]+d+'4\x20LONG\x20'+_0x10d572['longitude']+d),_0x5d191b+_0x2d3092;}return'';}},Y=class{constructor(_0x27ec6c){const _0x997d65=_0x11810c;a(this,'acts'),a(this,'INDI'),(this['acts']=_0x27ec6c['acts'][_0x997d65(0x19d)],this['INDI']=_0x27ec6c[_0x997d65(0x157)]);}['line'](){const _0x5ff755=_0x11810c;return this[_0x5ff755(0x152)][_0x5ff755(0xfc)](_0x55c51f=>new j(_0x55c51f,this['INDI'])[_0x5ff755(0x1cd)]())[_0x5ff755(0x12e)]('');}},w=class{constructor(_0x46bb4d){const _0x4b0155=_0x11810c;a(this,'informationPersons',[]),a(this,'informationFamilies',new Map()),a(this,'informationNotes',new Map()),_0x46bb4d!==void 0x0&&this[_0x4b0155(0x143)](_0x46bb4d);}['ingestGedcomText'](_0x3bb61e){const _0x5405e5=_0x11810c;let _0x468c9d=_0x3bb61e[_0x5405e5(0x109)]('\x0a')[_0x5405e5(0xfc)](_0x4f7374=>_0x4f7374[_0x5405e5(0x1ce)](/\r$/,'')),_0x236df7=[],_0x153732=()=>{const _0x47e573=_0x5405e5;_0x236df7[_0x47e573(0x1eb)]!==0x0&&(this['ingestRecordBlock'](_0x236df7['join']('\x0a')),_0x236df7=[]);};for(let _0xf70de4 of _0x468c9d)_0xf70de4[_0x5405e5(0x183)]('0\x20')?(_0x153732(),_0x236df7=[_0xf70de4]):_0x236df7[_0x5405e5(0x1eb)]>0x0&&_0x236df7['push'](_0xf70de4);_0x153732();}async[_0x11810c(0x1b3)](_0x1fcde3){const _0x16fd60=_0x11810c;if(typeof _0x1fcde3['stream']!=_0x16fd60(0x231)||typeof TextDecoderStream>'u'){this['ingestGedcomText'](await _0x1fcde3['text']());return;}let _0x52c913=_0x1fcde3[_0x16fd60(0x155)]()[_0x16fd60(0x1e2)](new TextDecoderStream())['getReader'](),_0x4ae911='',_0x4b43f9=null,_0xf02a0a=()=>{const _0xb3cacc=_0x16fd60;if(!_0x4b43f9||_0x4b43f9['length']===0x0){_0x4b43f9=null;return;}let _0x4ff8d1=_0x4b43f9['join']('\x0a');_0x4b43f9=null,this[_0xb3cacc(0x162)](_0x4ff8d1);};for(;;){let {done:_0x234c44,value:_0x3fe818}=await _0x52c913[_0x16fd60(0x200)]();if(_0x3fe818){_0x4ae911+=_0x3fe818;let _0x370675=_0x4ae911['indexOf']('\x0a');for(;_0x370675!==-0x1;){let _0x3a76cc=_0x4ae911[_0x16fd60(0x242)](0x0,_0x370675);_0x4ae911=_0x4ae911[_0x16fd60(0x242)](_0x370675+0x1),_0x370675=_0x4ae911['indexOf']('\x0a');let _0x30d39f=_0x3a76cc[_0x16fd60(0x1ce)](/\r$/,'');_0x30d39f[_0x16fd60(0x183)]('0\x20')?(_0xf02a0a(),_0x4b43f9=[_0x30d39f]):_0x4b43f9&&_0x4b43f9[_0x16fd60(0x100)](_0x30d39f);}}if(_0x234c44){if(_0x4ae911[_0x16fd60(0x1eb)]>0x0){let _0x890a3f=_0x4ae911[_0x16fd60(0x1ce)](/\r$/,'');_0x890a3f['startsWith']('0\x20')?(_0xf02a0a(),_0x4b43f9=[_0x890a3f]):_0x4b43f9&&_0x4b43f9[_0x16fd60(0x100)](_0x890a3f);}_0xf02a0a();break;}}}[_0x11810c(0x162)](_0x38f169){const _0x28ba5d=_0x11810c;let _0x1b576e=_0x38f169[_0x28ba5d(0x109)]('\x0a')[0x0]?.['trimStart']()??'',_0x5d3371=_0x1b576e['startsWith']('0\x20')?_0x1b576e[_0x28ba5d(0x242)](0x2):_0x1b576e;switch(''+_0x5d3371[0x0]+_0x5d3371[0x1]){case'@I':this['splitInformationPersons'](_0x38f169);break;case'@F':this['splitInformationFamilies'](_0x38f169);break;case'@N':this['splitInformationNotes'](_0x38f169);break;case'@S':break;default:break;}}['splitInformationPersons'](_0x3567a4){const _0x1a1379=_0x11810c;this['informationPersons']['push'](_0x3567a4[_0x1a1379(0x109)]('\x0a'));}['splitInformationFamilies'](_0x3ed1e4){const _0x3bb8ee=_0x11810c;let _0x42ecdf=this['extractXrefId'](_0x3ed1e4,'@F');if(_0x42ecdf===null)return;let _0x4d3d18=_0x3ed1e4['split']('\x0a')['slice'](0x1);this[_0x3bb8ee(0x222)][_0x3bb8ee(0x11b)](_0x42ecdf,_0x4d3d18);}[_0x11810c(0x110)](_0x176237){const _0x335780=_0x11810c;let _0x12035a=this[_0x335780(0x10e)](_0x176237,'@N');if(_0x12035a===null)return;let _0x530b82=_0x176237[_0x335780(0x109)]('\x0a')['slice'](0x1);this[_0x335780(0x221)]['set'](_0x12035a,_0x530b82);}[_0x11810c(0x10e)](_0x494b5a,_0x567262){const _0x43bd2c=_0x11810c;let _0x54ba77=_0x494b5a['indexOf'](_0x567262);if(_0x54ba77<0x0)return null;let _0x144a81=_0x494b5a[_0x43bd2c(0x11c)]('@',_0x54ba77+_0x567262['length']);if(_0x144a81<=_0x54ba77)return null;let _0x308a9b=_0x494b5a['slice'](_0x54ba77+_0x567262[_0x43bd2c(0x1eb)],_0x144a81);return/^\d+$/[_0x43bd2c(0x239)](_0x308a9b)?Number(_0x308a9b):null;}},K=_0x3b5173=>{const _0x36098a=_0x11810c;let _0x4694ff=_0x3b5173[_0x36098a(0xfc)](_0x4e6f1c=>_0x4e6f1c[_0x36098a(0x157)])['sort']((_0x496355,_0x296a74)=>_0x496355-_0x296a74);return _0x4694ff[_0x4694ff[_0x36098a(0x1eb)]-0x1]+0x1;},x=class o extends w{constructor(_0x31c53f,_0x698883,_0x57e79e,_0x42a335){const _0x2d176b=_0x11810c;super(_0x31c53f),a(this,_0x2d176b(0x235)),a(this,'mapPersons'),a(this,'partnersMap'),a(this,_0x2d176b(0x22b)),a(this,_0x2d176b(0x1b9)),a(this,_0x2d176b(0x128)),(this['mapFiles']=_0x698883??new Map(),this[_0x2d176b(0x128)]=_0x57e79e??new Map(),this[_0x2d176b(0x14f)]=_0x42a335??new Map(),_0x31c53f!==void 0x0&&this['finalizeAfterParse']());}static async['fromGedcomFile'](_0x4fd524,_0x1f4476,_0x25096a,_0x9cf56a){let _0xcaa867=new o(void 0x0,_0x1f4476,_0x25096a,_0x9cf56a);return await _0xcaa867['ingestGedcomFileStream'](_0x4fd524),_0xcaa867['finalizeAfterParse'](),_0xcaa867;}['finalizeAfterParse'](){const _0x2c8756=_0x11810c;this[_0x2c8756(0x235)]=this['createPersons'](),this[_0x2c8756(0x235)]?.[_0x2c8756(0x1eb)]>0x0&&this[_0x2c8756(0x235)]['forEach'](_0x547b46=>{const _0x24e1c2=_0x2c8756;let _0x2751f5=_0x547b46['acts'][_0x24e1c2(0x19d)];_0x2751f5['length']>0x0&&_0x2751f5[_0x24e1c2(0x11d)](_0x2f1e6d=>{const _0x42c626=_0x24e1c2;if(this['placesMap'][_0x42c626(0x10d)](_0x2f1e6d[_0x42c626(0x150)][_0x42c626(0x1d0)])){let {latitude:_0x389657,longitude:_0x23410f}=this['placesMap'][_0x42c626(0x18a)](_0x2f1e6d['place']['city'])[_0x42c626(0x17f)];(_0x389657===0x0||_0x389657)&&(_0x23410f===0x0||_0x23410f)||this['placesMap'][_0x42c626(0x11b)](_0x2f1e6d[_0x42c626(0x150)][_0x42c626(0x1d0)],_0x2f1e6d[_0x42c626(0x150)]);}else this[_0x42c626(0x128)]['set'](_0x2f1e6d[_0x42c626(0x150)][_0x42c626(0x1d0)],_0x2f1e6d[_0x42c626(0x150)]);});}),this[_0x2c8756(0x1f9)]=new Map(),this[_0x2c8756(0x22b)]=new Map(),this[_0x2c8756(0x207)]();}['groupPartners'](){const _0x366969=_0x11810c;[...this[_0x366969(0x235)]]['forEach'](_0x2cab5f=>{const _0x396408=_0x366969;if(_0x2cab5f[_0x396408(0x1cc)]?.[_0x396408(0x1eb)]>0x0&&_0x2cab5f['FAMS']['forEach'](_0x3e4748=>{const _0x4060f8=_0x396408;let _0x423634=[_0x2cab5f];this['partnersMap'][_0x4060f8(0x10d)](_0x3e4748)&&(_0x423634=[..._0x423634,...this['partnersMap'][_0x4060f8(0x18a)](_0x3e4748)]),this[_0x4060f8(0x1f9)]['set'](_0x3e4748,_0x423634);}),_0x2cab5f['FAMC']){let _0x22ad22=[_0x2cab5f];this[_0x396408(0x22b)]['has'](_0x2cab5f['FAMC'])&&(_0x22ad22=[..._0x22ad22,...this[_0x396408(0x22b)]['get'](_0x2cab5f['FAMC'])]),this[_0x396408(0x22b)][_0x396408(0x11b)](_0x2cab5f['FAMC'],_0x22ad22);}});}['createDirectAncestries'](_0xdc4824){const _0x11ad4d=_0x11810c;return this['haveParentsOfPerson'](_0xdc4824,[])[_0x11ad4d(0x20b)]((_0x3cd26b,_0x5a9f4b)=>_0x3cd26b['sosa']-_0x5a9f4b[_0x11ad4d(0x21d)]);}['generateUniqueIndi'](){return K(this['persons']);}[_0x11810c(0x10b)](_0x442e8a,_0x287b54,_0x10e9ea){const _0x2d2b7e=_0x11810c;let _0x2fd7ad=Object[_0x2d2b7e(0x244)]({},_0x442e8a);if(_0x2fd7ad['sosa']=_0x10e9ea?_0x10e9ea*0x2+(_0x442e8a[_0x2d2b7e(0x1bb)]==='F'?0x1:0x0):0x1,this['partnersMap']['has'](_0x2fd7ad['FAMC'])){let _0x223192=[...this[_0x2d2b7e(0x1f9)][_0x2d2b7e(0x18a)](_0x2fd7ad[_0x2d2b7e(0x1ff)])];_0x223192&&_0x223192[_0x2d2b7e(0x1eb)]>0x0&&_0x223192[_0x2d2b7e(0x11d)](_0x25290b=>{const _0x1fa61f=_0x2d2b7e;this[_0x1fa61f(0x10b)](_0x25290b,_0x287b54,_0x2fd7ad['sosa']);});}return _0x287b54['push'](_0x2fd7ad),_0x287b54;}['createPersons'](){const _0x56ef61=_0x11810c;return this[_0x56ef61(0x1d4)]?.['length']>0x0?this['informationPersons'][_0x56ef61(0xfc)](_0x3024f4=>{const _0x1a6932=_0x56ef61;let _0x289057=new R();return _0x289057[_0x1a6932(0x246)](_0x3024f4,this[_0x1a6932(0x222)],this[_0x1a6932(0x1b9)],this[_0x1a6932(0x221)]),this[_0x1a6932(0x14f)][_0x1a6932(0x11b)](_0x289057[_0x1a6932(0x157)],_0x289057),_0x289057;})[_0x56ef61(0x20b)]((_0x3b7444,_0x453b4b)=>_0x3b7444[_0x56ef61(0x1ff)]-_0x453b4b[_0x56ef61(0x1ff)]):[];}};import _0x4459ae from'jszip';var de=async _0x7579e=>{const _0x380878=_0x11810c;if(_0x7579e&&_0x7579e instanceof File){let {type:_0x4cdeb0}=_0x7579e;return _0x4cdeb0===_0x380878(0x1c2)?ge(_0x7579e):Q(_0x7579e);}throw new Error('file\x20must\x20be\x20a\x20File');},Q=async(_0x33045b,_0x3a030a)=>{const _0x437463=_0x11810c;if(_0x33045b){if(/\.ged$/[_0x437463(0x239)](_0x33045b?.[_0x437463(0x15b)]))return x[_0x437463(0x20d)](_0x33045b,_0x3a030a);throw new Error(_0x437463(0x160));}throw new Error('Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File');},fe=async(_0x14c1ab,_0x45e329)=>{const _0x40be99=_0x11810c;let _0x557b1e=await _0x14c1ab[_0x40be99(0x19c)](_0x40be99(0x18b)),_0x41b7a3=_0x557b1e[_0x40be99(0x170)][_0x40be99(0x242)](_0x557b1e['byteOffset'],_0x557b1e['byteOffset']+_0x557b1e[_0x40be99(0x18f)]),_0xf22e0e=new Blob([_0x41b7a3]);return new File([_0xf22e0e],_0x45e329);},Ae=async _0x41eaee=>{const _0x23134a=_0x11810c;let _0x5410e8=await new _0x4459ae()[_0x23134a(0x1ba)](_0x41eaee),_0x4279b0=new Map(),_0x15e3d8=[];return _0x5410e8[_0x23134a(0x11d)]((_0x67bc6c,_0x256d38)=>{const _0x1c9f94=_0x23134a;_0x256d38[_0x1c9f94(0x23d)]||_0x15e3d8[_0x1c9f94(0x100)](new Promise((_0x5ec5bd,_0x5a2dd5)=>{const _0x4d907d=_0x1c9f94;fe(_0x256d38,_0x67bc6c)[_0x4d907d(0x236)](_0xfd289b=>{const _0x1119a8=_0x4d907d;_0x4279b0[_0x1119a8(0x11b)](_0x67bc6c,_0xfd289b),_0x5ec5bd();})['catch'](_0x5a2dd5);}));}),await Promise[_0x23134a(0x147)](_0x15e3d8),_0x4279b0;},ge=async _0x2673b0=>{const _0x592b19=_0x11810c;if(_0x2673b0){let _0x5df0e5=await Ae(_0x2673b0['slice']()),_0x22d945=/\.ged$/;for(let _0x47391c of _0x5df0e5['keys']())if(_0x22d945[_0x592b19(0x239)](_0x47391c))return await Q(_0x5df0e5[_0x592b19(0x18a)](_0x47391c),_0x5df0e5);throw new Error(_0x592b19(0x1b7));}throw new Error(_0x592b19(0x186));};function Me(_0x47a79b,_0x5ecc47){const _0x86b778=_0x11810c;let _0x375e54=_0x86b778(0x1e8)+encodeURIComponent(_0x47a79b)+_0x86b778(0x114),_0x6b3955=new XMLHttpRequest();_0x6b3955['open'](_0x86b778(0x22c),_0x375e54,!0x0),_0x6b3955['onload']=function(){const _0x216f50=_0x86b778;if(_0x6b3955['status']>=0xc8&&_0x6b3955[_0x216f50(0x158)]<0x190){let _0x4a6754=JSON['parse'](_0x6b3955['responseText'])['map'](_0xfded9=>{const _0xb35a71=_0x216f50;let {display_name:_0x41e255,lat:_0x4c5eac,lon:_0x169d64}=_0xfded9,_0x2bd399=_0x41e255[_0xb35a71(0x109)](',\x20'),_0x59cf86=_0x2bd399[0x0]+',\x20'+_0x2bd399[_0x2bd399[_0xb35a71(0x1eb)]-0x2]+',\x20'+_0x2bd399[_0x2bd399['length']-0x1];return new F(_0x59cf86,new N(_0x4c5eac,_0x169d64));});_0x5ecc47(_0x4a6754);}else _0x5ecc47([]);},_0x6b3955['onerror']=function(){_0x5ecc47([]);},_0x6b3955[_0x86b778(0x215)]();}var ee=(_0x2de4ac,_0x4c2e49,_0x287b62,_0x3fb1f1)=>{const _0x2a1746=_0x11810c;if(_0x3fb1f1=_0x3fb1f1??new Map(),_0x287b62=_0x287b62??0x1,_0x3fb1f1[_0x2a1746(0x11b)](_0x2de4ac[_0x2a1746(0x157)],_0x287b62),_0x4c2e49['has'](_0x2de4ac['FAMC'])){let _0x3da594=_0x4c2e49[_0x2a1746(0x18a)](_0x2de4ac[_0x2a1746(0x1ff)]);_0x3da594?.[_0x2a1746(0x1eb)]>0x1&&(_0x3da594=[..._0x3da594][_0x2a1746(0x20b)]((_0x56a938,_0x4a92a0)=>_0x56a938[_0x2a1746(0x1bb)]&&_0x4a92a0[_0x2a1746(0x1bb)]?_0x4a92a0['SEX'][_0x2a1746(0x1ab)](_0x56a938[_0x2a1746(0x1bb)]):0x0)),_0x3da594['forEach'](_0x2849f7=>{const _0x49d8c9=_0x2a1746;_0x2849f7['SEX']&&(_0x3fb1f1=ee(_0x2849f7,_0x4c2e49,_0x287b62*0x2+(_0x2849f7[_0x49d8c9(0x1bb)]==='M'?0x0:0x1),_0x3fb1f1));});}return _0x3fb1f1;},Fe=(_0x586293,_0xbd9153)=>{const _0xf72d95=_0x11810c;let _0x489c8e=[_0xf72d95(0x223),_0xf72d95(0x1a2)],_0x4d5989=[..._0x586293[_0xf72d95(0x19d)]][_0xf72d95(0xfc)](_0x515639=>_0x515639['type']);return _0x489c8e=[..._0x489c8e]['filter'](_0x50abc7=>!_0x4d5989['includes'](_0x50abc7)),_0x489c8e['push'](_0xf72d95(0x22a)),_0xbd9153&&([..._0x489c8e][_0xf72d95(0x1ee)](_0xbd9153['type'])||_0x489c8e['push'](_0xbd9153[_0xf72d95(0x164)])),_0x489c8e;},O=class extends M{constructor(_0x1abd26){super(),a(this,'year'),this['year']=_0x1abd26;}},z=class{constructor(_0x558e0e){const _0x4c8adb=_0x11810c;a(this,_0x4c8adb(0x1b1),[]),(this[_0x4c8adb(0x1b1)]=[..._0x558e0e]['reduce']((_0x1849d7,_0x4cf8c4)=>{const _0x39c6fc=_0x4c8adb;let _0x5d57d1,{dateAct:_0x5b561b,INDIS:_0x1bda6c}=_0x4cf8c4;if(_0x5b561b?.[_0x39c6fc(0x241)]){let _0x5438e2=Number(_0x5b561b[_0x39c6fc(0x241)]),_0x57333e=_0x1849d7[_0x39c6fc(0x148)](_0x210559=>_0x210559?.['year']===_0x5438e2);_0x57333e>=0x0?(_0x5d57d1=_0x1849d7[_0x57333e],_0x5d57d1['list'][_0x39c6fc(0x206)](_0x526c0c=>_0x526c0c[_0x39c6fc(0x193)]['find'](_0x5a2391=>_0x1bda6c[_0x39c6fc(0x1ee)](_0x5a2391)))||(_0x5d57d1[_0x39c6fc(0x19f)](_0x4cf8c4),_0x1849d7[_0x57333e]=_0x5d57d1)):(_0x5d57d1=new O(_0x5438e2),_0x5d57d1[_0x39c6fc(0x19f)](_0x4cf8c4),_0x1849d7['push'](_0x5d57d1));}return _0x1849d7;},[]),this[_0x4c8adb(0x1d9)]());}[_0x11810c(0x1d9)](){const _0x9bead1=_0x11810c;this[_0x9bead1(0x1b1)]=[...this['events']][_0x9bead1(0x20b)]((_0x2e9734,_0x165415)=>_0x2e9734['year']-_0x165415[_0x9bead1(0x241)]);}};function _0x28be(){const _0xe5af24=['byteLength','AUTH','notes','getFamc','INDIS','createMultimediaFilesFromValue','3730UWPmPH','JAN','zipFile','parsePersonLine','0\x20@F','@\x20FAM\x0a','resolvePersonIndi','async','list','4155291anhUYg','add','MARS','RELI','DEAT','CHRA','setInformationFamilies','16bpRFiQ','NMR','createObjectURL','WIFE','download','TEXT','localeCompare','RETI','826sqgZzK','RELA','ORDI','NSFX','events','1\x20BIRT','ingestGedcomFileStream','AUG','1\x20DEAT','DIV','You\x20don\x27t\x20have\x20any\x20.ged\x20File\x20in\x20your\x20.gdz\x20File','ADOP','mapFiles','loadAsync','SEX','GEDC','NATI','longitude','createSexFromValue','getFileLines','SEP','application/zip','getName','TRLR','STAE','keysFiles','firstnames','mediaRelativePathsInUse','310jkYbmu','CHAR','COPR','FAMS','line','replace','ANCE','city','PUBL','PAGE','latitude','informationPersons','CHIL','ANUL','EMIG','extractActsInfo','sortByYear','number','8bjrAYI','CORP','TIME','FAM','contentGedcom','dateAct','QUAY','pipeThrough','SURN','FILE','updatePlace','getDate','GIVN','https://nominatim.openstreetmap.org/search.php?city=','1\x20FAMC\x20@F','1\x20NAME','length','DEFLATE','CAUS','includes','APR','ORDN','fr-FR','resolveZipPath','CTRY','REPO','JUN','ENDL','lastname','removeFromIndex','partnersMap','isValid','DESI','TYPE','PHON','4\x20LATI\x20','FAMC','read','1\x20WIFE','MAY','onCreate','OCT','createIndiFromZeroLine','find','groupPartners','EVEN','keys','EDUC','sort','IDNO','fromGedcomFile','FILES','CITY','zip','RESN','getPlace','MARC','trimStart','send','ADDR','SLGS','href','21570BgjJFa','title','AFN','exec','sosa','updateLines','updateDateAct','sortByDate','informationNotes','informationFamilies','BIRT','ALIA','GRAD','DSCR','addCity','PLAC','SUBM','MARR','childsMap','GET','date','STAT','CALN','CENS','function','convertToActs','shift','1\x20CHAR\x20UTF-8','persons','then','addCoordinates','NOTES','test','getFile','BLES','ROLE','dir','month','MEDI','SSN','year','slice','addNoteFromGedcom','assign','RESI','createPersonJson','filter','8540ZZxeyZ','ANCI','CONL','LATI','map','day','4763ZXZWab','media/events/','push','JUL','typeDateAct','NICK','application/x-gedcom','getFams','HUSB','0\x20@I','OCCU','split','revokeObjectURL','haveParentsOfPerson','ADDR1','has','extractXrefId','TEMP','splitInformationNotes','formatDate','SUBN','CONF','&polygon_geojson=1&format=jsonv2','DATA','addIndis','DEST','NATU','IMMI','NCHI','set','indexOf','forEach','multimediaFiles','CONC','removeLines','2\x20DATE\x20','file','endsWith','RIN','NPFX','RFN','trim','placesMap','CHR','SPFX','getType','ACTS','2\x20FILE\x20','join','filename','FEB','ownerIndi','CAST','MARB','addMultimedia','createFirstnamesAndLastnameJson','FAMF','BLOB','PLACE','string','PROP','lines','1\x20HUSB','PEDI','gedcom-ts_','relativePath','40018440gdcned','addNote','PROB','ingestGedcomText','beginGedcom','MAR','AGE','all','findIndex','removeAll','HEAD','TITL','BARM','Impossible\x20de\x20trouver\x20un\x20nom\x20de\x20fichier\x20média\x20disponible','6566706fmxsFY','mapPersons','place','splice','acts','tag','289882DExkbc','stream','1\x20FILE\x20','INDI','status','newMultimediaFiles','gedcomBlob','name','CREM','NAME','files','SLGC','Le\x20type\x20doit-être\x20au\x20format:\x20application/x-gedcom','convertMonth','ingestRecordBlock','now','type','updateFromIndex','inconnue','POST','resolveActIndis','NOTE','from','DESC','BEF','values','LANG','.zip','buffer','ASSO','FCOM','BAPM','.ged','generateAsync','haveFiles','2\x20TIME\x20','NOV','MARL','updateType','getSex','DATE','CONT','BASM','coordinate','size','2-digit','1\x20DATE\x20','startsWith','VERS','BURI','Le\x20fichier\x20envoyé\x20doit-etre\x20un\x20File','LONG','SOUR','value','get','uint8array','ENGA','ABT','collectMediaFiles'];_0x28be=function(){return _0xe5af24;};return _0x28be();}export{$ as Act,M as Acts,O as ActsByYear,N as CoordinateGPS,S as DateAct,z as EventsByYears,J as ExportGedcomFile,X as ExportGedzipFile,P as Identificator,E as MultimediaFile,g as MultimediaFiles,v as Note,b as Notes,R as Person,F as Place,x as ReadGed,D as Sex,ee as createSosaMap,oe as dateToDateLine,G as days,Me as getCityCoordinates,de as importGedFile,U as months,Fe as remainingTypesAct};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rebuilds one logical note string from stored lines (inline text and/or NOTE/CONC/CONT sub-lines).
|
|
3
|
+
*/
|
|
4
|
+
export declare function mergeNotePayloadLines(lines: string[]): string;
|
|
5
|
+
export declare function gedcomFragmentForNote(note: {
|
|
6
|
+
lines?: string[];
|
|
7
|
+
}, noteLevel: number): string;
|
|
8
|
+
export declare function gedcomFragmentForNotes(notes: {
|
|
9
|
+
list: {
|
|
10
|
+
lines?: string[];
|
|
11
|
+
}[];
|
|
12
|
+
} | undefined, noteLevel: number): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ParsedGedcomLine = {
|
|
2
|
+
level: string;
|
|
3
|
+
tag: string;
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Parse a single GEDCOM data line into `{ tag, value }` after the leading level.
|
|
8
|
+
*
|
|
9
|
+
* Example:
|
|
10
|
+
* - `"1 NAME Jean /Dupont/"` -> `{ tag: "NAME", value: "Jean /Dupont/" }`
|
|
11
|
+
* - `"2 DATE 1 JAN 1900"` -> `{ tag: "DATE", value: "1 JAN 1900" }`
|
|
12
|
+
*/
|
|
13
|
+
export declare function parseGedcomLine(rawLine: string): ParsedGedcomLine | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Produit un chemin `base/nomFichier` encore absent de `usedPaths`.
|
|
3
|
+
* En cas de collision sur le nom, utilise `nom_1.ext`, `nom_2.ext`, etc.
|
|
4
|
+
*
|
|
5
|
+
* @param base — préfixe sans slash final (ex. `1` ou `1/BIRT`)
|
|
6
|
+
* @param filename — nom de fichier seul (sans chemin)
|
|
7
|
+
* @param usedPaths — chemins déjà pris (clés map ou `relativePath` existants)
|
|
8
|
+
*/
|
|
9
|
+
export declare function nextAvailableRelativeMediaPath(base: string, filename: string, usedPaths: Iterable<string>): string;
|
package/package.json
CHANGED
|
@@ -1,29 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gedcom-ts",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.",
|
|
5
5
|
"author": "Bertrand Jaunet <bertrand.jaunet@gmail.com>",
|
|
6
|
-
"license": "
|
|
7
|
-
"
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/*",
|
|
9
|
+
"LICENSE"
|
|
10
|
+
],
|
|
11
|
+
"main": "dist/index.cjs",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"module": "dist/index.mjs",
|
|
8
14
|
"types": "dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"require": "./dist/index.cjs",
|
|
19
|
+
"import": "./dist/index.mjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
9
22
|
"scripts": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
23
|
+
"clean": "rm -rf dist",
|
|
24
|
+
"typecheck": "tsc --noEmit",
|
|
25
|
+
"build:js": "node build.js",
|
|
26
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
27
|
+
"build": "npm run clean && npm run build:js && npm run build:types",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:watch": "vitest",
|
|
30
|
+
"tgz": "npm run build && npm pack --pack-destination .",
|
|
31
|
+
"pack": "npm run tgz",
|
|
32
|
+
"prepublishOnly": "npm run typecheck && npm run test && npm run build",
|
|
33
|
+
"lint": "eslint .",
|
|
34
|
+
"lint:fix": "eslint . --fix"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"jszip": "^3.10.1"
|
|
12
38
|
},
|
|
13
39
|
"devDependencies": {
|
|
14
|
-
"@
|
|
40
|
+
"@eslint/js": "^10.0.1",
|
|
15
41
|
"@types/node": "^20.3.1",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
42
|
+
"esbuild": "^0.28.0",
|
|
43
|
+
"eslint": "^10.3.0",
|
|
44
|
+
"globals": "^17.6.0",
|
|
45
|
+
"javascript-obfuscator": "^5.4.2",
|
|
46
|
+
"jsdom": "^29.1.1",
|
|
47
|
+
"typescript": "^5.1.3",
|
|
48
|
+
"typescript-eslint": "^8.59.1",
|
|
49
|
+
"vitest": "^4.1.5"
|
|
19
50
|
},
|
|
20
51
|
"keywords": [
|
|
21
52
|
"genealogy",
|
|
22
53
|
"gedcom",
|
|
23
|
-
"
|
|
54
|
+
"family-tree",
|
|
55
|
+
"ancestry",
|
|
56
|
+
"genealogie",
|
|
57
|
+
"ged",
|
|
58
|
+
"zip",
|
|
59
|
+
"import",
|
|
60
|
+
"export",
|
|
24
61
|
"tree",
|
|
25
62
|
"typescript",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
63
|
+
"browser",
|
|
64
|
+
"frontend"
|
|
28
65
|
]
|
|
29
66
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes of gedcom-ts
|
|
4
|
-
|
|
5
|
-
## [1.0.9] - 2023-06-16
|
|
6
|
-
|
|
7
|
-
### Added
|
|
8
|
-
|
|
9
|
-
- support multiple FAMS
|
|
10
|
-
|
|
11
|
-
## [1.0.8] - 2023-06-15
|
|
12
|
-
|
|
13
|
-
### Added
|
|
14
|
-
|
|
15
|
-
- all right reserved - proprietary code explicit in licence package
|
|
16
|
-
|
|
17
|
-
## [1.0.7] - 2023-06-15
|
|
18
|
-
|
|
19
|
-
### Added
|
|
20
|
-
|
|
21
|
-
- FAMS and FAMC are exported
|
|
22
|
-
|
|
23
|
-
## [1.0.6] - 2023-06-15
|
|
24
|
-
|
|
25
|
-
### Added
|
|
26
|
-
|
|
27
|
-
- export birth and death date and place
|
|
28
|
-
|
|
29
|
-
## [1.0.5] - 2023-06-10
|
|
30
|
-
|
|
31
|
-
### Added
|
|
32
|
-
|
|
33
|
-
- act birth and death
|
|
34
|
-
|
|
35
|
-
## [1.0.4] - 2020-03-10
|
|
36
|
-
|
|
37
|
-
### Added
|
|
38
|
-
|
|
39
|
-
- read FAMS (code for two parents) and FAMC (code for childs). It's same code between them.
|
|
40
|
-
- read Sex with two possibilities: M or F
|
|
41
|
-
- group partnersMap, it's a map for all parents
|
|
42
|
-
- jest / test in People / runner
|
|
43
|
-
- createDirectAncestries
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
## 1.0.3 - 2019-10-01
|
|
47
|
-
|
|
48
|
-
### Added
|
|
49
|
-
|
|
50
|
-
- add import gedcom file and return a JSON data model of an array of People. It just extract names and firstnames
|
|
51
|
-
|
|
52
|
-
## 1.0.2-alpha - 2019-09-01
|
|
53
|
-
|
|
54
|
-
### Added
|
|
55
|
-
|
|
56
|
-
- export for birth and death in gedcom
|
|
57
|
-
- All identificators can be used for a developper. It's an enum of properties used for all gedcom
|
|
58
|
-
- City is removed and replaced by Place. Place gets more informations
|
package/dist/commons/Act.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export class Act {
|
|
2
|
-
dateAct;
|
|
3
|
-
place;
|
|
4
|
-
act;
|
|
5
|
-
files;
|
|
6
|
-
constructor(dateAct, place, act, files) {
|
|
7
|
-
if (dateAct) {
|
|
8
|
-
this.dateAct = dateAct;
|
|
9
|
-
}
|
|
10
|
-
if (place) {
|
|
11
|
-
this.place = place;
|
|
12
|
-
}
|
|
13
|
-
if (act) {
|
|
14
|
-
this.act = act;
|
|
15
|
-
}
|
|
16
|
-
if (files) {
|
|
17
|
-
this.files = files;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|