flughaveno-sdk 1.4.7 → 1.4.8

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.
@@ -104,7 +104,7 @@ var N=["جنوری","فروری","مارچ","اپریل","مئی","جون","جو
104
104
  //! moment.js locale configuration
105
105
  var N=M.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(M,N,D){return M<11?"ekuseni":M<15?"emini":M<19?"entsambama":"ebusuku"},meridiemHour:function(M,N){return 12===M&&(M=0),"ekuseni"===N?M:"emini"===N?M>=11?M:M+12:"entsambama"===N||"ebusuku"===N?0===M?0:M+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return N}))},"52d4":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA2MC4xICg4ODEzMykgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+cGljdG9ncmFtYXMgLyBCdXMtZ3JhbmRlX1Q8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0icGljdG9ncmFtYXMtLy1CdXMtZ3JhbmRlX1QiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik02Ni4zLDc0IEwxMTEuMyw3NCBMMTExLjMsMzIgTDY2LjMsMzIgTDY2LjMsNzQgWiBNMTUuMywzNC41IEMxNS4zLDMzLjEgMTYuNCwzMiAxNy44LDMyIEw2MC4zLDMyIEw2MC4zLDc0IEwxNS4zLDc0IEwxNS4zLDM0LjUgWiBNNzcuOSwxMTAuNyBDODUuNywxMTAuNyA5MiwxMTcgOTIsMTI0LjggQzkyLDEzMi42IDg1LjcsMTM4Ljg5OSA3Ny45LDEzOC44OTkgQzcwLjEsMTM4Ljg5OSA2My44LDEzMi42IDYzLjgsMTI0LjggQzYzLjgsMTE3LjEgNzAuMSwxMTAuNyA3Ny45LDExMC43IEw3Ny45LDExMC43IFogTTE0NCwzMiBDMTQ0LjcsMzIgMTQ1LjMsMzEuNCAxNDUuMywzMC43IEwxNDUuMywyNy4zIEMxNDUuMywyNi42IDE0NC43LDI2IDE0NCwyNiBMMTQzLjMsMjYgTDE3LjgsMjYgQzEzLjEsMjYgOS4zLDI5LjggOS4zLDM0LjUgTDkuMywxMTQuMSBDOS4zLDEyMy4zOTkgMTYuOCwxMzEgMjYuMSwxMzEgTDU4LjgsMTMxIEM2MS40LDEzOS4xIDY5LDE0NSA3OCwxNDUgQzg2LjksMTQ1IDk0LjUsMTM5IDk3LjIsMTMxIEwxNDIuMywxMzEgTDE0NCwxMzEgQzE0NC43LDEzMSAxNDUuMywxMzAuMzk5IDE0NS4zLDEyOS43IEwxNDUuMywxMjYuMyBDMTQ1LjMsMTI1LjYgMTQ0LjcsMTI1IDE0NCwxMjUgTDE0My4zLDEyNSBMOTgsMTI1IEw5OCwxMjQuOCBDOTgsMTEzLjcgODksMTA0LjcgNzcuOSwxMDQuNyBDNjYuOCwxMDQuNyA1Ny44LDExMy43IDU3LjgsMTI0LjggTDU3LjgsMTI1IEwyNi4xLDEyNSBDMjAuMiwxMjUgMTUuMywxMjAuMSAxNS4zLDExNC4xIEwxNS4zLDgwIEwxNDMuMyw4MCBMMTQ0LDgwIEMxNDQuNyw4MCAxNDUuMyw3OS4zOTkgMTQ1LjMsNzguNyBMMTQ1LjMsNzUuMyBDMTQ1LjMsNzQuNiAxNDQuNyw3NCAxNDQsNzQgTDE0Mi4zLDc0IEwxMTcuMyw3NCBMMTE3LjMsMzIgTDE0Mi4zLDMyIEwxNDQsMzIgWiIgaWQ9IkZpbGwtMSIgZmlsbD0iIzFBMjczMiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4="},"52d8":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wY18yOS1tayIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEzNCwxMTkgTDEzNCwzNSBDMTM0LDI2LjcxNjE0NTggMTI3LjI4Mzg1NCwyMCAxMTksMjAgTDM1LDIwIEMyNi43MTYxNDU4LDIwIDIwLDI2LjcxNjE0NTggMjAsMzUgTDIwLDExOSBDMjAsMTI3LjI4Mzg1NCAyNi43MTYxNDU4LDEzNCAzNSwxMzQgTDExOSwxMzQgQzEyNy4yODM4NTQsMTM0IDEzNCwxMjcuMjgzODU0IDEzNCwxMTkgWiIgaWQ9ImJvcmRlLXJlc3BldG8iIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICA8ZyBpZD0icG9pLS8tcGNfMjkiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjOEVCQUU1Ij48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik03Mi4zOTg4LDEwOC44NDMzIEM3MS4zMDU4LDExMS42MzUzIDY5LjYzMjgsMTE0LjI1MjMgNjcuMzc1OCwxMTYuNTA4MyBDNTguNjI4OCwxMjUuMjU2MyA0NC40NDc4LDEyNS4yNTYzIDM1LjcwMTgsMTE2LjUwODMgQzI2Ljk1MzgsMTA3Ljc2MjMgMjYuOTUzOCw5My41ODEzIDM1LjcwMTgsODQuODM0MyBDMzcuOTQ5OCw4Mi41ODMzIDQwLjU1NzgsODAuOTE2MyA0My4zMzk4LDc5LjgyMjMgQzQwLjE5NjgsODcuODU3MyA0MS43NzE4LDk3LjQ1ODMgNDguMjYxOCwxMDMuOTQ4MyBDNTQuNzEwOCwxMTAuMzk2MyA2NC4xMTQ4LDExMi4wOTEzIDcyLjExNTgsMTA5LjAyOTMgTDcyLjM5ODgsMTA4Ljg0MzMgWiBNOTguODI2OCwzMC4yOTMzIEMxMTAuODI2OCwzMC4yOTMzIDEyMC41NTU4LDQwLjAyMTMgMTIwLjU1NTgsNTIuMDI0MyBDMTIwLjU1NTgsNjQuMDI0MyAxMTAuODI2OCw3My43NTMzIDk4LjgyNjgsNzMuNzUzMyBDODYuODI0OCw3My43NTMzIDc3LjA5NzgsNjQuMDI0MyA3Ny4wOTc4LDUyLjAyNDMgQzc3LjA5NzgsNDAuMDIxMyA4Ni44MjQ4LDMwLjI5MzMgOTguODI2OCwzMC4yOTMzIEw5OC44MjY4LDMwLjI5MzMgWiBNNDguODg3OCw1MC4zMDkzIEwzNS41MzQ4LDUwLjMwOTMgQzMzLjQxMzgsNTAuMzA5MyAzMS42OTU4LDQ4LjY4NDMgMzEuNjk1OCw0Ni42NzczIEMzMS42OTU4LDQ0LjY3MzMgMzMuNDEzOCw0My4wNDkzIDM1LjUzNDgsNDMuMDQ5MyBMNDguODg5OCw0My4wNDkzIEw0OC44NzQ4LDM0LjE4NDMgQzQ4Ljg3NDgsMzIuMDY1MyA1MC41Mzk4LDMwLjM0NjMgNTIuNTkyOCwzMC4zNDYzIEM1NC42NDY4LDMwLjM0NjMgNTYuMzEwOCwzMi4wNjUzIDU2LjMxMDgsMzQuMTg0MyBMNTYuMzEwOCw0My4wMzIzIEw2OS42NTc4LDQzLjA0OTMgQzcxLjc3ODgsNDMuMDQ5MyA3My40OTY4LDQ0LjY3MzMgNzMuNDk2OCw0Ni42NzczIEM3My40OTY4LDQ4LjY4NDMgNzEuNzc4OCw1MC4zMDkzIDY5LjY1NzgsNTAuMzA5MyBMNTYuMzEwOCw1MC4zMDIzIEw1Ni4zMTA4LDgyLjc3MjMgQzU2LjMxMDgsODQuODkxMyA1NC42NDY4LDg2LjYxMDMgNTIuNTkyOCw4Ni42MTAzIEM1MC41Mzk4LDg2LjYxMDMgNDguODc0OCw4NC44OTEzIDQ4Ljg3NDgsODIuNzcyMyBMNDguODg3OCw1MC4zMDkzIFogTTk5LjU2MDgsMTEyLjE1NjMgTDk5LjU2MDgsMTIzLjU5OTMgQzk5LjU2MDgsMTI2LjAyMTMgOTUuOTI2OCwxMjYuMDIxMyA5NS45MjY4LDEyMy41OTkzIEw5NS45MjY4LDExMi4xMzEzIEM4MS41MDc4LDExMS4xODczIDcwLjExMzgsOTkuMjExMyA3MC4xMTM4LDg0LjU1MjMgQzcwLjExMzgsODIuMTMyMyA3My43NDU4LDgyLjEzMjMgNzMuNzQ1OCw4NC41NTIzIEM3My43NDU4LDk3LjIwMzMgODMuNTE0OCwxMDcuNTYxMyA5NS45MjY4LDEwOC40OTUzIEw5NS45MjY4LDEwMy43ODIzIEM4Ni4xMjg4LDEwMi44NjAzIDc4LjQ2NzgsOTQuNTk0MyA3OC40Njc4LDg0LjU1MjMgQzc4LjQ2NzgsODIuMTMyMyA4Mi4wOTg4LDgyLjEzMjMgODIuMDk4OCw4NC41NTIzIEM4Mi4wOTg4LDkyLjU4ODMgODguMTQ4OCw5OS4yMTEzIDk1Ljk0MDgsMTAwLjExNDMgTDk1LjkyNjgsOTUuMTkxMyBDOTAuODMyOCw5NC4zMjQzIDg2Ljk2NDgsODkuODk1MyA4Ni45NjQ4LDg0LjU1MjMgQzg2Ljk2NDgsODIuMTMyMyA5MC41OTY4LDgyLjEzMjMgOTAuNTk2OCw4NC41NTIzIEM5MC41OTY4LDg3Ljg3OTMgOTIuODYyOCw5MC42NzgzIDk1LjkzMzgsOTEuNDg1MyBMOTUuOTI2OCw4NC41NTIzIEM5NS45MjY4LDgyLjEzMjMgOTkuNTYwOCw4Mi4xMzIzIDk5LjU2MDgsODQuNTUyMyBMOTkuNTczOCw5MS40OTMzIEMxMDIuNjU4OCw5MC42OTEzIDEwNC45MzU4LDg3Ljg4OTMgMTA0LjkzNTgsODQuNTUyMyBDMTA0LjkzNTgsODIuMTMyMyAxMDguNTY3OCw4Mi4xMzIzIDEwOC41Njc4LDg0LjU1MjMgQzEwOC41Njc4LDg5LjkwMjMgMTA0LjY2MzgsOTQuMzM5MyA5OS41NjA4LDk1LjE5ODMgTDk5LjU3ODgsMTAwLjExNjMgQzEwNy4zNzc4LDk5LjIxNzMgMTEzLjQzMzgsOTIuNTkzMyAxMTMuNDMzOCw4NC41NTIzIEMxMTMuNDMzOCw4Mi4xMzIzIDExNy4wNjQ4LDgyLjEzMjMgMTE3LjA2NDgsODQuNTUyMyBDMTE3LjA2NDgsOTQuNjAyMyAxMDkuMzcwOCwxMDIuOTAzMyA5OS41NjA4LDEwMy44MTQzIEw5OS41NzY4LDEwOC41MDUzIEMxMTEuOTk2OCwxMDcuNTc5MyAxMjEuNzg3OCw5Ny4yMTAzIDEyMS43ODc4LDg0LjU1MjMgQzEyMS43ODc4LDgyLjEzMjMgMTI1LjQxODgsODIuMTMyMyAxMjUuNDE4OCw4NC41NTIzIEMxMjUuNDE4OCw5OS4yMTczIDExMy45ODc4LDExMS4yMjQzIDk5LjU2MDgsMTEyLjE1NjMgTDk5LjU2MDgsMTEyLjE1NjMgWiBNMTEwLjI3ODgsMzguMDExMyBDMTA3LjYwMTgsMzUuODIwMyAxMDQuMjg0OCwzNC4zODEzIDEwMC42NTE4LDM0LjAxODMgTDEwMC42NDg4LDQ3LjY0MzMgTDExMC4yNzg4LDM4LjAxMTMgWiBNMTAwLjY0NjgsNTYuMzkzMyBMMTAwLjY1MjgsNzAuMDMwMyBDMTA0LjI4OTgsNjkuNjY2MyAxMDcuNjA4OCw2OC4yMjYzIDExMC4yODY4LDY2LjAyOTMgTDEwMC42NDY4LDU2LjM5MzMgWiBNOTcuMDEzOCw0Ny42MTEzIEw5Ny4wMDk4LDM0LjAxMjMgQzkzLjM3MzgsMzQuMzcyMyA5MC4wODY4LDM1Ljg0NzMgODcuNDA3OCwzOC4wMzgzIEw5Ny4wMTM4LDQ3LjYxMTMgWiBNOTcuMDA5OCw1Ni40MTkzIEw4Ny4zNzg4LDY2LjA0MTMgQzkwLjA2MzgsNjguMjQ0MyA5My4zNjg4LDY5LjY2OTMgOTcuMDE2OCw3MC4wMzIzIEw5Ny4wMDk4LDU2LjQxOTMgWiBNOTQuNDQ4OCw1MC4yMTUzIEw4NC44MDY4LDQwLjU4MTMgQzgyLjYxODgsNDMuMjU2MyA4MS4xODM4LDQ2LjU3MDMgODAuODIwOCw1MC4xOTgzIEw5NC40NDg4LDUwLjIxNTMgWiBNMTAzLjI0MzgsNTAuMTk4MyBMMTE2LjgzMjgsNTAuMTk4MyBDMTE2LjQ2OTgsNDYuNTc1MyAxMTUuMDM3OCw0My4yNjUzIDExMi44NTU4LDQwLjU5MjMgTDEwMy4yNDM4LDUwLjE5ODMgWiBNMTAzLjIwOTgsNTMuODM4MyBMMTEyLjgzMTgsNjMuNDg2MyBDMTE1LjAyOTgsNjAuODAzMyAxMTYuNDcxOCw1Ny40NzczIDExNi44MzQ4LDUzLjgzNDMgTDEwMy4yMDk4LDUzLjgzODMgWiBNOTQuNDYwOCw1My44MzYzIEw4MC44MTg4LDUzLjgzNjMgQzgxLjE3OTgsNTcuNDc2MyA4Mi42MjA4LDYwLjc5OTMgODQuODE0OCw2My40NzczIEw5NC40NjA4LDUzLjgzNjMgWiIgaWQ9IkZpbGwtMSIgZmlsbD0iIzM4MkYyRCI+PC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+"},"53e2":function(M,N,D){var t=D("07e3"),i=D("241e"),e=D("5559")("IE_PROTO"),j=Object.prototype;M.exports=Object.getPrototypeOf||function(M){return M=i(M),t(M,e)?M[e]:"function"==typeof M.constructor&&M instanceof M.constructor?M.constructor.prototype:M instanceof Object?j:null}},"542c":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9InBvaS0vLXBwXzY5IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjRkVDQjAwIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTg0LjgwMjMsMTA3Ljc5ODggTDk5LjUyNTMsMTA3LjgwMzggQzEwMS4yOTgzLDEwNy44MDM4IDEwMi43MjIzLDEwOS4xNDM4IDEwMi43MjIzLDExMC45Mjg4IEMxMDIuNzIyMywxMTIuNjQ4Mzg2IDEwMS4zOTQ4MTQsMTE0LjE1MDc2NCA5OS43MDc0MjQ4LDExNC4yNTIzMzIgTDk5LjUyNTMsMTE0LjI1NzggTDg0Ljg3MzMsMTE0LjI1NzggQzgzLjEwMTMsMTE0LjI1NzggODEuNTk0MywxMTIuODA5OCA4MS41OTQzLDExMS4wMjU4IEM4MS41OTQzLDEwOS4yNDM4IDgzLjAzMDMsMTA3Ljc5ODggODQuODAyMywxMDcuNzk4OCBaIE04OC4yMTEzLDc5LjI0MTYgTDg4LjIxMTMsODIuNTg2NiBMMTAxLjMzMDMsODIuNjAyNiBDMTAxLjMzMDMsODIuNjAyNiAxMDMuMjExMyw4Mi4zMTI2IDEwNC41NzUzLDg0LjE2NDYgTDEwNC42MDcxOTIsODQuMjA0MjI0MiBDMTA1LjA1NDA4MSw4NC43NDI4OTc1IDExMC4wNDU1NzMsOTAuNTkxOTE4MiAxMTAuMDA5Myw5MC41OTg2IEMxMTAuNDE4Myw5MS4xMzk2IDExMS4wMzkzLDkxLjc5NjYgMTEyLjE0NzMsOTEuNzI5NiBDMTEzLjIwMzk4Miw5MS42NjU2NDU1IDEyMC4wNzc0OSw5MS43MjM3ODYgMTIwLjcwMDE3MSw5MS43MjkyMDM2IEwxMjAuNzQ1Myw5MS43Mjk2IEwxMjAuNzQ1MywxMTQuMDMwNiBMMTA5LjM3NTMsMTE0LjAxODYgQzEwOS4zNzUzLDExNC4wMTg2IDEwNy4xMTUzLDExNC4xNTg2IDEwNi4xMjczLDExMS45NTk2IEMxMDUuNzU0OTM2LDExMS4xMzA1MDkgMTA0LjIxMzc2NSwxMDguMDc2NjM5IDEwMi40MzI5MjcsMTA0LjU5MjQ0OSBMMTAyLjI2NTMsMTA0LjI2NDYgTDEwMS41NjAzLDEwNC4yNjQ2IEwxMDIuMjY1MywxMDQuMjYyNiBDOTkuMzUzMyw5OC41NjQ2IDk1Ljg5NzMsOTEuODc1NiA5NS44OTczLDkxLjg3NTYgQzk1Ljg5NzMsOTEuODc1NiA5NS4zOTY3NzA1LDkwLjUwNDQyNDcgOTMuODQ2NTA2Niw5MC4zOTE5MjAzIEw5My42MzgzLDkwLjM4NDYgTDg4LjIxMTMsOTAuMzgwNiBMODguMjExMyw5Mi40NDg2IEw5MS42OTQzLDkyLjQ0OTYgQzkzLjQ2NzMsOTIuNDQ5NiA5NC44OTEzLDkzLjc5MTYgOTQuODkxMyw5NS41NzY2IEM5NC44OTEzLDk3LjI5NjE4NjIgOTMuNTYzODEzNyw5OC43OTg1NjQzIDkxLjg3NjQyNDgsOTguOTAwMTMxOSBMOTEuNjk0Myw5OC45MDU2IEw4OC4yMTEzLDk4LjkxNTYgTDg4LjIxMTMsMTAwLjEyNTYgTDk1LjYxMDMsMTAwLjEyNjYgQzk3LjM4MTMsMTAwLjEyNjYgOTguODA2MywxMDEuNDY4NiA5OC44MDYzLDEwMy4yNTE2IEM5OC44MDYzLDEwMy42MDE2IDk4Ljc1MTMsMTAzLjk0MTYgOTguNjQ5MywxMDQuMjYyNiBDOTguMjUwNDMwNCwxMDUuNTI2MTY1IDk3LjEzNTE2NzcsMTA2LjQ5NTEyMiA5NS43OTQ0NzMyLDEwNi41NzY5OSBMOTUuNjEwMywxMDYuNTgyNiBMODAuOTU4MywxMDYuNTgyNiBDODAuMDk4OTE1NCwxMDYuNTgyNiA3OS4yOTA2NTUsMTA2LjI0NzczNiA3OC42OTcxMTY2LDEwNS42OTUyMDEgTDc4LjU1MzMsMTA1LjU1MjYgTDMzLjE3NjMsMTA1LjU1MjYgTDMzLjE3NjMsNzkuMjQxNiBMODguMjExMyw3OS4yNDE2IFogTTg1LjYwNTMsODEuODQ4NiBMMzUuNzg0Myw4MS44NDg2IEwzNS43ODQzLDEwMi45NDU2IEw4NS42MDUzLDEwMi45NDU2IEw4NS42MDUzLDkwLjM4MjYgTDgxLjg1NDMsOTAuMzgzNiBDNzkuNzExMyw5MC4zODM2IDc3Ljk3MzMsODguNjM5NiA3Ny45NzMzLDg2LjQ4MzYgQzc3Ljk3MzMsODQuMzk1OTQzOCA3OS42MDQzNzIzLDgyLjY4ODM3MDUgODEuNjU0NjIxLDgyLjU4MzY4NTkgTDgxLjg1NDMsODIuNTc4NiBMODUuNjA1Myw4Mi41ODM2IEw4NS42MDUzLDgxLjg0ODYgWiBNNjAuNjk3MSw4My43NTMzIEM2NS40NzAxLDgzLjc1MzMgNjkuMzQwMSw4Ny42MjMzIDY5LjM0MDEsOTIuMzk3MyBDNjkuMzQwMSw5Ny4xNzIzIDY1LjQ3MDEsMTAxLjA0MDMgNjAuNjk3MSwxMDEuMDQwMyBDNTUuOTIzMSwxMDEuMDQwMyA1Mi4wNTMxLDk3LjE3MjMgNTIuMDUzMSw5Mi4zOTczIEM1Mi4wNTMxLDg3LjYyMzMgNTUuOTIzMSw4My43NTMzIDYwLjY5NzEsODMuNzUzMyBaIE02MS4yMzgxLDg2LjU1NzMgQzU4LjcwNzQ1NDgsODYuNTU3MyA1Ni41NTA0ODI5LDg4LjE1OTY5MzMgNTUuNzI4NzgzNCw5MC40MDgzMTg4IEw1NS42NTExLDkwLjYzNTMgTDU0LjQ2MjEsOTAuNjM4MyBMNTMuNzEwMSw5MS45OTgzIEw1NS40MDAxLDkxLjk5ODMgQzU1LjM4ODc2NjcsOTIuMDg2OTY2NyA1NS4zODA5ODg5LDkyLjE4MDA3NzggNTUuMzc3MDYzLDkyLjI3NTg1NTYgTDU1LjM3NDEsOTIuNDIxMyBMNTUuMzgxMSw5Mi43MDMzIEw1NC4zNjExLDkyLjcwNzMgTDUzLjYwOTEsOTQuMDY2MyBMNTUuNjA0MSw5NC4wNjYzIEM1Ni4zMTQxLDk2LjUwNzMgNTguNTY3MSw5OC4yODczIDYxLjIzODEsOTguMjg3MyBDNjIuNTE5NTI4Niw5OC4yODczIDYzLjYzMTk1NzEsOTcuOTAxMDE0MyA2NC42NDEwMzk1LDk3LjE5MDA5MzQgTDY0Ljg3MjEsOTcuMDIwMyBMNjQuODgzMSw5NC43OTkzIEM2My44NjMxLDk1LjkyNjMgNjIuOTI5MSw5Ni43MjIzIDYxLjIzODEsOTYuNzIyMyBDNTkuNTE3ODkxNyw5Ni43MjIzIDU4LjAzNDYzMTIsOTUuNzE0ODEyMiA1Ny4zNDYzMjUsOTQuMjU2OTYyNSBMNTcuMjYxMSw5NC4wNjQzIEw2Mi44ODgxLDk0LjA2NjMgTDYzLjU1ODEsOTIuNzA3MyBMNTYuOTQ2MSw5Mi43MDUzIEw1Ni45MzYxLDkyLjQyMTMgTDU2Ljk1ODEsOTEuOTg3MyBMNjMuOTQwMSw5MS45OTgzIEw2NC41NzUxLDkwLjYzODMgTDU3LjMzMTEsOTAuNjM1MyBDNTguMDEwMSw4OS4xNTEzIDU5LjUwMDEsODguMTIxMyA2MS4yMzgxLDg4LjEyMTMgQzYyLjc1NDg3NzgsODguMTIxMyA2My43NDk4NSw4OC43ODY3MTM2IDY0LjY4OTcxOCw4OS44MzM2NDQ4IEw2NC44NTUxLDkwLjAyMjMgTDY1LjYyODEsODguNTE0MyBDNjQuNDE2MSw4Ny4yNzYzIDYzLjAwNDEsODYuNTU3MyA2MS4yMzgxLDg2LjU1NzMgWiBNNjkuMTEzNSw2OC42MjQxIEM3MC44ODQ1LDY4LjYyNDEgNzIuMzIyNSw3MC4wNjcxIDcyLjMyMjUsNzEuODUxMSBDNzIuMzIyNSw3My41NzE2NTE3IDcwLjkxNjcwNjksNzQuOTgwODQwOCA2OS4yMjQ4MTc2LDc1LjA3NTk4MDQgTDY5LjA0MjUsNzUuMDgxMSBMNTQuMzkxNSw3NS4wODMxIEM1Mi42MTg1LDc1LjA4MzEgNTEuMTkzNSw3My41MzMxIDUxLjE5MzUsNzEuNzUyMSBDNTEuMTkzNSw3MC4wMzA1ODI4IDUyLjUyMTkxODUsNjguNzIwMTc2MSA1NC4yMDkzNzE3LDY4LjYzMTg1MDIgTDU0LjM5MTUsNjguNjI3MSBMNjkuMTEzNSw2OC42MjQxIFogTTEyMC43NDA0LDQwLjA2NTIgTDEyMC43NDA0LDY2LjM3NjIgTDc1LjM2MzQsNjYuMzc2MiBDNzQuODA0OTM4NSw2Ni45NjUxMjMxIDc0LjAyMTUzMDIsNjcuMzQzNTg0NiA3My4xNzIwNTM2LDY3LjM5ODMyNDcgTDcyLjk1ODQsNjcuNDA1MiBMNTguMzA2NCw2Ny40MDUyIEM1Ni41MzM0LDY3LjQwNTIgNTUuMTA4NCw2NS44NTYyIDU1LjEwODQsNjQuMDc1MiBDNTUuMTA4NCw2Mi4zNTQ2NDgzIDU2LjQzNjgxODUsNjEuMDQzMzQyNyA1OC4xMjQyNzE3LDYwLjk1NDk1MzcgTDU4LjMwNjQsNjAuOTUwMiBMNjUuNzA0NCw2MC45NDgyIEw2NS43MDQ0LDU5LjczODIgTDYyLjIyMTQsNTkuNzI4MiBDNjAuNDQ5NCw1OS43MjgyIDU5LjAyNTQsNTguMTc5MiA1OS4wMjU0LDU2LjM5OTIgQzU5LjAyNTQsNTQuNjc4NjQ4MyA2MC4zNTI4ODYzLDUzLjM2NjQxMDUgNjIuMDM5Mzc1Miw1My4yNzc5NTcxIEw2Mi4yMjE0LDUzLjI3MzIgTDY1LjcwNDQsNTMuMjcxMiBMNjUuNzA0NCw1MS4yMDQyIEw2MC4yNzg0LDUxLjIwNzIgQzU4LjU2NDQsNTEuMjA2MiA1OC4wMTk0LDUyLjY5ODIgNTguMDE5NCw1Mi42OTgyIEM1OC4wMTk0LDUyLjY5ODIgNDguNzc2NCw3MC41ODQyIDQ3Ljc4ODQsNzIuNzgzMiBDNDYuODMxMjc1LDc0LjkxMzQ4MTMgNDQuNjgxMzQ2Myw3NC44NDg2NjU4IDQ0LjU0NzkxMDQsNzQuODQyNTM0NSBMNDQuNTQxNCw3NC44NDIyIEwzMy4xNzE0LDc0Ljg1NTIgTDMzLjE3MTQsNTIuNTUzMiBMMzMuMjcxNDczOCw1Mi41NTIzMjkzIEMzNC4xNjMyMjIzLDUyLjU0NDY4NjYgNDAuNzM3ODc3Myw1Mi40OTA3NjgyIDQxLjc2OTQsNTIuNTUzMiBDNDIuODc3NCw1Mi42MjAyIDQzLjQ5NzQsNTEuOTYxMiA0My45MDc0LDUxLjQyMTIgQzQzLjg2ODQsNTEuNDEzMiA0OS4zNDk0LDQ0Ljk5NTIgNDkuMzQxNCw0NC45ODYyIEM1MC42NjE0LDQzLjE5NTg3NzQgNTIuNDY1NTgzMSw0My40MDc4NDQxIDUyLjU4MDYwODUsNDMuNDIzMzgyNCBMNTIuNTg2NCw0My40MjQyIEw2NS43MDQ0LDQzLjQxMDIgTDY1LjcwNDQsNDAuMDY1MiBMMTIwLjc0MDQsNDAuMDY1MiBaIE0xMTguMTMyNCw0Mi42NzIyIEw2OC4zMDk0LDQyLjY3MjIgTDY4LjMwOTQsNDMuNDA2MiBMNzIuMDYzNCw0My40MDMyIEM3NC4yMDU0LDQzLjQwMzIgNzUuOTQzNCw0NS4xNDkyIDc1Ljk0MzQsNDcuMzA1MiBDNzUuOTQzNCw0OS4zOTQ3OTM4IDc0LjMxMjMyNzcsNTEuMDk4NjczNiA3Mi4yNjI5ODgyLDUxLjIwMzEyNTUgTDcyLjA2MzQsNTEuMjA4MiBMNjguMzA5NCw1MS4yMDUyIEw2OC4zMDk0LDYzLjc2ODIgTDExOC4xMzI0LDYzLjc2ODIgTDExOC4xMzI0LDQyLjY3MjIgWiBNOTYuMjMzNyw0NS45MTgzIEM5Ny40NTE3LDQ1LjkxODMgOTguNDM5Nyw0Ni45MDUzIDk4LjQzOTcsNDguMTIzMyBMOTguNDM5Nyw1Ni4wNjUzIEM5OC40Mzk3LDU3LjExMDMgOTcuNzA5Nyw1Ny45ODkzIDk2LjcyOTcsNTguMjEzMyBMOTkuMjgzNyw2Mi4xMDQzIEw5Ny44MTI3LDYyLjEwNDMgTDk1Ljk3MjcsNTkuMzgzMyBMOTAuNzU4Nyw1OS4zODMzIEw4OC45MTk3LDYyLjEwNDMgTDg3LjQ0ODcsNjIuMTA0MyBMOTAuMDAyNyw1OC4yMTMzIEM4OS4wMjI3LDU3Ljk4OTMgODguMjkyNyw1Ny4xMTAzIDg4LjI5MjcsNTYuMDY1MyBMODguMjkyNyw0OC4xMjMzIEM4OC4yOTI3LDQ2LjkwNTMgODkuMjc5Nyw0NS45MTgzIDkwLjQ5ODcsNDUuOTE4MyBMOTYuMjMzNyw0NS45MTgzIFogTTkwLjU1MzcsNTUuMDcwNCBDODkuOTk1Nyw1NS4wNzA0IDg5LjU0MjcsNTUuNTI1NCA4OS41NDI3LDU2LjA4MzQgQzg5LjU0MjcsNTYuNjQxNCA4OS45OTU3LDU3LjA5NDQgOTAuNTUzNyw1Ny4wOTQ0IEM5MS4xMTE3LDU3LjA5NDQgOTEuNTY0Nyw1Ni42NDE0IDkxLjU2NDcsNTYuMDgzNCBDOTEuNTY0Nyw1NS41MjU0IDkxLjExMTcsNTUuMDcwNCA5MC41NTM3LDU1LjA3MDQgWiBNOTYuMTc4NSw1NS4wNzEyIEM5NS42MjA1LDU1LjA3MTIgOTUuMTY3NSw1NS41MjYyIDk1LjE2NzUsNTYuMDg0MiBDOTUuMTY3NSw1Ni42NDAyIDk1LjYyMDUsNTcuMDkzMiA5Ni4xNzg1LDU3LjA5MzIgQzk2LjczNjUsNTcuMDkzMiA5Ny4xODk1LDU2LjY0MDIgOTcuMTg5NSw1Ni4wODQyIEM5Ny4xODk1LDU1LjUyNjIgOTYuNzM2NSw1NS4wNzEyIDk2LjE3ODUsNTUuMDcxMiBaIE05Ni4xMDUyLDQ4LjE5NzIgTDkwLjYyNzIsNDguMTk3MiBMOTAuNTA5MjA0MSw0OC4yMDM1NTY0IEM5MC4wMDUzMjAzLDQ4LjI1ODE2OCA4OS42MDQyODg2LDQ4LjY1ODQ0MDkgODkuNTQ5NTY5Miw0OS4xNjIyMTY5IEw4OS41NDMyLDQ5LjI4MDIgTDg5LjU0MzIsNTAuNzE2MiBMODkuNTQ5NTY5Miw1MC44MzQxOTU5IEM4OS42MDQyODg2LDUxLjMzODA3OTcgOTAuMDA1MzIwMyw1MS43MzkxMTE0IDkwLjUwOTIwNDEsNTEuNzkzODMwOCBMOTAuNjI3Miw1MS44MDAyIEw5Ni4xMDUyLDUxLjgwMDIgTDk2LjIyMzE5NTksNTEuNzkzODMwOCBDOTYuNzI3MDc5Nyw1MS43MzkxMTE0IDk3LjEyODExMTQsNTEuMzM4MDc5NyA5Ny4xODI4MzA4LDUwLjgzNDE5NTkgTDk3LjE4OTIsNTAuNzE2MiBMOTcuMTg5Miw0OS4yODAyIEw5Ny4xODI4MzA4LDQ5LjE2MjIxNjkgQzk3LjEyMzkwMjIsNDguNjE5Njg4OSA5Ni42NjMzMzMzLDQ4LjE5NzIgOTYuMTA1Miw0OC4xOTcyIFogTTk0LjU3ODYsNDYuMzk3MSBMOTIuMTUyNiw0Ni4zOTcxIEw5Mi4wODI0Nzg5LDQ2LjQwNDE0MSBDOTEuOTQ2NDcxMSw0Ni40MzE4NTU5IDkxLjgzODcyODksNDYuNTM4NjcyMyA5MS44MTA3MjExLDQ2LjY3NjA3NDYgTDkxLjgwMzYsNDYuNzQ3MSBMOTEuODAzNiw0Ny4zNzExIEw5MS44MTA3MjExLDQ3LjQ0MDg5MSBDOTEuODM4NzI4OSw0Ny41NzYzMjQ2IDkxLjk0NjQ3MTEsNDcuNjgzOTg0OCA5Mi4wODI0Nzg5LDQ3LjcxMTk4MDkgTDkyLjE1MjYsNDcuNzE5MSBMOTQuNTc4Niw0Ny43MTkxIEw5NC42NDkzMzgzLDQ3LjcxMTk4MDkgQzk0Ljc4NjMzMDUsNDcuNjgzOTg0OCA5NC44OTM2NTA4LDQ3LjU3NjMyNDYgOTQuOTIxNTE4LDQ3LjQ0MDg5MSBMOTQuOTI4Niw0Ny4zNzExIEw5NC45Mjg2LDQ2Ljc0NzEgTDk0LjkyMTUxOCw0Ni42NzYwNzQ2IEM5NC44ODkwMDYzLDQ2LjUxNTc3MTkgOTQuNzQ4MzUsNDYuMzk3MSA5NC41Nzg2LDQ2LjM5NzEgWiBNOTQuMjg0Nyw0NC40NDczIEM5NC42MzA3LDQ0LjQ0NzMgOTQuOTA5Nyw0NC43MjYzIDk0LjkwOTcsNDUuMDcyMyBDOTQuOTA5Nyw0NS40MTgzIDk0LjYzMDcsNDUuNjk5MyA5NC4yODQ3LDQ1LjY5OTMgQzkzLjkzOTcsNDUuNjk5MyA5My42NTk3LDQ1LjQxODMgOTMuNjU5Nyw0NS4wNzIzIEM5My42NTk3LDQ0LjcyNjMgOTMuOTM5Nyw0NC40NDczIDk0LjI4NDcsNDQuNDQ3MyBaIE05Mi40NDY3LDQ0LjQ0NzMgQzkyLjc5MjcsNDQuNDQ3MyA5My4wNzE3LDQ0LjcyNjMgOTMuMDcxNyw0NS4wNzIzIEM5My4wNzE3LDQ1LjQxODMgOTIuNzkyNyw0NS42OTkzIDkyLjQ0NjcsNDUuNjk5MyBDOTIuMTAwNyw0NS42OTkzIDkxLjgyMTcsNDUuNDE4MyA5MS44MjE3LDQ1LjA3MjMgQzkxLjgyMTcsNDQuNzI2MyA5Mi4xMDA3LDQ0LjQ0NzMgOTIuNDQ2Nyw0NC40NDczIFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgZmlsbD0iIzM4MkYyRCI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4="},"545e":function(M,N){M.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTQiIGhlaWdodD0iMTU0IiB2aWV3Qm94PSIwIDAgMTU0IDE1NCI+CiAgICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGZpbGw9IiM5MENFMDAiIGQ9Ik0xMzEuOSAxMTAuOGMtLjEuMi0uNC40LS44LjRsLTYuNy4zYy0xIDAtMS45LjUtMi40IDEuNC0uNS44LS42IDEuOC0uMyAyLjcgMi45IDcuNSA0LjEgMTAuNyA0LjYgMTIgMCAuMi4xLjQuMi42LjkgMi4zLS4yIDQuOC0yLjMgNS42LTEgLjQtMi4xLjMtMy4xLS4xLTEuMS0uNS0yLTEuNC0yLjQtMi41bC0uMS0uNGMtLjMtLjgtLjgtMi40LTEuMy0zLjYgMC0uMS0uMS0uMi0uMS0uM2wtMy4zLTguM2MtLjQtLjktMS4xLTEuNi0yLjEtMS44LS45LS4yLTEuOSAwLTIuNy42bC01LjEgNC4zYy0uMy4yLS43LjMtMSAuMS0uMy0uMi0uNS0uNS0uNC0uOWw0LjYtMjYuMXYtLjFjLjItLjcuNy0xLjIgMS40LTEuNS43LS4zIDEuMy0uMiAyIC4ybC4xLjEgMjEgMTYuMmMuNC4zLjQuOC4yIDEuMW0zLjYtNS45bC0yMC42LTE1LjctLjUtLjRjLS4zLS4yLS41LS40LS44LS41LTIuMy0xLjMtNC43LTEuNS03LjEtLjYtMi40LjktNC4xIDIuOC00LjkgNS4yLS4xLjMtLjIuNi0uMi45bC00LjYgMjYuMWMtLjUgMi44LjggNS43IDMuMyA3LjEgMi41IDEuNCA1LjYgMS4yIDcuOC0uN2wyLTEuNyAxLjggNC44YzAgLjEgMCAuMS4xLjEuNCAxLjEuOSAyLjYgMS4yIDMuMy4xLjMuMi41LjIuNSAxIDIuNiAzIDQuNyA1LjYgNS44IDEuMy42IDIuNy45IDQuMS45IDEuMS4xIDIuMy0uMiAzLjUtLjYgNS4xLTIgNy43LTcuNyA1LjktMTIuOXYtLjJjLS4yLS43LS41LTEuMy0uNy0yLjEtLjUtMS40LTEuNC0zLjYtMi43LTYuOWwyLjYtLjFjMi4zLS4xIDQuNC0xLjMgNS42LTMuMiAxLjktMyAxLjItNi45LTEuNi05LjEiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjMUEyNzMyIiBkPSJNODkuNSA1OS40Yy42IDAgMSAuNCAxIDF2NGMtLjEuNi0uNi45LTEuMS45aC04Ljl2MzFjMCAuNi0uNSAxLTEgMWgtNS4xYy0uNiAwLTEtLjUtMS0xdi0zMWgtOC45Yy0uNiAwLTEtLjQtMS0uOXYtNGMwLS42LjUtMSAxLTFoMjV6bTE0LjU4NiA3OC45NjNjLjYwMi44NC0uMzA3IDEuMTItLjMwNyAxLjEyQTY3LjU0IDY3LjU0IDAgMCAxIDc2Ljk5OSAxNDVjLTM3LjQ5NCAwLTY4LTMwLjUwNS02OC02OEM5IDM4LjQxOCA0MS4zIDcuMjM3IDgwLjI3OSA5LjA3N2MzNC4yNDUgMS42MTcgNjIuMjMgMjguOTg3IDY0LjU2IDYzLjE5LjU2IDguMjIyLS4zNTMgMTYuMTYzLTIuNDk4IDIzLjU4Ny0uMTk0LjY3NC0xLjAxNy45MzQtMS41NzMuNTA3bC0yLjkxNS0yLjIzN2ExLjk5OCAxLjk5OCAwIDAgMS0uNzEzLTIuMDhBNjEuNzkgNjEuNzkgMCAwIDAgMTM4Ljk5OSA3N2MwLTM1LjE3LTI5LjQzNC02My41OTUtNjQuOTYzLTYxLjkzLTMxLjczMSAxLjQ4NS01Ny40ODIgMjcuMjM3LTU4Ljk2NyA1OC45N0MxMy40MDcgMTA5LjU2NSA0MS44MzIgMTM5IDc2Ljk5OSAxMzljNi4zMDUgMCAxMi4zODktLjk1NCAxOC4xMjQtMi43MTJhMi4wMjcgMi4wMjcgMCAwIDEgMS40MjkuMTAyIDE3LjA3NiAxNy4wNzYgMCAwIDAgNi4zIDEuNTA1Yy40NTMuMDIuOTcuMSAxLjIzNC40Njh6Ii8+CiAgICA8L2c+Cjwvc3ZnPgo="},5478:function(M,N){M.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiM5MENFMDAiPgogIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTY2Ljc5OTgsOTcgQzY2LjA5OTgsOTcgNjUuNDk5OCw5Ny42IDY1LjQ5OTgsOTguMyBMNjUuNDk5OCwxMDEuNyBDNjUuNDk5OCwxMDIuNCA2Ni4wOTk4LDEwMyA2Ni43OTk4LDEwMyBMMTM2LjY5OTgsMTAzIEMxMzguNDAwOCwxMDMgMTM5LjY5OTgsMTAxLjcgMTM5LjY5OTgsMTAwIEwxMzkuNjk5OCw5NC42IEMxMzkuNjk5OCw4OC42IDEzNS4xOTk4LDgzLjQgMTI5LjI5OTgsODIuNSBMNjIuMjk5OCw3Mi43IEM2MC4wOTk4LDcyLjQgNTcuOTk5OCw3MyA1Ni4yOTk4LDc0LjUgQzU0LjY5OTgsNzUuOSA1My42OTk4LDc4IDUzLjY5OTgsODAuMiBMNTMuNjk5OCw5Mi4xIEM1My42OTk4LDk0LjggNTEuNDk5OCw5NyA0OC43OTk4LDk3IEwyMy45OTk4LDk3IEMyMy4yOTk4LDk3IDIyLjY5OTgsOTcuNiAyMi42OTk4LDk4LjMgTDIyLjY5OTgsMTAxLjcgQzIyLjY5OTgsMTAyLjQgMjMuMjk5OCwxMDMgMjMuOTk5OCwxMDMgTDQ4Ljc5OTgsMTAzIEM1NC43OTk4LDEwMyA1OS42OTk4LDk4LjEgNTkuNjk5OCw5Mi4xIEw1OS42OTk4LDgwLjIgQzU5LjY5OTgsNzkuNiA1OS45OTk4LDc5LjIgNjAuMTk5OCw3OS4xIEM2MC4zOTk4LDc4LjkgNjAuNzk5OCw3OC43IDYxLjM5OTgsNzguNyBMMTI4LjQwMDgsODguNSBDMTMxLjQwMDgsODguOSAxMzMuNjk5OCw5MS42IDEzMy42OTk4LDk0LjYgTDEzMy42OTk4LDk3IEw2Ni43OTk4LDk3IFogTTMwLjY5OTgsODAuMyBDMzAuNjk5OCw4My4zIDMzLjE5OTgsODUuOCAzNi4xOTk4LDg1LjggQzM5LjE5OTgsODUuOCA0MS42OTk4LDgzLjMgNDEuNjk5OCw4MC4zIEM0MS42OTk4LDc3LjMgMzkuMTk5OCw3NC44IDM2LjE5OTgsNzQuOCBDMzMuMTk5OCw3NC44IDMwLjY5OTgsNzcuMyAzMC42OTk4LDgwLjMgTDMwLjY5OTgsODAuMyBaIE0yNC42OTk4LDgwLjMgQzI0LjY5OTgsNzMuOSAyOS44OTk4LDY4LjggMzYuMTk5OCw2OC44IEM0Mi41OTk4LDY4LjggNDcuNjk5OCw3NCA0Ny42OTk4LDgwLjMgQzQ3LjY5OTgsODYuNyA0Mi40OTk4LDkxLjggMzYuMTk5OCw5MS44IEMyOS43OTk4LDkxLjggMjQuNjk5OCw4Ni43IDI0LjY5OTgsODAuMyBMMjQuNjk5OCw4MC4zIFogTTE0NC42OTk4LDExOC42IEMxNDQuNjk5OCwxMTQuNCAxNDEuMjk5OCwxMTEgMTM3LjA5OTgsMTExIEwxNC42OTk4LDExMSBMMTQuNjk5OCw3MC4zIEMxNC42OTk4LDY5LjYgMTQuMDk5OCw2OSAxMy4zOTk4LDY5IEw5Ljk5OTgsNjkgQzkuMjk5OCw2OSA4LjY5OTgsNjkuNiA4LjY5OTgsNzAuMyBMOC41OTk4LDE0My43IEM4LjU5OTgsMTQ0LjQgOS4xOTk4LDE0NSA5Ljg5OTgsMTQ1IEwxMy4yOTk4LDE0NSBDMTMuOTk5OCwxNDUgMTQuNTk5OCwxNDQuNCAxNC41OTk4LDE0My43IEwxNC42OTk4LDExNyBMMTM3LjA5OTgsMTE3IEMxMzcuOTk5OCwxMTcgMTM4LjY5OTgsMTE3LjcgMTM4LjY5OTgsMTE4LjYgTDEzOC42OTk4LDE0My43IEMxMzguNjk5OCwxNDQuNCAxMzkuMjk5OCwxNDUgMTM5Ljk5OTgsMTQ1IEwxNDMuNDAwOCwxNDUgQzE0NC4wOTk4LDE0NSAxNDQuNjk5OCwxNDQuNCAxNDQuNjk5OCwxNDMuNyBMMTQ0LjY5OTgsMTE4LjYgWiBNOC44OTk4LDQ1LjkgQzguNTk5OCw0NS4zIDguNzk5OCw0NC41IDkuNDk5OCw0NC4yIEw3NS4zOTk4LDEwLjEgQzc2LjI5OTgsOS43IDc3LjI5OTgsOS43IDc4LjE5OTgsMTAuMSBMMTQzLjk5OTgsNDQuMiBDMTQ0LjU5OTgsNDQuNSAxNDQuOTAwOCw0NS4zIDE0NC41OTk4LDQ1LjkgTDE0Mi45OTk4LDQ4LjkgQzE0Mi42OTk4LDQ5LjUgMTQxLjkwMDgsNDkuOCAxNDEuMjk5OCw0OS41IEw3Ni42OTk4LDE2LjEgTDEyLjE5OTgsNDkuNSBDMTEuNTk5OCw0OS44IDEwLjc5OTgsNDkuNiAxMC40OTk4LDQ4LjkgTDguODk5OCw0NS45IFoiPjwvcGF0aD4KPC9zdmc+"},54780:function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wY180Ni1tayIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEzNCwxMTkgTDEzNCwzNSBDMTM0LDI2LjcxNjE0NTggMTI3LjI4Mzg1NCwyMCAxMTksMjAgTDM1LDIwIEMyNi43MTYxNDU4LDIwIDIwLDI2LjcxNjE0NTggMjAsMzUgTDIwLDExOSBDMjAsMTI3LjI4Mzg1NCAyNi43MTYxNDU4LDEzNCAzNSwxMzQgTDExOSwxMzQgQzEyNy4yODM4NTQsMTM0IDEzNCwxMjcuMjgzODU0IDEzNCwxMTkgWiIgaWQ9ImJvcmRlLXJlc3BldG8iIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICA8ZyBpZD0icG9pLS8tcGNfNDYiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjOEVCQUU1Ij48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0zNi4yNTY0LDk5LjIwMzEgTDEwNS44NjI0LDk5LjIwMzEgTDEwNS44NjI0LDg3Ljk2MDEgTDM2LjI1NjQsODcuOTYwMSBMMzYuMjU2NCw5OS4yMDMxIFogTTEwNy43OTk0LDk5LjIwMzEgTDExMS43MTM0LDk5LjIwMzEgTDExMS43MTM0LDg3Ljk2MDEgTDEwNy43OTk0LDg3Ljk2MDEgTDEwNy43OTk0LDk5LjIwMzEgWiBNMTEzLjY5MTQsOTkuMjAzMSBMMTE3LjYwNTQsOTkuMjAzMSBMMTE3LjYwNTQsODcuOTYwMSBMMTEzLjY5MTQsODcuOTYwMSBMMTEzLjY5MTQsOTkuMjAzMSBaIE0xMTEuNzEzNCw4NS45NjIxIEwxMDcuNzk5NCw4NS45NjIxIEwxMDcuODE5NCw4Mi44ODIxIEMxMDcuODEwNCw4MC4yMTcxIDEwNy44NTI0LDc1Ljg0NDEgMTAyLjM0OTQsNzUuNjQ5MSBDOTEuMzE5NCw3NS4zNzIxIDg2LjI1OTQsNzYuNjM3MSA4My4zNjQ0LDcwLjMyOTEgQzgyLjYzMTQsNjguNjQzMSA4Mi41NDM0LDY2LjI4MDEgODMuMDk1NCw2NC4yNjMxIEM3OC4wNzY0LDYzLjk4NTEgNzIuNDYzNCw2MC4xMTIxIDcyLjQ2MzQsNTIuODgwMSBDNzIuNDYzNCw0NS42NDQxIDc4Ljc4ODQsNDEuNTcxMSA4My42NTE0LDQxLjU3MTEgTDgzLjY1OTQsNDUuNDQ1MSBDODAuNzIzNCw0NS42NjQxIDc3LjY4MDQsNDcuNTAxMSA3Ni44MTE0LDUwLjQ2NzEgQzc1LjkzMDQsNTMuMTA3MSA3Ni4zMjY0LDU1LjkxNjEgNzguMjM1NCw1Ny44OTcxIEM4MS44NzE0LDYxLjkzMDEgODYuNzY5NCw1OS40MzUxIDg3LjUyNDQsNjEuODkyMSBDODguMTU1NCw2My45NDcxIDg1LjgyMzQsNjQuNjU3MSA4Ni43MzQ0LDY4LjEzODEgQzg3LjI0NjQsNjkuNTMyMSA4OC4xOTU0LDcwLjk4MzEgOTAuODg0NCw3MS41NzcxIEM5Ny45NjE0LDcyLjY0NDEgMTA3Ljc3NDQsNjkuMDc3MSAxMTEuMTY0NCw3Ny4yMzAxIEMxMTEuODAxNCw3OS4wMzgxIDExMS43NDk0LDgxLjQ3MzEgMTExLjcxMzQsODMuNDc3MSBMMTExLjcxMzQsODUuOTYyMSBaIE04Ny4zODg0LDQ1LjI4ODEgQzkyLjIzMzQsNDUuMTQxMSA5Ni44MTA0LDQ3Ljc2NTEgOTkuMDEyNCw1Mi4xNjYxIEMxMDAuNDA2NCw1NS4xNzQxIDEwMC42NzI0LDU5LjU5ODEgOTkuMDUxNCw2Mi44MDExIEMxMDYuODQwNCw2Mi44MDExIDExMC42NzQ0LDY0LjUwMDEgMTEzLjc1NzQsNjcuOTQwMSBDMTE3LjM1OTQsNzEuOTU2MSAxMTcuNjA1NCw3Ny44MjIxIDExNy42MDU0LDc5LjQ4NDEgTDExNy42MDU0LDg1Ljk2MjEgTDExMy42OTE0LDg1Ljk2MjEgTDExMy42OTE0LDc5LjUyNDEgQzExMy42OTE0LDY3Ljk0MDEgMTA0LjU4NTQsNjYuNjM2MSAxMDEuMDI4NCw2Ni44MzMxIEM5NS4xMzc0LDY3LjE4ODEgOTQuMTk2NCw2Ni42ODExIDkzLjkxMjQsNjUuMDkyMSBDOTMuNjM1NCw2My41NTMxIDk2LjcyMDQsNjEuNTc2MSA5Ni40MTc0LDU3LjYzNjEgQzk2LjM0NDQsNTQuNjI2MSA5NS4yNTk0LDUyLjU0NDEgOTIuODA2NCw1MC43ODIxIEM5MS4wMTM0LDQ5LjQ5NzEgODkuMTI4NCw0OS4xNjMxIDg3LjM4ODQsNDkuMTYzMSBMODcuMzg4NCw0NS4yODgxIFoiIGlkPSJGaWxsLTEiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},"547c":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wcF81MC1tayIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTEzNCwxMTkgTDEzNCwzNSBDMTM0LDI2LjcxNjE0NTggMTI3LjI4Mzg1NCwyMCAxMTksMjAgTDM1LDIwIEMyNi43MTYxNDU4LDIwIDIwLDI2LjcxNjE0NTggMjAsMzUgTDIwLDExOSBDMjAsMTI3LjI4Mzg1NCAyNi43MTYxNDU4LDEzNCAzNSwxMzQgTDExOSwxMzQgQzEyNy4yODM4NTQsMTM0IDEzNCwxMjcuMjgzODU0IDEzNCwxMTkgWiIgaWQ9ImJvcmRlLXJlc3BldG8iIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICA8ZyBpZD0icG9pLS8tcHBfNTAiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjRkVDQjAwIj48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMDcuMDA4NywzOC4yOTA1IEMxMDguNzgxNywzOC4yOTA1IDExMC4yMTU3LDM5LjcyMzUgMTEwLjIxNTcsNDEuNTA1NSBMMTEwLjIxNTcsMTA5LjQ0MDUgTDEwNC42MzI3LDEwOS40Mzg1IEwxMDQuNjMyNywxMTMuMTQwNSBDMTA0LjYzMjcsMTE0LjU2MjUgMTAzLjQ3NjcsMTE1LjcxMjUgMTAyLjA2MjcsMTE1LjcxMjUgTDk3LjM1OTcsMTE1LjcxMjUgQzk1LjkzNDcsMTE1LjcxMjUgOTQuNzc3NywxMTQuNTYyNSA5NC43Nzc3LDExMy4xNDA1IEw5NC43Nzc3LDEwOS40Mzg1IEw1OS40OTA3LDEwOS40Mzg1IEw1OS40OTA3LDExMy4xNDA1IEM1OS40OTA3LDExNC41NjI1IDU4LjMzMzcsMTE1LjcxMjUgNTYuOTE5NywxMTUuNzEyNSBMNTIuMjE2NywxMTUuNzEyNSBDNTAuNzgyNywxMTUuNzEyNSA0OS42MzY3LDExNC41NjI1IDQ5LjYzNjcsMTEzLjE0MDUgTDQ5LjYzNDcsMTA5LjQzODUgTDQzLjc4NDcsMTA5LjQ0MDUgTDQzLjc4NDcsNDEuNTA1NSBDNDMuNzg0NywzOS43MjM1IDQ1LjIyODcsMzguMjkwNSA0Ny4wMDM3LDM4LjI5MDUgTDEwNy4wMDg3LDM4LjI5MDUgWiBNNjEuODcwMSw5NC4zODQ2IEw1MS41ODYxLDk0LjM4NDYgQzUwLjUxODEsOTQuMzg0NiA0OS42NjQxLDk1LjI0NjYgNDkuNjY0MSw5Ni4zMDg2IEw0OS42NjQxLDk2LjMwODYgTDQ5LjY2NDEsOTguODcyNiBDNDkuNjY0MSw5OS45NDg2IDUwLjUxODEsMTAwLjgxNzYgNTEuNTg2MSwxMDAuODE3NiBMNTEuNTg2MSwxMDAuODE3NiBMNjEuODcwMSwxMDAuODE3NiBDNjIuOTM5MSwxMDAuODE3NiA2My44MDkxLDk5Ljk0ODYgNjMuODA5MSw5OC44NzI2IEw2My44MDkxLDk4Ljg3MjYgTDYzLjgwOTEsOTYuMzA4NiBDNjMuODA5MSw5NS4yNDY2IDYyLjkzOTEsOTQuMzg0NiA2MS44NzAxLDk0LjM4NDYgTDYxLjg3MDEsOTQuMzg0NiBaIE0xMDIuNDg3MSw5NC4zODQ2IEw5Mi4yMTIxLDk0LjM4NDYgQzkxLjE0MjEsOTQuMzg0NiA5MC4yNzcxLDk1LjI0NjYgOTAuMjc3MSw5Ni4zMDg2IEw5MC4yNzcxLDk2LjMwODYgTDkwLjI3NzEsOTguODcyNiBDOTAuMjc3MSw5OS45NDg2IDkxLjE0MjEsMTAwLjgxNzYgOTIuMjEyMSwxMDAuODE3NiBMOTIuMjEyMSwxMDAuODE3NiBMMTAyLjQ4NzEsMTAwLjgxNzYgQzEwMy41NTMxLDEwMC44MTc2IDEwNC40MTIxLDk5Ljk0ODYgMTA0LjQxMjEsOTguODcyNiBMMTA0LjQxMjEsOTguODcyNiBMMTA0LjQxMjEsOTYuMzA4NiBDMTA0LjQxMjEsOTUuMjQ2NiAxMDMuNTUzMSw5NC4zODQ2IDEwMi40ODcxLDk0LjM4NDYgTDEwMi40ODcxLDk0LjM4NDYgWiBNMTAwLjYwNzksNTMuMzk5OSBMNTMuNjY4OSw1My4zOTk5IEM1Mi42NTg0MjM4LDUzLjM5OTkgNTEuODI5MzUzNSw1NC4xODkwMTU2IDUxLjc1MjY4NTgsNTUuMTgyNDI4OSBMNTEuNzQ2OSw1NS4zMzI5IEw0OS42MDY5LDg2LjY1NzkgQzQ5LjYwNjksODcuNjc1MDQyOSA1MC41MzM4ODQxLDg4LjQ4NTM4MyA1MS40NDc5OTcxLDg4LjU2MDI1MTggTDUxLjU4NDksODguNTY1OSBMMTAyLjUyNDksODguNTg4OSBDMTAzLjY0NDksODguNTg4OSAxMDQuMzgzMDQxLDg3Ljg0Nzg1NjkgMTA0LjQ1MDgsODYuODQ1MjAwNiBMMTA0LjQ1NTksODYuNjkyOSBMMTAyLjUzODksNTUuMjI2OSBDMTAyLjUzODksNTQuMTUxOSAxMDEuNjY1OSw1My4zOTk5IDEwMC42MDc5LDUzLjM5OTkgWiBNMTAwLjYwOSw0Mi44MjE4IEw1My42MzEsNDIuODIxOCBDNTIuNjExLDQyLjgyMTggNTEuNzkwNTQ2NSw0My42MDU0NzM1IDUxLjcxNDcyMSw0NC42MDc4NzA2IEw1MS43MDksNDQuNzU5OCBMNTEuNzA5LDQ2LjgzMjggQzUxLjcwOSw0Ny44NDk5NDI5IDUyLjQ4MDg4MjEsNDguNjgyMDUxNyA1My40Nzk1NjQ3LDQ4Ljc1ODk5MzcgTDUzLjYzMSw0OC43NjQ4IEwxMDAuNjA5LDQ4Ljc2NDggQzEwMS42MTQ3MTQsNDguNzY0OCAxMDIuNDU2MjU2LDQ3Ljk4MTEyNjUgMTAyLjUzNDEyMyw0Ni45ODM5MTI0IEwxMDIuNTQsNDYuODMyOCBMMTAyLjU0LDQ0Ljc1OTggQzEwMi41NCw0My42ODU4IDEwMS42NjUsNDIuODIxOCAxMDAuNjA5LDQyLjgyMTggWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiBmaWxsPSIjMzgyRjJEIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="},"549b":function(M,N,D){"use strict";var t=D("d864"),i=D("63b6"),e=D("241e"),j=D("b0dc"),T=D("3702"),g=D("b447"),s=D("20fd"),u=D("7cd6");i(i.S+i.F*!D("4ee1")((function(M){Array.from(M)})),"Array",{from:function(M){var N,D,i,z,A=e(M),L="function"==typeof this?this:Array,I=arguments.length,n=I>1?arguments[1]:void 0,r=void 0!==n,w=0,c=u(A);if(r&&(n=t(n,I>2?arguments[2]:void 0,2)),void 0==c||L==Array&&T(c))for(N=g(A.length),D=new L(N);N>w;w++)s(D,w,r?n(A[w],w):A[w]);else for(z=c.call(A),D=new L;!(i=z.next()).done;w++)s(D,w,r?j(z,n,[i.value,w],!0):i.value);return D.length=w,D}})},"54fb":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wcF8wNS1zZWxtayIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTc3LDEzOS43ODkxIEM4OS41NTgsMTM5Ljc4OTEgOTkuNzM3LDE0Mi45NzExIDk5LjczNywxNDYuODk0MSBDOTkuNzM3LDE1MC44MTkxIDg5LjU1OCwxNTQuMDAwMSA3NywxNTQuMDAwMSBDNjQuNDQyLDE1NC4wMDAxIDU0LjI2MywxNTAuODE5MSA1NC4yNjMsMTQ2Ljg5NDEgQzU0LjI2MywxNDIuOTcxMSA2NC40NDIsMTM5Ljc4OTEgNzcsMTM5Ljc4OTEiIGlkPSJzb21icmEtMiIgZmlsbC1vcGFjaXR5PSIwLjQiIGZpbGw9IiM1MjVDNjUiPjwvcGF0aD4KICAgICAgICA8cGF0aCBkPSJNNzcsMTQ1LjQ3MzYgQzgzLjI3OCwxNDUuNDczNiA4OC4zNjgsMTQ2Ljc0NTYgODguMzY4LDE0OC4zMTU2IEM4OC4zNjgsMTQ5Ljg4NTYgODMuMjc4LDE1MS4xNTg2IDc3LDE1MS4xNTg2IEM3MC43MjIsMTUxLjE1ODYgNjUuNjMyLDE0OS44ODU2IDY1LjYzMiwxNDguMzE1NiBDNjUuNjMyLDE0Ni43NDU2IDcwLjcyMiwxNDUuNDczNiA3NywxNDUuNDczNiIgaWQ9InNvbWJyYS0xIiBmaWxsLW9wYWNpdHk9IjAuNCIgZmlsbD0iIzUyNUM2NSI+PC9wYXRoPgogICAgICAgIDxwYXRoIGQ9Ik03Ny4xMjIsMTQ5Ljk1IEw3NywxNDkuOTUgTDc2Ljg3OCwxNDkuOTUgQzczLjg4NywxNDkuOTUgNzEuMDY5LDE0OC42NDIgNjkuMTQ2LDE0Ni4zNjIgTDU1LjM0LDEzMCBMMzUsMTMwIEMyNi43MjksMTMwIDIwLDEyMy4yNzEgMjAsMTE1IEwyMCwzMSBDMjAsMjIuNzI5IDI2LjcyOSwxNiAzNSwxNiBMMTE5LDE2IEMxMjcuMjcxLDE2IDEzNCwyMi43MjkgMTM0LDMxIEwxMzQsMTE1IEMxMzQsMTIzLjI3MSAxMjcuMjcxLDEzMCAxMTksMTMwIEw5OC42NiwxMzAgTDg0Ljg1MywxNDYuMzYyIEM4Mi45MzEsMTQ4LjY0MiA4MC4xMTMsMTQ5Ljk1IDc3LjEyMiwxNDkuOTUiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTExOSwxOSBMMzUsMTkgQzI4LjM3MywxOSAyMywyNC4zNzMgMjMsMzEgTDIzLDExNSBDMjMsMTIxLjYyNyAyOC4zNzMsMTI3IDM1LDEyNyBMNTYuNzM0LDEyNyBMNzEuNDM5LDE0NC40MjggQzcyLjg3NCwxNDYuMTI5IDc0LjkzNywxNDYuOTg0IDc3LDE0Ni45NDkwOTEgQzc5LjA2MywxNDYuOTg0IDgxLjEyNiwxNDYuMTI5IDgyLjU2MSwxNDQuNDI4IEw5Ny4yNjYsMTI3IEwxMTksMTI3IEMxMjUuNjI3LDEyNyAxMzEsMTIxLjYyNyAxMzEsMTE1IEwxMzEsMzEgQzEzMSwyNC4zNzMgMTI1LjYyNywxOSAxMTksMTkiIGlkPSJtYXJjYWRvci1pbmRpY2UiIGZpbGw9IiNGRUNCMDAiPjwvcGF0aD4KICAgICAgICA8ZyBpZD0ibWFyY2Fkb3Jlcy0vLXBwXzIwLW1rIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgLTQuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMzQsMTE5IEwxMzQsMzUgQzEzNCwyNi43MTYxNDU4IDEyNy4yODM4NTQsMjAgMTE5LDIwIEwzNSwyMCBDMjYuNzE2MTQ1OCwyMCAyMCwyNi43MTYxNDU4IDIwLDM1IEwyMCwxMTkgQzIwLDEyNy4yODM4NTQgMjYuNzE2MTQ1OCwxMzQgMzUsMTM0IEwxMTksMTM0IEMxMjcuMjgzODU0LDEzNCAxMzQsMTI3LjI4Mzg1NCAxMzQsMTE5IFoiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsLW9wYWNpdHk9IjAiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPGcgaWQ9InBvaS0vLXBwXzA1Ij4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTksMTMxIEwzNSwxMzEgQzI4LjM3MywxMzEgMjMsMTI1LjYyNyAyMywxMTkgTDIzLDM1IEMyMywyOC4zNzMgMjguMzczLDIzIDM1LDIzIEwxMTksMjMgQzEyNS42MjcsMjMgMTMxLDI4LjM3MyAxMzEsMzUgTDEzMSwxMTkgQzEzMSwxMjUuNjI3IDEyNS42MjcsMTMxIDExOSwxMzEiIGlkPSJGaWxsLTMiIGZpbGw9IiNGRUNCMDAiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik00Mi45Nzc3LDI5LjM2NjggQzQyLjk3NzcsMjkuMzY2OCA0Mi45Nzc3LDkwLjI4NDggNDMuMDExNywxMDQuMjg5OCBDNDMuMDE3NywxMDYuMTExOCA0My4wMjQ3LDEwNy4xMzQ4IDQzLjAzMTcsMTA3LjEzNDggQzQxLjM4NzcsMTA3LjY5MzggMzguMzI2NywxMDkuNzY4OCAzOC4zMjY3LDExOC4xNDY4IEMzOC4zMjY3LDExOC43MDU4IDM4LjU5NDcsMTE5LjA4MDggMzguOTUyNywxMTkuMjcxOCBDMzkuNjYyNywxMTkuNjk3OCA0MC43NzE3LDExOS4zNjM4IDQwLjc3MTcsMTE4LjI1ODggQzQwLjc3MTcsMTE2Ljc0OTQyNSA0MS41MDM2NjcsMTE0LjkwMjA3OCA0Mi44MDQ3NzU5LDExNC4yNzQ1OTkgTDQyLjk3NzcsMTE0LjE5OTggTDQyLjk3NzcsMTI0LjYzMzggQzM4LjYxMDcsMTI0LjM1NTggMzQuNzAwNywxMjAuODg4OCAzMi44Nzg3LDEwNC4yNzc4IEMzMi4xODY3LDk3Ljk2ODggMzEuNzk0Nyw4OS43NjQ4IDMxLjc5NDcsNzkuMTE3OCBDMzEuNzk0Nyw0MC45Njk4IDM4LjYwNTcsMzAuMjY1OCA0Mi45Nzc3LDI5LjM2NjggWiBNNDQuMjA1NiwyOS4zNzA2IEM0OC41Nzg2LDMwLjI4MTYgNTUuMzc2Niw0MC45OTc2IDU1LjM3NjYsNzkuMTE4NiBDNTUuMzc2Niw4OS40NzY4NzAzIDU1LjAwNzM5NjIsOTcuNTIzMzU2OCA1NC4zNTA5NjU3LDEwMy43NjI4MTcgTDU0LjI5NTYsMTA0LjI3ODYgQzUyLjQ5MTAxNDEsMTIwLjcwOTkzMyA0OC42NDQzMTY3LDEyNC4yODAwNzkgNDQuMzM3NTgwOSwxMjQuNjIxMTU3IEw0NC4yMDU2LDEyNC42MzA2IEw0NC4yMDU2LDI5LjM3MDYgWiBNNzYuNzYzOSwyOS45NTgxIEM3Ny45MDQ5LDI5Ljk1ODEgNzkuODk1OSwzMi4zNTAxIDc5Ljg5NTksMzkuMjk3MSBDNzkuODk1OSw0Ni4xMzgyMDc3IDc5LjI4OTAxMzQsNjUuMTE2MDc4NSA3OS4yNzAzMzk5LDc2LjExNDQ3MTQgTDc5LjI3MDE4NDMsNzcuMDAzNDU1OSBDNzkuMjc5MDU4LDgzLjA1OTk0OTggNzkuNDk0MDY2Nyw5NC4zOTE2NDE3IDc5LjY4OTksMTA0LjI4NzEgQzc5Ljg1NzksMTEyLjcwNjEgODAuMDEwOSwxMjAuMDc5MSA4MC4wMTA5LDEyMi4yNzYxIEM4MC4wMTA5LDEyMi42ODY3MjUgNzkuNjU5MzM3NSwxMjMuODc5NTc3IDc5LjYxNTM5MjIsMTI0LjAyNzA3OSBMNzkuNjEwOSwxMjQuMDQyMSBMNzUuNTE1OSwxMjQuMDQyMSBMNzUuNjI5OSwxMjMuNjMxMSBDNzUuNjg1OSwxMjMuNDE1MSA3NS43NDE5LDEyMy4xODUxIDc1Ljc4MjksMTIyLjk3OTEgQzc1LjgyMjksMTIyLjc4OTEgNzUuODY4OSwxMjIuNTIwMSA3NS44Njg5LDEyMi4yNzYxIEM3NS44Njg5LDEyMC4xMTc4MjIgNzUuNzIwNTUwOSwxMTIuOTcxNTQ3IDc1LjU1ODEwOSwxMDQuNzUzMzk3IEw3NS41NDg5LDEwNC4yODcxIEw3NC45MzI5LDEwNC4yODIxIEw3NS41NDg5LDEwNC4yNzcxIEM3NS4zNTExMDgzLDk0LjM5MTQzMzMgNzUuMTM3MDE3Niw4My4wNTk5NDU1IDc1LjEyODE4Myw3Ny4wMDM0NTU4IEw3NS4xMjgzMzk5LDc2LjExNDQ3MTQgQzc1LjE0NzAxMzQsNjUuMTE2MDc4NSA3NS43NTM5LDQ2LjEzODIwNzcgNzUuNzUzOSwzOS4yOTcxIEM3NS43NTM5LDM2LjMxODEgNzUuMzc4OSwzMy44ODExIDc0LjczODksMzIuMDk3MSBDNzUuMzgzOSwzMC41NzUxIDc2LjE4NDksMjkuOTU4MSA3Ni43NjM5LDI5Ljk1ODEgWiBNNzEuMzk0OCwyOS45NTgxIEM3Mi41MzQ4LDI5Ljk1ODEgNzQuNTI2OCwzMi4zNTAxIDc0LjUyNjgsMzkuMjk3MSBDNzQuNTI2OCw0Ni4xMzgyMDc3IDczLjkxNzk3NDQsNjUuMTE2MDc4NSA3My44OTkyNDEzLDc2LjExNDQ3MTQgTDczLjg5OTA4NjgsNzcuMDAzNDU1OSBDNzMuOTA4MDQsODMuMDU5OTQ5OCA3NC4xMjQ5NDU4LDk0LjM5MTY0MTcgNzQuMzE5OCwxMDQuMjg3MSBDNzQuNDg4OCwxMTIuNzA2MSA3NC42Mzg4LDEyMC4wNzkxIDc0LjYzODgsMTIyLjI3NjEgQzc0LjYzODgsMTIyLjY4NjcyNSA3NC4yODg5OTUzLDEyMy44Nzk1NzcgNzQuMjQ1MjY5NywxMjQuMDI3MDc5IEw3NC4yNDA4LDEyNC4wNDIxIEw2OC41NDg4LDEyNC4wNDIxIEM2OC41NDg4LDEyNC4wNDIxIDY4LjE1MDgsMTIyLjcxNDEgNjguMTUwOCwxMjIuMjc2MSBMNjguMTUxNDEwNiwxMjIuMDEwNjY4IEM2OC4xNjE3MzM0LDExOS41NzY5NTQgNjguMzAxNDkxNywxMTIuNjYxNDI4IDY4LjQ1OTQ4NiwxMDQuNzUzMzk3IEw2OC40Njg4LDEwNC4yODcxIEw2OC40Njg4LDEwNC4yNzcxIEM2OC42Njk4LDk0LjE4MTEgNjguODg5OCw4Mi41NzcxIDY4Ljg4OTgsNzYuNjI0MSBDNjguODg5OCw2NS43MTIxIDY4LjI2MjgsNDYuMjQ1MSA2OC4yNjI4LDM5LjI5NzEgQzY4LjI2MjgsMzIuMzUwMSA3MC4yNTQ4LDI5Ljk1ODEgNzEuMzk0OCwyOS45NTgxIFogTTEwMS43MzQ4LDcxLjc2NDkgQzEwNy42MDE4LDcxLjc2NDkgMTEyLjM1OTgsNzYuMzkzOSAxMTIuMzU5OCw4Mi4xMDQ5IEMxMTIuMzU5OCw4My4xNjg5IDExMi4xOTQ4LDg0LjE5NzkgMTExLjg4NjgsODUuMTYzOSBDMTE0Ljc0NzgsODUuOTc5OSAxMTcuNTY3OCw4Ni42MTg5IDExOS40MDM4LDg3LjA4NjkgQzEyMC45NjY2OCw4Ny40ODUzIDEyMi4wOTQ1NjUsODguMzMxNTk3NiAxMjIuMTgyMjk1LDg5Ljk3NTI2MzUgTDEyMi4xODc4LDkwLjE4NDkgTDEyMi4xODc4LDkzLjM2NDkgQzEyMi4xODc4LDk0Ljc5NzUgMTIwLjExMTQ2NCw5NC44NDUyNTMzIDExOS45NzMwNDIsOTMuNTA4MTYgTDExOS45NjU4LDkzLjM2NDkgTDExOS45NjU4LDkwLjE4NDkgQzExOS45NjU4LDg5LjUxMjkgMTE5LjQ3MDgsODkuMzk2OSAxMTguODU1OCw4OS4yMzk5IEMxMTguMzM5OCw4OS4xMDg3IDExNy43ODM0OCw4OC45NjcyNiAxMTcuMTc3NjI0LDg4LjgxNjYwNCBMMTE2LjcxMzgsODguNzAxOSBMMTE2LjY4OTgsMTA0LjA4MjkgQzExNi42ODk4LDEwNC4wODI5IDExNy4yNTUxOCwxMDQuMjg5NDUgMTE3LjM5MjMxMywxMDQuMzMwNzYgTDExNy40MjA4LDEwNC4zMzc5IEwxMTcuMzg3OCwxMDEuOTg0OSBDMTE3LjM4NzgsMTAwLjU1MjMgMTE5LjQ2NDEzNiwxMDAuNTA0NTQ3IDExOS42MDI1NTgsMTAxLjg0MTY0IEwxMTkuNjA5OCwxMDEuOTg0OSBMMTE5LjYwOTgsMTA5LjA4MTkgQzExOS42MDk4LDExMC41MTM1MzMgMTE3LjUzMzQ2NCwxMTAuNTYxMjU0IDExNy4zOTUwNDIsMTA5LjIyNTA2MyBMMTE3LjM4NzgsMTA5LjA4MTkgTDExNy4zODA4LDEwNi44Njc5IEwxMTYuNDY3OCwxMDYuNTMyOSBMMTExLjQyNDgsMTA5LjM5OTkgQzExMi4wMjU4LDExMC42OTU5IDExMi4zNTk4LDExMi4xMzU5IDExMi4zNTk4LDExMy42NDg5IEMxMTIuMzU5OCwxMTQuMTEyOSAxMTIuMzI4OCwxMTQuNTY3OSAxMTIuMjY2OCwxMTUuMDE0OSBDMTExLjU4MTgsMTIwLjA4MDkgMTA3LjEyNTgsMTIzLjk5MDkgMTAxLjczNDgsMTIzLjk5MDkgQzk2LjM0MTgsMTIzLjk5MDkgOTEuODg4OCwxMjAuMDgwOSA5MS4yMDM4LDExNS4wMTQ5IEM5MS4xNDI4LDExNC41Njc5IDkxLjEwODgsMTE0LjExMjkgOTEuMTA4OCwxMTMuNjQ4OSBDOTEuMTA4OCwxMDguMzc1MDc1IDk1LjE2OTQ4MDgsMTA0LjAxNDM0OSAxMDAuNDQyMTksMTAzLjM3ODM5IEwxMDAuNzI1OCwxMDMuMzQ3OSBMMTAwLjY5MjgsMTAxLjM4OTkgQzEwMC42OTI4LDk5Ljg0MjkgMTAxLjM2NDgsOTkuMzIzOSAxMDEuOTY1OCw5OC42NDk5IEMxMDIuNDMzNDQ5LDk4LjEyOTE5ODIgMTA4Ljk0MjQxMSw5MC45MTM3MzAxIDExMS44NjM3ODUsODcuNjc4MzU1NCBMMTEyLjAxNjgsODcuNTA4OSBMMTEwLjk3NDgsODcuMjExOSBDMTA5LjE0NzgsOTAuMzM3OSAxMDUuNjkzOCw5Mi40NDQ5IDEwMS43MzQ4LDkyLjQ0NDkgQzk1Ljg2ODgsOTIuNDQ0OSA5MS4xMDg4LDg3LjgxNjkgOTEuMTA4OCw4Mi4xMDQ5IEM5MS4xMDg4LDc2LjM5MzkgOTUuODY4OCw3MS43NjQ5IDEwMS43MzQ4LDcxLjc2NDkgWiBNMTAwLjcyNTgsMTA1LjYwMjkgQzk2LjYxODgsMTA2LjEzNzkgOTMuNDc2OCwxMDkuNTMzOSA5My40NzY4LDExMy42NDU5IEM5My40NzY4LDExNC4xMTQ5IDkzLjUxNzgsMTE0LjU3MjkgOTMuNTk3OCwxMTUuMDE4OSBDOTQuMjY5OCwxMTguODUwOSA5Ny42OTM4LDEyMS43NjI5IDEwMS44MTg4LDEyMS43NjI5IEMxMDUuODUyMTcsMTIxLjc2MjkgMTA5LjIxOTQ3MSwxMTguOTc0MjE5IDEwOS45OTEyMTcsMTE1LjI2NzM2MyBMMTEwLjAzODgsMTE1LjAxODkgQzExMC4xMTY4LDExNC41NzI5IDExMC4xNTY4LDExNC4xMTQ5IDExMC4xNTY4LDExMy42NDU5IEMxMTAuMTU2OCwxMTIuNTU4OSAxMDkuOTM1OCwxMTEuNTI1OSAxMDkuNTM5OCwxMTAuNTc5OSBDMTA2LjE3NTgsMTEyLjU0MzkgMTAyLjc5MDgsMTE0LjUyMjkgMTAyLjQ2MTgsMTE0LjcxOTkgQzEwMS43NzExOTEsMTE1LjEzMzExNyAxMDAuNzgzMjI5LDExNC42Mjc3NDEgMTAwLjY5ODYyNSwxMTMuNzk2MjUxIEwxMDAuNjkyOCwxMTMuNjgwOSBMMTAwLjcyNTgsMTA1LjYwMjkgWiBNMTAzLjAzMzgsMTA1LjYxNTkgQzEwMy4wMjg5NTIsMTA3Ljk3NzExMiAxMDMuMDQ5NDkxLDExMS40MDE4MTcgMTAzLjA1MDc0MSwxMTEuNjA3MjA3IEwxMDMuMDUwOCwxMTEuNjE2OSBMMTA4LjM0MTgsMTA4LjU3NDkgQzEwNy4wNTM4LDEwNy4wMDM5IDEwNS4xNzI4LDEwNS45MTc5IDEwMy4wMzM4LDEwNS42MTU5IFogTTEwMy4wMjU4LDEwMS41NDk5IEwxMDMuMDYyOCwxMDMuMzk5OSBDMTA1LjkwNjA2OSwxMDMuNzM1NDc3IDEwOC4zNzExOTUsMTA1LjE0NzIzNyAxMTAuMDYwNzk2LDEwNy4yMjI2ODcgTDExMC4yNTk4LDEwNy40NzQ5IEwxMTMuNzU2OCwxMDUuNDY0OSBMMTAzLjAyNTgsMTAxLjU0OTkgWiBNMTE0LjI5NTgsODguMzA3OSBMMTA0LjI4NjgsOTkuNTY0OSBMMTE0LjI5NTgsMTAzLjIwODkgTDExNC4yOTU4LDg4LjMwNzkgWiBNMTAxLjgxODgsNzMuOTg1OSBDOTcuMjEyOCw3My45ODU5IDkzLjQ3NjgsNzcuNjE4OSA5My40NzY4LDgyLjEwMDkgQzkzLjQ3NjgsODYuNTgzOSA5Ny4yMTI4LDkwLjIxODkgMTAxLjgxODgsOTAuMjE4OSBDMTA0LjczNzgsOTAuMjE4OSAxMDcuMzA2OCw4OC43NTY5IDEwOC43OTY4LDg2LjU0NDkgQzEwNS42NDc4LDg1LjUxODkgMTAyLjcxMjgsODQuMjU1OSAxMDEuMDUxOCw4Mi42ODg5IEM5OS45NzM4LDgxLjY3MzkgMTAxLjQ5NTgsODAuMDU1OSAxMDIuNTc1OCw4MS4wNzA5IEMxMDQuMDA3OCw4Mi40MjA5IDEwNi43NTk4LDgzLjU2MjkgMTA5Ljc4MDgsODQuNTE3OSBDMTEwLjAyMzgsODMuNzU0OSAxMTAuMTU2OCw4Mi45NDI5IDExMC4xNTY4LDgyLjEwMDkgQzExMC4xNTY4LDc3LjYxODkgMTA2LjQyNDgsNzMuOTg1OSAxMDEuODE4OCw3My45ODU5IFogTTk4LjU4NzQsNTcuOTg1NCBDMTAxLjUyMjQsNTcuOTg1NCAxMDMuOTAyNCw2MC4zNjM0IDEwMy45MDI0LDYzLjMwMTQgQzEwMy45MDI0LDY2LjIzNTQgMTAxLjUyMjQsNjguNjE0NCA5OC41ODc0LDY4LjYxNDQgQzk1LjY1MjQsNjguNjE0NCA5My4yNzI0LDY2LjIzNTQgOTMuMjcyNCw2My4zMDE0IEM5My4yNzI0LDYwLjM2MzQgOTUuNjUyNCw1Ny45ODU0IDk4LjU4NzQsNTcuOTg1NCBaIE0xMTQuNDI5Miw1Ny45ODU0IEMxMTcuMzY2Miw1Ny45ODU0IDExOS43NDYyLDYwLjM2MzQgMTE5Ljc0NjIsNjMuMzAxNCBDMTE5Ljc0NjIsNjYuMjM1NCAxMTcuMzY2Miw2OC42MTQ0IDExNC40MjkyLDY4LjYxNDQgQzExMS40OTYyLDY4LjYxNDQgMTA5LjExNDIsNjYuMjM1NCAxMDkuMTE0Miw2My4zMDE0IEMxMDkuMTE0Miw2MC4zNjM0IDExMS40OTYyLDU3Ljk4NTQgMTE0LjQyOTIsNTcuOTg1NCBaIE0xMDkuNDE1OCwzMC42OTkyIEwxMTUuMTIxOCwzMC42OTkyIEMxMTkuMDEwMDM1LDMwLjY5OTIgMTIyLjE3NzM5NCwzNC4xNjUxNzQ2IDEyMi4zMDAxMDksMzguNDkxNjAyNiBMMTIyLjMwMzgsMzguNzUyMiBMMTIyLjMwMzgsNDYuODA1MiBDMTIyLjMwMzgsNTEuMTY1MDAzOSAxMTkuMjEyNjgxLDU0LjcxNjQ2NDkgMTE1LjM1NDIxLDU0Ljg1NDA2MTcgTDExNS4xMjE4LDU0Ljg1ODIgTDExMC43ODQ4LDU0Ljg1ODIgTDExMC4zNTk4LDU0Ljg2NjIgTDk4Ljc5MjgsNTQuODY2MiBDOTQuNDMwMDU0OSw1NC44NjYyIDkwLjg3ODUzNjMsNTEuNzc1MDgxMiA5MC43NDA5MzgzLDQ3LjkxMjg0MTIgTDkwLjczNjgsNDcuNjgwMiBMOTAuNzM2OCw0My45MzAyIEw5MC43MTY4LDQxLjk4MzIgTDEwOS40MTU4LDQxLjk4MzIgTDEwOS40MTU4LDMwLjY5OTIgTDExNS4xMjE4LDMwLjY5OTIgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiBmaWxsPSIjMzgyRjJEIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},"551c":function(M,N,D){"use strict";var t,i,e,j,T=D("2d00"),g=D("7726"),s=D("9b43"),u=D("23c6"),z=D("5ca1"),A=D("d3f4"),L=D("d8e8"),I=D("f605"),n=D("4a59"),r=D("ebd6"),w=D("1991").set,c=D("8079")(),y=D("a5b8"),a=D("9c80"),o=D("a25f"),E=D("bcaa"),O="Promise",x=g.TypeError,C=g.process,S=C&&C.versions,l=S&&S.v8||"",k=g[O],Q="process"==u(C),d=function(){},Y=i=y.f,p=!!function(){try{var M=k.resolve(1),N=(M.constructor={})[D("2b4c")("species")]=function(M){M(d,d)};return(Q||"function"==typeof PromiseRejectionEvent)&&M.then(d)instanceof N&&0!==l.indexOf("6.6")&&-1===o.indexOf("Chrome/66")}catch(t){}}(),U=function(M){var N;return!(!A(M)||"function"!=typeof(N=M.then))&&N},h=function(M,N){if(!M._n){M._n=!0;var D=M._c;c((function(){var t=M._v,i=1==M._s,e=0,j=function(N){var D,e,j,T=i?N.ok:N.fail,g=N.resolve,s=N.reject,u=N.domain;try{T?(i||(2==M._h&&v(M),M._h=1),!0===T?D=t:(u&&u.enter(),D=T(t),u&&(u.exit(),j=!0)),D===N.promise?s(x("Promise-chain cycle")):(e=U(D))?e.call(D,g,s):g(D)):s(t)}catch(z){u&&!j&&u.exit(),s(z)}};while(D.length>e)j(D[e++]);M._c=[],M._n=!1,N&&!M._h&&f(M)}))}},f=function(M){w.call(g,(function(){var N,D,t,i=M._v,e=m(M);if(e&&(N=a((function(){Q?C.emit("unhandledRejection",i,M):(D=g.onunhandledrejection)?D({promise:M,reason:i}):(t=g.console)&&t.error&&t.error("Unhandled promise rejection",i)})),M._h=Q||m(M)?2:1),M._a=void 0,e&&N.e)throw N.v}))},m=function(M){return 1!==M._h&&0===(M._a||M._c).length},v=function(M){w.call(g,(function(){var N;Q?C.emit("rejectionHandled",M):(N=g.onrejectionhandled)&&N({promise:M,reason:M._v})}))},B=function(M){var N=this;N._d||(N._d=!0,N=N._w||N,N._v=M,N._s=2,N._a||(N._a=N._c.slice()),h(N,!0))},b=function(M){var N,D=this;if(!D._d){D._d=!0,D=D._w||D;try{if(D===M)throw x("Promise can't be resolved itself");(N=U(M))?c((function(){var t={_w:D,_d:!1};try{N.call(M,s(b,t,1),s(B,t,1))}catch(i){B.call(t,i)}})):(D._v=M,D._s=1,h(D,!1))}catch(t){B.call({_w:D,_d:!1},t)}}};p||(k=function(M){I(this,k,O,"_h"),L(M),t.call(this);try{M(s(b,this,1),s(B,this,1))}catch(N){B.call(this,N)}},t=function(M){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},t.prototype=D("dcbc")(k.prototype,{then:function(M,N){var D=Y(r(this,k));return D.ok="function"!=typeof M||M,D.fail="function"==typeof N&&N,D.domain=Q?C.domain:void 0,this._c.push(D),this._a&&this._a.push(D),this._s&&h(this,!1),D.promise},catch:function(M){return this.then(void 0,M)}}),e=function(){var M=new t;this.promise=M,this.resolve=s(b,M,1),this.reject=s(B,M,1)},y.f=Y=function(M){return M===k||M===j?new e(M):i(M)}),z(z.G+z.W+z.F*!p,{Promise:k}),D("7f20")(k,O),D("7a56")(O),j=D("8378")[O],z(z.S+z.F*!p,O,{reject:function(M){var N=Y(this),D=N.reject;return D(M),N.promise}}),z(z.S+z.F*(T||!p),O,{resolve:function(M){return E(T&&this===j?k:this,M)}}),z(z.S+z.F*!(p&&D("5cc5")((function(M){k.all(M)["catch"](d)}))),O,{all:function(M){var N=this,D=Y(N),t=D.resolve,i=D.reject,e=a((function(){var D=[],e=0,j=1;n(M,!1,(function(M){var T=e++,g=!1;D.push(void 0),j++,N.resolve(M).then((function(M){g||(g=!0,D[T]=M,--j||t(D))}),i)})),--j||t(D)}));return e.e&&i(e.v),D.promise},race:function(M){var N=this,D=Y(N),t=D.reject,i=a((function(){n(M,!1,(function(M){N.resolve(M).then(D.resolve,t)}))}));return i.e&&t(i.v),D.promise}})},"552d":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9InBvaS0vLXBwXzAxIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjRkVDQjAwIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTExOC42MTcyLDcyLjAzOTEgQzEyMS4zNTkyLDcyLjAzOTEgMTIzLjU4MDIsNzQuMjYwMSAxMjMuNTgwMiw3Ny4wMDExIEMxMjMuNTgwMiw3OS43NDExIDEyMS4zNTkyLDgxLjk2MjEgMTE4LjYxNzIsODEuOTYyMSBMODkuMDU1Miw4MS45MjkxIEw2NS41MTIyLDEyMi4zNDExIEw1NS4wODYyLDEyMi4zNDExIEw2Ny40MTYyLDgyLjIwMTEgTDQ1Ljg5MDIsODIuMjAxMSBMMzguNDkxMiw5MS4yODQxIEwzMC40MTkyLDkxLjI4NDEgTDM0LjY4MDIsNzcuMDcwMSBMMzAuNDE5Miw2Mi43MTgxIEwzOC40OTEyLDYyLjcxODEgTDQ1Ljg5MDIsNzEuODAwMSBMNjcuNDE2Miw3MS44MDAxIEw1NS4wODYyLDMxLjY2MTEgTDY1LjUxMjIsMzEuNjYxMSBMODkuMDU1Miw3Mi4wNzMxIEwxMTguNjE3Miw3Mi4wMzkxIFoiIGlkPSJGaWxsLTEiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+"},5537:function(M,N,D){var t=D("8378"),i=D("7726"),e="__core-js_shared__",j=i[e]||(i[e]={});(M.exports=function(M,N){return j[M]||(j[M]=void 0!==N?N:{})})("versions",[]).push({version:t.version,mode:D("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5559:function(M,N,D){var t=D("dbdb")("keys"),i=D("62a0");M.exports=function(M){return t[M]||(t[M]=i(M))}},"55c9":function(M,N,D){(function(M,N){N(D("c1df"))})(0,(function(M){"use strict";
106
106
  //! moment.js locale configuration
107
- var N="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,e=M.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(M,t){return M?/-MMM-/.test(t)?D[M.month()]:N[M.month()]:N},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return e}))},"55dd":function(M,N,D){"use strict";var t=D("5ca1"),i=D("d8e8"),e=D("4bf8"),j=D("79e5"),T=[].sort,g=[1,2,3];t(t.P+t.F*(j((function(){g.sort(void 0)}))||!j((function(){g.sort(null)}))||!D("2f21")(T)),"Array",{sort:function(M){return void 0===M?T.call(e(this)):T.call(e(this),i(M))}})},5609:function(M,N,D){"use strict";D.d(N,"a",(function(){return t})),D.d(N,"b",(function(){return i})),D.d(N,"c",(function(){return e}));var t={LOAD_FULL_AIRPORT:"loadFullAirport",LOAD_AIRPORT:"loadAirport",SET_COORDINATES:"setCoordinates",BLOCK_BBOX:"blockBBOX",RESET_BBOX:"resetBBOX",LOAD_POIS_CATALOG:"loadPoisCatalog",LOAD_POIS_LIST:"loadPoisList",LOAD_TILES_BUILDING_FLOOR:"loadTilesBuildingFloor",LOAD_FLOOR:"loadFloor",LOAD_POI:"loadPOI",CLEAR_POI:"clearPOI",LOAD_ROUTE:"loadRoute",REMOVE_STEP:"removeStep",CLEAR_ROUTE:"clearRoute",MOVE_ROUTE:"moveRoute",GET_ROUTE:"getRoute",SET_DESTINATION_NAME:"setDestinationName",GET_LINE_ROUTE:"getLineRoute",LOAD_ACTIVE_FILTERS:"loadActiveFilters",LOAD_VIEW:"loadView",ADD_LAYER:"addLayer",UPDATE_LAYER:"updateLayer",DELETE_LAYER:"deleteLayer",SET_PMR_PROFILE:"setPMRProfile",SET_FEEDBACK:"setFeedback",LOAD_ACCESS_CONTROL_TIME:"loadAccessControlTime",SET_HOME_POSITION:"setHomePosition"},i={GET_DEVICE_WIDTH:"getDeviceWidth",GET_IS_MOBILE:"getIsMobile",GET_ID:"getId",GET_LANGUAGE:"getLanguage",GET_EXPLORERMODE:"getExplorerMode",GET_AIRPORT:"getAirport",GET_AIRPORT_ID:"getAirportId",GET_CARTOGRAPHY_TILES:"getCartographyTiles",GET_FLOOR:"getFloor",GET_CATEGORY:"getCategory",GET_SUBCATEGORIES:"getSubcategories",GET_BUILDING_ID:"getBuildingId",GET_FLOOR_ID:"getFloorId",GET_ROUTE_CONFIG:"getRouteConfig",GET_BUILDING:"getBuilding",GET_BUILDINGS:"getBuildings",GET_POI_ID:"getPOIId",GET_POID_ID:"getPOIDId",GET_POI:"getPOI",GET_POI_GROUPED:"getPOIGrouped",GET_BLOCK_BBOX:"getBlockBBOX",GET_BBOX:"getBBOX",GET_COORDINATES:"getCoordinates",GET_ZOOM:"getZoom",GET_ACCESS_TOKEN:"getAccessToken",GET_POIS_CATALOG:"getPoisCatalog",GET_POIS_LIST:"getPoisList",GET_TRANSITION_POIS_LIST:"getTransitionPoisList",GET_UNCATEGORIZED_POIS_LIST:"getuncategorizedPoisList",GET_ACTIVE_FILTERS:"getActiveFilters",GET_ROUTE:"getRoute",IS_ROUTE_MODE:"isRouteMode",HAS_ROUTE:"hasRoute",GET_ROUTE_DEFAULT_LEVEL_BUILDING:"getRouteDefaultLevelBuilding",GET_ORIGIN:"getOrigin",GET_DESTINATION:"getDestination",HAS_NEW_POINT:"hasNewPoint",GET_NEW_POINT:"getNewPoint",GET_VIEW:"getView",GET_LAYER_TREE:"getLayerTree",PMR_CONFIG_VISIBLE:"getPMRConfigVisibility",GET_PMR_PROFILE:"getPRMProfile",GET_DEFAULT_PMR_PROFILE:"getDefaultPRMProfile",GET_FEEDBACK:"getFeedback",GET_ROUTE_COUNT:"getRouteCount",GET_PRINTMODE:"getPrintMode",GET_LONLAT:"getLonLat",GET_INITIAL_BBOX:"getInitialBbox",GET_HOME_POSITION:"getHomePosition",IS_MUPI_MODE:"isMupiMode",GET_FILTERING:"getFiltering",GET_ZONAUBICACION:"getZonaubicacion"},e={SAVE_DEVICE_WIDTH:"saveDeviceWidth",SAVE_IS_MOBILE:"saveIsMobile",SAVE_CONFIG:"saveConfig",SET_COORDINATES:"setCoordinates",BLOCK_BBOX:"blockBBOX",SAVE_BBOX:"saveBBOX",SAVE_ACCESS_TOKEN:"saveAccessToken",SAVE_AIRPORT:"saveAirport",SAVE_CARTOGRAPHY_TILES:"saveCartographyTiles",SAVE_POIS_CATALOG:"savePoisCatalog",SAVE_POIS_LIST:"savePoisList",SAVE_TRANSITION_POIS_LIST:"saveTransitionPoisList",SAVE_UNCATEGORIZED_POIS_LIST:"saveuncategorizedPoisList",SAVE_POI:"savePoi",CLEAR_POI:"clearPOI",SAVE_TILES_BUILDING_FLOOR:"saveTilesBuildingFloor",SAVE_FLOOR:"saveFloor",SAVE_ACTIVE_FILTERS:"saveActiveFilters",SAVE_LAYER:"saveLayer",SAVE_ROUTE:"saveRoute",SAVE_DESTINATION_NAME_ROUTE:"saveDestinationNameRoute",SAVE_ROUTE_MODE:"saveRouteMode",SAVE_DEFAULT_LEVEL_BUILDING:"saveDefaultLevelBuilding",SAVE_VIEW:"saveView",REMOVE_LAYER:"removeLayer",SAVE_PMR_CONFIG_VISIBILITY:"SavePMRConfigVisibility",SAVE_PMR_PROFILE:"savePMRProfile",SAVE_FEEDBACK:"saveFeedback",SET_ROUTE_COUNT:"setRouteCount",SAVE_HOME_POSITION:"saveHomePosition",SAVE_FILTERING:"saveFiltering"}},"568a":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9InBvaS0vLXBwXzA3IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjRkVDQjAwIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTYzLjkyMzEsNjEuOTI4NiBDNzEuODcxMSw2MS45Mjg2IDc0LjQ3OTEsNjcuOTM2NiA3OS4zMjExLDc3LjMyNzYgTDg0LjQ3MzEsODcuNTE5NiBMMTAwLjIyMzEsNzEuODc0NiBDMTAxLjY5NDEsNzAuNDAyNiAxMDMuODQ3MSw2OS45MTQ2IDEwNS43ODYxLDcwLjM2NTYgQzEwNi43ODAxLDcwLjU4NzYgMTA3LjY4MzEsNzEuMDc4NiAxMDguNDk0MSw3MS44Mjk2IEMxMTAuNzMzMSw3NC4wNjc2IDExMC43MzIxLDc3LjY5NTYgMTA4LjQ5NDEsNzkuOTMzNiBMODUuNTE2MSwxMDIuODE4NiBDODQuNjE0MSwxMDMuNzU1NiA4My4wMzcxLDEwNC4yNzI2IDgxLjQwOTEsMTA0LjIxNTYgQzc5LjMxNDEsMTA0LjE0MzYgNzcuNTE5MSwxMDIuOTUxNiA3Ni41ODAxLDEwMS4yMzg2IEw2Ny43NzAxLDgyLjQyMDYgTDY0Ljg2MTEsODIuNDIwNiBMNjQuODU4MSwxMjEuOTUyNiBMMzAuNDQ4MSwxMjEuOTUyNiBMMzAuNDQ3MjA4MiwxMjEuNTU2OTM0IEMzMC40MzYxMDc1LDExNi42MjcwMzUgMzAuMzI1MSw2Ny4xOTYzNSAzMC4zMjUxLDYxLjkyODYgTDYzLjkyMzEsNjEuOTI4NiBaIE0xMTguNjA5NywzOS4xNTkgQzEyMS4wNzg3LDM5LjE1OSAxMjMuMDgwNyw0MS4xNjEgMTIzLjA4MDcsNDMuNjI5IEwxMjMuMTIwNywxMjEuODc0IEw3OC4xNjk3LDEyMS44NzQgTDc4LjE2OTcsMTA0LjQ5NiBDNzkuMTE3NywxMDUuMDM5IDgwLjIwNDcsMTA1LjM3MiA4MS4zNjc3LDEwNS40MTIgQzgzLjIxNTcsMTA1LjQ4IDg1LjE1NDcsMTA0LjkwNiA4Ni4zNjE3LDEwMy42NjggTDEwOS4zNDA3LDgwLjc4NCBDMTEwLjI4NTcsNzkuODM5IDExMC44OTc3LDc4LjY5MiAxMTEuMTc5Nyw3Ny40OCBMMTEzLjQyNjcsNzcuNDggTDExMy40MjY3LDQ3LjE2MiBMOTguNzY4Nyw0Ny4xNjIgTDk4Ljc2ODcsNzEuNjI5IEw4NC43OTg3LDg1LjUwNiBMODAuMzg3Nyw3Ni43ODQgQzc5LjYwMTcsNzUuMjU3IDc4Ljg3MDcsNzMuODE4IDc4LjE2OTcsNzIuNDc5IEw3OC4xNjk3LDQzLjYyOSBDNzguMTY5Nyw0MS4xNjEgODAuMTcxNywzOS4xNTkgODIuNjQwNywzOS4xNTkgTDExOC42MDk3LDM5LjE1OSBaIE0xMTcuMjcxMSw0My4xMTkyIEw4NC4wNzgxLDQzLjExOTIgQzgzLjA5MDEsNDMuMTE5MiA4Mi4yODkxLDQzLjkxOTIgODIuMjg5MSw0NC45MDkyIEw4Mi4yODkxLDY4LjExMTIgQzgyLjI4OTEsNjkuMDk3MiA4My4wOTAxLDY5Ljg5OTIgODQuMDc4MSw2OS44OTkyIEw5Ny41NzAxLDY5Ljg5OTIgTDk3LjU3MDEsNDUuOTYzMiBMMTE0LjYyNTEsNDUuOTYzMiBMMTE0LjYyNTEsNjkuODk5MiBMMTE3LjI3MTEsNjkuODk5MiBDMTE4LjI2MDEsNjkuODk5MiAxMTkuMDYwMSw2OS4wOTcyIDExOS4wNjAxLDY4LjExMTIgTDExOS4wNjAxLDQ0LjkwOTIgQzExOS4wNjAxLDQzLjkxOTIgMTE4LjI2MDEsNDMuMTE5MiAxMTcuMjcxMSw0My4xMTkyIFogTTEwNi4wOTY5LDUyLjk1MjkgQzEwNi40NzI5LDUyLjk1MjkgMTA2Ljc3NTksNTMuMjY2OSAxMDYuNzc1OSw1My42NDA5IEwxMDYuNzcwOSw1Ny42NjE5IEwxMTIuMjgyOSw2MC44NzQ5IEwxMTIuMjgyOSw2Mi4yOTY5IEwxMDYuODA3OSw2MC42MTQ5IEwxMDYuODA3OSw2My41NTE5IEwxMDguMDQ2OSw2NC41NTg5IEwxMDguMDQ2OSw2NS42NjI5IEwxMDYuMTA2OSw2NS4wNzk5IEwxMDQuMTQ4OSw2NS42NjI5IEwxMDQuMTQ4OSw2NC41NTg5IEwxMDUuMzg3OSw2My41NTE5IEwxMDUuMzg3OSw2MC42MTQ5IEw5OS45MTM5LDYyLjI5NjkgTDk5LjkxMzksNjAuODc0OSBMMTA1LjQxOTksNTcuNjYxOSBMMTA1LjQyMTksNTMuNjMwOSBDMTA1LjQyMTksNTMuMjU1OSAxMDUuNzI0OSw1Mi45NTI5IDEwNi4wOTY5LDUyLjk1MjkgWiBNNDcuNDc2MiwzMS44NDUxIEM1NC43NDkyLDMxLjg0NTEgNjAuNjQ2MiwzNy43NDMxIDYwLjY0NjIsNDUuMDE3MSBDNjAuNjQ2Miw1Mi4yOTAxIDU0Ljc0OTIsNTguMTg3MSA0Ny40NzYyLDU4LjE4NzEgQzQwLjIwMDIsNTguMTg3MSAzNC4zMDUyLDUyLjI5MDEgMzQuMzA1Miw0NS4wMTcxIEMzNC4zMDUyLDM3Ljc0MzEgNDAuMjAwMiwzMS44NDUxIDQ3LjQ3NjIsMzEuODQ1MSBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+"},"569b":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wYXBfMjEtbWsiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0xMzQsMTE5IEwxMzQsMzUgQzEzNCwyNi43MTYxNDU4IDEyNy4yODM4NTQsMjAgMTE5LDIwIEwzNSwyMCBDMjYuNzE2MTQ1OCwyMCAyMCwyNi43MTYxNDU4IDIwLDM1IEwyMCwxMTkgQzIwLDEyNy4yODM4NTQgMjYuNzE2MTQ1OCwxMzQgMzUsMTM0IEwxMTksMTM0IEMxMjcuMjgzODU0LDEzNCAxMzQsMTI3LjI4Mzg1NCAxMzQsMTE5IFoiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgPGcgaWQ9InBvaS0vLXBhcF8yMSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTksMTMxIEwzNSwxMzEgQzI4LjM3MywxMzEgMjMsMTI1LjYyNyAyMywxMTkgTDIzLDM1IEMyMywyOC4zNzMgMjguMzczLDIzIDM1LDIzIEwxMTksMjMgQzEyNS42MjcsMjMgMTMxLDI4LjM3MyAxMzEsMzUgTDEzMSwxMTkgQzEzMSwxMjUuNjI3IDEyNS42MjcsMTMxIDExOSwxMzEiIGlkPSJGaWxsLTMiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPHBhdGggZD0iTTM4LjkwMTksMTE0LjYwMzkgQzM4LjkwMTksMTExLjM5MTkgNDEuNTA1OSwxMDguNzg4OSA0NC43MTY5LDEwOC43ODg5IEM0Ny45Mjg5LDEwOC43ODg5IDUwLjUzMjksMTExLjM5MTkgNTAuNTMyOSwxMTQuNjAzOSBDNTAuNTMyOSwxMTcuODE0OSA0Ny45Mjg5LDEyMC40MTc5IDQ0LjcxNjksMTIwLjQxNzkgQzQxLjUwNTksMTIwLjQxNzkgMzguOTAxOSwxMTcuODE0OSAzOC45MDE5LDExNC42MDM5IEwzOC45MDE5LDExNC42MDM5IFogTTg5LjU5MTksMTE0LjYwMzkgQzg5LjU5MTksMTExLjM5MTkgOTIuMTk1OSwxMDguNzg4OSA5NS40MDc5LDEwOC43ODg5IEM5OC42MTk5LDEwOC43ODg5IDEwMS4yMjI5LDExMS4zOTE5IDEwMS4yMjI5LDExNC42MDM5IEMxMDEuMjIyOSwxMTcuODE0OSA5OC42MTk5LDEyMC40MTc5IDk1LjQwNzksMTIwLjQxNzkgQzkyLjE5NTksMTIwLjQxNzkgODkuNTkxOSwxMTcuODE0OSA4OS41OTE5LDExNC42MDM5IEw4OS41OTE5LDExNC42MDM5IFogTTk5LjQwNzksOTcuMjM5OSBMOTkuNDA3OSw1OC41MDE5IEM5OS40MDc5LDUyLjYxNzkgMTA0LjIxMjksNDguMDE0OSAxMTAuMDk2OSw0OC4wMTQ5IEwxMTYuMTk3OSw0OC4wMTQ5IEMxMTguMjk0OSw0OC4wMTQ5IDExOS45OTU5LDQ5LjcxNTkgMTE5Ljk5NTksNTEuODEyOSBDMTE5Ljk5NTksNTMuOTA5OSAxMTguMzExOSw1NS42MTA5IDExNi4yMTQ5LDU1LjYxMDkgTDExMC44MDE5LDU1LjYxMDkgQzEwOC43MDQ5LDU1LjYxMDkgMTA3LjAwMzksNTcuMjc4OSAxMDcuMDAzOSw1OS4zNzU5IEwxMDcuMDAzOSwxMDQuODIyOSBMMzcuNzkyOSwxMDQuODIyOSBDMzUuNjk0OSwxMDQuODIyOSAzMy45OTM5LDEwMy4xNDc5IDMzLjk5MzksMTAxLjA1MDkgQzMzLjk5MzksOTguOTUyOSAzNS43Mjk5LDk3LjIzOTkgMzcuODI4OSw5Ny4yMzk5IEw5OS40MDc5LDk3LjIzOTkgWiBNNTkuMTM2OSw1Ni4yODQ5IEw1OS4xMzY5LDUyLjA3MzkgQzU5LjEzNjksNTAuMzg4OSA2MC41MDI5LDQ5LjAyMTkgNjIuMTg2OSw0OS4wMjE5IEw3My40MzI5LDQ5LjAyMTkgQzc1LjExNzksNDkuMDIxOSA3Ni40ODI5LDUwLjM4ODkgNzYuNDgyOSw1Mi4wNzM5IEw3Ni40ODI5LDU2LjI4NDkgTDg5LjM0MjksNTYuMjgyOSBDOTIuNzEwOSw1Ni4yODI5IDk1LjQ0MDksNTkuMDEzOSA5NS40NDA5LDYyLjM4MDkgTDk1LjQ0MDksODcuMTYwOSBDOTUuNDQwOSw5MC41Mjk5IDkyLjcxMDksOTMuMjU4OSA4OS4zNDI5LDkzLjI1ODkgTDQ2LjI3NzksOTMuMjU4OSBDNDIuOTA4OSw5My4yNTg5IDQwLjE3ODksOTAuNTI5OSA0MC4xNzg5LDg3LjE2MDkgTDQwLjE3ODksNjIuMzgwOSBDNDAuMTc4OSw1OS4wMTM5IDQyLjkwODksNTYuMjgyOSA0Ni4yNzc5LDU2LjI4MjkgTDU5LjEzNjksNTYuMjg0OSBaIE03My45NjA5LDU2LjI4MjkgTDYxLjcwMTksNTYuMjgyOSBMNjEuNzAxOSw1My4xNjk5IEM2MS43MDE5LDUyLjI3NTkgNjIuNDI2OSw1MS41NTE5IDYzLjMxOTksNTEuNTUxOSBMNzIuMzUzOSw1MS41NTE5IEM3My4yNDc5LDUxLjU1MTkgNzMuOTcwOSw1Mi4yNzU5IDczLjk3MDksNTMuMTY5OSBMNzMuOTYwOSw1Ni4yODI5IFoiIGlkPSJGaWxsLTEiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},"56d7":function(M,N,D){"use strict";D.r(N),D.d(N,"AMap",(function(){return lA}));D("6b54"),D("87b3"),D("2caf");function t(M,N){if(!(M instanceof N))throw new TypeError("Cannot call a class as a function")}var i=D("454f"),e=D.n(i),j=D("a6fa");function T(M,N){for(var D=0;D<N.length;D++){var t=N[D];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),e()(M,Object(j["a"])(t.key),t)}}function g(M,N,D){return N&&T(M.prototype,N),D&&T(M,D),e()(M,"prototype",{writable:!1}),M}D("28a5"),D("a481"),D("ac6a"),D("f3e2"),D("4917"),D("57e7"),D("cadf"),D("551c"),D("f751"),D("097d"),D("6d93"),D("2ce5");Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function M(){var N=isNaN(arguments[0])?1:Number(arguments[0]);return N?Array.prototype.reduce.call(this,(function(D,t){return Array.isArray(t)?D.push.apply(D,M.call(t,N-1)):D.push(t),D}),[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(M){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});var s=D("a026"),u=function(){var M=this,N=M._self._c;return N("div",{staticClass:"flughaveno-map",class:[M.deviceWidthClass],attrs:{id:M.appId}},[M.isPortrait?N("Modal",{scopedSlots:M._u([{key:"content",fn:function(){return[N("div",{staticClass:"modal-content-wrapper"},[N("Icon",{attrs:{icon:"rotar-tablet.svg",size:"48px",fill:"#ffffff"}}),N("p",[M._v(M._s(M.$t("HORIZONTAL_MESSAGE")))]),N("button",{staticClass:"btn-close",on:{click:M.closeModal}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#ffffff"}})],1)],1)]},proxy:!0}],null,!1,3100628582)}):M._e(),!M.explorerMode&&!M.routeConfig||M.printMode?M._e():N("div",{staticClass:"points-wrapper",class:{"route-mode":M.isRouteMode},attrs:{id:"points-wrapper"}},[M.loaded?N("AenaPoints",{on:{toggle:M.onPointsToggle}}):M._e()],1),M.explorerMode?[N("div",{staticClass:"terminal-selector-wrapper",class:{top:M.selectedPoi&&M.pointsDetailCollapsed}},[M.loaded?N("AenaTerminalSelector"):M._e()],1),N("div",{staticClass:"home-wrapper"},[N("AenaHomeButton")],1),M.printMode?M._e():N("div",{staticClass:"logo-wrapper"},[N("img",{attrs:{src:D("4c46"),alt:"CARTO logo","aria-roledescription":"logo"}})]),!M.printMode&&M.avaMode?N("div",{staticClass:"qr-wrapper"},[N("img",{staticClass:"qr-image",attrs:{src:D("ecc3"),alt:"qr","aria-roledescription":"qr"}})]):M._e(),"true"===M.pmr_enabled&&M.hasRoute&&!M.printMode?N("div",{staticClass:"pmr-wrapper"},[N("AenaPmr")],1):M._e(),M.printMode?M._e():N("div",{staticClass:"legend-wrapper"},[N("AenaLegend")],1),M.feedback&&!M.printMode?N("div",{staticClass:"feedback-wrapper"},[N("Feedback")],1):M._e(),M.printMode&&M.layers?N("Layers",{attrs:{layers:M.layers},on:{change:M.onLayerChange}}):M._e()]:M._e(),N("div",{staticClass:"map-wrapper"},[N("MapComponent",{ref:"map",attrs:{explorerMode:M.explorerMode,printMode:M.printMode,lat:M.lat,lon:M.lon,full_airport_loaded:M.loaded}})],1),M.loaded?M._e():N("div",{staticClass:"loading-airport"},[M._v("\n "+M._s(M.$t("LOADING_AIRPORT"))+"\n ")])],2)},z=[],A=(D("1c01"),D("58b2"),D("8e6e"),D("d25f"),D("456d"),D("7f7f"),D("6d67"),D("8ea5"),D("bd86")),L=(D("96cf"),D("3b8d")),I=D("4360"),n=D("2f62"),r=function(){var M=this,N=M._self._c;return N("div",{staticClass:"map-component",class:[M.deviceWidthClass]},[N("div",{staticClass:"map-component",attrs:{id:M.id}}),M._m(0)])},w=[function(){var M=this,N=M._self._c;return N("div",{staticClass:"attrib"},[N("div",{staticClass:"mapboxgl-ctrl-attrib-inner"},[M._v("©"),N("a",{attrs:{href:"https://aena.es/",target:"_blank",rel:"noopener"}},[M._v("Aena S.M.E, S.A")]),M._v(" ©"),N("a",{attrs:{href:"https://carto.com/",target:"_blank",rel:"noopener"}},[M._v("CARTO")]),M._v(" ©"),N("a",{attrs:{href:"http://www.openstreetmap.org/about/",target:"_blank"}},[M._v("OpenStreetMap")]),M._v(" contributors")])])}],c=(D("6762"),D("2fdb"),D("759f"),D("7618")),y=(D("6c7b"),D("0cd8"),D("75fc")),a=(D("7514"),D("ffc1"),D("e192")),o=(D("ac6d"),D("4e28"));function E(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function O(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?E(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):E(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var x={computed:O({},Object(n["c"])({poisList:I["b"].GET_POIS_LIST,uncategorizedPoisList:I["b"].GET_UNCATEGORIZED_POIS_LIST,hasRoute:I["b"].HAS_ROUTE,routeDefaultLevel:I["b"].GET_ROUTE_DEFAULT_LEVEL_BUILDING})),methods:O(O({},Object(n["b"])([I["a"].LOAD_FLOOR,I["a"].LOAD_POI])),{},{saveFloor:function(M){var N=M.buildingId,D=M.floorId,t=M.force,i=void 0!==t&&t,e=M.airportID,j=M.tag,T=void 0===j?"mapa":j,g=M.event,s=void 0!==g&&g,u=this.buildings.find((function(M){return M.id===N}));if(u){var z=this.routeDefaultLevel[u.id]?this.routeDefaultLevel[u.id]:D,A=!this.hasRoute||i?D:z,L=u.levels.find((function(M){return M.id===A}));if(s){var n="".concat(u.name,". Planta ").concat(L.name),r={eventCategory:T,eventAction:"clic",eventLabel:"".concat(Object(o["a"])(n)),language:this.$i18n.locale,airportID:e};window.digitalChange("event",r)}return this[I["a"].LOAD_FLOOR]({building:u,floor:L})}},findPoi:function(M){var N=this.poisList.features.find((function(N){return N.properties.id===M}));return N||(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N},savePoi:function(M){var N=M.poiId,D=M.pointGrouped,t=M.airportID,i=M.tag,e=this.findPoi(N),j=e.properties.level,T=e.properties.building;return this.saveFloor({buildingId:T,floorId:j,airportID:t,tag:i}),this[I["a"].LOAD_POI]({poi:e,pointGrouped:D})}})},C=(D("20d6"),D("5609")),S=D("d30b");function l(M,N,D){if(null!==M)for(var t,i,e,j,T,g,s,u,z=0,A=0,L=M.type,I="FeatureCollection"===L,n="Feature"===L,r=I?M.features.length:1,w=0;w<r;w++){s=I?M.features[w].geometry:n?M.geometry:M,u=!!s&&"GeometryCollection"===s.type,T=u?s.geometries.length:1;for(var c=0;c<T;c++){var y=0,a=0;if(j=u?s.geometries[c]:s,null!==j){g=j.coordinates;var o=j.type;switch(z=!D||"Polygon"!==o&&"MultiPolygon"!==o?0:1,o){case null:break;case"Point":if(!1===N(g,A,w,y,a))return!1;A++,y++;break;case"LineString":case"MultiPoint":for(t=0;t<g.length;t++){if(!1===N(g[t],A,w,y,a))return!1;A++,"MultiPoint"===o&&y++}"LineString"===o&&y++;break;case"Polygon":case"MultiLineString":for(t=0;t<g.length;t++){for(i=0;i<g[t].length-z;i++){if(!1===N(g[t][i],A,w,y,a))return!1;A++}"MultiLineString"===o&&y++,"Polygon"===o&&a++}"Polygon"===o&&y++;break;case"MultiPolygon":for(t=0;t<g.length;t++){for(a=0,i=0;i<g[t].length;i++){for(e=0;e<g[t][i].length-z;e++){if(!1===N(g[t][i][e],A,w,y,a))return!1;A++}a++}y++}break;case"GeometryCollection":for(t=0;t<j.geometries.length;t++)if(!1===l(j.geometries[t],N,D))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function k(M,N){if("Feature"===M.type)N(M,0);else if("FeatureCollection"===M.type)for(var D=0;D<M.features.length;D++)if(!1===N(M.features[D],D))break}function Q(M,N){void 0===N&&(N={});var D=0,t=0,i=0;return l(M,(function(M){D+=M[0],t+=M[1],i++}),!0),Object(S["g"])([D/i,t/i],N.properties)}var d=Q,Y=D("4703");function p(M,N,D){void 0===D&&(D=2);var t=Object(Y["a"])(M),i=Object(Y["a"])(N),e=t[0]-i[0],j=t[1]-i[1];return 1===D?Math.abs(e)+Math.abs(j):Math.pow(Math.pow(e,D)+Math.pow(j,D),1/D)}function U(M,N){N=N||{};var D=N.threshold||1e4,t=N.p||2,i=N.binary||!1,e=N.alpha||-1,j=N.standardization||!1,T=[];k(M,(function(M){T.push(d(M))}));for(var g=[],s=0;s<T.length;s++)g[s]=[];for(s=0;s<T.length;s++)for(var u=s;u<T.length;u++){s===u&&(g[s][u]=0);var z=p(T[s],T[u],t);g[s][u]=z,g[u][s]=z}for(s=0;s<T.length;s++)for(u=0;u<T.length;u++){z=g[s][u];0!==z&&(g[s][u]=i?z<=D?1:0:z<=D?Math.pow(z,e):0)}if(j)for(s=0;s<T.length;s++){var A=g[s].reduce((function(M,N){return M+N}),0);for(u=0;u<T.length;u++)g[s][u]=g[s][u]/A}return g}function h(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function f(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?h(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):h(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var m={computed:f({},Object(n["c"])({buildings:C["b"].GET_BUILDINGS})),methods:{getBuilding:function(M){return this.buildings.find((function(N){return N.id===M}))},setLocation:function(){var M=this,N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N.forEach((function(N){N.properties.location=M.getBuilding(N.properties.building)}))}}},v=D("8967");function B(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function b(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?B(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):B(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var P={mixins:[m],computed:b(b({},Object(n["c"])({routeC:C["b"].GET_ROUTE,originC:C["b"].GET_ORIGIN,destinationC:C["b"].GET_DESTINATION,newPoints:C["b"].GET_NEW_POINT,pmrProfile:C["b"].GET_PMR_PROFILE})),{},{steps:{get:function(){return this.routeC.steps},set:function(M){this[C["a"].MOVE_ROUTE]({steps:M})}},route:function(){return this.routeC.route},origin:function(){var M=this.originC;if(M)return this.setLocation([M]),M},destination:function(){var M=this.destinationC;if(M)return this.setLocation([M]),M},duration:function(){return this.routeC.duration},distance:function(){return this.routeC.distance},error:function(){return this.routeC.error},loading:function(){return this.routeC.loading},destinationName:function(){return this.routeC.destinationName},routeCondition:function(){var M,N,D,t,i,e,j="",T="",g="",s=null===this.pmrProfile?"hombre-caminando-t.svg":"pmr-t-green.svg";return this.route.some((function(j){var T=j.instructions.filter((function(M){return v["d"].includes(M.tag.type.toUpperCase())||v["c"].includes(M.tag.type.toUpperCase())||v["b"].includes(M.tag.type.toUpperCase())}));return M=T.filter((function(M){return M.tag.type.toUpperCase()===v["d"][0]})).length,D=T.filter((function(M){return M.tag.type.toUpperCase()===v["d"][1]})).length,e=T.filter((function(M){return M.tag.type.toUpperCase()===v["b"][0]})).length,N=M>1||M&&D,t=T.filter((function(M){return M.tag.type.toUpperCase()===v["c"][0]})).length,i=T.filter((function(M){return M.tag.type.toUpperCase()===v["c"][1]})).length,M||N||D||t||i})),N?(j="ROUTE_SECURITY_CONTROL_PLUS",s="icon-seguridad-t.svg"):M?(j="ROUTE_SECURITY_CONTROL",s="icon-seguridad-t.svg"):D&&(j="ROUTE_PASSPORT_CONTROL",s="cruza-el-control-de-pasaporte-jj.svg"),t&&i?(T="ROUTE_MULTI_TRANSPORT",s="transporte-publico-t.svg"):t?(T="ROUTE_TRAIN",s="metro-t.svg"):i&&(T="ROUTE_BUS",s="bus-grande-t.svg"),e&&(g="ROUTE_ONEWAY_NO_RETURN"),j||T||(T=null===this.pmrProfile?"ROUTE_NORMAL":"ROUTE_NORMAL_PMR"),j&&T&&(s="seguridad-transporte.svg"),{msg:j,msg2:T,msg3:g,icon:s,securityControl:!!M||!!D,oneWay:!!e}},iconCondition:function(){return this.routeCondition.icon},z:function(){return this.routeC.z}}),methods:b(b({},Object(n["b"])([C["a"].LOAD_ROUTE,C["a"].CLEAR_ROUTE,C["a"].MOVE_ROUTE,C["a"].SET_DESTINATION_NAME])),{},{moreClose:function(M){var N=M[0];if(this.origin||this.destination){var D={type:"FeatureCollection",features:[this.origin||this.destination].concat(Object(y["a"])(M))},t=U(D),i=t[0];i.shift();var e=Math.max.apply(Math,Object(y["a"])(i)),j=i.findIndex((function(M){return M===e}));N=M[j]}return N},setDestination:function(M){this[C["a"].SET_DESTINATION_NAME](M)}})},Z=D("db49"),G=function(){var M=this,N=M._self._c;return N("ul",{staticClass:"context-menu-container"},[M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"FROM_HERE",expression:"'FROM_HERE'"}],on:{click:function(N){return M.click("origin")}}}):M._e(),M.origin&&M.destination&&M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"ADD_POINT",expression:"'ADD_POINT'"}],on:{click:function(N){return M.click("step")}}}):M._e(),M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"TO_HERE",expression:"'TO_HERE'"}],on:{click:function(N){return M.click("destination")}}}):M._e(),M.debugMode?N("li",{staticClass:"debug-li"},[N("p",{staticClass:"debug-header"},[M._v("EPSG: 4326")]),N("p",[N("span",{staticClass:"debug-header"},[M._v("Lat:")]),N("input",{ref:"lat",staticClass:"debug-text",domProps:{value:M.coordinates4326[0]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("lat")}}},[M._v("copy")])]),N("p",[N("span",{staticClass:"debug-header"},[M._v("Lon:")]),N("input",{ref:"lon",staticClass:"debug-text",domProps:{value:M.coordinates4326[1]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("lon")}}},[M._v("copy")])])]):M._e(),M.debugMode?N("li",[N("p",{staticClass:"debug-header"},[M._v("EPSG: 3857")]),N("p",[N("span",{staticClass:"debug-header"},[M._v("x:")]),N("input",{ref:"x",staticClass:"debug-text",domProps:{value:M.coordinates3857[0]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("x")}}},[M._v("copy")])]),N("p",[N("span",{staticClass:"debug-header"},[M._v("y:")]),N("input",{ref:"y",staticClass:"debug-text",domProps:{value:M.coordinates3857[1]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("y")}}},[M._v("copy")])])]):M._e()])},W=[],R=(D("c5f6"),function(M){M("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),M("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),M("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var N=1;N<=60;++N)M("EPSG:"+(32600+N),"+proj=utm +zone="+N+" +datum=WGS84 +units=m"),M("EPSG:"+(32700+N),"+proj=utm +zone="+N+" +south +datum=WGS84 +units=m");M.WGS84=M["EPSG:4326"],M["EPSG:3785"]=M["EPSG:3857"],M.GOOGLE=M["EPSG:3857"],M["EPSG:900913"]=M["EPSG:3857"],M["EPSG:102113"]=M["EPSG:3857"]}),X=1,_=2,H=3,F=4,V=5,J=6378137,q=6356752.314,K=.0066943799901413165,$=484813681109536e-20,MM=Math.PI/2,NM=.16666666666666666,DM=.04722222222222222,tM=.022156084656084655,iM=1e-10,eM=.017453292519943295,jM=57.29577951308232,TM=Math.PI/4,gM=2*Math.PI,sM=3.14159265359,uM={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},zM={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}},AM=/[\s_\-\/\(\)]/g;function LM(M,N){if(M[N])return M[N];var D,t,i=Object.keys(M),e=N.toLowerCase().replace(AM,""),j=-1;while(++j<i.length)if(D=i[j],t=D.toLowerCase().replace(AM,""),t===e)return M[D]}var IM=function(M){var N,D,t,i={},e=M.split("+").map((function(M){return M.trim()})).filter((function(M){return M})).reduce((function(M,N){var D=N.split("=");return D.push(!0),M[D[0].toLowerCase()]=D[1],M}),{}),j={proj:"projName",datum:"datumCode",rf:function(M){i.rf=parseFloat(M)},lat_0:function(M){i.lat0=M*eM},lat_1:function(M){i.lat1=M*eM},lat_2:function(M){i.lat2=M*eM},lat_ts:function(M){i.lat_ts=M*eM},lon_0:function(M){i.long0=M*eM},lon_1:function(M){i.long1=M*eM},lon_2:function(M){i.long2=M*eM},alpha:function(M){i.alpha=parseFloat(M)*eM},gamma:function(M){i.rectified_grid_angle=parseFloat(M)*eM},lonc:function(M){i.longc=M*eM},x_0:function(M){i.x0=parseFloat(M)},y_0:function(M){i.y0=parseFloat(M)},k_0:function(M){i.k0=parseFloat(M)},k:function(M){i.k0=parseFloat(M)},a:function(M){i.a=parseFloat(M)},b:function(M){i.b=parseFloat(M)},r:function(M){i.a=i.b=parseFloat(M)},r_a:function(){i.R_A=!0},zone:function(M){i.zone=parseInt(M,10)},south:function(){i.utmSouth=!0},towgs84:function(M){i.datum_params=M.split(",").map((function(M){return parseFloat(M)}))},to_meter:function(M){i.to_meter=parseFloat(M)},units:function(M){i.units=M;var N=LM(zM,M);N&&(i.to_meter=N.to_meter)},from_greenwich:function(M){i.from_greenwich=M*eM},pm:function(M){var N=LM(uM,M);i.from_greenwich=(N||parseFloat(M))*eM},nadgrids:function(M){"@null"===M?i.datumCode="none":i.nadgrids=M},axis:function(M){var N="ewnsud";3===M.length&&-1!==N.indexOf(M.substr(0,1))&&-1!==N.indexOf(M.substr(1,1))&&-1!==N.indexOf(M.substr(2,1))&&(i.axis=M)},approx:function(){i.approx=!0}};for(N in e)D=e[N],N in j?(t=j[N],"function"===typeof t?t(D):i[t]=D):i[N]=D;return"string"===typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i};class nM{static getId(M){const N=M.find(M=>Array.isArray(M)&&"ID"===M[0]);return N&&N.length>=3?{authority:N[1],code:parseInt(N[2],10)}:null}static convertUnit(M,N="unit"){if(!M||M.length<3)return{type:N,name:"unknown",conversion_factor:null};const D=M[1],t=parseFloat(M[2])||null,i=M.find(M=>Array.isArray(M)&&"ID"===M[0]),e=i?{authority:i[1],code:parseInt(i[2],10)}:null;return{type:N,name:D,conversion_factor:t,id:e}}static convertAxis(M){const N=M[1]||"Unknown";let D;const t=N.match(/^\((.)\)$/);if(t){const M=t[1].toUpperCase();if("E"===M)D="east";else if("N"===M)D="north";else{if("U"!==M)throw new Error("Unknown axis abbreviation: "+M);D="up"}}else D=M[2]?M[2].toLowerCase():"unknown";const i=M.find(M=>Array.isArray(M)&&"ORDER"===M[0]),e=i?parseInt(i[1],10):null,j=M.find(M=>Array.isArray(M)&&("LENGTHUNIT"===M[0]||"ANGLEUNIT"===M[0]||"SCALEUNIT"===M[0])),T=this.convertUnit(j);return{name:N,direction:D,unit:T,order:e}}static extractAxes(M){return M.filter(M=>Array.isArray(M)&&"AXIS"===M[0]).map(M=>this.convertAxis(M)).sort((M,N)=>(M.order||0)-(N.order||0))}static convert(M,N={}){switch(M[0]){case"PROJCRS":N.type="ProjectedCRS",N.name=M[1],N.base_crs=M.find(M=>Array.isArray(M)&&"BASEGEOGCRS"===M[0])?this.convert(M.find(M=>Array.isArray(M)&&"BASEGEOGCRS"===M[0])):null,N.conversion=M.find(M=>Array.isArray(M)&&"CONVERSION"===M[0])?this.convert(M.find(M=>Array.isArray(M)&&"CONVERSION"===M[0])):null;const D=M.find(M=>Array.isArray(M)&&"CS"===M[0]);D&&(N.coordinate_system={type:D[1],axis:this.extractAxes(M)});const t=M.find(M=>Array.isArray(M)&&"LENGTHUNIT"===M[0]);if(t){const M=this.convertUnit(t);N.coordinate_system.unit=M}N.id=this.getId(M);break;case"BASEGEOGCRS":case"GEOGCRS":N.type="GeographicCRS",N.name=M[1];const i=M.find(M=>Array.isArray(M)&&("DATUM"===M[0]||"ENSEMBLE"===M[0]));if(i){const D=this.convert(i);"ENSEMBLE"===i[0]?N.datum_ensemble=D:N.datum=D;const t=M.find(M=>Array.isArray(M)&&"PRIMEM"===M[0]);t&&"Greenwich"!==t[1]&&(D.prime_meridian={name:t[1],longitude:parseFloat(t[2])})}N.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(M)},N.id=this.getId(M);break;case"DATUM":N.type="GeodeticReferenceFrame",N.name=M[1],N.ellipsoid=M.find(M=>Array.isArray(M)&&"ELLIPSOID"===M[0])?this.convert(M.find(M=>Array.isArray(M)&&"ELLIPSOID"===M[0])):null;break;case"ENSEMBLE":N.type="DatumEnsemble",N.name=M[1],N.members=M.filter(M=>Array.isArray(M)&&"MEMBER"===M[0]).map(M=>({type:"DatumEnsembleMember",name:M[1],id:this.getId(M)}));const e=M.find(M=>Array.isArray(M)&&"ENSEMBLEACCURACY"===M[0]);e&&(N.accuracy=parseFloat(e[1]));const j=M.find(M=>Array.isArray(M)&&"ELLIPSOID"===M[0]);j&&(N.ellipsoid=this.convert(j)),N.id=this.getId(M);break;case"ELLIPSOID":N.type="Ellipsoid",N.name=M[1],N.semi_major_axis=parseFloat(M[2]),N.inverse_flattening=parseFloat(M[3]);M.find(M=>Array.isArray(M)&&"LENGTHUNIT"===M[0])&&this.convert(M.find(M=>Array.isArray(M)&&"LENGTHUNIT"===M[0]),N);break;case"CONVERSION":N.type="Conversion",N.name=M[1],N.method=M.find(M=>Array.isArray(M)&&"METHOD"===M[0])?this.convert(M.find(M=>Array.isArray(M)&&"METHOD"===M[0])):null,N.parameters=M.filter(M=>Array.isArray(M)&&"PARAMETER"===M[0]).map(M=>this.convert(M));break;case"METHOD":N.type="Method",N.name=M[1],N.id=this.getId(M);break;case"PARAMETER":N.type="Parameter",N.name=M[1],N.value=parseFloat(M[2]),N.unit=this.convertUnit(M.find(M=>Array.isArray(M)&&("LENGTHUNIT"===M[0]||"ANGLEUNIT"===M[0]||"SCALEUNIT"===M[0]))),N.id=this.getId(M);break;case"BOUNDCRS":N.type="BoundCRS";const T=M.find(M=>Array.isArray(M)&&"SOURCECRS"===M[0]);if(T){const M=T.find(M=>Array.isArray(M));N.source_crs=M?this.convert(M):null}const g=M.find(M=>Array.isArray(M)&&"TARGETCRS"===M[0]);if(g){const M=g.find(M=>Array.isArray(M));N.target_crs=M?this.convert(M):null}const s=M.find(M=>Array.isArray(M)&&"ABRIDGEDTRANSFORMATION"===M[0]);N.transformation=s?this.convert(s):null;break;case"ABRIDGEDTRANSFORMATION":if(N.type="Transformation",N.name=M[1],N.method=M.find(M=>Array.isArray(M)&&"METHOD"===M[0])?this.convert(M.find(M=>Array.isArray(M)&&"METHOD"===M[0])):null,N.parameters=M.filter(M=>Array.isArray(M)&&("PARAMETER"===M[0]||"PARAMETERFILE"===M[0])).map(M=>"PARAMETER"===M[0]?this.convert(M):"PARAMETERFILE"===M[0]?{name:M[1],value:M[2],id:{authority:"EPSG",code:8656}}:void 0),7===N.parameters.length){const M=N.parameters[6];"Scale difference"===M.name&&(M.value=Math.round(1e12*(M.value-1))/1e6)}N.id=this.getId(M);break;case"AXIS":N.coordinate_system||(N.coordinate_system={type:"unspecified",axis:[]}),N.coordinate_system.axis.push(this.convertAxis(M));break;case"LENGTHUNIT":const u=this.convertUnit(M,"LinearUnit");N.coordinate_system&&N.coordinate_system.axis&&N.coordinate_system.axis.forEach(M=>{M.unit||(M.unit=u)}),u.conversion_factor&&1!==u.conversion_factor&&N.semi_major_axis&&(N.semi_major_axis={value:N.semi_major_axis,unit:u});break;default:N.keyword=M[0];break}return N}}var rM=nM;class wM extends rM{static convert(M,N={}){return super.convert(M,N),N.coordinate_system&&"Cartesian"===N.coordinate_system.subtype&&delete N.coordinate_system,N.usage&&delete N.usage,N}}var cM=wM;class yM extends rM{static convert(M,N={}){super.convert(M,N);const D=M.find(M=>Array.isArray(M)&&"CS"===M[0]);D&&(N.coordinate_system={subtype:D[1],axis:this.extractAxes(M)});const t=M.find(M=>Array.isArray(M)&&"USAGE"===M[0]);if(t){const M=t.find(M=>Array.isArray(M)&&"SCOPE"===M[0]),D=t.find(M=>Array.isArray(M)&&"AREA"===M[0]),i=t.find(M=>Array.isArray(M)&&"BBOX"===M[0]);N.usage={},M&&(N.usage.scope=M[1]),D&&(N.usage.area=D[1]),i&&(N.usage.bbox=i.slice(1))}return N}}var aM=yM;function oM(M){return M.find(M=>Array.isArray(M)&&"USAGE"===M[0])?"2019":(M.find(M=>Array.isArray(M)&&"CS"===M[0])||"BOUNDCRS"===M[0]||"PROJCRS"===M[0]||M[0],"2015")}function EM(M){const N=oM(M),D="2019"===N?aM:cM;return D.convert(M)}function OM(M){const N=M.toUpperCase();return N.includes("PROJCRS")||N.includes("GEOGCRS")||N.includes("BOUNDCRS")||N.includes("VERTCRS")||N.includes("LENGTHUNIT")||N.includes("ANGLEUNIT")||N.includes("SCALEUNIT")?"WKT2":(N.includes("PROJCS")||N.includes("GEOGCS")||N.includes("LOCAL_CS")||N.includes("VERT_CS")||N.includes("UNIT"),"WKT1")}var xM=vM,CM=1,SM=2,lM=3,kM=4,QM=5,dM=-1,YM=/\s/,pM=/[A-Za-z]/,UM=/[A-Za-z84_]/,hM=/[,\]]/,fM=/[\d\.E\-\+]/;function mM(M){if("string"!==typeof M)throw new Error("not a string");this.text=M.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=CM}function vM(M){var N=new mM(M);return N.output()}function BM(M,N,D){Array.isArray(N)&&(D.unshift(N),N=null);var t=N?{}:M,i=D.reduce((function(M,N){return bM(N,M),M}),t);N&&(M[N]=i)}function bM(M,N){if(Array.isArray(M)){var D=M.shift();if("PARAMETER"===D&&(D=M.shift()),1===M.length)return Array.isArray(M[0])?(N[D]={},void bM(M[0],N[D])):void(N[D]=M[0]);if(M.length)if("TOWGS84"!==D){if("AXIS"===D)return D in N||(N[D]=[]),void N[D].push(M);var t;switch(Array.isArray(D)||(N[D]={}),D){case"UNIT":case"PRIMEM":case"VERT_DATUM":return N[D]={name:M[0].toLowerCase(),convert:M[1]},void(3===M.length&&bM(M[2],N[D]));case"SPHEROID":case"ELLIPSOID":return N[D]={name:M[0],a:M[1],rf:M[2]},void(4===M.length&&bM(M[3],N[D]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return M[0]=["name",M[0]],void BM(N,D,M);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return M[0]=["name",M[0]],BM(N,D,M),void(N[D].type=D);default:t=-1;while(++t<M.length)if(!Array.isArray(M[t]))return bM(M,N[D]);return BM(N,D,M)}}else N[D]=M;else N[D]=!0}else N[M]=!0}mM.prototype.readCharicter=function(){var M=this.text[this.place++];if(this.state!==kM)while(YM.test(M)){if(this.place>=this.text.length)return;M=this.text[this.place++]}switch(this.state){case CM:return this.neutral(M);case SM:return this.keyword(M);case kM:return this.quoted(M);case QM:return this.afterquote(M);case lM:return this.number(M);case dM:return}},mM.prototype.afterquote=function(M){if('"'===M)return this.word+='"',void(this.state=kM);if(hM.test(M))return this.word=this.word.trim(),void this.afterItem(M);throw new Error("havn't handled \""+M+'" in afterquote yet, index '+this.place)},mM.prototype.afterItem=function(M){return","===M?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=CM)):"]"===M?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=CM,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=dM))):void 0},mM.prototype.number=function(M){if(!fM.test(M)){if(hM.test(M))return this.word=parseFloat(this.word),void this.afterItem(M);throw new Error("havn't handled \""+M+'" in number yet, index '+this.place)}this.word+=M},mM.prototype.quoted=function(M){'"'!==M?this.word+=M:this.state=QM},mM.prototype.keyword=function(M){if(UM.test(M))this.word+=M;else{if("["===M){var N=[];return N.push(this.word),this.level++,null===this.root?this.root=N:this.currentObject.push(N),this.stack.push(this.currentObject),this.currentObject=N,void(this.state=CM)}if(!hM.test(M))throw new Error("havn't handled \""+M+'" in keyword yet, index '+this.place);this.afterItem(M)}},mM.prototype.neutral=function(M){if(pM.test(M))return this.word=M,void(this.state=SM);if('"'===M)return this.word="",void(this.state=kM);if(fM.test(M))return this.word=M,void(this.state=lM);if(!hM.test(M))throw new Error("havn't handled \""+M+'" in neutral yet, index '+this.place);this.afterItem(M)},mM.prototype.output=function(){while(this.place<this.text.length)this.readCharicter();if(this.state===dM)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var PM=.017453292519943295;function ZM(M){return M*PM}function GM(M){const N=(M.projName||"").toLowerCase().replace(/_/g," ");M.long0||!M.longc||"albers conic equal area"!==N&&"lambert azimuthal equal area"!==N||(M.long0=M.longc),M.lat_ts||!M.lat1||"stereographic south pole"!==N&&"polar stereographic (variant b)"!==N?M.lat_ts||!M.lat0||"polar stereographic"!==N&&"polar stereographic (variant a)"!==N||(M.lat_ts=M.lat0,M.lat0=ZM(M.lat0>0?90:-90),delete M.lat1):(M.lat0=ZM(M.lat1>0?90:-90),M.lat_ts=M.lat1,delete M.lat1)}function WM(M){let N={units:null,to_meter:void 0};return"string"===typeof M?(N.units=M.toLowerCase(),"metre"===N.units&&(N.units="meter"),"meter"===N.units&&(N.to_meter=1)):M&&M.name&&(N.units=M.name.toLowerCase(),"metre"===N.units&&(N.units="meter"),N.to_meter=M.conversion_factor),N}function RM(M){return"object"===typeof M?M.value*M.unit.conversion_factor:M}function XM(M,N){M.ellipsoid.radius?(N.a=M.ellipsoid.radius,N.rf=0):(N.a=RM(M.ellipsoid.semi_major_axis),void 0!==M.ellipsoid.inverse_flattening?N.rf=M.ellipsoid.inverse_flattening:void 0!==M.ellipsoid.semi_major_axis&&void 0!==M.ellipsoid.semi_minor_axis&&(N.rf=N.a/(N.a-RM(M.ellipsoid.semi_minor_axis))))}function _M(M,N={}){return M&&"object"===typeof M?"BoundCRS"===M.type?(_M(M.source_crs,N),M.transformation&&(M.transformation.method&&"NTv2"===M.transformation.method.name?N.nadgrids=M.transformation.parameters[0].value:N.datum_params=M.transformation.parameters.map(M=>M.value)),N):(Object.keys(M).forEach(D=>{const t=M[D];if(null!==t)switch(D){case"name":if(N.srsCode)break;N.name=t,N.srsCode=t;break;case"type":"GeographicCRS"===t?N.projName="longlat":"ProjectedCRS"===t&&M.conversion&&M.conversion.method&&(N.projName=M.conversion.method.name);break;case"datum":case"datum_ensemble":t.ellipsoid&&(N.ellps=t.ellipsoid.name,XM(t,N)),t.prime_meridian&&(N.from_greenwich=t.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":N.ellps=t.name,XM(t,N);break;case"prime_meridian":N.long0=(t.longitude||0)*Math.PI/180;break;case"coordinate_system":if(t.axis)if(N.axis=t.axis.map(M=>{const N=M.direction;if("east"===N)return"e";if("north"===N)return"n";if("west"===N)return"w";if("south"===N)return"s";throw new Error("Unknown axis direction: "+N)}).join("")+"u",t.unit){const{units:M,to_meter:D}=WM(t.unit);N.units=M,N.to_meter=D}else if(t.axis[0]&&t.axis[0].unit){const{units:M,to_meter:D}=WM(t.axis[0].unit);N.units=M,N.to_meter=D}break;case"id":t.authority&&t.code&&(N.title=t.authority+":"+t.code);break;case"conversion":t.method&&t.method.name&&(N.projName=t.method.name),t.parameters&&t.parameters.forEach(M=>{const D=M.name.toLowerCase().replace(/\s+/g,"_"),t=M.value;M.unit&&M.unit.conversion_factor?N[D]=t*M.unit.conversion_factor:"degree"===M.unit?N[D]=t*Math.PI/180:N[D]=t});break;case"unit":t.name&&(N.units=t.name.toLowerCase(),"metre"===N.units&&(N.units="meter")),t.conversion_factor&&(N.to_meter=t.conversion_factor);break;case"base_crs":_M(t,N),N.datumCode=t.id?t.id.authority+"_"+t.id.code:t.name;break;default:break}}),void 0!==N.latitude_of_false_origin&&(N.lat0=N.latitude_of_false_origin),void 0!==N.longitude_of_false_origin&&(N.long0=N.longitude_of_false_origin),void 0!==N.latitude_of_standard_parallel&&(N.lat0=N.latitude_of_standard_parallel,N.lat1=N.latitude_of_standard_parallel),void 0!==N.latitude_of_1st_standard_parallel&&(N.lat1=N.latitude_of_1st_standard_parallel),void 0!==N.latitude_of_2nd_standard_parallel&&(N.lat2=N.latitude_of_2nd_standard_parallel),void 0!==N.latitude_of_projection_centre&&(N.lat0=N.latitude_of_projection_centre),void 0!==N.longitude_of_projection_centre&&(N.longc=N.longitude_of_projection_centre),void 0!==N.easting_at_false_origin&&(N.x0=N.easting_at_false_origin),void 0!==N.northing_at_false_origin&&(N.y0=N.northing_at_false_origin),void 0!==N.latitude_of_natural_origin&&(N.lat0=N.latitude_of_natural_origin),void 0!==N.longitude_of_natural_origin&&(N.long0=N.longitude_of_natural_origin),void 0!==N.longitude_of_origin&&(N.long0=N.longitude_of_origin),void 0!==N.false_easting&&(N.x0=N.false_easting),N.easting_at_projection_centre&&(N.x0=N.easting_at_projection_centre),void 0!==N.false_northing&&(N.y0=N.false_northing),N.northing_at_projection_centre&&(N.y0=N.northing_at_projection_centre),void 0!==N.standard_parallel_1&&(N.lat1=N.standard_parallel_1),void 0!==N.standard_parallel_2&&(N.lat2=N.standard_parallel_2),void 0!==N.scale_factor_at_natural_origin&&(N.k0=N.scale_factor_at_natural_origin),void 0!==N.scale_factor_at_projection_centre&&(N.k0=N.scale_factor_at_projection_centre),void 0!==N.scale_factor_on_pseudo_standard_parallel&&(N.k0=N.scale_factor_on_pseudo_standard_parallel),void 0!==N.azimuth&&(N.alpha=N.azimuth),void 0!==N.azimuth_at_projection_centre&&(N.alpha=N.azimuth_at_projection_centre),N.angle_from_rectified_to_skew_grid&&(N.rectified_grid_angle=N.angle_from_rectified_to_skew_grid),GM(N),N):M}var HM=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function FM(M,N){var D=N[0],t=N[1];!(D in M)&&t in M&&(M[D]=M[t],3===N.length&&(M[D]=N[2](M[D])))}function VM(M){for(var N=Object.keys(M),D=0,t=N.length;D<t;++D){var i=N[D];-1!==HM.indexOf(i)&&JM(M[i]),"object"===typeof M[i]&&VM(M[i])}}function JM(M){if(M.AUTHORITY){var N=Object.keys(M.AUTHORITY)[0];N&&N in M.AUTHORITY&&(M.title=N+":"+M.AUTHORITY[N])}if("GEOGCS"===M.type?M.projName="longlat":"LOCAL_CS"===M.type?(M.projName="identity",M.local=!0):"object"===typeof M.PROJECTION?M.projName=Object.keys(M.PROJECTION)[0]:M.projName=M.PROJECTION,M.AXIS){for(var D="",t=0,i=M.AXIS.length;t<i;++t){var e=[M.AXIS[t][0].toLowerCase(),M.AXIS[t][1].toLowerCase()];-1!==e[0].indexOf("north")||("y"===e[0]||"lat"===e[0])&&"north"===e[1]?D+="n":-1!==e[0].indexOf("south")||("y"===e[0]||"lat"===e[0])&&"south"===e[1]?D+="s":-1!==e[0].indexOf("east")||("x"===e[0]||"lon"===e[0])&&"east"===e[1]?D+="e":-1===e[0].indexOf("west")&&("x"!==e[0]&&"lon"!==e[0]||"west"!==e[1])||(D+="w")}2===D.length&&(D+="u"),3===D.length&&(M.axis=D)}M.UNIT&&(M.units=M.UNIT.name.toLowerCase(),"metre"===M.units&&(M.units="meter"),M.UNIT.convert&&("GEOGCS"===M.type?M.DATUM&&M.DATUM.SPHEROID&&(M.to_meter=M.UNIT.convert*M.DATUM.SPHEROID.a):M.to_meter=M.UNIT.convert));var j=M.GEOGCS;function T(N){var D=M.to_meter||1;return N*D}"GEOGCS"===M.type&&(j=M),j&&(j.DATUM?M.datumCode=j.DATUM.name.toLowerCase():M.datumCode=j.name.toLowerCase(),"d_"===M.datumCode.slice(0,2)&&(M.datumCode=M.datumCode.slice(2)),"new_zealand_1949"===M.datumCode&&(M.datumCode="nzgd49"),"wgs_1984"!==M.datumCode&&"world_geodetic_system_1984"!==M.datumCode||("Mercator_Auxiliary_Sphere"===M.PROJECTION&&(M.sphere=!0),M.datumCode="wgs84"),"belge_1972"===M.datumCode&&(M.datumCode="rnb72"),j.DATUM&&j.DATUM.SPHEROID&&(M.ellps=j.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===M.ellps.toLowerCase().slice(0,13)&&(M.ellps="intl"),M.a=j.DATUM.SPHEROID.a,M.rf=parseFloat(j.DATUM.SPHEROID.rf,10)),j.DATUM&&j.DATUM.TOWGS84&&(M.datum_params=j.DATUM.TOWGS84),~M.datumCode.indexOf("osgb_1936")&&(M.datumCode="osgb36"),~M.datumCode.indexOf("osni_1952")&&(M.datumCode="osni52"),(~M.datumCode.indexOf("tm65")||~M.datumCode.indexOf("geodetic_datum_of_1965"))&&(M.datumCode="ire65"),"ch1903+"===M.datumCode&&(M.datumCode="ch1903"),~M.datumCode.indexOf("israel")&&(M.datumCode="isr93")),M.b&&!isFinite(M.b)&&(M.b=M.a),M.rectified_grid_angle&&(M.rectified_grid_angle=ZM(M.rectified_grid_angle));var g=function(N){return FM(M,N)},s=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",ZM],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",ZM],["x0","false_easting",T],["y0","false_northing",T],["long0","central_meridian",ZM],["lat0","latitude_of_origin",ZM],["lat0","standard_parallel_1",ZM],["lat1","standard_parallel_1",ZM],["lat2","standard_parallel_2",ZM],["azimuth","Azimuth"],["alpha","azimuth",ZM],["srsCode","name"]];s.forEach(g),GM(M)}var qM=function(M){if("object"===typeof M)return _M(M);const N=OM(M);var D=xM(M);if("WKT2"===N){const M=EM(D);return _M(M)}var t=D[0],i={};return bM(D,i),VM(i),i[t]};function KM(M){var N=this;if(2===arguments.length){var D=arguments[1];"string"===typeof D?"+"===D.charAt(0)?KM[M]=IM(arguments[1]):KM[M]=qM(arguments[1]):KM[M]=D}else if(1===arguments.length){if(Array.isArray(M))return M.map((function(M){Array.isArray(M)?KM.apply(N,M):KM(M)}));if("string"===typeof M){if(M in KM)return KM[M]}else"EPSG"in M?KM["EPSG:"+M.EPSG]=M:"ESRI"in M?KM["ESRI:"+M.ESRI]=M:"IAU2000"in M?KM["IAU2000:"+M.IAU2000]=M:console.log(M);return}}R(KM);var $M=KM;function MN(M){return"string"===typeof M}function NN(M){return M in $M}function DN(M){return 0!==M.indexOf("+")&&-1!==M.indexOf("[")||"object"===typeof M&&!("srsCode"in M)}var tN=["3857","900913","3785","102113"];function iN(M){var N=LM(M,"authority");if(N){var D=LM(N,"epsg");return D&&tN.indexOf(D)>-1}}function eN(M){var N=LM(M,"extension");if(N)return LM(N,"proj4")}function jN(M){return"+"===M[0]}function TN(M){if(!MN(M))return M.projName?M:qM(M);if(NN(M))return $M[M];if(DN(M)){var N=qM(M);if(iN(N))return $M["EPSG:3857"];var D=eN(N);return D?IM(D):N}return jN(M)?IM(M):void 0}var gN=TN,sN=function(M,N){var D,t;if(M=M||{},!N)return M;for(t in N)D=N[t],void 0!==D&&(M[t]=D);return M},uN=function(M,N,D){var t=M*N;return D/Math.sqrt(1-t*t)},zN=function(M){return M<0?-1:1},AN=function(M){return Math.abs(M)<=sM?M:M-zN(M)*gM},LN=function(M,N,D){var t=M*D,i=.5*M;return t=Math.pow((1-t)/(1+t),i),Math.tan(.5*(MM-N))/t},IN=function(M,N){for(var D,t,i=.5*M,e=MM-2*Math.atan(N),j=0;j<=15;j++)if(D=M*Math.sin(e),t=MM-2*Math.atan(N*Math.pow((1-D)/(1+D),i))-e,e+=t,Math.abs(t)<=1e-10)return e;return-9999};function nN(){var M=this.b/this.a;this.es=1-M*M,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=uN(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function rN(M){var N,D,t=M.x,i=M.y;if(i*jM>90&&i*jM<-90&&t*jM>180&&t*jM<-180)return null;if(Math.abs(Math.abs(i)-MM)<=iM)return null;if(this.sphere)N=this.x0+this.a*this.k0*AN(t-this.long0),D=this.y0+this.a*this.k0*Math.log(Math.tan(TM+.5*i));else{var e=Math.sin(i),j=LN(this.e,i,e);N=this.x0+this.a*this.k0*AN(t-this.long0),D=this.y0-this.a*this.k0*Math.log(j)}return M.x=N,M.y=D,M}function wN(M){var N,D,t=M.x-this.x0,i=M.y-this.y0;if(this.sphere)D=MM-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var e=Math.exp(-i/(this.a*this.k0));if(D=IN(this.e,e),-9999===D)return null}return N=AN(this.long0+t/(this.a*this.k0)),M.x=N,M.y=D,M}var cN=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"],yN={init:nN,forward:rN,inverse:wN,names:cN};function aN(){}function oN(M){return M}var EN=["longlat","identity"],ON={init:aN,forward:oN,inverse:oN,names:EN},xN=[yN,ON],CN={},SN=[];function lN(M,N){var D=SN.length;return M.names?(SN[D]=M,M.names.forEach((function(M){CN[M.toLowerCase()]=D})),this):(console.log(N),!0)}function kN(M){return M.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}function QN(M){if(!M)return!1;var N=M.toLowerCase();return"undefined"!==typeof CN[N]&&SN[CN[N]]?SN[CN[N]]:(N=kN(N),N in CN&&SN[CN[N]]?SN[CN[N]]:void 0)}function dN(){xN.forEach(lN)}var YN={start:dN,add:lN,get:QN},pN={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},UN=pN;const hN=UN.WGS84;function fN(M,N,D,t){var i=M*M,e=N*N,j=(i-e)/i,T=0;t?(M*=1-j*(NM+j*(DM+j*tM)),i=M*M,j=0):T=Math.sqrt(j);var g=(i-e)/e;return{es:j,e:T,ep2:g}}function mN(M,N,D,t,i){if(!M){var e=LM(UN,t);e||(e=hN),M=e.a,N=e.b,D=e.rf}return D&&!N&&(N=(1-1/D)*M),(0===D||Math.abs(M-N)<iM)&&(i=!0,N=M),{a:M,b:N,rf:D,sphere:i}}var vN={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.0276,-0.2167,0.2147,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-1.91514,1.60363,-9.09546,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,32.39344,-153.25684,-96.2266,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-8.393,0.749,-10.276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,1.25033e-7,4.6785e-8,5.6529e-8,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"61.55,-10.87,-40.19,39.4924,32.7221,32.8979,-9.994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"374,150,588"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"}};for(var BN in vN){var bN=vN[BN];bN.datumName&&(vN[bN.datumName]=bN)}var PN=vN;function ZN(M,N,D,t,i,e,j){var T={};return T.datum_type=void 0===M||"none"===M?V:F,N&&(T.datum_params=N.map(parseFloat),0===T.datum_params[0]&&0===T.datum_params[1]&&0===T.datum_params[2]||(T.datum_type=X),T.datum_params.length>3&&(0===T.datum_params[3]&&0===T.datum_params[4]&&0===T.datum_params[5]&&0===T.datum_params[6]||(T.datum_type=_,T.datum_params[3]*=$,T.datum_params[4]*=$,T.datum_params[5]*=$,T.datum_params[6]=T.datum_params[6]/1e6+1))),j&&(T.datum_type=H,T.grids=j),T.a=D,T.b=t,T.es=i,T.ep2=e,T}var GN=ZN,WN={};function RN(M,N,D){return N instanceof ArrayBuffer?XN(M,N,D):{ready:_N(M,N)}}function XN(M,N,D){var t=!0;void 0!==D&&!1===D.includeErrorFields&&(t=!1);var i=new DataView(N),e=qN(i),j=KN(i,e),T=MD(i,j,e,t),g={header:j,subgrids:T};return WN[M]=g,g}async function _N(M,N){for(var D=[],t=await N.getImageCount(),i=t-1;i>=0;i--){var e=await N.getImage(i),j=await e.readRasters(),T=j,g=[e.getWidth(),e.getHeight()],s=e.getBoundingBox().map(VN),u=[e.fileDirectory.ModelPixelScale[0],e.fileDirectory.ModelPixelScale[1]].map(VN),z=s[0]+(g[0]-1)*u[0],A=s[3]-(g[1]-1)*u[1],L=T[0],I=T[1],n=[];for(let M=g[1]-1;M>=0;M--)for(let N=g[0]-1;N>=0;N--){var r=M*g[0]+N;n.push([-JN(I[r]),JN(L[r])])}D.push({del:u,lim:g,ll:[-z,A],cvs:n})}var w={header:{nSubgrids:t},subgrids:D};return WN[M]=w,w}function HN(M){if(void 0===M)return null;var N=M.split(",");return N.map(FN)}function FN(M){if(0===M.length)return null;var N="@"===M[0];return N&&(M=M.slice(1)),"null"===M?{name:"null",mandatory:!N,grid:null,isNull:!0}:{name:M,mandatory:!N,grid:WN[M]||null,isNull:!1}}function VN(M){return M*Math.PI/180}function JN(M){return M/3600*Math.PI/180}function qN(M){var N=M.getInt32(8,!1);return 11!==N&&(N=M.getInt32(8,!0),11!==N&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function KN(M,N){return{nFields:M.getInt32(8,N),nSubgridFields:M.getInt32(24,N),nSubgrids:M.getInt32(40,N),shiftType:$N(M,56,64).trim(),fromSemiMajorAxis:M.getFloat64(120,N),fromSemiMinorAxis:M.getFloat64(136,N),toSemiMajorAxis:M.getFloat64(152,N),toSemiMinorAxis:M.getFloat64(168,N)}}function $N(M,N,D){return String.fromCharCode.apply(null,new Uint8Array(M.buffer.slice(N,D)))}function MD(M,N,D,t){for(var i=176,e=[],j=0;j<N.nSubgrids;j++){var T=DD(M,i,D),g=tD(M,i,T,D,t),s=Math.round(1+(T.upperLongitude-T.lowerLongitude)/T.longitudeInterval),u=Math.round(1+(T.upperLatitude-T.lowerLatitude)/T.latitudeInterval);e.push({ll:[JN(T.lowerLongitude),JN(T.lowerLatitude)],del:[JN(T.longitudeInterval),JN(T.latitudeInterval)],lim:[s,u],count:T.gridNodeCount,cvs:ND(g)});var z=16;!1===t&&(z=8),i+=176+T.gridNodeCount*z}return e}function ND(M){return M.map((function(M){return[JN(M.longitudeShift),JN(M.latitudeShift)]}))}function DD(M,N,D){return{name:$N(M,N+8,N+16).trim(),parent:$N(M,N+24,N+24+8).trim(),lowerLatitude:M.getFloat64(N+72,D),upperLatitude:M.getFloat64(N+88,D),lowerLongitude:M.getFloat64(N+104,D),upperLongitude:M.getFloat64(N+120,D),latitudeInterval:M.getFloat64(N+136,D),longitudeInterval:M.getFloat64(N+152,D),gridNodeCount:M.getInt32(N+168,D)}}function tD(M,N,D,t,i){var e=N+176,j=16;!1===i&&(j=8);for(var T=[],g=0;g<D.gridNodeCount;g++){var s={latitudeShift:M.getFloat32(e+g*j,t),longitudeShift:M.getFloat32(e+g*j+4,t)};!1!==i&&(s.latitudeAccuracy=M.getFloat32(e+g*j+8,t),s.longitudeAccuracy=M.getFloat32(e+g*j+12,t)),T.push(s)}return T}function iD(M,N){if(!(this instanceof iD))return new iD(M);N=N||function(M){if(M)throw M};var D=gN(M);if("object"===typeof D){var t=iD.projections.get(D.projName);if(t){if(D.datumCode&&"none"!==D.datumCode){var i=LM(PN,D.datumCode);i&&(D.datum_params=D.datum_params||(i.towgs84?i.towgs84.split(","):null),D.ellps=i.ellipse,D.datumName=i.datumName?i.datumName:D.datumCode)}D.k0=D.k0||1,D.axis=D.axis||"enu",D.ellps=D.ellps||"wgs84",D.lat1=D.lat1||D.lat0;var e=mN(D.a,D.b,D.rf,D.ellps,D.sphere),j=fN(e.a,e.b,e.rf,D.R_A),T=HN(D.nadgrids),g=D.datum||GN(D.datumCode,D.datum_params,e.a,e.b,j.es,j.ep2,T);sN(this,D),sN(this,t),this.a=e.a,this.b=e.b,this.rf=e.rf,this.sphere=e.sphere,this.es=j.es,this.e=j.e,this.ep2=j.ep2,this.datum=g,this.init(),N(null,this)}else N("Could not get projection name from: "+M)}else N("Could not parse to valid json: "+M)}iD.projections=YN,iD.projections.start();var eD=iD;function jD(M,N){return M.datum_type===N.datum_type&&(!(M.a!==N.a||Math.abs(M.es-N.es)>5e-11)&&(M.datum_type===X?M.datum_params[0]===N.datum_params[0]&&M.datum_params[1]===N.datum_params[1]&&M.datum_params[2]===N.datum_params[2]:M.datum_type!==_||M.datum_params[0]===N.datum_params[0]&&M.datum_params[1]===N.datum_params[1]&&M.datum_params[2]===N.datum_params[2]&&M.datum_params[3]===N.datum_params[3]&&M.datum_params[4]===N.datum_params[4]&&M.datum_params[5]===N.datum_params[5]&&M.datum_params[6]===N.datum_params[6]))}function TD(M,N,D){var t,i,e,j,T=M.x,g=M.y,s=M.z?M.z:0;if(g<-MM&&g>-1.001*MM)g=-MM;else if(g>MM&&g<1.001*MM)g=MM;else{if(g<-MM)return{x:-1/0,y:-1/0,z:M.z};if(g>MM)return{x:1/0,y:1/0,z:M.z}}return T>Math.PI&&(T-=2*Math.PI),i=Math.sin(g),j=Math.cos(g),e=i*i,t=D/Math.sqrt(1-N*e),{x:(t+s)*j*Math.cos(T),y:(t+s)*j*Math.sin(T),z:(t*(1-N)+s)*i}}function gD(M,N,D,t){var i,e,j,T,g,s,u,z,A,L,I,n,r,w,c,y,a=1e-12,o=a*a,E=30,O=M.x,x=M.y,C=M.z?M.z:0;if(i=Math.sqrt(O*O+x*x),e=Math.sqrt(O*O+x*x+C*C),i/D<a){if(w=0,e/D<a)return c=MM,y=-t,{x:M.x,y:M.y,z:M.z}}else w=Math.atan2(x,O);j=C/e,T=i/e,g=1/Math.sqrt(1-N*(2-N)*T*T),z=T*(1-N)*g,A=j*g,r=0;do{r++,u=D/Math.sqrt(1-N*A*A),y=i*z+C*A-u*(1-N*A*A),s=N*u/(u+y),g=1/Math.sqrt(1-s*(2-s)*T*T),L=T*(1-s)*g,I=j*g,n=I*z-L*A,z=L,A=I}while(n*n>o&&r<E);return c=Math.atan(I/Math.abs(L)),{x:w,y:c,z:y}}function sD(M,N,D){if(N===X)return{x:M.x+D[0],y:M.y+D[1],z:M.z+D[2]};if(N===_){var t=D[0],i=D[1],e=D[2],j=D[3],T=D[4],g=D[5],s=D[6];return{x:s*(M.x-g*M.y+T*M.z)+t,y:s*(g*M.x+M.y-j*M.z)+i,z:s*(-T*M.x+j*M.y+M.z)+e}}}function uD(M,N,D){if(N===X)return{x:M.x-D[0],y:M.y-D[1],z:M.z-D[2]};if(N===_){var t=D[0],i=D[1],e=D[2],j=D[3],T=D[4],g=D[5],s=D[6],u=(M.x-t)/s,z=(M.y-i)/s,A=(M.z-e)/s;return{x:u+g*z-T*A,y:-g*u+z+j*A,z:T*u-j*z+A}}}function zD(M){return M===X||M===_}var AD=function(M,N,D){if(jD(M,N))return D;if(M.datum_type===V||N.datum_type===V)return D;var t=M.a,i=M.es;if(M.datum_type===H){var e=LD(M,!1,D);if(0!==e)return;t=J,i=K}var j=N.a,T=N.b,g=N.es;if(N.datum_type===H&&(j=J,T=q,g=K),i===g&&t===j&&!zD(M.datum_type)&&!zD(N.datum_type))return D;if(D=TD(D,i,t),zD(M.datum_type)&&(D=sD(D,M.datum_type,M.datum_params)),zD(N.datum_type)&&(D=uD(D,N.datum_type,N.datum_params)),D=gD(D,g,j,T),N.datum_type===H){var s=LD(N,!0,D);if(0!==s)return}return D};function LD(M,N,D){if(null===M.grids||0===M.grids.length)return console.log("Grid shift grids not found"),-1;var t={x:-D.x,y:D.y},i={x:Number.NaN,y:Number.NaN},e=[];M:for(var j=0;j<M.grids.length;j++){var T=M.grids[j];if(e.push(T.name),T.isNull){i=t;break}if(null!==T.grid)for(var g=T.grid.subgrids,s=0,u=g.length;s<u;s++){var z=g[s],A=(Math.abs(z.del[1])+Math.abs(z.del[0]))/1e4,L=z.ll[0]-A,I=z.ll[1]-A,n=z.ll[0]+(z.lim[0]-1)*z.del[0]+A,r=z.ll[1]+(z.lim[1]-1)*z.del[1]+A;if(!(I>t.y||L>t.x||r<t.y||n<t.x)&&(i=ID(t,N,z),!isNaN(i.x)))break M}else if(T.mandatory)return console.log("Unable to find mandatory grid '"+T.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-t.x*jM+" "+t.y*jM+" tried: '"+e+"'"),-1):(D.x=-i.x,D.y=i.y,0)}function ID(M,N,D){var t={x:Number.NaN,y:Number.NaN};if(isNaN(M.x))return t;var i={x:M.x,y:M.y};i.x-=D.ll[0],i.y-=D.ll[1],i.x=AN(i.x-Math.PI)+Math.PI;var e=nD(i,D);if(N){if(isNaN(e.x))return t;e.x=i.x-e.x,e.y=i.y-e.y;var j,T,g=9,s=1e-12;do{if(T=nD(e,D),isNaN(T.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}j={x:i.x-(T.x+e.x),y:i.y-(T.y+e.y)},e.x+=j.x,e.y+=j.y}while(g--&&Math.abs(j.x)>s&&Math.abs(j.y)>s);if(g<0)return console.log("Inverse grid shift iterator failed to converge."),t;t.x=AN(e.x+D.ll[0]),t.y=e.y+D.ll[1]}else isNaN(e.x)||(t.x=M.x+e.x,t.y=M.y+e.y);return t}function nD(M,N){var D,t={x:M.x/N.del[0],y:M.y/N.del[1]},i={x:Math.floor(t.x),y:Math.floor(t.y)},e={x:t.x-1*i.x,y:t.y-1*i.y},j={x:Number.NaN,y:Number.NaN};if(i.x<0||i.x>=N.lim[0])return j;if(i.y<0||i.y>=N.lim[1])return j;D=i.y*N.lim[0]+i.x;var T={x:N.cvs[D][0],y:N.cvs[D][1]};D++;var g={x:N.cvs[D][0],y:N.cvs[D][1]};D+=N.lim[0];var s={x:N.cvs[D][0],y:N.cvs[D][1]};D--;var u={x:N.cvs[D][0],y:N.cvs[D][1]},z=e.x*e.y,A=e.x*(1-e.y),L=(1-e.x)*(1-e.y),I=(1-e.x)*e.y;return j.x=L*T.x+A*g.x+I*u.x+z*s.x,j.y=L*T.y+A*g.y+I*u.y+z*s.y,j}var rD=function(M,N,D){var t,i,e,j=D.x,T=D.y,g=D.z||0,s={};for(e=0;e<3;e++)if(!N||2!==e||void 0!==D.z)switch(0===e?(t=j,i=-1!=="ew".indexOf(M.axis[e])?"x":"y"):1===e?(t=T,i=-1!=="ns".indexOf(M.axis[e])?"y":"x"):(t=g,i="z"),M.axis[e]){case"e":s[i]=t;break;case"w":s[i]=-t;break;case"n":s[i]=t;break;case"s":s[i]=-t;break;case"u":void 0!==D[i]&&(s.z=t);break;case"d":void 0!==D[i]&&(s.z=-t);break;default:return null}return s},wD=function(M){var N={x:M[0],y:M[1]};return M.length>2&&(N.z=M[2]),M.length>3&&(N.m=M[3]),N},cD=function(M){yD(M.x),yD(M.y)};function yD(M){if("function"===typeof Number.isFinite){if(Number.isFinite(M))return;throw new TypeError("coordinates must be finite numbers")}if("number"!==typeof M||M!==M||!isFinite(M))throw new TypeError("coordinates must be finite numbers")}function aD(M,N){return(M.datum.datum_type===X||M.datum.datum_type===_||M.datum.datum_type===H)&&"WGS84"!==N.datumCode||(N.datum.datum_type===X||N.datum.datum_type===_||N.datum.datum_type===H)&&"WGS84"!==M.datumCode}function oD(M,N,D,t){var i;D=Array.isArray(D)?wD(D):{x:D.x,y:D.y,z:D.z,m:D.m};var e=void 0!==D.z;if(cD(D),M.datum&&N.datum&&aD(M,N)&&(i=new eD("WGS84"),D=oD(M,i,D,t),M=i),t&&"enu"!==M.axis&&(D=rD(M,!1,D)),"longlat"===M.projName)D={x:D.x*eM,y:D.y*eM,z:D.z||0};else if(M.to_meter&&(D={x:D.x*M.to_meter,y:D.y*M.to_meter,z:D.z||0}),D=M.inverse(D),!D)return;if(M.from_greenwich&&(D.x+=M.from_greenwich),D=AD(M.datum,N.datum,D),D)return N.from_greenwich&&(D={x:D.x-N.from_greenwich,y:D.y,z:D.z||0}),"longlat"===N.projName?D={x:D.x*jM,y:D.y*jM,z:D.z||0}:(D=N.forward(D),N.to_meter&&(D={x:D.x/N.to_meter,y:D.y/N.to_meter,z:D.z||0})),t&&"enu"!==N.axis?rD(N,!0,D):(D&&!e&&delete D.z,D)}var ED=eD("WGS84");function OD(M,N,D,t){var i,e,j;return Array.isArray(D)?(i=oD(M,N,D,t)||{x:NaN,y:NaN},D.length>2?"undefined"!==typeof M.name&&"geocent"===M.name||"undefined"!==typeof N.name&&"geocent"===N.name?"number"===typeof i.z?[i.x,i.y,i.z].concat(D.slice(3)):[i.x,i.y,D[2]].concat(D.slice(3)):[i.x,i.y].concat(D.slice(2)):[i.x,i.y]):(e=oD(M,N,D,t),j=Object.keys(D),2===j.length||j.forEach((function(t){if("undefined"!==typeof M.name&&"geocent"===M.name||"undefined"!==typeof N.name&&"geocent"===N.name){if("x"===t||"y"===t||"z"===t)return}else if("x"===t||"y"===t)return;e[t]=D[t]})),e)}function xD(M){return M instanceof eD?M:M.oProj?M.oProj:eD(M)}function CD(M,N,D){M=xD(M);var t,i=!1;return"undefined"===typeof N?(N=M,M=ED,i=!0):("undefined"!==typeof N.x||Array.isArray(N))&&(D=N,N=M,M=ED,i=!0),N=xD(N),D?OD(M,N,D):(t={forward:function(D,t){return OD(M,N,D,t)},inverse:function(D,t){return OD(N,M,D,t)}},i&&(t.oProj=N),t)}var SD=CD,lD=6,kD="AJSAJS",QD="AFAFAF",dD=65,YD=73,pD=79,UD=86,hD=90,fD={forward:mD,inverse:vD,toPoint:BD};function mD(M,N){return N=N||5,RD(ZD({lat:M[1],lon:M[0]}),N)}function vD(M){var N=GD(FD(M.toUpperCase()));return N.lat&&N.lon?[N.lon,N.lat,N.lon,N.lat]:[N.left,N.bottom,N.right,N.top]}function BD(M){var N=GD(FD(M.toUpperCase()));return N.lat&&N.lon?[N.lon,N.lat]:[(N.left+N.right)/2,(N.top+N.bottom)/2]}function bD(M){return M*(Math.PI/180)}function PD(M){return M/Math.PI*180}function ZD(M){var N,D,t,i,e,j,T,g,s,u=M.lat,z=M.lon,A=6378137,L=.00669438,I=.9996,n=bD(u),r=bD(z);s=Math.floor((z+180)/6)+1,180===z&&(s=60),u>=56&&u<64&&z>=3&&z<12&&(s=32),u>=72&&u<84&&(z>=0&&z<9?s=31:z>=9&&z<21?s=33:z>=21&&z<33?s=35:z>=33&&z<42&&(s=37)),N=6*(s-1)-180+3,g=bD(N),D=L/(1-L),t=A/Math.sqrt(1-L*Math.sin(n)*Math.sin(n)),i=Math.tan(n)*Math.tan(n),e=D*Math.cos(n)*Math.cos(n),j=Math.cos(n)*(r-g),T=A*((1-L/4-3*L*L/64-5*L*L*L/256)*n-(3*L/8+3*L*L/32+45*L*L*L/1024)*Math.sin(2*n)+(15*L*L/256+45*L*L*L/1024)*Math.sin(4*n)-35*L*L*L/3072*Math.sin(6*n));var w=I*t*(j+(1-i+e)*j*j*j/6+(5-18*i+i*i+72*e-58*D)*j*j*j*j*j/120)+5e5,c=I*(T+t*Math.tan(n)*(j*j/2+(5-i+9*e+4*e*e)*j*j*j*j/24+(61-58*i+i*i+600*e-330*D)*j*j*j*j*j*j/720));return u<0&&(c+=1e7),{northing:Math.round(c),easting:Math.round(w),zoneNumber:s,zoneLetter:WD(u)}}function GD(M){var N=M.northing,D=M.easting,t=M.zoneLetter,i=M.zoneNumber;if(i<0||i>60)return null;var e,j,T,g,s,u,z,A,L,I,n=.9996,r=6378137,w=.00669438,c=(1-Math.sqrt(1-w))/(1+Math.sqrt(1-w)),y=D-5e5,a=N;t<"N"&&(a-=1e7),A=6*(i-1)-180+3,e=w/(1-w),z=a/n,L=z/(r*(1-w/4-3*w*w/64-5*w*w*w/256)),I=L+(3*c/2-27*c*c*c/32)*Math.sin(2*L)+(21*c*c/16-55*c*c*c*c/32)*Math.sin(4*L)+151*c*c*c/96*Math.sin(6*L),j=r/Math.sqrt(1-w*Math.sin(I)*Math.sin(I)),T=Math.tan(I)*Math.tan(I),g=e*Math.cos(I)*Math.cos(I),s=r*(1-w)/Math.pow(1-w*Math.sin(I)*Math.sin(I),1.5),u=y/(j*n);var o=I-j*Math.tan(I)/s*(u*u/2-(5+3*T+10*g-4*g*g-9*e)*u*u*u*u/24+(61+90*T+298*g+45*T*T-252*e-3*g*g)*u*u*u*u*u*u/720);o=PD(o);var E,O=(u-(1+2*T+g)*u*u*u/6+(5-2*g+28*T-3*g*g+8*e+24*T*T)*u*u*u*u*u/120)/Math.cos(I);if(O=A+PD(O),M.accuracy){var x=GD({northing:M.northing+M.accuracy,easting:M.easting+M.accuracy,zoneLetter:M.zoneLetter,zoneNumber:M.zoneNumber});E={top:x.lat,right:x.lon,bottom:o,left:O}}else E={lat:o,lon:O};return E}function WD(M){var N="Z";return 84>=M&&M>=72?N="X":72>M&&M>=64?N="W":64>M&&M>=56?N="V":56>M&&M>=48?N="U":48>M&&M>=40?N="T":40>M&&M>=32?N="S":32>M&&M>=24?N="R":24>M&&M>=16?N="Q":16>M&&M>=8?N="P":8>M&&M>=0?N="N":0>M&&M>=-8?N="M":-8>M&&M>=-16?N="L":-16>M&&M>=-24?N="K":-24>M&&M>=-32?N="J":-32>M&&M>=-40?N="H":-40>M&&M>=-48?N="G":-48>M&&M>=-56?N="F":-56>M&&M>=-64?N="E":-64>M&&M>=-72?N="D":-72>M&&M>=-80&&(N="C"),N}function RD(M,N){var D="00000"+M.easting,t="00000"+M.northing;return M.zoneNumber+M.zoneLetter+XD(M.easting,M.northing,M.zoneNumber)+D.substr(D.length-5,N)+t.substr(t.length-5,N)}function XD(M,N,D){var t=_D(D),i=Math.floor(M/1e5),e=Math.floor(N/1e5)%20;return HD(i,e,t)}function _D(M){var N=M%lD;return 0===N&&(N=lD),N}function HD(M,N,D){var t=D-1,i=kD.charCodeAt(t),e=QD.charCodeAt(t),j=i+M-1,T=e+N,g=!1;j>hD&&(j=j-hD+dD-1,g=!0),(j===YD||i<YD&&j>YD||(j>YD||i<YD)&&g)&&j++,(j===pD||i<pD&&j>pD||(j>pD||i<pD)&&g)&&(j++,j===YD&&j++),j>hD&&(j=j-hD+dD-1),T>UD?(T=T-UD+dD-1,g=!0):g=!1,(T===YD||e<YD&&T>YD||(T>YD||e<YD)&&g)&&T++,(T===pD||e<pD&&T>pD||(T>pD||e<pD)&&g)&&(T++,T===YD&&T++),T>UD&&(T=T-UD+dD-1);var s=String.fromCharCode(j)+String.fromCharCode(T);return s}function FD(M){if(M&&0===M.length)throw"MGRSPoint coverting from nothing";var N,D=M.length,t=null,i="",e=0;while(!/[A-Z]/.test(N=M.charAt(e))){if(e>=2)throw"MGRSPoint bad conversion from: "+M;i+=N,e++}var j=parseInt(i,10);if(0===e||e+3>D)throw"MGRSPoint bad conversion from: "+M;var T=M.charAt(e++);if(T<="A"||"B"===T||"Y"===T||T>="Z"||"I"===T||"O"===T)throw"MGRSPoint zone letter "+T+" not handled: "+M;t=M.substring(e,e+=2);var g=_D(j),s=VD(t.charAt(0),g),u=JD(t.charAt(1),g);while(u<qD(T))u+=2e6;var z=D-e;if(z%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+M;var A,L,I,n,r,w=z/2,c=0,y=0;return w>0&&(A=1e5/Math.pow(10,w),L=M.substring(e,e+w),c=parseFloat(L)*A,I=M.substring(e+w),y=parseFloat(I)*A),n=c+s,r=y+u,{easting:n,northing:r,zoneLetter:T,zoneNumber:j,accuracy:A}}function VD(M,N){var D=kD.charCodeAt(N-1),t=1e5,i=!1;while(D!==M.charCodeAt(0)){if(D++,D===YD&&D++,D===pD&&D++,D>hD){if(i)throw"Bad character: "+M;D=dD,i=!0}t+=1e5}return t}function JD(M,N){if(M>"V")throw"MGRSPoint given invalid Northing "+M;var D=QD.charCodeAt(N-1),t=0,i=!1;while(D!==M.charCodeAt(0)){if(D++,D===YD&&D++,D===pD&&D++,D>UD){if(i)throw"Bad character: "+M;D=dD,i=!0}t+=1e5}return t}function qD(M){var N;switch(M){case"C":N=11e5;break;case"D":N=2e6;break;case"E":N=28e5;break;case"F":N=37e5;break;case"G":N=46e5;break;case"H":N=55e5;break;case"J":N=64e5;break;case"K":N=73e5;break;case"L":N=82e5;break;case"M":N=91e5;break;case"N":N=0;break;case"P":N=8e5;break;case"Q":N=17e5;break;case"R":N=26e5;break;case"S":N=35e5;break;case"T":N=44e5;break;case"U":N=53e5;break;case"V":N=62e5;break;case"W":N=7e6;break;case"X":N=79e5;break;default:N=-1}if(N>=0)return N;throw"Invalid zone letter: "+M}function KD(M,N,D){if(!(this instanceof KD))return new KD(M,N,D);if(Array.isArray(M))this.x=M[0],this.y=M[1],this.z=M[2]||0;else if("object"===typeof M)this.x=M.x,this.y=M.y,this.z=M.z||0;else if("string"===typeof M&&"undefined"===typeof N){var t=M.split(",");this.x=parseFloat(t[0],10),this.y=parseFloat(t[1],10),this.z=parseFloat(t[2],10)||0}else this.x=M,this.y=N,this.z=D||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}KD.fromMGRS=function(M){return new KD(BD(M))},KD.prototype.toMGRS=function(M){return mD([this.x,this.y],M)};var $D=KD,Mt=1,Nt=.25,Dt=.046875,tt=.01953125,it=.01068115234375,et=.75,jt=.46875,Tt=.013020833333333334,gt=.007120768229166667,st=.3645833333333333,ut=.005696614583333333,zt=.3076171875,At=function(M){var N=[];N[0]=Mt-M*(Nt+M*(Dt+M*(tt+M*it))),N[1]=M*(et-M*(Dt+M*(tt+M*it)));var D=M*M;return N[2]=D*(jt-M*(Tt+M*gt)),D*=M,N[3]=D*(st-M*ut),N[4]=D*M*zt,N},Lt=function(M,N,D,t){return D*=N,N*=N,t[0]*M-D*(t[1]+N*(t[2]+N*(t[3]+N*t[4])))},It=20,nt=function(M,N,D){for(var t=1/(1-N),i=M,e=It;e;--e){var j=Math.sin(i),T=1-N*j*j;if(T=(Lt(i,j,Math.cos(i),D)-M)*(T*Math.sqrt(T))*t,i-=T,Math.abs(T)<iM)return i}return i};function rt(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=At(this.es),this.ml0=Lt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function wt(M){var N,D,t,i=M.x,e=M.y,j=AN(i-this.long0),T=Math.sin(e),g=Math.cos(e);if(this.es){var s=g*j,u=Math.pow(s,2),z=this.ep2*Math.pow(g,2),A=Math.pow(z,2),L=Math.abs(g)>iM?Math.tan(e):0,I=Math.pow(L,2),n=Math.pow(I,2);N=1-this.es*Math.pow(T,2),s/=Math.sqrt(N);var r=Lt(e,T,g,this.en);D=this.a*(this.k0*s*(1+u/6*(1-I+z+u/20*(5-18*I+n+14*z-58*I*z+u/42*(61+179*n-n*I-479*I)))))+this.x0,t=this.a*(this.k0*(r-this.ml0+T*j*s/2*(1+u/12*(5-I+9*z+4*A+u/30*(61+n-58*I+270*z-330*I*z+u/56*(1385+543*n-n*I-3111*I))))))+this.y0}else{var w=g*Math.sin(j);if(Math.abs(Math.abs(w)-1)<iM)return 93;if(D=.5*this.a*this.k0*Math.log((1+w)/(1-w))+this.x0,t=g*Math.cos(j)/Math.sqrt(1-Math.pow(w,2)),w=Math.abs(t),w>=1){if(w-1>iM)return 93;t=0}else t=Math.acos(t);e<0&&(t=-t),t=this.a*this.k0*(t-this.lat0)+this.y0}return M.x=D,M.y=t,M}function ct(M){var N,D,t,i,e=(M.x-this.x0)*(1/this.a),j=(M.y-this.y0)*(1/this.a);if(this.es)if(N=this.ml0+j/this.k0,D=nt(N,this.es,this.en),Math.abs(D)<MM){var T=Math.sin(D),g=Math.cos(D),s=Math.abs(g)>iM?Math.tan(D):0,u=this.ep2*Math.pow(g,2),z=Math.pow(u,2),A=Math.pow(s,2),L=Math.pow(A,2);N=1-this.es*Math.pow(T,2);var I=e*Math.sqrt(N)/this.k0,n=Math.pow(I,2);N*=s,t=D-N*n/(1-this.es)*.5*(1-n/12*(5+3*A-9*u*A+u-4*z-n/30*(61+90*A-252*u*A+45*L+46*u-n/56*(1385+3633*A+4095*L+1574*L*A)))),i=AN(this.long0+I*(1-n/6*(1+2*A+u-n/20*(5+28*A+24*L+8*u*A+6*u-n/42*(61+662*A+1320*L+720*L*A))))/g)}else t=MM*zN(j),i=0;else{var r=Math.exp(e/this.k0),w=.5*(r-1/r),c=this.lat0+j/this.k0,y=Math.cos(c);N=Math.sqrt((1-Math.pow(y,2))/(1+Math.pow(w,2))),t=Math.asin(N),j<0&&(t=-t),i=0===w&&0===y?0:AN(Math.atan2(w,y)+this.long0)}return M.x=i,M.y=t,M}var yt=["Fast_Transverse_Mercator","Fast Transverse Mercator"],at={init:rt,forward:wt,inverse:ct,names:yt},ot=function(M){var N=Math.exp(M);return N=(N-1/N)/2,N},Et=function(M,N){M=Math.abs(M),N=Math.abs(N);var D=Math.max(M,N),t=Math.min(M,N)/(D||1);return D*Math.sqrt(1+Math.pow(t,2))},Ot=function(M){var N=1+M,D=N-1;return 0===D?M:M*Math.log(N)/D},xt=function(M){var N=Math.abs(M);return N=Ot(N*(1+N/(Et(1,N)+1))),M<0?-N:N},Ct=function(M,N){var D,t=2*Math.cos(2*N),i=M.length-1,e=M[i],j=0;while(--i>=0)D=t*e-j+M[i],j=e,e=D;return N+D*Math.sin(2*N)},St=function(M,N){var D,t=2*Math.cos(N),i=M.length-1,e=M[i],j=0;while(--i>=0)D=t*e-j+M[i],j=e,e=D;return Math.sin(N)*D},lt=function(M){var N=Math.exp(M);return N=(N+1/N)/2,N},kt=function(M,N,D){var t,i,e=Math.sin(N),j=Math.cos(N),T=ot(D),g=lt(D),s=2*j*g,u=-2*e*T,z=M.length-1,A=M[z],L=0,I=0,n=0;while(--z>=0)t=I,i=L,I=A,L=n,A=s*I-t-u*L+M[z],n=u*I-i+s*L;return s=e*g,u=j*T,[s*A-u*n,s*n+u*A]};function Qt(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(at.init.apply(this),this.forward=at.forward,this.inverse=at.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var M=this.es/(1+Math.sqrt(1-this.es)),N=M/(2-M),D=N;this.cgb[0]=N*(2+N*(-2/3+N*(N*(116/45+N*(26/45+N*(-2854/675)))-2))),this.cbg[0]=N*(N*(2/3+N*(4/3+N*(-82/45+N*(32/45+N*(4642/4725)))))-2),D*=N,this.cgb[1]=D*(7/3+N*(N*(-227/45+N*(2704/315+N*(2323/945)))-1.6)),this.cbg[1]=D*(5/3+N*(-16/15+N*(-13/9+N*(904/315+N*(-1522/945))))),D*=N,this.cgb[2]=D*(56/15+N*(-136/35+N*(-1262/105+N*(73814/2835)))),this.cbg[2]=D*(-26/15+N*(34/21+N*(1.6+N*(-12686/2835)))),D*=N,this.cgb[3]=D*(4279/630+N*(-332/35+N*(-399572/14175))),this.cbg[3]=D*(1237/630+N*(N*(-24832/14175)-2.4)),D*=N,this.cgb[4]=D*(4174/315+N*(-144838/6237)),this.cbg[4]=D*(-734/315+N*(109598/31185)),D*=N,this.cgb[5]=D*(601676/22275),this.cbg[5]=D*(444337/155925),D=Math.pow(N,2),this.Qn=this.k0/(1+N)*(1+D*(1/4+D*(1/64+D/256))),this.utg[0]=N*(N*(2/3+N*(-37/96+N*(1/360+N*(81/512+N*(-96199/604800)))))-.5),this.gtu[0]=N*(.5+N*(-2/3+N*(5/16+N*(41/180+N*(-127/288+N*(7891/37800)))))),this.utg[1]=D*(-1/48+N*(-1/15+N*(437/1440+N*(-46/105+N*(1118711/3870720))))),this.gtu[1]=D*(13/48+N*(N*(557/1440+N*(281/630+N*(-1983433/1935360)))-.6)),D*=N,this.utg[2]=D*(-17/480+N*(37/840+N*(209/4480+N*(-5569/90720)))),this.gtu[2]=D*(61/240+N*(-103/140+N*(15061/26880+N*(167603/181440)))),D*=N,this.utg[3]=D*(-4397/161280+N*(11/504+N*(830251/7257600))),this.gtu[3]=D*(49561/161280+N*(-179/168+N*(6601661/7257600))),D*=N,this.utg[4]=D*(-4583/161280+N*(108847/3991680)),this.gtu[4]=D*(34729/80640+N*(-3418889/1995840)),D*=N,this.utg[5]=D*(-20648693/638668800),this.gtu[5]=.6650675310896665*D;var t=Ct(this.cbg,this.lat0);this.Zb=-this.Qn*(t+St(this.gtu,2*t))}function dt(M){var N=AN(M.x-this.long0),D=M.y;D=Ct(this.cbg,D);var t=Math.sin(D),i=Math.cos(D),e=Math.sin(N),j=Math.cos(N);D=Math.atan2(t,j*i),N=Math.atan2(e*i,Et(t,i*j)),N=xt(Math.tan(N));var T,g,s=kt(this.gtu,2*D,2*N);return D+=s[0],N+=s[1],Math.abs(N)<=2.623395162778?(T=this.a*(this.Qn*N)+this.x0,g=this.a*(this.Qn*D+this.Zb)+this.y0):(T=1/0,g=1/0),M.x=T,M.y=g,M}function Yt(M){var N,D,t=(M.x-this.x0)*(1/this.a),i=(M.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,t/=this.Qn,Math.abs(t)<=2.623395162778){var e=kt(this.utg,2*i,2*t);i+=e[0],t+=e[1],t=Math.atan(ot(t));var j=Math.sin(i),T=Math.cos(i),g=Math.sin(t),s=Math.cos(t);i=Math.atan2(j*s,Et(g,s*T)),t=Math.atan2(g,s*T),N=AN(t+this.long0),D=Ct(this.cgb,i)}else N=1/0,D=1/0;return M.x=N,M.y=D,M}var pt=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"],Ut={init:Qt,forward:dt,inverse:Yt,names:pt},ht=function(M,N){if(void 0===M){if(M=Math.floor(30*(AN(N)+Math.PI)/Math.PI)+1,M<0)return 0;if(M>60)return 60}return M},ft="etmerc";function mt(){var M=ht(this.zone,this.long0);if(void 0===M)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(M)-183)*eM,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Ut.init.apply(this),this.forward=Ut.forward,this.inverse=Ut.inverse}var vt=["Universal Transverse Mercator System","utm"],Bt={init:mt,names:vt,dependsOn:ft},bt=function(M,N){return Math.pow((1-M)/(1+M),N)},Pt=20;function Zt(){var M=Math.sin(this.lat0),N=Math.cos(this.lat0);N*=N,this.rc=Math.sqrt(1-this.es)/(1-this.es*M*M),this.C=Math.sqrt(1+this.es*N*N/(1-this.es)),this.phic0=Math.asin(M/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+TM)/(Math.pow(Math.tan(.5*this.lat0+TM),this.C)*bt(this.e*M,this.ratexp))}function Gt(M){var N=M.x,D=M.y;return M.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*D+TM),this.C)*bt(this.e*Math.sin(D),this.ratexp))-MM,M.x=this.C*N,M}function Wt(M){for(var N=1e-14,D=M.x/this.C,t=M.y,i=Math.pow(Math.tan(.5*t+TM)/this.K,1/this.C),e=Pt;e>0;--e){if(t=2*Math.atan(i*bt(this.e*Math.sin(M.y),-.5*this.e))-MM,Math.abs(t-M.y)<N)break;M.y=t}return e?(M.x=D,M.y=t,M):null}var Rt=["gauss"],Xt={init:Zt,forward:Gt,inverse:Wt,names:Rt};function _t(){Xt.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function Ht(M){var N,D,t,i;return M.x=AN(M.x-this.long0),Xt.forward.apply(this,[M]),N=Math.sin(M.y),D=Math.cos(M.y),t=Math.cos(M.x),i=this.k0*this.R2/(1+this.sinc0*N+this.cosc0*D*t),M.x=i*D*Math.sin(M.x),M.y=i*(this.cosc0*N-this.sinc0*D*t),M.x=this.a*M.x+this.x0,M.y=this.a*M.y+this.y0,M}function Ft(M){var N,D,t,i,e;if(M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,M.x/=this.k0,M.y/=this.k0,e=Et(M.x,M.y)){var j=2*Math.atan2(e,this.R2);N=Math.sin(j),D=Math.cos(j),i=Math.asin(D*this.sinc0+M.y*N*this.cosc0/e),t=Math.atan2(M.x*N,e*this.cosc0*D-M.y*this.sinc0*N)}else i=this.phic0,t=0;return M.x=t,M.y=i,Xt.inverse.apply(this,[M]),M.x=AN(M.x+this.long0),M}var Vt=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"],Jt={init:_t,forward:Ht,inverse:Ft,names:Vt};function qt(M,N,D){return N*=D,Math.tan(.5*(MM+M))*Math.pow((1-N)/(1+N),.5*D)}function Kt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=iM&&(this.k0=.5*(1+zN(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=iM&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=iM&&Math.abs(Math.cos(this.lat_ts))>iM&&(this.k0=.5*this.cons*uN(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/LN(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=uN(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-MM,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function $t(M){var N,D,t,i,e,j,T=M.x,g=M.y,s=Math.sin(g),u=Math.cos(g),z=AN(T-this.long0);return Math.abs(Math.abs(T-this.long0)-Math.PI)<=iM&&Math.abs(g+this.lat0)<=iM?(M.x=NaN,M.y=NaN,M):this.sphere?(N=2*this.k0/(1+this.sinlat0*s+this.coslat0*u*Math.cos(z)),M.x=this.a*N*u*Math.sin(z)+this.x0,M.y=this.a*N*(this.coslat0*s-this.sinlat0*u*Math.cos(z))+this.y0,M):(D=2*Math.atan(this.ssfn_(g,s,this.e))-MM,i=Math.cos(D),t=Math.sin(D),Math.abs(this.coslat0)<=iM?(e=LN(this.e,g*this.con,this.con*s),j=2*this.a*this.k0*e/this.cons,M.x=this.x0+j*Math.sin(T-this.long0),M.y=this.y0-this.con*j*Math.cos(T-this.long0),M):(Math.abs(this.sinlat0)<iM?(N=2*this.a*this.k0/(1+i*Math.cos(z)),M.y=N*t):(N=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*t+this.cosX0*i*Math.cos(z))),M.y=N*(this.cosX0*t-this.sinX0*i*Math.cos(z))+this.y0),M.x=N*i*Math.sin(z)+this.x0,M))}function Mi(M){var N,D,t,i,e;M.x-=this.x0,M.y-=this.y0;var j=Math.sqrt(M.x*M.x+M.y*M.y);if(this.sphere){var T=2*Math.atan(j/(2*this.a*this.k0));return N=this.long0,D=this.lat0,j<=iM?(M.x=N,M.y=D,M):(D=Math.asin(Math.cos(T)*this.sinlat0+M.y*Math.sin(T)*this.coslat0/j),N=Math.abs(this.coslat0)<iM?this.lat0>0?AN(this.long0+Math.atan2(M.x,-1*M.y)):AN(this.long0+Math.atan2(M.x,M.y)):AN(this.long0+Math.atan2(M.x*Math.sin(T),j*this.coslat0*Math.cos(T)-M.y*this.sinlat0*Math.sin(T))),M.x=N,M.y=D,M)}if(Math.abs(this.coslat0)<=iM){if(j<=iM)return D=this.lat0,N=this.long0,M.x=N,M.y=D,M;M.x*=this.con,M.y*=this.con,t=j*this.cons/(2*this.a*this.k0),D=this.con*IN(this.e,t),N=this.con*AN(this.con*this.long0+Math.atan2(M.x,-1*M.y))}else i=2*Math.atan(j*this.cosX0/(2*this.a*this.k0*this.ms1)),N=this.long0,j<=iM?e=this.X0:(e=Math.asin(Math.cos(i)*this.sinX0+M.y*Math.sin(i)*this.cosX0/j),N=AN(this.long0+Math.atan2(M.x*Math.sin(i),j*this.cosX0*Math.cos(i)-M.y*this.sinX0*Math.sin(i)))),D=-1*IN(this.e,Math.tan(.5*(MM+e)));return M.x=N,M.y=D,M}var Ni=["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],Di={init:Kt,forward:$t,inverse:Mi,names:Ni,ssfn_:qt};function ti(){var M=this.lat0;this.lambda0=this.long0;var N=Math.sin(M),D=this.a,t=this.rf,i=1/t,e=2*i-Math.pow(i,2),j=this.e=Math.sqrt(e);this.R=this.k0*D*Math.sqrt(1-e)/(1-e*Math.pow(N,2)),this.alpha=Math.sqrt(1+e/(1-e)*Math.pow(Math.cos(M),4)),this.b0=Math.asin(N/this.alpha);var T=Math.log(Math.tan(Math.PI/4+this.b0/2)),g=Math.log(Math.tan(Math.PI/4+M/2)),s=Math.log((1+j*N)/(1-j*N));this.K=T-this.alpha*g+this.alpha*j/2*s}function ii(M){var N=Math.log(Math.tan(Math.PI/4-M.y/2)),D=this.e/2*Math.log((1+this.e*Math.sin(M.y))/(1-this.e*Math.sin(M.y))),t=-this.alpha*(N+D)+this.K,i=2*(Math.atan(Math.exp(t))-Math.PI/4),e=this.alpha*(M.x-this.lambda0),j=Math.atan(Math.sin(e)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(e))),T=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(e));return M.y=this.R/2*Math.log((1+Math.sin(T))/(1-Math.sin(T)))+this.y0,M.x=this.R*j+this.x0,M}function ei(M){var N=M.x-this.x0,D=M.y-this.y0,t=N/this.R,i=2*(Math.atan(Math.exp(D/this.R))-Math.PI/4),e=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(t)),j=Math.atan(Math.sin(t)/(Math.cos(this.b0)*Math.cos(t)-Math.sin(this.b0)*Math.tan(i))),T=this.lambda0+j/this.alpha,g=0,s=e,u=-1e3,z=0;while(Math.abs(s-u)>1e-7){if(++z>20)return;g=1/this.alpha*(Math.log(Math.tan(Math.PI/4+e/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(s))/2)),u=s,s=2*Math.atan(Math.exp(g))-Math.PI/2}return M.x=T,M.y=s,M}var ji=["somerc"],Ti={init:ti,forward:ii,inverse:ei,names:ji},gi=1e-7;function si(M){var N=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],D="object"===typeof M.projName?Object.keys(M.projName)[0]:M.projName;return"no_uoff"in M||"no_off"in M||-1!==N.indexOf(D)||-1!==N.indexOf(kN(D))}function ui(){var M,N,D,t,i,e,j,T,g,s,u,z=0,A=0,L=0,I=0,n=0,r=0,w=0;this.no_off=si(this),this.no_rot="no_rot"in this;var c=!1;"alpha"in this&&(c=!0);var y=!1;if("rectified_grid_angle"in this&&(y=!0),c&&(w=this.alpha),y&&(z=this.rectified_grid_angle),c||y)A=this.longc;else if(L=this.long1,n=this.lat1,I=this.long2,r=this.lat2,Math.abs(n-r)<=gi||(M=Math.abs(n))<=gi||Math.abs(M-MM)<=gi||Math.abs(Math.abs(this.lat0)-MM)<=gi||Math.abs(Math.abs(r)-MM)<=gi)throw new Error;var a=1-this.es;N=Math.sqrt(a),Math.abs(this.lat0)>iM?(T=Math.sin(this.lat0),D=Math.cos(this.lat0),M=1-this.es*T*T,this.B=D*D,this.B=Math.sqrt(1+this.es*this.B*this.B/a),this.A=this.B*this.k0*N/M,t=this.B*N/(D*Math.sqrt(M)),i=t*t-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=t,this.E*=Math.pow(LN(this.e,this.lat0,T),this.B)):(this.B=1/N,this.A=this.k0,this.E=t=i=1),c||y?(c?(u=Math.asin(Math.sin(w)/t),y||(z=w)):(u=z,w=Math.asin(t*Math.sin(u))),this.lam0=A-Math.asin(.5*(i-1/i)*Math.tan(u))/this.B):(e=Math.pow(LN(this.e,n,Math.sin(n)),this.B),j=Math.pow(LN(this.e,r,Math.sin(r)),this.B),i=this.E/e,g=(j-e)/(j+e),s=this.E*this.E,s=(s-j*e)/(s+j*e),M=L-I,M<-Math.pi?I-=gM:M>Math.pi&&(I+=gM),this.lam0=AN(.5*(L+I)-Math.atan(s*Math.tan(.5*this.B*(L-I))/g)/this.B),u=Math.atan(2*Math.sin(this.B*AN(L-this.lam0))/(i-1/i)),z=w=Math.asin(t*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(z),this.cosrot=Math.cos(z),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(t*t-1)/Math.cos(w))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(TM-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(TM+i))}function zi(M){var N,D,t,i,e,j,T,g,s={};if(M.x=M.x-this.lam0,Math.abs(Math.abs(M.y)-MM)>iM){if(e=this.E/Math.pow(LN(this.e,M.y,Math.sin(M.y)),this.B),j=1/e,N=.5*(e-j),D=.5*(e+j),i=Math.sin(this.B*M.x),t=(N*this.singam-i*this.cosgam)/D,Math.abs(Math.abs(t)-1)<iM)throw new Error;g=.5*this.ArB*Math.log((1-t)/(1+t)),j=Math.cos(this.B*M.x),T=Math.abs(j)<gi?this.A*M.x:this.ArB*Math.atan2(N*this.cosgam+i*this.singam,j)}else g=M.y>0?this.v_pole_n:this.v_pole_s,T=this.ArB*M.y;return this.no_rot?(s.x=T,s.y=g):(T-=this.u_0,s.x=g*this.cosrot+T*this.sinrot,s.y=T*this.cosrot-g*this.sinrot),s.x=this.a*s.x+this.x0,s.y=this.a*s.y+this.y0,s}function Ai(M){var N,D,t,i,e,j,T,g={};if(M.x=(M.x-this.x0)*(1/this.a),M.y=(M.y-this.y0)*(1/this.a),this.no_rot?(D=M.y,N=M.x):(D=M.x*this.cosrot-M.y*this.sinrot,N=M.y*this.cosrot+M.x*this.sinrot+this.u_0),t=Math.exp(-this.BrA*D),i=.5*(t-1/t),e=.5*(t+1/t),j=Math.sin(this.BrA*N),T=(j*this.cosgam+i*this.singam)/e,Math.abs(Math.abs(T)-1)<iM)g.x=0,g.y=T<0?-MM:MM;else{if(g.y=this.E/Math.sqrt((1+T)/(1-T)),g.y=IN(this.e,Math.pow(g.y,1/this.B)),g.y===1/0)throw new Error;g.x=-this.rB*Math.atan2(i*this.cosgam-j*this.singam,Math.cos(this.BrA*N))}return g.x+=this.lam0,g}var Li=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"],Ii={init:ui,forward:zi,inverse:Ai,names:Li};function ni(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<iM)){var M=this.b/this.a;this.e=Math.sqrt(1-M*M);var N=Math.sin(this.lat1),D=Math.cos(this.lat1),t=uN(this.e,N,D),i=LN(this.e,this.lat1,N),e=Math.sin(this.lat2),j=Math.cos(this.lat2),T=uN(this.e,e,j),g=LN(this.e,this.lat2,e),s=Math.abs(Math.abs(this.lat0)-MM)<iM?0:LN(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>iM?this.ns=Math.log(t/T)/Math.log(i/g):this.ns=N,isNaN(this.ns)&&(this.ns=N),this.f0=t/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(s,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function ri(M){var N=M.x,D=M.y;Math.abs(2*Math.abs(D)-Math.PI)<=iM&&(D=zN(D)*(MM-2*iM));var t,i,e=Math.abs(Math.abs(D)-MM);if(e>iM)t=LN(this.e,D,Math.sin(D)),i=this.a*this.f0*Math.pow(t,this.ns);else{if(e=D*this.ns,e<=0)return null;i=0}var j=this.ns*AN(N-this.long0);return M.x=this.k0*(i*Math.sin(j))+this.x0,M.y=this.k0*(this.rh-i*Math.cos(j))+this.y0,M}function wi(M){var N,D,t,i,e,j=(M.x-this.x0)/this.k0,T=this.rh-(M.y-this.y0)/this.k0;this.ns>0?(N=Math.sqrt(j*j+T*T),D=1):(N=-Math.sqrt(j*j+T*T),D=-1);var g=0;if(0!==N&&(g=Math.atan2(D*j,D*T)),0!==N||this.ns>0){if(D=1/this.ns,t=Math.pow(N/(this.a*this.f0),D),i=IN(this.e,t),-9999===i)return null}else i=-MM;return e=AN(g/this.ns+this.long0),M.x=e,M.y=i,M}var ci=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"],yi={init:ni,forward:ri,inverse:wi,names:ci};function ai(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function oi(M){var N,D,t,i,e,j,T,g=M.x,s=M.y,u=AN(g-this.long0);return N=Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.alfa*this.e/2),D=2*(Math.atan(this.k*Math.pow(Math.tan(s/2+this.s45),this.alfa)/N)-this.s45),t=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(D)+Math.sin(this.ad)*Math.cos(D)*Math.cos(t)),e=Math.asin(Math.cos(D)*Math.sin(t)/Math.cos(i)),j=this.n*e,T=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),M.y=T*Math.cos(j)/1,M.x=T*Math.sin(j)/1,this.czech||(M.y*=-1,M.x*=-1),M}function Ei(M){var N,D,t,i,e,j,T,g,s=M.x;M.x=M.y,M.y=s,this.czech||(M.y*=-1,M.x*=-1),j=Math.sqrt(M.x*M.x+M.y*M.y),e=Math.atan2(M.y,M.x),i=e/Math.sin(this.s0),t=2*(Math.atan(Math.pow(this.ro0/j,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),N=Math.asin(Math.cos(this.ad)*Math.sin(t)-Math.sin(this.ad)*Math.cos(t)*Math.cos(i)),D=Math.asin(Math.cos(t)*Math.sin(i)/Math.cos(N)),M.x=this.long0-D/this.alfa,T=N,g=0;var u=0;do{M.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(N/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(T))/(1-this.e*Math.sin(T)),this.e/2))-this.s45),Math.abs(T-M.y)<1e-10&&(g=1),T=M.y,u+=1}while(0===g&&u<15);return u>=15?null:M}var Oi=["Krovak","krovak"],xi={init:ai,forward:oi,inverse:Ei,names:Oi},Ci=function(M,N,D,t,i){return M*i-N*Math.sin(2*i)+D*Math.sin(4*i)-t*Math.sin(6*i)},Si=function(M){return 1-.25*M*(1+M/16*(3+1.25*M))},li=function(M){return.375*M*(1+.25*M*(1+.46875*M))},ki=function(M){return.05859375*M*M*(1+.75*M)},Qi=function(M){return M*M*M*(35/3072)},di=function(M,N,D){var t=N*D;return M/Math.sqrt(1-t*t)},Yi=function(M){return Math.abs(M)<MM?M:M-zN(M)*Math.PI},pi=function(M,N,D,t,i){var e,j;e=M/N;for(var T=0;T<15;T++)if(j=(M-(N*e-D*Math.sin(2*e)+t*Math.sin(4*e)-i*Math.sin(6*e)))/(N-2*D*Math.cos(2*e)+4*t*Math.cos(4*e)-6*i*Math.cos(6*e)),e+=j,Math.abs(j)<=1e-10)return e;return NaN};function Ui(){this.sphere||(this.e0=Si(this.es),this.e1=li(this.es),this.e2=ki(this.es),this.e3=Qi(this.es),this.ml0=this.a*Ci(this.e0,this.e1,this.e2,this.e3,this.lat0))}function hi(M){var N,D,t=M.x,i=M.y;if(t=AN(t-this.long0),this.sphere)N=this.a*Math.asin(Math.cos(i)*Math.sin(t)),D=this.a*(Math.atan2(Math.tan(i),Math.cos(t))-this.lat0);else{var e=Math.sin(i),j=Math.cos(i),T=di(this.a,this.e,e),g=Math.tan(i)*Math.tan(i),s=t*Math.cos(i),u=s*s,z=this.es*j*j/(1-this.es),A=this.a*Ci(this.e0,this.e1,this.e2,this.e3,i);N=T*s*(1-u*g*(1/6-(8-g+8*z)*u/120)),D=A-this.ml0+T*e/j*u*(.5+(5-g+6*z)*u/24)}return M.x=N+this.x0,M.y=D+this.y0,M}function fi(M){M.x-=this.x0,M.y-=this.y0;var N,D,t=M.x/this.a,i=M.y/this.a;if(this.sphere){var e=i+this.lat0;N=Math.asin(Math.sin(e)*Math.cos(t)),D=Math.atan2(Math.tan(t),Math.cos(e))}else{var j=this.ml0/this.a+i,T=pi(j,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(T)-MM)<=iM)return M.x=this.long0,M.y=MM,i<0&&(M.y*=-1),M;var g=di(this.a,this.e,Math.sin(T)),s=g*g*g/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(T),2),z=t*this.a/g,A=z*z;N=T-g*Math.tan(T)/s*z*z*(.5-(1+3*u)*z*z/24),D=z*(1-A*(u/3+(1+3*u)*u*A/15))/Math.cos(T)}return M.x=AN(D+this.long0),M.y=Yi(N),M}var mi=["Cassini","Cassini_Soldner","cass"],vi={init:Ui,forward:hi,inverse:fi,names:mi},Bi=function(M,N){var D;return M>1e-7?(D=M*N,(1-M*M)*(N/(1-D*D)-.5/M*Math.log((1-D)/(1+D)))):2*N},bi=1,Pi=2,Zi=3,Gi=4;function Wi(){var M,N=Math.abs(this.lat0);if(Math.abs(N-MM)<iM?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(N)<iM?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Bi(this.e,1),this.mmf=.5/(1-this.es),this.apa=Ki(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),M=Math.sin(this.lat0),this.sinb1=Bi(this.e,M)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*M*M)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Ri(M){var N,D,t,i,e,j,T,g,s,u,z=M.x,A=M.y;if(z=AN(z-this.long0),this.sphere){if(e=Math.sin(A),u=Math.cos(A),t=Math.cos(z),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(D=this.mode===this.EQUIT?1+u*t:1+this.sinph0*e+this.cosph0*u*t,D<=iM)return null;D=Math.sqrt(2/D),N=D*u*Math.sin(z),D*=this.mode===this.EQUIT?e:this.cosph0*e-this.sinph0*u*t}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(t=-t),Math.abs(A+this.lat0)<iM)return null;D=TM-.5*A,D=2*(this.mode===this.S_POLE?Math.cos(D):Math.sin(D)),N=D*Math.sin(z),D*=t}}else{switch(T=0,g=0,s=0,t=Math.cos(z),i=Math.sin(z),e=Math.sin(A),j=Bi(this.e,e),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(T=j/this.qp,g=Math.sqrt(1-T*T)),this.mode){case this.OBLIQ:s=1+this.sinb1*T+this.cosb1*g*t;break;case this.EQUIT:s=1+g*t;break;case this.N_POLE:s=MM+A,j=this.qp-j;break;case this.S_POLE:s=A-MM,j=this.qp+j;break}if(Math.abs(s)<iM)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:s=Math.sqrt(2/s),D=this.mode===this.OBLIQ?this.ymf*s*(this.cosb1*T-this.sinb1*g*t):(s=Math.sqrt(2/(1+g*t)))*T*this.ymf,N=this.xmf*s*g*i;break;case this.N_POLE:case this.S_POLE:j>=0?(N=(s=Math.sqrt(j))*i,D=t*(this.mode===this.S_POLE?s:-s)):N=D=0;break}}return M.x=this.a*N+this.x0,M.y=this.a*D+this.y0,M}function Xi(M){M.x-=this.x0,M.y-=this.y0;var N,D,t,i,e,j,T,g=M.x/this.a,s=M.y/this.a;if(this.sphere){var u,z=0,A=0;if(u=Math.sqrt(g*g+s*s),D=.5*u,D>1)return null;switch(D=2*Math.asin(D),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(A=Math.sin(D),z=Math.cos(D)),this.mode){case this.EQUIT:D=Math.abs(u)<=iM?0:Math.asin(s*A/u),g*=A,s=z*u;break;case this.OBLIQ:D=Math.abs(u)<=iM?this.lat0:Math.asin(z*this.sinph0+s*A*this.cosph0/u),g*=A*this.cosph0,s=(z-Math.sin(D)*this.sinph0)*u;break;case this.N_POLE:s=-s,D=MM-D;break;case this.S_POLE:D-=MM;break}N=0!==s||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(g,s):0}else{if(T=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(g/=this.dd,s*=this.dd,j=Math.sqrt(g*g+s*s),j<iM)return M.x=this.long0,M.y=this.lat0,M;i=2*Math.asin(.5*j/this.rq),t=Math.cos(i),g*=i=Math.sin(i),this.mode===this.OBLIQ?(T=t*this.sinb1+s*i*this.cosb1/j,e=this.qp*T,s=j*this.cosb1*t-s*this.sinb1*i):(T=s*i/j,e=this.qp*T,s=j*t)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(s=-s),e=g*g+s*s,!e)return M.x=this.long0,M.y=this.lat0,M;T=1-e/this.qp,this.mode===this.S_POLE&&(T=-T)}N=Math.atan2(g,s),D=$i(Math.asin(T),this.apa)}return M.x=AN(this.long0+N),M.y=D,M}var _i=.3333333333333333,Hi=.17222222222222222,Fi=.10257936507936508,Vi=.06388888888888888,Ji=.0664021164021164,qi=.016415012942191543;function Ki(M){var N,D=[];return D[0]=M*_i,N=M*M,D[0]+=N*Hi,D[1]=N*Vi,N*=M,D[0]+=N*Fi,D[1]+=N*Ji,D[2]=N*qi,D}function $i(M,N){var D=M+M;return M+N[0]*Math.sin(D)+N[1]*Math.sin(D+D)+N[2]*Math.sin(D+D+D)}var Me=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],Ne={init:Wi,forward:Ri,inverse:Xi,names:Me,S_POLE:bi,N_POLE:Pi,EQUIT:Zi,OBLIQ:Gi},De=function(M){return Math.abs(M)>1&&(M=M>1?1:-1),Math.asin(M)};function te(){Math.abs(this.lat1+this.lat2)<iM||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=uN(this.e3,this.sin_po,this.cos_po),this.qs1=Bi(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=uN(this.e3,this.sin_po,this.cos_po),this.qs2=Bi(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Bi(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>iM?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function ie(M){var N=M.x,D=M.y;this.sin_phi=Math.sin(D),this.cos_phi=Math.cos(D);var t=Bi(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*t)/this.ns0,e=this.ns0*AN(N-this.long0),j=i*Math.sin(e)+this.x0,T=this.rh-i*Math.cos(e)+this.y0;return M.x=j,M.y=T,M}function ee(M){var N,D,t,i,e,j;return M.x-=this.x0,M.y=this.rh-M.y+this.y0,this.ns0>=0?(N=Math.sqrt(M.x*M.x+M.y*M.y),t=1):(N=-Math.sqrt(M.x*M.x+M.y*M.y),t=-1),i=0,0!==N&&(i=Math.atan2(t*M.x,t*M.y)),t=N*this.ns0/this.a,this.sphere?j=Math.asin((this.c-t*t)/(2*this.ns0)):(D=(this.c-t*t)/this.ns0,j=this.phi1z(this.e3,D)),e=AN(i/this.ns0+this.long0),M.x=e,M.y=j,M}function je(M,N){var D,t,i,e,j,T=De(.5*N);if(M<iM)return T;for(var g=M*M,s=1;s<=25;s++)if(D=Math.sin(T),t=Math.cos(T),i=M*D,e=1-i*i,j=.5*e*e/t*(N/(1-g)-D/e+.5/M*Math.log((1-i)/(1+i))),T+=j,Math.abs(j)<=1e-7)return T;return null}var Te=["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],ge={init:te,forward:ie,inverse:ee,names:Te,phi1z:je};function se(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function ue(M){var N,D,t,i,e,j,T,g,s=M.x,u=M.y;return t=AN(s-this.long0),N=Math.sin(u),D=Math.cos(u),i=Math.cos(t),j=this.sin_p14*N+this.cos_p14*D*i,e=1,j>0||Math.abs(j)<=iM?(T=this.x0+this.a*e*D*Math.sin(t)/j,g=this.y0+this.a*e*(this.cos_p14*N-this.sin_p14*D*i)/j):(T=this.x0+this.infinity_dist*D*Math.sin(t),g=this.y0+this.infinity_dist*(this.cos_p14*N-this.sin_p14*D*i)),M.x=T,M.y=g,M}function ze(M){var N,D,t,i,e,j;return M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,M.x/=this.k0,M.y/=this.k0,(N=Math.sqrt(M.x*M.x+M.y*M.y))?(i=Math.atan2(N,this.rc),D=Math.sin(i),t=Math.cos(i),j=De(t*this.sin_p14+M.y*D*this.cos_p14/N),e=Math.atan2(M.x*D,N*this.cos_p14*t-M.y*this.sin_p14*D),e=AN(this.long0+e)):(j=this.phic0,e=0),M.x=e,M.y=j,M}var Ae=["gnom"],Le={init:se,forward:ue,inverse:ze,names:Ae},Ie=function(M,N){var D=1-(1-M*M)/(2*M)*Math.log((1-M)/(1+M));if(Math.abs(Math.abs(N)-D)<1e-6)return N<0?-1*MM:MM;for(var t,i,e,j,T=Math.asin(.5*N),g=0;g<30;g++)if(i=Math.sin(T),e=Math.cos(T),j=M*i,t=Math.pow(1-j*j,2)/(2*e)*(N/(1-M*M)-i/(1-j*j)+.5/M*Math.log((1-j)/(1+j))),T+=t,Math.abs(t)<=1e-10)return T;return NaN};function ne(){this.sphere||(this.k0=uN(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function re(M){var N,D,t=M.x,i=M.y,e=AN(t-this.long0);if(this.sphere)N=this.x0+this.a*e*Math.cos(this.lat_ts),D=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var j=Bi(this.e,Math.sin(i));N=this.x0+this.a*this.k0*e,D=this.y0+this.a*j*.5/this.k0}return M.x=N,M.y=D,M}function we(M){var N,D;return M.x-=this.x0,M.y-=this.y0,this.sphere?(N=AN(this.long0+M.x/this.a/Math.cos(this.lat_ts)),D=Math.asin(M.y/this.a*Math.cos(this.lat_ts))):(D=Ie(this.e,2*M.y*this.k0/this.a),N=AN(this.long0+M.x/(this.a*this.k0))),M.x=N,M.y=D,M}var ce=["cea"],ye={init:ne,forward:re,inverse:we,names:ce};function ae(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function oe(M){var N=M.x,D=M.y,t=AN(N-this.long0),i=Yi(D-this.lat0);return M.x=this.x0+this.a*t*this.rc,M.y=this.y0+this.a*i,M}function Ee(M){var N=M.x,D=M.y;return M.x=AN(this.long0+(N-this.x0)/(this.a*this.rc)),M.y=Yi(this.lat0+(D-this.y0)/this.a),M}var Oe=["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"],xe={init:ae,forward:oe,inverse:Ee,names:Oe},Ce=20;function Se(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Si(this.es),this.e1=li(this.es),this.e2=ki(this.es),this.e3=Qi(this.es),this.ml0=this.a*Ci(this.e0,this.e1,this.e2,this.e3,this.lat0)}function le(M){var N,D,t,i=M.x,e=M.y,j=AN(i-this.long0);if(t=j*Math.sin(e),this.sphere)Math.abs(e)<=iM?(N=this.a*j,D=-1*this.a*this.lat0):(N=this.a*Math.sin(t)/Math.tan(e),D=this.a*(Yi(e-this.lat0)+(1-Math.cos(t))/Math.tan(e)));else if(Math.abs(e)<=iM)N=this.a*j,D=-1*this.ml0;else{var T=di(this.a,this.e,Math.sin(e))/Math.tan(e);N=T*Math.sin(t),D=this.a*Ci(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+T*(1-Math.cos(t))}return M.x=N+this.x0,M.y=D+this.y0,M}function ke(M){var N,D,t,i,e,j,T,g,s;if(t=M.x-this.x0,i=M.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=iM)N=AN(t/this.a+this.long0),D=0;else{var u;for(j=this.lat0+i/this.a,T=t*t/this.a/this.a+j*j,g=j,e=Ce;e;--e)if(u=Math.tan(g),s=-1*(j*(g*u+1)-g-.5*(g*g+T)*u)/((g-j)/u-1),g+=s,Math.abs(s)<=iM){D=g;break}N=AN(this.long0+Math.asin(t*Math.tan(g)/this.a)/Math.sin(D))}else if(Math.abs(i+this.ml0)<=iM)D=0,N=AN(this.long0+t/this.a);else{var z,A,L,I,n;for(j=(this.ml0+i)/this.a,T=t*t/this.a/this.a+j*j,g=j,e=Ce;e;--e)if(n=this.e*Math.sin(g),z=Math.sqrt(1-n*n)*Math.tan(g),A=this.a*Ci(this.e0,this.e1,this.e2,this.e3,g),L=this.e0-2*this.e1*Math.cos(2*g)+4*this.e2*Math.cos(4*g)-6*this.e3*Math.cos(6*g),I=A/this.a,s=(j*(z*I+1)-I-.5*z*(I*I+T))/(this.es*Math.sin(2*g)*(I*I+T-2*j*I)/(4*z)+(j-I)*(z*L-2/Math.sin(2*g))-L),g-=s,Math.abs(s)<=iM){D=g;break}z=Math.sqrt(1-this.es*Math.pow(Math.sin(D),2))*Math.tan(D),N=AN(this.long0+Math.asin(t*z/this.a)/Math.sin(D))}return M.x=N,M.y=D,M}var Qe=["Polyconic","American_Polyconic","poly"],de={init:Se,forward:le,inverse:ke,names:Qe};function Ye(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function pe(M){var N,D=M.x,t=M.y,i=t-this.lat0,e=D-this.long0,j=i/$*1e-5,T=e,g=1,s=0;for(N=1;N<=10;N++)g*=j,s+=this.A[N]*g;var u,z,A=s,L=T,I=1,n=0,r=0,w=0;for(N=1;N<=6;N++)u=I*A-n*L,z=n*A+I*L,I=u,n=z,r=r+this.B_re[N]*I-this.B_im[N]*n,w=w+this.B_im[N]*I+this.B_re[N]*n;return M.x=w*this.a+this.x0,M.y=r*this.a+this.y0,M}function Ue(M){var N,D,t,i=M.x,e=M.y,j=i-this.x0,T=e-this.y0,g=T/this.a,s=j/this.a,u=1,z=0,A=0,L=0;for(N=1;N<=6;N++)D=u*g-z*s,t=z*g+u*s,u=D,z=t,A=A+this.C_re[N]*u-this.C_im[N]*z,L=L+this.C_im[N]*u+this.C_re[N]*z;for(var I=0;I<this.iterations;I++){var n,r,w=A,c=L,y=g,a=s;for(N=2;N<=6;N++)n=w*A-c*L,r=c*A+w*L,w=n,c=r,y+=(N-1)*(this.B_re[N]*w-this.B_im[N]*c),a+=(N-1)*(this.B_im[N]*w+this.B_re[N]*c);w=1,c=0;var o=this.B_re[1],E=this.B_im[1];for(N=2;N<=6;N++)n=w*A-c*L,r=c*A+w*L,w=n,c=r,o+=N*(this.B_re[N]*w-this.B_im[N]*c),E+=N*(this.B_im[N]*w+this.B_re[N]*c);var O=o*o+E*E;A=(y*o+a*E)/O,L=(a*o-y*E)/O}var x=A,C=L,S=1,l=0;for(N=1;N<=9;N++)S*=x,l+=this.D[N]*S;var k=this.lat0+l*$*1e5,Q=this.long0+C;return M.x=Q,M.y=k,M}var he=["New_Zealand_Map_Grid","nzmg"],fe={init:Ye,forward:pe,inverse:Ue,names:he};function me(){}function ve(M){var N=M.x,D=M.y,t=AN(N-this.long0),i=this.x0+this.a*t,e=this.y0+this.a*Math.log(Math.tan(Math.PI/4+D/2.5))*1.25;return M.x=i,M.y=e,M}function Be(M){M.x-=this.x0,M.y-=this.y0;var N=AN(this.long0+M.x/this.a),D=2.5*(Math.atan(Math.exp(.8*M.y/this.a))-Math.PI/4);return M.x=N,M.y=D,M}var be=["Miller_Cylindrical","mill"],Pe={init:me,forward:ve,inverse:Be,names:be},Ze=20;function Ge(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=At(this.es)}function We(M){var N,D,t=M.x,i=M.y;if(t=AN(t-this.long0),this.sphere){if(this.m)for(var e=this.n*Math.sin(i),j=Ze;j;--j){var T=(this.m*i+Math.sin(i)-e)/(this.m+Math.cos(i));if(i-=T,Math.abs(T)<iM)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;N=this.a*this.C_x*t*(this.m+Math.cos(i)),D=this.a*this.C_y*i}else{var g=Math.sin(i),s=Math.cos(i);D=this.a*Lt(i,g,s,this.en),N=this.a*t*s/Math.sqrt(1-this.es*g*g)}return M.x=N,M.y=D,M}function Re(M){var N,D,t,i;return M.x-=this.x0,t=M.x/this.a,M.y-=this.y0,N=M.y/this.a,this.sphere?(N/=this.C_y,t/=this.C_x*(this.m+Math.cos(N)),this.m?N=De((this.m*N+Math.sin(N))/this.n):1!==this.n&&(N=De(Math.sin(N)/this.n)),t=AN(t+this.long0),N=Yi(N)):(N=nt(M.y/this.a,this.es,this.en),i=Math.abs(N),i<MM?(i=Math.sin(N),D=this.long0+M.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(N)),t=AN(D)):i-iM<MM&&(t=this.long0)),M.x=t,M.y=N,M}var Xe=["Sinusoidal","sinu"],_e={init:Ge,forward:We,inverse:Re,names:Xe};function He(){}function Fe(M){var N=M.x,D=M.y,t=AN(N-this.long0),i=D,e=Math.PI*Math.sin(D);while(1){var j=-(i+Math.sin(i)-e)/(1+Math.cos(i));if(i+=j,Math.abs(j)<iM)break}i/=2,Math.PI/2-Math.abs(D)<iM&&(t=0);var T=.900316316158*this.a*t*Math.cos(i)+this.x0,g=1.4142135623731*this.a*Math.sin(i)+this.y0;return M.x=T,M.y=g,M}function Ve(M){var N,D;M.x-=this.x0,M.y-=this.y0,D=M.y/(1.4142135623731*this.a),Math.abs(D)>.999999999999&&(D=.999999999999),N=Math.asin(D);var t=AN(this.long0+M.x/(.900316316158*this.a*Math.cos(N)));t<-Math.PI&&(t=-Math.PI),t>Math.PI&&(t=Math.PI),D=(2*N+Math.sin(2*N))/Math.PI,Math.abs(D)>1&&(D=1);var i=Math.asin(D);return M.x=t,M.y=i,M}var Je=["Mollweide","moll"],qe={init:He,forward:Fe,inverse:Ve,names:Je};function Ke(){Math.abs(this.lat1+this.lat2)<iM||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Si(this.es),this.e1=li(this.es),this.e2=ki(this.es),this.e3=Qi(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=uN(this.e,this.sinphi,this.cosphi),this.ml1=Ci(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<iM?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=uN(this.e,this.sinphi,this.cosphi),this.ml2=Ci(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Ci(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function $e(M){var N,D=M.x,t=M.y;if(this.sphere)N=this.a*(this.g-t);else{var i=Ci(this.e0,this.e1,this.e2,this.e3,t);N=this.a*(this.g-i)}var e=this.ns*AN(D-this.long0),j=this.x0+N*Math.sin(e),T=this.y0+this.rh-N*Math.cos(e);return M.x=j,M.y=T,M}function Mj(M){var N,D,t,i;M.x-=this.x0,M.y=this.rh-M.y+this.y0,this.ns>=0?(D=Math.sqrt(M.x*M.x+M.y*M.y),N=1):(D=-Math.sqrt(M.x*M.x+M.y*M.y),N=-1);var e=0;if(0!==D&&(e=Math.atan2(N*M.x,N*M.y)),this.sphere)return i=AN(this.long0+e/this.ns),t=Yi(this.g-D/this.a),M.x=i,M.y=t,M;var j=this.g-D/this.a;return t=pi(j,this.e0,this.e1,this.e2,this.e3),i=AN(this.long0+e/this.ns),M.x=i,M.y=t,M}var Nj=["Equidistant_Conic","eqdc"],Dj={init:Ke,forward:$e,inverse:Mj,names:Nj};function tj(){this.R=this.a}function ij(M){var N,D,t=M.x,i=M.y,e=AN(t-this.long0);Math.abs(i)<=iM&&(N=this.x0+this.R*e,D=this.y0);var j=De(2*Math.abs(i/Math.PI));(Math.abs(e)<=iM||Math.abs(Math.abs(i)-MM)<=iM)&&(N=this.x0,D=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*j):this.y0+Math.PI*this.R*-Math.tan(.5*j));var T=.5*Math.abs(Math.PI/e-e/Math.PI),g=T*T,s=Math.sin(j),u=Math.cos(j),z=u/(s+u-1),A=z*z,L=z*(2/s-1),I=L*L,n=Math.PI*this.R*(T*(z-I)+Math.sqrt(g*(z-I)*(z-I)-(I+g)*(A-I)))/(I+g);e<0&&(n=-n),N=this.x0+n;var r=g+z;return n=Math.PI*this.R*(L*r-T*Math.sqrt((I+g)*(g+1)-r*r))/(I+g),D=i>=0?this.y0+n:this.y0-n,M.x=N,M.y=D,M}function ej(M){var N,D,t,i,e,j,T,g,s,u,z,A,L;return M.x-=this.x0,M.y-=this.y0,z=Math.PI*this.R,t=M.x/z,i=M.y/z,e=t*t+i*i,j=-Math.abs(i)*(1+e),T=j-2*i*i+t*t,g=-2*j+1+2*i*i+e*e,L=i*i/g+(2*T*T*T/g/g/g-9*j*T/g/g)/27,s=(j-T*T/3/g)/g,u=2*Math.sqrt(-s/3),z=3*L/s/u,Math.abs(z)>1&&(z=z>=0?1:-1),A=Math.acos(z)/3,D=M.y>=0?(-u*Math.cos(A+Math.PI/3)-T/3/g)*Math.PI:-(-u*Math.cos(A+Math.PI/3)-T/3/g)*Math.PI,N=Math.abs(t)<iM?this.long0:AN(this.long0+Math.PI*(e-1+Math.sqrt(1+2*(t*t-i*i)+e*e))/2/t),M.x=N,M.y=D,M}var jj=["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"],Tj={init:tj,forward:ij,inverse:ej,names:jj},gj=D("7bce");function sj(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.g=new gj["Geodesic"].Geodesic(this.a,this.es/(1+Math.sqrt(1-this.es)))}function uj(M){var N,D,t,i,e,j,T,g,s,u,z,A,L,I,n,r=M.x,w=M.y,c=Math.sin(M.y),y=Math.cos(M.y),a=AN(r-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=iM?(M.x=this.x0+this.a*(MM-w)*Math.sin(a),M.y=this.y0-this.a*(MM-w)*Math.cos(a),M):Math.abs(this.sin_p12+1)<=iM?(M.x=this.x0+this.a*(MM+w)*Math.sin(a),M.y=this.y0+this.a*(MM+w)*Math.cos(a),M):(s=this.sin_p12*c+this.cos_p12*y*Math.cos(a),T=Math.acos(s),g=T?T/Math.sin(T):1,M.x=this.x0+this.a*g*y*Math.sin(a),M.y=this.y0+this.a*g*(this.cos_p12*c-this.sin_p12*y*Math.cos(a)),M):(N=Si(this.es),D=li(this.es),t=ki(this.es),i=Qi(this.es),Math.abs(this.sin_p12-1)<=iM?(e=this.a*Ci(N,D,t,i,MM),j=this.a*Ci(N,D,t,i,w),M.x=this.x0+(e-j)*Math.sin(a),M.y=this.y0-(e-j)*Math.cos(a),M):Math.abs(this.sin_p12+1)<=iM?(e=this.a*Ci(N,D,t,i,MM),j=this.a*Ci(N,D,t,i,w),M.x=this.x0+(e+j)*Math.sin(a),M.y=this.y0+(e+j)*Math.cos(a),M):Math.abs(r)<iM&&Math.abs(w-this.lat0)<iM?(M.x=M.y=0,M):(u=this.lat0/eM,z=this.long0/eM,A=w/eM,L=r/eM,I=this.g.Inverse(u,z,A,L,this.g.AZIMUTH),n=I.azi1*eM,M.x=I.s12*Math.sin(n),M.y=I.s12*Math.cos(n),M))}function zj(M){var N,D,t,i,e,j,T,g,s,u,z,A,L,I,n,r,w,c;if(M.x-=this.x0,M.y-=this.y0,this.sphere){if(N=Math.sqrt(M.x*M.x+M.y*M.y),N>2*MM*this.a)return;return D=N/this.a,t=Math.sin(D),i=Math.cos(D),e=this.long0,Math.abs(N)<=iM?j=this.lat0:(j=De(i*this.sin_p12+M.y*t*this.cos_p12/N),T=Math.abs(this.lat0)-MM,e=Math.abs(T)<=iM?this.lat0>=0?AN(this.long0+Math.atan2(M.x,-M.y)):AN(this.long0-Math.atan2(-M.x,M.y)):AN(this.long0+Math.atan2(M.x*t,N*this.cos_p12*i-M.y*this.sin_p12*t))),M.x=e,M.y=j,M}return g=Si(this.es),s=li(this.es),u=ki(this.es),z=Qi(this.es),Math.abs(this.sin_p12-1)<=iM?(A=this.a*Ci(g,s,u,z,MM),N=Math.sqrt(M.x*M.x+M.y*M.y),L=A-N,j=pi(L/this.a,g,s,u,z),e=AN(this.long0+Math.atan2(M.x,-1*M.y)),M.x=e,M.y=j,M):Math.abs(this.sin_p12+1)<=iM?(A=this.a*Ci(g,s,u,z,MM),N=Math.sqrt(M.x*M.x+M.y*M.y),L=N-A,j=pi(L/this.a,g,s,u,z),e=AN(this.long0+Math.atan2(M.x,M.y)),M.x=e,M.y=j,M):(I=this.lat0/eM,n=this.long0/eM,r=Math.atan2(M.x,M.y)/eM,w=Math.sqrt(M.x*M.x+M.y*M.y),c=this.g.Direct(I,n,r,w,this.g.STANDARD),M.x=c.lon2*eM,M.y=c.lat2*eM,M)}var Aj=["Azimuthal_Equidistant","aeqd"],Lj={init:sj,forward:uj,inverse:zj,names:Aj};function Ij(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function nj(M){var N,D,t,i,e,j,T,g,s=M.x,u=M.y;return t=AN(s-this.long0),N=Math.sin(u),D=Math.cos(u),i=Math.cos(t),j=this.sin_p14*N+this.cos_p14*D*i,e=1,(j>0||Math.abs(j)<=iM)&&(T=this.a*e*D*Math.sin(t),g=this.y0+this.a*e*(this.cos_p14*N-this.sin_p14*D*i)),M.x=T,M.y=g,M}function rj(M){var N,D,t,i,e,j,T;return M.x-=this.x0,M.y-=this.y0,N=Math.sqrt(M.x*M.x+M.y*M.y),D=De(N/this.a),t=Math.sin(D),i=Math.cos(D),j=this.long0,Math.abs(N)<=iM?(T=this.lat0,M.x=j,M.y=T,M):(T=De(i*this.sin_p14+M.y*t*this.cos_p14/N),e=Math.abs(this.lat0)-MM,Math.abs(e)<=iM?(j=this.lat0>=0?AN(this.long0+Math.atan2(M.x,-M.y)):AN(this.long0-Math.atan2(-M.x,M.y)),M.x=j,M.y=T,M):(j=AN(this.long0+Math.atan2(M.x*t,N*this.cos_p14*i-M.y*this.sin_p14*t)),M.x=j,M.y=T,M))}var wj=["ortho"],cj={init:Ij,forward:nj,inverse:rj,names:wj},yj={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},aj={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function oj(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=MM-TM/2?this.face=yj.TOP:this.lat0<=-(MM-TM/2)?this.face=yj.BOTTOM:Math.abs(this.long0)<=TM?this.face=yj.FRONT:Math.abs(this.long0)<=MM+TM?this.face=this.long0>0?yj.RIGHT:yj.LEFT:this.face=yj.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function Ej(M){var N,D,t,i,e,j,T={x:0,y:0},g={value:0};if(M.x-=this.long0,N=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(M.y)):M.y,D=M.x,this.face===yj.TOP)i=MM-N,D>=TM&&D<=MM+TM?(g.value=aj.AREA_0,t=D-MM):D>MM+TM||D<=-(MM+TM)?(g.value=aj.AREA_1,t=D>0?D-sM:D+sM):D>-(MM+TM)&&D<=-TM?(g.value=aj.AREA_2,t=D+MM):(g.value=aj.AREA_3,t=D);else if(this.face===yj.BOTTOM)i=MM+N,D>=TM&&D<=MM+TM?(g.value=aj.AREA_0,t=-D+MM):D<TM&&D>=-TM?(g.value=aj.AREA_1,t=-D):D<-TM&&D>=-(MM+TM)?(g.value=aj.AREA_2,t=-D-MM):(g.value=aj.AREA_3,t=D>0?-D+sM:-D-sM);else{var s,u,z,A,L,I,n;this.face===yj.RIGHT?D=Cj(D,+MM):this.face===yj.BACK?D=Cj(D,+sM):this.face===yj.LEFT&&(D=Cj(D,-MM)),A=Math.sin(N),L=Math.cos(N),I=Math.sin(D),n=Math.cos(D),s=L*n,u=L*I,z=A,this.face===yj.FRONT?(i=Math.acos(s),t=xj(i,z,u,g)):this.face===yj.RIGHT?(i=Math.acos(u),t=xj(i,z,-s,g)):this.face===yj.BACK?(i=Math.acos(-s),t=xj(i,z,-u,g)):this.face===yj.LEFT?(i=Math.acos(-u),t=xj(i,z,s,g)):(i=t=0,g.value=aj.AREA_0)}return j=Math.atan(12/sM*(t+Math.acos(Math.sin(t)*Math.cos(TM))-MM)),e=Math.sqrt((1-Math.cos(i))/(Math.cos(j)*Math.cos(j))/(1-Math.cos(Math.atan(1/Math.cos(t))))),g.value===aj.AREA_1?j+=MM:g.value===aj.AREA_2?j+=sM:g.value===aj.AREA_3&&(j+=1.5*sM),T.x=e*Math.cos(j),T.y=e*Math.sin(j),T.x=T.x*this.a+this.x0,T.y=T.y*this.a+this.y0,M.x=T.x,M.y=T.y,M}function Oj(M){var N,D,t,i,e,j,T,g,s,u,z,A,L={lam:0,phi:0},I={value:0};if(M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,D=Math.atan(Math.sqrt(M.x*M.x+M.y*M.y)),N=Math.atan2(M.y,M.x),M.x>=0&&M.x>=Math.abs(M.y)?I.value=aj.AREA_0:M.y>=0&&M.y>=Math.abs(M.x)?(I.value=aj.AREA_1,N-=MM):M.x<0&&-M.x>=Math.abs(M.y)?(I.value=aj.AREA_2,N=N<0?N+sM:N-sM):(I.value=aj.AREA_3,N+=MM),s=sM/12*Math.tan(N),e=Math.sin(s)/(Math.cos(s)-1/Math.sqrt(2)),j=Math.atan(e),t=Math.cos(N),i=Math.tan(D),T=1-t*t*i*i*(1-Math.cos(Math.atan(1/Math.cos(j)))),T<-1?T=-1:T>1&&(T=1),this.face===yj.TOP)g=Math.acos(T),L.phi=MM-g,I.value===aj.AREA_0?L.lam=j+MM:I.value===aj.AREA_1?L.lam=j<0?j+sM:j-sM:I.value===aj.AREA_2?L.lam=j-MM:L.lam=j;else if(this.face===yj.BOTTOM)g=Math.acos(T),L.phi=g-MM,I.value===aj.AREA_0?L.lam=-j+MM:I.value===aj.AREA_1?L.lam=-j:I.value===aj.AREA_2?L.lam=-j-MM:L.lam=j<0?-j-sM:-j+sM;else{var n,r,w;n=T,s=n*n,w=s>=1?0:Math.sqrt(1-s)*Math.sin(j),s+=w*w,r=s>=1?0:Math.sqrt(1-s),I.value===aj.AREA_1?(s=r,r=-w,w=s):I.value===aj.AREA_2?(r=-r,w=-w):I.value===aj.AREA_3&&(s=r,r=w,w=-s),this.face===yj.RIGHT?(s=n,n=-r,r=s):this.face===yj.BACK?(n=-n,r=-r):this.face===yj.LEFT&&(s=n,n=r,r=-s),L.phi=Math.acos(-w)-MM,L.lam=Math.atan2(r,n),this.face===yj.RIGHT?L.lam=Cj(L.lam,-MM):this.face===yj.BACK?L.lam=Cj(L.lam,-sM):this.face===yj.LEFT&&(L.lam=Cj(L.lam,+MM))}0!==this.es&&(u=L.phi<0?1:0,z=Math.tan(L.phi),A=this.b/Math.sqrt(z*z+this.one_minus_f_squared),L.phi=Math.atan(Math.sqrt(this.a*this.a-A*A)/(this.one_minus_f*A)),u&&(L.phi=-L.phi));return L.lam+=this.long0,M.x=L.lam,M.y=L.phi,M}function xj(M,N,D,t){var i;return M<iM?(t.value=aj.AREA_0,i=0):(i=Math.atan2(N,D),Math.abs(i)<=TM?t.value=aj.AREA_0:i>TM&&i<=MM+TM?(t.value=aj.AREA_1,i-=MM):i>MM+TM||i<=-(MM+TM)?(t.value=aj.AREA_2,i=i>=0?i-sM:i+sM):(t.value=aj.AREA_3,i+=MM)),i}function Cj(M,N){var D=M+N;return D<-sM?D+=gM:D>+sM&&(D-=gM),D}var Sj=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],lj={init:oj,forward:Ej,inverse:Oj,names:Sj},kj=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Qj=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],dj=.8487,Yj=1.3523,pj=jM/5,Uj=1/pj,hj=18,fj=function(M,N){return M[0]+N*(M[1]+N*(M[2]+N*M[3]))},mj=function(M,N){return M[1]+N*(2*M[2]+3*N*M[3])};function vj(M,N,D,t){for(var i=N;t;--t){var e=M(i);if(i-=e,Math.abs(e)<D)break}return i}function Bj(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function bj(M){var N=AN(M.x-this.long0),D=Math.abs(M.y),t=Math.floor(D*pj);t<0?t=0:t>=hj&&(t=hj-1),D=jM*(D-Uj*t);var i={x:fj(kj[t],D)*N,y:fj(Qj[t],D)};return M.y<0&&(i.y=-i.y),i.x=i.x*this.a*dj+this.x0,i.y=i.y*this.a*Yj+this.y0,i}function Pj(M){var N={x:(M.x-this.x0)/(this.a*dj),y:Math.abs(M.y-this.y0)/(this.a*Yj)};if(N.y>=1)N.x/=kj[hj][0],N.y=M.y<0?-MM:MM;else{var D=Math.floor(N.y*hj);for(D<0?D=0:D>=hj&&(D=hj-1);;)if(Qj[D][0]>N.y)--D;else{if(!(Qj[D+1][0]<=N.y))break;++D}var t=Qj[D],i=5*(N.y-t[0])/(Qj[D+1][0]-t[0]);i=vj((function(M){return(fj(t,M)-N.y)/mj(t,M)}),i,iM,100),N.x/=fj(kj[D],i),N.y=(5*D+i)*eM,M.y<0&&(N.y=-N.y)}return N.x=AN(N.x+this.long0),N}var Zj=["Robinson","robin"],Gj={init:Bj,forward:bj,inverse:Pj,names:Zj};function Wj(){this.name="geocent"}function Rj(M){var N=TD(M,this.es,this.a);return N}function Xj(M){var N=gD(M,this.es,this.a,this.b);return N}var _j=["Geocentric","geocentric","geocent","Geocent"],Hj={init:Wj,forward:Rj,inverse:Xj,names:_j},Fj={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Vj={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function Jj(){if(Object.keys(Vj).forEach(function(M){if("undefined"===typeof this[M])this[M]=Vj[M].def;else{if(Vj[M].num&&isNaN(this[M]))throw new Error("Invalid parameter value, must be numeric "+M+" = "+this[M]);Vj[M].num&&(this[M]=parseFloat(this[M]))}Vj[M].degrees&&(this[M]=this[M]*eM)}.bind(this)),Math.abs(Math.abs(this.lat0)-MM)<iM?this.mode=this.lat0<0?Fj.S_POLE:Fj.N_POLE:Math.abs(this.lat0)<iM?this.mode=Fj.EQUIT:(this.mode=Fj.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var M=this.tilt,N=this.azi;this.cg=Math.cos(N),this.sg=Math.sin(N),this.cw=Math.cos(M),this.sw=Math.sin(M)}function qj(M){M.x-=this.long0;var N,D,t,i,e=Math.sin(M.y),j=Math.cos(M.y),T=Math.cos(M.x);switch(this.mode){case Fj.OBLIQ:D=this.sinph0*e+this.cosph0*j*T;break;case Fj.EQUIT:D=j*T;break;case Fj.S_POLE:D=-e;break;case Fj.N_POLE:D=e;break}switch(D=this.pn1/(this.p-D),N=D*j*Math.sin(M.x),this.mode){case Fj.OBLIQ:D*=this.cosph0*e-this.sinph0*j*T;break;case Fj.EQUIT:D*=e;break;case Fj.N_POLE:D*=-j*T;break;case Fj.S_POLE:D*=j*T;break}return t=D*this.cg+N*this.sg,i=1/(t*this.sw*this.h1+this.cw),N=(N*this.cg-D*this.sg)*this.cw*i,D=t*i,M.x=N*this.a,M.y=D*this.a,M}function Kj(M){M.x/=this.a,M.y/=this.a;var N,D,t,i={x:M.x,y:M.y};t=1/(this.pn1-M.y*this.sw),N=this.pn1*M.x*t,D=this.pn1*M.y*this.cw*t,M.x=N*this.cg+D*this.sg,M.y=D*this.cg-N*this.sg;var e=Et(M.x,M.y);if(Math.abs(e)<iM)i.x=0,i.y=M.y;else{var j,T;switch(T=1-e*e*this.pfact,T=(this.p-Math.sqrt(T))/(this.pn1/e+e/this.pn1),j=Math.sqrt(1-T*T),this.mode){case Fj.OBLIQ:i.y=Math.asin(j*this.sinph0+M.y*T*this.cosph0/e),M.y=(j-this.sinph0*Math.sin(i.y))*e,M.x*=T*this.cosph0;break;case Fj.EQUIT:i.y=Math.asin(M.y*T/e),M.y=j*e,M.x*=T;break;case Fj.N_POLE:i.y=Math.asin(j),M.y=-M.y;break;case Fj.S_POLE:i.y=-Math.asin(j);break}i.x=Math.atan2(M.x,M.y)}return M.x=i.x+this.long0,M.y=i.y,M}var $j=["Tilted_Perspective","tpers"],MT={init:Jj,forward:qj,inverse:Kj,names:$j};function NT(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var M=1-this.es,N=1/M;this.radius_p=Math.sqrt(M),this.radius_p2=M,this.radius_p_inv2=N,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function DT(M){var N,D,t,i,e=M.x,j=M.y;if(e-=this.long0,"ellipse"===this.shape){j=Math.atan(this.radius_p2*Math.tan(j));var T=this.radius_p/Et(this.radius_p*Math.cos(j),Math.sin(j));if(D=T*Math.cos(e)*Math.cos(j),t=T*Math.sin(e)*Math.cos(j),i=T*Math.sin(j),(this.radius_g-D)*D-t*t-i*i*this.radius_p_inv2<0)return M.x=Number.NaN,M.y=Number.NaN,M;N=this.radius_g-D,this.flip_axis?(M.x=this.radius_g_1*Math.atan(t/Et(i,N)),M.y=this.radius_g_1*Math.atan(i/N)):(M.x=this.radius_g_1*Math.atan(t/N),M.y=this.radius_g_1*Math.atan(i/Et(t,N)))}else"sphere"===this.shape&&(N=Math.cos(j),D=Math.cos(e)*N,t=Math.sin(e)*N,i=Math.sin(j),N=this.radius_g-D,this.flip_axis?(M.x=this.radius_g_1*Math.atan(t/Et(i,N)),M.y=this.radius_g_1*Math.atan(i/N)):(M.x=this.radius_g_1*Math.atan(t/N),M.y=this.radius_g_1*Math.atan(i/Et(t,N))));return M.x=M.x*this.a,M.y=M.y*this.a,M}function tT(M){var N,D,t,i,e=-1,j=0,T=0;if(M.x=M.x/this.a,M.y=M.y/this.a,"ellipse"===this.shape){this.flip_axis?(T=Math.tan(M.y/this.radius_g_1),j=Math.tan(M.x/this.radius_g_1)*Et(1,T)):(j=Math.tan(M.x/this.radius_g_1),T=Math.tan(M.y/this.radius_g_1)*Et(1,j));var g=T/this.radius_p;if(N=j*j+g*g+e*e,D=2*this.radius_g*e,t=D*D-4*N*this.C,t<0)return M.x=Number.NaN,M.y=Number.NaN,M;i=(-D-Math.sqrt(t))/(2*N),e=this.radius_g+i*e,j*=i,T*=i,M.x=Math.atan2(j,e),M.y=Math.atan(T*Math.cos(M.x)/e),M.y=Math.atan(this.radius_p_inv2*Math.tan(M.y))}else if("sphere"===this.shape){if(this.flip_axis?(T=Math.tan(M.y/this.radius_g_1),j=Math.tan(M.x/this.radius_g_1)*Math.sqrt(1+T*T)):(j=Math.tan(M.x/this.radius_g_1),T=Math.tan(M.y/this.radius_g_1)*Math.sqrt(1+j*j)),N=j*j+T*T+e*e,D=2*this.radius_g*e,t=D*D-4*N*this.C,t<0)return M.x=Number.NaN,M.y=Number.NaN,M;i=(-D-Math.sqrt(t))/(2*N),e=this.radius_g+i*e,j*=i,T*=i,M.x=Math.atan2(j,e),M.y=Math.atan(T*Math.cos(M.x)/e)}return M.x=M.x+this.long0,M}var iT=["Geostationary Satellite View","Geostationary_Satellite","geos"],eT={init:NT,forward:DT,inverse:tT,names:iT},jT=1.340264,TT=-.081106,gT=893e-6,sT=.003796,uT=Math.sqrt(3)/2;function zT(){this.es=0,this.long0=void 0!==this.long0?this.long0:0}function AT(M){var N=AN(M.x-this.long0),D=M.y,t=Math.asin(uT*Math.sin(D)),i=t*t,e=i*i*i;return M.x=N*Math.cos(t)/(uT*(jT+3*TT*i+e*(7*gT+9*sT*i))),M.y=t*(jT+TT*i+e*(gT+sT*i)),M.x=this.a*M.x+this.x0,M.y=this.a*M.y+this.y0,M}function LT(M){M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a;var N,D,t,i,e,j,T=1e-9,g=12,s=M.y;for(j=0;j<g;++j)if(N=s*s,D=N*N*N,t=s*(jT+TT*N+D*(gT+sT*N))-M.y,i=jT+3*TT*N+D*(7*gT+9*sT*N),s-=e=t/i,Math.abs(e)<T)break;return N=s*s,D=N*N*N,M.x=uT*M.x*(jT+3*TT*N+D*(7*gT+9*sT*N))/Math.cos(s),M.y=Math.asin(Math.sin(s)/uT),M.x=AN(M.x+this.long0),M}var IT=["eqearth","Equal Earth","Equal_Earth"],nT={init:zT,forward:AT,inverse:LT,names:IT},rT=1e-10;function wT(){var M;if(this.phi1=this.lat1,Math.abs(this.phi1)<rT)throw new Error;this.es?(this.en=At(this.es),this.m1=Lt(this.phi1,this.am1=Math.sin(this.phi1),M=Math.cos(this.phi1),this.en),this.am1=M/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=yT,this.forward=cT):(Math.abs(this.phi1)+rT>=MM?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=oT,this.forward=aT)}function cT(M){var N,D,t,i=AN(M.x-(this.long0||0)),e=M.y;return N=this.am1+this.m1-Lt(e,D=Math.sin(e),t=Math.cos(e),this.en),D=t*i/(N*Math.sqrt(1-this.es*D*D)),M.x=N*Math.sin(D),M.y=this.am1-N*Math.cos(D),M.x=this.a*M.x+(this.x0||0),M.y=this.a*M.y+(this.y0||0),M}function yT(M){var N,D,t,i;if(M.x=(M.x-(this.x0||0))/this.a,M.y=(M.y-(this.y0||0))/this.a,D=Et(M.x,M.y=this.am1-M.y),i=nt(this.am1+this.m1-D,this.es,this.en),(N=Math.abs(i))<MM)N=Math.sin(i),t=D*Math.atan2(M.x,M.y)*Math.sqrt(1-this.es*N*N)/Math.cos(i);else{if(!(Math.abs(N-MM)<=rT))throw new Error;t=0}return M.x=AN(t+(this.long0||0)),M.y=Yi(i),M}function aT(M){var N,D,t=AN(M.x-(this.long0||0)),i=M.y;return D=this.cphi1+this.phi1-i,Math.abs(D)>rT?(M.x=D*Math.sin(N=t*Math.cos(i)/D),M.y=this.cphi1-D*Math.cos(N)):M.x=M.y=0,M.x=this.a*M.x+(this.x0||0),M.y=this.a*M.y+(this.y0||0),M}function oT(M){var N,D;M.x=(M.x-(this.x0||0))/this.a,M.y=(M.y-(this.y0||0))/this.a;var t=Et(M.x,M.y=this.cphi1-M.y);if(D=this.cphi1+this.phi1-t,Math.abs(D)>MM)throw new Error;return N=Math.abs(Math.abs(D)-MM)<=rT?0:t*Math.atan2(M.x,M.y)/Math.cos(D),M.x=AN(N+(this.long0||0)),M.y=Yi(D),M}var ET=["bonne","Bonne (Werner lat_1=90)"],OT={init:wT,names:ET},xT=function(M){M.Proj.projections.add(at),M.Proj.projections.add(Ut),M.Proj.projections.add(Bt),M.Proj.projections.add(Jt),M.Proj.projections.add(Di),M.Proj.projections.add(Ti),M.Proj.projections.add(Ii),M.Proj.projections.add(yi),M.Proj.projections.add(xi),M.Proj.projections.add(vi),M.Proj.projections.add(Ne),M.Proj.projections.add(ge),M.Proj.projections.add(Le),M.Proj.projections.add(ye),M.Proj.projections.add(xe),M.Proj.projections.add(de),M.Proj.projections.add(fe),M.Proj.projections.add(Pe),M.Proj.projections.add(_e),M.Proj.projections.add(qe),M.Proj.projections.add(Dj),M.Proj.projections.add(Tj),M.Proj.projections.add(Lj),M.Proj.projections.add(cj),M.Proj.projections.add(lj),M.Proj.projections.add(Gj),M.Proj.projections.add(Hj),M.Proj.projections.add(MT),M.Proj.projections.add(eT),M.Proj.projections.add(nT),M.Proj.projections.add(OT)};SD.defaultDatum="WGS84",SD.Proj=eD,SD.WGS84=new SD.Proj("WGS84"),SD.Point=$D,SD.toPoint=wD,SD.defs=$M,SD.nadgrid=RN,SD.transform=oD,SD.mgrs=fD,SD.version="__VERSION__",xT(SD);var CT=SD,ST={name:"app-contextMenu",components:{},props:{coordinates:{type:Array,required:!0},origin:{type:Object},destination:{type:Object},building:{type:Number,required:!0},floor:{type:Number,required:!0},floorName:{type:String,required:!0},loadRoute:{type:Function},setLocation:{type:Function},addContextMenuMarkerSelected:{type:Function},hasGraph:{type:Boolean}},data:function(){return{debugMode:!1,has_graph:this.hasGraph}},computed:{coordinates4326:function(){var M=Number(this.coordinates[1].toFixed(5)),N=Number(this.coordinates[0].toFixed(5));return[M,N]},coordinates3857:function(){var M=CT("EPSG:4326","EPSG:3857",[this.coordinates[0],this.coordinates[1]]);return[Number(M[0].toFixed(0)),Number(M[1].toFixed(0))]}},methods:{click:function(M){var N={geometry:{coordinates:this.coordinates,type:"Point"},properties:{level:this.floor,levelName:this.floorName,building:this.building,icon:"marcadores/pp_00-mk.svg"},type:"Feature",mode:"point"};this.setLocation([N]),this.loadRoute(Object(A["a"])(Object(A["a"])(Object(A["a"])({i18n:this.$i18n},M,N),"contextual",!0),"routeMode",!0)),this.addContextMenuMarkerSelected(N),this.close()},close:function(){this.$emit("close")},copyText:function(M){var N="";switch(M){case"lat":N=this.$refs.lat;break;case"lon":N=this.$refs.lon;break;case"x":N=this.$refs.x;break;case"y":N=this.$refs.y;break}N.select(),document.execCommand("copy")}}},lT=ST,kT=(D("1775"),D("2877")),QT=Object(kT["a"])(lT,G,W,!1,null,"a15696fc",null),dT=QT.exports,YT=D("bd28"),pT=D("dfa0"),UT=D("595b");function hT(M){var N=M&&"object"===Object(c["a"])(M);return N&&(M._isVue=!0,M.$options={},M.$refs={},M._data={}),M}var fT=D("a09f");function mT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function vT(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?mT(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):mT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var BT={name:"MapComponent",mixins:[x,P,m,fT["a"]],components:{},props:{full_airport_loaded:!1,explorerMode:{type:Boolean,default:!1},printMode:{type:Boolean,default:!1},lat:{require:!1,type:String,default:""},lon:{require:!1,type:String,default:""}},data:function(){return{map:void 0,mapLoaded:!1,flying:!1,loaded:!1,popup:void 0,mapCanvas:void 0,contextMenuMarker:void 0,contextMenuMarkerSelected:[],contextMenuPopup:void 0,popupActive:!1,debugMode:!1,buildingId:this.$root.$data.building,floorId:this.$root.$data.floor,retrySetPoiAsOrigin:null,retryHighlightPoi:null,retryExtractBuildingFloor:null}},mounted:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(){var N,t,i,e,j=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:return N=new a["Map"]({container:this.id,style:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",center:[0,0],zoom:2}),N.fitBounds(this.initialBbox),t=new a["NavigationControl"]({showCompass:!1}),N.addControl(t,"bottom-left"),hT(N),this.map=N,document.querySelectorAll(".mapboxgl-ctrl").forEach((function(M){return M.setAttribute("aria-hidden",!0)})),i=D("040e"),e=Object.entries(D("c68e")),M.next=11,new Promise((function(M){var N=new Image;N.src=i,N.onload=function(){var D=document.createElement("canvas");D.width=N.width,D.height=N.height,D.getContext("2d").drawImage(N,0,0,N.width,N.height),e.forEach((function(M){var N=D.getContext("2d").getImageData(M[1].x,M[1].y,M[1].width,M[1].height).data;j.map.addImage(M[0],{width:M[1].width,height:M[1].height,data:N},{pixelRatio:window.devicePixelRatio})})),M()}}));case 11:this.map.on("load",Object(L["a"])(regeneratorRuntime.mark((function M(){var N;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:j.mapLoaded=!0,""!==j.lat&&""!==j.lon&&(N=[j.lon,j.lat],j[I["a"].SET_COORDINATES]({coordinates:N,zoom:19}));case 2:case"end":return M.stop()}}),M)})))),this.map.on("movestart",(function(){j.removeContextMenu()})),this.map.on("click",(function(){j.removeContextMenu()})),this.map.on("moveend",(function(){j.flying&&(j.flying=!1,j.existLayer(Z["a"].POI_LIST)&&j.floor&&j.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","visible"))})),this.map.on("zoomend",(function(){var M=j.map.getZoom();if(!j.floor&&M>="16"){j[I["a"].BLOCK_BBOX](!0);var N=j.map.getBounds(),D=Object(UT["point"])(N.getCenter().toArray()),t=Object(UT["featureCollection"])(j.buildings.map((function(M){return Object(UT["point"])(M.centroid.coordinates,{id:M.id,floor:M.default_level})}))),i=Object(UT["nearestPoint"])(D,t);j.poi&&i.properties.id!==j.poi.properties.building||j.saveFloor({buildingId:i.properties.id,floorId:i.properties.floor,airportID:j.airportID})}else j.mapLoaded&&j.floor&&j.map.getZoom()<"14"&&!j.isRouteMode&&!j.poi&&j[I["a"].LOAD_FLOOR]()})),this.map.on("contextmenu",(function(M){(j.floor&&j.airport.has_graph&&!j.printMode||j.floor&&j.debugMode&&!j.printMode)&&(j.removeContextMenu(),j.addContextMenuPoint(M))})),window.addEventListener("resize",this.resize);case 18:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),destroyed:function(){window.removeEventListener("resize",this.resize),this.map.remove()},computed:vT(vT({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE,id:I["b"].GET_ID,bbox:I["b"].GET_BBOX,coordinates:I["b"].GET_COORDINATES,zoom:I["b"].GET_ZOOM,accessToken:I["b"].GET_ACCESS_TOKEN,buildings:I["b"].GET_BUILDINGS,layerTree:I["b"].GET_LAYER_TREE,floor:I["b"].GET_FLOOR,building:I["b"].GET_BUILDING,category:I["b"].GET_CATEGORY,poisCatalog:I["b"].GET_POIS_CATALOG,poiId:I["b"].GET_POI_ID,poiDId:I["b"].GET_POID_ID,routeConfig:I["b"].GET_ROUTE_CONFIG,poi:I["b"].GET_POI,isRouteMode:I["b"].IS_ROUTE_MODE,hasRoute:I["b"].HAS_ROUTE,airportID:I["b"].GET_AIRPORT_ID,airport:I["b"].GET_AIRPORT,initialBbox:I["b"].GET_INITIAL_BBOX,homePosition:I["b"].GET_HOME_POSITION,filtering:I["b"].GET_FILTERING,activeFilters:I["b"].GET_ACTIVE_FILTERS,zonaubicacion:I["b"].GET_ZONAUBICACION,origin:I["b"].GET_ORIGIN,destination:I["b"].GET_DESTINATION})),{},{mapAirportLoaded:function(){return this.mapLoaded&&this.full_airport_loaded},filterPois:function(){var M=this,N=["all"];if(this.building&&N.push(["==",["get","building"],this.building.id]),this.floor&&N.push(["==",["get","level"],this.floor.id]),null!==this.category&&void 0!==this.category){var D=this.poisCatalog.find((function(N){return N.id===M.category}));if(D&&D.subcategories&&D.subcategories.length>0){var t=D.subcategories.map((function(M){return M.id})),i=t.map((function(M){return["in",M,["get","subcategories"]]}));N.push(["any"].concat(Object(y["a"])(i)))}}if(this.filtering){var e=[];this.activeFilters.categories&&e.push.apply(e,Object(y["a"])(this.activeFilters.categories.subcategories)),this.activeFilters.subcategories.length&&e.push.apply(e,Object(y["a"])(this.activeFilters.subcategories)),e.length&&N.push(["any"].concat(Object(y["a"])(e.map((function(M){return["in",M,["get","subcategories"]]}))))),this.zonaubicacion&&N.push(["==",["get","pat_zonaubicacion",["get","attrs"]],this.zonaubicacion])}return N}}),methods:vT(vT({},Object(n["b"])([I["a"].BLOCK_BBOX,I["a"].ADD_LAYER,I["a"].DELETE_LAYER,I["a"].SET_COORDINATES,I["a"].LOAD_TILES_BUILDING_FLOOR,I["a"].LOAD_FLOOR,I["a"].SET_HOME_POSITION,I["a"].LOAD_FLOOR])),{},{loadAirport:function(){var M=this;if(this.loaded=!0,this.canvasMap=this.map.getCanvasContainer(),this.$root.$emit("mapLoaded",this.map),this.resize(),this.addPoisLayer(),this.bbox&&this.fitBounds(this.bbox),this.buildings.length&&this.addBuildings(this.buildings),null!==this.floorId&&void 0!==this.floorId||this.category){var N=this.buildings.find((function(N){return N.id===M.buildingId}));if(N){var D=N.levels.find((function(N){return N.id===M.floorId||String(N.id)===String(M.floorId)}));this.setFloor(D)}}var t=this.poiDId||this.poiId;if(t){var i=this.$root.$data.subcategories,e=Array.isArray(i)&&i.length>0,j=null!==this.category&&void 0!==this.category,T=this.$root.$data.avaMode;T&&(e||j)&&this.extractAndLoadBuildingFloorFromPoi(t),e||j?(this.setPoiAsOrigin(t),setTimeout((function(){M.forceHighlightPoi(t)}),500)):this.setPoi(t)}this.routeConfig&&this.setContextualRoute()},resize:function(){var M=this,N=20,D=0,t=window.setInterval((function(){D+=N,M.map.resize(),D>=250&&window.clearInterval(t)}),N)},getMap:function(M){var N=this,D=function(){N.loaded?M():setTimeout(D,50)};D()},fitBounds:function(M){this.flying=!0,this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none");var N=document.getElementById("points-wrapper")||{};this.map.fitBounds(M,{padding:{left:this.isMobile?0:N.offsetWidth||0,bottom:64,top:64,right:64},duration:1e3})},flyTo:function(M){this.map.flyTo(vT(vT({},M),{},{speed:2.4})),this[I["a"].SET_COORDINATES]({coordinates:void 0})},getLayer:function(M){return this.map.getLayer(M)},setLayoutProperty:function(M,N){return this.map.setLayoutProperty(M,"visibility",N)},existLayer:function(M){return!!this.getLayer(M)},addLayerHandle:function(M){var N=M.id,D=M.source,t=M.data,i=M.url,e=M.layers;"raster"===D?this.addLayerRaster({id:N,source:D,url:i}):"mvt"===D?this.addLayerMVT({id:N,source:D,url:i,layers:e}):this.addLayerVector({id:N,source:D,data:t,url:i,layers:e})},addLayerRaster:function(M){var N=M.id,D=M.source,t=M.url;this.map.addSource(N,{type:D,tiles:[t],tileSize:256}),this.map.addLayer({id:N,type:D,source:N}),this.map.moveLayer(N,Z["a"].POI_LIST),this.existRouteLayer()&&this.moveRouteLayer()},addLayerMVT:function(M){var N=this,D=M.id,t=(M.source,M.url),i=M.layers;this.map.addSource(D,{type:"vector",tiles:t}),i.forEach((function(M){N.map.addLayer(vT({source:D},M),N.existLayer(Z["a"].POI_LIST)?Z["a"].POI_LIST:null)})),this.existRouteLayer()&&this.moveRouteLayer()},addLayerVector:function(M){var N=this,D=M.id,t=M.source,i=M.url,e=M.data,j=M.layers,T=void 0===j?[]:j;this.existLayer(D)&&(T.forEach((function(M){N.map.removeLayer(M.id||D)})),this.map.removeSource(D));var g={type:t||"vector"},s={};i&&(g.url=i,s["source-layer"]=D),e&&(g.data=e,s["source"]=D),this.map.addSource(D,g),T.forEach((function(M){N.map.addLayer(vT(vT(vT({},s),M),{},{id:M.id||D}))})),T.length||this.map.addLayer(s),this.existLayer(Z["a"].POI_LIST)&&this.map.moveLayer(Z["a"].POI_LIST),this.existLayer(Z["a"].POI_LIST_SELECTED)&&this.map.moveLayer(Z["a"].POI_LIST_SELECTED)},addContextMenuPoint:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j,T=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:D=document.createElement("div"),D.className="context-menu-marker",this.contextMenuMarker=new a["Marker"](D).setLngLat(N.lngLat).addTo(this.map),t=null,M.prev=4,t=dT,M.next=12;break;case 8:return M.prev=8,M.t0=M["catch"](4),console.error('[showPopup] Error importing component "context-menu" \n',M.t0),M.abrupt("return");case 12:i=s["a"].extend(vT(vT({},t),{},{i18n:this.$i18n})),e="context-menu",j=new i({propsData:{coordinates:[N.lngLat.lng,N.lngLat.lat],origin:this.origin,destination:this.destination,building:this.building.id,floorName:this.floor.name,floor:this.floor.id,loadRoute:this[I["a"].LOAD_ROUTE],addContextMenuMarkerSelected:this.addContextMenuMarkerSelected,setLocation:this.setLocation,hasGraph:this.airport.has_graph}}),this.contextMenuPopup=new a["Popup"]({closeButton:!1,closeOnClick:!0,anchor:"top-left",offset:12,className:"context-menu"}).setLngLat(N.lngLat).setHTML('<div id="'.concat(e,'"></div>')).addTo(this.map),this.contextMenuPopup.vue=j,j.$mount("#".concat(e)),this.contextMenuPopup._update(),j.$on("close",(function(){T.removeContextMenu()}));case 20:case"end":return M.stop()}}),M,this,[[4,8]])})));function N(N){return M.apply(this,arguments)}return N}(),addContextMenuMarkerSelected:function(M){var N=document.createElement("div");N.className="context-menu-marker-selected";var D=new a["Marker"](N,{anchor:"bottom"}).setLngLat(M.geometry.coordinates).addTo(this.map);this.contextMenuMarkerSelected.push(D)},removeContextMenu:function(){this.contextMenuMarker&&(this.contextMenuMarker.remove(),this.contextMenuMarker=void 0),this.contextMenuPopup&&(this.contextMenuPopup.vue.$destroy(),this.contextMenuPopup.remove(),this.contextMenuPopup=void 0)},removeContextMenuSelected:function(){this.contextMenuMarkerSelected.forEach((function(M){M.remove()})),this.contextMenuMarkerSelected=[]},addBuildings:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:return D=N.reduce((function(M,N){var D,t=j.generateGeoJsonBuilding(N);return(D=M.features).push.apply(D,Object(y["a"])(t)),M}),{type:"FeatureCollection",features:[]}),t=Z["c"],t.data=D,t.layers[0].filter=!0,this.building&&(t.layers[0].filter=["!=",["get","id"],this.building.id]),this[I["a"].ADD_LAYER](vT({},t)),i=N.reduce((function(M,N){var D=j.generateGeoJsonBuildingMarker(N);return M.features.push(D),M}),{type:"FeatureCollection",features:[]}),M.next=9,this.addMarkers();case 9:e=Z["d"],e.data=i,e.layers[0].filter=!0,this.building&&(e.layers[0].filter=["!=",["get","id"],this.building.id]),this[I["a"].ADD_LAYER](vT({},e)),this.explorerMode&&(this.map.on("click",Z["c"].id,(function(M){var N=M.features[0];void 0!==N.properties.floor?j.saveFloor({buildingId:N.properties.id,floorId:N.properties.floor,airportID:j.airportID,tag:"mapa",event:!0}):console.error("No default level. ID: "+N.properties.id)})),this.map.on("mousemove",Z["c"].id,(function(M){if(!j.popupActive){j.canvasMap.style.cursor="pointer",j.removePopup();var N=M.features[0];j.canvasMap.style.cursor="pointer";var D=M.lngLat,t=N.properties.name;j.popup=new a["Popup"]({closeButton:!1,anchor:"bottom"}),j.popup.setLngLat(D).setHTML(t).addTo(j.map)}})),this.map.on("mouseleave",Z["c"].id,(function(M){j.canvasMap.style.cursor="",j.removePopup()})),this.map.on("mousemove",Z["a"].BUILDING_FLOOR[24],(function(){j.popupActive||(j.canvasMap.style.cursor="",j.removePopup())})),this.map.on("mousemove",Z["a"].BUILDING_FLOOR[18],(function(){j.popupActive||(j.canvasMap.style.cursor="",j.removePopup())})),this.map.on("click",Z["d"].id,(function(M){var N=M.features[0];void 0!==N.properties.floor?j.saveFloor({buildingId:N.properties.id,floorId:N.properties.floor,airportID:j.airportID}):console.error("No default level. ID: "+N.properties.id)})),this.map.on("mousemove",Z["d"].id,(function(M){j.canvasMap.style.cursor="pointer",j.removePopup();var N=M.features[0];j.canvasMap.style.cursor="pointer";var D=M.lngLat,t=N.properties.name;j.popup=new a["Popup"]({closeButton:!1,anchor:"bottom"}),j.popup.setLngLat(D).setHTML(t).addTo(j.map)})),this.map.on("mouseleave",Z["d"].id,(function(M){j.canvasMap.style.cursor="",j.removePopup()})));case 15:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),generateGeoJsonBuildingMarker:function(M){return{type:"Feature",properties:{category:M.category,floor:M.default_level,group_id:M.group_id,priority:M.priority,id:M.id,name:M.name,short_name:M.short_name,poi_name:M.short_name+M.color,color:M.color,fontColor:M.font_color},geometry:{type:M.centroid.type,coordinates:M.centroid.coordinates}}},generateGeoJsonBuilding:function(M){return M.bounds.geometries.map((function(N){return{type:"Feature",properties:{category:M.category,floor:M.default_level,group_id:M.group_id,priority:M.priority,id:M.id,name:M.name,short_name:M.short_name,color:M.color},geometry:{type:N.type,coordinates:N.coordinates}}}))},addMarkers:function(){var M=this,N=1===window.devicePixelRatio?1:2;this.buildings.filter((function(N){return N.id!==(M.building||{}).id})).forEach((function(D){var t=D.short_name+D.color;if(!M.map.hasImage(t)){var i="PARKING PUBLICO"===D.category,e=document.createElement("canvas"),j=(i?24:40)*N;e.width=j,e.height=j;var T=e.getContext("2d");T.imageSmoothingEnabled=!1,T.globalAlpha=1;var g=e.height/2;if(T.translate(g,g),g-=8,T.shadowColor="#999",T.shadowBlur=8,i){var s=4,u=2,z=j/2-u;T.moveTo(s-z,0-z),T.lineTo(z-s,0-z),T.arc(z-s,0-z+s,s,1.5*Math.PI,.2*Math.PI),T.moveTo(z,0-z+s+2),T.lineTo(z,z-s),T.arc(z-s,z-s,s,0*Math.PI,.5*Math.PI),T.moveTo(z-s,z),T.lineTo(s-z,z),T.arc(0-z+s,z-s,s,.5*Math.PI,1*Math.PI),T.moveTo(0-z,z-s),T.lineTo(0-z,0-z+s),T.arc(s-z,s-z,s,1*Math.PI,1.5*Math.PI),T.fillStyle=D.color,T.fillRect(0-z+.7,0-z+.5,j-s-1,j-s-1.5)}else T.arc(0,0,g,0,2*Math.PI),T.fillStyle=D.color,T.fill();T.shadowColor="transparent",T.shadowBlur=0,T.lineWidth=N,T.strokeStyle=D.font_color,T.stroke(),T.beginPath(),T.font="600 ".concat(12*N,"px Source Sans Pro"),T.textAlign="center",T.fillStyle=D.font_color,T.fillText(D.short_name,0,0+4*N);var A=e.getContext("2d").getImageData(0,0,j,j).data;M.map.addImage(t,{width:j,height:j,data:A},{pixelRatio:N})}}))},setPoiAsOrigin:function(M){var N=this.poisList.features.find((function(N){return N.properties.id===M}));if(N||(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N){var D,t;this.setLocation([N]);try{D=JSON.parse(N.properties.attrs||"{}")}catch(Fu){D={}}try{t=JSON.parse(N.properties.subcategories||"[]")}catch(Fu){t=[]}var i={origin:{geometry:N.geometry,properties:vT(vT({},N.properties),{},{attrs:D,subcategories:t}),type:"Feature"},routeMode:!0,i18n:this.$i18n};this[I["a"].LOAD_ROUTE](i)}else this.retrySetPoiAsOrigin=M},extractAndLoadBuildingFloorFromPoi:function(M){var N=this.poisList.features.find((function(N){return N.properties.id===M}));if(!N&&this.uncategorizedPoisList&&(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N){var D=N.properties.building,t=N.properties.level;if(D&&null!==t&&void 0!==t){var i=this.buildings.find((function(M){return M.id===D}));if(i){var e=i.levels.find((function(M){return M.id===t||String(M.id)===String(t)}));e?(console.log("Auto-extracted from POI ".concat(M,": building=").concat(D,", floor=").concat(t)),this[I["a"].LOAD_FLOOR]({floor:e,building:i})):console.warn("Floor ".concat(t," not found in building ").concat(D," for POI ").concat(M))}else console.warn("Building ".concat(D," not found for POI ").concat(M))}else console.warn("Missing building or floor data for POI ".concat(M,": building=").concat(D,", floor=").concat(t))}else console.warn("POI ".concat(M," not found in POI lists")),this.retryExtractBuildingFloor=M},forceHighlightPoi:function(M){if(this.map){var N=this.poisList.features.find((function(N){return N.properties.id===M}));if(N||(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N){var D={type:"FeatureCollection",features:[N]};this.existLayer(Z["a"].POI_LIST_SELECTED)?this.map.getSource(Z["a"].POI_LIST_SELECTED).setData(D):(this.map.addSource(Z["a"].POI_LIST_SELECTED,{type:"geojson",data:D}),this.map.addLayer({id:Z["a"].POI_LIST_SELECTED,type:"symbol",source:Z["a"].POI_LIST_SELECTED,layout:{"icon-image":["concat",["get","iconMap"],"-selmk"],"icon-size":.75,"icon-allow-overlap":!0,"icon-ignore-placement":!0,"icon-anchor":"bottom"}}))}else this.retryHighlightPoi=M}else this.retryHighlightPoi=M},setSelectedPoi:function(M){var N=this;if(this.removeContextMenuSelected(),this.existLayer(Z["a"].POI_LIST_SELECTED)){var D={type:"FeatureCollection",features:[]};if(M){var t=this.poisList.features.find((function(N){return N.properties.id===M}));t||(t=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),D.features.push(t)}this.floor&&this.steps.filter((function(M){return!M.new})).forEach((function(M){"point"!==M.mode?D.features.push(M):N.addContextMenuMarkerSelected(M)})),this.map.getSource(Z["a"].POI_LIST_SELECTED).setData(D),this.map.setLayoutProperty(Z["a"].POI_LIST_SELECTED,"visibility",D.features.length?"visible":"none"),this.map.moveLayer(Z["a"].POI_LIST_SELECTED)}},setPoi:function(M){this.savePoi({poiId:M,airportID:this.airportID,tag:"mapa"}),this.setSelectedPoi(M)},existRouteLayer:function(){return this.existLayer(Z["a"].ROUTES[0])||this.existLayer(Z["a"].ROUTES[1])||this.existLayer(Z["a"].ROUTES[2])},moveRouteLayer:function(){this.map.moveLayer(Z["a"].ROUTES[0]),this.map.moveLayer(Z["a"].ROUTES[1]),this.map.moveLayer(Z["a"].ROUTES[2])},setRouteFloor:function(M){if(this.existRouteLayer()){this.moveRouteLayer(),this.map.setLayoutProperty(Z["a"].ROUTES[0],"visibility",M?"visible":"none"),this.map.setLayoutProperty(Z["a"].ROUTES[1],"visibility",M?"visible":"none"),this.map.setLayoutProperty(Z["a"].ROUTES[2],"visibility",M?"visible":"none");var N=Object(pT["a"])(this.building,this.floor),D=N.layerOpacity,t=N.arrowOpacity,i=["all",["==",["get","level"],this.floor.id],["==",["get","building"],this.building.id]];this.map.setFilter(Z["a"].ROUTES[1],i),this.map.setPaintProperty(Z["a"].ROUTES[0],"line-opacity",D),this.map.setPaintProperty(Z["a"].ROUTES[2],"icon-opacity",t),this.setSelectedPoi()}},setFloor:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:if(void 0!==N){M.next=2;break}return M.abrupt("return");case 2:if(this.existLayer(Z["a"].TILES)&&(this.map.removeLayer(Z["a"].TILES),this.map.removeSource(Z["a"].TILES),this[I["a"].DELETE_LAYER](Z["a"].TILES)),this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none"),null===N||void 0===N){M.next=24;break}if(D=this.building||this.buildings.find((function(M){return M.id===j.buildingId})),D){M.next=8;break}return M.abrupt("return");case 8:if(this[I["a"].LOAD_FLOOR]({floor:N,building:D}),D.bounds&&(t=D.bounds,t&&"object"===Object(c["a"])(t)&&(t=JSON.parse(JSON.stringify(t)),Array.isArray(t)&&4===t.length&&t.every((function(M){return"number"===typeof M}))&&this.fitBounds(t))),this.existLayer(Z["a"].BUILDING_CONTOUR)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR,["!=",["get","id"],D.id]),this.existLayer(Z["a"].BUILDING_CONTOUR_MARKER)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR_MARKER,["!=",["get","id"],D.id]),i=["all",["==",["get","building"],["to-string",D.id]],["==",["get","height"],N.id]],this.existLayer(Z["b"].id)){M.next=20;break}return e=vT({},Z["b"]),e.layers.forEach((function(M){M.filter=i})),M.next=18,this[I["a"].LOAD_TILES_BUILDING_FLOOR](Z["b"]);case 18:M.next=21;break;case 20:Z["b"].layers.forEach((function(M){j.map.setFilter(M.id,i)}));case 21:this.existLayer(Z["a"].POI_LIST)&&(this.map.setFilter(Z["a"].POI_LIST,this.filterPois),this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","visible")),M.next=28;break;case 24:this.existLayer(Z["b"].id)&&Z["b"].layers.forEach((function(M){j.map.setFilter(M.id,["to-boolean",0])})),this.existLayer(Z["a"].BUILDING_CONTOUR)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR,!0),this.existLayer(Z["a"].BUILDING_CONTOUR_MARKER)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR_MARKER,!0),this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none");case 28:this.setRouteFloor(!0);case 29:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),addPoisLayer:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(){var N,D,t=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:N=Z["e"],D=this.poisList,N.data=vT({},D),N.data.features=[].concat(Object(y["a"])(N.data.features),Object(y["a"])(this.uncategorizedPoisList.features)),N.layers[0].filter=this.filterPois,N.layers[0].layout.visibility=this.floor?"visible":"none",this[I["a"].ADD_LAYER](vT({},N)),this[I["a"].ADD_LAYER](Z["f"]),this.explorerMode&&this.map.on("click",Z["a"].POI_LIST,(function(M){var N=M.features[0],D=N.properties.id,i=JSON.parse(N.properties.subcategories),e=t.poisList.features.find((function(M){return M.properties.id===D}));e||(e=t.uncategorizedPoisList.features.find((function(M){return M.properties.id===D}))),t.$root.$data.onPoiClickCallback&&"function"===typeof t.$root.$data.onPoiClickCallback&&t.$root.$data.onPoiClickCallback({id:D,name:e&&e.properties&&e.properties.attrs&&e.properties.attrs.pat_nombre,building:e&&e.properties&&e.properties.building,floor:e&&e.properties&&e.properties.level,subcategories:e&&e.properties&&e.properties.subcategories,coordinates:e&&e.geometry&&e.geometry.coordinates,poi:e});var j=Array.isArray(t.$root.$data.subcategories)&&t.$root.$data.subcategories.length>0,T=null!==t.category&&void 0!==t.category,g=t.poiDId||t.poiId,s=g&&D===g,u=t.$store.state.route&&t.$store.state.route.steps&&t.$store.state.route.steps.some((function(M){return M.isOrigin})),z=(j||T)&&g&&!s||t.isRouteMode||t.origin||u;if(!z||s){t.setPoi(D);var L="".concat(t.building.name,". Planta ").concat(e.properties.levelName,". ").concat(t.$t(e.properties.attrs.pat_nombre)),n={eventCategory:"mapa",eventAction:"clic",eventLabel:Object(o["a"])(L),language:t.$i18n.locale,airportID:t.airportID};window.digitalChange("event",n)}else{var r,w=(t.destinationName||"").includes("step")?"step":t.destinationName,c=Array.isArray(t.$root.$data.subcategories)&&t.$root.$data.subcategories.length>0,y=null!==t.category&&void 0!==t.category,a=t.poiDId||t.poiId;r=(c||y)&&a?"destination":w||(t.destination?"origin":"destination"),t.setLocation([N]),t[I["a"].LOAD_ROUTE](Object(A["a"])(Object(A["a"])({i18n:t.$i18n},r,{geometry:{coordinates:[M.lngLat.lng,M.lngLat.lat],type:"Point"},properties:vT(vT({},N.properties),{},{attrs:JSON.parse(N.properties.attrs),subcategories:i}),type:"Feature"}),"routeMode",!0))}})),this.map.on("mouseover",Z["a"].POI_LIST,(function(M){t.popupActive=!0,t.setPoiTooltip(M)})),this.map.on("mouseleave",Z["a"].POI_LIST,(function(){t.popupActive=!1,t.removePopup()})),this.map.on("mouseleave",Z["a"].POI_LIST_SELECTED,(function(){t.removePopup()})),this.map.on("mouseover",Z["a"].POI_LIST_SELECTED,(function(M){t.setPoiTooltip(M,!0)}));case 13:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),removePopup:function(){this.popup&&this.popup.remove()},setPoiTooltip:function(M,N){this.removePopup();var D=M.features[0],t=JSON.parse(D.properties.subcategories),i=Z["j"][Object(YT["a"])(t)];this.canvasMap.style.cursor="pointer";var e=D.geometry.coordinates.slice(),j=i?this.$t(i.name):JSON.parse(D.properties.attrs).pat_nombre;this.popup=new a["Popup"]({closeButton:!1,anchor:"bottom",offset:{bottom:[0,N?-25:-10]}}),this.popup.setLngLat(e).setHTML(j).addTo(this.map)},setContextualRoute:function(){var M=this,N=this.poisList.features.filter((function(N){return M.routeConfig.steps.includes(N.properties.id)}));this.setLocation(N),this[I["a"].MOVE_ROUTE]({steps:N})},clearRoute:function(){this.existRouteLayer()&&(this.map.removeLayer(Z["a"].ROUTES[0]),this.map.removeLayer(Z["a"].ROUTES[1]),this.map.removeLayer(Z["a"].ROUTES[2]),this.map.removeSource(Z["a"].ROUTES[0]),this.map.removeSource(Z["a"].ROUTES[2]),this[I["a"].DELETE_LAYER](Z["a"].ROUTES[0]),this[I["a"].DELETE_LAYER](Z["a"].ROUTES[2])),this.setSelectedPoi()}}),watch:{mapAirportLoaded:function(M){M&&this.loadAirport()},poisList:{handler:function(M){this.retrySetPoiAsOrigin&&M&&M.features&&M.features.length>0&&(this.setPoiAsOrigin(this.retrySetPoiAsOrigin),this.retrySetPoiAsOrigin=null),this.retryHighlightPoi&&M&&M.features&&M.features.length>0&&(this.forceHighlightPoi(this.retryHighlightPoi),this.retryHighlightPoi=null),this.retryExtractBuildingFloor&&M&&M.features&&M.features.length>0&&(this.extractAndLoadBuildingFloorFromPoi(this.retryExtractBuildingFloor),this.retryExtractBuildingFloor=null)},immediate:!1},bbox:function(M){M&&this.fitBounds(M)},accessToken:function(M){a["accessToken"]=M},layerTree:function(M){var N=this;M.forEach((function(M){N.existLayer(M.id)||N.addLayerHandle(M)}))},buildings:function(M){this.loaded&&this.addBuildings(M)},floor:function(M){this.loaded&&this.setFloor(M)},coordinates:function(M){var N=this;if(M&&(this.flyTo({center:M,zoom:this.zoom}),""!==this.lat&&""!==this.lon)){var D=[this.lon,this.lat],t=document.createElement("div"),i="YOU ARE HERE",e=new a["Popup"]({closeButton:!0,anchor:"bottom"});t.className="context-menu-marker",setTimeout((function(){e.setLngLat(D).setHTML(i).addTo(N.map),new a["Marker"](t).setPopup(e).setLngLat(D).addTo(N.map).togglePopup()}),1500)}},poi:function(M){this.setSelectedPoi(M&&M.properties.id),M&&this[I["a"].SET_COORDINATES]({coordinates:M.geometry.coordinates,zoom:19})},steps:function(){this.setSelectedPoi()},isRouteMode:function(M){M||this.clearRoute()},hasRoute:function(M){M?this.setSelectedPoi():this.clearRoute()},homePosition:function(M){var N=this;if(M&&this.homePosition){var D=this.poisList.features.find((function(M){return M.properties.id===N.homePosition})),t=this.buildings.find((function(M){return M.id===D.properties.building})),i=t.levels.find((function(M){return M.id===N.floorId})),e=[D.geometry.coordinates[0],D.geometry.coordinates[1]];this[I["a"].SET_COORDINATES]({coordinates:e,zoom:19}),this[I["a"].LOAD_FLOOR]({floor:i,building:t}),this.setPoi(this.homePosition),this[I["a"].SET_HOME_POSITION](!1)}},filtering:{handler:function(){this.existLayer(Z["a"].POI_LIST)&&this.map.setFilter(Z["a"].POI_LIST,this.filterPois)}},activeFilters:{deep:!0,handler:function(){this.existLayer(Z["a"].POI_LIST)&&this.map.setFilter(Z["a"].POI_LIST,this.filterPois)}}}},bT=BT,PT=(D("0505"),Object(kT["a"])(bT,r,w,!1,null,"5dba0ef4",null)),ZT=PT.exports,GT=function(){var M=this,N=M._self._c;return N("div",{staticClass:"layers-container"},[N("DropDown",{ref:"dropdown",attrs:{"click-outside":!1,height:"auto"},scopedSlots:M._u([{key:"trigger",fn:function(){return[N("div",{staticClass:"selector-trigger"},[N("Icon",{attrs:{icon:"icon-layers.svg",size:"20px",fill:"#f6f7f9"}})],1)]},proxy:!0},{key:"content",fn:function(){return[N("div",{staticClass:"header"},[N("p",[M._v("Capas")]),N("button",{staticClass:"close",on:{click:M.close}},[N("Icon",{attrs:{icon:"icon-close.svg",size:"20px",fill:"#71777d"}})],1)]),N("div",{staticClass:"layers-wrapper"},M._l(M.layers,(function(D){return"poiList"===D.id?N("div",{key:D.id,staticClass:"layer"},[N("div",{staticClass:"layer-header"},[N("Checkbox",{attrs:{name:D.id,label:D.name},on:{change:M.onCheckboxChange},model:{value:D.active,callback:function(N){M.$set(D,"active",N)},expression:"layer.active"}})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enterLayer,"after-enter":M.afterEnterLayer,leave:M.leaveLayer}},[D.legend&&D.active?N("div",{staticClass:"legend"},[N("div",{staticClass:"wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.legend.title))]),N("div",{staticClass:"chart"},[N("div",{staticClass:"labels"},[N("p",[M._v(M._s(D.legend.range.min))]),N("p",[M._v(M._s(D.legend.range.max))])]),N("div",{staticClass:"bar",style:{"background-image":M.gradient(D.legend.range.range)}})]),N("p",{staticClass:"note"},[M._v(M._s(D.legend.note))])])]):M._e()])],1):M._e()})),0)]},proxy:!0}])})],1)},WT=[],RT={name:"Layers",mixins:[],components:{},props:{layers:{type:Array,required:!0}},data:function(){return{}},computed:{},methods:{close:function(){this.$refs.dropdown.close()},onCheckboxChange:function(M){this.$emit("change",M)},gradient:function(M){return"linear-gradient(to right, ".concat(M.join(",",""),")")},enterLayer:function(M){M.style.height="auto";var N=getComputedStyle(M).height;M.style.height=0,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=N}))},afterEnterLayer:function(M){M.style.height="auto"},leaveLayer:function(M){var N=getComputedStyle(M).height;M.style.height=N,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=0}))}}},XT=RT,_T=(D("d284"),Object(kT["a"])(XT,GT,WT,!1,null,"566cf004",null)),HT=_T.exports,FT=(D("386d"),function(){var M=this,N=M._self._c;return N("transition-group",{attrs:{appear:"",name:"appear"}},[N("div",{key:"header",ref:"header",staticClass:"headers-wrapper",class:{none:"aena-point-detail"===M.view},attrs:{role:"region"}},[M.search&&!M.isRouteMode?N("AenaSearch",{key:"search",ref:"search",attrs:{hidden:"aena-point-detail"===M.view&&!M.isMobile,search:M.currentProps.activeFilters.search,view:M.view},on:{onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey,onSelect:M.onSelect,onFocus:M.onInputFocus,onBlur:M.onInputBlur,onBack:M.goBack}}):M._e(),M.isRouteMode?N("div",{key:"route-header",staticClass:"aena-route-header"},[M.isMobile?N("button",{staticClass:"btn-back",on:{click:M.closeRoute}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e(),N("div",{staticClass:"top"},[M.toggleDrag?N("div",{staticClass:"graph absolute inert",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Icon",{attrs:{icon:"ruta-origen.svg",size:"30px"}}),M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1),M._l(M.stepsAdded,(function(D){return M.isMobile?M._e():[N("Icon",{attrs:{icon:"ruta-paso.svg",size:"30px"}}),N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1)]})),M.isMobile?M._e():N("Icon",{attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px"}}),M.isMobile?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],2):M._e(),M.explorerMode&&!M.isMobile?N("button",{staticClass:"btn-close",attrs:{"aria-label":M.$t("CLOSE_ROUTE_CONFIG")},on:{click:M.closeRoute}},[N("Tooltip",{attrs:{text:M.$t("CLOSE_ROUTE_CONFIG"),position:"right"}},[N("Icon",{attrs:{icon:"icon-close.svg",size:"30px",fill:"#90ce00"}})],1)],1):M._e(),N("div",{staticClass:"points"},[N("draggable",{attrs:{"ghost-class":"ghost",sort:!!M.explorerMode&&!M.addBlocked,handle:".graph"},on:{start:M.onDrag,end:M.onDrag},model:{value:M.steps,callback:function(N){M.steps=N},expression:"steps"}},[N("transition-group",[N("div",{key:"origin",staticClass:"input origin",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:M.$t("DRAG_TO_SORT"),position:"right"}},[N("Icon",{attrs:{icon:"ruta-origen.svg",size:"30px"}})],1),M.toggleDrag||M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1)],1),"origin"!==M.destinationName?N("div",{staticClass:"input-selected",class:{static:!M.blockedPois,short:M.stepsAdded.length},on:{click:function(N){return M.clearStep(0,"origin")}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),M.origin?["point"===M.origin.mode||void 0===M.origin.properties.attrs?N("span",[M._v("\n "+M._s(M._f("displayCoordinates")(M.origin.geometry.coordinates))+"\n ")]):N("span",[M._v("\n "+M._s(M.$t(M.origin.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building"},[M._v("\n "+M._s(M.origin.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+"\n "+M._s(M.origin.properties.levelName)+"\n ")])]:N("span",{directives:[{name:"t",rawName:"v-t",value:"SEARCH_ORIGIN",expression:"'SEARCH_ORIGIN'"}],staticClass:"placeholder"})],2)]):M._e(),N("Searcher",{ref:"origin",attrs:{placeholder:M.origin&&"point"!==M.origin.mode?M.$t("ORIGIN")+". "+M.$t(M.origin.properties.attrs.pat_nombre)+". "+M.origin.properties.location.name+". "+M.$t("FLOOR")+" "+M.origin.properties.levelName+". "+M.$t("SEARCH_ORIGIN"):M.$t("SEARCH_ORIGIN"),name:"origin",autofocus:""},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(0)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP"),position:"right"}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e(),M.blockedPois||M.addBlocked||!M.isMobile||M.stepsAdded.length?M._e():N("button",{staticClass:"btn-add-mobile",on:{click:M.addStep}},[N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}})],1)],1),M._l(M.stepsAdded,(function(D,t){return N("div",{key:"step"+t,staticClass:"input add",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:"Arrastra para reordenar",position:"top-left"}},[N("Icon",{attrs:{icon:"ruta-paso.svg",size:"30px"}})],1),M.toggleDrag||M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1),M.isMobile?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],1),M.destinationName!=="step"+t?N("div",{staticClass:"input-selected short",class:{static:!M.blockedPois},on:{click:function(N){return M.clearStep(t+1,"step"+t,!0)}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),D.new?N("span",{directives:[{name:"t",rawName:"v-t",value:"SELECT_WAYPOINT",expression:"'SELECT_WAYPOINT'"}],staticClass:"placeholder"}):["point"===D.mode?N("span",[M._v("\n "+M._s(M._f("displayCoordinates")(D.geometry.coordinates))+"\n ")]):N("span",[M._v("\n "+M._s(M.$t(D.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building"},[M._v("\n "+M._s(D.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(D.properties.levelName)+"\n ")])]],2)]):M._e(),N("Searcher",{ref:"step"+t,refInFor:!0,attrs:{placeholder:D&&"point"!==D.mode&&D.properties?M.$t("WAYPOINT")+". "+M.$t(D.properties.attrs.pat_nombre)+". "+D.properties.location.name+". "+M.$t("FLOOR")+" "+D.properties.levelName+". "+M.$t("SELECT_WAYPOINT"):M.$t("SELECT_WAYPOINT"),name:"step"+t,autofocus:""},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(t+1)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP")}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e()],1)})),N("div",{key:"destination",staticClass:"input destination",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:M.$t("DRAG_TO_SORT"),position:"top-left"}},[N("Icon",{attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px"}})],1),M.isMobile&&M.stepsAdded.length?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],1),"destination"!==M.destinationName?N("div",{staticClass:"input-selected",class:{static:!M.blockedPois,short:M.stepsAdded.length},on:{click:function(N){return M.clearStep(M.steps.length-1,"destination")}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),M.destination?["point"===M.destination.mode?N("span",{staticClass:"inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M._f("displayCoordinates")(M.destination.geometry.coordinates))+"\n ")]):N("span",{staticClass:"inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M.$t(M.destination.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M.destination.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+"\n "+M._s(M.destination.properties.levelName)+"\n ")])]:N("span",{directives:[{name:"t",rawName:"v-t",value:"SEARCH_DESTINATION",expression:"'SEARCH_DESTINATION'"}],staticClass:"placeholder"})],2)]):M._e(),N("Searcher",{ref:"destination",attrs:{placeholder:M.destination&&"point"!==M.destination.mode?M.$t("DESTINATION")+". "+M.$t(M.destination.properties.attrs.pat_nombre)+". "+M.destination.properties.location.name+". "+M.$t("FLOOR")+" "+M.destination.properties.levelName+". "+M.$t("SEARCH_DESTINATION"):M.$t("SEARCH_DESTINATION"),name:"destination"},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(M.steps.length-1)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP")}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e()],1)],2)],1)],1)]),!M.blockedPois&&!M.isMobile&&M.stepsAdded.length<3?N("button",{staticClass:"btn-add",class:{disabled:M.addBlocked},attrs:{"aria-disabled":M.addBlocked},on:{click:M.addStep}},[N("p",[M._v(M._s(M.$t("ADD_WAYPOINT")))]),M.addBlocked?N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}}):N("Tooltip",{attrs:{text:M.$t("ADD_WAYPOINT")}},[N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}})],1)],1):M._e(),"true"===M.pmr_enabled?N("div",{staticClass:"pmr-content"},[N("ToggleSwitch",{attrs:{label:M.$t("ROUTES_NO_BARRIERS"),value:M.pmrActive},on:{change:M.togglePMR}}),N("button",{on:{click:M.showPMRConfig}},[N("span",[M._v(M._s(M.$t("SHOW_PMR")))])])],1):M._e()]):M._e(),M.isRouteMode&&!M.addBlocked?N("div",{key:"time",staticClass:"time",class:{shadow:!M.blockedPois}},[M.error?[N("div",{staticClass:"no-route"},[N("Icon",{staticClass:"clear",attrs:{icon:"warning-t.svg",size:"30px",fill:"#ff7276"}}),N("div",{staticClass:"info"},[N("div",{staticClass:"top"},[N("p",{directives:[{name:"t",rawName:"v-t",value:"NO_ROUTE",expression:"'NO_ROUTE'"}],staticClass:"description"})]),N("button",{directives:[{name:"t",rawName:"v-t",value:"TRY_AGAIN",expression:"'TRY_AGAIN'"}],staticClass:"btn-route error",attrs:{"aria-haspopup":"true","aria-expanded":"isVisible","aria-controls":"aena-route-container"},on:{click:function(N){return M.clearStep(0,"origin")}}})])],1)]:[M.isMobile?M._e():N("Icon",{staticClass:"clear",attrs:{icon:M.iconCondition,size:"30px",fill:"#1a2732"}}),N("div",{staticClass:"info"},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("ROUTE_SUMMARY")))]),N("div",{staticClass:"top"},[N("h3",{attrs:{lang:M.$i18n.locale}},[N("b",[N("abbr",{attrs:{title:M.durationTime(M.duration,{abbr:!1})}},[M._v(M._s(M.durationTime(M.duration)))]),N("i",{attrs:{"aria-hidden":"true"}},[M._v("·")])]),M._v("\n "+M._s(M.$n(M.distance,"noDecimal"))+" "),N("abbr",{attrs:{title:M.$t("METERS")}},[M._v("m")])]),N("p",{staticClass:"description",attrs:{tabindex:"0"}},[N("span",{staticClass:"security-control"},[M._v(M._s(M.$t(M.routeCondition.msg)))]),N("span",[M._v(M._s(M.$t(M.routeCondition.msg2)))])])]),M.isMobile?M._e():N("button",{directives:[{name:"t",rawName:"v-t",value:"ROUTE",expression:"'ROUTE'"}],staticClass:"btn-route",attrs:{"aria-label":(M.blockedPois?M.$t("CLOSE"):M.$t("VISUALIZE"))+" "+M.$t("ROUTE_SUMMARY"),"aria-hidden":M.blockedPois},on:{click:M.toggleBlocked}})]),M.isMobile?N("div",{staticClass:"buttons"},[N("button",{staticClass:"indications",on:{click:M.toggleBlocked}},[N("p",[M._v(M._s(M.$t("INDICATIONS")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-rating-jj.svg",size:"30px",fill:"#1A2732"}})],1),M.isAndroid||M.isIOS?N("button",{staticClass:"start",on:{click:M.toggleBanner}},[N("p",[M._v(M._s(M.$t("START")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#1A2732"}})],1):M._e()]):M._e()],M.loading?N("div",{staticClass:"loading"},[N("svg",{staticClass:"spinner",attrs:{width:"26px",height:"26px",viewBox:"0 0 26 26"}},[N("circle",{staticClass:"path",attrs:{fill:"none","stroke-width":"2","stroke-linecap":"round",cx:"13",cy:"13",r:"12"}})])]):M._e()],2):M._e(),N("transition",{attrs:{appear:"",name:"banner"}},[(M.isAndroid||M.isIOS)&&M.appBanner?N("div",{staticClass:"app-banner"},[N("div",{staticClass:"banner-row"},[N("div",{staticClass:"image-wrapper"},[N("img",{attrs:{src:D("3f3a"),alt:""}})]),N("div",{staticClass:"content-wrapper"},[N("span",[N("h3",[M._v(M._s(M.$t("ASPA")))]),N("p",[M._v("Esta aplicación te ofrece la navegación en tiempo real con instrucciones visuales y por voz.")])])])]),N("div",{staticClass:"buttons"},[N("button",{staticClass:"not",on:{click:M.toggleBanner}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}}),N("p",[M._v(M._s(M.$t("NOT_NOW")))])],1),N("a",{staticClass:"open",attrs:{href:M.appLink}},[N("p",[M._v(M._s(M.$t("OPEN_APP")))])])])]):M._e()])],1),M.addBlocked||M.blockedPois?N("div",{key:"container",ref:"container",staticClass:"aena-points-container",class:[M.deviceWidthClass,{visible:M.isVisible,"detail-mobile":M.isCollapsed}]},[N("transition",{attrs:{name:"fade",mode:"out-in"},on:{"after-enter":M.onTransitionEnter}},[N(M.view,M._b({ref:"component",tag:"component",on:{onSelect:M.onSelect,onFilter:M.onFilter,onCategory:M.onCategory,onCloseRoute:M.toggleBlocked,onCollapsed:M.toggleCollapsed,goBack:M.resetView}},"component",M.currentProps,!1))],1)],1):M._e()])}),VT=[],JT=(D("55dd"),D("5df3"),D("4f7f"),D("3b2b"),function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-search-container",class:[M.deviceWidthClass,{hidden:M.hidden,focus:M.focus&&"aena-point-detail"!==M.view,active:M.active}]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("SEARCH_PLACEHOLDER")))]),N("Searcher",{attrs:{search:M.search,placeholder:M.$t("SEARCH_PLACEHOLDER")},on:{onActive:M.setActive,focus:M.onFocus,onEnterKey:M.onEnterKey,blur:M.onBlur}}),N("transition",{attrs:{name:"btn-back",appear:""}},[M.isMobile&&M.active&&M.hasRoute?N("button",{staticClass:"btn-back",on:{click:M.goBack}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px",fill:"#598000"}})],1):M._e()]),M.hasRoute?N("button",{staticClass:"btn-route",attrs:{type:"submit",tabindex:"0","aria-hidden":"true","aria-label":M.$t("CONFIG_ROUTE")},on:{click:M.goToRoute}},[N("Tooltip",{attrs:{text:M.$t("CONFIG_ROUTE"),position:"right"}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#525C65"}})],1)],1):M._e()],1)}),qT=[],KT=function(){var M=this,N=M._self._c;return N("div",{staticClass:"input-wrapper",class:[M.deviceWidthClass,{active:M.active}]},[N("input",{directives:[{name:"model",rawName:"v-model",value:M.inputValue,expression:"inputValue"}],ref:"input",attrs:{type:"text",name:"search",autocomplete:"off",placeholder:M.placeholder,"aria-live":"assertive","aria-label":M.placeholder,"aria-labelledby":"search-results",lang:M.$i18n.locale},domProps:{value:M.inputValue},on:{input:[function(N){N.target.composing||(M.inputValue=N.target.value)},M.onInputChange],keypress:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"enter",13,N.key,"Enter")?null:M.onEnterKey(N)},focus:M.onFocus,blur:M.onBlur}}),M.active?N("button",{staticClass:"clear",attrs:{type:"reset","aria-label":M.$t("CLEAR_INPUT")},on:{click:function(N){return M.onClear(!0)}}},[N("Icon",{attrs:{icon:"icon-clear-form.svg",size:"30px",fill:"#949d9e"}})],1):M._e(),M.active?N("Icon",{staticClass:"arrow",attrs:{icon:"icon-lupa-t.svg",size:"30px",fill:"#1a2732","aria-hidden":"true"}}):N("Icon",{staticClass:"arrow",attrs:{icon:"icon-lupa-t.svg",size:"30px",fill:"#A8ABAD","aria-hidden":"true"}})],1)},$T=[],Mg={name:"app-searcher",mixins:[fT["a"]],components:{},props:{placeholder:{type:String,required:!1},name:{type:String,required:!1},search:{type:String,default:"",required:!1},autofocus:{type:Boolean,default:!1}},data:function(){return{inputValue:this.search}},mounted:function(){this.autofocus&&!this.search&&this.onFocus()},computed:{active:function(){return!!this.inputValue.length}},methods:{onFocus:function(){this.$refs.input.focus(),this.$emit("focus",this.name)},onEnterKey:function(){this.$emit("onEnterKey");var M=document.querySelector("#pois-list");M.focus()},onBlur:function(M){M.target.blur(),this.$emit("blur",this.name)},onInputChange:function(){if(this.$emit("onActive",this.active),!this.inputValue.length)return this.onClear();this.inputValue.length>=2&&(this.$emit("onInputChange",{value:this.inputValue,name:this.name}),this.$parent.$emit("onInputChange",{value:this.inputValue,name:this.name}))},onClear:function(M){return this.inputValue="",M&&this.onFocus(),this.$emit("onInputChange",{name:this.name}),this.$emit("onActive",this.active),this.$parent.$emit("onInputChange",{name:this.name})}},watch:{search:function(M){this.inputValue=M}}},Ng=Mg,Dg=(D("ee05"),Object(kT["a"])(Ng,KT,$T,!1,null,"674262d0",null)),tg=Dg.exports;function ig(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function eg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?ig(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):ig(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var jg={name:"app-aenaSearch",mixins:[fT["a"]],components:{Searcher:tg},props:{hidden:{type:Boolean,default:!1},search:{type:String,required:!1},view:{type:String,required:!0}},data:function(){return{active:!1,focus:!1}},computed:eg(eg({},Object(n["c"])({airport:I["b"].GET_AIRPORT,isMobile:I["b"].GET_IS_MOBILE})),{},{hasRoute:function(){return this.airport.has_graph}}),methods:{setActive:function(M){this.active=M},onFocus:function(){this.active=!0,this.focus=!0,this.$emit("onFocus")},onEnterKey:function(){this.$emit("onEnterKey")},onBlur:function(){this.isMobile||(this.focus=!1),this.$emit("onBlur")},goToRoute:function(){this.focus=!1,this.$emit("onSelect",{component:"aena-route-pre"})},goBack:function(){this.focus=!1,this.$emit("onBack")}}},Tg=jg,gg=(D("5c61"),Object(kT["a"])(Tg,JT,qT,!1,null,"06365ee2",null)),sg=gg.exports,ug=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-highlighted-points-container",class:[M.deviceWidthClass,M.outdoorActived&&"route-mode"]},[M.outdoorDisabled?N("AenaHighlightedPointsList",{attrs:{highlighted:M.highlighted,"outdoor-disabled":M.outdoorDisabled},on:{onAllPoints:M.allPoints,onSelectPoint:M.selectPoint}}):N("Tabs",[N("Tab",{ref:"mainTab",staticClass:"airport",attrs:{name:M.$t("AIRPORT"),selected:"",id:"airport"}},[N("AenaHighlightedPointsList",{attrs:{highlighted:M.highlighted,"outdoor-disabled":M.outdoorDisabled},on:{onAllPoints:M.allPoints,onSelectPoint:M.selectPoint}})],1),N("Tab",{ref:"outdoorTab",staticClass:"outdoor",attrs:{name:M.$t("OUTDOOR"),disabled:M.outdoorDisabled,id:"outdoor"}},[N("Scrollbar",[N("div",{staticClass:"scroll-content"},[M.isMobile?N("div",{staticClass:"heading-mobile"},[N("h2",{directives:[{name:"t",rawName:"v-t",value:"OUTDOOR_TITLE",expression:"'OUTDOOR_TITLE'"}],attrs:{lang:M.$i18n.locale}})]):N("h2",{directives:[{name:"t",rawName:"v-t",value:"OUTDOOR_TITLE",expression:"'OUTDOOR_TITLE'"}],attrs:{lang:M.$i18n.locale}}),N("ul",{staticClass:"list",attrs:{"aria-label":M.$t("HIGHLIGHT_POINTS")}},M._l(M.outdoorOptions,(function(D){return N("li",{staticClass:"item-wrapper"},[N("a",{staticClass:"item",attrs:{href:D.href,target:"_blank",rel:"noopener noreferrer"},on:{click:M.goToOutdoor}},[N("Icon",{attrs:{icon:D.icon,size:"50px",fill:"#72a300"}}),N("div",{staticClass:"text"},[N("div",{staticClass:"title-wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.title))])]),N("p",{staticClass:"location"},[N("span",[M._v(M._s(D.subtitle))])])]),N("Icon",{attrs:{icon:"arrow-diagonal-t.svg",size:"30px"}})],1)])})),0)])])],1)],1)],1)},zg=[],Ag=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-highlighted-points-list-container"},[N("div",{staticClass:"wrapper",class:{"with-tabs":!M.outdoorDisabled}},[N("Scrollbar",[N("div",{ref:"scroller",staticClass:"scroll-content"},[M.isMobile?N("div",{staticClass:"heading-mobile"},[N("h1",{directives:[{name:"t",rawName:"v-t",value:"HIGHLIGHT_POINTS_SHORT",expression:"'HIGHLIGHT_POINTS_SHORT'"}],attrs:{lang:M.$i18n.locale}}),M.isMobile?N("button",{staticClass:"btn-other-points",on:{click:M.allPoints}},[N("p",{directives:[{name:"t",rawName:"v-t",value:"ALL_SHORT",expression:"'ALL_SHORT'"}]}),N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e()]):N("h2",{directives:[{name:"t",rawName:"v-t",value:"HIGHLIGHT_POINTS",expression:"'HIGHLIGHT_POINTS'"}],attrs:{lang:M.$i18n.locale,id:"highlighted-points-title"}}),N("ul",{staticClass:"grid",attrs:{"aria-label":M.$t("HIGHLIGHT_POINTS"),"aria-labelledby":"highlighted-points-title"}},M._l(M.highlighted,(function(D){return N("li",{staticClass:"item-wrapper"},[N("button",{staticClass:"item",attrs:{"aria-label":D.name},on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.icon,size:"50px"}}),N("p",[M._v(M._s(D.name))])],1)])})),0)])])],1),N("button",{staticClass:"btn-other-points",on:{click:M.allPoints}},[N("p",{directives:[{name:"t",rawName:"v-t",value:"ALL_POINTS",expression:"'ALL_POINTS'"}]}),N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1)])},Lg=[];function Ig(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function ng(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Ig(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Ig(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var rg={name:"AenaHighlightedPointsList",mixins:[],components:{},props:{highlighted:{type:Array,required:!0},outdoorDisabled:{type:Boolean,required:!0}},data:function(){return{}},mounted:function(){var M=this;this.$refs.scroller.addEventListener("mouseover",(function(){M.$refs.scroller.style.visibility="visible"})),this.$refs.scroller.addEventListener("mouseout",(function(){M.$refs.scroller.style.visibility="hidden"}))},computed:ng({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE})),methods:{selectPoint:function(M){this.$emit("onSelectPoint",M)},allPoints:function(){this.$emit("onAllPoints")}}},wg=rg,cg=(D("da4b"),Object(kT["a"])(wg,Ag,Lg,!1,null,"dddfb318",null)),yg=cg.exports;function ag(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function og(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?ag(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):ag(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Eg={name:"app-aenaHighlightedPoints",mixins:[fT["a"]],components:{AenaHighlightedPointsList:yg},props:{highlighted:{type:Array,required:!0},headerHeight:{type:Number,required:!0}},data:function(){return{}},computed:og(og({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE,airportID:I["b"].GET_AIRPORT_ID,isRoute:I["b"].IS_ROUTE_MODE,pois:I["b"].GET_POIS_LIST,transitionPoisList:I["b"].GET_TRANSITION_POIS_LIST,destinationC:I["b"].GET_DESTINATION,route:I["b"].GET_ROUTE,buildings:I["b"].GET_BUILDINGS})),{},{outdoorOptions:function(){var M=this,N="https://www.google.com/maps/dir",D="",t="";if(this.destinationC){var i=this.buildings.find((function(N){return N.id===M.destinationC.properties.building})).levels.find((function(N){return N.id===M.destinationC.properties.level})).oit_point,e=this.transitionPoisList.find((function(M){return M.properties.id===i}));t=e.geometry.coordinates.slice(0,2).reverse().toString()}return[{href:"".concat(N,"/").concat(D,"/").concat(t,"/data=!4m2!4m1!3e0"),icon:"car-t.svg",title:this.$t("OUTDOOR_OPTION_1"),subtitle:this.$t("OUTDOOR_SUB_OPTIONS")},{href:"".concat(N,"/").concat(D,"/").concat(t,"/data=!4m2!4m1!3e3"),icon:"Transporte_publico_T.svg",title:this.$t("OUTDOOR_OPTION_2"),subtitle:this.$t("OUTDOOR_SUB_OPTIONS")}]},outdoorActived:function(){return this.isRoute&&"origin"===this.route.destinationName},outdoorDisabled:function(){return!this.destinationC}}),methods:og(og({},Object(n["b"])([I["a"].LOAD_ROUTE])),{},{selectPoint:function(M){this.$emit("onSelect",{category:M,component:"aena-points-categories"});var N={eventCategory:"buscador",eventAction:"punto de interes",eventLabel:"".concat(Object(o["a"])(M.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N)},allPoints:function(){this.$emit("onSelect",{component:"aena-points-list"})},goToOutdoor:function(M){var N=this,D=this.buildings.find((function(M){return M.id===N.destinationC.properties.building})).levels.find((function(M){return M.id===N.destinationC.properties.level})).oit_point,t=this.transitionPoisList.find((function(M){return M.properties.id===D}));t?(t.mode="point",t.properties.icon="marcadores/pp_00-mk.svg",this[I["a"].LOAD_ROUTE]({origin:t})):console.warn("Destination Poi building (".concat(this.destinationC.properties.location.name,") has no transition poi"))}}),watch:{isRoute:{immediate:!0,handler:function(M){M||this.$refs.mainTab&&(this.$refs.outdoorTab.isActive=!1,this.$refs.mainTab.isActive=!0)}}}},Og=Eg,xg=(D("7972a"),Object(kT["a"])(Og,ug,zg,!1,null,"0a113b08",null)),Cg=xg.exports,Sg=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-points-list-container",class:[M.deviceWidthClass],attrs:{tabindex:"0","aria-labelledby":"title"}},[N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.$t("ALL_POINTS")))]),N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("POINTS_OF_INTEREST")},on:{click:M.goBack}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#525C65"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"POINTS_OF_INTEREST",expression:"'POINTS_OF_INTEREST'"}]})],1),N("div",{staticClass:"list-wrapper"},[N("Scrollbar",[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[N("ul",{attrs:{"aria-label":M.$t("ALL_POINTS")}},M._l(M.points,(function(D){return N("li",[N("button",{on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.icon,size:"30px",fill:"#1A2732"}}),N("p",[M._v(M._s(D.name))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#525C65"}})],1)])})),0)])])],1)])},lg=[];function kg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Qg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?kg(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):kg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var dg={name:"app-aenaPointsList",mixins:[fT["a"]],components:{},props:{points:{type:Array,required:!0},headerHeight:{type:Number,required:!0}},data:function(){return{}},computed:Qg({},Object(n["c"])({airportID:I["b"].GET_AIRPORT_ID})),mounted:function(){var M=this;this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},methods:{selectPoint:function(M){this.$emit("onSelect",{category:M,component:"aena-points-categories"});var N={eventCategory:"buscador",eventAction:"punto de interes",eventLabel:"".concat(Object(o["a"])(M.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N)},goBack:function(){this.$emit("onSelect",{component:"aena-highlighted-points"})}}},Yg=dg,pg=(D("fc86"),Object(kT["a"])(Yg,Sg,lg,!1,null,"5c989fe8",null)),Ug=pg.exports,hg=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-points-categories-container",class:[M.deviceWidthClass],attrs:{tabindex:"0","aria-labelledby":"title"}},[N("AenaTerminalsFilter",{attrs:{airport:M.airport,filters:M.filters},on:{onFilterChange:M.setFilter}}),N("div",{staticClass:"container-row"},[M.isMobile?M._e():N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("ALL_POINTS")},on:{click:function(N){return M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"24px",fill:"#1A2732"}})],1),M.category?N("span",{staticClass:"title"},[M._v(M._s(M.category.name))]):N("span",{directives:[{name:"t",rawName:"v-t",value:"ALL_POINTS",expression:"'ALL_POINTS'"}],staticClass:"title"}),M.isMobile?M._e():N("Tooltip",{attrs:{text:M.filtering?M.$t("FILTERING_SEE_ALL"):M.$t("FILTERING_SEE_ONLY"),position:"top","aria-hidden":"true"}},[N("button",{staticClass:"toggle-filtering",attrs:{"aria-hidden":"true"},on:{click:function(N){return M.toggleFiltering()}}},[M.filtering?N("Icon",{attrs:{icon:"see_only.svg",size:"24px"}}):N("Icon",{attrs:{icon:"see_all.svg",size:"24px"}})],1)])],1),N("div",{staticClass:"list-wrapper"},[N("Scrollbar",{ref:"scrollbar",on:{onScroll:M.onScroll}},[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[M.showCategories?N("AenaTerminalsCategories",{attrs:{category:M.category,categories:M.categories},on:{onCategoryChange:M.setCategory,goBack:M.goBack}}):M._e(),N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.search?M.$t("SEARCH_RESULTS"):M.$t("POIS_LIST")))]),M.pois.length?N("ul",{class:{pb:M.search},attrs:{tabindex:"0",id:"pois-list","aria-label":(M.search?M.$t("SEARCH_RESULTS"):M.$t("POIS_LIST"))+". "+M.points.length+" "+M.$t("RESULTS")+" "+(M.activeFilters.building?M.getBuildingName(M.activeFilters.building):M.$t("THROUGHOUT_THE_AIRPORT"))}},M._l(M.pois,(function(D){return N("li",[N("button",{attrs:{"aria-label":M.$t("CATEGORY")+" "+M.getCategoryName(D.properties.subcategories[0])+". "+D.properties.attrs.pat_nombre+". "+D.properties.location.name+"."+M.$t("FLOOR")+". "+D.properties.levelName+". "+(D.total>1?D.total+M.$t("SAME_FLOOR_RESULTS"):"")},on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.properties.icon,size:"30px"}}),N("div",{staticClass:"text"},[N("div",{staticClass:"title-wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.properties.attrs.pat_nombre))]),D.total>1?N("span",{staticClass:"total"},[M._v("("+M._s(D.total)+")")]):M._e()]),N("p",{staticClass:"location"},[N("b",[M._v(M._s(D.properties.location.name)+". ")]),N("span",[M._v(M._s(M.$t("FLOOR"))+" "+M._s(D.properties.levelName))])])])],1)])})),0):[N("div",{staticClass:"no-result"},[N("Icon",{attrs:{icon:"warning-t.svg",size:"30px",fill:"#ff7276"}}),N("div",{staticClass:"info"},[N("div",{directives:[{name:"t",rawName:"v-t",value:"NO_RESULT_POIS",expression:"'NO_RESULT_POIS'"}],staticClass:"title"})])],1)]],2)])],1),M.isMobile?M._e():N("div",{staticClass:"results",attrs:{id:"search-results","aria-live":"assertive"}},[N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.points.length)+" "+M._s(M.$t("RESULTS"))+" "+M._s(M.activeFilters.building?M.getBuildingName(M.activeFilters.building):M.$t("THROUGHOUT_THE_AIRPORT"))+". "),N("span",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("ENTER_TO_RESULTS")))])]),M.goToTopVisible?N("button",{on:{click:function(N){return M.goToTop()}}},[M._v(M._s(M.$t("GO_TO_TOP")))]):M._e()])],1)},fg=[],mg=(D("f400"),function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-filter-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("FILTER_RESULTS_BY"))+" "+M._s(M.$t("TERMINALS"))+" "+M._s(M.$t("AND"))+" "+M._s(M.$t("FLOORS")))]),N("div",{ref:"menu",staticClass:"filters-wrapper"},[N("div",{staticClass:"all-filters"},[N("p",{directives:[{name:"t",rawName:"v-t",value:"FILTER",expression:"'FILTER'"}],attrs:{"aria-hidden":"true"}}),N("Tooltip",{attrs:{text:M.$t("AIRPORT_RESULTS")}},[N("button",{staticClass:"filter all",class:{active:!M.activeFilter},attrs:{type:"button","aria-label":M.$t("FILTER_BY")+" "+M.$t("AIRPORT_RESULTS"),"aria-pressed":M.activeFilter?0:-1,tabindex:M.activeFilter?0:-1},on:{click:function(N){return M.setFilter()}}},[M._v("\n "+M._s(M.airport.iata_code)+"\n ")])])],1),N("div",{staticClass:"filter-options"},[N("Tooltip",{attrs:{text:M.$t("TERMINAL_RESULTS")+" "+M.$t("TERMINALS")+" "+M.$t("AND")+" "+M.$t("FLOORS"),"auto-hide":!0,"auto-hide-time":5e3}},[N("Scrollbar",{ref:"scrollbar",attrs:{"vertical-scroll":!1,"horizontal-scroll":!0}},[N("div",{ref:"scrollContent",staticClass:"scroll-content",attrs:{tabindex:"-1"}},[N("div",{attrs:{role:"menu","aria-label":M.$t("FILTER_RESULTS_BY")+" "+M.$t("TERMINALS")}},M._l(M.terminals,(function(D){return N("button",{key:D.id,ref:D.id,refInFor:!0,staticClass:"filter",class:{active:M.activeFilter===D.id},style:{backgroundColor:M.activeFilter===D.id?D.color:"#E9ECEF",color:M.activeFilter===D.id?D.font_color:"#1A2732",borderColor:M.activeFilter===D.id?D.color:"#E9ECEF"},attrs:{type:"button",role:"menuitem","aria-label":M.$t("FILTER_BY")+" "+D.name,"aria-pressed":M.activeFilter===D.id},on:{click:function(N){return N.stopPropagation(),M.setFilter(D)}}},[M._v("\n "+M._s(D.short_name)+"\n ")])})),0),N("div",{attrs:{role:"menu","aria-label":M.$t("FILTER_RESULTS_BY")+" "+M.$t("PARKINGS")}},M._l(M.others,(function(D){return N("button",{key:D.id,ref:D.id,refInFor:!0,staticClass:"filter square",class:{active:M.isAssociateActive(D.id)},style:{backgroundColor:M.isAssociateActive(D.id)?D.color:"#E9ECEF",color:M.isAssociateActive(D.id)?D.font_color:"#1A2732",borderColor:M.isAssociateActive(D.id)?D.color:"#E9ECEF"},attrs:{type:"button",role:"menuitem","aria-label":M.$t("FILTER_BY")+" "+D.name,"aria-pressed":M.isAssociateActive(D.id)},on:{click:function(N){return N.stopPropagation(),M.setFilter(D)}}},[M._v("\n "+M._s(D.short_name)+"\n "),D.color&&D.short_name.length<2?N("span",{staticClass:"triangle",style:{borderRightColor:D.color}}):M._e()])})),0)])])],1)],1)])])}),vg=[];function Bg(M){return Array.isArray(M)?M[0]:M}function bg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Pg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?bg(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):bg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Zg={name:"app-aenaTerminalsFilter",mixins:[fT["a"]],components:{},props:{airport:{type:Object,required:!0},filters:{type:Array,required:!0}},data:function(){return{activeFilter:""}},created:function(){this.activeFilter=this.activeFilterC.building},mounted:function(){var M=this;if(this.activeFilter){var N=Bg(this.$refs[this.activeFilter]);this.$refs.scrollbar.scrollTo(N.offsetLeft,0)}this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},computed:Pg(Pg({},Object(n["c"])({activeFilterC:C["b"].GET_ACTIVE_FILTERS})),{},{terminals:function(){return this.filters.filter((function(M){return"TERMINAL"===M.category}))},others:function(){return this.filters.filter((function(M){return"TERMINAL"!==M.category}))},associatedParking:function(){return this.activeFilterC.associatedParking||[]}}),methods:{setFilter:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.activeFilter=M.id,this.$emit("onFilterChange",M.id)},isAssociateActive:function(M){return this.activeFilter===M||(this.activeFilterC.associatedParking||[]).includes(M)}}},Gg=Zg,Wg=(D("d669"),Object(kT["a"])(Gg,mg,vg,!1,null,"5aaf0a8d",null)),Rg=Wg.exports,Xg=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-categories-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("FILTER_BY_CATEGORIES")))]),M.isMobile?N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("ALL_POINTS")},on:{click:function(N){return M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e(),M.isMobile?N("span",{staticClass:"vl"}):M._e(),N("ul",{staticClass:"options",attrs:{role:"menu","aria-label":M.$t("FILTER_BY")+" "+M.$t("CATEGORIES")}},[M.category&&!M.noDuplicate?N("li",{staticClass:"li-all",attrs:{role:"menuitem"}},[N("button",{staticClass:"category all",class:{active:!M.activeCategories.length},attrs:{role:"checkbox","aria-label":M.$t("FILTER_BY")+M.category.name+" "+M.$t("ALL"),"aria-checked":!M.activeCategories.length},on:{click:function(N){return M.onChange()}}},[N("b",[M._v(M._s(M.category.name))]),M._v(" ("+M._s(M.$t("ALL"))+")\n ")])]):M._e(),M._l(M.categoriesVisible,(function(D){return N("li",{key:D.id,attrs:{role:"menuitem"}},[N("button",{staticClass:"category",class:{active:M.isActive(D.id)},attrs:{role:"checkbox","aria-label":M.$t("FILTER_BY")+D.name,"aria-checked":M.isActive(D.id)},on:{click:function(N){return M.onChange(D)}}},[N("p",[M._v(M._s(D.name))])])])}))],2),M.categoriesHidden>0?N("button",{staticClass:"category more",attrs:{"aria-label":M.$t("MORE_FILTERS")},on:{click:function(N){return M.onToggle()}}},[N("p",[M._v(M._s(M.categoriesHidden)+" "+M._s(M.$t("MORE")))])]):M._e(),M.toggle&&!M.categoriesHidden?N("button",{staticClass:"category less",attrs:{"aria-label":M.$t("LESS_FILTERS")},on:{click:function(N){return M.onToggle()}}},[N("p",[M._v(M._s(M.$t("LESS_CATEGORIES")))])]):M._e()])},_g=[];function Hg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Fg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Hg(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Hg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Vg={name:"app-aenaTerminalsCategories",mixins:[fT["a"]],components:{},props:{category:{type:Object},categories:{type:Array,required:!0}},data:function(){return{activeCategories:[],toggle:!1}},created:function(){this.updateSelected(),this.onCategoryChange()},destroyed:function(){this.resetCategory()},computed:Fg(Fg({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE,activeFilterC:I["b"].GET_ACTIVE_FILTERS,airportID:I["b"].GET_AIRPORT_ID})),{},{categoriesVisible:function(){var M=this.categories;return this.isMobile||(M=this.toggle?M:M.slice(0,6)),M},categoriesHidden:function(){return this.categories.length-this.categoriesVisible.length},noDuplicate:function(){if(this.category&&1===this.categoriesVisible.length&&this.category.name===this.categoriesVisible[0].name)return this.setCategory(this.categoriesVisible[0]),!0}}),methods:{updateSelected:function(){var M=this;(this.activeFilterC.subcategories||[]).forEach((function(N){var D=M.categories.find((function(M){return M.id===N}));M.setCategory(D)}))},resetCategory:function(){this.activeCategories=[],this.categories.forEach((function(M){M.active=!1}))},setCategory:function(M){if(M){s["a"].set(M,"active",!M.active);var N=this.activeCategories.includes(M.id);N?this.activeCategories=this.activeCategories.filter((function(N){return N!==M.id})):this.activeCategories.push(M.id)}else this.resetCategory()},onCategoryChange:function(){var M=null;this.category&&(M=Fg({},this.category)),M&&M.subcategories&&(M.subcategories=M.subcategories.map((function(M){return M.id}))),this.$emit("onCategoryChange",{data:this.activeCategories.length?this.activeCategories:M,type:this.activeCategories.length?"subcategories":"category"})},onChange:function(M){this.setCategory(M),this.onCategoryChange();var N=M;M||(N=this.category);var D={eventCategory:"buscador",eventAction:"categoria",eventLabel:"".concat(Object(o["a"])(N.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D)},onToggle:function(){this.toggle=!this.toggle},isActive:function(M){return this.activeCategories.includes(M)},goBack:function(){this.$emit("goBack")}},watch:{"activeFilterC.subcategories":{handler:function(){this.resetCategory(),this.updateSelected()}}}},Jg=Vg,qg=(D("297f"),Object(kT["a"])(Jg,Xg,_g,!1,null,"7aa9179d",null)),Kg=qg.exports;function $g(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Ms(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?$g(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):$g(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Ns={name:"app-aenaPointsCategories",mixins:[m,P,fT["a"]],components:{AenaTerminalsFilter:Rg,AenaTerminalsCategories:Kg},props:{points:{type:Array,required:!0},airport:{type:Object,required:!0},filters:{type:Array,required:!0},activeFilters:{type:Object,required:!0},category:{type:Object},categories:{type:Array,required:!0},search:{type:Boolean,default:!1},headerHeight:{type:Number,required:!0}},data:function(){return{grouped:new Map,goToTopVisible:!1}},created:function(){this.setLocation(this.points)},mounted:function(){var M=this;this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},computed:Ms(Ms({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE,isRouteMode:I["b"].IS_ROUTE_MODE,airportID:I["b"].GET_AIRPORT_ID,filtering:I["b"].GET_FILTERING})),{},{showCategories:function(){return this.category||this.categories&&this.categories.length},pois:function(){var M=this,N=new Map;return this.points.forEach((function(D){var t=D.properties.attrs.pat_nombre+D.properties.location.name+D.properties.level,i=N.get(t);if(i){var e=M.grouped.get(i.properties.id);e.push(D),M.grouped.set(i.properties.id,e),i.total++}else M.grouped.set(D.properties.id,[D]),D.total=1,N.set(t,D)})),Object(y["a"])(N.values())}}),methods:Ms(Ms({},Object(n["d"])([I["c"].SAVE_FILTERING])),{},{setFilter:function(M){this.$emit("onFilter",M)},setCategory:function(M){this.$emit("onCategory",M),this.updateScrollbar()},selectPoint:function(M){if(this.isRouteMode){var N=this.moreClose(this.grouped.get(M.properties.id));this.$emit("onSelect",{component:"aena-route-poi",pointDetail:N})}else this.$emit("onSelect",{component:"aena-point-detail",pointDetail:M.properties,pointGrouped:this.grouped.get(M.properties.id)});var D="".concat(M.properties.location.name,". planta ").concat(M.properties.levelName,". ").concat(this.$t(M.properties.attrs.pat_nombre)),t={eventCategory:"buscador",eventAction:"buscar",eventLabel:"".concat(Object(o["a"])(D)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",t)},getBuildingName:function(M){return"".concat(this.$t("IN")," ").concat((this.filters.find((function(N){return N.id===M}))||{}).name)},getCategoryName:function(M){return"".concat((this.categories.find((function(N){return N.id===M}))||{}).name)},updateScrollbar:function(){var M=this;setTimeout((function(){M.$refs.scrollbar.update()}),360)},onScroll:function(M){M.y>=60?this.goToTopVisible=!0:this.goToTopVisible=!1},goToTop:function(){this.$refs.scrollbar.scrollTo(0,0)},goBack:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"aena-points-list";this.$emit("onSelect",{component:M,search:void 0})},toggleFiltering:function(){this[I["c"].SAVE_FILTERING](!this.filtering)}}),watch:{points:function(M){this.setLocation(M)}}},Ds=Ns,ts=(D("15f7"),Object(kT["a"])(Ds,hg,fg,!1,null,"2540be6c",null)),is=ts.exports,es=function(){var M=this,N=M._self._c;return N("div",{staticClass:"detail-wrapper",class:[M.deviceWidthClass]},[N("div",{staticClass:"spacer",class:{collapsed:M.isCollapsed}}),N("div",{ref:"section",staticClass:"aena-point-detail-container",class:{collapsed:M.isCollapsed},attrs:{tabindex:"0","aria-label":M.$t("POI_DETAIL")+" "+M.title}},[M.isCollapsed?N("button",{staticClass:"btn-close",on:{click:M.goBack}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#71777D"}})],1):M._e(),M.isCollapsed?N("button",{staticClass:"btn-more-info",on:{click:function(N){return M.expand()}}},[N("p",[M._v(M._s(M.$t("MORE_INFO")))])]):M._e(),N("header",{ref:"title",staticClass:"header"},[N("div",{staticClass:"title-wrapper"},[N("button",{staticClass:"back",attrs:{"aria-label":M.$t("GO_BACK")},on:{click:function(N){M.isMobile?M.expand():M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#ffffff"}})],1),N("div",{staticClass:"title"},[N("h2",{attrs:{"aria-label":M.title,lang:M.$i18n.locale}},[M._v(M._s(M.title))])])]),N("Icon",{attrs:{icon:M.icon,size:"50px"}})],1),N("div",{staticClass:"scroll-wrapper"},[M.poisGrouped&&M.poisGrouped.length>1&&!M.isCollapsed?N("Pagination",{ref:"pagination",attrs:{items:M.poisGrouped,"items-per-page":1,placeholder:M.placeholder},on:{change:M.onPaginate}}):M._e(),N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[M.debugMode&&M.poiID?N("p",{staticClass:"debug"},[M._v("POI ID: "+M._s(M.poiID))]):M._e(),M.showDescriptionBlock?N("div",{staticClass:"content"},[M.description||M.image?N("div",{staticClass:"top"},[M.image?N("img",{staticClass:"image",attrs:{src:M.image,alt:M.$t("STORE_IMAGE")}}):M._e(),N("span",{staticClass:"description"},[N("p",[M._v(M._s(M.description))])])]):M._e(),N("ul",{staticClass:"categories",attrs:{"aria-label":M.$t("CATEGORIES")}},[M._l(M.subcategories,(function(D){return M.isCollapsed?M._e():N("li",{key:D.id},[N("button",{staticClass:"category",on:{click:function(N){return M.filterBySubcategory(D.id)}}},[N("p",[M._v(M._s(D.name))])])])})),M.isCollapsed?N("div",[N("p",M._l(M.subcategories,(function(D,t){return N("span",{key:D.id},[M._v(M._s(D.name)+M._s(t<M.subcategories.length-1?" · ":""))])})),0)]):M._e()],2),M.mail||M.web||M.time||M.phone?N("div",{staticClass:"hr-big"}):M._e(),M.mail||M.web?N("ul",{staticClass:"info-list",attrs:{role:"list","aria-label":M.$t("BRAND_INFO")}},[M.web?N("li",{staticClass:"web extra"},[N("button",{attrs:{role:"link","aria-label":M.$t("VISIT_WEB"),"data-href":M.web,lang:M.$i18n.locale},on:{click:function(N){return M.visitWeb(M.web)}}},[N("p",[M._v(M._s(M.$t("VISIT_WEB")))]),N("Icon",{attrs:{icon:"icon-flecha-horizontal-t.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e(),M.mail?N("li",{staticClass:"mail extra"},[N("button",{attrs:{role:"link","aria-label":M.$t("SEND_EMAIL"),lang:M.$i18n.locale},on:{click:function(N){return M.sendEmail(M.mail)}}},[N("p",[M._v(M._s(M.$t("SEND_EMAIL")))]),N("Icon",{attrs:{icon:"icon-contacto-sobre-de-carta-t.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e()]):M._e(),(M.mail||M.web)&&(M.time||M.phone)?N("div",{staticClass:"hr"}):M._e(),M.time||M.phone?N("ul",{staticClass:"contact-list",attrs:{role:"list","aria-label":M.$t("STORE_INFO")}},[M.time?N("li",{staticClass:"time extra",attrs:{role:"listitem","aria-labelledby":"time-description"}},[N("Icon",{attrs:{icon:"icon-horarios-mini-jj.svg",size:"30px",fill:"#72A300"}}),N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_TIME")))]),N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.time))])],1):M._e(),M.phone?N("li",{staticClass:"phone extra",attrs:{role:"listitem","aria-labelledby":"phone-description"}},[N("Icon",{attrs:{icon:"icon-atencion-telefonica-t.svg",size:"30px",fill:"#72A300"}}),N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_PHONE")))]),N("p",[M._v(M._s(M.phone))])],1):M._e()]):M._e(),M.isCollapsed?N("div",{staticClass:"contact-list-collapsed"},[N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_TIME")))]),N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.time))])]):M._e(),M.lastWait?[N("div",{staticClass:"hr"}),N("div",{staticClass:"wait-time"},[N("Icon",{attrs:{icon:"icon-seguridad-t.svg",size:"30px",fill:"#72A300"}}),N("p",[M._v("Atención: el tiempo estimado del paso de este control es de "),N("span",{staticClass:"strong"},[M._v(M._s(M.durationTime(M.lastWait)))])])],1)]:M._e()],2):M._e()])])],1),N("ul",{staticClass:"location",attrs:{role:"list","aria-label":M.$t("STORE_LOCATION")}},[N("li",{attrs:{"aria-label":M.$t("S_LOCATION")}},[N("div",{staticClass:"terminal"},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px",fill:"#72A300"}}),N("p",{attrs:{lang:M.$i18n.locale}},[N("b",[M._v(M._s(M.location.name)+". ")]),N("b",[M._v(M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.floor))]),M._v(M._s(M.location.more?". "+M.location.more:""))])],1)]),M.isCollapsed?M._e():N("li",[M.hasRoute?N("button",{staticClass:"btn",on:{click:M.calculateRoute}},[N("p",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]}),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:M.hasRoute?"#1A2732":"#888888"}})],1):M._e(),M.hasRoute?M._e():N("button",{staticClass:"btn-disabled",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{staticClass:"disabledtext to-upper",attrs:{lang:M.$i18n.locale}},[N("b",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]})]),N("p",{staticClass:"disabledtext regular"},[M._v(M._s(M.$t("SERVICE_ROUTE_NOT_AVAILABLE")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1)]),M.isCollapsed?N("li",[M.hasRoute?N("button",{staticClass:"btn",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{attrs:{lang:M.$i18n.locale}},[N("b",[M._v(M._s(M.location.more?M.location.name+" · "+M.floor+" · ":M.placeholder))]),M._v(M._s(M.location.more?" · "+M.location.more:""))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1):M._e(),M.hasRoute?M._e():N("button",{staticClass:"btn-disabled",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{staticClass:"disabledtext to-upper",attrs:{lang:M.$i18n.locale}},[N("b",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]})]),N("p",{staticClass:"disabledtext regular"},[M._v(M._s(M.$t("SERVICE_ROUTE_NOT_AVAILABLE")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1)]):M._e()])])])},js=[],Ts={filters:{capitalize:function(M){return M?(M=M.toString(),M.charAt(0).toUpperCase()+M.slice(1)):""}}};function gs(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===M&&(M=""),M.replace(/(<([^>]+)>)/gi,"")}var ss={methods:{durationTime:function(M){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},D=N.abbr,t=void 0===D||D,i=Math.round(parseFloat(M)||1),e=i/60;e=e>=1?Math.round(e):0;var j=Math.floor(e/60);j&&(e-=60*j);var T="".concat(i," ").concat(t?"s":this.$t("SECONDS"));if(e&&(T="".concat(e," ").concat(t?"min":this.$t("MINUTES"))),j){var g=T;T="".concat(j," ").concat(t?"h":this.$t("HOURS")),e&&(T+=" ".concat(g))}return T}}};function us(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function zs(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?us(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):us(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var As={name:"app-aenaPointDetail",mixins:[m,Ts,fT["a"],ss,x],components:{},props:{headerHeight:{type:Number,required:!0}},data:function(){return{placeholder:"",header:0,pagination:0,isCollapsed:!1,debugMode:!1}},mounted:function(){var M=this;if(this.isMupiMode&&this.poiId===this.poi.properties.id)this.calculateRoute();else{var N=this.$t("FLOOR");this.placeholder="".concat(this.location.name,". ").concat(N.charAt(0).toUpperCase()+N.slice(1)," ").concat(this.floor),this.$refs.title.focus(),setTimeout((function(){M.header=M.$refs.title.getBoundingClientRect().height,M.pagination=M.$refs.pagination?M.$refs.pagination.$el.getBoundingClientRect().height+10:0,M.$nextTick((function(){return M.$refs.scrollbar.update()}))}),260)}},destroyed:function(){this[I["a"].CLEAR_POI]()},computed:zs(zs({},Object(n["c"])({isMupiMode:I["b"].IS_MUPI_MODE,poiId:I["b"].GET_POI_ID,poiDId:I["b"].GET_POID_ID,isMobile:I["b"].GET_IS_MOBILE,poi:I["b"].GET_POI,poisGrouped:I["b"].GET_POI_GROUPED,poisCatalog:I["b"].GET_POIS_CATALOG,airportID:I["b"].GET_AIRPORT_ID,airport:I["b"].GET_AIRPORT})),{},{attrs:function(){return this.poi.properties.attrs||{}},title:function(){return this.$t(this.attrs.pat_nombre)},image:function(){var M=this.attrs.pat_imagen_marca_0||this.attrs.pat_imagen_marca_1;return M&&!M.includes("https://www.aena.es")&&(M="https://www.aena.es"+M),M},icon:function(){return this.poi.properties.icon},description:function(){return gs(this.attrs.pat_descripcion_0||this.attrs.pat_descripcion_1||this.observations)},subcategories:function(){var M=this;return this.poi.properties.subcategories.reduce((function(N,D){return M.poisCatalog.some((function(M){var t=M.subcategories.find((function(M){return M.id===D}));return t&&N.push(t),!!t})),N}),[])},phone:function(){return gs(this.attrs.pat_telefono_0||this.attrs.pat_telefono_1)},mail:function(){return gs(this.attrs.pat_email)},web:function(){return gs(this.attrs.pat_enlace_0||this.attrs.pat_enlace_1)},moreInformation:function(){var M=this.attrs.pat_url;return M&&!M.includes("https://www.aena.es")&&(M="https://www.aena.es"+M),M},time:function(){return gs(this.attrs.pat_horario_0||this.attrs.pat_horario_1)},floor:function(){return this.poi.properties.levelName},location:function(){return this.setLocation([this.poi]),this.poi.properties.location},showDescriptionBlock:function(){return this.image||this.description||this.subcategories.length||this.phone||this.mail||this.web||this.time||this.observations},tagLabel:function(){return"".concat(this.poi.properties.location.name,". Planta ").concat(this.poi.properties.levelName,". ").concat(this.$t(this.poi.properties.attrs.pat_nombre))},lastWait:function(){return 2*this.poi.properties.lastWait},hasRoute:function(){return this.airport.has_graph},poiID:function(){return this.poi.properties.id},coordinates:function(){var M=Number(this.poi.geometry.coordinates[1].toFixed(5)),N=Number(this.poi.geometry.coordinates[0].toFixed(5));return[M,N]},observations:function(){return this.attrs.pat_observaciones}}),methods:zs(zs({},Object(n["b"])([I["a"].LOAD_POI,I["a"].CLEAR_POI])),{},{onPaginate:function(M){var N=M[0];N.properties.id!==this.poi.properties.id&&this[I["a"].LOAD_POI]({poi:N,pointGrouped:this.poisGrouped})},filterBySubcategory:function(M){this.$emit("onSelect",{component:"aena-points-categories",subcategories:[M]})},goBack:function(){this.isMobile?this.$emit("goBack"):this.$emit("onSelect",{component:"aena-points-categories"})},calculateRoute:function(){if(this.$emit("onSelect",{pointDetail:this.poi,component:"aena-route-pre"}),this.poiDId){var M=this.findPoi(this.poiDId);this.$emit("onSelect",{pointDetail:M,component:"aena-route-pre"})}},expand:function(){var M=this;this.isCollapsed=!this.isCollapsed,this.$emit("onCollapsed",this.isCollapsed),window.setTimeout((function(){M.header=M.$refs.title.getBoundingClientRect().height,M.pagination=M.$refs.pagination?M.$refs.pagination.$el.getBoundingClientRect().height+10:0,M.$refs.scrollbar.update()}),260)},visitWeb:function(M){var N={eventCategory:"buscador",eventAction:"visitar web",eventLabel:Object(o["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.open(M,"_blank")},sendEmail:function(M){var N={eventCategory:"buscador",eventAction:"enviar email",eventLabel:Object(o["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.location.href="mailto:".concat(M)},moreInfo:function(M){var N={eventCategory:"buscador",eventAction:"mas informacion",eventLabel:Object(o["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.open(M,"_blank")}}),watch:{isMobile:{immediate:!0,handler:function(M){this.isCollapsed=M}}}},Ls=As,Is=(D("917c"),Object(kT["a"])(Ls,es,js,!1,null,"0aae3214",null)),ns=Is.exports;function rs(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function ws(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?rs(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):rs(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var cs=function(){var M=this,N=M._self._c;return M.route.length?N("div",{ref:"route",staticClass:"aena-route-container",class:[M.deviceWidthClass],attrs:{id:"aena-route-container",tabindex:"0","aria-label":M.$t("ROUTE_SUMMARY")}},[N("div",{staticClass:"time"},[N("h2",{attrs:{lang:M.$i18n.locale}},[N("b",[N("abbr",{attrs:{title:M.durationTime(M.duration,{abbr:!1})}},[M._v(M._s(M.durationTime(M.duration)))]),N("i",{attrs:{"aria-hidden":"true"}},[M._v("·")])]),M._v("\n "+M._s(M.$n(M.distance,"noDecimal"))+" "),N("abbr",{attrs:{title:M.$t("METERS")}},[M._v("m")])]),M.explorerMode?N("button",{directives:[{name:"t",rawName:"v-t",value:"CLOSE",expression:"'CLOSE'"}],staticClass:"btn-close",attrs:{"aria-label":M.$t("CLOSE")+". "+M.$t("ROUTE_SUMMARY")},on:{click:M.close}}):M._e()]),N("Scrollbar",{ref:"scrollbar"},[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.$t("ROUTE_SUMMARY")))]),N("ul",{staticClass:"content",attrs:{role:"list",tabindex:"0"}},[N("li",{staticClass:"origin",attrs:{role:"listitem"}},[N("button",{attrs:{lang:M.$i18n.locale,"aria-label":M.$t("ORIGIN")+". "+("point"===M.origin.mode?M.$options.filters.displayCoordinates(M.origin.geometry.coordinates):M.$t(M.origin.properties.attrs.pat_nombre))+". "+M.origin.properties.location.name+". "+M.$t("FLOOR")+" "+M.origin.properties.levelName},on:{click:function(N){return M.viewInMap(M.origin.geometry.coordinates,M.origin.properties.building,M.origin.properties.level)}}},[N("Icon",{attrs:{icon:M.origin.properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.origin.mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.origin.geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.origin.properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.origin.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.origin.properties.levelName))])])],1)]),[M._l(M.route,(function(D,t){return[M._l(D.instructions,(function(i,e){return[i.hidden?M._e():N("li",{class:ws({"security-control":i.securityControl||i.oneWay},i.type),attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":M.getStepAriaLabel(i)},on:{click:function(N){M.selectGeometry(i,D.geometry.features,M.getOldStep({instructions:D.instructions,index:e,rootIndex:t}))},keydown:function(N){if(!N.type.indexOf("key")&&M._k(N.keyCode,"enter",13,N.key,"Enter"))return null;M.selectGeometry(i,D.geometry.features,M.getOldStep({instructions:D.instructions,index:e,rootIndex:t}))}}},[N("Icon",{attrs:{icon:"route-icons/"+i.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},[N("p",[M._v(M._s("tag"!==i.type?M.$t("IN_PREPOSITION"):"")+" "),N("b",[M._v(M._s(M.getDistance(i.distance))+" m")])]),N("span",[M._v(M._s(M.$t(i.action,ws({},M.getMsg({destination:i.direction,transport:i.transport}))))+"\n "),"GO_UP"===i.action||"GO_DOWN"===i.action?[M._v(". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(i.currentFloor))]:M._e()],2),"tag"!==i.type?N("p",{staticClass:"time"},[M._v(M._s(M.durationTime(i.time)))]):M._e()])],1)]),!i.hidden&&i.msg&&i.msg.label?N("li",{staticClass:"msg",class:{"security-control":i.securityControl||i.oneWay},attrs:{"aria-label":M.$t(i.msg.label,ws({},M.getMsg(i.msg.props))),role:"listitem"}},[N("span",[M._v(M._s(M.$t(i.msg.label,ws({},M.getMsg(i.msg.props)))))])]):M._e(),i.changeFloor||i.changeBuilding?N("li",{staticClass:"change-floor",class:i.type,attrs:{role:"listitem","aria-label":i.building.name+" "+M.$t("FLOOR")+" "+i.currentFloor}},[N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(i.building.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(i.currentFloor)+"\n ")])]):M._e()]})),M.newPoints[t]?N("li",{staticClass:"origin",attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":("point"===M.newPoints[t].mode?M.$options.filters.displayCoordinates(M.newPoints[t].geometry.coordinates):M.$t(M.newPoints[t].properties.attrs.pat_nombre))+". "+M.newPoints[t].properties.location.name+". "+M.$t("FLOOR")+" "+M.newPoints[t].properties.levelName},on:{click:function(N){return M.viewInMap(M.newPoints[t].geometry.coordinates,M.newPoints[t].properties.building,M.newPoints[t].properties.level)}}},[N("Icon",{attrs:{icon:M.newPoints[t].properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.newPoints[t].mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.newPoints[t].geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.newPoints[t].properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.newPoints[t].properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.newPoints[t].properties.levelName))])])],1)]):M._e()]}))],N("li",{staticClass:"destination",attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":M.$t("DESTINATION")+". "+("point"===M.destination.mode?M.$options.filters.displayCoordinates(M.destination.geometry.coordinates):M.$t(M.destination.properties.attrs.pat_nombre))+". "+M.destination.properties.location.name+". "+M.$t("FLOOR")+" "+M.destination.properties.levelName},on:{click:function(N){return M.viewInMap(M.destination.geometry.coordinates,M.destination.properties.building,M.destination.properties.level)}}},[N("Icon",{attrs:{icon:M.destination.properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.destination.mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.destination.geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.destination.properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.destination.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.destination.properties.levelName))])])],1)])],2)])])],1):M._e()},ys=[],as={filters:{displayCoordinates:function(M){if(!M||!M.length)return"";var N=M.slice(0,2);return[N[1],N[0]].map((function(M){return M.toFixed(5)})).join(", ")}}};function os(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Es(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?os(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):os(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Os={name:"app-aenaRoute",mixins:[P,m,Ts,ss,x,as,fT["a"]],components:{Searcher:tg,AenaPoints:Gs},props:{headerHeight:{type:Number,required:!0}},data:function(){return{}},mounted:function(){this.accessibilityEvents()},updated:function(){this.updateScrollbar(),this.accessibilityEvents()},computed:Es({},Object(n["c"])({airportID:I["b"].GET_AIRPORT_ID,floor:I["b"].GET_FLOOR,building:I["b"].GET_BUILDING,explorerMode:I["b"].GET_EXPLORERMODE})),methods:Es(Es({},Object(n["b"])([I["a"].SET_COORDINATES])),{},{accessibilityEvents:function(){var M=this;this.$refs.scrollContent&&(this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1))},close:function(){this.$emit("onCloseRoute")},viewInMap:function(M,N,D){this.saveFloor({buildingId:N,floorId:D,force:!0,airportID:this.airportID,tag:"explorador"}),this[I["a"].SET_COORDINATES]({coordinates:M,zoom:20})},selectGeometry:function(M,N,D){var t=D.oldStep,i=D.special,e=N[M.geometryindex],j=M.tag.type.toUpperCase(),T=e.geometry.coordinates.slice(0,2),g=e.properties.building;v["c"].includes(j)&&(g=(i?t:N[t.geometryindex]).properties.building);var s=e.geometry.coordinates[e.geometry.coordinates.length-1]/this.routeC.z;this.viewInMap(T,g,s)},getDistance:function(M){return this.$n(M>1?M:1,"noDecimal")},getMsg:function(M){var N=Es({},M);return N.direction&&(N.direction=this.$t(N.direction)),N.duration&&(N.duration=this.durationTime(N.duration)),N.destination&&(N.destination=this.$t(N.destination)),N.transport&&(N.transport=this.$t(N.transport)),N.oneWay&&(N.oneWay=this.$t("ONEWAY_OPENING")),N},getOldStep:function(M){var N=M.instructions,D=M.index,t=M.rootIndex;return D?{oldStep:N[D-1]}:t?{oldStep:this.newPoints[t-1],special:!0}:{oldStep:this.origin,special:!0}},getStepAriaLabel:function(M){var N="tag"===M.type,D="GO_UP"===M.action||"GO_DOWN"===M.action?this.$t("FLOOR")+M.currentFloor+". ":"",t="tag"!==M.type?this.durationTime(M.time,{abbr:!1})+". ":"";return"".concat(N?"":this.$t("IN_PREPOSITION")," ").concat(this.$n(M.distance,"noDecimal")," ").concat(this.$t("METERS"),". ").concat(this.$t(M.action,this.getMsg({destination:M.direction,transport:M.transport})),". ").concat(D," ").concat(t," ").concat(this.$t(M.msg.label,this.getMsg(M.msg.props)))},updateScrollbar:function(){var M=this;window.setTimeout((function(){M.$refs.scrollbar.update()}),100)}})},xs=Os,Cs=(D("fe47"),Object(kT["a"])(xs,cs,ys,!1,null,"4df4a570",null)),Ss=Cs.exports;function ls(M,N){var D=M.toLowerCase().split(" ");return D.every((function(M){var D=new RegExp(ks(Qs(M)),"gi");return ks(N).match(D)}))}function ks(M){return M.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Qs(M){return M.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ds=D("b76a"),Ys=D.n(ds);function ps(M){var N=M;return Array.isArray(N)&&(N=N[0]),N}var Us=D("efd7");D("1c4c");function hs(M,N,D){Array.from(N.children).forEach((function(N){N.classList.contains(M)||(fs(N,D),Array.from(N.querySelectorAll("*")).forEach((function(M){fs(M,D)})))}))}function fs(M,N){var D=M.getAttribute("tabindex"),t=M.getAttribute("aria-hidden");N?(M.setAttribute("data-tabindex",null!==D?D:"none"),M.setAttribute("data-aria-hidden",null!==t?t:"none"),M.setAttribute("aria-hidden",N),M.setAttribute("tabindex",-1),M.setAttribute("data-inert",M.classList.contains("inert")?"true":"false"),M.classList.add("inert")):("none"!==M.getAttribute("data-tabindex")&&null!==M.getAttribute("data-tabindex")?M.setAttribute("tabindex",M.getAttribute("data-tabindex")):M.removeAttribute("tabindex"),"none"!==M.getAttribute("data-aria-hidden")&&null!==M.getAttribute("data-aria-hidden")?M.setAttribute("aria-hidden",M.getAttribute("data-aria-hidden")):M.removeAttribute("aria-hidden"),"false"===M.getAttribute("data-inert")&&M.classList.remove("inert"),M.removeAttribute("data-aria-hidden"),M.removeAttribute("data-tabindex"),M.removeAttribute("data-inert"))}function ms(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function vs(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?ms(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):ms(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Bs=navigator.userAgent||navigator.vendor||window.opera,bs={name:"AenaPoints",mixins:[x,ss,Ts,P,as,fT["a"]],components:{draggable:Ys.a,AenaSearch:sg,Searcher:tg,"aena-highlighted-points":Cg,"aena-points-list":Ug,"aena-points-categories":is,"aena-point-detail":ns,"aena-route":Ss},props:{search:{type:Boolean,default:!0}},data:function(){return{view:"aena-highlighted-points",lastView:"",currentProps:{highlighted:[],points:[],airport:void 0,category:void 0,categories:[],filters:[],activeFilters:{categories:null,subcategories:[],building:void 0,search:void 0,associatedParking:[]},search:!1,headerHeight:0},blockedPois:!1,toggleDrag:!1,searcherFocus:!1,memoryValue:void 0,isVisible:!1,appBanner:!1,isCollapsed:!1,pmr_enabled:"true"}},created:function(){var M=this,N=Array.isArray(this.subcategories)&&this.subcategories.length>0,D=this.$root.$data.avaMode;if((this.category||N)&&D?this.view="aena-points-categories":this.view="aena-highlighted-points",this.category||this.subcategories){var t=!!this.category,i=Array.isArray(this.subcategories)&&this.subcategories.length>0;if(t&&i&&D){var e=this.poisCatalog.find((function(N){return N.id===M.category})),j=(e&&e.subcategories||[]).map((function(M){return M.id})),T=this.subcategories.filter((function(M){return j.includes(M)}));this.onSelect({component:"aena-points-categories",category:e,subcategories:T})}else if(t){var g=this.poisCatalog.find((function(N){return N.id===M.category}));this.onSelect({component:"aena-points-categories",category:g})}else i&&(this.currentProps.activeFilters.subcategories=this.subcategories,this[I["c"].SAVE_FILTERING](!0),this.saveActiveFilters(),this.onSelect({component:"aena-points-categories",subcategories:this.subcategories}))}else this.setHigtLight(this.poisCatalog);if(this.poi){var s=Array.isArray(this.subcategories)&&this.subcategories.length>0;s||this.setPoi(this.poi)}this.routeConfig&&(this[I["a"].LOAD_ROUTE]({routeMode:!0}),this.setDestination(),this.toggleBlocked())},updated:function(){this.$refs.header&&this.$refs.header.offsetHeight!==this.currentProps.headerHeight&&(this.currentProps.headerHeight=this.$refs.header.offsetHeight),this.$refs.time&&this.$refs.time.focus()},computed:vs(vs({},Object(n["c"])({isMupiMode:I["b"].IS_MUPI_MODE,isMobile:I["b"].GET_IS_MOBILE,explorerMode:I["b"].GET_EXPLORERMODE,airport:I["b"].GET_AIRPORT,airportID:I["b"].GET_AIRPORT_ID,category:I["b"].GET_CATEGORY,subcategories:I["b"].GET_SUBCATEGORIES,poisCatalog:I["b"].GET_POIS_CATALOG,activeFiltersC:I["b"].GET_ACTIVE_FILTERS,poisList:I["b"].GET_POIS_LIST,poi:I["b"].GET_POI,poiId:I["b"].GET_POI_ID,poiDId:I["b"].GET_POID_ID,buildings:I["b"].GET_BUILDINGS,isRouteMode:I["b"].IS_ROUTE_MODE,stepsAdded:I["b"].GET_NEW_POINT,hasNewPoint:I["b"].HAS_NEW_POINT,getView:I["b"].GET_VIEW,routeConfig:I["b"].GET_ROUTE_CONFIG,pmrProfile:I["b"].GET_PMR_PROFILE,pmrDefaultProfile:I["b"].GET_DEFAULT_PMR_PROFILE})),{},{currentCategory:function(){var M=this;return!!this.currentProps.category&&this.poisCatalog.find((function(N){return N.id===M.currentProps.category.id}))},addBlocked:function(){return!(this.origin&&this.destination)||this.hasNewPoint},pmrActive:function(){return null!==this.pmrProfile},isAndroid:function(){return/android/i.test(Bs)},isIOS:function(){return/iPad|iPhone|iPod/.test(Bs)&&!window.MSStream},appLink:function(){var M="";return this.isAndroid&&(M="https://play.google.com/store/apps/details?id=es.aena.mobile"),this.isIOS&&(M="https://apps.apple.com/es/app/aena/id686440022"),M}}),methods:vs(vs(vs({},Object(n["b"])([I["a"].SET_FEEDBACK,I["a"].LOAD_ACTIVE_FILTERS,I["a"].LOAD_VIEW,I["a"].REMOVE_STEP,I["a"].SET_PMR_PROFILE])),Object(n["d"])([I["c"].SAVE_PMR_CONFIG_VISIBILITY,I["c"].SAVE_FILTERING])),{},{resetActiveFilters:function(){this.currentProps.category=void 0,this.currentProps.activeFilters={subcategories:[],categories:null,building:this.currentProps.activeFilters.building,associatedParking:this.findAssociatedParkings(this.currentProps.activeFilters.building),search:void 0},this.saveActiveFilters()},getActiveFilters:function(){this.currentProps.activeFilters=this.activeFiltersC},saveActiveFilters:function(){this[I["a"].LOAD_ACTIVE_FILTERS](this.currentProps.activeFilters)},onInputFocus:function(){this.searcherFocus=!0,this.isVisible=!0},onInputBlur:function(){this.searcherFocus=!1},onInputChange:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},N=M.value,D=M.name;this.setDestination(D),this.currentProps.category=void 0,this.currentProps.activeFilters.subcategories=[],this.currentProps.activeFilters.categories=null,this.currentProps.activeFilters.search=N,this.currentProps.search=!!N,this.saveActiveFilters(),N?this.onSelect({component:"aena-points-categories",search:N}):(this.view="aena-points-list",this.onSelect({component:"aena-points-list"}))},onInputEnterKey:function(){this.$refs.component.$refs.section.focus()},goBack:function(){this.isVisible=!this.isVisible},onSelect:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j,T,g,s,u,z,L,n,r,w,c=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:D=N.category,t=N.component,i=N.pointDetail,e=N.search,j=N.pointGrouped,T=N.subcategories,M.t0=t,M.next="aena-highlighted-points"===M.t0?4:"aena-points-list"===M.t0?7:"aena-points-categories"===M.t0?10:"aena-point-detail"===M.t0?24:"aena-route-pre"===M.t0?27:"aena-route-poi"===M.t0?34:42;break;case 4:return this.resetActiveFilters(),this.setHigtLight(this.poisCatalog),M.abrupt("break",42);case 7:return this.resetActiveFilters(),this.setCategories(this.poisCatalog),M.abrupt("break",42);case 10:if(this.getActiveFilters(),g=D||this.currentProps.category,s=T&&T.length||this.currentProps.activeFilters.subcategories.length,u=this.currentProps.activeFilters.building,z=this.currentProps.activeFilters.search||e,g||s||u||z){M.next=18;break}return this.onSelect({component:this.lastView}),M.abrupt("return");case 18:return this.currentProps.activeFilters.categories=D||this.currentProps.activeFilters.categories,this.currentProps.activeFilters.subcategories=T||this.currentProps.activeFilters.subcategories,L=D||this.currentProps.category,!L&&this.currentProps.activeFilters.subcategories&&(L=this.poisCatalog.find((function(M){return M.subcategories.some((function(M){return M.id===c.currentProps.activeFilters.subcategories[0]}))}))),this.setPoisCategories({category:L,search:e||this.currentProps.activeFilters.search}),M.abrupt("break",42);case 24:return this.saveActiveFilters(),this.savePoi({poiId:i.id,pointGrouped:j,airportID:this.airportID,tag:"list"}),M.abrupt("break",42);case 27:return this.memoryValue=void 0,"aena-point-detail"===this.view&&this.onSelect({component:"aena-highlighted-points"}),n="destination",this.isMupiMode&&this.poiId===i.properties.id&&(n="origin"),this.isMupiMode&&this.poiDId===i.properties.id&&(n="destination"),this[I["a"].LOAD_ROUTE](Object(A["a"])(Object(A["a"])({i18n:this.$i18n},n,i),"routeMode",!0)),M.abrupt("return");case 34:return this.memoryValue=void 0,r=(this.destinationName||"").includes("step")?"step":this.destinationName,w=r||(this.origin?"destination":"origin"),this.onSelect({component:"aena-highlighted-points"}),M.next=40,this[I["a"].LOAD_ROUTE](Object(A["a"])(Object(A["a"])({i18n:this.$i18n},w,i),"routeMode",!0));case 40:return this.focus(),M.abrupt("return");case 42:t!==this.view&&(this.lastView=this.view),this.view=t,this.isMobile&&"aena-point-detail"===this.view&&(this.$refs.search.active=!1,this.$refs.search.focus=!1,this.isVisible=!0),!this.isMobile||"aena-point-detail"!==this.lastView&&"aena-route"!==this.lastView||"aena-highlighted-points"!==this.view||this.$nextTick((function(){c.$refs.search.active=!1,c.$refs.search.focus=!1,c.isVisible=!1}));case 46:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),onFilter:function(M){this.currentProps.activeFilters.building=M,this.currentProps.activeFilters.associatedParking=this.findAssociatedParkings(M),this.setPois(this.currentProps.activeFilters.search)},onCategory:function(M){var N=M.data,D=M.type,t=Array.isArray(this.subcategories)&&this.subcategories.length>0;if(!t){var i=N;this.currentProps.activeFilters.categories=null,"category"===D&&(this.currentProps.activeFilters.categories=N,i=[]),this.onSubcategory(i,this.currentProps.activeFilters.search)}},onSubcategory:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=arguments.length>1?arguments[1]:void 0;this.currentProps.activeFilters.categories=this.currentProps.activeFilters.categories,this.currentProps.activeFilters.subcategories=M,this.setPois(N)},setFilterCategories:function(M){var N=this,D=M||this.currentProps.activeFilters.search;if(D){var t=this.poisCatalog.map((function(M){return M.subcategories})).flat(),i=this.currentProps.points.reduce((function(M,N){var i=N.properties.subcategories,e=i.reduce((function(M,N){var i=t.find((function(M){return M.id===N})),e=new RegExp(ks(D),"gi");return i.name.match(e)&&M.push(N),M}),[]);return e.length?M.push.apply(M,Object(y["a"])(e)):M.push.apply(M,Object(y["a"])(i)),M}),[]);this.currentProps.categories=Object(y["a"])(new Set(i)).reduce((function(M,N){var D=t.find((function(M){return M.id===N}));return D&&M.push(D),M}),[])}else if(this.currentCategory)this.currentProps.categories=this.poisCatalog.find((function(M){return M.id===N.currentCategory.id})).subcategories;else{var e=this.poisCatalog.map((function(M){return M.subcategories})).flat();this.currentProps.categories=Object(y["a"])(new Set(e.map((function(M){return M.id})))).map((function(M){return e.find((function(N){return N.id===M}))}))}},setHigtLight:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.currentProps.highlighted=M.filter((function(M){return M.featured})).slice(0,6).sort((function(M,N){return M.featured_order-N.featured_order}))},setCategories:function(M){this.currentProps.points=M},setPois:function(M){var N=this;M&&M!==this.currentProps.activeFilters.search&&(this.currentProps.activeFilters.subcategories=[]);var D=M?this.poisCatalog.reduce((function(D,t){return D=D.concat(t.subcategories.filter((function(D){return N.findWord(D.name,M)}))),D}),[]).map((function(M){return M.id})):[];this.currentProps.points=this.poisList.features.filter((function(t){var i=N.findSubcategoriesInPois(t),e=N.findPoisInSubcategoriesActives(t),j=N.findPoisInBuildingActives(t),T=N.findPoisInSearchActives(t,M,D);return i&&e&&j&&T})).sort(this.orderPois)},orderPois:function(M,N){if(M.properties.building>N.properties.building)return 1;if(M.properties.building<N.properties.building)return-1;if(M.properties.building===N.properties.building){if(M.properties.level>N.properties.level)return 1;if(M.properties.level<N.properties.level)return-1;if(M.properties.level===N.properties.level){if(M.properties.attrs.pat_nombre>N.properties.attrs.pat_nombre)return 1;if(M.properties.attrs.pat_nombre<N.properties.attrs.pat_nombre)return-1}}return 0},findSubcategoriesInPois:function(M){if(this.currentProps.activeFilters.subcategories.length>0)return!0;if(!this.currentProps.category)return!0;var N=this.currentProps.category.subcategories||[],D=N.map((function(M){return M.id})),t=M.properties.subcategories||[];return t.some((function(M){return D.includes(M)}))},findPoisInSubcategoriesActives:function(M){var N=this;return!this.currentProps.activeFilters.subcategories.length||M.properties.subcategories.some((function(M){return N.currentProps.activeFilters.subcategories.includes(M)}))},findPoisInBuildingActives:function(M){return!this.currentProps.activeFilters.building||M.properties.building===this.currentProps.activeFilters.building||this.currentProps.activeFilters.associatedParking.some((function(N){return N===M.properties.building}))},findPoisInSearchActives:function(M,N,D){return!N||this.findWord(M.properties.attrs.pat_nombre,N)||this.findSubcategoryWord(M.properties.subcategories,D)},findWord:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",N=arguments.length>1?arguments[1]:void 0;return!!M&&ls(N,M)},findSubcategoryWord:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=arguments.length>1?arguments[1]:void 0;return!!M.length&&M.some((function(M){return N.includes(M)}))},findAssociatedParkings:function(M){var N=this.buildings.find((function(N){return N.id===M}));return N?N.poi_search_group_ids:[]},setPoisCategories:function(M){var N=M.category,D=M.search;this.currentProps.airport=this.airport,this.currentProps.category=N,this.currentProps.filters=this.buildings,this.onSubcategory(this.currentProps.activeFilters.subcategories,D),this.setFilterCategories(D)},setPoi:function(M){this.onSelect({component:"aena-point-detail",pointDetail:{id:M.properties.id}})},closeRoute:function(){var M=this;this[I["a"].CLEAR_ROUTE](),this[I["a"].SET_FEEDBACK](),this.blockedPois=!1,this.memoryValue=void 0;var N="aena-route"===this.view?"aena-points-categories":this.view;this.onSelect({component:N,category:this.currentProps.category}),this.$nextTick((function(){M.isMobile&&"aena-highlighted-points"===N&&(M.$refs.container.classList.remove("visible"),M.isVisible=!1)}))},resetView:function(){this.onSelect({component:"aena-highlighted-points"})},clearStep:function(M,N,D){if(this.explorerMode){this.currentSearch=void 0;var t=this.steps.length>2&&!N,i=this.steps[M],e=!i||!i.new||!D;if(this.memoryValue&&("origin"===this.destinationName&&M++,this[I["a"].LOAD_ROUTE](Object(A["a"])(Object(A["a"])({i18n:this.$i18n},this.destinationName,this.memoryValue),"reset",!0))),this.memoryValue=void 0,this.memoryValue=i&&!i.new?i:void 0,this.blockedPois=!1,this.resetView(),this.setDestination(N),this.focus(N),e){var j=Object(y["a"])(this.steps);if(this[I["a"].REMOVE_STEP]({index:M,hold:D}),t){var T=M===j.length-1?M-1:M+1;this[I["a"].LOAD_ROUTE](Object(A["a"])(Object(A["a"])({i18n:this.$i18n},this.destinationName,j[T]),"reset",!0)),this[I["a"].REMOVE_STEP]({index:T})}}var g=ps(this.$refs[N]);this.memoryValue&&"point"!==this.memoryValue.mode&&g&&(g.inputValue=this.$t(this.memoryValue.properties.attrs.pat_nombre),g.onInputChange())}},addStep:function(){this.blockedPois=!1,this.addBlocked||(this.setDestination("step"+this.stepsAdded.length),this.resetView(),this[I["a"].LOAD_ROUTE]({i18n:this.$i18n,reset:!0,routeMode:!0,step:{new:!0}}))},toggleBlocked:function(){if(!this.blockedPois&&(this.onSelect({component:"aena-route"}),this.origin&&this.destination)){var M=Object(Us["a"])(this.origin,this.$i18n),N=Object(Us["a"])(this.destination,this.$i18n),D={eventCategory:"como llegar",eventAction:"clic en ruta",eventLabel:"".concat(Object(o["a"])(M)," - ").concat(Object(o["a"])(N)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D)}this.blockedPois=!this.blockedPois},focus:function(M){var N=M||this.destinationName;if(N){var D=ps(this.$refs[N]);D.onFocus()}},onDrag:function(M){this.toggleDrag=!this.toggleDrag},onTransitionEnter:function(){this.searcherFocus||this.$refs.component.$refs.section.focus()},toggleBanner:function(){this.appBanner=!this.appBanner},toggleCollapsed:function(M){this.isCollapsed=M,this.$emit("toggle",M)},showPMRConfig:function(){this[I["c"].SAVE_PMR_CONFIG_VISIBILITY](!0),window.setTimeout((function(){var M=document.querySelector(".flughaveno-map"),N=document.querySelector(".pmr-popup");hs("pmr-wrapper",M,!0),N.focus()}),300)},togglePMR:function(){this[I["a"].SET_PMR_PROFILE](this.pmrProfile?null:this.pmrDefaultProfile)}}),watch:{poisCatalog:function(M){this.setHigtLight(M)},poi:function(M,N){(!N||M&&M.properties.id!==N.properties.id)&&this.setPoi(M)},origin:function(M,N){!M&&N&&this.$refs.origin.onFocus()},destination:function(M,N){!M&&N&&this.$refs.destination.onFocus()},getView:function(M){M&&"aena-point-detail"===this.view&&this.onSelect({component:M}),this[I["a"].LOAD_VIEW]()},poisList:function(M){this.setPois()},isRouteMode:function(M){M||this.onSelect({component:"aena-highlighted-points"})}}},Ps=bs,Zs=(D("cd50"),Object(kT["a"])(Ps,FT,VT,!1,null,"876da964",null)),Gs=Zs.exports,Ws=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminal-selector-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("EXPLORE_MAP_TERMINAL_PARKING")))]),N("DropDown",{ref:"dropdown",attrs:{"click-outside":!0,"no-trigger":"",label:M.building&&M.floorC?M.$t("DROPDOWN")+" "+M.$t("EXPLORE_TERMINAL_PARKING")+". "+M.$t("SELECTED")+" "+M.building.name+". "+M.$t("FLOOR")+" "+M.floorC.name:M.$t("DROPDOWN")+" "+M.$t("EXPLORE_TERMINAL_PARKING"),height:M.isMobile?"100%":"auto"},on:{toggle:M.onDropdownToggle},scopedSlots:M._u([{key:"trigger",fn:function(){return[N("div",{staticClass:"selector-trigger",class:{selected:M.floorC,parking:M.floorC&&"TERMINAL"!==M.selected.category}},[M.floorC?M._e():N("Icon",{staticClass:"icon",attrs:{icon:"icon-t-seleccion.svg",size:"30px"}}),M.floorC||M.isMobile?M._e():N("p",{directives:[{name:"t",rawName:"v-t",value:"EXPLORE_TERMINAL_PARKING",expression:"'EXPLORE_TERMINAL_PARKING'"}]}),M.floorC?N("span",{staticClass:"icon-terminal",style:{backgroundColor:M.building.color,color:M.building.font_color}},[N("p",[M._v(M._s(M.building.short_name))])]):M._e(),M.floorC?N("p",[M._v(M._s(M.isMobile?"":M.building.name+".")+" "),M.isMobile?N("span",[M._v("P")]):N("span",[M._v(M._s(M._f("capitalize")(M.$t("FLOOR"))))]),M._v(" "+M._s(M.floorC.name))]):M._e(),M.floorC&&M.isMobile?N("span",{staticClass:"line"}):M._e(),M.isMobile?M._e():N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:M.floorC?"#ffffff":"#1A2732"}})],1)]},proxy:!0},{key:"content",fn:function(){return[N("div",{staticClass:"content-wrapper"},[M.isMobile?N("div",{staticClass:"header"},[M.selected?N("p",[M._v(M._s(M.$t("SELECT_FLOOR_SHORT")))]):N("p",[M._v(M._s(M.$t("EXPLORE_MOBILE")))]),N("button",{staticClass:"btn-close",on:{click:M.closeDropdown}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e(),N("div",{staticClass:"primary"},[N("AenaTerminalsAccordion",{ref:"accordion",attrs:{data:M.accordionData,type:M.type,active:M.active},on:{onItemSelected:M.onItemSelected,onToggle:M.onToggle}})],1),N("div",{staticClass:"secondary"},[N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[M.selected?N("div",{ref:"floors",staticClass:"selection",attrs:{"aria-label":M.$t("FLOORS"),tabindex:"0",role:"listbox"}},[N("h3",{directives:[{name:"t",rawName:"v-t",value:"FLOORS",expression:"'FLOORS'"}],attrs:{"aria-hidden":"true"}}),N("transition-group",{style:{"--total":M.selected.levels.length},attrs:{appear:"",tag:"ul",name:"slide-in"}},M._l(M.selected.levels,(function(D,t){return N("li",{key:D.id,staticClass:"floor",style:{"--i":t}},["A"===D.arrdep||"B"===D.arrdep?N("div",{staticClass:"info left"},[N("Icon",{attrs:{icon:"categories/Llegadas_T.svg",fill:"#71777D"}})],1):M._e(),N("button",{class:{active:M.floor&&M.floor.id===D.id},attrs:{role:"option","aria-label":M.$t("FLOOR")+" "+D.name},on:{click:function(N){return M.onSelectFloor(D)}}},[M._v("\n "+M._s(D.name)+"\n ")]),"D"===D.arrdep||"B"===D.arrdep?N("div",{staticClass:"info right"},[N("Icon",{attrs:{icon:"categories/Salidas_T.svg",fill:"#71777D"}})],1):M._e()])})),0)],1):N("div",{staticClass:"no-selection"},[N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s("terminals"===M.type?M.$t("SELECT_TERMINAL"):M.$t("SELECT_PARKING"))+" "),N("b",{directives:[{name:"t",rawName:"v-t",value:"FLOOR",expression:"'FLOOR'"}]})])])])])],1),N("button",{staticClass:"btn-back",class:{"no-selected":!M.floor},attrs:{disabled:!M.floor,"aria-label":M.$t("CLEAR_SELECTION")},on:{click:M.clear}},[M.floor?N("Icon",{staticClass:"arrow",attrs:{icon:"icon-salir-edif.svg",size:"30px",fill:"#1a2732"}}):N("Icon",{staticClass:"arrow",attrs:{icon:"icon-salir-edif.svg",size:"30px",fill:"#E9ECEF"}}),M.isMobile?N("p",[M._v(M._s(M.$t("EXIT")))]):M._e()],1)])]},proxy:!0}])})],1)},Rs=[],Xs=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-accordion-container"},[N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[N("div",{staticClass:"terminals accordion-item",class:{active:"terminals"===M.activeItem},attrs:{role:"select"}},[N("button",{staticClass:"btn-accordion",class:{active:"terminals"===M.activeItem},attrs:{id:"btn-terminals",disabled:M.activeItem&&"terminals"===M.activeItem,tabindex:"0","aria-haspopup":"listbox","aria-expanded":M.activeItem&&"terminals"===M.activeItem,"aria-controls":"sect-terminals"},on:{click:function(N){return M.toggle("terminals")}}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-t-seleccion.svg",size:"30px"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"TERMINALS",expression:"'TERMINALS'"}]})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enter,"after-enter":M.afterEnter,leave:M.leave}},["terminals"===M.activeItem?N("ul",{staticClass:"accordion-content",attrs:{id:"sect-terminals",role:"listbox","aria-labelledby":"btn-terminals"}},M._l(M.terminals,(function(D,t){return N("li",{key:t},[N("button",{staticClass:"btn-accordion-content",class:{active:M.activeSubItem===D.name,disabled:!D.levels.length},attrs:{disabled:!D.levels.length,role:"option","aria-hidden":!D.levels.length},on:{click:function(N){return M.select(D)}}},[N("span",{staticClass:"icon",style:{backgroundColor:D.color,borderColor:D.color,color:D.font_color}},[M._v("\n "+M._s(D.short_name)+"\n ")]),N("p",[M._v(M._s(D.name))])])])})),0):M._e()]),N("span",{staticClass:"line"})],1),N("div",{staticClass:"parkings accordion-item",class:{active:"parkings"===M.activeItem}},[N("span",{staticClass:"line"}),N("button",{staticClass:"btn-accordion",class:{active:"parkings"===M.activeItem},attrs:{id:"btn-parkings",disabled:M.activeItem&&"parkings"===M.activeItem,tabindex:"0","aria-haspopup":"listbox","aria-expanded":M.activeItem&&"parkings"===M.activeItem},on:{click:function(N){return M.toggle("parkings")}}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-p-seleccion.svg",size:"30px"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"PARKINGS",expression:"'PARKINGS'"}]})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enter,"after-enter":M.afterEnter,leave:M.leave}},["parkings"===M.activeItem?N("ul",{staticClass:"accordion-content",attrs:{id:"sect-parkings",role:"listbox","aria-labelledby":"btn-parkings"}},M._l(M.parkings,(function(D,t){return N("li",{key:t},[N("button",{staticClass:"btn-accordion-content parking",class:{active:M.activeSubItem===D.name,disabled:!D.levels.length},attrs:{disabled:!D.levels.length,"aria-hidden":!D.levels.length,role:"option"},on:{click:function(N){return M.select(D)}}},[N("span",{staticClass:"icon",style:{backgroundColor:D.color,borderColor:D.color,color:D.font_color}},[M._v("\n "+M._s(D.short_name)+" \n ")]),N("p",[M._v(M._s(D.name))])])])})),0):M._e()])],1),N("br",{staticClass:"clear"})])])],1)},_s=[],Hs=D("9d63"),Fs=D.n(Hs),Vs={name:"app-aenaTerminalsAccordion",mixins:[],components:{VuePerfectScrollbar:Fs.a},props:{data:{type:[Object,Array],required:!0},type:{type:String,required:!0},active:{type:String,required:!1}},data:function(){return{activeItem:this.type,activeSubItem:this.active}},mounted:function(){this.updateScroll()},computed:{terminals:function(){return this.data.terminals.items},parkings:function(){return this.data.parkings.items}},methods:{toggle:function(M){this.activeItem=M,this.activeSubItem=void 0,this.$emit("onToggle",M),this.updateScroll()},select:function(M){this.activeSubItem=M.name,this.$emit("onItemSelected",M)},updateScroll:function(){var M=this;setTimeout((function(){M.$refs.scrollbar.update(),M.$refs.scrollbar.scrollTo(0,0)}),360)},enter:function(M){var N=this;M.style.height="auto";var D=getComputedStyle(M).height;M.style.height=0,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=D,N.updateScroll()}))},afterEnter:function(M){M.style.height="auto"},leave:function(M){var N=getComputedStyle(M).height;M.style.height=N,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=0}))}},watch:{type:function(M){this.activeItem=M},active:function(M){this.activeSubItem=M}}},Js=Vs,qs=(D("ff63"),Object(kT["a"])(Js,Xs,_s,!1,null,"731b6476",null)),Ks=qs.exports;function $s(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Mu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?$s(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):$s(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Nu={name:"app-aenaTerminalSelector",mixins:[Ts,fT["a"]],components:{AenaTerminalsAccordion:Ks},props:{},data:function(){return{selected:void 0,floor:void 0,type:"terminals",open:!1}},created:function(){this.initData()},computed:Mu(Mu({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE,buildings:I["b"].GET_BUILDINGS,building:I["b"].GET_BUILDING,floorC:I["b"].GET_FLOOR,airportID:I["b"].GET_AIRPORT_ID})),{},{accordionData:function(){var M={id:"1",title:"terminales",items:this.buildings.filter((function(M){return"TERMINAL"===M.category}))},N={id:"2",title:"parkings",items:this.buildings.filter((function(M){return"TERMINAL"!==M.category}))};return{terminals:M,parkings:N}},active:function(){return(this.selected||{}).name}}),methods:Mu(Mu({},Object(n["b"])([I["a"].LOAD_FLOOR,I["a"].LOAD_VIEW,I["a"].RESET_BBOX])),{},{initData:function(){this.type="terminals",this.selected=this.building,this.building&&(this.type="TERMINAL"===this.building.category?"terminals":"parkings"),this.floor=this.floorC,this.updateScrolls()},clear:function(){var M=this.selected;this.selected=null,this.floor=null,this[I["a"].LOAD_FLOOR]({floor:this.floor,building:this.selected}),this[I["a"].RESET_BBOX](M),this.closeDropdown()},closeDropdown:function(){this.$refs.accordion.activeSubItem=void 0,this.$refs.dropdown.open=!1},onItemSelected:function(M){var N=this;this.selected=M,this.floor=void 0;var D={eventCategory:"explorador",eventAction:"clic",eventLabel:Object(o["a"])(M.name),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D),this.$nextTick((function(){N.updateScrolls(),N.$refs.floors.focus()}))},onToggle:function(M){this.type=M,this.selected=void 0,this.floor=void 0},onDropdownToggle:function(){this.initData(),this.updateScrolls()},updateScrolls:function(){var M=this;setTimeout((function(){M.$refs.accordion.$refs.scrollbar.update(),M.$refs.scrollbar.update()}),360)},onSelectFloor:function(M){this.floor=M,this[I["a"].LOAD_FLOOR]({floor:this.floor,building:this.selected});var N="".concat(this.selected.name,". Planta ").concat(M.name),D={eventCategory:"explorador",eventAction:"clic",eventLabel:"".concat(Object(o["a"])(N)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D),this[I["a"].LOAD_VIEW]("aena-highlighted-points"),this.$refs.dropdown.$refs.button.focus(),this.isMobile&&(this.$refs.dropdown.open=!1)}}),watch:{building:function(M){var N=!this.selected;this.selected=M,M&&N&&this.initData()},floorC:function(M){var N=!this.floor;this.floor=M,M&&N&&this.initData()}}},Du=Nu,tu=(D("e8e9"),Object(kT["a"])(Du,Ws,Rs,!1,null,"0df5f4e4",null)),iu=tu.exports,eu=function(){var M=this,N=M._self._c;return N("Tooltip",{attrs:{text:M.$t("RESET_MAP"),position:"top-left"}},[N("button",{staticClass:"aena-home-button-container",class:[M.deviceWidthClass,{disabled:M.disabled}],attrs:{disabled:M.disabled,"aria-hidden":"true","aria-label":M.$t("RESET_MAP")+" · "+M.$t("AIRPORT_OVERVIEW")},on:{click:M.onReset}},[N("Icon",{staticClass:"icon",attrs:{icon:"reiniciar-home.svg",size:"30px",fill:"#1a2732"}})],1)])},ju=[];function Tu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function gu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Tu(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Tu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var su={name:"HomeButton",mixins:[fT["a"]],components:{},props:{},data:function(){return{}},computed:gu(gu({},Object(n["c"])({building:I["b"].GET_BUILDING,floor:I["b"].GET_FLOOR,poi:I["b"].GET_POI_ID})),{},{disabled:function(){return!this.building||!this.floor}}),methods:gu(gu({},Object(n["b"])([I["a"].LOAD_FLOOR,I["a"].LOAD_ROUTE,I["a"].CLEAR_ROUTE,I["a"].RESET_BBOX,I["a"].SET_HOME_POSITION])),{},{onReset:function(){this.poi?this[I["a"].SET_HOME_POSITION](this.poi):(this[I["a"].LOAD_FLOOR](),this[I["a"].LOAD_ROUTE]({reset:!0,routeMode:!1})),this[I["a"].CLEAR_ROUTE](),this[I["a"].RESET_BBOX]()}})},uu=su,zu=(D("a0b6"),Object(kT["a"])(uu,eu,ju,!1,null,"5ebebba4",null)),Au=zu.exports,Lu=function(){var M=this,N=M._self._c;return N("div",{staticClass:"legend-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("LEGEND")))]),N("div",{staticClass:"legend-button-wrapper"},[N("Tooltip",{attrs:{text:M.$t("SHOW_LEGEND")}},[N("button",{key:"button",staticClass:"button",attrs:{role:"button","aria-label":M.$t("LEGEND")},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"info-i-t.svg",size:"30px",fill:"#1a2732"}})],1)])],1),N("transition-group",{attrs:{appear:"",name:"appear"}},[M.opened?N("div",{key:"box",ref:"legend",staticClass:"legend-box",attrs:{tabindex:"0"}},[N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("LEGEND"))+"\n "),N("Tooltip",{attrs:{text:M.$t("HIDE_LEGEND"),position:"top-right"}},[N("button",{staticClass:"close",attrs:{"aria-label":M.$t("HIDE_LEGEND")},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-close.svg",size:"30px",fill:"#71777d"}})],1)])],1),N("div",{staticClass:"body"},[N("h3",{staticClass:"separator",attrs:{id:"s01"}},[M._v(M._s(M.$t("SIGNALING")))]),N("ul",{attrs:{"aria-labelledby":"s01"}},[N("li",{staticClass:"li-row"},[N("Icon",{staticClass:"icon",attrs:{icon:"legend-pp.svg",size:"12px"}}),N("p",[M._v(M._s(M.$t("MAIN_INFORMATION")))])],1),N("li",{staticClass:"li-row"},[N("Icon",{staticClass:"icon",attrs:{icon:"legend-pc.svg",size:"12px"}}),N("p",[M._v(M._s(M.$t("SECONDARY_INFORMATION")))])],1)]),N("h3",{staticClass:"separator",attrs:{id:"s02"}},[M._v(M._s(M.$t("ZONES")))]),N("ul",{attrs:{"aria-labelledby":"s02"}},[N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot free"}),N("p",[M._v(M._s(M.$t("FREE_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot pass-zone"}),N("p",[M._v(M._s(M.$t("PASS_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot markers"}),N("p",[M._v(M._s(M.$t("MARKERS_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot restricted"}),N("p",[M._v(M._s(M.$t("RESTRICTED_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot wc"}),N("p",[M._v(M._s(M.$t("WC_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot vip"}),N("p",[M._v(M._s(M.$t("VIP_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot safety"}),N("p",[M._v(M._s(M.$t("SAFETY_CONTROL_PASSPORT")))])])]),M.hasRoute?[N("h3",{staticClass:"separator",attrs:{id:"s03"}},[M._v(M._s(M.$t("ROUTES")))]),N("ul",{attrs:{"aria-labelledby":"s03"}},[N("li",{staticClass:"li-row"},[N("div",{staticClass:"route current"}),N("p",[M._v(M._s(M.$t("ROUTE_CURRENT_FLOOR")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"route other"}),N("p",[M._v(M._s(M.$t("ROUTE_OTHER_PLACE")))])])])]:M._e()],2)]):M._e()])],1)},Iu=[];function nu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function ru(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?nu(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):nu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var wu={name:"AenaLegend",mixins:[fT["a"]],components:{},props:{},data:function(){return{opened:!1}},computed:ru(ru({},Object(n["c"])({airport:I["b"].GET_AIRPORT})),{},{hasRoute:function(){return this.airport.has_graph}}),methods:{toggle:function(){var M=this;this.opened=!this.opened,!0===this.opened&&window.setTimeout((function(){M.$refs.legend.focus()}),360)}}},cu=wu,yu=(D("bbf7"),Object(kT["a"])(cu,Lu,Iu,!1,null,"342d7f2b",null)),au=yu.exports,ou=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-pmr-container",class:[M.deviceWidthClass],attrs:{tabindex:"-1"}},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("SHOW_PMR")))]),N("div",{staticClass:"legend-button-wrapper"},[N("Tooltip",{attrs:{text:M.$t("SHOW_PMR")}},[N("button",{key:"button",staticClass:"toggle-pmr btn-quaternary",attrs:{role:"button","aria-label":M.$t("PMR"),tabindex:"0"},on:{click:M.toggle}},[M.pmrActive?N("Icon",{staticClass:"icon",attrs:{icon:"pmr-active.svg",size:"30px",fill:"#1a2732"}}):N("Icon",{staticClass:"icon",attrs:{icon:"pmr-config.svg",size:"30px",fill:"#1a2732"}})],1)])],1),N("transition-group",{attrs:{appear:"",name:"appear"}},[M.pmrConfigVisible?N("div",{key:"pmr-box",staticClass:"pmr-box",attrs:{role:"dialog"},on:{keyup:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:M.toggle("close")}}},[N("div",{ref:"popup",staticClass:"pmr-popup",attrs:{role:"document",tabindex:"0","aria-label":M.$t("PMR_CONFIGURATION"),lang:M.language}},[N("div",{staticClass:"header"},[N("Icon",{staticClass:"icon",attrs:{icon:"pmr-t.svg",size:"50px"}}),N("h1",{attrs:{id:"dialog-title"}},[M._v(M._s(M.$t("PMR_CONFIGURATION")))])],1),N("div",{staticClass:"content"},[N("div",{staticClass:"content-title-wrapper"},[N("h2",{staticClass:"content-title"},[M._v(M._s(M.$t("ROUTES_NO_BARRIERS")))]),N("ToggleSwitch",{attrs:{value:M.pmrActive,role:"checkbox","aria-label":M.$t("ROUTES_NO_BARRIERS"),"aria-checked":M.pmrActive},on:{change:M.togglePMR}})],1),N("p",{staticClass:"nbt",attrs:{id:"dialog-description"}},[M._v(M._s(M.$t("ROUTES_NO_BARRIERS_TEXT")))]),N("transition-group",{attrs:{height:"",name:"height"}},[M.pmrActive?N("div",{key:"pmr-options",staticClass:"pmr-options-content"},[N("h3",[M._v(M._s(M.$t("FLOOR_CONNECTORS")))]),N("p",{staticClass:"fct",attrs:{id:"dialogDesc"}},[M._v(M._s(M.$t("FLOOR_CONNECTORS_TEXT")))]),N("Checkbox",{attrs:{label:M.$t("ELEVATORS"),value:!0,disabled:!0}}),N("Checkbox",{attrs:{label:M.$t("ESCALATOR"),value:M.escalatorActive},on:{change:function(N){return M.setPMROption("escalatorActive",N.state)}}}),N("Checkbox",{attrs:{label:M.$t("MECHANICAL_RAMPS"),value:M.rampsActive},on:{change:function(N){return M.setPMROption("rampsActive",N.state)}}})],1):M._e()])],1),N("Tooltip",{staticClass:"close",attrs:{text:M.$t("HIDE_PMR"),position:"top-right",tabindex:"-1"}},[N("button",{staticClass:"close",attrs:{"aria-label":M.$t("HIDE_PMR"),tabindex:"100"},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-close.svg",size:"30px",fill:"#71777d"}})],1)])],1)]):M._e()])],1)},Eu=[];function Ou(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function xu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Ou(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Ou(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Cu={name:"AenaPmr",mixins:[fT["a"]],components:{},props:{},data:function(){return{escalatorActive:!0,rampsActive:!1,language:this.$i18n.locale}},computed:xu(xu({},Object(n["c"])({pmrConfigVisible:I["b"].PMR_CONFIG_VISIBLE,pmrProfile:I["b"].GET_PMR_PROFILE,pmrDefaultProfile:I["b"].GET_DEFAULT_PMR_PROFILE})),{},{pmrActive:function(){return this.pmrProfile===this.pmrDefaultProfile&&this.setDefaultPMROptions(),null!==this.pmrProfile}}),methods:xu(xu(xu({},Object(n["b"])([I["a"].SET_PMR_PROFILE])),Object(n["d"])([I["c"].SAVE_PMR_CONFIG_VISIBILITY])),{},{getProfile:function(){return this.escalatorActive&&this.rampsActive?"pmr_4":this.escalatorActive?"pmr_3":this.rampsActive?"pmr_2":"pmr_1"},setPMROption:function(M,N){this[M]=N,this[I["a"].SET_PMR_PROFILE](this.getProfile())},toggle:function(M){var N=this;this[I["c"].SAVE_PMR_CONFIG_VISIBILITY](!this.pmrConfigVisible);var D=document.querySelector(".flughaveno-map");this.pmrConfigVisible&&"close"!==M?window.setTimeout((function(){var M=N.$refs.popup;hs("pmr-wrapper",D,!0),M.focus()}),300):(hs("pmr-wrapper",D,!1),document.removeEventListener("keydown",this.toggle))},togglePMR:function(){this.setDefaultPMROptions(),this[I["a"].SET_PMR_PROFILE](this.pmrProfile?null:this.getProfile())},setDefaultPMROptions:function(){this.escalatorActive=!1,this.rampsActive=!1}})},Su=Cu,lu=(D("31a0"),Object(kT["a"])(Su,ou,Eu,!1,null,"ac0eb094",null)),ku=lu.exports,Qu=function(){var M=this,N=M._self._c;return N("transition-group",{attrs:{appear:"",name:"appear"}},[N("div",{key:"feedback",ref:"feedback",staticClass:"feedback-container",attrs:{role:"document",tabindex:"0","aria-label":M.$t("FEEDBACK_TITLE"),lang:M.language},on:{keyup:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:M.onCloseNoFeedback.apply(null,arguments)}}},[N("div",{staticClass:"feedback-popup"},[N("div",{staticClass:"close"},[N("button",{staticClass:"btn icon",attrs:{role:"button","aria-label":M.$t("CLOSE")},on:{click:M.onCloseNoFeedback}},[N("Icon",{attrs:{icon:"cerrar-ico-jj.svg",size:"30px"}})],1)]),M.sent?[N("div",{staticClass:"header"},[N("Icon",{attrs:{icon:"tick-ok-2-jj.svg",size:"64px"}})],1),N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("FEEDBACK_TITLE_SENT"))+"\n ")]),N("div",{staticClass:"description",domProps:{innerHTML:M._s(M.$t("FEEDBACK_DESCRIPTION_SENT"))}}),N("div",{staticClass:"actions"},[N("button",{staticClass:"btn lg tertiary text",on:{click:M.onClose}},[M._v(M._s(M.$t("FEEDBACK_ACTION_SENT")))])])]:[N("div",{staticClass:"header"},[N("Icon",{attrs:{icon:"group.svg",size:["192px","12px"]}}),N("Icon",{staticClass:"type",attrs:{icon:(M.pmr?"guaido_pmr":"guiado-pasajero")+".svg",size:"64px"}})],1),N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("FEEDBACK_TITLE"))+"\n ")]),N("div",{staticClass:"feedback"},[N("div",{staticClass:"top"},[M._l(M.feedbacks,(function(D){return[N("Tooltip",{attrs:{text:D.text,position:"top"}},[N("button",{staticClass:"star",attrs:{"aria-label":D.text},on:{click:function(N){return M.onFeedback(D.value)},mouseover:function(N){M.hovering=D.value},mouseout:function(N){M.hovering=0}}},[N("Icon",{attrs:{icon:(M.value>=D.value?"estrella-especial-full":"estrella-especial-jj")+".svg",size:"30px",fill:M.hovering>=D.value?"#598000":"#71777D"}})],1)])]}))],2),N("div",{staticClass:"bottom"},[M.value?N("span",{staticClass:"result"},[M._v(M._s(M.text))]):M._e()])]),N("div",{staticClass:"description",domProps:{innerHTML:M._s(M.$t("FEEDBACK_DESCRIPTION"))}}),N("div",{staticClass:"actions"},[N("button",{staticClass:"btn lg primary text",attrs:{disabled:!M.value},on:{click:M.onSubmit}},[M._v(M._s(M.$t("FEEDBACK_ACTION")))])])]],2)])])},du=[];function Yu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function pu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Yu(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Yu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Uu={name:"app-feedback",mixins:[],components:{},props:{},data:function(){return{value:0,sent:!1,hovering:0,language:this.$i18n.locale}},computed:pu(pu({},Object(n["c"])({feedback:I["b"].GET_FEEDBACK,airportID:I["b"].GET_AIRPORT_ID,pmr:I["b"].GET_PMR_PROFILE})),{},{feedbacks:function(){return[{value:1,text:this.$t("FEEDBACK_VERY_LITTLE")},{value:2,text:this.$t("FEEDBACK_LITTLE")},{value:3,text:this.$t("FEEDBACK_NORMAL")},{value:4,text:this.$t("FEEDBACK_QUITE")},{value:5,text:this.$t("FEEDBACK_VERY_QUITE")}]},text:function(){var M=this;return this.value&&this.feedbacks.find((function(N){return N.value===M.value})).text}}),mounted:function(){var M=this,N=document.querySelector(".flughaveno-map");window.setTimeout((function(){var D=M.$refs.feedback;hs("feedback-wrapper",N,!0),D.focus()}),300)},beforeDestroy:function(){this.removeFeedbackFocus(),document.removeEventListener("keydown",this.onCloseNoFeedback)},methods:pu(pu(pu({},Object(n["b"])([I["a"].SET_FEEDBACK])),Object(n["d"])([I["c"].SAVE_FEEDBACK])),{},{onClose:function(){this.removeFeedbackFocus(),this[I["c"].SAVE_FEEDBACK]()},onCloseNoFeedback:function(){this.sent||this.sentFeedback("encuesta descartada","no enviada"),this.onClose()},onFeedback:function(M){this.value=M},onSubmit:function(){this[I["a"].SET_FEEDBACK]({answered:!0}),this.sent=!0,this.sentFeedback(this.value)},sentFeedback:function(M){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"enviada",D={eventCategory:"encuesta",eventAction:N,eventLabel:M,language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D)},removeFeedbackFocus:function(){var M=document.querySelector(".flughaveno-map");hs("feedback-wrapper",M,!1)}})},hu=Uu,fu=(D("b5d5"),Object(kT["a"])(hu,Qu,du,!1,null,"6e183c38",null)),mu=fu.exports,vu=D("704c");function Bu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function bu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Bu(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Bu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Pu=12e4,Zu={name:"app-appShell",mixins:[x,fT["a"]],components:{MapComponent:ZT,AenaPoints:Gs,AenaTerminalSelector:iu,AenaHomeButton:Au,AenaLegend:au,AenaPmr:ku,Feedback:mu,Layers:HT},props:{},data:function(){return{loaded:!1,id:this.$root.$data.id,airport:this.$root.$data.airport,building:this.$root.$data.building,floor:this.$root.$data.floor,explorerMode:this.$root.$data.explorerMode,category:this.$root.$data.category,poi:(this.$root.$data.poi||"").toString(),poiD:(this.$root.$data.poiD||"").toString(),route:this.$root.$data.route,language:this.$root.$data.language,isPortrait:null,pmr_enabled:"true",interval:void 0,intervalPoiWait:void 0,container:null,printMode:this.$root.$data.printMode,layers:!1,lat:this.$root.$data.lat,lon:this.$root.$data.lon,mupiMode:this.$root.$data.mupiMode,avaMode:this.$root.$data.avaMode,subcategories:this.$root.$data.subcategories,zonaubicacion:this.$root.$data.zonaubicacion,filtering:this.$root.$data.filtering,intervalMupiResetPosition:void 0,pointsDetailCollapsed:!0}},created:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(){var N=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:document.documentElement.setAttribute("lang",this.language),this.initFeedback(),this.saveConfig(),this[I["a"].LOAD_FULL_AIRPORT]().then((function(){N.building&&N.saveFloor({buildingId:N.building,floorId:N.floor,airportID:N.airport,tag:"explorador"}),N.airportC.access_controls_has_wait_info&&(N[I["a"].LOAD_ACCESS_CONTROL_TIME]({code:N.airport,pois:N.pois}),N.intervalPoiWait=setInterval((function(){N[I["a"].LOAD_ACCESS_CONTROL_TIME]({code:N.airport,pois:N.pois})}),3e5)),N.loaded=!0})),window.addEventListener("orientationchange",this.handleOrientation,!0),this.handleOrientation(),window.addEventListener("resize",this.checkIsMobile,!0),document.addEventListener("keydown",this.addAccesibilityClass,!0),document.addEventListener("mousedown",this.removeAccesibilityClass,!0),this.mupiMode&&(this[I["a"].CLEAR_ROUTE](),this.initMupiIntervalEvents());case 10:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),mounted:function(){this.container=document.querySelector(".flughaveno-map"),this.checkIsMobile()},beforeDestroy:function(){clearInterval(this.interval),clearInterval(this.intervalPoiWait),this.mupiMode&&clearInterval(this.intervalMupiResetPosition),window.removeEventListener("resize",this.checkIsMobile,!1),this.removeMupiInternalEvents()},computed:bu(bu({},Object(n["c"])({airportC:I["b"].GET_AIRPORT,pois:I["b"].GET_POIS_LIST,selectedPoi:I["b"].GET_POI,buildings:I["b"].GET_BUILDINGS,buildingC:I["b"].GET_BUILDING,floorC:I["b"].GET_FLOOR,routeConfig:I["b"].GET_ROUTE_CONFIG,isRouteMode:I["b"].IS_ROUTE_MODE,feedback:I["b"].GET_FEEDBACK,layerTree:I["b"].GET_LAYER_TREE,filteringC:I["b"].GET_FILTERING})),{},{appId:function(){return this.id.split("#")[1]},hasRoute:function(){return this.airportC.has_graph}}),methods:bu(bu(bu({},Object(n["b"])([I["a"].LOAD_FULL_AIRPORT,I["a"].SET_FEEDBACK,I["a"].LOAD_ACCESS_CONTROL_TIME,I["a"].SET_HOME_POSITION,I["a"].CLEAR_ROUTE,I["a"].CLEAR_POI])),Object(n["d"])([I["c"].SAVE_DEVICE_WIDTH,I["c"].SAVE_IS_MOBILE,I["c"].SAVE_FILTERING])),{},{resize:function(){this[I["c"].SAVE_DEVICE_WIDTH](this.$el.offsetWidth)},saveConfig:function(){this.$store.commit(I["c"].SAVE_CONFIG,{id:this.id,airport:this.airport,explorerMode:this.explorerMode,building:this.building,floor:this.floor,category:this.category,subcategories:this.subcategories,language:this.language,route:this.route,poi:this.poi,poiD:this.poiD,lat:this.lat,lon:this.lon,mupiMode:this.mupiMode,zonaubicacion:this.zonaubicacion});var M=null!=this.filteringC?this.filteringC:this.filtering;this.$store.commit(I["c"].SAVE_FILTERING,M)},checkIsMobile:function(){var M=Object(vu["a"])(this.id);this.filtering=this.filteringC||M,this.resize(),this[I["c"].SAVE_IS_MOBILE](M),this.$store.commit(I["c"].SAVE_FILTERING,this.filtering)},handleOrientation:function(){var M=this;window.setTimeout((function(){0===window.orientation&&window.innerWidth<=768&&window.innerWidth>=570?M.isPortrait=!0:M.isPortrait=!1}),5e3)},closeModal:function(){this.isPortrait=!1},initFeedback:function(){var M=this,N=function(){var M=JSON.parse(localStorage.getItem("feedback")||"{}");localStorage.removeItem("feedbacks");var N=new Date;M.time&&new Date(M.time).getUTCDate()===N.getUTCDate()||(M.time=N.toISOString(),M.count=1,M.answered=!1,localStorage.setItem("feedback",JSON.stringify(M)))};N(),this.interval=setInterval((function(){var N=JSON.parse(localStorage.getItem("feedback")||"{}");clearInterval(M.interval),N.count<5&&(N.count=4),localStorage.setItem("feedback",JSON.stringify(N)),M[I["a"].SET_FEEDBACK]()}),6e5)},initMupiIntervalEvents:function(){document.addEventListener("keydown",this.cancelIntervalMupi,!1),document.addEventListener("keypress",this.cancelIntervalMupi,!1),document.addEventListener("keyup",this.cancelIntervalMupi,!1),document.addEventListener("mousedown",this.cancelIntervalMupi,!1),document.addEventListener("mouseup",this.cancelIntervalMupi,!1),document.addEventListener("click",this.cancelIntervalMupi,!1),document.addEventListener("touchstart",this.cancelIntervalMupi,!1),document.addEventListener("touchend",this.cancelIntervalMupi,!1),document.addEventListener("touchcancel",this.cancelIntervalMupi,!1),document.addEventListener("touchleave",this.cancelIntervalMupi,!1),document.addEventListener("touchmove",this.cancelIntervalMupi,!1),this.initIntervalMupi()},removeMupiInternalEvents:function(){document.removeEventListener("keydown",this.cancelIntervalMupi,!1),document.removeEventListener("keypress",this.cancelIntervalMupi,!1),document.removeEventListener("keyup",this.cancelIntervalMupi,!1),document.removeEventListener("mousedown",this.cancelIntervalMupi,!1),document.removeEventListener("mouseup",this.cancelIntervalMupi,!1),document.removeEventListener("click",this.cancelIntervalMupi,!1),document.removeEventListener("touchstart",this.cancelIntervalMupi,!1),document.removeEventListener("touchend",this.cancelIntervalMupi,!1),document.removeEventListener("touchcancel",this.cancelIntervalMupi,!1),document.removeEventListener("touchleave",this.cancelIntervalMupi,!1),document.removeEventListener("touchmove",this.cancelIntervalMupi,!1)},initIntervalMupi:function(){var M=this;this.intervalMupiResetPosition=setInterval((function(){M[I["a"].CLEAR_ROUTE]().then((function(){M[I["a"].SET_HOME_POSITION](M.poi)})),clearInterval(M.intervalMupiResetPosition)}),Pu)},cancelIntervalMupi:function(M){clearInterval(this.intervalMupiResetPosition),this.intervalMupiResetPosition=void 0,this.initIntervalMupi()},addAccesibilityClass:function(M){this.container.classList.contains("keyboard-nav")||"Tab"!==M.key||this.container.classList.add("keyboard-nav")},removeAccesibilityClass:function(){this.container.classList.remove("keyboard-nav")},onLayerChange:function(M){var N=this.$refs.map.getLayer(M.name);this.$refs.map.setLayoutProperty(N.id,"none"===N.visibility?"visible":"none")},onPointsToggle:function(M){this.pointsDetailCollapsed=M}}),watch:{floorC:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(){return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:this.floor=(this.floorC||{}).id,this.building=(this.buildingC||{}).id,this.saveConfig();case 3:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),layerTree:function(M){var N=M.map((function(M){var N=M;return N.name="poiList"===M.id?"Puntos de interés":"building-contour"===M.id?"Contorno de edificios":"building-contour-marker"===M.id?"Marcadores de planta":"poiListSelected"===M.id?"POIs seleccionados":"spaces_base_fill"===M.id?"Relleno del espacio":M.id,N.active=!0,N}));this.layers=N}}},Gu=Zu,Wu=(D("3719"),Object(kT["a"])(Gu,u,z,!1,null,null,null)),Ru=Wu.exports,Xu=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],_u=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Hu(M,N){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+M),N&&console.warn(N.stack))}function Fu(M,N){"undefined"!==typeof console&&(console.error("[vue-i18n] "+M),N&&console.error(N.stack))}var Vu=Array.isArray;function Ju(M){return null!==M&&"object"===typeof M}function qu(M){return"boolean"===typeof M}function Ku(M){return"string"===typeof M}var $u=Object.prototype.toString,Mz="[object Object]";function Nz(M){return $u.call(M)===Mz}function Dz(M){return null===M||void 0===M}function tz(M){return"function"===typeof M}function iz(){var M=[],N=arguments.length;while(N--)M[N]=arguments[N];var D=null,t=null;return 1===M.length?Ju(M[0])||Vu(M[0])?t=M[0]:"string"===typeof M[0]&&(D=M[0]):2===M.length&&("string"===typeof M[0]&&(D=M[0]),(Ju(M[1])||Vu(M[1]))&&(t=M[1])),{locale:D,params:t}}function ez(M){return JSON.parse(JSON.stringify(M))}function jz(M,N){if(M.delete(N))return M}function Tz(M){var N=[];return M.forEach((function(M){return N.push(M)})),N}function gz(M,N){return!!~M.indexOf(N)}var sz=Object.prototype.hasOwnProperty;function uz(M,N){return sz.call(M,N)}function zz(M){for(var N=arguments,D=Object(M),t=1;t<arguments.length;t++){var i=N[t];if(void 0!==i&&null!==i){var e=void 0;for(e in i)uz(i,e)&&(Ju(i[e])?D[e]=zz(D[e],i[e]):D[e]=i[e])}}return D}function Az(M,N){if(M===N)return!0;var D=Ju(M),t=Ju(N);if(!D||!t)return!D&&!t&&String(M)===String(N);try{var i=Vu(M),e=Vu(N);if(i&&e)return M.length===N.length&&M.every((function(M,D){return Az(M,N[D])}));if(i||e)return!1;var j=Object.keys(M),T=Object.keys(N);return j.length===T.length&&j.every((function(D){return Az(M[D],N[D])}))}catch(g){return!1}}function Lz(M){return M.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function Iz(M){return null!=M&&Object.keys(M).forEach((function(N){"string"==typeof M[N]&&(M[N]=Lz(M[N]))})),M}function nz(M){M.prototype.hasOwnProperty("$i18n")||Object.defineProperty(M.prototype,"$i18n",{get:function(){return this._i18n}}),M.prototype.$t=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.$i18n;return t._t.apply(t,[M,t.locale,t._getMessages(),this].concat(N))},M.prototype.$tc=function(M,N){var D=[],t=arguments.length-2;while(t-- >0)D[t]=arguments[t+2];var i=this.$i18n;return i._tc.apply(i,[M,i.locale,i._getMessages(),this,N].concat(D))},M.prototype.$te=function(M,N){var D=this.$i18n;return D._te(M,D.locale,D._getMessages(),N)},M.prototype.$d=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this.$i18n).d.apply(N,[M].concat(D))},M.prototype.$n=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this.$i18n).n.apply(N,[M].concat(D))}}function rz(M){function N(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===M&&(M=!1),M?{mounted:N}:{beforeCreate:function(){var M=this.$options;if(M.i18n=M.i18n||(M.__i18nBridge||M.__i18n?{}:null),M.i18n)if(M.i18n instanceof IA){if(M.__i18nBridge||M.__i18n)try{var N=M.i18n&&M.i18n.messages?M.i18n.messages:{},D=M.__i18nBridge||M.__i18n;D.forEach((function(M){N=zz(N,JSON.parse(M))})),Object.keys(N).forEach((function(D){M.i18n.mergeLocaleMessage(D,N[D])}))}catch(g){0}this._i18n=M.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(Nz(M.i18n)){var t=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof IA?this.$root.$i18n:null;if(t&&(M.i18n.root=this.$root,M.i18n.formatter=t.formatter,M.i18n.fallbackLocale=t.fallbackLocale,M.i18n.formatFallbackMessages=t.formatFallbackMessages,M.i18n.silentTranslationWarn=t.silentTranslationWarn,M.i18n.silentFallbackWarn=t.silentFallbackWarn,M.i18n.pluralizationRules=t.pluralizationRules,M.i18n.preserveDirectiveContent=t.preserveDirectiveContent),M.__i18nBridge||M.__i18n)try{var i=M.i18n&&M.i18n.messages?M.i18n.messages:{},e=M.__i18nBridge||M.__i18n;e.forEach((function(M){i=zz(i,JSON.parse(M))})),M.i18n.messages=i}catch(g){0}var j=M.i18n,T=j.sharedMessages;T&&Nz(T)&&(M.i18n.messages=zz(M.i18n.messages,T)),this._i18n=new IA(M.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===M.i18n.sync||M.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),t&&t.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof IA?this._i18n=this.$root.$i18n:M.parent&&M.parent.$i18n&&M.parent.$i18n instanceof IA&&(this._i18n=M.parent.$i18n)},beforeMount:function(){var M=this.$options;M.i18n=M.i18n||(M.__i18nBridge||M.__i18n?{}:null),M.i18n?(M.i18n instanceof IA||Nz(M.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof IA||M.parent&&M.parent.$i18n&&M.parent.$i18n instanceof IA)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:N,beforeDestroy:function(){if(this._i18n){var M=this;this.$nextTick((function(){M._subscribing&&(M._i18n.unsubscribeDataChanging(M),delete M._subscribing),M._i18nWatcher&&(M._i18nWatcher(),M._i18n.destroyVM(),delete M._i18nWatcher),M._localeWatcher&&(M._localeWatcher(),delete M._localeWatcher)}))}}}}var wz={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(M,N){var D=N.data,t=N.parent,i=N.props,e=N.slots,j=t.$i18n;if(j){var T=i.path,g=i.locale,s=i.places,u=e(),z=j.i(T,g,cz(u)||s?yz(u.default,s):u),A=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return A?M(A,D,z):z}}};function cz(M){var N;for(N in M)if("default"!==N)return!1;return Boolean(N)}function yz(M,N){var D=N?az(N):{};if(!M)return D;M=M.filter((function(M){return M.tag||""!==M.text.trim()}));var t=M.every(Oz);return M.reduce(t?oz:Ez,D)}function az(M){return Array.isArray(M)?M.reduce(Ez,{}):Object.assign({},M)}function oz(M,N){return N.data&&N.data.attrs&&N.data.attrs.place&&(M[N.data.attrs.place]=N),M}function Ez(M,N,D){return M[D]=N,M}function Oz(M){return Boolean(M.data&&M.data.attrs&&M.data.attrs.place)}var xz,Cz={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(M,N){var D=N.props,t=N.parent,i=N.data,e=t.$i18n;if(!e)return null;var j=null,T=null;Ku(D.format)?j=D.format:Ju(D.format)&&(D.format.key&&(j=D.format.key),T=Object.keys(D.format).reduce((function(M,N){var t;return gz(Xu,N)?Object.assign({},M,(t={},t[N]=D.format[N],t)):M}),null));var g=D.locale||e.locale,s=e._ntp(D.value,g,j,T),u=s.map((function(M,N){var D,t=i.scopedSlots&&i.scopedSlots[M.type];return t?t((D={},D[M.type]=M.value,D.index=N,D.parts=s,D)):M.value})),z=D.tag&&!0!==D.tag||!1===D.tag?D.tag:"span";return z?M(z,{attrs:i.attrs,class:i["class"],staticClass:i.staticClass},u):u}};function Sz(M,N,D){Qz(M,D)&&Yz(M,N,D)}function lz(M,N,D,t){if(Qz(M,D)){var i=D.context.$i18n;dz(M,D)&&Az(N.value,N.oldValue)&&Az(M._localeMessage,i.getLocaleMessage(i.locale))||Yz(M,N,D)}}function kz(M,N,D,t){var i=D.context;if(i){var e=D.context.$i18n||{};N.modifiers.preserve||e.preserveDirectiveContent||(M.textContent=""),M._vt=void 0,delete M["_vt"],M._locale=void 0,delete M["_locale"],M._localeMessage=void 0,delete M["_localeMessage"]}else Hu("Vue instance does not exists in VNode context")}function Qz(M,N){var D=N.context;return D?!!D.$i18n||(Hu("VueI18n instance does not exists in Vue instance"),!1):(Hu("Vue instance does not exists in VNode context"),!1)}function dz(M,N){var D=N.context;return M._locale===D.$i18n.locale}function Yz(M,N,D){var t,i,e=N.value,j=pz(e),T=j.path,g=j.locale,s=j.args,u=j.choice;if(T||g||s)if(T){var z=D.context;M._vt=M.textContent=null!=u?(t=z.$i18n).tc.apply(t,[T,u].concat(Uz(g,s))):(i=z.$i18n).t.apply(i,[T].concat(Uz(g,s))),M._locale=z.$i18n.locale,M._localeMessage=z.$i18n.getLocaleMessage(z.$i18n.locale)}else Hu("`path` is required in v-t directive");else Hu("value type not supported")}function pz(M){var N,D,t,i;return Ku(M)?N=M:Nz(M)&&(N=M.path,D=M.locale,t=M.args,i=M.choice),{path:N,locale:D,args:t,choice:i}}function Uz(M,N){var D=[];return M&&D.push(M),N&&(Array.isArray(N)||Nz(N))&&D.push(N),D}function hz(M,N){void 0===N&&(N={bridge:!1}),hz.installed=!0,xz=M;xz.version&&Number(xz.version.split(".")[0]);nz(xz),xz.mixin(rz(N.bridge)),xz.directive("t",{bind:Sz,update:lz,unbind:kz}),xz.component(wz.name,wz),xz.component(Cz.name,Cz);var D=xz.config.optionMergeStrategies;D.i18n=function(M,N){return void 0===N?M:N}}var fz=function(){this._caches=Object.create(null)};fz.prototype.interpolate=function(M,N){if(!N)return[M];var D=this._caches[M];return D||(D=Bz(M),this._caches[M]=D),bz(D,N)};var mz=/^(?:\d)+/,vz=/^(?:\w)+/;function Bz(M){var N=[],D=0,t="";while(D<M.length){var i=M[D++];if("{"===i){t&&N.push({type:"text",value:t}),t="";var e="";i=M[D++];while(void 0!==i&&"}"!==i)e+=i,i=M[D++];var j="}"===i,T=mz.test(e)?"list":j&&vz.test(e)?"named":"unknown";N.push({value:e,type:T})}else"%"===i?"{"!==M[D]&&(t+=i):t+=i}return t&&N.push({type:"text",value:t}),N}function bz(M,N){var D=[],t=0,i=Array.isArray(N)?"list":Ju(N)?"named":"unknown";if("unknown"===i)return D;while(t<M.length){var e=M[t];switch(e.type){case"text":D.push(e.value);break;case"list":D.push(N[parseInt(e.value,10)]);break;case"named":"named"===i&&D.push(N[e.value]);break;case"unknown":0;break}t++}return D}var Pz=0,Zz=1,Gz=2,Wz=3,Rz=0,Xz=1,_z=2,Hz=3,Fz=4,Vz=5,Jz=6,qz=7,Kz=8,$z=[];$z[Rz]={ws:[Rz],ident:[Hz,Pz],"[":[Fz],eof:[qz]},$z[Xz]={ws:[Xz],".":[_z],"[":[Fz],eof:[qz]},$z[_z]={ws:[_z],ident:[Hz,Pz],0:[Hz,Pz],number:[Hz,Pz]},$z[Hz]={ident:[Hz,Pz],0:[Hz,Pz],number:[Hz,Pz],ws:[Xz,Zz],".":[_z,Zz],"[":[Fz,Zz],eof:[qz,Zz]},$z[Fz]={"'":[Vz,Pz],'"':[Jz,Pz],"[":[Fz,Gz],"]":[Xz,Wz],eof:Kz,else:[Fz,Pz]},$z[Vz]={"'":[Fz,Pz],eof:Kz,else:[Vz,Pz]},$z[Jz]={'"':[Fz,Pz],eof:Kz,else:[Jz,Pz]};var MA=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function NA(M){return MA.test(M)}function DA(M){var N=M.charCodeAt(0),D=M.charCodeAt(M.length-1);return N!==D||34!==N&&39!==N?M:M.slice(1,-1)}function tA(M){if(void 0===M||null===M)return"eof";var N=M.charCodeAt(0);switch(N){case 91:case 93:case 46:case 34:case 39:return M;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function iA(M){var N=M.trim();return("0"!==M.charAt(0)||!isNaN(M))&&(NA(N)?DA(N):"*"+N)}function eA(M){var N,D,t,i,e,j,T,g=[],s=-1,u=Rz,z=0,A=[];function L(){var N=M[s+1];if(u===Vz&&"'"===N||u===Jz&&'"'===N)return s++,t="\\"+N,A[Pz](),!0}A[Zz]=function(){void 0!==D&&(g.push(D),D=void 0)},A[Pz]=function(){void 0===D?D=t:D+=t},A[Gz]=function(){A[Pz](),z++},A[Wz]=function(){if(z>0)z--,u=Fz,A[Pz]();else{if(z=0,void 0===D)return!1;if(D=iA(D),!1===D)return!1;A[Zz]()}};while(null!==u)if(s++,N=M[s],"\\"!==N||!L()){if(i=tA(N),T=$z[u],e=T[i]||T["else"]||Kz,e===Kz)return;if(u=e[0],j=A[e[1]],j&&(t=e[2],t=void 0===t?N:t,!1===j()))return;if(u===qz)return g}}var jA=function(){this._cache=Object.create(null)};jA.prototype.parsePath=function(M){var N=this._cache[M];return N||(N=eA(M),N&&(this._cache[M]=N)),N||[]},jA.prototype.getPathValue=function(M,N){if(!Ju(M))return null;var D=this.parsePath(N);if(0===D.length)return null;var t=D.length,i=M,e=0;while(e<t){var j=i[D[e]];if(void 0===j||null===j)return null;i=j,e++}return i};var TA,gA=/<\/?[\w\s="/.':;#-\/]+>/,sA=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,uA=/^@(?:\.([a-zA-Z]+))?:/,zA=/[()]/g,AA={upper:function(M){return M.toLocaleUpperCase()},lower:function(M){return M.toLocaleLowerCase()},capitalize:function(M){return""+M.charAt(0).toLocaleUpperCase()+M.substr(1)}},LA=new fz,IA=function(M){var N=this;void 0===M&&(M={}),!xz&&"undefined"!==typeof window&&window.Vue&&hz(window.Vue);var D=M.locale||"en-US",t=!1!==M.fallbackLocale&&(M.fallbackLocale||"en-US"),i=M.messages||{},e=M.dateTimeFormats||M.datetimeFormats||{},j=M.numberFormats||{};this._vm=null,this._formatter=M.formatter||LA,this._modifiers=M.modifiers||{},this._missing=M.missing||null,this._root=M.root||null,this._sync=void 0===M.sync||!!M.sync,this._fallbackRoot=void 0===M.fallbackRoot||!!M.fallbackRoot,this._fallbackRootWithEmptyString=void 0===M.fallbackRootWithEmptyString||!!M.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==M.formatFallbackMessages&&!!M.formatFallbackMessages,this._silentTranslationWarn=void 0!==M.silentTranslationWarn&&M.silentTranslationWarn,this._silentFallbackWarn=void 0!==M.silentFallbackWarn&&!!M.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new jA,this._dataListeners=new Set,this._componentInstanceCreatedListener=M.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==M.preserveDirectiveContent&&!!M.preserveDirectiveContent,this.pluralizationRules=M.pluralizationRules||{},this._warnHtmlInMessage=M.warnHtmlInMessage||"off",this._postTranslation=M.postTranslation||null,this._escapeParameterHtml=M.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in M&&(this.__VUE_I18N_BRIDGE__=M.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(M,D){var t=Object.getPrototypeOf(N);if(t&&t.getChoiceIndex){var i=t.getChoiceIndex;return i.call(N,M,D)}var e=function(M,N){return M=Math.abs(M),2===N?M?M>1?1:0:1:M?Math.min(M,2):0};return N.locale in N.pluralizationRules?N.pluralizationRules[N.locale].apply(N,[M,D]):e(M,D)},this._exist=function(M,D){return!(!M||!D)&&(!Dz(N._path.getPathValue(M,D))||!!M[D])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(M){N._checkLocaleMessage(M,N._warnHtmlInMessage,i[M])})),this._initVM({locale:D,fallbackLocale:t,messages:i,dateTimeFormats:e,numberFormats:j})},nA={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};IA.prototype._checkLocaleMessage=function(M,N,D){var t=[],i=function(M,N,D,t){if(Nz(D))Object.keys(D).forEach((function(e){var j=D[e];Nz(j)?(t.push(e),t.push("."),i(M,N,j,t),t.pop(),t.pop()):(t.push(e),i(M,N,j,t),t.pop())}));else if(Vu(D))D.forEach((function(D,e){Nz(D)?(t.push("["+e+"]"),t.push("."),i(M,N,D,t),t.pop(),t.pop()):(t.push("["+e+"]"),i(M,N,D,t),t.pop())}));else if(Ku(D)){var e=gA.test(D);if(e){var j="Detected HTML in message '"+D+"' of keypath '"+t.join("")+"' at '"+N+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===M?Hu(j):"error"===M&&Fu(j)}}};i(N,M,D,t)},IA.prototype._initVM=function(M){var N=xz.config.silent;xz.config.silent=!0,this._vm=new xz({data:M,__VUE18N__INSTANCE__:!0}),xz.config.silent=N},IA.prototype.destroyVM=function(){this._vm.$destroy()},IA.prototype.subscribeDataChanging=function(M){this._dataListeners.add(M)},IA.prototype.unsubscribeDataChanging=function(M){jz(this._dataListeners,M)},IA.prototype.watchI18nData=function(){var M=this;return this._vm.$watch("$data",(function(){var N=Tz(M._dataListeners),D=N.length;while(D--)xz.nextTick((function(){N[D]&&N[D].$forceUpdate()}))}),{deep:!0})},IA.prototype.watchLocale=function(M){if(M){if(!this.__VUE_I18N_BRIDGE__)return null;var N=this,D=this._vm;return this.vm.$watch("locale",(function(t){D.$set(D,"locale",t),N.__VUE_I18N_BRIDGE__&&M&&(M.locale.value=t),D.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",(function(M){t.$set(t,"locale",M),t.$forceUpdate()}),{immediate:!0})},IA.prototype.onComponentInstanceCreated=function(M){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(M,this)},nA.vm.get=function(){return this._vm},nA.messages.get=function(){return ez(this._getMessages())},nA.dateTimeFormats.get=function(){return ez(this._getDateTimeFormats())},nA.numberFormats.get=function(){return ez(this._getNumberFormats())},nA.availableLocales.get=function(){return Object.keys(this.messages).sort()},nA.locale.get=function(){return this._vm.locale},nA.locale.set=function(M){this._vm.$set(this._vm,"locale",M)},nA.fallbackLocale.get=function(){return this._vm.fallbackLocale},nA.fallbackLocale.set=function(M){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",M)},nA.formatFallbackMessages.get=function(){return this._formatFallbackMessages},nA.formatFallbackMessages.set=function(M){this._formatFallbackMessages=M},nA.missing.get=function(){return this._missing},nA.missing.set=function(M){this._missing=M},nA.formatter.get=function(){return this._formatter},nA.formatter.set=function(M){this._formatter=M},nA.silentTranslationWarn.get=function(){return this._silentTranslationWarn},nA.silentTranslationWarn.set=function(M){this._silentTranslationWarn=M},nA.silentFallbackWarn.get=function(){return this._silentFallbackWarn},nA.silentFallbackWarn.set=function(M){this._silentFallbackWarn=M},nA.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},nA.preserveDirectiveContent.set=function(M){this._preserveDirectiveContent=M},nA.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},nA.warnHtmlInMessage.set=function(M){var N=this,D=this._warnHtmlInMessage;if(this._warnHtmlInMessage=M,D!==M&&("warn"===M||"error"===M)){var t=this._getMessages();Object.keys(t).forEach((function(M){N._checkLocaleMessage(M,N._warnHtmlInMessage,t[M])}))}},nA.postTranslation.get=function(){return this._postTranslation},nA.postTranslation.set=function(M){this._postTranslation=M},nA.sync.get=function(){return this._sync},nA.sync.set=function(M){this._sync=M},IA.prototype._getMessages=function(){return this._vm.messages},IA.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},IA.prototype._getNumberFormats=function(){return this._vm.numberFormats},IA.prototype._warnDefault=function(M,N,D,t,i,e){if(!Dz(D))return D;if(this._missing){var j=this._missing.apply(null,[M,N,t,i]);if(Ku(j))return j}else 0;if(this._formatFallbackMessages){var T=iz.apply(void 0,i);return this._render(N,e,T.params,N)}return N},IA.prototype._isFallbackRoot=function(M){return(this._fallbackRootWithEmptyString?!M:Dz(M))&&!Dz(this._root)&&this._fallbackRoot},IA.prototype._isSilentFallbackWarn=function(M){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(M):this._silentFallbackWarn},IA.prototype._isSilentFallback=function(M,N){return this._isSilentFallbackWarn(N)&&(this._isFallbackRoot()||M!==this.fallbackLocale)},IA.prototype._isSilentTranslationWarn=function(M){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(M):this._silentTranslationWarn},IA.prototype._interpolate=function(M,N,D,t,i,e,j){if(!N)return null;var T,g=this._path.getPathValue(N,D);if(Vu(g)||Nz(g))return g;if(Dz(g)){if(!Nz(N))return null;if(T=N[D],!Ku(T)&&!tz(T))return null}else{if(!Ku(g)&&!tz(g))return null;T=g}return Ku(T)&&(T.indexOf("@:")>=0||T.indexOf("@.")>=0)&&(T=this._link(M,N,T,t,"raw",e,j)),this._render(T,i,e,D)},IA.prototype._link=function(M,N,D,t,i,e,j){var T=D,g=T.match(sA);for(var s in g)if(g.hasOwnProperty(s)){var u=g[s],z=u.match(uA),A=z[0],L=z[1],I=u.replace(A,"").replace(zA,"");if(gz(j,I))return T;j.push(I);var n=this._interpolate(M,N,I,t,"raw"===i?"string":i,"raw"===i?void 0:e,j);if(this._isFallbackRoot(n)){if(!this._root)throw Error("unexpected error");var r=this._root.$i18n;n=r._translate(r._getMessages(),r.locale,r.fallbackLocale,I,t,i,e)}n=this._warnDefault(M,I,n,t,Vu(e)?e:[e],i),this._modifiers.hasOwnProperty(L)?n=this._modifiers[L](n):AA.hasOwnProperty(L)&&(n=AA[L](n)),j.pop(),T=n?T.replace(u,n):T}return T},IA.prototype._createMessageContext=function(M,N,D,t){var i=this,e=Vu(M)?M:[],j=Ju(M)?M:{},T=function(M){return e[M]},g=function(M){return j[M]},s=this._getMessages(),u=this.locale;return{list:T,named:g,values:M,formatter:N,path:D,messages:s,locale:u,linked:function(M){return i._interpolate(u,s[u]||{},M,null,t,void 0,[M])}}},IA.prototype._render=function(M,N,D,t){if(tz(M))return M(this._createMessageContext(D,this._formatter||LA,t,N));var i=this._formatter.interpolate(M,D,t);return i||(i=LA.interpolate(M,D,t)),"string"!==N||Ku(i)?i:i.join("")},IA.prototype._appendItemToChain=function(M,N,D){var t=!1;return gz(M,N)||(t=!0,N&&(t="!"!==N[N.length-1],N=N.replace(/!/g,""),M.push(N),D&&D[N]&&(t=D[N]))),t},IA.prototype._appendLocaleToChain=function(M,N,D){var t,i=N.split("-");do{var e=i.join("-");t=this._appendItemToChain(M,e,D),i.splice(-1,1)}while(i.length&&!0===t);return t},IA.prototype._appendBlockToChain=function(M,N,D){for(var t=!0,i=0;i<N.length&&qu(t);i++){var e=N[i];Ku(e)&&(t=this._appendLocaleToChain(M,e,D))}return t},IA.prototype._getLocaleChain=function(M,N){if(""===M)return[];this._localeChainCache||(this._localeChainCache={});var D=this._localeChainCache[M];if(!D){N||(N=this.fallbackLocale),D=[];var t,i=[M];while(Vu(i))i=this._appendBlockToChain(D,i,N);t=Vu(N)?N:Ju(N)?N["default"]?N["default"]:null:N,i=Ku(t)?[t]:t,i&&this._appendBlockToChain(D,i,null),this._localeChainCache[M]=D}return D},IA.prototype._translate=function(M,N,D,t,i,e,j){for(var T,g=this._getLocaleChain(N,D),s=0;s<g.length;s++){var u=g[s];if(T=this._interpolate(u,M[u],t,i,e,j,[t]),!Dz(T))return T}return null},IA.prototype._t=function(M,N,D,t){var i,e=[],j=arguments.length-4;while(j-- >0)e[j]=arguments[j+4];if(!M)return"";var T=iz.apply(void 0,e);this._escapeParameterHtml&&(T.params=Iz(T.params));var g=T.locale||N,s=this._translate(D,g,this.fallbackLocale,M,t,"string",T.params);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[M].concat(e))}return s=this._warnDefault(g,M,s,t,e,"string"),this._postTranslation&&null!==s&&void 0!==s&&(s=this._postTranslation(s,M)),s},IA.prototype.t=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this)._t.apply(N,[M,this.locale,this._getMessages(),null].concat(D))},IA.prototype._i=function(M,N,D,t,i){var e=this._translate(D,N,this.fallbackLocale,M,t,"raw",i);if(this._isFallbackRoot(e)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(M,N,i)}return this._warnDefault(N,M,e,t,[i],"raw")},IA.prototype.i=function(M,N,D){return M?(Ku(N)||(N=this.locale),this._i(M,N,this._getMessages(),null,D)):""},IA.prototype._tc=function(M,N,D,t,i){var e,j=[],T=arguments.length-5;while(T-- >0)j[T]=arguments[T+5];if(!M)return"";void 0===i&&(i=1);var g={count:i,n:i},s=iz.apply(void 0,j);return s.params=Object.assign(g,s.params),j=null===s.locale?[s.params]:[s.locale,s.params],this.fetchChoice((e=this)._t.apply(e,[M,N,D,t].concat(j)),i)},IA.prototype.fetchChoice=function(M,N){if(!M||!Ku(M))return null;var D=M.split("|");return N=this.getChoiceIndex(N,D.length),D[N]?D[N].trim():M},IA.prototype.tc=function(M,N){var D,t=[],i=arguments.length-2;while(i-- >0)t[i]=arguments[i+2];return(D=this)._tc.apply(D,[M,this.locale,this._getMessages(),null,N].concat(t))},IA.prototype._te=function(M,N,D){var t=[],i=arguments.length-3;while(i-- >0)t[i]=arguments[i+3];var e=iz.apply(void 0,t).locale||N;return this._exist(D[e],M)},IA.prototype.te=function(M,N){return this._te(M,this.locale,this._getMessages(),N)},IA.prototype.getLocaleMessage=function(M){return ez(this._vm.messages[M]||{})},IA.prototype.setLocaleMessage=function(M,N){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(M,this._warnHtmlInMessage,N),this._vm.$set(this._vm.messages,M,N)},IA.prototype.mergeLocaleMessage=function(M,N){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(M,this._warnHtmlInMessage,N),this._vm.$set(this._vm.messages,M,zz("undefined"!==typeof this._vm.messages[M]&&Object.keys(this._vm.messages[M]).length?Object.assign({},this._vm.messages[M]):{},N))},IA.prototype.getDateTimeFormat=function(M){return ez(this._vm.dateTimeFormats[M]||{})},IA.prototype.setDateTimeFormat=function(M,N){this._vm.$set(this._vm.dateTimeFormats,M,N),this._clearDateTimeFormat(M,N)},IA.prototype.mergeDateTimeFormat=function(M,N){this._vm.$set(this._vm.dateTimeFormats,M,zz(this._vm.dateTimeFormats[M]||{},N)),this._clearDateTimeFormat(M,N)},IA.prototype._clearDateTimeFormat=function(M,N){for(var D in N){var t=M+"__"+D;this._dateTimeFormatters.hasOwnProperty(t)&&delete this._dateTimeFormatters[t]}},IA.prototype._localizeDateTime=function(M,N,D,t,i,e){for(var j=N,T=t[j],g=this._getLocaleChain(N,D),s=0;s<g.length;s++){var u=g[s];if(T=t[u],j=u,!Dz(T)&&!Dz(T[i]))break}if(Dz(T)||Dz(T[i]))return null;var z,A=T[i];if(e)z=new Intl.DateTimeFormat(j,Object.assign({},A,e));else{var L=j+"__"+i;z=this._dateTimeFormatters[L],z||(z=this._dateTimeFormatters[L]=new Intl.DateTimeFormat(j,A))}return z.format(M)},IA.prototype._d=function(M,N,D,t){if(!D){var i=t?new Intl.DateTimeFormat(N,t):new Intl.DateTimeFormat(N);return i.format(M)}var e=this._localizeDateTime(M,N,this.fallbackLocale,this._getDateTimeFormats(),D,t);if(this._isFallbackRoot(e)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(M,D,N)}return e||""},IA.prototype.d=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.locale,i=null,e=null;return 1===N.length?(Ku(N[0])?i=N[0]:Ju(N[0])&&(N[0].locale&&(t=N[0].locale),N[0].key&&(i=N[0].key)),e=Object.keys(N[0]).reduce((function(M,D){var t;return gz(_u,D)?Object.assign({},M,(t={},t[D]=N[0][D],t)):M}),null)):2===N.length&&(Ku(N[0])&&(i=N[0]),Ku(N[1])&&(t=N[1])),this._d(M,t,i,e)},IA.prototype.getNumberFormat=function(M){return ez(this._vm.numberFormats[M]||{})},IA.prototype.setNumberFormat=function(M,N){this._vm.$set(this._vm.numberFormats,M,N),this._clearNumberFormat(M,N)},IA.prototype.mergeNumberFormat=function(M,N){this._vm.$set(this._vm.numberFormats,M,zz(this._vm.numberFormats[M]||{},N)),this._clearNumberFormat(M,N)},IA.prototype._clearNumberFormat=function(M,N){for(var D in N){var t=M+"__"+D;this._numberFormatters.hasOwnProperty(t)&&delete this._numberFormatters[t]}},IA.prototype._getNumberFormatter=function(M,N,D,t,i,e){for(var j=N,T=t[j],g=this._getLocaleChain(N,D),s=0;s<g.length;s++){var u=g[s];if(T=t[u],j=u,!Dz(T)&&!Dz(T[i]))break}if(Dz(T)||Dz(T[i]))return null;var z,A=T[i];if(e)z=new Intl.NumberFormat(j,Object.assign({},A,e));else{var L=j+"__"+i;z=this._numberFormatters[L],z||(z=this._numberFormatters[L]=new Intl.NumberFormat(j,A))}return z},IA.prototype._n=function(M,N,D,t){if(!IA.availabilities.numberFormat)return"";if(!D){var i=t?new Intl.NumberFormat(N,t):new Intl.NumberFormat(N);return i.format(M)}var e=this._getNumberFormatter(M,N,this.fallbackLocale,this._getNumberFormats(),D,t),j=e&&e.format(M);if(this._isFallbackRoot(j)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(M,Object.assign({},{key:D,locale:N},t))}return j||""},IA.prototype.n=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.locale,i=null,e=null;return 1===N.length?Ku(N[0])?i=N[0]:Ju(N[0])&&(N[0].locale&&(t=N[0].locale),N[0].key&&(i=N[0].key),e=Object.keys(N[0]).reduce((function(M,D){var t;return gz(Xu,D)?Object.assign({},M,(t={},t[D]=N[0][D],t)):M}),null)):2===N.length&&(Ku(N[0])&&(i=N[0]),Ku(N[1])&&(t=N[1])),this._n(M,t,i,e)},IA.prototype._ntp=function(M,N,D,t){if(!IA.availabilities.numberFormat)return[];if(!D){var i=t?new Intl.NumberFormat(N,t):new Intl.NumberFormat(N);return i.formatToParts(M)}var e=this._getNumberFormatter(M,N,this.fallbackLocale,this._getNumberFormats(),D,t),j=e&&e.formatToParts(M);if(this._isFallbackRoot(j)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(M,N,D,t)}return j||[]},Object.defineProperties(IA.prototype,nA),Object.defineProperty(IA,"availabilities",{get:function(){if(!TA){var M="undefined"!==typeof Intl;TA={dateTimeFormat:M&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:M&&"undefined"!==typeof Intl.NumberFormat}}return TA}}),IA.install=hz,IA.version="8.28.2";var rA=IA;function wA(){var M=D("49f8"),N={};return M.keys().forEach((function(D){var t=D.match(/([A-Za-z0-9-_]+)\./i);if(t&&t.length>1){var i=t[1];N[i]=M(D)}})),N}s["a"].use(rA);var cA=function(M){return new rA({dateTimeFormats:yA,numberFormats:aA,locale:M||"en",fallbackLocale:"en",messages:wA(),silentTranslationWarn:!0})},yA={en:{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},es:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},ca:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},eu:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},gl:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},va:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}}},aA={en:{currency:{style:"currency",currency:"USD"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},es:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},ca:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},eu:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},gl:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},va:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}}};function oA(M){var N=D("49f8"),t=!1;return N.keys().forEach((function(N){var D=N.match(/([A-Za-z0-9-_]+)\./i);D&&D.length>1&&D[1]===M&&(t=!0)})),t}s["a"].config.productionTip=!1,s["a"].config.ignoredElements=[/as-\w+/],Object({NODE_ENV:"production",VUE_APP_I18N_LOCALE:"es",VUE_APP_I18N_FALLBACK_LOCALE:"en",VUE_APP_AUTO_FLOOR_ZOOM_MAX:"16",VUE_APP_AUTO_FLOOR_ZOOM_MIN:"14",VUE_APP_API_VERSION:"v1",VUE_APP_API_URL:"https://aena-indoor-read-api.geographica.com/api/",VUE_APP_AENA_HOST:"https://www.aena.es",VUE_APP_PMR_MODE:"true",VUE_APP_DEBUG_MODE:"false",VUE_APP_OUTDOOR:"true",BASE_URL:"/"}).VUE_APP_VERSION&&console.info("SDK version: ".concat(Object({NODE_ENV:"production",VUE_APP_I18N_LOCALE:"es",VUE_APP_I18N_FALLBACK_LOCALE:"en",VUE_APP_AUTO_FLOOR_ZOOM_MAX:"16",VUE_APP_AUTO_FLOOR_ZOOM_MIN:"14",VUE_APP_API_VERSION:"v1",VUE_APP_API_URL:"https://aena-indoor-read-api.geographica.com/api/",VUE_APP_AENA_HOST:"https://www.aena.es",VUE_APP_PMR_MODE:"true",VUE_APP_DEBUG_MODE:"false",VUE_APP_OUTDOOR:"true",BASE_URL:"/"}).VUE_APP_VERSION));var EA=window.navigator.userAgent,OA=EA.indexOf("MSIE");if(OA>0||navigator.userAgent.match(/Trident.*rv:11\./)){var xA={functional:!0,render:function(M,N){var D=N.data,t=N.children;return M("span",D,t)}},CA={functional:!0,render:function(M,N){N.data;var D=N.children;return D}};s["a"].component("transition",CA),s["a"].component("transition-group",xA)}window.onerror=function(M,N,D,t,i){kA({err:M,source:N,info:"in line ".concat(D,":").concat(t)})},s["a"].config.errorHandler=function(M,N,D){kA({err:M,source:N,info:D})};var SA=D("b71f");SA.keys().forEach((function(M){var N=SA(M),D=M.split("/").pop().replace(/\.\w+$/,"");s["a"].component(D,N.default||N)}));var lA=function(){function M(N){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=D.airport,e=D.building,j=D.floor,T=D.explorerMode,g=D.category,s=D.poi,u=D.poiD,z=D.route,A=D.language,L=D.printMode,I=D.lat,n=D.lon,r=D.mupiMode,w=D.avaMode,c=D.subcategories,y=D.filtering,a=D.zonaubicacion;t(this,M),this.id=N,this.airport=i,this.building=e,this.floor=j,this.explorerMode=T,this.category=g,this.poi=s,this.poiD=u,this.route=z,this.language=A,this.printMode=L,this.lat=I,this.lon=n,this.mupiMode=r||w,this.avaMode=w,this.subcategories=c,this.filtering=y,this.zonaubicacion=a;try{this.checkErrors(),this.render()}catch(Fu){throw this.renderError(Fu),Fu}}return g(M,[{key:"setAirport",value:function(M){this.airport=M,this.render()}},{key:"setBuilding",value:function(M){this.building=M,this.render()}},{key:"setFloor",value:function(M){this.floor=M,this.render()}},{key:"setPOI",value:function(M){this.poi=M,this.render()}},{key:"setPoiCategory",value:function(M,N){this.floor=M,this.category=N,this.render()}},{key:"setLanguage",value:function(M){this.language=M,this.render()}},{key:"setRoute",value:function(M){this.route=M,this.render()}},{key:"setSubcategories",value:function(M){this.subcategories=M,this.render()}},{key:"setFiltering",value:function(M){this.filtering=M,this.render()}},{key:"checkErrors",value:function(){if(!QA(this.id))throw Error("Id is required");if(!QA(this.airport))throw Error("Airport is required");if(this.printMode&&!this.explorerMode)throw Error("Explorer mode are required with print mode is setted");if(!this.explorerMode&&!(QA(this.building)||QA(this.floor)||QA(this.route)||QA(this.poi)))throw Error("Building or floor or poi ID are required when mode is in Context Mode");if(QA(this.building)&&!QA(this.floor))throw Error("Floor is required with building setted");if(this.avaMode){var M=QA(this.subcategories)||QA(this.category);if(QA(this.subcategories)&&!Array.isArray(this.subcategories))throw Error("Subcategories must be an array");if(M&&!QA(this.poi))throw Error("Poi ID is required with AVA mode with subcategories or category")}else{if(QA(this.category)&&!QA(this.building)&&!QA(this.floor))throw Error("Building and floor are required with category setted");if(QA(this.subcategories)&&!QA(this.building)&&!QA(this.floor)){if(!this.subcategories.length)throw Error("Subcategories are required");throw Error("Building and floor are required with subcategories setted")}if(QA(this.category)&&QA(this.subcategories))throw Error("Category and subcategories cannot be used together")}if(QA(this.route)&&!this.route.steps.length)throw Error("Steps are required");if(QA(this.mupiMode)&&!QA(this.poi))throw Error("Poi ID is required with mupi mode");if(QA(this.avaMode)&&!QA(this.poi))throw Error("Poi ID is required with ava mode")}},{key:"render",value:function(){this.finalize();var M=this.language&&oA(this.language)?this.language:"en";this.instance=new s["a"]({store:Object(I["d"])(),i18n:cA(M),data:{id:this.id,airport:this.airport,building:this.building,floor:this.floor,explorerMode:this.explorerMode,category:this.category,poi:this.poi,poiD:this.poiD,route:this.route,printMode:this.printMode,language:M,lat:this.lat,lon:this.lon,mupiMode:this.mupiMode,avaMode:this.avaMode,subcategories:this.subcategories,filtering:this.filtering,zonaubicacion:this.zonaubicacion},render:function(M){return M(Ru)}}).$mount(this.id)}},{key:"finalize",value:function(){this.instance&&(this.instance.$el.innerHTML="",this.instance.$destroy())}},{key:"getSelectedPoiId",value:function(){if(!this.instance||!this.instance.$store)return null;var M=this.instance.$store.getters.GET_POI;return M?M.properties.id:null}},{key:"getSelectedPoi",value:function(){return this.instance&&this.instance.$store?this.instance.$store.getters.GET_POI:null}},{key:"getOriginPoiId",value:function(){return this.instance&&this.instance.$store?this.instance.$store.getters.GET_POI_ID||this.instance.$store.getters.GET_POID_ID:null}},{key:"onPoiSelected",value:function(M){this.instance&&this.instance.$store&&"function"===typeof M&&this.instance.$store.watch((function(M){return M.poi}),(function(N){if(N)try{var D={id:N.properties.id,name:N.properties.attrs&&N.properties.attrs.pat_nombre,building:N.properties.building,floor:N.properties.level,subcategories:N.properties.subcategories,coordinates:N.geometry.coordinates,poi:N};M(D)}catch(Fu){console.error("Error in POI selection callback:",Fu)}}))}},{key:"onPoiClicked",value:function(M){this.instance&&(this.instance.$root.$data.onPoiClickCallback=M)}},{key:"renderError",value:function(M){var N=document.getElementById(this.id.split("#")[1]),D=document.createElement("div");D.style.width="100%",D.style.height="100%",D.style.display="flex",D.style.justifyContent="center",D.style.alignItems="center",D.style.backgroundColor="#9c9b9b",D.style.color="#fff",D.innerText=M.toString(),N.append(D)}}])}();function kA(M){var N=M.err,D=M.source,t=M.info;console.error("Error: ",N),console.error("Source: ",D),console.error("Extra info: ",t)}function QA(M){return void 0!==M&&null!==M}window.AMap=lA},"576c":function(M,N,D){(function(M,N){N(D("c1df"))})(0,(function(M){"use strict";
107
+ var N="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,e=M.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(M,t){return M?/-MMM-/.test(t)?D[M.month()]:N[M.month()]:N},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return e}))},"55dd":function(M,N,D){"use strict";var t=D("5ca1"),i=D("d8e8"),e=D("4bf8"),j=D("79e5"),T=[].sort,g=[1,2,3];t(t.P+t.F*(j((function(){g.sort(void 0)}))||!j((function(){g.sort(null)}))||!D("2f21")(T)),"Array",{sort:function(M){return void 0===M?T.call(e(this)):T.call(e(this),i(M))}})},5609:function(M,N,D){"use strict";D.d(N,"a",(function(){return t})),D.d(N,"b",(function(){return i})),D.d(N,"c",(function(){return e}));var t={LOAD_FULL_AIRPORT:"loadFullAirport",LOAD_AIRPORT:"loadAirport",SET_COORDINATES:"setCoordinates",BLOCK_BBOX:"blockBBOX",RESET_BBOX:"resetBBOX",LOAD_POIS_CATALOG:"loadPoisCatalog",LOAD_POIS_LIST:"loadPoisList",LOAD_TILES_BUILDING_FLOOR:"loadTilesBuildingFloor",LOAD_FLOOR:"loadFloor",LOAD_POI:"loadPOI",CLEAR_POI:"clearPOI",LOAD_ROUTE:"loadRoute",REMOVE_STEP:"removeStep",CLEAR_ROUTE:"clearRoute",MOVE_ROUTE:"moveRoute",GET_ROUTE:"getRoute",SET_DESTINATION_NAME:"setDestinationName",GET_LINE_ROUTE:"getLineRoute",LOAD_ACTIVE_FILTERS:"loadActiveFilters",LOAD_VIEW:"loadView",ADD_LAYER:"addLayer",UPDATE_LAYER:"updateLayer",DELETE_LAYER:"deleteLayer",SET_PMR_PROFILE:"setPMRProfile",SET_FEEDBACK:"setFeedback",LOAD_ACCESS_CONTROL_TIME:"loadAccessControlTime",SET_HOME_POSITION:"setHomePosition"},i={GET_DEVICE_WIDTH:"getDeviceWidth",GET_IS_MOBILE:"getIsMobile",GET_ID:"getId",GET_LANGUAGE:"getLanguage",GET_EXPLORERMODE:"getExplorerMode",GET_AIRPORT:"getAirport",GET_AIRPORT_ID:"getAirportId",GET_CARTOGRAPHY_TILES:"getCartographyTiles",GET_FLOOR:"getFloor",GET_CATEGORY:"getCategory",GET_SUBCATEGORIES:"getSubcategories",GET_BUILDING_ID:"getBuildingId",GET_FLOOR_ID:"getFloorId",GET_ROUTE_CONFIG:"getRouteConfig",GET_BUILDING:"getBuilding",GET_BUILDINGS:"getBuildings",GET_POI_ID:"getPOIId",GET_POID_ID:"getPOIDId",GET_POI:"getPOI",GET_POI_GROUPED:"getPOIGrouped",GET_BLOCK_BBOX:"getBlockBBOX",GET_BBOX:"getBBOX",GET_COORDINATES:"getCoordinates",GET_ZOOM:"getZoom",GET_ACCESS_TOKEN:"getAccessToken",GET_POIS_CATALOG:"getPoisCatalog",GET_POIS_LIST:"getPoisList",GET_TRANSITION_POIS_LIST:"getTransitionPoisList",GET_UNCATEGORIZED_POIS_LIST:"getuncategorizedPoisList",GET_ACTIVE_FILTERS:"getActiveFilters",GET_ROUTE:"getRoute",IS_ROUTE_MODE:"isRouteMode",HAS_ROUTE:"hasRoute",GET_ROUTE_DEFAULT_LEVEL_BUILDING:"getRouteDefaultLevelBuilding",GET_ORIGIN:"getOrigin",GET_DESTINATION:"getDestination",HAS_NEW_POINT:"hasNewPoint",GET_NEW_POINT:"getNewPoint",GET_VIEW:"getView",GET_LAYER_TREE:"getLayerTree",PMR_CONFIG_VISIBLE:"getPMRConfigVisibility",GET_PMR_PROFILE:"getPRMProfile",GET_DEFAULT_PMR_PROFILE:"getDefaultPRMProfile",GET_FEEDBACK:"getFeedback",GET_ROUTE_COUNT:"getRouteCount",GET_PRINTMODE:"getPrintMode",GET_LONLAT:"getLonLat",GET_INITIAL_BBOX:"getInitialBbox",GET_HOME_POSITION:"getHomePosition",IS_MUPI_MODE:"isMupiMode",GET_FILTERING:"getFiltering",GET_ZONAUBICACION:"getZonaubicacion"},e={SAVE_DEVICE_WIDTH:"saveDeviceWidth",SAVE_IS_MOBILE:"saveIsMobile",SAVE_CONFIG:"saveConfig",SET_COORDINATES:"setCoordinates",BLOCK_BBOX:"blockBBOX",SAVE_BBOX:"saveBBOX",SAVE_ACCESS_TOKEN:"saveAccessToken",SAVE_AIRPORT:"saveAirport",SAVE_CARTOGRAPHY_TILES:"saveCartographyTiles",SAVE_POIS_CATALOG:"savePoisCatalog",SAVE_POIS_LIST:"savePoisList",SAVE_TRANSITION_POIS_LIST:"saveTransitionPoisList",SAVE_UNCATEGORIZED_POIS_LIST:"saveuncategorizedPoisList",SAVE_POI:"savePoi",CLEAR_POI:"clearPOI",SAVE_TILES_BUILDING_FLOOR:"saveTilesBuildingFloor",SAVE_FLOOR:"saveFloor",SAVE_ACTIVE_FILTERS:"saveActiveFilters",SAVE_LAYER:"saveLayer",SAVE_ROUTE:"saveRoute",SAVE_DESTINATION_NAME_ROUTE:"saveDestinationNameRoute",SAVE_ROUTE_MODE:"saveRouteMode",SAVE_DEFAULT_LEVEL_BUILDING:"saveDefaultLevelBuilding",SAVE_VIEW:"saveView",REMOVE_LAYER:"removeLayer",SAVE_PMR_CONFIG_VISIBILITY:"SavePMRConfigVisibility",SAVE_PMR_PROFILE:"savePMRProfile",SAVE_FEEDBACK:"saveFeedback",SET_ROUTE_COUNT:"setRouteCount",SAVE_HOME_POSITION:"saveHomePosition",SAVE_FILTERING:"saveFiltering"}},"568a":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9InBvaS0vLXBwXzA3IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMTE5LDEzMSBMMzUsMTMxIEMyOC4zNzMsMTMxIDIzLDEyNS42MjcgMjMsMTE5IEwyMywzNSBDMjMsMjguMzczIDI4LjM3MywyMyAzNSwyMyBMMTE5LDIzIEMxMjUuNjI3LDIzIDEzMSwyOC4zNzMgMTMxLDM1IEwxMzEsMTE5IEMxMzEsMTI1LjYyNyAxMjUuNjI3LDEzMSAxMTksMTMxIiBpZD0iRmlsbC0zIiBmaWxsPSIjRkVDQjAwIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTYzLjkyMzEsNjEuOTI4NiBDNzEuODcxMSw2MS45Mjg2IDc0LjQ3OTEsNjcuOTM2NiA3OS4zMjExLDc3LjMyNzYgTDg0LjQ3MzEsODcuNTE5NiBMMTAwLjIyMzEsNzEuODc0NiBDMTAxLjY5NDEsNzAuNDAyNiAxMDMuODQ3MSw2OS45MTQ2IDEwNS43ODYxLDcwLjM2NTYgQzEwNi43ODAxLDcwLjU4NzYgMTA3LjY4MzEsNzEuMDc4NiAxMDguNDk0MSw3MS44Mjk2IEMxMTAuNzMzMSw3NC4wNjc2IDExMC43MzIxLDc3LjY5NTYgMTA4LjQ5NDEsNzkuOTMzNiBMODUuNTE2MSwxMDIuODE4NiBDODQuNjE0MSwxMDMuNzU1NiA4My4wMzcxLDEwNC4yNzI2IDgxLjQwOTEsMTA0LjIxNTYgQzc5LjMxNDEsMTA0LjE0MzYgNzcuNTE5MSwxMDIuOTUxNiA3Ni41ODAxLDEwMS4yMzg2IEw2Ny43NzAxLDgyLjQyMDYgTDY0Ljg2MTEsODIuNDIwNiBMNjQuODU4MSwxMjEuOTUyNiBMMzAuNDQ4MSwxMjEuOTUyNiBMMzAuNDQ3MjA4MiwxMjEuNTU2OTM0IEMzMC40MzYxMDc1LDExNi42MjcwMzUgMzAuMzI1MSw2Ny4xOTYzNSAzMC4zMjUxLDYxLjkyODYgTDYzLjkyMzEsNjEuOTI4NiBaIE0xMTguNjA5NywzOS4xNTkgQzEyMS4wNzg3LDM5LjE1OSAxMjMuMDgwNyw0MS4xNjEgMTIzLjA4MDcsNDMuNjI5IEwxMjMuMTIwNywxMjEuODc0IEw3OC4xNjk3LDEyMS44NzQgTDc4LjE2OTcsMTA0LjQ5NiBDNzkuMTE3NywxMDUuMDM5IDgwLjIwNDcsMTA1LjM3MiA4MS4zNjc3LDEwNS40MTIgQzgzLjIxNTcsMTA1LjQ4IDg1LjE1NDcsMTA0LjkwNiA4Ni4zNjE3LDEwMy42NjggTDEwOS4zNDA3LDgwLjc4NCBDMTEwLjI4NTcsNzkuODM5IDExMC44OTc3LDc4LjY5MiAxMTEuMTc5Nyw3Ny40OCBMMTEzLjQyNjcsNzcuNDggTDExMy40MjY3LDQ3LjE2MiBMOTguNzY4Nyw0Ny4xNjIgTDk4Ljc2ODcsNzEuNjI5IEw4NC43OTg3LDg1LjUwNiBMODAuMzg3Nyw3Ni43ODQgQzc5LjYwMTcsNzUuMjU3IDc4Ljg3MDcsNzMuODE4IDc4LjE2OTcsNzIuNDc5IEw3OC4xNjk3LDQzLjYyOSBDNzguMTY5Nyw0MS4xNjEgODAuMTcxNywzOS4xNTkgODIuNjQwNywzOS4xNTkgTDExOC42MDk3LDM5LjE1OSBaIE0xMTcuMjcxMSw0My4xMTkyIEw4NC4wNzgxLDQzLjExOTIgQzgzLjA5MDEsNDMuMTE5MiA4Mi4yODkxLDQzLjkxOTIgODIuMjg5MSw0NC45MDkyIEw4Mi4yODkxLDY4LjExMTIgQzgyLjI4OTEsNjkuMDk3MiA4My4wOTAxLDY5Ljg5OTIgODQuMDc4MSw2OS44OTkyIEw5Ny41NzAxLDY5Ljg5OTIgTDk3LjU3MDEsNDUuOTYzMiBMMTE0LjYyNTEsNDUuOTYzMiBMMTE0LjYyNTEsNjkuODk5MiBMMTE3LjI3MTEsNjkuODk5MiBDMTE4LjI2MDEsNjkuODk5MiAxMTkuMDYwMSw2OS4wOTcyIDExOS4wNjAxLDY4LjExMTIgTDExOS4wNjAxLDQ0LjkwOTIgQzExOS4wNjAxLDQzLjkxOTIgMTE4LjI2MDEsNDMuMTE5MiAxMTcuMjcxMSw0My4xMTkyIFogTTEwNi4wOTY5LDUyLjk1MjkgQzEwNi40NzI5LDUyLjk1MjkgMTA2Ljc3NTksNTMuMjY2OSAxMDYuNzc1OSw1My42NDA5IEwxMDYuNzcwOSw1Ny42NjE5IEwxMTIuMjgyOSw2MC44NzQ5IEwxMTIuMjgyOSw2Mi4yOTY5IEwxMDYuODA3OSw2MC42MTQ5IEwxMDYuODA3OSw2My41NTE5IEwxMDguMDQ2OSw2NC41NTg5IEwxMDguMDQ2OSw2NS42NjI5IEwxMDYuMTA2OSw2NS4wNzk5IEwxMDQuMTQ4OSw2NS42NjI5IEwxMDQuMTQ4OSw2NC41NTg5IEwxMDUuMzg3OSw2My41NTE5IEwxMDUuMzg3OSw2MC42MTQ5IEw5OS45MTM5LDYyLjI5NjkgTDk5LjkxMzksNjAuODc0OSBMMTA1LjQxOTksNTcuNjYxOSBMMTA1LjQyMTksNTMuNjMwOSBDMTA1LjQyMTksNTMuMjU1OSAxMDUuNzI0OSw1Mi45NTI5IDEwNi4wOTY5LDUyLjk1MjkgWiBNNDcuNDc2MiwzMS44NDUxIEM1NC43NDkyLDMxLjg0NTEgNjAuNjQ2MiwzNy43NDMxIDYwLjY0NjIsNDUuMDE3MSBDNjAuNjQ2Miw1Mi4yOTAxIDU0Ljc0OTIsNTguMTg3MSA0Ny40NzYyLDU4LjE4NzEgQzQwLjIwMDIsNTguMTg3MSAzNC4zMDUyLDUyLjI5MDEgMzQuMzA1Miw0NS4wMTcxIEMzNC4zMDUyLDM3Ljc0MzEgNDAuMjAwMiwzMS44NDUxIDQ3LjQ3NjIsMzEuODQ1MSBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+"},"569b":function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wYXBfMjEtbWsiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0xMzQsMTE5IEwxMzQsMzUgQzEzNCwyNi43MTYxNDU4IDEyNy4yODM4NTQsMjAgMTE5LDIwIEwzNSwyMCBDMjYuNzE2MTQ1OCwyMCAyMCwyNi43MTYxNDU4IDIwLDM1IEwyMCwxMTkgQzIwLDEyNy4yODM4NTQgMjYuNzE2MTQ1OCwxMzQgMzUsMTM0IEwxMTksMTM0IEMxMjcuMjgzODU0LDEzNCAxMzQsMTI3LjI4Mzg1NCAxMzQsMTE5IFoiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgPGcgaWQ9InBvaS0vLXBhcF8yMSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTksMTMxIEwzNSwxMzEgQzI4LjM3MywxMzEgMjMsMTI1LjYyNyAyMywxMTkgTDIzLDM1IEMyMywyOC4zNzMgMjguMzczLDIzIDM1LDIzIEwxMTksMjMgQzEyNS42MjcsMjMgMTMxLDI4LjM3MyAxMzEsMzUgTDEzMSwxMTkgQzEzMSwxMjUuNjI3IDEyNS42MjcsMTMxIDExOSwxMzEiIGlkPSJGaWxsLTMiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPHBhdGggZD0iTTM4LjkwMTksMTE0LjYwMzkgQzM4LjkwMTksMTExLjM5MTkgNDEuNTA1OSwxMDguNzg4OSA0NC43MTY5LDEwOC43ODg5IEM0Ny45Mjg5LDEwOC43ODg5IDUwLjUzMjksMTExLjM5MTkgNTAuNTMyOSwxMTQuNjAzOSBDNTAuNTMyOSwxMTcuODE0OSA0Ny45Mjg5LDEyMC40MTc5IDQ0LjcxNjksMTIwLjQxNzkgQzQxLjUwNTksMTIwLjQxNzkgMzguOTAxOSwxMTcuODE0OSAzOC45MDE5LDExNC42MDM5IEwzOC45MDE5LDExNC42MDM5IFogTTg5LjU5MTksMTE0LjYwMzkgQzg5LjU5MTksMTExLjM5MTkgOTIuMTk1OSwxMDguNzg4OSA5NS40MDc5LDEwOC43ODg5IEM5OC42MTk5LDEwOC43ODg5IDEwMS4yMjI5LDExMS4zOTE5IDEwMS4yMjI5LDExNC42MDM5IEMxMDEuMjIyOSwxMTcuODE0OSA5OC42MTk5LDEyMC40MTc5IDk1LjQwNzksMTIwLjQxNzkgQzkyLjE5NTksMTIwLjQxNzkgODkuNTkxOSwxMTcuODE0OSA4OS41OTE5LDExNC42MDM5IEw4OS41OTE5LDExNC42MDM5IFogTTk5LjQwNzksOTcuMjM5OSBMOTkuNDA3OSw1OC41MDE5IEM5OS40MDc5LDUyLjYxNzkgMTA0LjIxMjksNDguMDE0OSAxMTAuMDk2OSw0OC4wMTQ5IEwxMTYuMTk3OSw0OC4wMTQ5IEMxMTguMjk0OSw0OC4wMTQ5IDExOS45OTU5LDQ5LjcxNTkgMTE5Ljk5NTksNTEuODEyOSBDMTE5Ljk5NTksNTMuOTA5OSAxMTguMzExOSw1NS42MTA5IDExNi4yMTQ5LDU1LjYxMDkgTDExMC44MDE5LDU1LjYxMDkgQzEwOC43MDQ5LDU1LjYxMDkgMTA3LjAwMzksNTcuMjc4OSAxMDcuMDAzOSw1OS4zNzU5IEwxMDcuMDAzOSwxMDQuODIyOSBMMzcuNzkyOSwxMDQuODIyOSBDMzUuNjk0OSwxMDQuODIyOSAzMy45OTM5LDEwMy4xNDc5IDMzLjk5MzksMTAxLjA1MDkgQzMzLjk5MzksOTguOTUyOSAzNS43Mjk5LDk3LjIzOTkgMzcuODI4OSw5Ny4yMzk5IEw5OS40MDc5LDk3LjIzOTkgWiBNNTkuMTM2OSw1Ni4yODQ5IEw1OS4xMzY5LDUyLjA3MzkgQzU5LjEzNjksNTAuMzg4OSA2MC41MDI5LDQ5LjAyMTkgNjIuMTg2OSw0OS4wMjE5IEw3My40MzI5LDQ5LjAyMTkgQzc1LjExNzksNDkuMDIxOSA3Ni40ODI5LDUwLjM4ODkgNzYuNDgyOSw1Mi4wNzM5IEw3Ni40ODI5LDU2LjI4NDkgTDg5LjM0MjksNTYuMjgyOSBDOTIuNzEwOSw1Ni4yODI5IDk1LjQ0MDksNTkuMDEzOSA5NS40NDA5LDYyLjM4MDkgTDk1LjQ0MDksODcuMTYwOSBDOTUuNDQwOSw5MC41Mjk5IDkyLjcxMDksOTMuMjU4OSA4OS4zNDI5LDkzLjI1ODkgTDQ2LjI3NzksOTMuMjU4OSBDNDIuOTA4OSw5My4yNTg5IDQwLjE3ODksOTAuNTI5OSA0MC4xNzg5LDg3LjE2MDkgTDQwLjE3ODksNjIuMzgwOSBDNDAuMTc4OSw1OS4wMTM5IDQyLjkwODksNTYuMjgyOSA0Ni4yNzc5LDU2LjI4MjkgTDU5LjEzNjksNTYuMjg0OSBaIE03My45NjA5LDU2LjI4MjkgTDYxLjcwMTksNTYuMjgyOSBMNjEuNzAxOSw1My4xNjk5IEM2MS43MDE5LDUyLjI3NTkgNjIuNDI2OSw1MS41NTE5IDYzLjMxOTksNTEuNTUxOSBMNzIuMzUzOSw1MS41NTE5IEM3My4yNDc5LDUxLjU1MTkgNzMuOTcwOSw1Mi4yNzU5IDczLjk3MDksNTMuMTY5OSBMNzMuOTYwOSw1Ni4yODI5IFoiIGlkPSJGaWxsLTEiIGZpbGw9IiMzODJGMkQiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},"56d7":function(M,N,D){"use strict";D.r(N),D.d(N,"AMap",(function(){return kA}));D("6b54"),D("87b3"),D("2caf");function t(M,N){if(!(M instanceof N))throw new TypeError("Cannot call a class as a function")}var i=D("454f"),e=D.n(i),j=D("a6fa");function T(M,N){for(var D=0;D<N.length;D++){var t=N[D];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),e()(M,Object(j["a"])(t.key),t)}}function g(M,N,D){return N&&T(M.prototype,N),D&&T(M,D),e()(M,"prototype",{writable:!1}),M}D("28a5"),D("a481"),D("ac6a"),D("f3e2"),D("4917"),D("57e7"),D("cadf"),D("551c"),D("f751"),D("097d"),D("6d93"),D("2ce5");Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function M(){var N=isNaN(arguments[0])?1:Number(arguments[0]);return N?Array.prototype.reduce.call(this,(function(D,t){return Array.isArray(t)?D.push.apply(D,M.call(t,N-1)):D.push(t),D}),[]):Array.prototype.slice.call(this)},writable:!0}),Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(M){return Array.prototype.map.apply(this,arguments).flat()},writable:!0});var s=D("a026"),u=function(){var M=this,N=M._self._c;return N("div",{staticClass:"flughaveno-map",class:[M.deviceWidthClass],attrs:{id:M.appId}},[M.isPortrait?N("Modal",{scopedSlots:M._u([{key:"content",fn:function(){return[N("div",{staticClass:"modal-content-wrapper"},[N("Icon",{attrs:{icon:"rotar-tablet.svg",size:"48px",fill:"#ffffff"}}),N("p",[M._v(M._s(M.$t("HORIZONTAL_MESSAGE")))]),N("button",{staticClass:"btn-close",on:{click:M.closeModal}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#ffffff"}})],1)],1)]},proxy:!0}],null,!1,3100628582)}):M._e(),!M.explorerMode&&!M.routeConfig||M.printMode?M._e():N("div",{staticClass:"points-wrapper",class:{"route-mode":M.isRouteMode},attrs:{id:"points-wrapper"}},[M.loaded?N("AenaPoints",{on:{toggle:M.onPointsToggle}}):M._e()],1),M.explorerMode?[N("div",{staticClass:"terminal-selector-wrapper",class:{top:M.selectedPoi&&M.pointsDetailCollapsed}},[M.loaded?N("AenaTerminalSelector"):M._e()],1),N("div",{staticClass:"home-wrapper"},[N("AenaHomeButton")],1),M.printMode?M._e():N("div",{staticClass:"logo-wrapper"},[N("img",{attrs:{src:D("4c46"),alt:"CARTO logo","aria-roledescription":"logo"}})]),!M.printMode&&M.avaMode?N("div",{staticClass:"qr-wrapper"},[N("img",{staticClass:"qr-image",attrs:{src:D("ecc3"),alt:"qr","aria-roledescription":"qr"}})]):M._e(),"true"===M.pmr_enabled&&M.hasRoute&&!M.printMode?N("div",{staticClass:"pmr-wrapper"},[N("AenaPmr")],1):M._e(),M.printMode?M._e():N("div",{staticClass:"legend-wrapper"},[N("AenaLegend")],1),M.feedback&&!M.printMode?N("div",{staticClass:"feedback-wrapper"},[N("Feedback")],1):M._e(),M.printMode&&M.layers?N("Layers",{attrs:{layers:M.layers},on:{change:M.onLayerChange}}):M._e()]:M._e(),N("div",{staticClass:"map-wrapper"},[N("MapComponent",{ref:"map",attrs:{explorerMode:M.explorerMode,printMode:M.printMode,lat:M.lat,lon:M.lon,full_airport_loaded:M.loaded}})],1),M.loaded?M._e():N("div",{staticClass:"loading-airport"},[M._v("\n "+M._s(M.$t("LOADING_AIRPORT"))+"\n ")])],2)},z=[],A=(D("1c01"),D("58b2"),D("8e6e"),D("d25f"),D("456d"),D("7f7f"),D("6d67"),D("8ea5"),D("bd86")),L=(D("96cf"),D("3b8d")),I=D("4360"),n=D("2f62"),r=function(){var M=this,N=M._self._c;return N("div",{staticClass:"map-component",class:[M.deviceWidthClass]},[N("div",{staticClass:"map-component",attrs:{id:M.id}}),M._m(0)])},w=[function(){var M=this,N=M._self._c;return N("div",{staticClass:"attrib"},[N("div",{staticClass:"mapboxgl-ctrl-attrib-inner"},[M._v("©"),N("a",{attrs:{href:"https://aena.es/",target:"_blank",rel:"noopener"}},[M._v("Aena S.M.E, S.A")]),M._v(" ©"),N("a",{attrs:{href:"https://carto.com/",target:"_blank",rel:"noopener"}},[M._v("CARTO")]),M._v(" ©"),N("a",{attrs:{href:"http://www.openstreetmap.org/about/",target:"_blank"}},[M._v("OpenStreetMap")]),M._v(" contributors")])])}],c=(D("6762"),D("2fdb"),D("759f"),D("7618")),y=(D("6c7b"),D("0cd8"),D("75fc")),a=(D("7514"),D("ffc1"),D("e192")),o=(D("ac6d"),D("4e28"));function E(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function O(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?E(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):E(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var x={computed:O({},Object(n["c"])({poisList:I["b"].GET_POIS_LIST,uncategorizedPoisList:I["b"].GET_UNCATEGORIZED_POIS_LIST,hasRoute:I["b"].HAS_ROUTE,routeDefaultLevel:I["b"].GET_ROUTE_DEFAULT_LEVEL_BUILDING})),methods:O(O({},Object(n["b"])([I["a"].LOAD_FLOOR,I["a"].LOAD_POI])),{},{saveFloor:function(M){var N=M.buildingId,D=M.floorId,t=M.force,i=void 0!==t&&t,e=M.airportID,j=M.tag,T=void 0===j?"mapa":j,g=M.event,s=void 0!==g&&g,u=this.buildings.find((function(M){return M.id===N}));if(u){var z=this.routeDefaultLevel[u.id]?this.routeDefaultLevel[u.id]:D,A=!this.hasRoute||i?D:z,L=u.levels.find((function(M){return M.id===A}));if(s){var n="".concat(u.name,". Planta ").concat(L.name),r={eventCategory:T,eventAction:"clic",eventLabel:"".concat(Object(o["a"])(n)),language:this.$i18n.locale,airportID:e};window.digitalChange("event",r)}return this[I["a"].LOAD_FLOOR]({building:u,floor:L})}},findPoi:function(M){var N=this.poisList.features.find((function(N){return N.properties.id===M}));return N||(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N},savePoi:function(M){var N=M.poiId,D=M.pointGrouped,t=M.airportID,i=M.tag,e=this.findPoi(N),j=e.properties.level,T=e.properties.building;return this.saveFloor({buildingId:T,floorId:j,airportID:t,tag:i}),this[I["a"].LOAD_POI]({poi:e,pointGrouped:D})}})},C=(D("20d6"),D("5609")),S=D("d30b");function l(M,N,D){if(null!==M)for(var t,i,e,j,T,g,s,u,z=0,A=0,L=M.type,I="FeatureCollection"===L,n="Feature"===L,r=I?M.features.length:1,w=0;w<r;w++){s=I?M.features[w].geometry:n?M.geometry:M,u=!!s&&"GeometryCollection"===s.type,T=u?s.geometries.length:1;for(var c=0;c<T;c++){var y=0,a=0;if(j=u?s.geometries[c]:s,null!==j){g=j.coordinates;var o=j.type;switch(z=!D||"Polygon"!==o&&"MultiPolygon"!==o?0:1,o){case null:break;case"Point":if(!1===N(g,A,w,y,a))return!1;A++,y++;break;case"LineString":case"MultiPoint":for(t=0;t<g.length;t++){if(!1===N(g[t],A,w,y,a))return!1;A++,"MultiPoint"===o&&y++}"LineString"===o&&y++;break;case"Polygon":case"MultiLineString":for(t=0;t<g.length;t++){for(i=0;i<g[t].length-z;i++){if(!1===N(g[t][i],A,w,y,a))return!1;A++}"MultiLineString"===o&&y++,"Polygon"===o&&a++}"Polygon"===o&&y++;break;case"MultiPolygon":for(t=0;t<g.length;t++){for(a=0,i=0;i<g[t].length;i++){for(e=0;e<g[t][i].length-z;e++){if(!1===N(g[t][i][e],A,w,y,a))return!1;A++}a++}y++}break;case"GeometryCollection":for(t=0;t<j.geometries.length;t++)if(!1===l(j.geometries[t],N,D))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function k(M,N){if("Feature"===M.type)N(M,0);else if("FeatureCollection"===M.type)for(var D=0;D<M.features.length;D++)if(!1===N(M.features[D],D))break}function Q(M,N){void 0===N&&(N={});var D=0,t=0,i=0;return l(M,(function(M){D+=M[0],t+=M[1],i++}),!0),Object(S["g"])([D/i,t/i],N.properties)}var d=Q,Y=D("4703");function p(M,N,D){void 0===D&&(D=2);var t=Object(Y["a"])(M),i=Object(Y["a"])(N),e=t[0]-i[0],j=t[1]-i[1];return 1===D?Math.abs(e)+Math.abs(j):Math.pow(Math.pow(e,D)+Math.pow(j,D),1/D)}function U(M,N){N=N||{};var D=N.threshold||1e4,t=N.p||2,i=N.binary||!1,e=N.alpha||-1,j=N.standardization||!1,T=[];k(M,(function(M){T.push(d(M))}));for(var g=[],s=0;s<T.length;s++)g[s]=[];for(s=0;s<T.length;s++)for(var u=s;u<T.length;u++){s===u&&(g[s][u]=0);var z=p(T[s],T[u],t);g[s][u]=z,g[u][s]=z}for(s=0;s<T.length;s++)for(u=0;u<T.length;u++){z=g[s][u];0!==z&&(g[s][u]=i?z<=D?1:0:z<=D?Math.pow(z,e):0)}if(j)for(s=0;s<T.length;s++){var A=g[s].reduce((function(M,N){return M+N}),0);for(u=0;u<T.length;u++)g[s][u]=g[s][u]/A}return g}function h(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function f(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?h(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):h(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var m={computed:f({},Object(n["c"])({buildings:C["b"].GET_BUILDINGS})),methods:{getBuilding:function(M){return this.buildings.find((function(N){return N.id===M}))},setLocation:function(){var M=this,N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N.forEach((function(N){N.properties.location=M.getBuilding(N.properties.building)}))}}},v=D("8967");function B(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function b(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?B(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):B(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var P={mixins:[m],computed:b(b({},Object(n["c"])({routeC:C["b"].GET_ROUTE,originC:C["b"].GET_ORIGIN,destinationC:C["b"].GET_DESTINATION,newPoints:C["b"].GET_NEW_POINT,pmrProfile:C["b"].GET_PMR_PROFILE})),{},{steps:{get:function(){return this.routeC.steps},set:function(M){this[C["a"].MOVE_ROUTE]({steps:M})}},route:function(){return this.routeC.route},origin:function(){var M=this.originC;if(M)return this.setLocation([M]),M},destination:function(){var M=this.destinationC;if(M)return this.setLocation([M]),M},duration:function(){return this.routeC.duration},distance:function(){return this.routeC.distance},error:function(){return this.routeC.error},loading:function(){return this.routeC.loading},destinationName:function(){return this.routeC.destinationName},routeCondition:function(){var M,N,D,t,i,e,j="",T="",g="",s=null===this.pmrProfile?"hombre-caminando-t.svg":"pmr-t-green.svg";return this.route.some((function(j){var T=j.instructions.filter((function(M){return v["d"].includes(M.tag.type.toUpperCase())||v["c"].includes(M.tag.type.toUpperCase())||v["b"].includes(M.tag.type.toUpperCase())}));return M=T.filter((function(M){return M.tag.type.toUpperCase()===v["d"][0]})).length,D=T.filter((function(M){return M.tag.type.toUpperCase()===v["d"][1]})).length,e=T.filter((function(M){return M.tag.type.toUpperCase()===v["b"][0]})).length,N=M>1||M&&D,t=T.filter((function(M){return M.tag.type.toUpperCase()===v["c"][0]})).length,i=T.filter((function(M){return M.tag.type.toUpperCase()===v["c"][1]})).length,M||N||D||t||i})),N?(j="ROUTE_SECURITY_CONTROL_PLUS",s="icon-seguridad-t.svg"):M?(j="ROUTE_SECURITY_CONTROL",s="icon-seguridad-t.svg"):D&&(j="ROUTE_PASSPORT_CONTROL",s="cruza-el-control-de-pasaporte-jj.svg"),t&&i?(T="ROUTE_MULTI_TRANSPORT",s="transporte-publico-t.svg"):t?(T="ROUTE_TRAIN",s="metro-t.svg"):i&&(T="ROUTE_BUS",s="bus-grande-t.svg"),e&&(g="ROUTE_ONEWAY_NO_RETURN"),j||T||(T=null===this.pmrProfile?"ROUTE_NORMAL":"ROUTE_NORMAL_PMR"),j&&T&&(s="seguridad-transporte.svg"),{msg:j,msg2:T,msg3:g,icon:s,securityControl:!!M||!!D,oneWay:!!e}},iconCondition:function(){return this.routeCondition.icon},z:function(){return this.routeC.z}}),methods:b(b({},Object(n["b"])([C["a"].LOAD_ROUTE,C["a"].CLEAR_ROUTE,C["a"].MOVE_ROUTE,C["a"].SET_DESTINATION_NAME])),{},{moreClose:function(M){var N=M[0];if(this.origin||this.destination){var D={type:"FeatureCollection",features:[this.origin||this.destination].concat(Object(y["a"])(M))},t=U(D),i=t[0];i.shift();var e=Math.max.apply(Math,Object(y["a"])(i)),j=i.findIndex((function(M){return M===e}));N=M[j]}return N},setDestination:function(M){this[C["a"].SET_DESTINATION_NAME](M)}})},Z=D("db49"),G=function(){var M=this,N=M._self._c;return N("ul",{staticClass:"context-menu-container"},[M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"FROM_HERE",expression:"'FROM_HERE'"}],on:{click:function(N){return M.click("origin")}}}):M._e(),M.origin&&M.destination&&M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"ADD_POINT",expression:"'ADD_POINT'"}],on:{click:function(N){return M.click("step")}}}):M._e(),M.has_graph?N("li",{directives:[{name:"t",rawName:"v-t",value:"TO_HERE",expression:"'TO_HERE'"}],on:{click:function(N){return M.click("destination")}}}):M._e(),M.debugMode?N("li",{staticClass:"debug-li"},[N("p",{staticClass:"debug-header"},[M._v("EPSG: 4326")]),N("p",[N("span",{staticClass:"debug-header"},[M._v("Lat:")]),N("input",{ref:"lat",staticClass:"debug-text",domProps:{value:M.coordinates4326[0]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("lat")}}},[M._v("copy")])]),N("p",[N("span",{staticClass:"debug-header"},[M._v("Lon:")]),N("input",{ref:"lon",staticClass:"debug-text",domProps:{value:M.coordinates4326[1]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("lon")}}},[M._v("copy")])])]):M._e(),M.debugMode?N("li",[N("p",{staticClass:"debug-header"},[M._v("EPSG: 3857")]),N("p",[N("span",{staticClass:"debug-header"},[M._v("x:")]),N("input",{ref:"x",staticClass:"debug-text",domProps:{value:M.coordinates3857[0]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("x")}}},[M._v("copy")])]),N("p",[N("span",{staticClass:"debug-header"},[M._v("y:")]),N("input",{ref:"y",staticClass:"debug-text",domProps:{value:M.coordinates3857[1]}}),N("button",{staticClass:"btn-copy",on:{click:function(N){return M.copyText("y")}}},[M._v("copy")])])]):M._e()])},W=[],R=(D("c5f6"),function(M){M("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),M("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),M("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var N=1;N<=60;++N)M("EPSG:"+(32600+N),"+proj=utm +zone="+N+" +datum=WGS84 +units=m"),M("EPSG:"+(32700+N),"+proj=utm +zone="+N+" +south +datum=WGS84 +units=m");M.WGS84=M["EPSG:4326"],M["EPSG:3785"]=M["EPSG:3857"],M.GOOGLE=M["EPSG:3857"],M["EPSG:900913"]=M["EPSG:3857"],M["EPSG:102113"]=M["EPSG:3857"]}),X=1,_=2,H=3,F=4,V=5,J=6378137,q=6356752.314,K=.0066943799901413165,$=484813681109536e-20,MM=Math.PI/2,NM=.16666666666666666,DM=.04722222222222222,tM=.022156084656084655,iM=1e-10,eM=.017453292519943295,jM=57.29577951308232,TM=Math.PI/4,gM=2*Math.PI,sM=3.14159265359,uM={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},zM={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}},AM=/[\s_\-\/\(\)]/g;function LM(M,N){if(M[N])return M[N];var D,t,i=Object.keys(M),e=N.toLowerCase().replace(AM,""),j=-1;while(++j<i.length)if(D=i[j],t=D.toLowerCase().replace(AM,""),t===e)return M[D]}var IM=function(M){var N,D,t,i={},e=M.split("+").map((function(M){return M.trim()})).filter((function(M){return M})).reduce((function(M,N){var D=N.split("=");return D.push(!0),M[D[0].toLowerCase()]=D[1],M}),{}),j={proj:"projName",datum:"datumCode",rf:function(M){i.rf=parseFloat(M)},lat_0:function(M){i.lat0=M*eM},lat_1:function(M){i.lat1=M*eM},lat_2:function(M){i.lat2=M*eM},lat_ts:function(M){i.lat_ts=M*eM},lon_0:function(M){i.long0=M*eM},lon_1:function(M){i.long1=M*eM},lon_2:function(M){i.long2=M*eM},alpha:function(M){i.alpha=parseFloat(M)*eM},gamma:function(M){i.rectified_grid_angle=parseFloat(M)*eM},lonc:function(M){i.longc=M*eM},x_0:function(M){i.x0=parseFloat(M)},y_0:function(M){i.y0=parseFloat(M)},k_0:function(M){i.k0=parseFloat(M)},k:function(M){i.k0=parseFloat(M)},a:function(M){i.a=parseFloat(M)},b:function(M){i.b=parseFloat(M)},r:function(M){i.a=i.b=parseFloat(M)},r_a:function(){i.R_A=!0},zone:function(M){i.zone=parseInt(M,10)},south:function(){i.utmSouth=!0},towgs84:function(M){i.datum_params=M.split(",").map((function(M){return parseFloat(M)}))},to_meter:function(M){i.to_meter=parseFloat(M)},units:function(M){i.units=M;var N=LM(zM,M);N&&(i.to_meter=N.to_meter)},from_greenwich:function(M){i.from_greenwich=M*eM},pm:function(M){var N=LM(uM,M);i.from_greenwich=(N||parseFloat(M))*eM},nadgrids:function(M){"@null"===M?i.datumCode="none":i.nadgrids=M},axis:function(M){var N="ewnsud";3===M.length&&-1!==N.indexOf(M.substr(0,1))&&-1!==N.indexOf(M.substr(1,1))&&-1!==N.indexOf(M.substr(2,1))&&(i.axis=M)},approx:function(){i.approx=!0}};for(N in e)D=e[N],N in j?(t=j[N],"function"===typeof t?t(D):i[t]=D):i[N]=D;return"string"===typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i};class nM{static getId(M){const N=M.find(M=>Array.isArray(M)&&"ID"===M[0]);return N&&N.length>=3?{authority:N[1],code:parseInt(N[2],10)}:null}static convertUnit(M,N="unit"){if(!M||M.length<3)return{type:N,name:"unknown",conversion_factor:null};const D=M[1],t=parseFloat(M[2])||null,i=M.find(M=>Array.isArray(M)&&"ID"===M[0]),e=i?{authority:i[1],code:parseInt(i[2],10)}:null;return{type:N,name:D,conversion_factor:t,id:e}}static convertAxis(M){const N=M[1]||"Unknown";let D;const t=N.match(/^\((.)\)$/);if(t){const M=t[1].toUpperCase();if("E"===M)D="east";else if("N"===M)D="north";else{if("U"!==M)throw new Error("Unknown axis abbreviation: "+M);D="up"}}else D=M[2]?M[2].toLowerCase():"unknown";const i=M.find(M=>Array.isArray(M)&&"ORDER"===M[0]),e=i?parseInt(i[1],10):null,j=M.find(M=>Array.isArray(M)&&("LENGTHUNIT"===M[0]||"ANGLEUNIT"===M[0]||"SCALEUNIT"===M[0])),T=this.convertUnit(j);return{name:N,direction:D,unit:T,order:e}}static extractAxes(M){return M.filter(M=>Array.isArray(M)&&"AXIS"===M[0]).map(M=>this.convertAxis(M)).sort((M,N)=>(M.order||0)-(N.order||0))}static convert(M,N={}){switch(M[0]){case"PROJCRS":N.type="ProjectedCRS",N.name=M[1],N.base_crs=M.find(M=>Array.isArray(M)&&"BASEGEOGCRS"===M[0])?this.convert(M.find(M=>Array.isArray(M)&&"BASEGEOGCRS"===M[0])):null,N.conversion=M.find(M=>Array.isArray(M)&&"CONVERSION"===M[0])?this.convert(M.find(M=>Array.isArray(M)&&"CONVERSION"===M[0])):null;const D=M.find(M=>Array.isArray(M)&&"CS"===M[0]);D&&(N.coordinate_system={type:D[1],axis:this.extractAxes(M)});const t=M.find(M=>Array.isArray(M)&&"LENGTHUNIT"===M[0]);if(t){const M=this.convertUnit(t);N.coordinate_system.unit=M}N.id=this.getId(M);break;case"BASEGEOGCRS":case"GEOGCRS":N.type="GeographicCRS",N.name=M[1];const i=M.find(M=>Array.isArray(M)&&("DATUM"===M[0]||"ENSEMBLE"===M[0]));if(i){const D=this.convert(i);"ENSEMBLE"===i[0]?N.datum_ensemble=D:N.datum=D;const t=M.find(M=>Array.isArray(M)&&"PRIMEM"===M[0]);t&&"Greenwich"!==t[1]&&(D.prime_meridian={name:t[1],longitude:parseFloat(t[2])})}N.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(M)},N.id=this.getId(M);break;case"DATUM":N.type="GeodeticReferenceFrame",N.name=M[1],N.ellipsoid=M.find(M=>Array.isArray(M)&&"ELLIPSOID"===M[0])?this.convert(M.find(M=>Array.isArray(M)&&"ELLIPSOID"===M[0])):null;break;case"ENSEMBLE":N.type="DatumEnsemble",N.name=M[1],N.members=M.filter(M=>Array.isArray(M)&&"MEMBER"===M[0]).map(M=>({type:"DatumEnsembleMember",name:M[1],id:this.getId(M)}));const e=M.find(M=>Array.isArray(M)&&"ENSEMBLEACCURACY"===M[0]);e&&(N.accuracy=parseFloat(e[1]));const j=M.find(M=>Array.isArray(M)&&"ELLIPSOID"===M[0]);j&&(N.ellipsoid=this.convert(j)),N.id=this.getId(M);break;case"ELLIPSOID":N.type="Ellipsoid",N.name=M[1],N.semi_major_axis=parseFloat(M[2]),N.inverse_flattening=parseFloat(M[3]);M.find(M=>Array.isArray(M)&&"LENGTHUNIT"===M[0])&&this.convert(M.find(M=>Array.isArray(M)&&"LENGTHUNIT"===M[0]),N);break;case"CONVERSION":N.type="Conversion",N.name=M[1],N.method=M.find(M=>Array.isArray(M)&&"METHOD"===M[0])?this.convert(M.find(M=>Array.isArray(M)&&"METHOD"===M[0])):null,N.parameters=M.filter(M=>Array.isArray(M)&&"PARAMETER"===M[0]).map(M=>this.convert(M));break;case"METHOD":N.type="Method",N.name=M[1],N.id=this.getId(M);break;case"PARAMETER":N.type="Parameter",N.name=M[1],N.value=parseFloat(M[2]),N.unit=this.convertUnit(M.find(M=>Array.isArray(M)&&("LENGTHUNIT"===M[0]||"ANGLEUNIT"===M[0]||"SCALEUNIT"===M[0]))),N.id=this.getId(M);break;case"BOUNDCRS":N.type="BoundCRS";const T=M.find(M=>Array.isArray(M)&&"SOURCECRS"===M[0]);if(T){const M=T.find(M=>Array.isArray(M));N.source_crs=M?this.convert(M):null}const g=M.find(M=>Array.isArray(M)&&"TARGETCRS"===M[0]);if(g){const M=g.find(M=>Array.isArray(M));N.target_crs=M?this.convert(M):null}const s=M.find(M=>Array.isArray(M)&&"ABRIDGEDTRANSFORMATION"===M[0]);N.transformation=s?this.convert(s):null;break;case"ABRIDGEDTRANSFORMATION":if(N.type="Transformation",N.name=M[1],N.method=M.find(M=>Array.isArray(M)&&"METHOD"===M[0])?this.convert(M.find(M=>Array.isArray(M)&&"METHOD"===M[0])):null,N.parameters=M.filter(M=>Array.isArray(M)&&("PARAMETER"===M[0]||"PARAMETERFILE"===M[0])).map(M=>"PARAMETER"===M[0]?this.convert(M):"PARAMETERFILE"===M[0]?{name:M[1],value:M[2],id:{authority:"EPSG",code:8656}}:void 0),7===N.parameters.length){const M=N.parameters[6];"Scale difference"===M.name&&(M.value=Math.round(1e12*(M.value-1))/1e6)}N.id=this.getId(M);break;case"AXIS":N.coordinate_system||(N.coordinate_system={type:"unspecified",axis:[]}),N.coordinate_system.axis.push(this.convertAxis(M));break;case"LENGTHUNIT":const u=this.convertUnit(M,"LinearUnit");N.coordinate_system&&N.coordinate_system.axis&&N.coordinate_system.axis.forEach(M=>{M.unit||(M.unit=u)}),u.conversion_factor&&1!==u.conversion_factor&&N.semi_major_axis&&(N.semi_major_axis={value:N.semi_major_axis,unit:u});break;default:N.keyword=M[0];break}return N}}var rM=nM;class wM extends rM{static convert(M,N={}){return super.convert(M,N),N.coordinate_system&&"Cartesian"===N.coordinate_system.subtype&&delete N.coordinate_system,N.usage&&delete N.usage,N}}var cM=wM;class yM extends rM{static convert(M,N={}){super.convert(M,N);const D=M.find(M=>Array.isArray(M)&&"CS"===M[0]);D&&(N.coordinate_system={subtype:D[1],axis:this.extractAxes(M)});const t=M.find(M=>Array.isArray(M)&&"USAGE"===M[0]);if(t){const M=t.find(M=>Array.isArray(M)&&"SCOPE"===M[0]),D=t.find(M=>Array.isArray(M)&&"AREA"===M[0]),i=t.find(M=>Array.isArray(M)&&"BBOX"===M[0]);N.usage={},M&&(N.usage.scope=M[1]),D&&(N.usage.area=D[1]),i&&(N.usage.bbox=i.slice(1))}return N}}var aM=yM;function oM(M){return M.find(M=>Array.isArray(M)&&"USAGE"===M[0])?"2019":(M.find(M=>Array.isArray(M)&&"CS"===M[0])||"BOUNDCRS"===M[0]||"PROJCRS"===M[0]||M[0],"2015")}function EM(M){const N=oM(M),D="2019"===N?aM:cM;return D.convert(M)}function OM(M){const N=M.toUpperCase();return N.includes("PROJCRS")||N.includes("GEOGCRS")||N.includes("BOUNDCRS")||N.includes("VERTCRS")||N.includes("LENGTHUNIT")||N.includes("ANGLEUNIT")||N.includes("SCALEUNIT")?"WKT2":(N.includes("PROJCS")||N.includes("GEOGCS")||N.includes("LOCAL_CS")||N.includes("VERT_CS")||N.includes("UNIT"),"WKT1")}var xM=vM,CM=1,SM=2,lM=3,kM=4,QM=5,dM=-1,YM=/\s/,pM=/[A-Za-z]/,UM=/[A-Za-z84_]/,hM=/[,\]]/,fM=/[\d\.E\-\+]/;function mM(M){if("string"!==typeof M)throw new Error("not a string");this.text=M.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=CM}function vM(M){var N=new mM(M);return N.output()}function BM(M,N,D){Array.isArray(N)&&(D.unshift(N),N=null);var t=N?{}:M,i=D.reduce((function(M,N){return bM(N,M),M}),t);N&&(M[N]=i)}function bM(M,N){if(Array.isArray(M)){var D=M.shift();if("PARAMETER"===D&&(D=M.shift()),1===M.length)return Array.isArray(M[0])?(N[D]={},void bM(M[0],N[D])):void(N[D]=M[0]);if(M.length)if("TOWGS84"!==D){if("AXIS"===D)return D in N||(N[D]=[]),void N[D].push(M);var t;switch(Array.isArray(D)||(N[D]={}),D){case"UNIT":case"PRIMEM":case"VERT_DATUM":return N[D]={name:M[0].toLowerCase(),convert:M[1]},void(3===M.length&&bM(M[2],N[D]));case"SPHEROID":case"ELLIPSOID":return N[D]={name:M[0],a:M[1],rf:M[2]},void(4===M.length&&bM(M[3],N[D]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return M[0]=["name",M[0]],void BM(N,D,M);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return M[0]=["name",M[0]],BM(N,D,M),void(N[D].type=D);default:t=-1;while(++t<M.length)if(!Array.isArray(M[t]))return bM(M,N[D]);return BM(N,D,M)}}else N[D]=M;else N[D]=!0}else N[M]=!0}mM.prototype.readCharicter=function(){var M=this.text[this.place++];if(this.state!==kM)while(YM.test(M)){if(this.place>=this.text.length)return;M=this.text[this.place++]}switch(this.state){case CM:return this.neutral(M);case SM:return this.keyword(M);case kM:return this.quoted(M);case QM:return this.afterquote(M);case lM:return this.number(M);case dM:return}},mM.prototype.afterquote=function(M){if('"'===M)return this.word+='"',void(this.state=kM);if(hM.test(M))return this.word=this.word.trim(),void this.afterItem(M);throw new Error("havn't handled \""+M+'" in afterquote yet, index '+this.place)},mM.prototype.afterItem=function(M){return","===M?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=CM)):"]"===M?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=CM,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=dM))):void 0},mM.prototype.number=function(M){if(!fM.test(M)){if(hM.test(M))return this.word=parseFloat(this.word),void this.afterItem(M);throw new Error("havn't handled \""+M+'" in number yet, index '+this.place)}this.word+=M},mM.prototype.quoted=function(M){'"'!==M?this.word+=M:this.state=QM},mM.prototype.keyword=function(M){if(UM.test(M))this.word+=M;else{if("["===M){var N=[];return N.push(this.word),this.level++,null===this.root?this.root=N:this.currentObject.push(N),this.stack.push(this.currentObject),this.currentObject=N,void(this.state=CM)}if(!hM.test(M))throw new Error("havn't handled \""+M+'" in keyword yet, index '+this.place);this.afterItem(M)}},mM.prototype.neutral=function(M){if(pM.test(M))return this.word=M,void(this.state=SM);if('"'===M)return this.word="",void(this.state=kM);if(fM.test(M))return this.word=M,void(this.state=lM);if(!hM.test(M))throw new Error("havn't handled \""+M+'" in neutral yet, index '+this.place);this.afterItem(M)},mM.prototype.output=function(){while(this.place<this.text.length)this.readCharicter();if(this.state===dM)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var PM=.017453292519943295;function ZM(M){return M*PM}function GM(M){const N=(M.projName||"").toLowerCase().replace(/_/g," ");M.long0||!M.longc||"albers conic equal area"!==N&&"lambert azimuthal equal area"!==N||(M.long0=M.longc),M.lat_ts||!M.lat1||"stereographic south pole"!==N&&"polar stereographic (variant b)"!==N?M.lat_ts||!M.lat0||"polar stereographic"!==N&&"polar stereographic (variant a)"!==N||(M.lat_ts=M.lat0,M.lat0=ZM(M.lat0>0?90:-90),delete M.lat1):(M.lat0=ZM(M.lat1>0?90:-90),M.lat_ts=M.lat1,delete M.lat1)}function WM(M){let N={units:null,to_meter:void 0};return"string"===typeof M?(N.units=M.toLowerCase(),"metre"===N.units&&(N.units="meter"),"meter"===N.units&&(N.to_meter=1)):M&&M.name&&(N.units=M.name.toLowerCase(),"metre"===N.units&&(N.units="meter"),N.to_meter=M.conversion_factor),N}function RM(M){return"object"===typeof M?M.value*M.unit.conversion_factor:M}function XM(M,N){M.ellipsoid.radius?(N.a=M.ellipsoid.radius,N.rf=0):(N.a=RM(M.ellipsoid.semi_major_axis),void 0!==M.ellipsoid.inverse_flattening?N.rf=M.ellipsoid.inverse_flattening:void 0!==M.ellipsoid.semi_major_axis&&void 0!==M.ellipsoid.semi_minor_axis&&(N.rf=N.a/(N.a-RM(M.ellipsoid.semi_minor_axis))))}function _M(M,N={}){return M&&"object"===typeof M?"BoundCRS"===M.type?(_M(M.source_crs,N),M.transformation&&(M.transformation.method&&"NTv2"===M.transformation.method.name?N.nadgrids=M.transformation.parameters[0].value:N.datum_params=M.transformation.parameters.map(M=>M.value)),N):(Object.keys(M).forEach(D=>{const t=M[D];if(null!==t)switch(D){case"name":if(N.srsCode)break;N.name=t,N.srsCode=t;break;case"type":"GeographicCRS"===t?N.projName="longlat":"ProjectedCRS"===t&&M.conversion&&M.conversion.method&&(N.projName=M.conversion.method.name);break;case"datum":case"datum_ensemble":t.ellipsoid&&(N.ellps=t.ellipsoid.name,XM(t,N)),t.prime_meridian&&(N.from_greenwich=t.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":N.ellps=t.name,XM(t,N);break;case"prime_meridian":N.long0=(t.longitude||0)*Math.PI/180;break;case"coordinate_system":if(t.axis)if(N.axis=t.axis.map(M=>{const N=M.direction;if("east"===N)return"e";if("north"===N)return"n";if("west"===N)return"w";if("south"===N)return"s";throw new Error("Unknown axis direction: "+N)}).join("")+"u",t.unit){const{units:M,to_meter:D}=WM(t.unit);N.units=M,N.to_meter=D}else if(t.axis[0]&&t.axis[0].unit){const{units:M,to_meter:D}=WM(t.axis[0].unit);N.units=M,N.to_meter=D}break;case"id":t.authority&&t.code&&(N.title=t.authority+":"+t.code);break;case"conversion":t.method&&t.method.name&&(N.projName=t.method.name),t.parameters&&t.parameters.forEach(M=>{const D=M.name.toLowerCase().replace(/\s+/g,"_"),t=M.value;M.unit&&M.unit.conversion_factor?N[D]=t*M.unit.conversion_factor:"degree"===M.unit?N[D]=t*Math.PI/180:N[D]=t});break;case"unit":t.name&&(N.units=t.name.toLowerCase(),"metre"===N.units&&(N.units="meter")),t.conversion_factor&&(N.to_meter=t.conversion_factor);break;case"base_crs":_M(t,N),N.datumCode=t.id?t.id.authority+"_"+t.id.code:t.name;break;default:break}}),void 0!==N.latitude_of_false_origin&&(N.lat0=N.latitude_of_false_origin),void 0!==N.longitude_of_false_origin&&(N.long0=N.longitude_of_false_origin),void 0!==N.latitude_of_standard_parallel&&(N.lat0=N.latitude_of_standard_parallel,N.lat1=N.latitude_of_standard_parallel),void 0!==N.latitude_of_1st_standard_parallel&&(N.lat1=N.latitude_of_1st_standard_parallel),void 0!==N.latitude_of_2nd_standard_parallel&&(N.lat2=N.latitude_of_2nd_standard_parallel),void 0!==N.latitude_of_projection_centre&&(N.lat0=N.latitude_of_projection_centre),void 0!==N.longitude_of_projection_centre&&(N.longc=N.longitude_of_projection_centre),void 0!==N.easting_at_false_origin&&(N.x0=N.easting_at_false_origin),void 0!==N.northing_at_false_origin&&(N.y0=N.northing_at_false_origin),void 0!==N.latitude_of_natural_origin&&(N.lat0=N.latitude_of_natural_origin),void 0!==N.longitude_of_natural_origin&&(N.long0=N.longitude_of_natural_origin),void 0!==N.longitude_of_origin&&(N.long0=N.longitude_of_origin),void 0!==N.false_easting&&(N.x0=N.false_easting),N.easting_at_projection_centre&&(N.x0=N.easting_at_projection_centre),void 0!==N.false_northing&&(N.y0=N.false_northing),N.northing_at_projection_centre&&(N.y0=N.northing_at_projection_centre),void 0!==N.standard_parallel_1&&(N.lat1=N.standard_parallel_1),void 0!==N.standard_parallel_2&&(N.lat2=N.standard_parallel_2),void 0!==N.scale_factor_at_natural_origin&&(N.k0=N.scale_factor_at_natural_origin),void 0!==N.scale_factor_at_projection_centre&&(N.k0=N.scale_factor_at_projection_centre),void 0!==N.scale_factor_on_pseudo_standard_parallel&&(N.k0=N.scale_factor_on_pseudo_standard_parallel),void 0!==N.azimuth&&(N.alpha=N.azimuth),void 0!==N.azimuth_at_projection_centre&&(N.alpha=N.azimuth_at_projection_centre),N.angle_from_rectified_to_skew_grid&&(N.rectified_grid_angle=N.angle_from_rectified_to_skew_grid),GM(N),N):M}var HM=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function FM(M,N){var D=N[0],t=N[1];!(D in M)&&t in M&&(M[D]=M[t],3===N.length&&(M[D]=N[2](M[D])))}function VM(M){for(var N=Object.keys(M),D=0,t=N.length;D<t;++D){var i=N[D];-1!==HM.indexOf(i)&&JM(M[i]),"object"===typeof M[i]&&VM(M[i])}}function JM(M){if(M.AUTHORITY){var N=Object.keys(M.AUTHORITY)[0];N&&N in M.AUTHORITY&&(M.title=N+":"+M.AUTHORITY[N])}if("GEOGCS"===M.type?M.projName="longlat":"LOCAL_CS"===M.type?(M.projName="identity",M.local=!0):"object"===typeof M.PROJECTION?M.projName=Object.keys(M.PROJECTION)[0]:M.projName=M.PROJECTION,M.AXIS){for(var D="",t=0,i=M.AXIS.length;t<i;++t){var e=[M.AXIS[t][0].toLowerCase(),M.AXIS[t][1].toLowerCase()];-1!==e[0].indexOf("north")||("y"===e[0]||"lat"===e[0])&&"north"===e[1]?D+="n":-1!==e[0].indexOf("south")||("y"===e[0]||"lat"===e[0])&&"south"===e[1]?D+="s":-1!==e[0].indexOf("east")||("x"===e[0]||"lon"===e[0])&&"east"===e[1]?D+="e":-1===e[0].indexOf("west")&&("x"!==e[0]&&"lon"!==e[0]||"west"!==e[1])||(D+="w")}2===D.length&&(D+="u"),3===D.length&&(M.axis=D)}M.UNIT&&(M.units=M.UNIT.name.toLowerCase(),"metre"===M.units&&(M.units="meter"),M.UNIT.convert&&("GEOGCS"===M.type?M.DATUM&&M.DATUM.SPHEROID&&(M.to_meter=M.UNIT.convert*M.DATUM.SPHEROID.a):M.to_meter=M.UNIT.convert));var j=M.GEOGCS;function T(N){var D=M.to_meter||1;return N*D}"GEOGCS"===M.type&&(j=M),j&&(j.DATUM?M.datumCode=j.DATUM.name.toLowerCase():M.datumCode=j.name.toLowerCase(),"d_"===M.datumCode.slice(0,2)&&(M.datumCode=M.datumCode.slice(2)),"new_zealand_1949"===M.datumCode&&(M.datumCode="nzgd49"),"wgs_1984"!==M.datumCode&&"world_geodetic_system_1984"!==M.datumCode||("Mercator_Auxiliary_Sphere"===M.PROJECTION&&(M.sphere=!0),M.datumCode="wgs84"),"belge_1972"===M.datumCode&&(M.datumCode="rnb72"),j.DATUM&&j.DATUM.SPHEROID&&(M.ellps=j.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===M.ellps.toLowerCase().slice(0,13)&&(M.ellps="intl"),M.a=j.DATUM.SPHEROID.a,M.rf=parseFloat(j.DATUM.SPHEROID.rf,10)),j.DATUM&&j.DATUM.TOWGS84&&(M.datum_params=j.DATUM.TOWGS84),~M.datumCode.indexOf("osgb_1936")&&(M.datumCode="osgb36"),~M.datumCode.indexOf("osni_1952")&&(M.datumCode="osni52"),(~M.datumCode.indexOf("tm65")||~M.datumCode.indexOf("geodetic_datum_of_1965"))&&(M.datumCode="ire65"),"ch1903+"===M.datumCode&&(M.datumCode="ch1903"),~M.datumCode.indexOf("israel")&&(M.datumCode="isr93")),M.b&&!isFinite(M.b)&&(M.b=M.a),M.rectified_grid_angle&&(M.rectified_grid_angle=ZM(M.rectified_grid_angle));var g=function(N){return FM(M,N)},s=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",ZM],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",ZM],["x0","false_easting",T],["y0","false_northing",T],["long0","central_meridian",ZM],["lat0","latitude_of_origin",ZM],["lat0","standard_parallel_1",ZM],["lat1","standard_parallel_1",ZM],["lat2","standard_parallel_2",ZM],["azimuth","Azimuth"],["alpha","azimuth",ZM],["srsCode","name"]];s.forEach(g),GM(M)}var qM=function(M){if("object"===typeof M)return _M(M);const N=OM(M);var D=xM(M);if("WKT2"===N){const M=EM(D);return _M(M)}var t=D[0],i={};return bM(D,i),VM(i),i[t]};function KM(M){var N=this;if(2===arguments.length){var D=arguments[1];"string"===typeof D?"+"===D.charAt(0)?KM[M]=IM(arguments[1]):KM[M]=qM(arguments[1]):KM[M]=D}else if(1===arguments.length){if(Array.isArray(M))return M.map((function(M){Array.isArray(M)?KM.apply(N,M):KM(M)}));if("string"===typeof M){if(M in KM)return KM[M]}else"EPSG"in M?KM["EPSG:"+M.EPSG]=M:"ESRI"in M?KM["ESRI:"+M.ESRI]=M:"IAU2000"in M?KM["IAU2000:"+M.IAU2000]=M:console.log(M);return}}R(KM);var $M=KM;function MN(M){return"string"===typeof M}function NN(M){return M in $M}function DN(M){return 0!==M.indexOf("+")&&-1!==M.indexOf("[")||"object"===typeof M&&!("srsCode"in M)}var tN=["3857","900913","3785","102113"];function iN(M){var N=LM(M,"authority");if(N){var D=LM(N,"epsg");return D&&tN.indexOf(D)>-1}}function eN(M){var N=LM(M,"extension");if(N)return LM(N,"proj4")}function jN(M){return"+"===M[0]}function TN(M){if(!MN(M))return M.projName?M:qM(M);if(NN(M))return $M[M];if(DN(M)){var N=qM(M);if(iN(N))return $M["EPSG:3857"];var D=eN(N);return D?IM(D):N}return jN(M)?IM(M):void 0}var gN=TN,sN=function(M,N){var D,t;if(M=M||{},!N)return M;for(t in N)D=N[t],void 0!==D&&(M[t]=D);return M},uN=function(M,N,D){var t=M*N;return D/Math.sqrt(1-t*t)},zN=function(M){return M<0?-1:1},AN=function(M){return Math.abs(M)<=sM?M:M-zN(M)*gM},LN=function(M,N,D){var t=M*D,i=.5*M;return t=Math.pow((1-t)/(1+t),i),Math.tan(.5*(MM-N))/t},IN=function(M,N){for(var D,t,i=.5*M,e=MM-2*Math.atan(N),j=0;j<=15;j++)if(D=M*Math.sin(e),t=MM-2*Math.atan(N*Math.pow((1-D)/(1+D),i))-e,e+=t,Math.abs(t)<=1e-10)return e;return-9999};function nN(){var M=this.b/this.a;this.es=1-M*M,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=uN(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function rN(M){var N,D,t=M.x,i=M.y;if(i*jM>90&&i*jM<-90&&t*jM>180&&t*jM<-180)return null;if(Math.abs(Math.abs(i)-MM)<=iM)return null;if(this.sphere)N=this.x0+this.a*this.k0*AN(t-this.long0),D=this.y0+this.a*this.k0*Math.log(Math.tan(TM+.5*i));else{var e=Math.sin(i),j=LN(this.e,i,e);N=this.x0+this.a*this.k0*AN(t-this.long0),D=this.y0-this.a*this.k0*Math.log(j)}return M.x=N,M.y=D,M}function wN(M){var N,D,t=M.x-this.x0,i=M.y-this.y0;if(this.sphere)D=MM-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var e=Math.exp(-i/(this.a*this.k0));if(D=IN(this.e,e),-9999===D)return null}return N=AN(this.long0+t/(this.a*this.k0)),M.x=N,M.y=D,M}var cN=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"],yN={init:nN,forward:rN,inverse:wN,names:cN};function aN(){}function oN(M){return M}var EN=["longlat","identity"],ON={init:aN,forward:oN,inverse:oN,names:EN},xN=[yN,ON],CN={},SN=[];function lN(M,N){var D=SN.length;return M.names?(SN[D]=M,M.names.forEach((function(M){CN[M.toLowerCase()]=D})),this):(console.log(N),!0)}function kN(M){return M.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}function QN(M){if(!M)return!1;var N=M.toLowerCase();return"undefined"!==typeof CN[N]&&SN[CN[N]]?SN[CN[N]]:(N=kN(N),N in CN&&SN[CN[N]]?SN[CN[N]]:void 0)}function dN(){xN.forEach(lN)}var YN={start:dN,add:lN,get:QN},pN={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},UN=pN;const hN=UN.WGS84;function fN(M,N,D,t){var i=M*M,e=N*N,j=(i-e)/i,T=0;t?(M*=1-j*(NM+j*(DM+j*tM)),i=M*M,j=0):T=Math.sqrt(j);var g=(i-e)/e;return{es:j,e:T,ep2:g}}function mN(M,N,D,t,i){if(!M){var e=LM(UN,t);e||(e=hN),M=e.a,N=e.b,D=e.rf}return D&&!N&&(N=(1-1/D)*M),(0===D||Math.abs(M-N)<iM)&&(i=!0,N=M),{a:M,b:N,rf:D,sphere:i}}var vN={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.0276,-0.2167,0.2147,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-1.91514,1.60363,-9.09546,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,32.39344,-153.25684,-96.2266,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-8.393,0.749,-10.276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,1.25033e-7,4.6785e-8,5.6529e-8,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"61.55,-10.87,-40.19,39.4924,32.7221,32.8979,-9.994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"374,150,588"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"}};for(var BN in vN){var bN=vN[BN];bN.datumName&&(vN[bN.datumName]=bN)}var PN=vN;function ZN(M,N,D,t,i,e,j){var T={};return T.datum_type=void 0===M||"none"===M?V:F,N&&(T.datum_params=N.map(parseFloat),0===T.datum_params[0]&&0===T.datum_params[1]&&0===T.datum_params[2]||(T.datum_type=X),T.datum_params.length>3&&(0===T.datum_params[3]&&0===T.datum_params[4]&&0===T.datum_params[5]&&0===T.datum_params[6]||(T.datum_type=_,T.datum_params[3]*=$,T.datum_params[4]*=$,T.datum_params[5]*=$,T.datum_params[6]=T.datum_params[6]/1e6+1))),j&&(T.datum_type=H,T.grids=j),T.a=D,T.b=t,T.es=i,T.ep2=e,T}var GN=ZN,WN={};function RN(M,N,D){return N instanceof ArrayBuffer?XN(M,N,D):{ready:_N(M,N)}}function XN(M,N,D){var t=!0;void 0!==D&&!1===D.includeErrorFields&&(t=!1);var i=new DataView(N),e=qN(i),j=KN(i,e),T=MD(i,j,e,t),g={header:j,subgrids:T};return WN[M]=g,g}async function _N(M,N){for(var D=[],t=await N.getImageCount(),i=t-1;i>=0;i--){var e=await N.getImage(i),j=await e.readRasters(),T=j,g=[e.getWidth(),e.getHeight()],s=e.getBoundingBox().map(VN),u=[e.fileDirectory.ModelPixelScale[0],e.fileDirectory.ModelPixelScale[1]].map(VN),z=s[0]+(g[0]-1)*u[0],A=s[3]-(g[1]-1)*u[1],L=T[0],I=T[1],n=[];for(let M=g[1]-1;M>=0;M--)for(let N=g[0]-1;N>=0;N--){var r=M*g[0]+N;n.push([-JN(I[r]),JN(L[r])])}D.push({del:u,lim:g,ll:[-z,A],cvs:n})}var w={header:{nSubgrids:t},subgrids:D};return WN[M]=w,w}function HN(M){if(void 0===M)return null;var N=M.split(",");return N.map(FN)}function FN(M){if(0===M.length)return null;var N="@"===M[0];return N&&(M=M.slice(1)),"null"===M?{name:"null",mandatory:!N,grid:null,isNull:!0}:{name:M,mandatory:!N,grid:WN[M]||null,isNull:!1}}function VN(M){return M*Math.PI/180}function JN(M){return M/3600*Math.PI/180}function qN(M){var N=M.getInt32(8,!1);return 11!==N&&(N=M.getInt32(8,!0),11!==N&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function KN(M,N){return{nFields:M.getInt32(8,N),nSubgridFields:M.getInt32(24,N),nSubgrids:M.getInt32(40,N),shiftType:$N(M,56,64).trim(),fromSemiMajorAxis:M.getFloat64(120,N),fromSemiMinorAxis:M.getFloat64(136,N),toSemiMajorAxis:M.getFloat64(152,N),toSemiMinorAxis:M.getFloat64(168,N)}}function $N(M,N,D){return String.fromCharCode.apply(null,new Uint8Array(M.buffer.slice(N,D)))}function MD(M,N,D,t){for(var i=176,e=[],j=0;j<N.nSubgrids;j++){var T=DD(M,i,D),g=tD(M,i,T,D,t),s=Math.round(1+(T.upperLongitude-T.lowerLongitude)/T.longitudeInterval),u=Math.round(1+(T.upperLatitude-T.lowerLatitude)/T.latitudeInterval);e.push({ll:[JN(T.lowerLongitude),JN(T.lowerLatitude)],del:[JN(T.longitudeInterval),JN(T.latitudeInterval)],lim:[s,u],count:T.gridNodeCount,cvs:ND(g)});var z=16;!1===t&&(z=8),i+=176+T.gridNodeCount*z}return e}function ND(M){return M.map((function(M){return[JN(M.longitudeShift),JN(M.latitudeShift)]}))}function DD(M,N,D){return{name:$N(M,N+8,N+16).trim(),parent:$N(M,N+24,N+24+8).trim(),lowerLatitude:M.getFloat64(N+72,D),upperLatitude:M.getFloat64(N+88,D),lowerLongitude:M.getFloat64(N+104,D),upperLongitude:M.getFloat64(N+120,D),latitudeInterval:M.getFloat64(N+136,D),longitudeInterval:M.getFloat64(N+152,D),gridNodeCount:M.getInt32(N+168,D)}}function tD(M,N,D,t,i){var e=N+176,j=16;!1===i&&(j=8);for(var T=[],g=0;g<D.gridNodeCount;g++){var s={latitudeShift:M.getFloat32(e+g*j,t),longitudeShift:M.getFloat32(e+g*j+4,t)};!1!==i&&(s.latitudeAccuracy=M.getFloat32(e+g*j+8,t),s.longitudeAccuracy=M.getFloat32(e+g*j+12,t)),T.push(s)}return T}function iD(M,N){if(!(this instanceof iD))return new iD(M);N=N||function(M){if(M)throw M};var D=gN(M);if("object"===typeof D){var t=iD.projections.get(D.projName);if(t){if(D.datumCode&&"none"!==D.datumCode){var i=LM(PN,D.datumCode);i&&(D.datum_params=D.datum_params||(i.towgs84?i.towgs84.split(","):null),D.ellps=i.ellipse,D.datumName=i.datumName?i.datumName:D.datumCode)}D.k0=D.k0||1,D.axis=D.axis||"enu",D.ellps=D.ellps||"wgs84",D.lat1=D.lat1||D.lat0;var e=mN(D.a,D.b,D.rf,D.ellps,D.sphere),j=fN(e.a,e.b,e.rf,D.R_A),T=HN(D.nadgrids),g=D.datum||GN(D.datumCode,D.datum_params,e.a,e.b,j.es,j.ep2,T);sN(this,D),sN(this,t),this.a=e.a,this.b=e.b,this.rf=e.rf,this.sphere=e.sphere,this.es=j.es,this.e=j.e,this.ep2=j.ep2,this.datum=g,this.init(),N(null,this)}else N("Could not get projection name from: "+M)}else N("Could not parse to valid json: "+M)}iD.projections=YN,iD.projections.start();var eD=iD;function jD(M,N){return M.datum_type===N.datum_type&&(!(M.a!==N.a||Math.abs(M.es-N.es)>5e-11)&&(M.datum_type===X?M.datum_params[0]===N.datum_params[0]&&M.datum_params[1]===N.datum_params[1]&&M.datum_params[2]===N.datum_params[2]:M.datum_type!==_||M.datum_params[0]===N.datum_params[0]&&M.datum_params[1]===N.datum_params[1]&&M.datum_params[2]===N.datum_params[2]&&M.datum_params[3]===N.datum_params[3]&&M.datum_params[4]===N.datum_params[4]&&M.datum_params[5]===N.datum_params[5]&&M.datum_params[6]===N.datum_params[6]))}function TD(M,N,D){var t,i,e,j,T=M.x,g=M.y,s=M.z?M.z:0;if(g<-MM&&g>-1.001*MM)g=-MM;else if(g>MM&&g<1.001*MM)g=MM;else{if(g<-MM)return{x:-1/0,y:-1/0,z:M.z};if(g>MM)return{x:1/0,y:1/0,z:M.z}}return T>Math.PI&&(T-=2*Math.PI),i=Math.sin(g),j=Math.cos(g),e=i*i,t=D/Math.sqrt(1-N*e),{x:(t+s)*j*Math.cos(T),y:(t+s)*j*Math.sin(T),z:(t*(1-N)+s)*i}}function gD(M,N,D,t){var i,e,j,T,g,s,u,z,A,L,I,n,r,w,c,y,a=1e-12,o=a*a,E=30,O=M.x,x=M.y,C=M.z?M.z:0;if(i=Math.sqrt(O*O+x*x),e=Math.sqrt(O*O+x*x+C*C),i/D<a){if(w=0,e/D<a)return c=MM,y=-t,{x:M.x,y:M.y,z:M.z}}else w=Math.atan2(x,O);j=C/e,T=i/e,g=1/Math.sqrt(1-N*(2-N)*T*T),z=T*(1-N)*g,A=j*g,r=0;do{r++,u=D/Math.sqrt(1-N*A*A),y=i*z+C*A-u*(1-N*A*A),s=N*u/(u+y),g=1/Math.sqrt(1-s*(2-s)*T*T),L=T*(1-s)*g,I=j*g,n=I*z-L*A,z=L,A=I}while(n*n>o&&r<E);return c=Math.atan(I/Math.abs(L)),{x:w,y:c,z:y}}function sD(M,N,D){if(N===X)return{x:M.x+D[0],y:M.y+D[1],z:M.z+D[2]};if(N===_){var t=D[0],i=D[1],e=D[2],j=D[3],T=D[4],g=D[5],s=D[6];return{x:s*(M.x-g*M.y+T*M.z)+t,y:s*(g*M.x+M.y-j*M.z)+i,z:s*(-T*M.x+j*M.y+M.z)+e}}}function uD(M,N,D){if(N===X)return{x:M.x-D[0],y:M.y-D[1],z:M.z-D[2]};if(N===_){var t=D[0],i=D[1],e=D[2],j=D[3],T=D[4],g=D[5],s=D[6],u=(M.x-t)/s,z=(M.y-i)/s,A=(M.z-e)/s;return{x:u+g*z-T*A,y:-g*u+z+j*A,z:T*u-j*z+A}}}function zD(M){return M===X||M===_}var AD=function(M,N,D){if(jD(M,N))return D;if(M.datum_type===V||N.datum_type===V)return D;var t=M.a,i=M.es;if(M.datum_type===H){var e=LD(M,!1,D);if(0!==e)return;t=J,i=K}var j=N.a,T=N.b,g=N.es;if(N.datum_type===H&&(j=J,T=q,g=K),i===g&&t===j&&!zD(M.datum_type)&&!zD(N.datum_type))return D;if(D=TD(D,i,t),zD(M.datum_type)&&(D=sD(D,M.datum_type,M.datum_params)),zD(N.datum_type)&&(D=uD(D,N.datum_type,N.datum_params)),D=gD(D,g,j,T),N.datum_type===H){var s=LD(N,!0,D);if(0!==s)return}return D};function LD(M,N,D){if(null===M.grids||0===M.grids.length)return console.log("Grid shift grids not found"),-1;var t={x:-D.x,y:D.y},i={x:Number.NaN,y:Number.NaN},e=[];M:for(var j=0;j<M.grids.length;j++){var T=M.grids[j];if(e.push(T.name),T.isNull){i=t;break}if(null!==T.grid)for(var g=T.grid.subgrids,s=0,u=g.length;s<u;s++){var z=g[s],A=(Math.abs(z.del[1])+Math.abs(z.del[0]))/1e4,L=z.ll[0]-A,I=z.ll[1]-A,n=z.ll[0]+(z.lim[0]-1)*z.del[0]+A,r=z.ll[1]+(z.lim[1]-1)*z.del[1]+A;if(!(I>t.y||L>t.x||r<t.y||n<t.x)&&(i=ID(t,N,z),!isNaN(i.x)))break M}else if(T.mandatory)return console.log("Unable to find mandatory grid '"+T.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-t.x*jM+" "+t.y*jM+" tried: '"+e+"'"),-1):(D.x=-i.x,D.y=i.y,0)}function ID(M,N,D){var t={x:Number.NaN,y:Number.NaN};if(isNaN(M.x))return t;var i={x:M.x,y:M.y};i.x-=D.ll[0],i.y-=D.ll[1],i.x=AN(i.x-Math.PI)+Math.PI;var e=nD(i,D);if(N){if(isNaN(e.x))return t;e.x=i.x-e.x,e.y=i.y-e.y;var j,T,g=9,s=1e-12;do{if(T=nD(e,D),isNaN(T.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}j={x:i.x-(T.x+e.x),y:i.y-(T.y+e.y)},e.x+=j.x,e.y+=j.y}while(g--&&Math.abs(j.x)>s&&Math.abs(j.y)>s);if(g<0)return console.log("Inverse grid shift iterator failed to converge."),t;t.x=AN(e.x+D.ll[0]),t.y=e.y+D.ll[1]}else isNaN(e.x)||(t.x=M.x+e.x,t.y=M.y+e.y);return t}function nD(M,N){var D,t={x:M.x/N.del[0],y:M.y/N.del[1]},i={x:Math.floor(t.x),y:Math.floor(t.y)},e={x:t.x-1*i.x,y:t.y-1*i.y},j={x:Number.NaN,y:Number.NaN};if(i.x<0||i.x>=N.lim[0])return j;if(i.y<0||i.y>=N.lim[1])return j;D=i.y*N.lim[0]+i.x;var T={x:N.cvs[D][0],y:N.cvs[D][1]};D++;var g={x:N.cvs[D][0],y:N.cvs[D][1]};D+=N.lim[0];var s={x:N.cvs[D][0],y:N.cvs[D][1]};D--;var u={x:N.cvs[D][0],y:N.cvs[D][1]},z=e.x*e.y,A=e.x*(1-e.y),L=(1-e.x)*(1-e.y),I=(1-e.x)*e.y;return j.x=L*T.x+A*g.x+I*u.x+z*s.x,j.y=L*T.y+A*g.y+I*u.y+z*s.y,j}var rD=function(M,N,D){var t,i,e,j=D.x,T=D.y,g=D.z||0,s={};for(e=0;e<3;e++)if(!N||2!==e||void 0!==D.z)switch(0===e?(t=j,i=-1!=="ew".indexOf(M.axis[e])?"x":"y"):1===e?(t=T,i=-1!=="ns".indexOf(M.axis[e])?"y":"x"):(t=g,i="z"),M.axis[e]){case"e":s[i]=t;break;case"w":s[i]=-t;break;case"n":s[i]=t;break;case"s":s[i]=-t;break;case"u":void 0!==D[i]&&(s.z=t);break;case"d":void 0!==D[i]&&(s.z=-t);break;default:return null}return s},wD=function(M){var N={x:M[0],y:M[1]};return M.length>2&&(N.z=M[2]),M.length>3&&(N.m=M[3]),N},cD=function(M){yD(M.x),yD(M.y)};function yD(M){if("function"===typeof Number.isFinite){if(Number.isFinite(M))return;throw new TypeError("coordinates must be finite numbers")}if("number"!==typeof M||M!==M||!isFinite(M))throw new TypeError("coordinates must be finite numbers")}function aD(M,N){return(M.datum.datum_type===X||M.datum.datum_type===_||M.datum.datum_type===H)&&"WGS84"!==N.datumCode||(N.datum.datum_type===X||N.datum.datum_type===_||N.datum.datum_type===H)&&"WGS84"!==M.datumCode}function oD(M,N,D,t){var i;D=Array.isArray(D)?wD(D):{x:D.x,y:D.y,z:D.z,m:D.m};var e=void 0!==D.z;if(cD(D),M.datum&&N.datum&&aD(M,N)&&(i=new eD("WGS84"),D=oD(M,i,D,t),M=i),t&&"enu"!==M.axis&&(D=rD(M,!1,D)),"longlat"===M.projName)D={x:D.x*eM,y:D.y*eM,z:D.z||0};else if(M.to_meter&&(D={x:D.x*M.to_meter,y:D.y*M.to_meter,z:D.z||0}),D=M.inverse(D),!D)return;if(M.from_greenwich&&(D.x+=M.from_greenwich),D=AD(M.datum,N.datum,D),D)return N.from_greenwich&&(D={x:D.x-N.from_greenwich,y:D.y,z:D.z||0}),"longlat"===N.projName?D={x:D.x*jM,y:D.y*jM,z:D.z||0}:(D=N.forward(D),N.to_meter&&(D={x:D.x/N.to_meter,y:D.y/N.to_meter,z:D.z||0})),t&&"enu"!==N.axis?rD(N,!0,D):(D&&!e&&delete D.z,D)}var ED=eD("WGS84");function OD(M,N,D,t){var i,e,j;return Array.isArray(D)?(i=oD(M,N,D,t)||{x:NaN,y:NaN},D.length>2?"undefined"!==typeof M.name&&"geocent"===M.name||"undefined"!==typeof N.name&&"geocent"===N.name?"number"===typeof i.z?[i.x,i.y,i.z].concat(D.slice(3)):[i.x,i.y,D[2]].concat(D.slice(3)):[i.x,i.y].concat(D.slice(2)):[i.x,i.y]):(e=oD(M,N,D,t),j=Object.keys(D),2===j.length||j.forEach((function(t){if("undefined"!==typeof M.name&&"geocent"===M.name||"undefined"!==typeof N.name&&"geocent"===N.name){if("x"===t||"y"===t||"z"===t)return}else if("x"===t||"y"===t)return;e[t]=D[t]})),e)}function xD(M){return M instanceof eD?M:M.oProj?M.oProj:eD(M)}function CD(M,N,D){M=xD(M);var t,i=!1;return"undefined"===typeof N?(N=M,M=ED,i=!0):("undefined"!==typeof N.x||Array.isArray(N))&&(D=N,N=M,M=ED,i=!0),N=xD(N),D?OD(M,N,D):(t={forward:function(D,t){return OD(M,N,D,t)},inverse:function(D,t){return OD(N,M,D,t)}},i&&(t.oProj=N),t)}var SD=CD,lD=6,kD="AJSAJS",QD="AFAFAF",dD=65,YD=73,pD=79,UD=86,hD=90,fD={forward:mD,inverse:vD,toPoint:BD};function mD(M,N){return N=N||5,RD(ZD({lat:M[1],lon:M[0]}),N)}function vD(M){var N=GD(FD(M.toUpperCase()));return N.lat&&N.lon?[N.lon,N.lat,N.lon,N.lat]:[N.left,N.bottom,N.right,N.top]}function BD(M){var N=GD(FD(M.toUpperCase()));return N.lat&&N.lon?[N.lon,N.lat]:[(N.left+N.right)/2,(N.top+N.bottom)/2]}function bD(M){return M*(Math.PI/180)}function PD(M){return M/Math.PI*180}function ZD(M){var N,D,t,i,e,j,T,g,s,u=M.lat,z=M.lon,A=6378137,L=.00669438,I=.9996,n=bD(u),r=bD(z);s=Math.floor((z+180)/6)+1,180===z&&(s=60),u>=56&&u<64&&z>=3&&z<12&&(s=32),u>=72&&u<84&&(z>=0&&z<9?s=31:z>=9&&z<21?s=33:z>=21&&z<33?s=35:z>=33&&z<42&&(s=37)),N=6*(s-1)-180+3,g=bD(N),D=L/(1-L),t=A/Math.sqrt(1-L*Math.sin(n)*Math.sin(n)),i=Math.tan(n)*Math.tan(n),e=D*Math.cos(n)*Math.cos(n),j=Math.cos(n)*(r-g),T=A*((1-L/4-3*L*L/64-5*L*L*L/256)*n-(3*L/8+3*L*L/32+45*L*L*L/1024)*Math.sin(2*n)+(15*L*L/256+45*L*L*L/1024)*Math.sin(4*n)-35*L*L*L/3072*Math.sin(6*n));var w=I*t*(j+(1-i+e)*j*j*j/6+(5-18*i+i*i+72*e-58*D)*j*j*j*j*j/120)+5e5,c=I*(T+t*Math.tan(n)*(j*j/2+(5-i+9*e+4*e*e)*j*j*j*j/24+(61-58*i+i*i+600*e-330*D)*j*j*j*j*j*j/720));return u<0&&(c+=1e7),{northing:Math.round(c),easting:Math.round(w),zoneNumber:s,zoneLetter:WD(u)}}function GD(M){var N=M.northing,D=M.easting,t=M.zoneLetter,i=M.zoneNumber;if(i<0||i>60)return null;var e,j,T,g,s,u,z,A,L,I,n=.9996,r=6378137,w=.00669438,c=(1-Math.sqrt(1-w))/(1+Math.sqrt(1-w)),y=D-5e5,a=N;t<"N"&&(a-=1e7),A=6*(i-1)-180+3,e=w/(1-w),z=a/n,L=z/(r*(1-w/4-3*w*w/64-5*w*w*w/256)),I=L+(3*c/2-27*c*c*c/32)*Math.sin(2*L)+(21*c*c/16-55*c*c*c*c/32)*Math.sin(4*L)+151*c*c*c/96*Math.sin(6*L),j=r/Math.sqrt(1-w*Math.sin(I)*Math.sin(I)),T=Math.tan(I)*Math.tan(I),g=e*Math.cos(I)*Math.cos(I),s=r*(1-w)/Math.pow(1-w*Math.sin(I)*Math.sin(I),1.5),u=y/(j*n);var o=I-j*Math.tan(I)/s*(u*u/2-(5+3*T+10*g-4*g*g-9*e)*u*u*u*u/24+(61+90*T+298*g+45*T*T-252*e-3*g*g)*u*u*u*u*u*u/720);o=PD(o);var E,O=(u-(1+2*T+g)*u*u*u/6+(5-2*g+28*T-3*g*g+8*e+24*T*T)*u*u*u*u*u/120)/Math.cos(I);if(O=A+PD(O),M.accuracy){var x=GD({northing:M.northing+M.accuracy,easting:M.easting+M.accuracy,zoneLetter:M.zoneLetter,zoneNumber:M.zoneNumber});E={top:x.lat,right:x.lon,bottom:o,left:O}}else E={lat:o,lon:O};return E}function WD(M){var N="Z";return 84>=M&&M>=72?N="X":72>M&&M>=64?N="W":64>M&&M>=56?N="V":56>M&&M>=48?N="U":48>M&&M>=40?N="T":40>M&&M>=32?N="S":32>M&&M>=24?N="R":24>M&&M>=16?N="Q":16>M&&M>=8?N="P":8>M&&M>=0?N="N":0>M&&M>=-8?N="M":-8>M&&M>=-16?N="L":-16>M&&M>=-24?N="K":-24>M&&M>=-32?N="J":-32>M&&M>=-40?N="H":-40>M&&M>=-48?N="G":-48>M&&M>=-56?N="F":-56>M&&M>=-64?N="E":-64>M&&M>=-72?N="D":-72>M&&M>=-80&&(N="C"),N}function RD(M,N){var D="00000"+M.easting,t="00000"+M.northing;return M.zoneNumber+M.zoneLetter+XD(M.easting,M.northing,M.zoneNumber)+D.substr(D.length-5,N)+t.substr(t.length-5,N)}function XD(M,N,D){var t=_D(D),i=Math.floor(M/1e5),e=Math.floor(N/1e5)%20;return HD(i,e,t)}function _D(M){var N=M%lD;return 0===N&&(N=lD),N}function HD(M,N,D){var t=D-1,i=kD.charCodeAt(t),e=QD.charCodeAt(t),j=i+M-1,T=e+N,g=!1;j>hD&&(j=j-hD+dD-1,g=!0),(j===YD||i<YD&&j>YD||(j>YD||i<YD)&&g)&&j++,(j===pD||i<pD&&j>pD||(j>pD||i<pD)&&g)&&(j++,j===YD&&j++),j>hD&&(j=j-hD+dD-1),T>UD?(T=T-UD+dD-1,g=!0):g=!1,(T===YD||e<YD&&T>YD||(T>YD||e<YD)&&g)&&T++,(T===pD||e<pD&&T>pD||(T>pD||e<pD)&&g)&&(T++,T===YD&&T++),T>UD&&(T=T-UD+dD-1);var s=String.fromCharCode(j)+String.fromCharCode(T);return s}function FD(M){if(M&&0===M.length)throw"MGRSPoint coverting from nothing";var N,D=M.length,t=null,i="",e=0;while(!/[A-Z]/.test(N=M.charAt(e))){if(e>=2)throw"MGRSPoint bad conversion from: "+M;i+=N,e++}var j=parseInt(i,10);if(0===e||e+3>D)throw"MGRSPoint bad conversion from: "+M;var T=M.charAt(e++);if(T<="A"||"B"===T||"Y"===T||T>="Z"||"I"===T||"O"===T)throw"MGRSPoint zone letter "+T+" not handled: "+M;t=M.substring(e,e+=2);var g=_D(j),s=VD(t.charAt(0),g),u=JD(t.charAt(1),g);while(u<qD(T))u+=2e6;var z=D-e;if(z%2!==0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+M;var A,L,I,n,r,w=z/2,c=0,y=0;return w>0&&(A=1e5/Math.pow(10,w),L=M.substring(e,e+w),c=parseFloat(L)*A,I=M.substring(e+w),y=parseFloat(I)*A),n=c+s,r=y+u,{easting:n,northing:r,zoneLetter:T,zoneNumber:j,accuracy:A}}function VD(M,N){var D=kD.charCodeAt(N-1),t=1e5,i=!1;while(D!==M.charCodeAt(0)){if(D++,D===YD&&D++,D===pD&&D++,D>hD){if(i)throw"Bad character: "+M;D=dD,i=!0}t+=1e5}return t}function JD(M,N){if(M>"V")throw"MGRSPoint given invalid Northing "+M;var D=QD.charCodeAt(N-1),t=0,i=!1;while(D!==M.charCodeAt(0)){if(D++,D===YD&&D++,D===pD&&D++,D>UD){if(i)throw"Bad character: "+M;D=dD,i=!0}t+=1e5}return t}function qD(M){var N;switch(M){case"C":N=11e5;break;case"D":N=2e6;break;case"E":N=28e5;break;case"F":N=37e5;break;case"G":N=46e5;break;case"H":N=55e5;break;case"J":N=64e5;break;case"K":N=73e5;break;case"L":N=82e5;break;case"M":N=91e5;break;case"N":N=0;break;case"P":N=8e5;break;case"Q":N=17e5;break;case"R":N=26e5;break;case"S":N=35e5;break;case"T":N=44e5;break;case"U":N=53e5;break;case"V":N=62e5;break;case"W":N=7e6;break;case"X":N=79e5;break;default:N=-1}if(N>=0)return N;throw"Invalid zone letter: "+M}function KD(M,N,D){if(!(this instanceof KD))return new KD(M,N,D);if(Array.isArray(M))this.x=M[0],this.y=M[1],this.z=M[2]||0;else if("object"===typeof M)this.x=M.x,this.y=M.y,this.z=M.z||0;else if("string"===typeof M&&"undefined"===typeof N){var t=M.split(",");this.x=parseFloat(t[0],10),this.y=parseFloat(t[1],10),this.z=parseFloat(t[2],10)||0}else this.x=M,this.y=N,this.z=D||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}KD.fromMGRS=function(M){return new KD(BD(M))},KD.prototype.toMGRS=function(M){return mD([this.x,this.y],M)};var $D=KD,Mt=1,Nt=.25,Dt=.046875,tt=.01953125,it=.01068115234375,et=.75,jt=.46875,Tt=.013020833333333334,gt=.007120768229166667,st=.3645833333333333,ut=.005696614583333333,zt=.3076171875,At=function(M){var N=[];N[0]=Mt-M*(Nt+M*(Dt+M*(tt+M*it))),N[1]=M*(et-M*(Dt+M*(tt+M*it)));var D=M*M;return N[2]=D*(jt-M*(Tt+M*gt)),D*=M,N[3]=D*(st-M*ut),N[4]=D*M*zt,N},Lt=function(M,N,D,t){return D*=N,N*=N,t[0]*M-D*(t[1]+N*(t[2]+N*(t[3]+N*t[4])))},It=20,nt=function(M,N,D){for(var t=1/(1-N),i=M,e=It;e;--e){var j=Math.sin(i),T=1-N*j*j;if(T=(Lt(i,j,Math.cos(i),D)-M)*(T*Math.sqrt(T))*t,i-=T,Math.abs(T)<iM)return i}return i};function rt(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=At(this.es),this.ml0=Lt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function wt(M){var N,D,t,i=M.x,e=M.y,j=AN(i-this.long0),T=Math.sin(e),g=Math.cos(e);if(this.es){var s=g*j,u=Math.pow(s,2),z=this.ep2*Math.pow(g,2),A=Math.pow(z,2),L=Math.abs(g)>iM?Math.tan(e):0,I=Math.pow(L,2),n=Math.pow(I,2);N=1-this.es*Math.pow(T,2),s/=Math.sqrt(N);var r=Lt(e,T,g,this.en);D=this.a*(this.k0*s*(1+u/6*(1-I+z+u/20*(5-18*I+n+14*z-58*I*z+u/42*(61+179*n-n*I-479*I)))))+this.x0,t=this.a*(this.k0*(r-this.ml0+T*j*s/2*(1+u/12*(5-I+9*z+4*A+u/30*(61+n-58*I+270*z-330*I*z+u/56*(1385+543*n-n*I-3111*I))))))+this.y0}else{var w=g*Math.sin(j);if(Math.abs(Math.abs(w)-1)<iM)return 93;if(D=.5*this.a*this.k0*Math.log((1+w)/(1-w))+this.x0,t=g*Math.cos(j)/Math.sqrt(1-Math.pow(w,2)),w=Math.abs(t),w>=1){if(w-1>iM)return 93;t=0}else t=Math.acos(t);e<0&&(t=-t),t=this.a*this.k0*(t-this.lat0)+this.y0}return M.x=D,M.y=t,M}function ct(M){var N,D,t,i,e=(M.x-this.x0)*(1/this.a),j=(M.y-this.y0)*(1/this.a);if(this.es)if(N=this.ml0+j/this.k0,D=nt(N,this.es,this.en),Math.abs(D)<MM){var T=Math.sin(D),g=Math.cos(D),s=Math.abs(g)>iM?Math.tan(D):0,u=this.ep2*Math.pow(g,2),z=Math.pow(u,2),A=Math.pow(s,2),L=Math.pow(A,2);N=1-this.es*Math.pow(T,2);var I=e*Math.sqrt(N)/this.k0,n=Math.pow(I,2);N*=s,t=D-N*n/(1-this.es)*.5*(1-n/12*(5+3*A-9*u*A+u-4*z-n/30*(61+90*A-252*u*A+45*L+46*u-n/56*(1385+3633*A+4095*L+1574*L*A)))),i=AN(this.long0+I*(1-n/6*(1+2*A+u-n/20*(5+28*A+24*L+8*u*A+6*u-n/42*(61+662*A+1320*L+720*L*A))))/g)}else t=MM*zN(j),i=0;else{var r=Math.exp(e/this.k0),w=.5*(r-1/r),c=this.lat0+j/this.k0,y=Math.cos(c);N=Math.sqrt((1-Math.pow(y,2))/(1+Math.pow(w,2))),t=Math.asin(N),j<0&&(t=-t),i=0===w&&0===y?0:AN(Math.atan2(w,y)+this.long0)}return M.x=i,M.y=t,M}var yt=["Fast_Transverse_Mercator","Fast Transverse Mercator"],at={init:rt,forward:wt,inverse:ct,names:yt},ot=function(M){var N=Math.exp(M);return N=(N-1/N)/2,N},Et=function(M,N){M=Math.abs(M),N=Math.abs(N);var D=Math.max(M,N),t=Math.min(M,N)/(D||1);return D*Math.sqrt(1+Math.pow(t,2))},Ot=function(M){var N=1+M,D=N-1;return 0===D?M:M*Math.log(N)/D},xt=function(M){var N=Math.abs(M);return N=Ot(N*(1+N/(Et(1,N)+1))),M<0?-N:N},Ct=function(M,N){var D,t=2*Math.cos(2*N),i=M.length-1,e=M[i],j=0;while(--i>=0)D=t*e-j+M[i],j=e,e=D;return N+D*Math.sin(2*N)},St=function(M,N){var D,t=2*Math.cos(N),i=M.length-1,e=M[i],j=0;while(--i>=0)D=t*e-j+M[i],j=e,e=D;return Math.sin(N)*D},lt=function(M){var N=Math.exp(M);return N=(N+1/N)/2,N},kt=function(M,N,D){var t,i,e=Math.sin(N),j=Math.cos(N),T=ot(D),g=lt(D),s=2*j*g,u=-2*e*T,z=M.length-1,A=M[z],L=0,I=0,n=0;while(--z>=0)t=I,i=L,I=A,L=n,A=s*I-t-u*L+M[z],n=u*I-i+s*L;return s=e*g,u=j*T,[s*A-u*n,s*n+u*A]};function Qt(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(at.init.apply(this),this.forward=at.forward,this.inverse=at.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var M=this.es/(1+Math.sqrt(1-this.es)),N=M/(2-M),D=N;this.cgb[0]=N*(2+N*(-2/3+N*(N*(116/45+N*(26/45+N*(-2854/675)))-2))),this.cbg[0]=N*(N*(2/3+N*(4/3+N*(-82/45+N*(32/45+N*(4642/4725)))))-2),D*=N,this.cgb[1]=D*(7/3+N*(N*(-227/45+N*(2704/315+N*(2323/945)))-1.6)),this.cbg[1]=D*(5/3+N*(-16/15+N*(-13/9+N*(904/315+N*(-1522/945))))),D*=N,this.cgb[2]=D*(56/15+N*(-136/35+N*(-1262/105+N*(73814/2835)))),this.cbg[2]=D*(-26/15+N*(34/21+N*(1.6+N*(-12686/2835)))),D*=N,this.cgb[3]=D*(4279/630+N*(-332/35+N*(-399572/14175))),this.cbg[3]=D*(1237/630+N*(N*(-24832/14175)-2.4)),D*=N,this.cgb[4]=D*(4174/315+N*(-144838/6237)),this.cbg[4]=D*(-734/315+N*(109598/31185)),D*=N,this.cgb[5]=D*(601676/22275),this.cbg[5]=D*(444337/155925),D=Math.pow(N,2),this.Qn=this.k0/(1+N)*(1+D*(1/4+D*(1/64+D/256))),this.utg[0]=N*(N*(2/3+N*(-37/96+N*(1/360+N*(81/512+N*(-96199/604800)))))-.5),this.gtu[0]=N*(.5+N*(-2/3+N*(5/16+N*(41/180+N*(-127/288+N*(7891/37800)))))),this.utg[1]=D*(-1/48+N*(-1/15+N*(437/1440+N*(-46/105+N*(1118711/3870720))))),this.gtu[1]=D*(13/48+N*(N*(557/1440+N*(281/630+N*(-1983433/1935360)))-.6)),D*=N,this.utg[2]=D*(-17/480+N*(37/840+N*(209/4480+N*(-5569/90720)))),this.gtu[2]=D*(61/240+N*(-103/140+N*(15061/26880+N*(167603/181440)))),D*=N,this.utg[3]=D*(-4397/161280+N*(11/504+N*(830251/7257600))),this.gtu[3]=D*(49561/161280+N*(-179/168+N*(6601661/7257600))),D*=N,this.utg[4]=D*(-4583/161280+N*(108847/3991680)),this.gtu[4]=D*(34729/80640+N*(-3418889/1995840)),D*=N,this.utg[5]=D*(-20648693/638668800),this.gtu[5]=.6650675310896665*D;var t=Ct(this.cbg,this.lat0);this.Zb=-this.Qn*(t+St(this.gtu,2*t))}function dt(M){var N=AN(M.x-this.long0),D=M.y;D=Ct(this.cbg,D);var t=Math.sin(D),i=Math.cos(D),e=Math.sin(N),j=Math.cos(N);D=Math.atan2(t,j*i),N=Math.atan2(e*i,Et(t,i*j)),N=xt(Math.tan(N));var T,g,s=kt(this.gtu,2*D,2*N);return D+=s[0],N+=s[1],Math.abs(N)<=2.623395162778?(T=this.a*(this.Qn*N)+this.x0,g=this.a*(this.Qn*D+this.Zb)+this.y0):(T=1/0,g=1/0),M.x=T,M.y=g,M}function Yt(M){var N,D,t=(M.x-this.x0)*(1/this.a),i=(M.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,t/=this.Qn,Math.abs(t)<=2.623395162778){var e=kt(this.utg,2*i,2*t);i+=e[0],t+=e[1],t=Math.atan(ot(t));var j=Math.sin(i),T=Math.cos(i),g=Math.sin(t),s=Math.cos(t);i=Math.atan2(j*s,Et(g,s*T)),t=Math.atan2(g,s*T),N=AN(t+this.long0),D=Ct(this.cgb,i)}else N=1/0,D=1/0;return M.x=N,M.y=D,M}var pt=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"],Ut={init:Qt,forward:dt,inverse:Yt,names:pt},ht=function(M,N){if(void 0===M){if(M=Math.floor(30*(AN(N)+Math.PI)/Math.PI)+1,M<0)return 0;if(M>60)return 60}return M},ft="etmerc";function mt(){var M=ht(this.zone,this.long0);if(void 0===M)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(M)-183)*eM,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Ut.init.apply(this),this.forward=Ut.forward,this.inverse=Ut.inverse}var vt=["Universal Transverse Mercator System","utm"],Bt={init:mt,names:vt,dependsOn:ft},bt=function(M,N){return Math.pow((1-M)/(1+M),N)},Pt=20;function Zt(){var M=Math.sin(this.lat0),N=Math.cos(this.lat0);N*=N,this.rc=Math.sqrt(1-this.es)/(1-this.es*M*M),this.C=Math.sqrt(1+this.es*N*N/(1-this.es)),this.phic0=Math.asin(M/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+TM)/(Math.pow(Math.tan(.5*this.lat0+TM),this.C)*bt(this.e*M,this.ratexp))}function Gt(M){var N=M.x,D=M.y;return M.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*D+TM),this.C)*bt(this.e*Math.sin(D),this.ratexp))-MM,M.x=this.C*N,M}function Wt(M){for(var N=1e-14,D=M.x/this.C,t=M.y,i=Math.pow(Math.tan(.5*t+TM)/this.K,1/this.C),e=Pt;e>0;--e){if(t=2*Math.atan(i*bt(this.e*Math.sin(M.y),-.5*this.e))-MM,Math.abs(t-M.y)<N)break;M.y=t}return e?(M.x=D,M.y=t,M):null}var Rt=["gauss"],Xt={init:Zt,forward:Gt,inverse:Wt,names:Rt};function _t(){Xt.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function Ht(M){var N,D,t,i;return M.x=AN(M.x-this.long0),Xt.forward.apply(this,[M]),N=Math.sin(M.y),D=Math.cos(M.y),t=Math.cos(M.x),i=this.k0*this.R2/(1+this.sinc0*N+this.cosc0*D*t),M.x=i*D*Math.sin(M.x),M.y=i*(this.cosc0*N-this.sinc0*D*t),M.x=this.a*M.x+this.x0,M.y=this.a*M.y+this.y0,M}function Ft(M){var N,D,t,i,e;if(M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,M.x/=this.k0,M.y/=this.k0,e=Et(M.x,M.y)){var j=2*Math.atan2(e,this.R2);N=Math.sin(j),D=Math.cos(j),i=Math.asin(D*this.sinc0+M.y*N*this.cosc0/e),t=Math.atan2(M.x*N,e*this.cosc0*D-M.y*this.sinc0*N)}else i=this.phic0,t=0;return M.x=t,M.y=i,Xt.inverse.apply(this,[M]),M.x=AN(M.x+this.long0),M}var Vt=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"],Jt={init:_t,forward:Ht,inverse:Ft,names:Vt};function qt(M,N,D){return N*=D,Math.tan(.5*(MM+M))*Math.pow((1-N)/(1+N),.5*D)}function Kt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=iM&&(this.k0=.5*(1+zN(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=iM&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=iM&&Math.abs(Math.cos(this.lat_ts))>iM&&(this.k0=.5*this.cons*uN(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/LN(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=uN(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-MM,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function $t(M){var N,D,t,i,e,j,T=M.x,g=M.y,s=Math.sin(g),u=Math.cos(g),z=AN(T-this.long0);return Math.abs(Math.abs(T-this.long0)-Math.PI)<=iM&&Math.abs(g+this.lat0)<=iM?(M.x=NaN,M.y=NaN,M):this.sphere?(N=2*this.k0/(1+this.sinlat0*s+this.coslat0*u*Math.cos(z)),M.x=this.a*N*u*Math.sin(z)+this.x0,M.y=this.a*N*(this.coslat0*s-this.sinlat0*u*Math.cos(z))+this.y0,M):(D=2*Math.atan(this.ssfn_(g,s,this.e))-MM,i=Math.cos(D),t=Math.sin(D),Math.abs(this.coslat0)<=iM?(e=LN(this.e,g*this.con,this.con*s),j=2*this.a*this.k0*e/this.cons,M.x=this.x0+j*Math.sin(T-this.long0),M.y=this.y0-this.con*j*Math.cos(T-this.long0),M):(Math.abs(this.sinlat0)<iM?(N=2*this.a*this.k0/(1+i*Math.cos(z)),M.y=N*t):(N=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*t+this.cosX0*i*Math.cos(z))),M.y=N*(this.cosX0*t-this.sinX0*i*Math.cos(z))+this.y0),M.x=N*i*Math.sin(z)+this.x0,M))}function Mi(M){var N,D,t,i,e;M.x-=this.x0,M.y-=this.y0;var j=Math.sqrt(M.x*M.x+M.y*M.y);if(this.sphere){var T=2*Math.atan(j/(2*this.a*this.k0));return N=this.long0,D=this.lat0,j<=iM?(M.x=N,M.y=D,M):(D=Math.asin(Math.cos(T)*this.sinlat0+M.y*Math.sin(T)*this.coslat0/j),N=Math.abs(this.coslat0)<iM?this.lat0>0?AN(this.long0+Math.atan2(M.x,-1*M.y)):AN(this.long0+Math.atan2(M.x,M.y)):AN(this.long0+Math.atan2(M.x*Math.sin(T),j*this.coslat0*Math.cos(T)-M.y*this.sinlat0*Math.sin(T))),M.x=N,M.y=D,M)}if(Math.abs(this.coslat0)<=iM){if(j<=iM)return D=this.lat0,N=this.long0,M.x=N,M.y=D,M;M.x*=this.con,M.y*=this.con,t=j*this.cons/(2*this.a*this.k0),D=this.con*IN(this.e,t),N=this.con*AN(this.con*this.long0+Math.atan2(M.x,-1*M.y))}else i=2*Math.atan(j*this.cosX0/(2*this.a*this.k0*this.ms1)),N=this.long0,j<=iM?e=this.X0:(e=Math.asin(Math.cos(i)*this.sinX0+M.y*Math.sin(i)*this.cosX0/j),N=AN(this.long0+Math.atan2(M.x*Math.sin(i),j*this.cosX0*Math.cos(i)-M.y*this.sinX0*Math.sin(i)))),D=-1*IN(this.e,Math.tan(.5*(MM+e)));return M.x=N,M.y=D,M}var Ni=["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],Di={init:Kt,forward:$t,inverse:Mi,names:Ni,ssfn_:qt};function ti(){var M=this.lat0;this.lambda0=this.long0;var N=Math.sin(M),D=this.a,t=this.rf,i=1/t,e=2*i-Math.pow(i,2),j=this.e=Math.sqrt(e);this.R=this.k0*D*Math.sqrt(1-e)/(1-e*Math.pow(N,2)),this.alpha=Math.sqrt(1+e/(1-e)*Math.pow(Math.cos(M),4)),this.b0=Math.asin(N/this.alpha);var T=Math.log(Math.tan(Math.PI/4+this.b0/2)),g=Math.log(Math.tan(Math.PI/4+M/2)),s=Math.log((1+j*N)/(1-j*N));this.K=T-this.alpha*g+this.alpha*j/2*s}function ii(M){var N=Math.log(Math.tan(Math.PI/4-M.y/2)),D=this.e/2*Math.log((1+this.e*Math.sin(M.y))/(1-this.e*Math.sin(M.y))),t=-this.alpha*(N+D)+this.K,i=2*(Math.atan(Math.exp(t))-Math.PI/4),e=this.alpha*(M.x-this.lambda0),j=Math.atan(Math.sin(e)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(e))),T=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(e));return M.y=this.R/2*Math.log((1+Math.sin(T))/(1-Math.sin(T)))+this.y0,M.x=this.R*j+this.x0,M}function ei(M){var N=M.x-this.x0,D=M.y-this.y0,t=N/this.R,i=2*(Math.atan(Math.exp(D/this.R))-Math.PI/4),e=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(t)),j=Math.atan(Math.sin(t)/(Math.cos(this.b0)*Math.cos(t)-Math.sin(this.b0)*Math.tan(i))),T=this.lambda0+j/this.alpha,g=0,s=e,u=-1e3,z=0;while(Math.abs(s-u)>1e-7){if(++z>20)return;g=1/this.alpha*(Math.log(Math.tan(Math.PI/4+e/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(s))/2)),u=s,s=2*Math.atan(Math.exp(g))-Math.PI/2}return M.x=T,M.y=s,M}var ji=["somerc"],Ti={init:ti,forward:ii,inverse:ei,names:ji},gi=1e-7;function si(M){var N=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],D="object"===typeof M.projName?Object.keys(M.projName)[0]:M.projName;return"no_uoff"in M||"no_off"in M||-1!==N.indexOf(D)||-1!==N.indexOf(kN(D))}function ui(){var M,N,D,t,i,e,j,T,g,s,u,z=0,A=0,L=0,I=0,n=0,r=0,w=0;this.no_off=si(this),this.no_rot="no_rot"in this;var c=!1;"alpha"in this&&(c=!0);var y=!1;if("rectified_grid_angle"in this&&(y=!0),c&&(w=this.alpha),y&&(z=this.rectified_grid_angle),c||y)A=this.longc;else if(L=this.long1,n=this.lat1,I=this.long2,r=this.lat2,Math.abs(n-r)<=gi||(M=Math.abs(n))<=gi||Math.abs(M-MM)<=gi||Math.abs(Math.abs(this.lat0)-MM)<=gi||Math.abs(Math.abs(r)-MM)<=gi)throw new Error;var a=1-this.es;N=Math.sqrt(a),Math.abs(this.lat0)>iM?(T=Math.sin(this.lat0),D=Math.cos(this.lat0),M=1-this.es*T*T,this.B=D*D,this.B=Math.sqrt(1+this.es*this.B*this.B/a),this.A=this.B*this.k0*N/M,t=this.B*N/(D*Math.sqrt(M)),i=t*t-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=t,this.E*=Math.pow(LN(this.e,this.lat0,T),this.B)):(this.B=1/N,this.A=this.k0,this.E=t=i=1),c||y?(c?(u=Math.asin(Math.sin(w)/t),y||(z=w)):(u=z,w=Math.asin(t*Math.sin(u))),this.lam0=A-Math.asin(.5*(i-1/i)*Math.tan(u))/this.B):(e=Math.pow(LN(this.e,n,Math.sin(n)),this.B),j=Math.pow(LN(this.e,r,Math.sin(r)),this.B),i=this.E/e,g=(j-e)/(j+e),s=this.E*this.E,s=(s-j*e)/(s+j*e),M=L-I,M<-Math.pi?I-=gM:M>Math.pi&&(I+=gM),this.lam0=AN(.5*(L+I)-Math.atan(s*Math.tan(.5*this.B*(L-I))/g)/this.B),u=Math.atan(2*Math.sin(this.B*AN(L-this.lam0))/(i-1/i)),z=w=Math.asin(t*Math.sin(u))),this.singam=Math.sin(u),this.cosgam=Math.cos(u),this.sinrot=Math.sin(z),this.cosrot=Math.cos(z),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(t*t-1)/Math.cos(w))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*u,this.v_pole_n=this.ArB*Math.log(Math.tan(TM-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(TM+i))}function zi(M){var N,D,t,i,e,j,T,g,s={};if(M.x=M.x-this.lam0,Math.abs(Math.abs(M.y)-MM)>iM){if(e=this.E/Math.pow(LN(this.e,M.y,Math.sin(M.y)),this.B),j=1/e,N=.5*(e-j),D=.5*(e+j),i=Math.sin(this.B*M.x),t=(N*this.singam-i*this.cosgam)/D,Math.abs(Math.abs(t)-1)<iM)throw new Error;g=.5*this.ArB*Math.log((1-t)/(1+t)),j=Math.cos(this.B*M.x),T=Math.abs(j)<gi?this.A*M.x:this.ArB*Math.atan2(N*this.cosgam+i*this.singam,j)}else g=M.y>0?this.v_pole_n:this.v_pole_s,T=this.ArB*M.y;return this.no_rot?(s.x=T,s.y=g):(T-=this.u_0,s.x=g*this.cosrot+T*this.sinrot,s.y=T*this.cosrot-g*this.sinrot),s.x=this.a*s.x+this.x0,s.y=this.a*s.y+this.y0,s}function Ai(M){var N,D,t,i,e,j,T,g={};if(M.x=(M.x-this.x0)*(1/this.a),M.y=(M.y-this.y0)*(1/this.a),this.no_rot?(D=M.y,N=M.x):(D=M.x*this.cosrot-M.y*this.sinrot,N=M.y*this.cosrot+M.x*this.sinrot+this.u_0),t=Math.exp(-this.BrA*D),i=.5*(t-1/t),e=.5*(t+1/t),j=Math.sin(this.BrA*N),T=(j*this.cosgam+i*this.singam)/e,Math.abs(Math.abs(T)-1)<iM)g.x=0,g.y=T<0?-MM:MM;else{if(g.y=this.E/Math.sqrt((1+T)/(1-T)),g.y=IN(this.e,Math.pow(g.y,1/this.B)),g.y===1/0)throw new Error;g.x=-this.rB*Math.atan2(i*this.cosgam-j*this.singam,Math.cos(this.BrA*N))}return g.x+=this.lam0,g}var Li=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"],Ii={init:ui,forward:zi,inverse:Ai,names:Li};function ni(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<iM)){var M=this.b/this.a;this.e=Math.sqrt(1-M*M);var N=Math.sin(this.lat1),D=Math.cos(this.lat1),t=uN(this.e,N,D),i=LN(this.e,this.lat1,N),e=Math.sin(this.lat2),j=Math.cos(this.lat2),T=uN(this.e,e,j),g=LN(this.e,this.lat2,e),s=Math.abs(Math.abs(this.lat0)-MM)<iM?0:LN(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>iM?this.ns=Math.log(t/T)/Math.log(i/g):this.ns=N,isNaN(this.ns)&&(this.ns=N),this.f0=t/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(s,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function ri(M){var N=M.x,D=M.y;Math.abs(2*Math.abs(D)-Math.PI)<=iM&&(D=zN(D)*(MM-2*iM));var t,i,e=Math.abs(Math.abs(D)-MM);if(e>iM)t=LN(this.e,D,Math.sin(D)),i=this.a*this.f0*Math.pow(t,this.ns);else{if(e=D*this.ns,e<=0)return null;i=0}var j=this.ns*AN(N-this.long0);return M.x=this.k0*(i*Math.sin(j))+this.x0,M.y=this.k0*(this.rh-i*Math.cos(j))+this.y0,M}function wi(M){var N,D,t,i,e,j=(M.x-this.x0)/this.k0,T=this.rh-(M.y-this.y0)/this.k0;this.ns>0?(N=Math.sqrt(j*j+T*T),D=1):(N=-Math.sqrt(j*j+T*T),D=-1);var g=0;if(0!==N&&(g=Math.atan2(D*j,D*T)),0!==N||this.ns>0){if(D=1/this.ns,t=Math.pow(N/(this.a*this.f0),D),i=IN(this.e,t),-9999===i)return null}else i=-MM;return e=AN(g/this.ns+this.long0),M.x=e,M.y=i,M}var ci=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"],yi={init:ni,forward:ri,inverse:wi,names:ci};function ai(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function oi(M){var N,D,t,i,e,j,T,g=M.x,s=M.y,u=AN(g-this.long0);return N=Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.alfa*this.e/2),D=2*(Math.atan(this.k*Math.pow(Math.tan(s/2+this.s45),this.alfa)/N)-this.s45),t=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(D)+Math.sin(this.ad)*Math.cos(D)*Math.cos(t)),e=Math.asin(Math.cos(D)*Math.sin(t)/Math.cos(i)),j=this.n*e,T=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),M.y=T*Math.cos(j)/1,M.x=T*Math.sin(j)/1,this.czech||(M.y*=-1,M.x*=-1),M}function Ei(M){var N,D,t,i,e,j,T,g,s=M.x;M.x=M.y,M.y=s,this.czech||(M.y*=-1,M.x*=-1),j=Math.sqrt(M.x*M.x+M.y*M.y),e=Math.atan2(M.y,M.x),i=e/Math.sin(this.s0),t=2*(Math.atan(Math.pow(this.ro0/j,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),N=Math.asin(Math.cos(this.ad)*Math.sin(t)-Math.sin(this.ad)*Math.cos(t)*Math.cos(i)),D=Math.asin(Math.cos(t)*Math.sin(i)/Math.cos(N)),M.x=this.long0-D/this.alfa,T=N,g=0;var u=0;do{M.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(N/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(T))/(1-this.e*Math.sin(T)),this.e/2))-this.s45),Math.abs(T-M.y)<1e-10&&(g=1),T=M.y,u+=1}while(0===g&&u<15);return u>=15?null:M}var Oi=["Krovak","krovak"],xi={init:ai,forward:oi,inverse:Ei,names:Oi},Ci=function(M,N,D,t,i){return M*i-N*Math.sin(2*i)+D*Math.sin(4*i)-t*Math.sin(6*i)},Si=function(M){return 1-.25*M*(1+M/16*(3+1.25*M))},li=function(M){return.375*M*(1+.25*M*(1+.46875*M))},ki=function(M){return.05859375*M*M*(1+.75*M)},Qi=function(M){return M*M*M*(35/3072)},di=function(M,N,D){var t=N*D;return M/Math.sqrt(1-t*t)},Yi=function(M){return Math.abs(M)<MM?M:M-zN(M)*Math.PI},pi=function(M,N,D,t,i){var e,j;e=M/N;for(var T=0;T<15;T++)if(j=(M-(N*e-D*Math.sin(2*e)+t*Math.sin(4*e)-i*Math.sin(6*e)))/(N-2*D*Math.cos(2*e)+4*t*Math.cos(4*e)-6*i*Math.cos(6*e)),e+=j,Math.abs(j)<=1e-10)return e;return NaN};function Ui(){this.sphere||(this.e0=Si(this.es),this.e1=li(this.es),this.e2=ki(this.es),this.e3=Qi(this.es),this.ml0=this.a*Ci(this.e0,this.e1,this.e2,this.e3,this.lat0))}function hi(M){var N,D,t=M.x,i=M.y;if(t=AN(t-this.long0),this.sphere)N=this.a*Math.asin(Math.cos(i)*Math.sin(t)),D=this.a*(Math.atan2(Math.tan(i),Math.cos(t))-this.lat0);else{var e=Math.sin(i),j=Math.cos(i),T=di(this.a,this.e,e),g=Math.tan(i)*Math.tan(i),s=t*Math.cos(i),u=s*s,z=this.es*j*j/(1-this.es),A=this.a*Ci(this.e0,this.e1,this.e2,this.e3,i);N=T*s*(1-u*g*(1/6-(8-g+8*z)*u/120)),D=A-this.ml0+T*e/j*u*(.5+(5-g+6*z)*u/24)}return M.x=N+this.x0,M.y=D+this.y0,M}function fi(M){M.x-=this.x0,M.y-=this.y0;var N,D,t=M.x/this.a,i=M.y/this.a;if(this.sphere){var e=i+this.lat0;N=Math.asin(Math.sin(e)*Math.cos(t)),D=Math.atan2(Math.tan(t),Math.cos(e))}else{var j=this.ml0/this.a+i,T=pi(j,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(T)-MM)<=iM)return M.x=this.long0,M.y=MM,i<0&&(M.y*=-1),M;var g=di(this.a,this.e,Math.sin(T)),s=g*g*g/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(T),2),z=t*this.a/g,A=z*z;N=T-g*Math.tan(T)/s*z*z*(.5-(1+3*u)*z*z/24),D=z*(1-A*(u/3+(1+3*u)*u*A/15))/Math.cos(T)}return M.x=AN(D+this.long0),M.y=Yi(N),M}var mi=["Cassini","Cassini_Soldner","cass"],vi={init:Ui,forward:hi,inverse:fi,names:mi},Bi=function(M,N){var D;return M>1e-7?(D=M*N,(1-M*M)*(N/(1-D*D)-.5/M*Math.log((1-D)/(1+D)))):2*N},bi=1,Pi=2,Zi=3,Gi=4;function Wi(){var M,N=Math.abs(this.lat0);if(Math.abs(N-MM)<iM?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(N)<iM?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Bi(this.e,1),this.mmf=.5/(1-this.es),this.apa=Ki(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),M=Math.sin(this.lat0),this.sinb1=Bi(this.e,M)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*M*M)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Ri(M){var N,D,t,i,e,j,T,g,s,u,z=M.x,A=M.y;if(z=AN(z-this.long0),this.sphere){if(e=Math.sin(A),u=Math.cos(A),t=Math.cos(z),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(D=this.mode===this.EQUIT?1+u*t:1+this.sinph0*e+this.cosph0*u*t,D<=iM)return null;D=Math.sqrt(2/D),N=D*u*Math.sin(z),D*=this.mode===this.EQUIT?e:this.cosph0*e-this.sinph0*u*t}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(t=-t),Math.abs(A+this.lat0)<iM)return null;D=TM-.5*A,D=2*(this.mode===this.S_POLE?Math.cos(D):Math.sin(D)),N=D*Math.sin(z),D*=t}}else{switch(T=0,g=0,s=0,t=Math.cos(z),i=Math.sin(z),e=Math.sin(A),j=Bi(this.e,e),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(T=j/this.qp,g=Math.sqrt(1-T*T)),this.mode){case this.OBLIQ:s=1+this.sinb1*T+this.cosb1*g*t;break;case this.EQUIT:s=1+g*t;break;case this.N_POLE:s=MM+A,j=this.qp-j;break;case this.S_POLE:s=A-MM,j=this.qp+j;break}if(Math.abs(s)<iM)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:s=Math.sqrt(2/s),D=this.mode===this.OBLIQ?this.ymf*s*(this.cosb1*T-this.sinb1*g*t):(s=Math.sqrt(2/(1+g*t)))*T*this.ymf,N=this.xmf*s*g*i;break;case this.N_POLE:case this.S_POLE:j>=0?(N=(s=Math.sqrt(j))*i,D=t*(this.mode===this.S_POLE?s:-s)):N=D=0;break}}return M.x=this.a*N+this.x0,M.y=this.a*D+this.y0,M}function Xi(M){M.x-=this.x0,M.y-=this.y0;var N,D,t,i,e,j,T,g=M.x/this.a,s=M.y/this.a;if(this.sphere){var u,z=0,A=0;if(u=Math.sqrt(g*g+s*s),D=.5*u,D>1)return null;switch(D=2*Math.asin(D),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(A=Math.sin(D),z=Math.cos(D)),this.mode){case this.EQUIT:D=Math.abs(u)<=iM?0:Math.asin(s*A/u),g*=A,s=z*u;break;case this.OBLIQ:D=Math.abs(u)<=iM?this.lat0:Math.asin(z*this.sinph0+s*A*this.cosph0/u),g*=A*this.cosph0,s=(z-Math.sin(D)*this.sinph0)*u;break;case this.N_POLE:s=-s,D=MM-D;break;case this.S_POLE:D-=MM;break}N=0!==s||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(g,s):0}else{if(T=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(g/=this.dd,s*=this.dd,j=Math.sqrt(g*g+s*s),j<iM)return M.x=this.long0,M.y=this.lat0,M;i=2*Math.asin(.5*j/this.rq),t=Math.cos(i),g*=i=Math.sin(i),this.mode===this.OBLIQ?(T=t*this.sinb1+s*i*this.cosb1/j,e=this.qp*T,s=j*this.cosb1*t-s*this.sinb1*i):(T=s*i/j,e=this.qp*T,s=j*t)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(s=-s),e=g*g+s*s,!e)return M.x=this.long0,M.y=this.lat0,M;T=1-e/this.qp,this.mode===this.S_POLE&&(T=-T)}N=Math.atan2(g,s),D=$i(Math.asin(T),this.apa)}return M.x=AN(this.long0+N),M.y=D,M}var _i=.3333333333333333,Hi=.17222222222222222,Fi=.10257936507936508,Vi=.06388888888888888,Ji=.0664021164021164,qi=.016415012942191543;function Ki(M){var N,D=[];return D[0]=M*_i,N=M*M,D[0]+=N*Hi,D[1]=N*Vi,N*=M,D[0]+=N*Fi,D[1]+=N*Ji,D[2]=N*qi,D}function $i(M,N){var D=M+M;return M+N[0]*Math.sin(D)+N[1]*Math.sin(D+D)+N[2]*Math.sin(D+D+D)}var Me=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],Ne={init:Wi,forward:Ri,inverse:Xi,names:Me,S_POLE:bi,N_POLE:Pi,EQUIT:Zi,OBLIQ:Gi},De=function(M){return Math.abs(M)>1&&(M=M>1?1:-1),Math.asin(M)};function te(){Math.abs(this.lat1+this.lat2)<iM||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=uN(this.e3,this.sin_po,this.cos_po),this.qs1=Bi(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=uN(this.e3,this.sin_po,this.cos_po),this.qs2=Bi(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Bi(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>iM?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function ie(M){var N=M.x,D=M.y;this.sin_phi=Math.sin(D),this.cos_phi=Math.cos(D);var t=Bi(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*t)/this.ns0,e=this.ns0*AN(N-this.long0),j=i*Math.sin(e)+this.x0,T=this.rh-i*Math.cos(e)+this.y0;return M.x=j,M.y=T,M}function ee(M){var N,D,t,i,e,j;return M.x-=this.x0,M.y=this.rh-M.y+this.y0,this.ns0>=0?(N=Math.sqrt(M.x*M.x+M.y*M.y),t=1):(N=-Math.sqrt(M.x*M.x+M.y*M.y),t=-1),i=0,0!==N&&(i=Math.atan2(t*M.x,t*M.y)),t=N*this.ns0/this.a,this.sphere?j=Math.asin((this.c-t*t)/(2*this.ns0)):(D=(this.c-t*t)/this.ns0,j=this.phi1z(this.e3,D)),e=AN(i/this.ns0+this.long0),M.x=e,M.y=j,M}function je(M,N){var D,t,i,e,j,T=De(.5*N);if(M<iM)return T;for(var g=M*M,s=1;s<=25;s++)if(D=Math.sin(T),t=Math.cos(T),i=M*D,e=1-i*i,j=.5*e*e/t*(N/(1-g)-D/e+.5/M*Math.log((1-i)/(1+i))),T+=j,Math.abs(j)<=1e-7)return T;return null}var Te=["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],ge={init:te,forward:ie,inverse:ee,names:Te,phi1z:je};function se(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function ue(M){var N,D,t,i,e,j,T,g,s=M.x,u=M.y;return t=AN(s-this.long0),N=Math.sin(u),D=Math.cos(u),i=Math.cos(t),j=this.sin_p14*N+this.cos_p14*D*i,e=1,j>0||Math.abs(j)<=iM?(T=this.x0+this.a*e*D*Math.sin(t)/j,g=this.y0+this.a*e*(this.cos_p14*N-this.sin_p14*D*i)/j):(T=this.x0+this.infinity_dist*D*Math.sin(t),g=this.y0+this.infinity_dist*(this.cos_p14*N-this.sin_p14*D*i)),M.x=T,M.y=g,M}function ze(M){var N,D,t,i,e,j;return M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,M.x/=this.k0,M.y/=this.k0,(N=Math.sqrt(M.x*M.x+M.y*M.y))?(i=Math.atan2(N,this.rc),D=Math.sin(i),t=Math.cos(i),j=De(t*this.sin_p14+M.y*D*this.cos_p14/N),e=Math.atan2(M.x*D,N*this.cos_p14*t-M.y*this.sin_p14*D),e=AN(this.long0+e)):(j=this.phic0,e=0),M.x=e,M.y=j,M}var Ae=["gnom"],Le={init:se,forward:ue,inverse:ze,names:Ae},Ie=function(M,N){var D=1-(1-M*M)/(2*M)*Math.log((1-M)/(1+M));if(Math.abs(Math.abs(N)-D)<1e-6)return N<0?-1*MM:MM;for(var t,i,e,j,T=Math.asin(.5*N),g=0;g<30;g++)if(i=Math.sin(T),e=Math.cos(T),j=M*i,t=Math.pow(1-j*j,2)/(2*e)*(N/(1-M*M)-i/(1-j*j)+.5/M*Math.log((1-j)/(1+j))),T+=t,Math.abs(t)<=1e-10)return T;return NaN};function ne(){this.sphere||(this.k0=uN(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function re(M){var N,D,t=M.x,i=M.y,e=AN(t-this.long0);if(this.sphere)N=this.x0+this.a*e*Math.cos(this.lat_ts),D=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var j=Bi(this.e,Math.sin(i));N=this.x0+this.a*this.k0*e,D=this.y0+this.a*j*.5/this.k0}return M.x=N,M.y=D,M}function we(M){var N,D;return M.x-=this.x0,M.y-=this.y0,this.sphere?(N=AN(this.long0+M.x/this.a/Math.cos(this.lat_ts)),D=Math.asin(M.y/this.a*Math.cos(this.lat_ts))):(D=Ie(this.e,2*M.y*this.k0/this.a),N=AN(this.long0+M.x/(this.a*this.k0))),M.x=N,M.y=D,M}var ce=["cea"],ye={init:ne,forward:re,inverse:we,names:ce};function ae(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function oe(M){var N=M.x,D=M.y,t=AN(N-this.long0),i=Yi(D-this.lat0);return M.x=this.x0+this.a*t*this.rc,M.y=this.y0+this.a*i,M}function Ee(M){var N=M.x,D=M.y;return M.x=AN(this.long0+(N-this.x0)/(this.a*this.rc)),M.y=Yi(this.lat0+(D-this.y0)/this.a),M}var Oe=["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"],xe={init:ae,forward:oe,inverse:Ee,names:Oe},Ce=20;function Se(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Si(this.es),this.e1=li(this.es),this.e2=ki(this.es),this.e3=Qi(this.es),this.ml0=this.a*Ci(this.e0,this.e1,this.e2,this.e3,this.lat0)}function le(M){var N,D,t,i=M.x,e=M.y,j=AN(i-this.long0);if(t=j*Math.sin(e),this.sphere)Math.abs(e)<=iM?(N=this.a*j,D=-1*this.a*this.lat0):(N=this.a*Math.sin(t)/Math.tan(e),D=this.a*(Yi(e-this.lat0)+(1-Math.cos(t))/Math.tan(e)));else if(Math.abs(e)<=iM)N=this.a*j,D=-1*this.ml0;else{var T=di(this.a,this.e,Math.sin(e))/Math.tan(e);N=T*Math.sin(t),D=this.a*Ci(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+T*(1-Math.cos(t))}return M.x=N+this.x0,M.y=D+this.y0,M}function ke(M){var N,D,t,i,e,j,T,g,s;if(t=M.x-this.x0,i=M.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=iM)N=AN(t/this.a+this.long0),D=0;else{var u;for(j=this.lat0+i/this.a,T=t*t/this.a/this.a+j*j,g=j,e=Ce;e;--e)if(u=Math.tan(g),s=-1*(j*(g*u+1)-g-.5*(g*g+T)*u)/((g-j)/u-1),g+=s,Math.abs(s)<=iM){D=g;break}N=AN(this.long0+Math.asin(t*Math.tan(g)/this.a)/Math.sin(D))}else if(Math.abs(i+this.ml0)<=iM)D=0,N=AN(this.long0+t/this.a);else{var z,A,L,I,n;for(j=(this.ml0+i)/this.a,T=t*t/this.a/this.a+j*j,g=j,e=Ce;e;--e)if(n=this.e*Math.sin(g),z=Math.sqrt(1-n*n)*Math.tan(g),A=this.a*Ci(this.e0,this.e1,this.e2,this.e3,g),L=this.e0-2*this.e1*Math.cos(2*g)+4*this.e2*Math.cos(4*g)-6*this.e3*Math.cos(6*g),I=A/this.a,s=(j*(z*I+1)-I-.5*z*(I*I+T))/(this.es*Math.sin(2*g)*(I*I+T-2*j*I)/(4*z)+(j-I)*(z*L-2/Math.sin(2*g))-L),g-=s,Math.abs(s)<=iM){D=g;break}z=Math.sqrt(1-this.es*Math.pow(Math.sin(D),2))*Math.tan(D),N=AN(this.long0+Math.asin(t*z/this.a)/Math.sin(D))}return M.x=N,M.y=D,M}var Qe=["Polyconic","American_Polyconic","poly"],de={init:Se,forward:le,inverse:ke,names:Qe};function Ye(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function pe(M){var N,D=M.x,t=M.y,i=t-this.lat0,e=D-this.long0,j=i/$*1e-5,T=e,g=1,s=0;for(N=1;N<=10;N++)g*=j,s+=this.A[N]*g;var u,z,A=s,L=T,I=1,n=0,r=0,w=0;for(N=1;N<=6;N++)u=I*A-n*L,z=n*A+I*L,I=u,n=z,r=r+this.B_re[N]*I-this.B_im[N]*n,w=w+this.B_im[N]*I+this.B_re[N]*n;return M.x=w*this.a+this.x0,M.y=r*this.a+this.y0,M}function Ue(M){var N,D,t,i=M.x,e=M.y,j=i-this.x0,T=e-this.y0,g=T/this.a,s=j/this.a,u=1,z=0,A=0,L=0;for(N=1;N<=6;N++)D=u*g-z*s,t=z*g+u*s,u=D,z=t,A=A+this.C_re[N]*u-this.C_im[N]*z,L=L+this.C_im[N]*u+this.C_re[N]*z;for(var I=0;I<this.iterations;I++){var n,r,w=A,c=L,y=g,a=s;for(N=2;N<=6;N++)n=w*A-c*L,r=c*A+w*L,w=n,c=r,y+=(N-1)*(this.B_re[N]*w-this.B_im[N]*c),a+=(N-1)*(this.B_im[N]*w+this.B_re[N]*c);w=1,c=0;var o=this.B_re[1],E=this.B_im[1];for(N=2;N<=6;N++)n=w*A-c*L,r=c*A+w*L,w=n,c=r,o+=N*(this.B_re[N]*w-this.B_im[N]*c),E+=N*(this.B_im[N]*w+this.B_re[N]*c);var O=o*o+E*E;A=(y*o+a*E)/O,L=(a*o-y*E)/O}var x=A,C=L,S=1,l=0;for(N=1;N<=9;N++)S*=x,l+=this.D[N]*S;var k=this.lat0+l*$*1e5,Q=this.long0+C;return M.x=Q,M.y=k,M}var he=["New_Zealand_Map_Grid","nzmg"],fe={init:Ye,forward:pe,inverse:Ue,names:he};function me(){}function ve(M){var N=M.x,D=M.y,t=AN(N-this.long0),i=this.x0+this.a*t,e=this.y0+this.a*Math.log(Math.tan(Math.PI/4+D/2.5))*1.25;return M.x=i,M.y=e,M}function Be(M){M.x-=this.x0,M.y-=this.y0;var N=AN(this.long0+M.x/this.a),D=2.5*(Math.atan(Math.exp(.8*M.y/this.a))-Math.PI/4);return M.x=N,M.y=D,M}var be=["Miller_Cylindrical","mill"],Pe={init:me,forward:ve,inverse:Be,names:be},Ze=20;function Ge(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=At(this.es)}function We(M){var N,D,t=M.x,i=M.y;if(t=AN(t-this.long0),this.sphere){if(this.m)for(var e=this.n*Math.sin(i),j=Ze;j;--j){var T=(this.m*i+Math.sin(i)-e)/(this.m+Math.cos(i));if(i-=T,Math.abs(T)<iM)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;N=this.a*this.C_x*t*(this.m+Math.cos(i)),D=this.a*this.C_y*i}else{var g=Math.sin(i),s=Math.cos(i);D=this.a*Lt(i,g,s,this.en),N=this.a*t*s/Math.sqrt(1-this.es*g*g)}return M.x=N,M.y=D,M}function Re(M){var N,D,t,i;return M.x-=this.x0,t=M.x/this.a,M.y-=this.y0,N=M.y/this.a,this.sphere?(N/=this.C_y,t/=this.C_x*(this.m+Math.cos(N)),this.m?N=De((this.m*N+Math.sin(N))/this.n):1!==this.n&&(N=De(Math.sin(N)/this.n)),t=AN(t+this.long0),N=Yi(N)):(N=nt(M.y/this.a,this.es,this.en),i=Math.abs(N),i<MM?(i=Math.sin(N),D=this.long0+M.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(N)),t=AN(D)):i-iM<MM&&(t=this.long0)),M.x=t,M.y=N,M}var Xe=["Sinusoidal","sinu"],_e={init:Ge,forward:We,inverse:Re,names:Xe};function He(){}function Fe(M){var N=M.x,D=M.y,t=AN(N-this.long0),i=D,e=Math.PI*Math.sin(D);while(1){var j=-(i+Math.sin(i)-e)/(1+Math.cos(i));if(i+=j,Math.abs(j)<iM)break}i/=2,Math.PI/2-Math.abs(D)<iM&&(t=0);var T=.900316316158*this.a*t*Math.cos(i)+this.x0,g=1.4142135623731*this.a*Math.sin(i)+this.y0;return M.x=T,M.y=g,M}function Ve(M){var N,D;M.x-=this.x0,M.y-=this.y0,D=M.y/(1.4142135623731*this.a),Math.abs(D)>.999999999999&&(D=.999999999999),N=Math.asin(D);var t=AN(this.long0+M.x/(.900316316158*this.a*Math.cos(N)));t<-Math.PI&&(t=-Math.PI),t>Math.PI&&(t=Math.PI),D=(2*N+Math.sin(2*N))/Math.PI,Math.abs(D)>1&&(D=1);var i=Math.asin(D);return M.x=t,M.y=i,M}var Je=["Mollweide","moll"],qe={init:He,forward:Fe,inverse:Ve,names:Je};function Ke(){Math.abs(this.lat1+this.lat2)<iM||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Si(this.es),this.e1=li(this.es),this.e2=ki(this.es),this.e3=Qi(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=uN(this.e,this.sinphi,this.cosphi),this.ml1=Ci(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<iM?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=uN(this.e,this.sinphi,this.cosphi),this.ml2=Ci(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Ci(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function $e(M){var N,D=M.x,t=M.y;if(this.sphere)N=this.a*(this.g-t);else{var i=Ci(this.e0,this.e1,this.e2,this.e3,t);N=this.a*(this.g-i)}var e=this.ns*AN(D-this.long0),j=this.x0+N*Math.sin(e),T=this.y0+this.rh-N*Math.cos(e);return M.x=j,M.y=T,M}function Mj(M){var N,D,t,i;M.x-=this.x0,M.y=this.rh-M.y+this.y0,this.ns>=0?(D=Math.sqrt(M.x*M.x+M.y*M.y),N=1):(D=-Math.sqrt(M.x*M.x+M.y*M.y),N=-1);var e=0;if(0!==D&&(e=Math.atan2(N*M.x,N*M.y)),this.sphere)return i=AN(this.long0+e/this.ns),t=Yi(this.g-D/this.a),M.x=i,M.y=t,M;var j=this.g-D/this.a;return t=pi(j,this.e0,this.e1,this.e2,this.e3),i=AN(this.long0+e/this.ns),M.x=i,M.y=t,M}var Nj=["Equidistant_Conic","eqdc"],Dj={init:Ke,forward:$e,inverse:Mj,names:Nj};function tj(){this.R=this.a}function ij(M){var N,D,t=M.x,i=M.y,e=AN(t-this.long0);Math.abs(i)<=iM&&(N=this.x0+this.R*e,D=this.y0);var j=De(2*Math.abs(i/Math.PI));(Math.abs(e)<=iM||Math.abs(Math.abs(i)-MM)<=iM)&&(N=this.x0,D=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*j):this.y0+Math.PI*this.R*-Math.tan(.5*j));var T=.5*Math.abs(Math.PI/e-e/Math.PI),g=T*T,s=Math.sin(j),u=Math.cos(j),z=u/(s+u-1),A=z*z,L=z*(2/s-1),I=L*L,n=Math.PI*this.R*(T*(z-I)+Math.sqrt(g*(z-I)*(z-I)-(I+g)*(A-I)))/(I+g);e<0&&(n=-n),N=this.x0+n;var r=g+z;return n=Math.PI*this.R*(L*r-T*Math.sqrt((I+g)*(g+1)-r*r))/(I+g),D=i>=0?this.y0+n:this.y0-n,M.x=N,M.y=D,M}function ej(M){var N,D,t,i,e,j,T,g,s,u,z,A,L;return M.x-=this.x0,M.y-=this.y0,z=Math.PI*this.R,t=M.x/z,i=M.y/z,e=t*t+i*i,j=-Math.abs(i)*(1+e),T=j-2*i*i+t*t,g=-2*j+1+2*i*i+e*e,L=i*i/g+(2*T*T*T/g/g/g-9*j*T/g/g)/27,s=(j-T*T/3/g)/g,u=2*Math.sqrt(-s/3),z=3*L/s/u,Math.abs(z)>1&&(z=z>=0?1:-1),A=Math.acos(z)/3,D=M.y>=0?(-u*Math.cos(A+Math.PI/3)-T/3/g)*Math.PI:-(-u*Math.cos(A+Math.PI/3)-T/3/g)*Math.PI,N=Math.abs(t)<iM?this.long0:AN(this.long0+Math.PI*(e-1+Math.sqrt(1+2*(t*t-i*i)+e*e))/2/t),M.x=N,M.y=D,M}var jj=["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"],Tj={init:tj,forward:ij,inverse:ej,names:jj},gj=D("7bce");function sj(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.g=new gj["Geodesic"].Geodesic(this.a,this.es/(1+Math.sqrt(1-this.es)))}function uj(M){var N,D,t,i,e,j,T,g,s,u,z,A,L,I,n,r=M.x,w=M.y,c=Math.sin(M.y),y=Math.cos(M.y),a=AN(r-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=iM?(M.x=this.x0+this.a*(MM-w)*Math.sin(a),M.y=this.y0-this.a*(MM-w)*Math.cos(a),M):Math.abs(this.sin_p12+1)<=iM?(M.x=this.x0+this.a*(MM+w)*Math.sin(a),M.y=this.y0+this.a*(MM+w)*Math.cos(a),M):(s=this.sin_p12*c+this.cos_p12*y*Math.cos(a),T=Math.acos(s),g=T?T/Math.sin(T):1,M.x=this.x0+this.a*g*y*Math.sin(a),M.y=this.y0+this.a*g*(this.cos_p12*c-this.sin_p12*y*Math.cos(a)),M):(N=Si(this.es),D=li(this.es),t=ki(this.es),i=Qi(this.es),Math.abs(this.sin_p12-1)<=iM?(e=this.a*Ci(N,D,t,i,MM),j=this.a*Ci(N,D,t,i,w),M.x=this.x0+(e-j)*Math.sin(a),M.y=this.y0-(e-j)*Math.cos(a),M):Math.abs(this.sin_p12+1)<=iM?(e=this.a*Ci(N,D,t,i,MM),j=this.a*Ci(N,D,t,i,w),M.x=this.x0+(e+j)*Math.sin(a),M.y=this.y0+(e+j)*Math.cos(a),M):Math.abs(r)<iM&&Math.abs(w-this.lat0)<iM?(M.x=M.y=0,M):(u=this.lat0/eM,z=this.long0/eM,A=w/eM,L=r/eM,I=this.g.Inverse(u,z,A,L,this.g.AZIMUTH),n=I.azi1*eM,M.x=I.s12*Math.sin(n),M.y=I.s12*Math.cos(n),M))}function zj(M){var N,D,t,i,e,j,T,g,s,u,z,A,L,I,n,r,w,c;if(M.x-=this.x0,M.y-=this.y0,this.sphere){if(N=Math.sqrt(M.x*M.x+M.y*M.y),N>2*MM*this.a)return;return D=N/this.a,t=Math.sin(D),i=Math.cos(D),e=this.long0,Math.abs(N)<=iM?j=this.lat0:(j=De(i*this.sin_p12+M.y*t*this.cos_p12/N),T=Math.abs(this.lat0)-MM,e=Math.abs(T)<=iM?this.lat0>=0?AN(this.long0+Math.atan2(M.x,-M.y)):AN(this.long0-Math.atan2(-M.x,M.y)):AN(this.long0+Math.atan2(M.x*t,N*this.cos_p12*i-M.y*this.sin_p12*t))),M.x=e,M.y=j,M}return g=Si(this.es),s=li(this.es),u=ki(this.es),z=Qi(this.es),Math.abs(this.sin_p12-1)<=iM?(A=this.a*Ci(g,s,u,z,MM),N=Math.sqrt(M.x*M.x+M.y*M.y),L=A-N,j=pi(L/this.a,g,s,u,z),e=AN(this.long0+Math.atan2(M.x,-1*M.y)),M.x=e,M.y=j,M):Math.abs(this.sin_p12+1)<=iM?(A=this.a*Ci(g,s,u,z,MM),N=Math.sqrt(M.x*M.x+M.y*M.y),L=N-A,j=pi(L/this.a,g,s,u,z),e=AN(this.long0+Math.atan2(M.x,M.y)),M.x=e,M.y=j,M):(I=this.lat0/eM,n=this.long0/eM,r=Math.atan2(M.x,M.y)/eM,w=Math.sqrt(M.x*M.x+M.y*M.y),c=this.g.Direct(I,n,r,w,this.g.STANDARD),M.x=c.lon2*eM,M.y=c.lat2*eM,M)}var Aj=["Azimuthal_Equidistant","aeqd"],Lj={init:sj,forward:uj,inverse:zj,names:Aj};function Ij(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function nj(M){var N,D,t,i,e,j,T,g,s=M.x,u=M.y;return t=AN(s-this.long0),N=Math.sin(u),D=Math.cos(u),i=Math.cos(t),j=this.sin_p14*N+this.cos_p14*D*i,e=1,(j>0||Math.abs(j)<=iM)&&(T=this.a*e*D*Math.sin(t),g=this.y0+this.a*e*(this.cos_p14*N-this.sin_p14*D*i)),M.x=T,M.y=g,M}function rj(M){var N,D,t,i,e,j,T;return M.x-=this.x0,M.y-=this.y0,N=Math.sqrt(M.x*M.x+M.y*M.y),D=De(N/this.a),t=Math.sin(D),i=Math.cos(D),j=this.long0,Math.abs(N)<=iM?(T=this.lat0,M.x=j,M.y=T,M):(T=De(i*this.sin_p14+M.y*t*this.cos_p14/N),e=Math.abs(this.lat0)-MM,Math.abs(e)<=iM?(j=this.lat0>=0?AN(this.long0+Math.atan2(M.x,-M.y)):AN(this.long0-Math.atan2(-M.x,M.y)),M.x=j,M.y=T,M):(j=AN(this.long0+Math.atan2(M.x*t,N*this.cos_p14*i-M.y*this.sin_p14*t)),M.x=j,M.y=T,M))}var wj=["ortho"],cj={init:Ij,forward:nj,inverse:rj,names:wj},yj={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},aj={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function oj(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=MM-TM/2?this.face=yj.TOP:this.lat0<=-(MM-TM/2)?this.face=yj.BOTTOM:Math.abs(this.long0)<=TM?this.face=yj.FRONT:Math.abs(this.long0)<=MM+TM?this.face=this.long0>0?yj.RIGHT:yj.LEFT:this.face=yj.BACK,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function Ej(M){var N,D,t,i,e,j,T={x:0,y:0},g={value:0};if(M.x-=this.long0,N=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(M.y)):M.y,D=M.x,this.face===yj.TOP)i=MM-N,D>=TM&&D<=MM+TM?(g.value=aj.AREA_0,t=D-MM):D>MM+TM||D<=-(MM+TM)?(g.value=aj.AREA_1,t=D>0?D-sM:D+sM):D>-(MM+TM)&&D<=-TM?(g.value=aj.AREA_2,t=D+MM):(g.value=aj.AREA_3,t=D);else if(this.face===yj.BOTTOM)i=MM+N,D>=TM&&D<=MM+TM?(g.value=aj.AREA_0,t=-D+MM):D<TM&&D>=-TM?(g.value=aj.AREA_1,t=-D):D<-TM&&D>=-(MM+TM)?(g.value=aj.AREA_2,t=-D-MM):(g.value=aj.AREA_3,t=D>0?-D+sM:-D-sM);else{var s,u,z,A,L,I,n;this.face===yj.RIGHT?D=Cj(D,+MM):this.face===yj.BACK?D=Cj(D,+sM):this.face===yj.LEFT&&(D=Cj(D,-MM)),A=Math.sin(N),L=Math.cos(N),I=Math.sin(D),n=Math.cos(D),s=L*n,u=L*I,z=A,this.face===yj.FRONT?(i=Math.acos(s),t=xj(i,z,u,g)):this.face===yj.RIGHT?(i=Math.acos(u),t=xj(i,z,-s,g)):this.face===yj.BACK?(i=Math.acos(-s),t=xj(i,z,-u,g)):this.face===yj.LEFT?(i=Math.acos(-u),t=xj(i,z,s,g)):(i=t=0,g.value=aj.AREA_0)}return j=Math.atan(12/sM*(t+Math.acos(Math.sin(t)*Math.cos(TM))-MM)),e=Math.sqrt((1-Math.cos(i))/(Math.cos(j)*Math.cos(j))/(1-Math.cos(Math.atan(1/Math.cos(t))))),g.value===aj.AREA_1?j+=MM:g.value===aj.AREA_2?j+=sM:g.value===aj.AREA_3&&(j+=1.5*sM),T.x=e*Math.cos(j),T.y=e*Math.sin(j),T.x=T.x*this.a+this.x0,T.y=T.y*this.a+this.y0,M.x=T.x,M.y=T.y,M}function Oj(M){var N,D,t,i,e,j,T,g,s,u,z,A,L={lam:0,phi:0},I={value:0};if(M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a,D=Math.atan(Math.sqrt(M.x*M.x+M.y*M.y)),N=Math.atan2(M.y,M.x),M.x>=0&&M.x>=Math.abs(M.y)?I.value=aj.AREA_0:M.y>=0&&M.y>=Math.abs(M.x)?(I.value=aj.AREA_1,N-=MM):M.x<0&&-M.x>=Math.abs(M.y)?(I.value=aj.AREA_2,N=N<0?N+sM:N-sM):(I.value=aj.AREA_3,N+=MM),s=sM/12*Math.tan(N),e=Math.sin(s)/(Math.cos(s)-1/Math.sqrt(2)),j=Math.atan(e),t=Math.cos(N),i=Math.tan(D),T=1-t*t*i*i*(1-Math.cos(Math.atan(1/Math.cos(j)))),T<-1?T=-1:T>1&&(T=1),this.face===yj.TOP)g=Math.acos(T),L.phi=MM-g,I.value===aj.AREA_0?L.lam=j+MM:I.value===aj.AREA_1?L.lam=j<0?j+sM:j-sM:I.value===aj.AREA_2?L.lam=j-MM:L.lam=j;else if(this.face===yj.BOTTOM)g=Math.acos(T),L.phi=g-MM,I.value===aj.AREA_0?L.lam=-j+MM:I.value===aj.AREA_1?L.lam=-j:I.value===aj.AREA_2?L.lam=-j-MM:L.lam=j<0?-j-sM:-j+sM;else{var n,r,w;n=T,s=n*n,w=s>=1?0:Math.sqrt(1-s)*Math.sin(j),s+=w*w,r=s>=1?0:Math.sqrt(1-s),I.value===aj.AREA_1?(s=r,r=-w,w=s):I.value===aj.AREA_2?(r=-r,w=-w):I.value===aj.AREA_3&&(s=r,r=w,w=-s),this.face===yj.RIGHT?(s=n,n=-r,r=s):this.face===yj.BACK?(n=-n,r=-r):this.face===yj.LEFT&&(s=n,n=r,r=-s),L.phi=Math.acos(-w)-MM,L.lam=Math.atan2(r,n),this.face===yj.RIGHT?L.lam=Cj(L.lam,-MM):this.face===yj.BACK?L.lam=Cj(L.lam,-sM):this.face===yj.LEFT&&(L.lam=Cj(L.lam,+MM))}0!==this.es&&(u=L.phi<0?1:0,z=Math.tan(L.phi),A=this.b/Math.sqrt(z*z+this.one_minus_f_squared),L.phi=Math.atan(Math.sqrt(this.a*this.a-A*A)/(this.one_minus_f*A)),u&&(L.phi=-L.phi));return L.lam+=this.long0,M.x=L.lam,M.y=L.phi,M}function xj(M,N,D,t){var i;return M<iM?(t.value=aj.AREA_0,i=0):(i=Math.atan2(N,D),Math.abs(i)<=TM?t.value=aj.AREA_0:i>TM&&i<=MM+TM?(t.value=aj.AREA_1,i-=MM):i>MM+TM||i<=-(MM+TM)?(t.value=aj.AREA_2,i=i>=0?i-sM:i+sM):(t.value=aj.AREA_3,i+=MM)),i}function Cj(M,N){var D=M+N;return D<-sM?D+=gM:D>+sM&&(D-=gM),D}var Sj=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],lj={init:oj,forward:Ej,inverse:Oj,names:Sj},kj=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Qj=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],dj=.8487,Yj=1.3523,pj=jM/5,Uj=1/pj,hj=18,fj=function(M,N){return M[0]+N*(M[1]+N*(M[2]+N*M[3]))},mj=function(M,N){return M[1]+N*(2*M[2]+3*N*M[3])};function vj(M,N,D,t){for(var i=N;t;--t){var e=M(i);if(i-=e,Math.abs(e)<D)break}return i}function Bj(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function bj(M){var N=AN(M.x-this.long0),D=Math.abs(M.y),t=Math.floor(D*pj);t<0?t=0:t>=hj&&(t=hj-1),D=jM*(D-Uj*t);var i={x:fj(kj[t],D)*N,y:fj(Qj[t],D)};return M.y<0&&(i.y=-i.y),i.x=i.x*this.a*dj+this.x0,i.y=i.y*this.a*Yj+this.y0,i}function Pj(M){var N={x:(M.x-this.x0)/(this.a*dj),y:Math.abs(M.y-this.y0)/(this.a*Yj)};if(N.y>=1)N.x/=kj[hj][0],N.y=M.y<0?-MM:MM;else{var D=Math.floor(N.y*hj);for(D<0?D=0:D>=hj&&(D=hj-1);;)if(Qj[D][0]>N.y)--D;else{if(!(Qj[D+1][0]<=N.y))break;++D}var t=Qj[D],i=5*(N.y-t[0])/(Qj[D+1][0]-t[0]);i=vj((function(M){return(fj(t,M)-N.y)/mj(t,M)}),i,iM,100),N.x/=fj(kj[D],i),N.y=(5*D+i)*eM,M.y<0&&(N.y=-N.y)}return N.x=AN(N.x+this.long0),N}var Zj=["Robinson","robin"],Gj={init:Bj,forward:bj,inverse:Pj,names:Zj};function Wj(){this.name="geocent"}function Rj(M){var N=TD(M,this.es,this.a);return N}function Xj(M){var N=gD(M,this.es,this.a,this.b);return N}var _j=["Geocentric","geocentric","geocent","Geocent"],Hj={init:Wj,forward:Rj,inverse:Xj,names:_j},Fj={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Vj={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function Jj(){if(Object.keys(Vj).forEach(function(M){if("undefined"===typeof this[M])this[M]=Vj[M].def;else{if(Vj[M].num&&isNaN(this[M]))throw new Error("Invalid parameter value, must be numeric "+M+" = "+this[M]);Vj[M].num&&(this[M]=parseFloat(this[M]))}Vj[M].degrees&&(this[M]=this[M]*eM)}.bind(this)),Math.abs(Math.abs(this.lat0)-MM)<iM?this.mode=this.lat0<0?Fj.S_POLE:Fj.N_POLE:Math.abs(this.lat0)<iM?this.mode=Fj.EQUIT:(this.mode=Fj.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var M=this.tilt,N=this.azi;this.cg=Math.cos(N),this.sg=Math.sin(N),this.cw=Math.cos(M),this.sw=Math.sin(M)}function qj(M){M.x-=this.long0;var N,D,t,i,e=Math.sin(M.y),j=Math.cos(M.y),T=Math.cos(M.x);switch(this.mode){case Fj.OBLIQ:D=this.sinph0*e+this.cosph0*j*T;break;case Fj.EQUIT:D=j*T;break;case Fj.S_POLE:D=-e;break;case Fj.N_POLE:D=e;break}switch(D=this.pn1/(this.p-D),N=D*j*Math.sin(M.x),this.mode){case Fj.OBLIQ:D*=this.cosph0*e-this.sinph0*j*T;break;case Fj.EQUIT:D*=e;break;case Fj.N_POLE:D*=-j*T;break;case Fj.S_POLE:D*=j*T;break}return t=D*this.cg+N*this.sg,i=1/(t*this.sw*this.h1+this.cw),N=(N*this.cg-D*this.sg)*this.cw*i,D=t*i,M.x=N*this.a,M.y=D*this.a,M}function Kj(M){M.x/=this.a,M.y/=this.a;var N,D,t,i={x:M.x,y:M.y};t=1/(this.pn1-M.y*this.sw),N=this.pn1*M.x*t,D=this.pn1*M.y*this.cw*t,M.x=N*this.cg+D*this.sg,M.y=D*this.cg-N*this.sg;var e=Et(M.x,M.y);if(Math.abs(e)<iM)i.x=0,i.y=M.y;else{var j,T;switch(T=1-e*e*this.pfact,T=(this.p-Math.sqrt(T))/(this.pn1/e+e/this.pn1),j=Math.sqrt(1-T*T),this.mode){case Fj.OBLIQ:i.y=Math.asin(j*this.sinph0+M.y*T*this.cosph0/e),M.y=(j-this.sinph0*Math.sin(i.y))*e,M.x*=T*this.cosph0;break;case Fj.EQUIT:i.y=Math.asin(M.y*T/e),M.y=j*e,M.x*=T;break;case Fj.N_POLE:i.y=Math.asin(j),M.y=-M.y;break;case Fj.S_POLE:i.y=-Math.asin(j);break}i.x=Math.atan2(M.x,M.y)}return M.x=i.x+this.long0,M.y=i.y,M}var $j=["Tilted_Perspective","tpers"],MT={init:Jj,forward:qj,inverse:Kj,names:$j};function NT(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var M=1-this.es,N=1/M;this.radius_p=Math.sqrt(M),this.radius_p2=M,this.radius_p_inv2=N,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function DT(M){var N,D,t,i,e=M.x,j=M.y;if(e-=this.long0,"ellipse"===this.shape){j=Math.atan(this.radius_p2*Math.tan(j));var T=this.radius_p/Et(this.radius_p*Math.cos(j),Math.sin(j));if(D=T*Math.cos(e)*Math.cos(j),t=T*Math.sin(e)*Math.cos(j),i=T*Math.sin(j),(this.radius_g-D)*D-t*t-i*i*this.radius_p_inv2<0)return M.x=Number.NaN,M.y=Number.NaN,M;N=this.radius_g-D,this.flip_axis?(M.x=this.radius_g_1*Math.atan(t/Et(i,N)),M.y=this.radius_g_1*Math.atan(i/N)):(M.x=this.radius_g_1*Math.atan(t/N),M.y=this.radius_g_1*Math.atan(i/Et(t,N)))}else"sphere"===this.shape&&(N=Math.cos(j),D=Math.cos(e)*N,t=Math.sin(e)*N,i=Math.sin(j),N=this.radius_g-D,this.flip_axis?(M.x=this.radius_g_1*Math.atan(t/Et(i,N)),M.y=this.radius_g_1*Math.atan(i/N)):(M.x=this.radius_g_1*Math.atan(t/N),M.y=this.radius_g_1*Math.atan(i/Et(t,N))));return M.x=M.x*this.a,M.y=M.y*this.a,M}function tT(M){var N,D,t,i,e=-1,j=0,T=0;if(M.x=M.x/this.a,M.y=M.y/this.a,"ellipse"===this.shape){this.flip_axis?(T=Math.tan(M.y/this.radius_g_1),j=Math.tan(M.x/this.radius_g_1)*Et(1,T)):(j=Math.tan(M.x/this.radius_g_1),T=Math.tan(M.y/this.radius_g_1)*Et(1,j));var g=T/this.radius_p;if(N=j*j+g*g+e*e,D=2*this.radius_g*e,t=D*D-4*N*this.C,t<0)return M.x=Number.NaN,M.y=Number.NaN,M;i=(-D-Math.sqrt(t))/(2*N),e=this.radius_g+i*e,j*=i,T*=i,M.x=Math.atan2(j,e),M.y=Math.atan(T*Math.cos(M.x)/e),M.y=Math.atan(this.radius_p_inv2*Math.tan(M.y))}else if("sphere"===this.shape){if(this.flip_axis?(T=Math.tan(M.y/this.radius_g_1),j=Math.tan(M.x/this.radius_g_1)*Math.sqrt(1+T*T)):(j=Math.tan(M.x/this.radius_g_1),T=Math.tan(M.y/this.radius_g_1)*Math.sqrt(1+j*j)),N=j*j+T*T+e*e,D=2*this.radius_g*e,t=D*D-4*N*this.C,t<0)return M.x=Number.NaN,M.y=Number.NaN,M;i=(-D-Math.sqrt(t))/(2*N),e=this.radius_g+i*e,j*=i,T*=i,M.x=Math.atan2(j,e),M.y=Math.atan(T*Math.cos(M.x)/e)}return M.x=M.x+this.long0,M}var iT=["Geostationary Satellite View","Geostationary_Satellite","geos"],eT={init:NT,forward:DT,inverse:tT,names:iT},jT=1.340264,TT=-.081106,gT=893e-6,sT=.003796,uT=Math.sqrt(3)/2;function zT(){this.es=0,this.long0=void 0!==this.long0?this.long0:0}function AT(M){var N=AN(M.x-this.long0),D=M.y,t=Math.asin(uT*Math.sin(D)),i=t*t,e=i*i*i;return M.x=N*Math.cos(t)/(uT*(jT+3*TT*i+e*(7*gT+9*sT*i))),M.y=t*(jT+TT*i+e*(gT+sT*i)),M.x=this.a*M.x+this.x0,M.y=this.a*M.y+this.y0,M}function LT(M){M.x=(M.x-this.x0)/this.a,M.y=(M.y-this.y0)/this.a;var N,D,t,i,e,j,T=1e-9,g=12,s=M.y;for(j=0;j<g;++j)if(N=s*s,D=N*N*N,t=s*(jT+TT*N+D*(gT+sT*N))-M.y,i=jT+3*TT*N+D*(7*gT+9*sT*N),s-=e=t/i,Math.abs(e)<T)break;return N=s*s,D=N*N*N,M.x=uT*M.x*(jT+3*TT*N+D*(7*gT+9*sT*N))/Math.cos(s),M.y=Math.asin(Math.sin(s)/uT),M.x=AN(M.x+this.long0),M}var IT=["eqearth","Equal Earth","Equal_Earth"],nT={init:zT,forward:AT,inverse:LT,names:IT},rT=1e-10;function wT(){var M;if(this.phi1=this.lat1,Math.abs(this.phi1)<rT)throw new Error;this.es?(this.en=At(this.es),this.m1=Lt(this.phi1,this.am1=Math.sin(this.phi1),M=Math.cos(this.phi1),this.en),this.am1=M/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=yT,this.forward=cT):(Math.abs(this.phi1)+rT>=MM?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=oT,this.forward=aT)}function cT(M){var N,D,t,i=AN(M.x-(this.long0||0)),e=M.y;return N=this.am1+this.m1-Lt(e,D=Math.sin(e),t=Math.cos(e),this.en),D=t*i/(N*Math.sqrt(1-this.es*D*D)),M.x=N*Math.sin(D),M.y=this.am1-N*Math.cos(D),M.x=this.a*M.x+(this.x0||0),M.y=this.a*M.y+(this.y0||0),M}function yT(M){var N,D,t,i;if(M.x=(M.x-(this.x0||0))/this.a,M.y=(M.y-(this.y0||0))/this.a,D=Et(M.x,M.y=this.am1-M.y),i=nt(this.am1+this.m1-D,this.es,this.en),(N=Math.abs(i))<MM)N=Math.sin(i),t=D*Math.atan2(M.x,M.y)*Math.sqrt(1-this.es*N*N)/Math.cos(i);else{if(!(Math.abs(N-MM)<=rT))throw new Error;t=0}return M.x=AN(t+(this.long0||0)),M.y=Yi(i),M}function aT(M){var N,D,t=AN(M.x-(this.long0||0)),i=M.y;return D=this.cphi1+this.phi1-i,Math.abs(D)>rT?(M.x=D*Math.sin(N=t*Math.cos(i)/D),M.y=this.cphi1-D*Math.cos(N)):M.x=M.y=0,M.x=this.a*M.x+(this.x0||0),M.y=this.a*M.y+(this.y0||0),M}function oT(M){var N,D;M.x=(M.x-(this.x0||0))/this.a,M.y=(M.y-(this.y0||0))/this.a;var t=Et(M.x,M.y=this.cphi1-M.y);if(D=this.cphi1+this.phi1-t,Math.abs(D)>MM)throw new Error;return N=Math.abs(Math.abs(D)-MM)<=rT?0:t*Math.atan2(M.x,M.y)/Math.cos(D),M.x=AN(N+(this.long0||0)),M.y=Yi(D),M}var ET=["bonne","Bonne (Werner lat_1=90)"],OT={init:wT,names:ET},xT=function(M){M.Proj.projections.add(at),M.Proj.projections.add(Ut),M.Proj.projections.add(Bt),M.Proj.projections.add(Jt),M.Proj.projections.add(Di),M.Proj.projections.add(Ti),M.Proj.projections.add(Ii),M.Proj.projections.add(yi),M.Proj.projections.add(xi),M.Proj.projections.add(vi),M.Proj.projections.add(Ne),M.Proj.projections.add(ge),M.Proj.projections.add(Le),M.Proj.projections.add(ye),M.Proj.projections.add(xe),M.Proj.projections.add(de),M.Proj.projections.add(fe),M.Proj.projections.add(Pe),M.Proj.projections.add(_e),M.Proj.projections.add(qe),M.Proj.projections.add(Dj),M.Proj.projections.add(Tj),M.Proj.projections.add(Lj),M.Proj.projections.add(cj),M.Proj.projections.add(lj),M.Proj.projections.add(Gj),M.Proj.projections.add(Hj),M.Proj.projections.add(MT),M.Proj.projections.add(eT),M.Proj.projections.add(nT),M.Proj.projections.add(OT)};SD.defaultDatum="WGS84",SD.Proj=eD,SD.WGS84=new SD.Proj("WGS84"),SD.Point=$D,SD.toPoint=wD,SD.defs=$M,SD.nadgrid=RN,SD.transform=oD,SD.mgrs=fD,SD.version="__VERSION__",xT(SD);var CT=SD,ST={name:"app-contextMenu",components:{},props:{coordinates:{type:Array,required:!0},origin:{type:Object},destination:{type:Object},building:{type:Number,required:!0},floor:{type:Number,required:!0},floorName:{type:String,required:!0},loadRoute:{type:Function},setLocation:{type:Function},addContextMenuMarkerSelected:{type:Function},hasGraph:{type:Boolean}},data:function(){return{debugMode:!1,has_graph:this.hasGraph}},computed:{coordinates4326:function(){var M=Number(this.coordinates[1].toFixed(5)),N=Number(this.coordinates[0].toFixed(5));return[M,N]},coordinates3857:function(){var M=CT("EPSG:4326","EPSG:3857",[this.coordinates[0],this.coordinates[1]]);return[Number(M[0].toFixed(0)),Number(M[1].toFixed(0))]}},methods:{click:function(M){var N={geometry:{coordinates:this.coordinates,type:"Point"},properties:{level:this.floor,levelName:this.floorName,building:this.building,icon:"marcadores/pp_00-mk.svg"},type:"Feature",mode:"point"};this.setLocation([N]),this.loadRoute(Object(A["a"])(Object(A["a"])(Object(A["a"])({i18n:this.$i18n},M,N),"contextual",!0),"routeMode",!0)),this.addContextMenuMarkerSelected(N),this.close()},close:function(){this.$emit("close")},copyText:function(M){var N="";switch(M){case"lat":N=this.$refs.lat;break;case"lon":N=this.$refs.lon;break;case"x":N=this.$refs.x;break;case"y":N=this.$refs.y;break}N.select(),document.execCommand("copy")}}},lT=ST,kT=(D("1775"),D("2877")),QT=Object(kT["a"])(lT,G,W,!1,null,"a15696fc",null),dT=QT.exports,YT=D("bd28"),pT=D("dfa0"),UT=D("595b");function hT(M){var N=M&&"object"===Object(c["a"])(M);return N&&(M._isVue=!0,M.$options={},M.$refs={},M._data={}),M}var fT=D("a09f");function mT(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function vT(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?mT(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):mT(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var BT={name:"MapComponent",mixins:[x,P,m,fT["a"]],components:{},props:{full_airport_loaded:!1,explorerMode:{type:Boolean,default:!1},printMode:{type:Boolean,default:!1},lat:{require:!1,type:String,default:""},lon:{require:!1,type:String,default:""}},data:function(){return{map:void 0,mapLoaded:!1,flying:!1,loaded:!1,popup:void 0,mapCanvas:void 0,contextMenuMarker:void 0,contextMenuMarkerSelected:[],contextMenuPopup:void 0,popupActive:!1,debugMode:!1,buildingId:this.$root.$data.building,floorId:this.$root.$data.floor,retrySetPoiAsOrigin:null,retrySetPoiAsDestination:null,retryHighlightPoi:null,retryExtractBuildingFloor:null,retrySetPoiDetail:null,debounceHighlight:null}},mounted:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(){var N,t,i,e,j=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:return N=new a["Map"]({container:this.id,style:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",center:[0,0],zoom:2}),N.fitBounds(this.initialBbox),t=new a["NavigationControl"]({showCompass:!1}),N.addControl(t,"bottom-left"),hT(N),this.map=N,document.querySelectorAll(".mapboxgl-ctrl").forEach((function(M){return M.setAttribute("aria-hidden",!0)})),i=D("040e"),e=Object.entries(D("c68e")),M.next=11,new Promise((function(M){var N=new Image;N.src=i,N.onload=function(){var D=document.createElement("canvas");D.width=N.width,D.height=N.height,D.getContext("2d").drawImage(N,0,0,N.width,N.height),e.forEach((function(M){var N=D.getContext("2d").getImageData(M[1].x,M[1].y,M[1].width,M[1].height).data;j.map.addImage(M[0],{width:M[1].width,height:M[1].height,data:N},{pixelRatio:window.devicePixelRatio})})),M()}}));case 11:this.map.on("load",Object(L["a"])(regeneratorRuntime.mark((function M(){var N;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:j.mapLoaded=!0,""!==j.lat&&""!==j.lon&&(N=[j.lon,j.lat],j[I["a"].SET_COORDINATES]({coordinates:N,zoom:19}));case 2:case"end":return M.stop()}}),M)})))),this.map.on("movestart",(function(){j.removeContextMenu()})),this.map.on("click",(function(){j.removeContextMenu()})),this.map.on("moveend",(function(){j.flying&&(j.flying=!1,j.existLayer(Z["a"].POI_LIST)&&j.floor&&j.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","visible"))})),this.map.on("zoomend",(function(){var M=j.map.getZoom();if(!j.floor&&M>="16"){j[I["a"].BLOCK_BBOX](!0);var N=j.map.getBounds(),D=Object(UT["point"])(N.getCenter().toArray()),t=Object(UT["featureCollection"])(j.buildings.map((function(M){return Object(UT["point"])(M.centroid.coordinates,{id:M.id,floor:M.default_level})}))),i=Object(UT["nearestPoint"])(D,t);j.poi&&i.properties.id!==j.poi.properties.building||j.saveFloor({buildingId:i.properties.id,floorId:i.properties.floor,airportID:j.airportID})}else j.mapLoaded&&j.floor&&j.map.getZoom()<"14"&&!j.isRouteMode&&!j.poi&&j[I["a"].LOAD_FLOOR]()})),this.map.on("contextmenu",(function(M){(j.floor&&j.airport.has_graph&&!j.printMode||j.floor&&j.debugMode&&!j.printMode)&&(j.removeContextMenu(),j.addContextMenuPoint(M))})),window.addEventListener("resize",this.resize),this.$root.$on("forceHighlightPoi",(function(M){j.forceHighlightPoiWithDebouce(M)}));case 19:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),destroyed:function(){window.removeEventListener("resize",this.resize),this.$root.$off("forceHighlightPoi"),this.map.remove()},computed:vT(vT({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE,id:I["b"].GET_ID,bbox:I["b"].GET_BBOX,coordinates:I["b"].GET_COORDINATES,zoom:I["b"].GET_ZOOM,accessToken:I["b"].GET_ACCESS_TOKEN,buildings:I["b"].GET_BUILDINGS,layerTree:I["b"].GET_LAYER_TREE,floor:I["b"].GET_FLOOR,building:I["b"].GET_BUILDING,category:I["b"].GET_CATEGORY,poisCatalog:I["b"].GET_POIS_CATALOG,poiId:I["b"].GET_POI_ID,poiDId:I["b"].GET_POID_ID,routeConfig:I["b"].GET_ROUTE_CONFIG,poi:I["b"].GET_POI,isRouteMode:I["b"].IS_ROUTE_MODE,hasRoute:I["b"].HAS_ROUTE,airportID:I["b"].GET_AIRPORT_ID,airport:I["b"].GET_AIRPORT,initialBbox:I["b"].GET_INITIAL_BBOX,homePosition:I["b"].GET_HOME_POSITION,filtering:I["b"].GET_FILTERING,activeFilters:I["b"].GET_ACTIVE_FILTERS,zonaubicacion:I["b"].GET_ZONAUBICACION,origin:I["b"].GET_ORIGIN,destination:I["b"].GET_DESTINATION})),{},{mapAirportLoaded:function(){return this.mapLoaded&&this.full_airport_loaded},filterPois:function(){var M=this,N=["all"];if(this.building&&N.push(["==",["get","building"],this.building.id]),this.floor&&N.push(["==",["get","level"],this.floor.id]),null!==this.category&&void 0!==this.category){var D=this.poisCatalog.find((function(N){return N.id===M.category}));if(D&&D.subcategories&&D.subcategories.length>0){var t=D.subcategories.map((function(M){return M.id})),i=t.map((function(M){return["in",M,["get","subcategories"]]}));N.push(["any"].concat(Object(y["a"])(i)))}}if(this.filtering){var e=[];this.activeFilters.categories&&e.push.apply(e,Object(y["a"])(this.activeFilters.categories.subcategories)),this.activeFilters.subcategories.length&&e.push.apply(e,Object(y["a"])(this.activeFilters.subcategories)),e.length&&N.push(["any"].concat(Object(y["a"])(e.map((function(M){return["in",M,["get","subcategories"]]}))))),this.zonaubicacion&&N.push(["==",["get","pat_zonaubicacion",["get","attrs"]],this.zonaubicacion])}return N}}),methods:vT(vT({},Object(n["b"])([I["a"].BLOCK_BBOX,I["a"].ADD_LAYER,I["a"].DELETE_LAYER,I["a"].SET_COORDINATES,I["a"].LOAD_TILES_BUILDING_FLOOR,I["a"].LOAD_FLOOR,I["a"].SET_HOME_POSITION,I["a"].LOAD_FLOOR])),{},{loadAirport:function(){var M=this;if(this.loaded=!0,this.canvasMap=this.map.getCanvasContainer(),this.$root.$emit("mapLoaded",this.map),this.resize(),this.addPoisLayer(),this.bbox&&this.fitBounds(this.bbox),this.buildings.length&&this.addBuildings(this.buildings),null!==this.floorId&&void 0!==this.floorId||this.category){var N=this.buildings.find((function(N){return N.id===M.buildingId}));if(N){var D=N.levels.find((function(N){return N.id===M.floorId||String(N.id)===String(M.floorId)}));this.setFloor(D)}}var t=this.$root.$data.avaMode,i=this.poiDId||this.poiId;if(t&&this.poiId){var e=this.poiId,j=this.$root.$data.autoCalculateRoute,T=this.$root.$data.subcategories,g=Array.isArray(T)&&T.length>0,s=null!==this.category&&void 0!==this.category;this.extractAndLoadBuildingFloorFromPoi(e),s||g?this.forceHighlightPoiWithDebouce(e):this.poiDId&&this.poiDId!==e&&j?(this.setPoiAsOrigin(e),this.forceHighlightPoiWithDebouce(e),setTimeout((function(){M.setPoiAsDestination(M.poiDId)}),1e3)):this.poiDId&&this.poiDId!==e&&!j?(this.poisList&&this.poisList.features&&this.poisList.features.find((function(N){return N.properties.id===M.poiDId}))?this.setPoi(this.poiDId):this.retrySetPoiDetail=this.poiDId,this.forceHighlightPoiWithDebouce(this.poiDId)):(this.poisList&&this.poisList.features&&this.poisList.features.find((function(M){return M.properties.id===e}))?this.setPoi(e):this.retrySetPoiDetail=e,this.forceHighlightPoiWithDebouce(e))}else if(i){var u=this.$root.$data.subcategories,z=Array.isArray(u)&&u.length>0,A=null!==this.category&&void 0!==this.category;z||A?(this.extractAndLoadBuildingFloorFromPoi(i),this.setPoiAsOrigin(i),this.forceHighlightPoiWithDebouce(i)):this.setPoi(i)}this.routeConfig&&this.setContextualRoute()},resize:function(){var M=this,N=20,D=0,t=window.setInterval((function(){D+=N,M.map.resize(),D>=250&&window.clearInterval(t)}),N)},getMap:function(M){var N=this,D=function(){N.loaded?M():setTimeout(D,50)};D()},fitBounds:function(M){this.flying=!0,this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none");var N=document.getElementById("points-wrapper")||{};this.map.fitBounds(M,{padding:{left:this.isMobile?0:N.offsetWidth||0,bottom:64,top:64,right:64},duration:1e3})},flyTo:function(M){this.map.flyTo(vT(vT({},M),{},{speed:2.4})),this[I["a"].SET_COORDINATES]({coordinates:void 0})},getLayer:function(M){return this.map.getLayer(M)},setLayoutProperty:function(M,N){return this.map.setLayoutProperty(M,"visibility",N)},existLayer:function(M){return!!this.getLayer(M)},addLayerHandle:function(M){var N=M.id,D=M.source,t=M.data,i=M.url,e=M.layers;"raster"===D?this.addLayerRaster({id:N,source:D,url:i}):"mvt"===D?this.addLayerMVT({id:N,source:D,url:i,layers:e}):this.addLayerVector({id:N,source:D,data:t,url:i,layers:e})},addLayerRaster:function(M){var N=M.id,D=M.source,t=M.url;this.map.addSource(N,{type:D,tiles:[t],tileSize:256}),this.map.addLayer({id:N,type:D,source:N}),this.map.moveLayer(N,Z["a"].POI_LIST),this.existRouteLayer()&&this.moveRouteLayer()},addLayerMVT:function(M){var N=this,D=M.id,t=(M.source,M.url),i=M.layers;this.map.addSource(D,{type:"vector",tiles:t}),i.forEach((function(M){N.map.addLayer(vT({source:D},M),N.existLayer(Z["a"].POI_LIST)?Z["a"].POI_LIST:null)})),this.existRouteLayer()&&this.moveRouteLayer()},addLayerVector:function(M){var N=this,D=M.id,t=M.source,i=M.url,e=M.data,j=M.layers,T=void 0===j?[]:j;this.existLayer(D)&&(T.forEach((function(M){N.map.removeLayer(M.id||D)})),this.map.removeSource(D));var g={type:t||"vector"},s={};i&&(g.url=i,s["source-layer"]=D),e&&(g.data=e,s["source"]=D),this.map.addSource(D,g),T.forEach((function(M){N.map.addLayer(vT(vT(vT({},s),M),{},{id:M.id||D}))})),T.length||this.map.addLayer(s),this.existLayer(Z["a"].POI_LIST)&&this.map.moveLayer(Z["a"].POI_LIST),this.existLayer(Z["a"].POI_LIST_SELECTED)&&this.map.moveLayer(Z["a"].POI_LIST_SELECTED)},addContextMenuPoint:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j,T=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:D=document.createElement("div"),D.className="context-menu-marker",this.contextMenuMarker=new a["Marker"](D).setLngLat(N.lngLat).addTo(this.map),t=null,M.prev=4,t=dT,M.next=12;break;case 8:return M.prev=8,M.t0=M["catch"](4),console.error('[showPopup] Error importing component "context-menu" \n',M.t0),M.abrupt("return");case 12:i=s["a"].extend(vT(vT({},t),{},{i18n:this.$i18n})),e="context-menu",j=new i({propsData:{coordinates:[N.lngLat.lng,N.lngLat.lat],origin:this.origin,destination:this.destination,building:this.building.id,floorName:this.floor.name,floor:this.floor.id,loadRoute:this[I["a"].LOAD_ROUTE],addContextMenuMarkerSelected:this.addContextMenuMarkerSelected,setLocation:this.setLocation,hasGraph:this.airport.has_graph}}),this.contextMenuPopup=new a["Popup"]({closeButton:!1,closeOnClick:!0,anchor:"top-left",offset:12,className:"context-menu"}).setLngLat(N.lngLat).setHTML('<div id="'.concat(e,'"></div>')).addTo(this.map),this.contextMenuPopup.vue=j,j.$mount("#".concat(e)),this.contextMenuPopup._update(),j.$on("close",(function(){T.removeContextMenu()}));case 20:case"end":return M.stop()}}),M,this,[[4,8]])})));function N(N){return M.apply(this,arguments)}return N}(),addContextMenuMarkerSelected:function(M){var N=document.createElement("div");N.className="context-menu-marker-selected";var D=new a["Marker"](N,{anchor:"bottom"}).setLngLat(M.geometry.coordinates).addTo(this.map);this.contextMenuMarkerSelected.push(D)},removeContextMenu:function(){this.contextMenuMarker&&(this.contextMenuMarker.remove(),this.contextMenuMarker=void 0),this.contextMenuPopup&&(this.contextMenuPopup.vue.$destroy(),this.contextMenuPopup.remove(),this.contextMenuPopup=void 0)},removeContextMenuSelected:function(){this.contextMenuMarkerSelected.forEach((function(M){M.remove()})),this.contextMenuMarkerSelected=[]},addBuildings:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:return D=N.reduce((function(M,N){var D,t=j.generateGeoJsonBuilding(N);return(D=M.features).push.apply(D,Object(y["a"])(t)),M}),{type:"FeatureCollection",features:[]}),t=Z["c"],t.data=D,t.layers[0].filter=!0,this.building&&(t.layers[0].filter=["!=",["get","id"],this.building.id]),this[I["a"].ADD_LAYER](vT({},t)),i=N.reduce((function(M,N){var D=j.generateGeoJsonBuildingMarker(N);return M.features.push(D),M}),{type:"FeatureCollection",features:[]}),M.next=9,this.addMarkers();case 9:e=Z["d"],e.data=i,e.layers[0].filter=!0,this.building&&(e.layers[0].filter=["!=",["get","id"],this.building.id]),this[I["a"].ADD_LAYER](vT({},e)),this.explorerMode&&(this.map.on("click",Z["c"].id,(function(M){var N=M.features[0];void 0!==N.properties.floor?j.saveFloor({buildingId:N.properties.id,floorId:N.properties.floor,airportID:j.airportID,tag:"mapa",event:!0}):console.error("No default level. ID: "+N.properties.id)})),this.map.on("mousemove",Z["c"].id,(function(M){if(!j.popupActive){j.canvasMap.style.cursor="pointer",j.removePopup();var N=M.features[0];j.canvasMap.style.cursor="pointer";var D=M.lngLat,t=N.properties.name;j.popup=new a["Popup"]({closeButton:!1,anchor:"bottom"}),j.popup.setLngLat(D).setHTML(t).addTo(j.map)}})),this.map.on("mouseleave",Z["c"].id,(function(M){j.canvasMap.style.cursor="",j.removePopup()})),this.map.on("mousemove",Z["a"].BUILDING_FLOOR[24],(function(){j.popupActive||(j.canvasMap.style.cursor="",j.removePopup())})),this.map.on("mousemove",Z["a"].BUILDING_FLOOR[18],(function(){j.popupActive||(j.canvasMap.style.cursor="",j.removePopup())})),this.map.on("click",Z["d"].id,(function(M){var N=M.features[0];void 0!==N.properties.floor?j.saveFloor({buildingId:N.properties.id,floorId:N.properties.floor,airportID:j.airportID}):console.error("No default level. ID: "+N.properties.id)})),this.map.on("mousemove",Z["d"].id,(function(M){j.canvasMap.style.cursor="pointer",j.removePopup();var N=M.features[0];j.canvasMap.style.cursor="pointer";var D=M.lngLat,t=N.properties.name;j.popup=new a["Popup"]({closeButton:!1,anchor:"bottom"}),j.popup.setLngLat(D).setHTML(t).addTo(j.map)})),this.map.on("mouseleave",Z["d"].id,(function(M){j.canvasMap.style.cursor="",j.removePopup()})));case 15:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),generateGeoJsonBuildingMarker:function(M){return{type:"Feature",properties:{category:M.category,floor:M.default_level,group_id:M.group_id,priority:M.priority,id:M.id,name:M.name,short_name:M.short_name,poi_name:M.short_name+M.color,color:M.color,fontColor:M.font_color},geometry:{type:M.centroid.type,coordinates:M.centroid.coordinates}}},generateGeoJsonBuilding:function(M){return M.bounds.geometries.map((function(N){return{type:"Feature",properties:{category:M.category,floor:M.default_level,group_id:M.group_id,priority:M.priority,id:M.id,name:M.name,short_name:M.short_name,color:M.color},geometry:{type:N.type,coordinates:N.coordinates}}}))},addMarkers:function(){var M=this,N=1===window.devicePixelRatio?1:2;this.buildings.filter((function(N){return N.id!==(M.building||{}).id})).forEach((function(D){var t=D.short_name+D.color;if(!M.map.hasImage(t)){var i="PARKING PUBLICO"===D.category,e=document.createElement("canvas"),j=(i?24:40)*N;e.width=j,e.height=j;var T=e.getContext("2d");T.imageSmoothingEnabled=!1,T.globalAlpha=1;var g=e.height/2;if(T.translate(g,g),g-=8,T.shadowColor="#999",T.shadowBlur=8,i){var s=4,u=2,z=j/2-u;T.moveTo(s-z,0-z),T.lineTo(z-s,0-z),T.arc(z-s,0-z+s,s,1.5*Math.PI,.2*Math.PI),T.moveTo(z,0-z+s+2),T.lineTo(z,z-s),T.arc(z-s,z-s,s,0*Math.PI,.5*Math.PI),T.moveTo(z-s,z),T.lineTo(s-z,z),T.arc(0-z+s,z-s,s,.5*Math.PI,1*Math.PI),T.moveTo(0-z,z-s),T.lineTo(0-z,0-z+s),T.arc(s-z,s-z,s,1*Math.PI,1.5*Math.PI),T.fillStyle=D.color,T.fillRect(0-z+.7,0-z+.5,j-s-1,j-s-1.5)}else T.arc(0,0,g,0,2*Math.PI),T.fillStyle=D.color,T.fill();T.shadowColor="transparent",T.shadowBlur=0,T.lineWidth=N,T.strokeStyle=D.font_color,T.stroke(),T.beginPath(),T.font="600 ".concat(12*N,"px Source Sans Pro"),T.textAlign="center",T.fillStyle=D.font_color,T.fillText(D.short_name,0,0+4*N);var A=e.getContext("2d").getImageData(0,0,j,j).data;M.map.addImage(t,{width:j,height:j,data:A},{pixelRatio:N})}}))},setPoiAsOrigin:function(M){var N=this.poisList.features.find((function(N){return N.properties.id===M}));if(N||(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N){var D,t;this.setLocation([N]);try{D=JSON.parse(N.properties.attrs||"{}")}catch(Vu){D={}}try{t=JSON.parse(N.properties.subcategories||"[]")}catch(Vu){t=[]}var i={origin:{geometry:N.geometry,properties:vT(vT({},N.properties),{},{attrs:D,subcategories:t}),type:"Feature"},routeMode:!0,i18n:this.$i18n};this[I["a"].LOAD_ROUTE](i)}else this.retrySetPoiAsOrigin=M},setPoiAsDestination:function(M){var N=this.poisList.features.find((function(N){return N.properties.id===M}));if(N||(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N){var D,t;try{D=JSON.parse(N.properties.attrs||"{}")}catch(Vu){D={}}try{t=JSON.parse(N.properties.subcategories||"[]")}catch(Vu){t=[]}var i={destination:{geometry:N.geometry,properties:vT(vT({},N.properties),{},{attrs:D,subcategories:t}),type:"Feature"},routeMode:!0,i18n:this.$i18n};this[I["a"].LOAD_ROUTE](i)}else this.retrySetPoiAsDestination=M},extractAndLoadBuildingFloorFromPoi:function(M){var N=this.poisList.features.find((function(N){return N.properties.id===M}));if(!N&&this.uncategorizedPoisList&&(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N){var D=N.properties.building,t=N.properties.level;if(D&&null!==t&&void 0!==t){var i=this.buildings.find((function(M){return M.id===D}));if(i){var e=i.levels.find((function(M){return M.id===t||String(M.id)===String(t)}));e?(console.log("Auto-extracted from POI ".concat(M,": building=").concat(D,", floor=").concat(t)),this[I["a"].LOAD_FLOOR]({floor:e,building:i})):console.warn("Floor ".concat(t," not found in building ").concat(D," for POI ").concat(M))}else console.warn("Building ".concat(D," not found for POI ").concat(M))}else console.warn("Missing building or floor data for POI ".concat(M,": building=").concat(D,", floor=").concat(t))}else console.warn("POI ".concat(M," not found in POI lists")),this.retryExtractBuildingFloor=M},forceHighlightPoi:function(M){if(this.map){var N=this.poisList.features.find((function(N){return N.properties.id===M}));if(N||(N=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),N){var D={type:"FeatureCollection",features:[N]};this.existLayer(Z["a"].POI_LIST_SELECTED)?this.map.getSource(Z["a"].POI_LIST_SELECTED).setData(D):(this.map.addSource(Z["a"].POI_LIST_SELECTED,{type:"geojson",data:D}),this.map.addLayer({id:Z["a"].POI_LIST_SELECTED,type:"symbol",source:Z["a"].POI_LIST_SELECTED,layout:{"icon-image":["concat",["get","iconMap"],"-selmk"],"icon-size":.75,"icon-allow-overlap":!0,"icon-ignore-placement":!0,"icon-anchor":"bottom"}}))}else this.retryHighlightPoi=M}else this.retryHighlightPoi=M},setSelectedPoi:function(M){var N=this;if(this.removeContextMenuSelected(),this.existLayer(Z["a"].POI_LIST_SELECTED)){var D={type:"FeatureCollection",features:[]};if(M){var t=this.poisList.features.find((function(N){return N.properties.id===M}));t||(t=this.uncategorizedPoisList.features.find((function(N){return N.properties.id===M}))),D.features.push(t)}this.floor&&this.steps.filter((function(M){return!M.new})).forEach((function(M){"point"!==M.mode?D.features.push(M):N.addContextMenuMarkerSelected(M)})),this.map.getSource(Z["a"].POI_LIST_SELECTED).setData(D),this.map.setLayoutProperty(Z["a"].POI_LIST_SELECTED,"visibility",D.features.length?"visible":"none"),this.map.moveLayer(Z["a"].POI_LIST_SELECTED)}},setPoi:function(M){this.savePoi({poiId:M,airportID:this.airportID,tag:"mapa"}),this.setSelectedPoi(M)},existRouteLayer:function(){return this.existLayer(Z["a"].ROUTES[0])||this.existLayer(Z["a"].ROUTES[1])||this.existLayer(Z["a"].ROUTES[2])},moveRouteLayer:function(){this.map.moveLayer(Z["a"].ROUTES[0]),this.map.moveLayer(Z["a"].ROUTES[1]),this.map.moveLayer(Z["a"].ROUTES[2])},setRouteFloor:function(M){if(this.existRouteLayer()){this.moveRouteLayer(),this.map.setLayoutProperty(Z["a"].ROUTES[0],"visibility",M?"visible":"none"),this.map.setLayoutProperty(Z["a"].ROUTES[1],"visibility",M?"visible":"none"),this.map.setLayoutProperty(Z["a"].ROUTES[2],"visibility",M?"visible":"none");var N=Object(pT["a"])(this.building,this.floor),D=N.layerOpacity,t=N.arrowOpacity,i=["all",["==",["get","level"],this.floor.id],["==",["get","building"],this.building.id]];this.map.setFilter(Z["a"].ROUTES[1],i),this.map.setPaintProperty(Z["a"].ROUTES[0],"line-opacity",D),this.map.setPaintProperty(Z["a"].ROUTES[2],"icon-opacity",t),this.setSelectedPoi()}},setFloor:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:if(void 0!==N){M.next=2;break}return M.abrupt("return");case 2:if(this.existLayer(Z["a"].TILES)&&(this.map.removeLayer(Z["a"].TILES),this.map.removeSource(Z["a"].TILES),this[I["a"].DELETE_LAYER](Z["a"].TILES)),this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none"),null===N||void 0===N){M.next=24;break}if(D=this.building||this.buildings.find((function(M){return M.id===j.buildingId})),D){M.next=8;break}return M.abrupt("return");case 8:if(this[I["a"].LOAD_FLOOR]({floor:N,building:D}),D.bounds&&(t=D.bounds,t&&"object"===Object(c["a"])(t)&&(t=JSON.parse(JSON.stringify(t)),Array.isArray(t)&&4===t.length&&t.every((function(M){return"number"===typeof M}))&&this.fitBounds(t))),this.existLayer(Z["a"].BUILDING_CONTOUR)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR,["!=",["get","id"],D.id]),this.existLayer(Z["a"].BUILDING_CONTOUR_MARKER)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR_MARKER,["!=",["get","id"],D.id]),i=["all",["==",["get","building"],["to-string",D.id]],["==",["get","height"],N.id]],this.existLayer(Z["b"].id)){M.next=20;break}return e=vT({},Z["b"]),e.layers.forEach((function(M){M.filter=i})),M.next=18,this[I["a"].LOAD_TILES_BUILDING_FLOOR](Z["b"]);case 18:M.next=21;break;case 20:Z["b"].layers.forEach((function(M){j.map.setFilter(M.id,i)}));case 21:this.existLayer(Z["a"].POI_LIST)&&(this.map.setFilter(Z["a"].POI_LIST,this.filterPois),this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","visible")),M.next=28;break;case 24:this.existLayer(Z["b"].id)&&Z["b"].layers.forEach((function(M){j.map.setFilter(M.id,["to-boolean",0])})),this.existLayer(Z["a"].BUILDING_CONTOUR)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR,!0),this.existLayer(Z["a"].BUILDING_CONTOUR_MARKER)&&this.map.setFilter(Z["a"].BUILDING_CONTOUR_MARKER,!0),this.existLayer(Z["a"].POI_LIST)&&this.map.setLayoutProperty(Z["a"].POI_LIST,"visibility","none");case 28:this.setRouteFloor(!0);case 29:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),addPoisLayer:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(){var N,D,t=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:N=Z["e"],D=this.poisList,N.data=vT({},D),N.data.features=[].concat(Object(y["a"])(N.data.features),Object(y["a"])(this.uncategorizedPoisList.features)),N.layers[0].filter=this.filterPois,N.layers[0].layout.visibility=this.floor?"visible":"none",this[I["a"].ADD_LAYER](vT({},N)),this[I["a"].ADD_LAYER](Z["f"]),this.explorerMode&&this.map.on("click",Z["a"].POI_LIST,(function(M){var N=M.features[0],D=N.properties.id,i=JSON.parse(N.properties.subcategories),e=t.poisList.features.find((function(M){return M.properties.id===D}));e||(e=t.uncategorizedPoisList.features.find((function(M){return M.properties.id===D}))),t.$root.$data.onPoiClickCallback&&"function"===typeof t.$root.$data.onPoiClickCallback&&t.$root.$data.onPoiClickCallback({id:D,name:e&&e.properties&&e.properties.attrs&&e.properties.attrs.pat_nombre,building:e&&e.properties&&e.properties.building,floor:e&&e.properties&&e.properties.level,subcategories:e&&e.properties&&e.properties.subcategories,coordinates:e&&e.geometry&&e.geometry.coordinates,poi:e});var j=Array.isArray(t.$root.$data.subcategories)&&t.$root.$data.subcategories.length>0,T=null!==t.category&&void 0!==t.category,g=t.poiDId||t.poiId,s=g&&D===g,u=t.$store.state.route&&t.$store.state.route.steps&&t.$store.state.route.steps.some((function(M){return M.isOrigin})),z=(j||T)&&g&&!s||t.isRouteMode||t.origin||u;if(!z||s){t.setPoi(D);var L="".concat(t.building.name,". Planta ").concat(e.properties.levelName,". ").concat(t.$t(e.properties.attrs.pat_nombre)),n={eventCategory:"mapa",eventAction:"clic",eventLabel:Object(o["a"])(L),language:t.$i18n.locale,airportID:t.airportID};window.digitalChange("event",n)}else{var r,w=(t.destinationName||"").includes("step")?"step":t.destinationName,c=Array.isArray(t.$root.$data.subcategories)&&t.$root.$data.subcategories.length>0,y=null!==t.category&&void 0!==t.category,a=t.poiDId||t.poiId;r=(c||y)&&a?"destination":w||(t.destination?"origin":"destination"),t.setLocation([N]),t[I["a"].LOAD_ROUTE](Object(A["a"])(Object(A["a"])({i18n:t.$i18n},r,{geometry:{coordinates:[M.lngLat.lng,M.lngLat.lat],type:"Point"},properties:vT(vT({},N.properties),{},{attrs:JSON.parse(N.properties.attrs),subcategories:i}),type:"Feature"}),"routeMode",!0))}})),this.map.on("mouseover",Z["a"].POI_LIST,(function(M){t.popupActive=!0,t.setPoiTooltip(M)})),this.map.on("mouseleave",Z["a"].POI_LIST,(function(){t.popupActive=!1,t.removePopup()})),this.map.on("mouseleave",Z["a"].POI_LIST_SELECTED,(function(){t.removePopup()})),this.map.on("mouseover",Z["a"].POI_LIST_SELECTED,(function(M){t.setPoiTooltip(M,!0)}));case 13:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),removePopup:function(){this.popup&&this.popup.remove()},setPoiTooltip:function(M,N){this.removePopup();var D=M.features[0],t=JSON.parse(D.properties.subcategories),i=Z["j"][Object(YT["a"])(t)];this.canvasMap.style.cursor="pointer";var e=D.geometry.coordinates.slice(),j=i?this.$t(i.name):JSON.parse(D.properties.attrs).pat_nombre;this.popup=new a["Popup"]({closeButton:!1,anchor:"bottom",offset:{bottom:[0,N?-25:-10]}}),this.popup.setLngLat(e).setHTML(j).addTo(this.map)},setContextualRoute:function(){var M=this,N=this.poisList.features.filter((function(N){return M.routeConfig.steps.includes(N.properties.id)}));this.setLocation(N),this[I["a"].MOVE_ROUTE]({steps:N})},clearRoute:function(){this.existRouteLayer()&&(this.map.removeLayer(Z["a"].ROUTES[0]),this.map.removeLayer(Z["a"].ROUTES[1]),this.map.removeLayer(Z["a"].ROUTES[2]),this.map.removeSource(Z["a"].ROUTES[0]),this.map.removeSource(Z["a"].ROUTES[2]),this[I["a"].DELETE_LAYER](Z["a"].ROUTES[0]),this[I["a"].DELETE_LAYER](Z["a"].ROUTES[2])),this.setSelectedPoi()},forceHighlightPoiWithDebouce:function(M){var N=this;this.debounceHighlight&&clearTimeout(this.debounceHighlight),this.debounceHighlight=setTimeout((function(){N.forceHighlightPoi(M)}),200)}}),watch:{mapAirportLoaded:function(M){M&&this.loadAirport()},poisList:{handler:function(M){this.retrySetPoiAsOrigin&&M&&M.features&&M.features.length>0&&(this.setPoiAsOrigin(this.retrySetPoiAsOrigin),this.retrySetPoiAsOrigin=null),this.retrySetPoiAsDestination&&M&&M.features&&M.features.length>0&&(this.setPoiAsDestination(this.retrySetPoiAsDestination),this.retrySetPoiAsDestination=null),this.retryHighlightPoi&&M&&M.features&&M.features.length>0&&(this.forceHighlightPoi(this.retryHighlightPoi),this.retryHighlightPoi=null),this.retryExtractBuildingFloor&&M&&M.features&&M.features.length>0&&(this.extractAndLoadBuildingFloorFromPoi(this.retryExtractBuildingFloor),this.retryExtractBuildingFloor=null),this.retrySetPoiDetail&&M&&M.features&&M.features.length>0&&(this.setPoi(this.retrySetPoiDetail),this.retrySetPoiDetail=null)},immediate:!1},bbox:function(M){M&&this.fitBounds(M)},accessToken:function(M){a["accessToken"]=M},layerTree:function(M){var N=this;M.forEach((function(M){N.existLayer(M.id)||N.addLayerHandle(M)}))},buildings:function(M){this.loaded&&this.addBuildings(M)},floor:function(M){this.loaded&&this.setFloor(M)},coordinates:function(M){var N=this;if(M&&(this.flyTo({center:M,zoom:this.zoom}),""!==this.lat&&""!==this.lon)){var D=[this.lon,this.lat],t=document.createElement("div"),i="YOU ARE HERE",e=new a["Popup"]({closeButton:!0,anchor:"bottom"});t.className="context-menu-marker",setTimeout((function(){e.setLngLat(D).setHTML(i).addTo(N.map),new a["Marker"](t).setPopup(e).setLngLat(D).addTo(N.map).togglePopup()}),1500)}},poi:function(M){this.setSelectedPoi(M&&M.properties.id),M&&this[I["a"].SET_COORDINATES]({coordinates:M.geometry.coordinates,zoom:19})},steps:function(){this.setSelectedPoi()},isRouteMode:function(M){var N=this;if(!M){this.clearRoute();var D=this.$root.$data.avaMode;if(D){var t=this.poiId,i=this.$root.$data.autoCalculateRoute,e=this.$root.$data.subcategories,j=Array.isArray(e)&&e.length>0,T=null!==this.category&&void 0!==this.category;T||j?t&&this.$nextTick((function(){N.extractAndLoadBuildingFloorFromPoi(t),N.forceHighlightPoiWithDebouce(t)})):t&&this.$nextTick((function(){N.extractAndLoadBuildingFloorFromPoi(t),N.poiDId&&N.poiDId!==t?i?(N.setPoiAsOrigin(t),N.forceHighlightPoiWithDebouce(t),setTimeout((function(){N.setPoiAsDestination(N.poiDId)}),1e3)):(N.setPoi(N.poiDId),N.forceHighlightPoiWithDebouce(N.poiDId)):(N.setPoi(t),N.forceHighlightPoiWithDebouce(t))}))}}},hasRoute:function(M){M?this.setSelectedPoi():this.clearRoute()},homePosition:function(M){var N=this;if(M&&this.homePosition){var D=this.poisList.features.find((function(M){return M.properties.id===N.homePosition})),t=this.buildings.find((function(M){return M.id===D.properties.building})),i=t.levels.find((function(M){return M.id===N.floorId})),e=[D.geometry.coordinates[0],D.geometry.coordinates[1]];this[I["a"].SET_COORDINATES]({coordinates:e,zoom:19}),this[I["a"].LOAD_FLOOR]({floor:i,building:t}),this.setPoi(this.homePosition),this[I["a"].SET_HOME_POSITION](!1)}},filtering:{handler:function(){this.existLayer(Z["a"].POI_LIST)&&this.map.setFilter(Z["a"].POI_LIST,this.filterPois)}},activeFilters:{deep:!0,handler:function(){this.existLayer(Z["a"].POI_LIST)&&this.map.setFilter(Z["a"].POI_LIST,this.filterPois)}}}},bT=BT,PT=(D("0505"),Object(kT["a"])(bT,r,w,!1,null,"5dba0ef4",null)),ZT=PT.exports,GT=function(){var M=this,N=M._self._c;return N("div",{staticClass:"layers-container"},[N("DropDown",{ref:"dropdown",attrs:{"click-outside":!1,height:"auto"},scopedSlots:M._u([{key:"trigger",fn:function(){return[N("div",{staticClass:"selector-trigger"},[N("Icon",{attrs:{icon:"icon-layers.svg",size:"20px",fill:"#f6f7f9"}})],1)]},proxy:!0},{key:"content",fn:function(){return[N("div",{staticClass:"header"},[N("p",[M._v("Capas")]),N("button",{staticClass:"close",on:{click:M.close}},[N("Icon",{attrs:{icon:"icon-close.svg",size:"20px",fill:"#71777d"}})],1)]),N("div",{staticClass:"layers-wrapper"},M._l(M.layers,(function(D){return"poiList"===D.id?N("div",{key:D.id,staticClass:"layer"},[N("div",{staticClass:"layer-header"},[N("Checkbox",{attrs:{name:D.id,label:D.name},on:{change:M.onCheckboxChange},model:{value:D.active,callback:function(N){M.$set(D,"active",N)},expression:"layer.active"}})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enterLayer,"after-enter":M.afterEnterLayer,leave:M.leaveLayer}},[D.legend&&D.active?N("div",{staticClass:"legend"},[N("div",{staticClass:"wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.legend.title))]),N("div",{staticClass:"chart"},[N("div",{staticClass:"labels"},[N("p",[M._v(M._s(D.legend.range.min))]),N("p",[M._v(M._s(D.legend.range.max))])]),N("div",{staticClass:"bar",style:{"background-image":M.gradient(D.legend.range.range)}})]),N("p",{staticClass:"note"},[M._v(M._s(D.legend.note))])])]):M._e()])],1):M._e()})),0)]},proxy:!0}])})],1)},WT=[],RT={name:"Layers",mixins:[],components:{},props:{layers:{type:Array,required:!0}},data:function(){return{}},computed:{},methods:{close:function(){this.$refs.dropdown.close()},onCheckboxChange:function(M){this.$emit("change",M)},gradient:function(M){return"linear-gradient(to right, ".concat(M.join(",",""),")")},enterLayer:function(M){M.style.height="auto";var N=getComputedStyle(M).height;M.style.height=0,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=N}))},afterEnterLayer:function(M){M.style.height="auto"},leaveLayer:function(M){var N=getComputedStyle(M).height;M.style.height=N,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=0}))}}},XT=RT,_T=(D("d284"),Object(kT["a"])(XT,GT,WT,!1,null,"566cf004",null)),HT=_T.exports,FT=(D("386d"),function(){var M=this,N=M._self._c;return N("transition-group",{attrs:{appear:"",name:"appear"}},[N("div",{key:"header",ref:"header",staticClass:"headers-wrapper",class:{none:"aena-point-detail"===M.view},attrs:{role:"region"}},[M.search&&!M.isRouteMode?N("AenaSearch",{key:"search",ref:"search",attrs:{hidden:"aena-point-detail"===M.view&&!M.isMobile,search:M.currentProps.activeFilters.search,view:M.view},on:{onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey,onSelect:M.onSelect,onFocus:M.onInputFocus,onBlur:M.onInputBlur,onBack:M.goBack}}):M._e(),M.isRouteMode?N("div",{key:"route-header",staticClass:"aena-route-header"},[M.isMobile?N("button",{staticClass:"btn-back",on:{click:M.closeRoute}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e(),N("div",{staticClass:"top"},[M.toggleDrag?N("div",{staticClass:"graph absolute inert",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Icon",{attrs:{icon:"ruta-origen.svg",size:"30px"}}),M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1),M._l(M.stepsAdded,(function(D){return M.isMobile?M._e():[N("Icon",{attrs:{icon:"ruta-paso.svg",size:"30px"}}),N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1)]})),M.isMobile?M._e():N("Icon",{attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px"}}),M.isMobile?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],2):M._e(),M.explorerMode&&!M.isMobile?N("button",{staticClass:"btn-close",attrs:{"aria-label":M.$t("CLOSE_ROUTE_CONFIG")},on:{click:M.closeRoute}},[N("Tooltip",{attrs:{text:M.$t("CLOSE_ROUTE_CONFIG"),position:"right"}},[N("Icon",{attrs:{icon:"icon-close.svg",size:"30px",fill:"#90ce00"}})],1)],1):M._e(),N("div",{staticClass:"points"},[N("draggable",{attrs:{"ghost-class":"ghost",sort:!!M.explorerMode&&!M.addBlocked,handle:".graph"},on:{start:M.onDrag,end:M.onDrag},model:{value:M.steps,callback:function(N){M.steps=N},expression:"steps"}},[N("transition-group",[N("div",{key:"origin",staticClass:"input origin",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:M.$t("DRAG_TO_SORT"),position:"right"}},[N("Icon",{attrs:{icon:"ruta-origen.svg",size:"30px"}})],1),M.toggleDrag||M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1)],1),"origin"!==M.destinationName?N("div",{staticClass:"input-selected",class:{static:!M.blockedPois,short:M.stepsAdded.length},on:{click:function(N){return M.clearStep(0,"origin")}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),M.origin?["point"===M.origin.mode||void 0===M.origin.properties.attrs?N("span",[M._v("\n "+M._s(M._f("displayCoordinates")(M.origin.geometry.coordinates))+"\n ")]):N("span",[M._v("\n "+M._s(M.$t(M.origin.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building"},[M._v("\n "+M._s(M.origin.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+"\n "+M._s(M.origin.properties.levelName)+"\n ")])]:N("span",{directives:[{name:"t",rawName:"v-t",value:"SEARCH_ORIGIN",expression:"'SEARCH_ORIGIN'"}],staticClass:"placeholder"})],2)]):M._e(),N("Searcher",{ref:"origin",attrs:{placeholder:M.origin&&"point"!==M.origin.mode?M.$t("ORIGIN")+". "+M.$t(M.origin.properties.attrs.pat_nombre)+". "+M.origin.properties.location.name+". "+M.$t("FLOOR")+" "+M.origin.properties.levelName+". "+M.$t("SEARCH_ORIGIN"):M.$t("SEARCH_ORIGIN"),name:"origin",autofocus:""},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(0)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP"),position:"right"}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e(),M.blockedPois||M.addBlocked||!M.isMobile||M.stepsAdded.length?M._e():N("button",{staticClass:"btn-add-mobile",on:{click:M.addStep}},[N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}})],1)],1),M._l(M.stepsAdded,(function(D,t){return N("div",{key:"step"+t,staticClass:"input add",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:"Arrastra para reordenar",position:"top-left"}},[N("Icon",{attrs:{icon:"ruta-paso.svg",size:"30px"}})],1),M.toggleDrag||M.isMobile?M._e():N("span",{staticClass:"vr"},[N("Icon",{attrs:{icon:"ruta-separadores.svg",size:["2px","10px"]}})],1),M.isMobile?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],1),M.destinationName!=="step"+t?N("div",{staticClass:"input-selected short",class:{static:!M.blockedPois},on:{click:function(N){return M.clearStep(t+1,"step"+t,!0)}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),D.new?N("span",{directives:[{name:"t",rawName:"v-t",value:"SELECT_WAYPOINT",expression:"'SELECT_WAYPOINT'"}],staticClass:"placeholder"}):["point"===D.mode?N("span",[M._v("\n "+M._s(M._f("displayCoordinates")(D.geometry.coordinates))+"\n ")]):N("span",[M._v("\n "+M._s(M.$t(D.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building"},[M._v("\n "+M._s(D.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(D.properties.levelName)+"\n ")])]],2)]):M._e(),N("Searcher",{ref:"step"+t,refInFor:!0,attrs:{placeholder:D&&"point"!==D.mode&&D.properties?M.$t("WAYPOINT")+". "+M.$t(D.properties.attrs.pat_nombre)+". "+D.properties.location.name+". "+M.$t("FLOOR")+" "+D.properties.levelName+". "+M.$t("SELECT_WAYPOINT"):M.$t("SELECT_WAYPOINT"),name:"step"+t,autofocus:""},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(t+1)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP")}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e()],1)})),N("div",{key:"destination",staticClass:"input destination",class:{short:!M.blockedPois&&!M.addBlocked&&M.isMobile&&!M.stepsAdded.length},attrs:{"aria-hidden":"false",draggable:"true"}},[N("div",{staticClass:"graph",attrs:{"aria-hidden":"true"}},[M.isMobile?M._e():N("Tooltip",{attrs:{text:M.$t("DRAG_TO_SORT"),position:"top-left"}},[N("Icon",{attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px"}})],1),M.isMobile&&M.stepsAdded.length?N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]):M._e()],1),"destination"!==M.destinationName?N("div",{staticClass:"input-selected",class:{static:!M.blockedPois,short:M.stepsAdded.length},on:{click:function(N){return M.clearStep(M.steps.length-1,"destination")}}},[N("p",{attrs:{lang:M.$i18n.locale}},[M.isMobile?M._e():N("span",{staticClass:"sorteable"},[N("span"),N("span"),N("span"),N("span")]),N("span",{staticClass:"ghost-template"}),M.destination?["point"===M.destination.mode?N("span",{staticClass:"inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M._f("displayCoordinates")(M.destination.geometry.coordinates))+"\n ")]):N("span",{staticClass:"inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M.$t(M.destination.properties.attrs.pat_nombre))+"\n ")]),N("span",{staticClass:"building inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(M.destination.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+"\n "+M._s(M.destination.properties.levelName)+"\n ")])]:N("span",{directives:[{name:"t",rawName:"v-t",value:"SEARCH_DESTINATION",expression:"'SEARCH_DESTINATION'"}],staticClass:"placeholder"})],2)]):M._e(),N("Searcher",{ref:"destination",attrs:{placeholder:M.destination&&"point"!==M.destination.mode?M.$t("DESTINATION")+". "+M.$t(M.destination.properties.attrs.pat_nombre)+". "+M.destination.properties.location.name+". "+M.$t("FLOOR")+" "+M.destination.properties.levelName+". "+M.$t("SEARCH_DESTINATION"):M.$t("SEARCH_DESTINATION"),name:"destination"},on:{focus:M.onInputFocus,onInputChange:M.onInputChange,onEnterKey:M.onInputEnterKey}}),M.stepsAdded.length?N("button",{staticClass:"clear",attrs:{"aria-label":M.$t("DELETE_STEP")},on:{click:function(N){return M.clearStep(M.steps.length-1)}}},[N("Tooltip",{attrs:{text:M.$t("DELETE_STEP")}},[N("Icon",{attrs:{icon:"papelera-t.svg",size:"30px",fill:M.isMobile?"#1A2732":"#ffffff"}})],1)],1):M._e()],1)],2)],1)],1)]),!M.blockedPois&&!M.isMobile&&M.stepsAdded.length<3?N("button",{staticClass:"btn-add",class:{disabled:M.addBlocked},attrs:{"aria-disabled":M.addBlocked},on:{click:M.addStep}},[N("p",[M._v(M._s(M.$t("ADD_WAYPOINT")))]),M.addBlocked?N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}}):N("Tooltip",{attrs:{text:M.$t("ADD_WAYPOINT")}},[N("Icon",{attrs:{icon:"a-adir.svg",size:"30px",fill:"#1A2732"}})],1)],1):M._e(),"true"===M.pmr_enabled?N("div",{staticClass:"pmr-content"},[N("ToggleSwitch",{attrs:{label:M.$t("ROUTES_NO_BARRIERS"),value:M.pmrActive},on:{change:M.togglePMR}}),N("button",{on:{click:M.showPMRConfig}},[N("span",[M._v(M._s(M.$t("SHOW_PMR")))])])],1):M._e()]):M._e(),M.isRouteMode&&!M.addBlocked?N("div",{key:"time",staticClass:"time",class:{shadow:!M.blockedPois}},[M.error?[N("div",{staticClass:"no-route"},[N("Icon",{staticClass:"clear",attrs:{icon:"warning-t.svg",size:"30px",fill:"#ff7276"}}),N("div",{staticClass:"info"},[N("div",{staticClass:"top"},[N("p",{directives:[{name:"t",rawName:"v-t",value:"NO_ROUTE",expression:"'NO_ROUTE'"}],staticClass:"description"})]),N("button",{directives:[{name:"t",rawName:"v-t",value:"TRY_AGAIN",expression:"'TRY_AGAIN'"}],staticClass:"btn-route error",attrs:{"aria-haspopup":"true","aria-expanded":"isVisible","aria-controls":"aena-route-container"},on:{click:function(N){return M.clearStep(0,"origin")}}})])],1)]:[M.isMobile?M._e():N("Icon",{staticClass:"clear",attrs:{icon:M.iconCondition,size:"30px",fill:"#1a2732"}}),N("div",{staticClass:"info"},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("ROUTE_SUMMARY")))]),N("div",{staticClass:"top"},[N("h3",{attrs:{lang:M.$i18n.locale}},[N("b",[N("abbr",{attrs:{title:M.durationTime(M.duration,{abbr:!1})}},[M._v(M._s(M.durationTime(M.duration)))]),N("i",{attrs:{"aria-hidden":"true"}},[M._v("·")])]),M._v("\n "+M._s(M.$n(M.distance,"noDecimal"))+" "),N("abbr",{attrs:{title:M.$t("METERS")}},[M._v("m")])]),N("p",{staticClass:"description",attrs:{tabindex:"0"}},[N("span",{staticClass:"security-control"},[M._v(M._s(M.$t(M.routeCondition.msg)))]),N("span",[M._v(M._s(M.$t(M.routeCondition.msg2)))])])]),M.isMobile?M._e():N("button",{directives:[{name:"t",rawName:"v-t",value:"ROUTE",expression:"'ROUTE'"}],staticClass:"btn-route",attrs:{"aria-label":(M.blockedPois?M.$t("CLOSE"):M.$t("VISUALIZE"))+" "+M.$t("ROUTE_SUMMARY"),"aria-hidden":M.blockedPois},on:{click:M.toggleBlocked}})]),M.isMobile?N("div",{staticClass:"buttons"},[N("button",{staticClass:"indications",on:{click:M.toggleBlocked}},[N("p",[M._v(M._s(M.$t("INDICATIONS")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-rating-jj.svg",size:"30px",fill:"#1A2732"}})],1),M.isAndroid||M.isIOS?N("button",{staticClass:"start",on:{click:M.toggleBanner}},[N("p",[M._v(M._s(M.$t("START")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#1A2732"}})],1):M._e()]):M._e()],M.loading?N("div",{staticClass:"loading"},[N("svg",{staticClass:"spinner",attrs:{width:"26px",height:"26px",viewBox:"0 0 26 26"}},[N("circle",{staticClass:"path",attrs:{fill:"none","stroke-width":"2","stroke-linecap":"round",cx:"13",cy:"13",r:"12"}})])]):M._e()],2):M._e(),N("transition",{attrs:{appear:"",name:"banner"}},[(M.isAndroid||M.isIOS)&&M.appBanner?N("div",{staticClass:"app-banner"},[N("div",{staticClass:"banner-row"},[N("div",{staticClass:"image-wrapper"},[N("img",{attrs:{src:D("3f3a"),alt:""}})]),N("div",{staticClass:"content-wrapper"},[N("span",[N("h3",[M._v(M._s(M.$t("ASPA")))]),N("p",[M._v("Esta aplicación te ofrece la navegación en tiempo real con instrucciones visuales y por voz.")])])])]),N("div",{staticClass:"buttons"},[N("button",{staticClass:"not",on:{click:M.toggleBanner}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}}),N("p",[M._v(M._s(M.$t("NOT_NOW")))])],1),N("a",{staticClass:"open",attrs:{href:M.appLink}},[N("p",[M._v(M._s(M.$t("OPEN_APP")))])])])]):M._e()])],1),M.addBlocked||M.blockedPois?N("div",{key:"container",ref:"container",staticClass:"aena-points-container",class:[M.deviceWidthClass,{visible:M.isVisible,"detail-mobile":M.isCollapsed}]},[N("transition",{attrs:{name:"fade",mode:"out-in"},on:{"after-enter":M.onTransitionEnter}},[N(M.view,M._b({ref:"component",tag:"component",on:{onSelect:M.onSelect,onFilter:M.onFilter,onCategory:M.onCategory,onCloseRoute:M.toggleBlocked,onCollapsed:M.toggleCollapsed,goBack:M.resetView}},"component",M.currentProps,!1))],1)],1):M._e()])}),VT=[],JT=(D("55dd"),D("5df3"),D("4f7f"),D("3b2b"),function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-search-container",class:[M.deviceWidthClass,{hidden:M.hidden,focus:M.focus&&"aena-point-detail"!==M.view,active:M.active}]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("SEARCH_PLACEHOLDER")))]),N("Searcher",{attrs:{search:M.search,placeholder:M.$t("SEARCH_PLACEHOLDER")},on:{onActive:M.setActive,focus:M.onFocus,onEnterKey:M.onEnterKey,blur:M.onBlur}}),N("transition",{attrs:{name:"btn-back",appear:""}},[M.isMobile&&M.active&&M.hasRoute?N("button",{staticClass:"btn-back",on:{click:M.goBack}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px",fill:"#598000"}})],1):M._e()]),M.hasRoute?N("button",{staticClass:"btn-route",attrs:{type:"submit",tabindex:"0","aria-hidden":"true","aria-label":M.$t("CONFIG_ROUTE")},on:{click:M.goToRoute}},[N("Tooltip",{attrs:{text:M.$t("CONFIG_ROUTE"),position:"right"}},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#525C65"}})],1)],1):M._e()],1)}),qT=[],KT=function(){var M=this,N=M._self._c;return N("div",{staticClass:"input-wrapper",class:[M.deviceWidthClass,{active:M.active}]},[N("input",{directives:[{name:"model",rawName:"v-model",value:M.inputValue,expression:"inputValue"}],ref:"input",attrs:{type:"text",name:"search",autocomplete:"off",placeholder:M.placeholder,"aria-live":"assertive","aria-label":M.placeholder,"aria-labelledby":"search-results",lang:M.$i18n.locale},domProps:{value:M.inputValue},on:{input:[function(N){N.target.composing||(M.inputValue=N.target.value)},M.onInputChange],keypress:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"enter",13,N.key,"Enter")?null:M.onEnterKey(N)},focus:M.onFocus,blur:M.onBlur}}),M.active?N("button",{staticClass:"clear",attrs:{type:"reset","aria-label":M.$t("CLEAR_INPUT")},on:{click:function(N){return M.onClear(!0)}}},[N("Icon",{attrs:{icon:"icon-clear-form.svg",size:"30px",fill:"#949d9e"}})],1):M._e(),M.active?N("Icon",{staticClass:"arrow",attrs:{icon:"icon-lupa-t.svg",size:"30px",fill:"#1a2732","aria-hidden":"true"}}):N("Icon",{staticClass:"arrow",attrs:{icon:"icon-lupa-t.svg",size:"30px",fill:"#A8ABAD","aria-hidden":"true"}})],1)},$T=[],Mg={name:"app-searcher",mixins:[fT["a"]],components:{},props:{placeholder:{type:String,required:!1},name:{type:String,required:!1},search:{type:String,default:"",required:!1},autofocus:{type:Boolean,default:!1}},data:function(){return{inputValue:this.search}},mounted:function(){this.autofocus&&!this.search&&this.onFocus()},computed:{active:function(){return!!this.inputValue.length}},methods:{onFocus:function(){this.$refs.input.focus(),this.$emit("focus",this.name)},onEnterKey:function(){this.$emit("onEnterKey");var M=document.querySelector("#pois-list");M.focus()},onBlur:function(M){M.target.blur(),this.$emit("blur",this.name)},onInputChange:function(){if(this.$emit("onActive",this.active),!this.inputValue.length)return this.onClear();this.inputValue.length>=2&&(this.$emit("onInputChange",{value:this.inputValue,name:this.name}),this.$parent.$emit("onInputChange",{value:this.inputValue,name:this.name}))},onClear:function(M){return this.inputValue="",M&&this.onFocus(),this.$emit("onInputChange",{name:this.name}),this.$emit("onActive",this.active),this.$parent.$emit("onInputChange",{name:this.name})}},watch:{search:function(M){this.inputValue=M}}},Ng=Mg,Dg=(D("ee05"),Object(kT["a"])(Ng,KT,$T,!1,null,"674262d0",null)),tg=Dg.exports;function ig(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function eg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?ig(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):ig(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var jg={name:"app-aenaSearch",mixins:[fT["a"]],components:{Searcher:tg},props:{hidden:{type:Boolean,default:!1},search:{type:String,required:!1},view:{type:String,required:!0}},data:function(){return{active:!1,focus:!1}},computed:eg(eg({},Object(n["c"])({airport:I["b"].GET_AIRPORT,isMobile:I["b"].GET_IS_MOBILE})),{},{hasRoute:function(){return this.airport.has_graph}}),methods:{setActive:function(M){this.active=M},onFocus:function(){this.active=!0,this.focus=!0,this.$emit("onFocus")},onEnterKey:function(){this.$emit("onEnterKey")},onBlur:function(){this.isMobile||(this.focus=!1),this.$emit("onBlur")},goToRoute:function(){this.focus=!1;var M=this.$root.$data.avaMode,N=this.$root.$data.autoCalculateRoute,D=this.$store.getters[I["b"].GET_POID_ID],t=this.$store.getters[I["b"].GET_POI_ID];M&&!N&&D?(this.$emit("onSelect",{component:"aena-point-detail",pointDetail:{id:D}}),this.$root.$emit("forceHighlightPoi",D)):M&&t&&!D?(this.$emit("onSelect",{component:"aena-point-detail",pointDetail:{id:t}}),this.$root.$emit("forceHighlightPoi",t)):this.$emit("onSelect",{component:"aena-route-pre"})},goBack:function(){this.focus=!1,this.$emit("onBack")}}},Tg=jg,gg=(D("5c61"),Object(kT["a"])(Tg,JT,qT,!1,null,"06365ee2",null)),sg=gg.exports,ug=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-highlighted-points-container",class:[M.deviceWidthClass,M.outdoorActived&&"route-mode"]},[M.outdoorDisabled?N("AenaHighlightedPointsList",{attrs:{highlighted:M.highlighted,"outdoor-disabled":M.outdoorDisabled},on:{onAllPoints:M.allPoints,onSelectPoint:M.selectPoint}}):N("Tabs",[N("Tab",{ref:"mainTab",staticClass:"airport",attrs:{name:M.$t("AIRPORT"),selected:"",id:"airport"}},[N("AenaHighlightedPointsList",{attrs:{highlighted:M.highlighted,"outdoor-disabled":M.outdoorDisabled},on:{onAllPoints:M.allPoints,onSelectPoint:M.selectPoint}})],1),N("Tab",{ref:"outdoorTab",staticClass:"outdoor",attrs:{name:M.$t("OUTDOOR"),disabled:M.outdoorDisabled,id:"outdoor"}},[N("Scrollbar",[N("div",{staticClass:"scroll-content"},[M.isMobile?N("div",{staticClass:"heading-mobile"},[N("h2",{directives:[{name:"t",rawName:"v-t",value:"OUTDOOR_TITLE",expression:"'OUTDOOR_TITLE'"}],attrs:{lang:M.$i18n.locale}})]):N("h2",{directives:[{name:"t",rawName:"v-t",value:"OUTDOOR_TITLE",expression:"'OUTDOOR_TITLE'"}],attrs:{lang:M.$i18n.locale}}),N("ul",{staticClass:"list",attrs:{"aria-label":M.$t("HIGHLIGHT_POINTS")}},M._l(M.outdoorOptions,(function(D){return N("li",{staticClass:"item-wrapper"},[N("a",{staticClass:"item",attrs:{href:D.href,target:"_blank",rel:"noopener noreferrer"},on:{click:M.goToOutdoor}},[N("Icon",{attrs:{icon:D.icon,size:"50px",fill:"#72a300"}}),N("div",{staticClass:"text"},[N("div",{staticClass:"title-wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.title))])]),N("p",{staticClass:"location"},[N("span",[M._v(M._s(D.subtitle))])])]),N("Icon",{attrs:{icon:"arrow-diagonal-t.svg",size:"30px"}})],1)])})),0)])])],1)],1)],1)},zg=[],Ag=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-highlighted-points-list-container"},[N("div",{staticClass:"wrapper",class:{"with-tabs":!M.outdoorDisabled}},[N("Scrollbar",[N("div",{ref:"scroller",staticClass:"scroll-content"},[M.isMobile?N("div",{staticClass:"heading-mobile"},[N("h1",{directives:[{name:"t",rawName:"v-t",value:"HIGHLIGHT_POINTS_SHORT",expression:"'HIGHLIGHT_POINTS_SHORT'"}],attrs:{lang:M.$i18n.locale}}),M.isMobile?N("button",{staticClass:"btn-other-points",on:{click:M.allPoints}},[N("p",{directives:[{name:"t",rawName:"v-t",value:"ALL_SHORT",expression:"'ALL_SHORT'"}]}),N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e()]):N("h2",{directives:[{name:"t",rawName:"v-t",value:"HIGHLIGHT_POINTS",expression:"'HIGHLIGHT_POINTS'"}],attrs:{lang:M.$i18n.locale,id:"highlighted-points-title"}}),N("ul",{staticClass:"grid",attrs:{"aria-label":M.$t("HIGHLIGHT_POINTS"),"aria-labelledby":"highlighted-points-title"}},M._l(M.highlighted,(function(D){return N("li",{staticClass:"item-wrapper"},[N("button",{staticClass:"item",attrs:{"aria-label":D.name},on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.icon,size:"50px"}}),N("p",[M._v(M._s(D.name))])],1)])})),0)])])],1),N("button",{staticClass:"btn-other-points",on:{click:M.allPoints}},[N("p",{directives:[{name:"t",rawName:"v-t",value:"ALL_POINTS",expression:"'ALL_POINTS'"}]}),N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1)])},Lg=[];function Ig(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function ng(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Ig(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Ig(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var rg={name:"AenaHighlightedPointsList",mixins:[],components:{},props:{highlighted:{type:Array,required:!0},outdoorDisabled:{type:Boolean,required:!0}},data:function(){return{}},mounted:function(){var M=this;this.$refs.scroller.addEventListener("mouseover",(function(){M.$refs.scroller.style.visibility="visible"})),this.$refs.scroller.addEventListener("mouseout",(function(){M.$refs.scroller.style.visibility="hidden"}))},computed:ng({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE})),methods:{selectPoint:function(M){this.$emit("onSelectPoint",M)},allPoints:function(){this.$emit("onAllPoints")}}},wg=rg,cg=(D("da4b"),Object(kT["a"])(wg,Ag,Lg,!1,null,"dddfb318",null)),yg=cg.exports;function ag(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function og(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?ag(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):ag(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Eg={name:"app-aenaHighlightedPoints",mixins:[fT["a"]],components:{AenaHighlightedPointsList:yg},props:{highlighted:{type:Array,required:!0},headerHeight:{type:Number,required:!0}},data:function(){return{}},computed:og(og({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE,airportID:I["b"].GET_AIRPORT_ID,isRoute:I["b"].IS_ROUTE_MODE,pois:I["b"].GET_POIS_LIST,transitionPoisList:I["b"].GET_TRANSITION_POIS_LIST,destinationC:I["b"].GET_DESTINATION,route:I["b"].GET_ROUTE,buildings:I["b"].GET_BUILDINGS})),{},{outdoorOptions:function(){var M=this,N="https://www.google.com/maps/dir",D="",t="";if(this.destinationC){var i=this.buildings.find((function(N){return N.id===M.destinationC.properties.building})).levels.find((function(N){return N.id===M.destinationC.properties.level})).oit_point,e=this.transitionPoisList.find((function(M){return M.properties.id===i}));t=e.geometry.coordinates.slice(0,2).reverse().toString()}return[{href:"".concat(N,"/").concat(D,"/").concat(t,"/data=!4m2!4m1!3e0"),icon:"car-t.svg",title:this.$t("OUTDOOR_OPTION_1"),subtitle:this.$t("OUTDOOR_SUB_OPTIONS")},{href:"".concat(N,"/").concat(D,"/").concat(t,"/data=!4m2!4m1!3e3"),icon:"Transporte_publico_T.svg",title:this.$t("OUTDOOR_OPTION_2"),subtitle:this.$t("OUTDOOR_SUB_OPTIONS")}]},outdoorActived:function(){return this.isRoute&&"origin"===this.route.destinationName},outdoorDisabled:function(){return!this.destinationC}}),methods:og(og({},Object(n["b"])([I["a"].LOAD_ROUTE])),{},{selectPoint:function(M){this.$emit("onSelect",{category:M,component:"aena-points-categories"});var N={eventCategory:"buscador",eventAction:"punto de interes",eventLabel:"".concat(Object(o["a"])(M.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N)},allPoints:function(){this.$emit("onSelect",{component:"aena-points-list"})},goToOutdoor:function(M){var N=this,D=this.buildings.find((function(M){return M.id===N.destinationC.properties.building})).levels.find((function(M){return M.id===N.destinationC.properties.level})).oit_point,t=this.transitionPoisList.find((function(M){return M.properties.id===D}));t?(t.mode="point",t.properties.icon="marcadores/pp_00-mk.svg",this[I["a"].LOAD_ROUTE]({origin:t})):console.warn("Destination Poi building (".concat(this.destinationC.properties.location.name,") has no transition poi"))}}),watch:{isRoute:{immediate:!0,handler:function(M){M||this.$refs.mainTab&&(this.$refs.outdoorTab.isActive=!1,this.$refs.mainTab.isActive=!0)}}}},Og=Eg,xg=(D("7972a"),Object(kT["a"])(Og,ug,zg,!1,null,"0a113b08",null)),Cg=xg.exports,Sg=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-points-list-container",class:[M.deviceWidthClass],attrs:{tabindex:"0","aria-labelledby":"title"}},[N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.$t("ALL_POINTS")))]),N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("POINTS_OF_INTEREST")},on:{click:M.goBack}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#525C65"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"POINTS_OF_INTEREST",expression:"'POINTS_OF_INTEREST'"}]})],1),N("div",{staticClass:"list-wrapper"},[N("Scrollbar",[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[N("ul",{attrs:{"aria-label":M.$t("ALL_POINTS")}},M._l(M.points,(function(D){return N("li",[N("button",{on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.icon,size:"30px",fill:"#1A2732"}}),N("p",[M._v(M._s(D.name))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#525C65"}})],1)])})),0)])])],1)])},lg=[];function kg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Qg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?kg(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):kg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var dg={name:"app-aenaPointsList",mixins:[fT["a"]],components:{},props:{points:{type:Array,required:!0},headerHeight:{type:Number,required:!0}},data:function(){return{}},computed:Qg({},Object(n["c"])({airportID:I["b"].GET_AIRPORT_ID})),mounted:function(){var M=this;this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},methods:{selectPoint:function(M){this.$emit("onSelect",{category:M,component:"aena-points-categories"});var N={eventCategory:"buscador",eventAction:"punto de interes",eventLabel:"".concat(Object(o["a"])(M.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N)},goBack:function(){this.$emit("onSelect",{component:"aena-highlighted-points"})}}},Yg=dg,pg=(D("fc86"),Object(kT["a"])(Yg,Sg,lg,!1,null,"5c989fe8",null)),Ug=pg.exports,hg=function(){var M=this,N=M._self._c;return N("div",{ref:"section",staticClass:"aena-points-categories-container",class:[M.deviceWidthClass],attrs:{tabindex:"0","aria-labelledby":"title"}},[N("AenaTerminalsFilter",{attrs:{airport:M.airport,filters:M.filters},on:{onFilterChange:M.setFilter}}),N("div",{staticClass:"container-row"},[M.isMobile?M._e():N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("ALL_POINTS")},on:{click:function(N){return M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"24px",fill:"#1A2732"}})],1),M.category?N("span",{staticClass:"title"},[M._v(M._s(M.category.name))]):N("span",{directives:[{name:"t",rawName:"v-t",value:"ALL_POINTS",expression:"'ALL_POINTS'"}],staticClass:"title"}),M.isMobile?M._e():N("Tooltip",{attrs:{text:M.filtering?M.$t("FILTERING_SEE_ALL"):M.$t("FILTERING_SEE_ONLY"),position:"top","aria-hidden":"true"}},[N("button",{staticClass:"toggle-filtering",attrs:{"aria-hidden":"true"},on:{click:function(N){return M.toggleFiltering()}}},[M.filtering?N("Icon",{attrs:{icon:"see_only.svg",size:"24px"}}):N("Icon",{attrs:{icon:"see_all.svg",size:"24px"}})],1)])],1),N("div",{staticClass:"list-wrapper"},[N("Scrollbar",{ref:"scrollbar",on:{onScroll:M.onScroll}},[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[M.showCategories?N("AenaTerminalsCategories",{attrs:{category:M.category,categories:M.categories},on:{onCategoryChange:M.setCategory,goBack:M.goBack}}):M._e(),N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.search?M.$t("SEARCH_RESULTS"):M.$t("POIS_LIST")))]),M.pois.length?N("ul",{class:{pb:M.search},attrs:{tabindex:"0",id:"pois-list","aria-label":(M.search?M.$t("SEARCH_RESULTS"):M.$t("POIS_LIST"))+". "+M.points.length+" "+M.$t("RESULTS")+" "+(M.activeFilters.building?M.getBuildingName(M.activeFilters.building):M.$t("THROUGHOUT_THE_AIRPORT"))}},M._l(M.pois,(function(D){return N("li",[N("button",{attrs:{"aria-label":M.$t("CATEGORY")+" "+M.getCategoryName(D.properties.subcategories[0])+". "+D.properties.attrs.pat_nombre+". "+D.properties.location.name+"."+M.$t("FLOOR")+". "+D.properties.levelName+". "+(D.total>1?D.total+M.$t("SAME_FLOOR_RESULTS"):"")},on:{click:function(N){return M.selectPoint(D)}}},[N("Icon",{attrs:{icon:D.properties.icon,size:"30px"}}),N("div",{staticClass:"text"},[N("div",{staticClass:"title-wrapper"},[N("p",{staticClass:"title"},[M._v(M._s(D.properties.attrs.pat_nombre))]),D.total>1?N("span",{staticClass:"total"},[M._v("("+M._s(D.total)+")")]):M._e()]),N("p",{staticClass:"location"},[N("b",[M._v(M._s(D.properties.location.name)+". ")]),N("span",[M._v(M._s(M.$t("FLOOR"))+" "+M._s(D.properties.levelName))])])])],1)])})),0):[N("div",{staticClass:"no-result"},[N("Icon",{attrs:{icon:"warning-t.svg",size:"30px",fill:"#ff7276"}}),N("div",{staticClass:"info"},[N("div",{directives:[{name:"t",rawName:"v-t",value:"NO_RESULT_POIS",expression:"'NO_RESULT_POIS'"}],staticClass:"title"})])],1)]],2)])],1),M.isMobile?M._e():N("div",{staticClass:"results",attrs:{id:"search-results","aria-live":"assertive"}},[N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.points.length)+" "+M._s(M.$t("RESULTS"))+" "+M._s(M.activeFilters.building?M.getBuildingName(M.activeFilters.building):M.$t("THROUGHOUT_THE_AIRPORT"))+". "),N("span",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("ENTER_TO_RESULTS")))])]),M.goToTopVisible?N("button",{on:{click:function(N){return M.goToTop()}}},[M._v(M._s(M.$t("GO_TO_TOP")))]):M._e()])],1)},fg=[],mg=(D("f400"),function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-filter-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("FILTER_RESULTS_BY"))+" "+M._s(M.$t("TERMINALS"))+" "+M._s(M.$t("AND"))+" "+M._s(M.$t("FLOORS")))]),N("div",{ref:"menu",staticClass:"filters-wrapper"},[N("div",{staticClass:"all-filters"},[N("p",{directives:[{name:"t",rawName:"v-t",value:"FILTER",expression:"'FILTER'"}],attrs:{"aria-hidden":"true"}}),N("Tooltip",{attrs:{text:M.$t("AIRPORT_RESULTS")}},[N("button",{staticClass:"filter all",class:{active:!M.activeFilter},attrs:{type:"button","aria-label":M.$t("FILTER_BY")+" "+M.$t("AIRPORT_RESULTS"),"aria-pressed":M.activeFilter?0:-1,tabindex:M.activeFilter?0:-1},on:{click:function(N){return M.setFilter()}}},[M._v("\n "+M._s(M.airport.iata_code)+"\n ")])])],1),N("div",{staticClass:"filter-options"},[N("Tooltip",{attrs:{text:M.$t("TERMINAL_RESULTS")+" "+M.$t("TERMINALS")+" "+M.$t("AND")+" "+M.$t("FLOORS"),"auto-hide":!0,"auto-hide-time":5e3}},[N("Scrollbar",{ref:"scrollbar",attrs:{"vertical-scroll":!1,"horizontal-scroll":!0}},[N("div",{ref:"scrollContent",staticClass:"scroll-content",attrs:{tabindex:"-1"}},[N("div",{attrs:{role:"menu","aria-label":M.$t("FILTER_RESULTS_BY")+" "+M.$t("TERMINALS")}},M._l(M.terminals,(function(D){return N("button",{key:D.id,ref:D.id,refInFor:!0,staticClass:"filter",class:{active:M.activeFilter===D.id},style:{backgroundColor:M.activeFilter===D.id?D.color:"#E9ECEF",color:M.activeFilter===D.id?D.font_color:"#1A2732",borderColor:M.activeFilter===D.id?D.color:"#E9ECEF"},attrs:{type:"button",role:"menuitem","aria-label":M.$t("FILTER_BY")+" "+D.name,"aria-pressed":M.activeFilter===D.id},on:{click:function(N){return N.stopPropagation(),M.setFilter(D)}}},[M._v("\n "+M._s(D.short_name)+"\n ")])})),0),N("div",{attrs:{role:"menu","aria-label":M.$t("FILTER_RESULTS_BY")+" "+M.$t("PARKINGS")}},M._l(M.others,(function(D){return N("button",{key:D.id,ref:D.id,refInFor:!0,staticClass:"filter square",class:{active:M.isAssociateActive(D.id)},style:{backgroundColor:M.isAssociateActive(D.id)?D.color:"#E9ECEF",color:M.isAssociateActive(D.id)?D.font_color:"#1A2732",borderColor:M.isAssociateActive(D.id)?D.color:"#E9ECEF"},attrs:{type:"button",role:"menuitem","aria-label":M.$t("FILTER_BY")+" "+D.name,"aria-pressed":M.isAssociateActive(D.id)},on:{click:function(N){return N.stopPropagation(),M.setFilter(D)}}},[M._v("\n "+M._s(D.short_name)+"\n "),D.color&&D.short_name.length<2?N("span",{staticClass:"triangle",style:{borderRightColor:D.color}}):M._e()])})),0)])])],1)],1)])])}),vg=[];function Bg(M){return Array.isArray(M)?M[0]:M}function bg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Pg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?bg(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):bg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Zg={name:"app-aenaTerminalsFilter",mixins:[fT["a"]],components:{},props:{airport:{type:Object,required:!0},filters:{type:Array,required:!0}},data:function(){return{activeFilter:""}},created:function(){this.activeFilter=this.activeFilterC.building},mounted:function(){var M=this;if(this.activeFilter){var N=Bg(this.$refs[this.activeFilter]);this.$refs.scrollbar.scrollTo(N.offsetLeft,0)}this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},computed:Pg(Pg({},Object(n["c"])({activeFilterC:C["b"].GET_ACTIVE_FILTERS})),{},{terminals:function(){return this.filters.filter((function(M){return"TERMINAL"===M.category}))},others:function(){return this.filters.filter((function(M){return"TERMINAL"!==M.category}))},associatedParking:function(){return this.activeFilterC.associatedParking||[]}}),methods:{setFilter:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.activeFilter=M.id,this.$emit("onFilterChange",M.id)},isAssociateActive:function(M){return this.activeFilter===M||(this.activeFilterC.associatedParking||[]).includes(M)}}},Gg=Zg,Wg=(D("d669"),Object(kT["a"])(Gg,mg,vg,!1,null,"5aaf0a8d",null)),Rg=Wg.exports,Xg=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-categories-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("FILTER_BY_CATEGORIES")))]),M.isMobile?N("button",{staticClass:"btn-back",attrs:{"aria-label":M.$t("BACK_TO")+M.$t("ALL_POINTS")},on:{click:function(N){return M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#1A2732"}})],1):M._e(),M.isMobile?N("span",{staticClass:"vl"}):M._e(),N("ul",{staticClass:"options",attrs:{role:"menu","aria-label":M.$t("FILTER_BY")+" "+M.$t("CATEGORIES")}},[M.category&&!M.noDuplicate?N("li",{staticClass:"li-all",attrs:{role:"menuitem"}},[N("button",{staticClass:"category all",class:{active:!M.activeCategories.length},attrs:{role:"checkbox","aria-label":M.$t("FILTER_BY")+M.category.name+" "+M.$t("ALL"),"aria-checked":!M.activeCategories.length},on:{click:function(N){return M.onChange()}}},[N("b",[M._v(M._s(M.category.name))]),M._v(" ("+M._s(M.$t("ALL"))+")\n ")])]):M._e(),M._l(M.categoriesVisible,(function(D){return N("li",{key:D.id,attrs:{role:"menuitem"}},[N("button",{staticClass:"category",class:{active:M.isActive(D.id)},attrs:{role:"checkbox","aria-label":M.$t("FILTER_BY")+D.name,"aria-checked":M.isActive(D.id)},on:{click:function(N){return M.onChange(D)}}},[N("p",[M._v(M._s(D.name))])])])}))],2),M.categoriesHidden>0?N("button",{staticClass:"category more",attrs:{"aria-label":M.$t("MORE_FILTERS")},on:{click:function(N){return M.onToggle()}}},[N("p",[M._v(M._s(M.categoriesHidden)+" "+M._s(M.$t("MORE")))])]):M._e(),M.toggle&&!M.categoriesHidden?N("button",{staticClass:"category less",attrs:{"aria-label":M.$t("LESS_FILTERS")},on:{click:function(N){return M.onToggle()}}},[N("p",[M._v(M._s(M.$t("LESS_CATEGORIES")))])]):M._e()])},_g=[];function Hg(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Fg(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Hg(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Hg(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Vg={name:"app-aenaTerminalsCategories",mixins:[fT["a"]],components:{},props:{category:{type:Object},categories:{type:Array,required:!0}},data:function(){return{activeCategories:[],toggle:!1}},created:function(){this.updateSelected(),this.onCategoryChange()},destroyed:function(){this.resetCategory()},computed:Fg(Fg({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE,activeFilterC:I["b"].GET_ACTIVE_FILTERS,airportID:I["b"].GET_AIRPORT_ID})),{},{categoriesVisible:function(){var M=this.categories;return this.isMobile||(M=this.toggle?M:M.slice(0,6)),M},categoriesHidden:function(){return this.categories.length-this.categoriesVisible.length},noDuplicate:function(){if(this.category&&1===this.categoriesVisible.length&&this.category.name===this.categoriesVisible[0].name)return this.setCategory(this.categoriesVisible[0]),!0}}),methods:{updateSelected:function(){var M=this;(this.activeFilterC.subcategories||[]).forEach((function(N){var D=M.categories.find((function(M){return M.id===N}));M.setCategory(D)}))},resetCategory:function(){this.activeCategories=[],this.categories.forEach((function(M){M.active=!1}))},setCategory:function(M){if(M){s["a"].set(M,"active",!M.active);var N=this.activeCategories.includes(M.id);N?this.activeCategories=this.activeCategories.filter((function(N){return N!==M.id})):this.activeCategories.push(M.id)}else this.resetCategory()},onCategoryChange:function(){var M=null;this.category&&(M=Fg({},this.category)),M&&M.subcategories&&(M.subcategories=M.subcategories.map((function(M){return M.id}))),this.$emit("onCategoryChange",{data:this.activeCategories.length?this.activeCategories:M,type:this.activeCategories.length?"subcategories":"category"})},onChange:function(M){this.setCategory(M),this.onCategoryChange();var N=M;M||(N=this.category);var D={eventCategory:"buscador",eventAction:"categoria",eventLabel:"".concat(Object(o["a"])(N.name)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D)},onToggle:function(){this.toggle=!this.toggle},isActive:function(M){return this.activeCategories.includes(M)},goBack:function(){this.$emit("goBack")}},watch:{"activeFilterC.subcategories":{handler:function(){this.resetCategory(),this.updateSelected()}}}},Jg=Vg,qg=(D("297f"),Object(kT["a"])(Jg,Xg,_g,!1,null,"7aa9179d",null)),Kg=qg.exports;function $g(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Ms(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?$g(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):$g(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Ns={name:"app-aenaPointsCategories",mixins:[m,P,fT["a"]],components:{AenaTerminalsFilter:Rg,AenaTerminalsCategories:Kg},props:{points:{type:Array,required:!0},airport:{type:Object,required:!0},filters:{type:Array,required:!0},activeFilters:{type:Object,required:!0},category:{type:Object},categories:{type:Array,required:!0},search:{type:Boolean,default:!1},headerHeight:{type:Number,required:!0}},data:function(){return{grouped:new Map,goToTopVisible:!1}},created:function(){this.setLocation(this.points)},mounted:function(){var M=this;this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1)},computed:Ms(Ms({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE,isRouteMode:I["b"].IS_ROUTE_MODE,airportID:I["b"].GET_AIRPORT_ID,filtering:I["b"].GET_FILTERING})),{},{showCategories:function(){return this.category||this.categories&&this.categories.length},pois:function(){var M=this,N=new Map;return this.points.forEach((function(D){var t=D.properties.attrs.pat_nombre+D.properties.location.name+D.properties.level,i=N.get(t);if(i){var e=M.grouped.get(i.properties.id);e.push(D),M.grouped.set(i.properties.id,e),i.total++}else M.grouped.set(D.properties.id,[D]),D.total=1,N.set(t,D)})),Object(y["a"])(N.values())}}),methods:Ms(Ms({},Object(n["d"])([I["c"].SAVE_FILTERING])),{},{setFilter:function(M){this.$emit("onFilter",M)},setCategory:function(M){this.$emit("onCategory",M),this.updateScrollbar()},selectPoint:function(M){if(this.isRouteMode){var N=this.moreClose(this.grouped.get(M.properties.id));this.$emit("onSelect",{component:"aena-route-poi",pointDetail:N})}else this.$emit("onSelect",{component:"aena-point-detail",pointDetail:M.properties,pointGrouped:this.grouped.get(M.properties.id)});var D="".concat(M.properties.location.name,". planta ").concat(M.properties.levelName,". ").concat(this.$t(M.properties.attrs.pat_nombre)),t={eventCategory:"buscador",eventAction:"buscar",eventLabel:"".concat(Object(o["a"])(D)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",t)},getBuildingName:function(M){return"".concat(this.$t("IN")," ").concat((this.filters.find((function(N){return N.id===M}))||{}).name)},getCategoryName:function(M){return"".concat((this.categories.find((function(N){return N.id===M}))||{}).name)},updateScrollbar:function(){var M=this;setTimeout((function(){M.$refs.scrollbar.update()}),360)},onScroll:function(M){M.y>=60?this.goToTopVisible=!0:this.goToTopVisible=!1},goToTop:function(){this.$refs.scrollbar.scrollTo(0,0)},goBack:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"aena-points-list";this.$emit("onSelect",{component:M,search:void 0})},toggleFiltering:function(){this[I["c"].SAVE_FILTERING](!this.filtering)}}),watch:{points:function(M){this.setLocation(M)}}},Ds=Ns,ts=(D("15f7"),Object(kT["a"])(Ds,hg,fg,!1,null,"2540be6c",null)),is=ts.exports,es=function(){var M=this,N=M._self._c;return N("div",{staticClass:"detail-wrapper",class:[M.deviceWidthClass]},[N("div",{staticClass:"spacer",class:{collapsed:M.isCollapsed}}),N("div",{ref:"section",staticClass:"aena-point-detail-container",class:{collapsed:M.isCollapsed},attrs:{tabindex:"0","aria-label":M.$t("POI_DETAIL")+" "+M.title}},[M.isCollapsed?N("button",{staticClass:"btn-close",on:{click:M.goBack}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#71777D"}})],1):M._e(),M.isCollapsed?N("button",{staticClass:"btn-more-info",on:{click:function(N){return M.expand()}}},[N("p",[M._v(M._s(M.$t("MORE_INFO")))])]):M._e(),N("header",{ref:"title",staticClass:"header"},[N("div",{staticClass:"title-wrapper"},[N("button",{staticClass:"back",attrs:{"aria-label":M.$t("GO_BACK")},on:{click:function(N){M.isMobile?M.expand():M.goBack()}}},[N("Icon",{attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:"#ffffff"}})],1),N("div",{staticClass:"title"},[N("h2",{attrs:{"aria-label":M.title,lang:M.$i18n.locale}},[M._v(M._s(M.title))])])]),N("Icon",{attrs:{icon:M.icon,size:"50px"}})],1),N("div",{staticClass:"scroll-wrapper"},[M.poisGrouped&&M.poisGrouped.length>1&&!M.isCollapsed?N("Pagination",{ref:"pagination",attrs:{items:M.poisGrouped,"items-per-page":1,placeholder:M.placeholder},on:{change:M.onPaginate}}):M._e(),N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[M.debugMode&&M.poiID?N("p",{staticClass:"debug"},[M._v("POI ID: "+M._s(M.poiID))]):M._e(),M.showDescriptionBlock?N("div",{staticClass:"content"},[M.description||M.image?N("div",{staticClass:"top"},[M.image?N("img",{staticClass:"image",attrs:{src:M.image,alt:M.$t("STORE_IMAGE")}}):M._e(),N("span",{staticClass:"description"},[N("p",[M._v(M._s(M.description))])])]):M._e(),N("ul",{staticClass:"categories",attrs:{"aria-label":M.$t("CATEGORIES")}},[M._l(M.subcategories,(function(D){return M.isCollapsed?M._e():N("li",{key:D.id},[N("button",{staticClass:"category",on:{click:function(N){return M.filterBySubcategory(D.id)}}},[N("p",[M._v(M._s(D.name))])])])})),M.isCollapsed?N("div",[N("p",M._l(M.subcategories,(function(D,t){return N("span",{key:D.id},[M._v(M._s(D.name)+M._s(t<M.subcategories.length-1?" · ":""))])})),0)]):M._e()],2),M.mail||M.web||M.time||M.phone?N("div",{staticClass:"hr-big"}):M._e(),M.mail||M.web?N("ul",{staticClass:"info-list",attrs:{role:"list","aria-label":M.$t("BRAND_INFO")}},[M.web?N("li",{staticClass:"web extra"},[N("button",{attrs:{role:"link","aria-label":M.$t("VISIT_WEB"),"data-href":M.web,lang:M.$i18n.locale},on:{click:function(N){return M.visitWeb(M.web)}}},[N("p",[M._v(M._s(M.$t("VISIT_WEB")))]),N("Icon",{attrs:{icon:"icon-flecha-horizontal-t.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e(),M.mail?N("li",{staticClass:"mail extra"},[N("button",{attrs:{role:"link","aria-label":M.$t("SEND_EMAIL"),lang:M.$i18n.locale},on:{click:function(N){return M.sendEmail(M.mail)}}},[N("p",[M._v(M._s(M.$t("SEND_EMAIL")))]),N("Icon",{attrs:{icon:"icon-contacto-sobre-de-carta-t.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e()]):M._e(),(M.mail||M.web)&&(M.time||M.phone)?N("div",{staticClass:"hr"}):M._e(),M.time||M.phone?N("ul",{staticClass:"contact-list",attrs:{role:"list","aria-label":M.$t("STORE_INFO")}},[M.time?N("li",{staticClass:"time extra",attrs:{role:"listitem","aria-labelledby":"time-description"}},[N("Icon",{attrs:{icon:"icon-horarios-mini-jj.svg",size:"30px",fill:"#72A300"}}),N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_TIME")))]),N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.time))])],1):M._e(),M.phone?N("li",{staticClass:"phone extra",attrs:{role:"listitem","aria-labelledby":"phone-description"}},[N("Icon",{attrs:{icon:"icon-atencion-telefonica-t.svg",size:"30px",fill:"#72A300"}}),N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_PHONE")))]),N("p",[M._v(M._s(M.phone))])],1):M._e()]):M._e(),M.isCollapsed?N("div",{staticClass:"contact-list-collapsed"},[N("p",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("STORE_TIME")))]),N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s(M.time))])]):M._e(),M.lastWait?[N("div",{staticClass:"hr"}),N("div",{staticClass:"wait-time"},[N("Icon",{attrs:{icon:"icon-seguridad-t.svg",size:"30px",fill:"#72A300"}}),N("p",[M._v("Atención: el tiempo estimado del paso de este control es de "),N("span",{staticClass:"strong"},[M._v(M._s(M.durationTime(M.lastWait)))])])],1)]:M._e()],2):M._e()])])],1),N("ul",{staticClass:"location",attrs:{role:"list","aria-label":M.$t("STORE_LOCATION")}},[N("li",{attrs:{"aria-label":M.$t("S_LOCATION")}},[N("div",{staticClass:"terminal"},[N("Icon",{staticClass:"arrow",attrs:{icon:"icon-localizacion-grande-t.svg",size:"30px",fill:"#72A300"}}),N("p",{attrs:{lang:M.$i18n.locale}},[N("b",[M._v(M._s(M.location.name)+". ")]),N("b",[M._v(M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.floor))]),M._v(M._s(M.location.more?". "+M.location.more:""))])],1)]),M.isCollapsed?M._e():N("li",[M.hasRoute?N("button",{staticClass:"btn",on:{click:M.calculateRoute}},[N("p",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]}),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:M.hasRoute?"#1A2732":"#888888"}})],1):M._e(),M.hasRoute?M._e():N("button",{staticClass:"btn-disabled",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{staticClass:"disabledtext to-upper",attrs:{lang:M.$i18n.locale}},[N("b",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]})]),N("p",{staticClass:"disabledtext regular"},[M._v(M._s(M.$t("SERVICE_ROUTE_NOT_AVAILABLE")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1)]),M.isCollapsed?N("li",[M.hasRoute?N("button",{staticClass:"btn",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{attrs:{lang:M.$i18n.locale}},[N("b",[M._v(M._s(M.location.more?M.location.name+" · "+M.floor+" · ":M.placeholder))]),M._v(M._s(M.location.more?" · "+M.location.more:""))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1):M._e(),M.hasRoute?M._e():N("button",{staticClass:"btn-disabled",class:{disabled:!M.hasRoute},on:{click:M.calculateRoute}},[N("p",{staticClass:"disabledtext to-upper",attrs:{lang:M.$i18n.locale}},[N("b",{directives:[{name:"t",rawName:"v-t",value:M.isMupiMode&&M.poiId===M.poi.properties.id?"WHERE_TO_GO":"HOW_TO_GET",expression:"!(isMupiMode && poiId === poi.properties.id) ? 'HOW_TO_GET' : 'WHERE_TO_GO'"}]})]),N("p",{staticClass:"disabledtext regular"},[M._v(M._s(M.$t("SERVICE_ROUTE_NOT_AVAILABLE")))]),N("Icon",{staticClass:"arrow",attrs:{icon:"icon-guiar-jj.svg",size:"30px",fill:"#a8abad"}})],1)]):M._e()])])])},js=[],Ts={filters:{capitalize:function(M){return M?(M=M.toString(),M.charAt(0).toUpperCase()+M.slice(1)):""}}};function gs(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===M&&(M=""),M.replace(/(<([^>]+)>)/gi,"")}var ss={methods:{durationTime:function(M){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},D=N.abbr,t=void 0===D||D,i=Math.round(parseFloat(M)||1),e=i/60;e=e>=1?Math.round(e):0;var j=Math.floor(e/60);j&&(e-=60*j);var T="".concat(i," ").concat(t?"s":this.$t("SECONDS"));if(e&&(T="".concat(e," ").concat(t?"min":this.$t("MINUTES"))),j){var g=T;T="".concat(j," ").concat(t?"h":this.$t("HOURS")),e&&(T+=" ".concat(g))}return T}}};function us(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function zs(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?us(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):us(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var As={name:"app-aenaPointDetail",mixins:[m,Ts,fT["a"],ss,x],components:{},props:{headerHeight:{type:Number,required:!0}},data:function(){return{placeholder:"",header:0,pagination:0,isCollapsed:!1,debugMode:!1}},mounted:function(){var M=this,N=this.$root.$data.avaMode,D=N&&!this.poiDId,t=this.$root.$data.autoCalculateRoute,i=this.isMupiMode&&this.poiId===this.poi.properties.id&&!D&&!(N&&!t);if(i)this.calculateRoute();else{var e=this.$t("FLOOR");this.placeholder="".concat(this.location.name,". ").concat(e.charAt(0).toUpperCase()+e.slice(1)," ").concat(this.floor),this.$refs.title.focus(),setTimeout((function(){M.header=M.$refs.title.getBoundingClientRect().height,M.pagination=M.$refs.pagination?M.$refs.pagination.$el.getBoundingClientRect().height+10:0,M.$nextTick((function(){return M.$refs.scrollbar.update()}))}),260)}},destroyed:function(){this[I["a"].CLEAR_POI]()},computed:zs(zs({},Object(n["c"])({isMupiMode:I["b"].IS_MUPI_MODE,poiId:I["b"].GET_POI_ID,poiDId:I["b"].GET_POID_ID,isMobile:I["b"].GET_IS_MOBILE,poi:I["b"].GET_POI,poisGrouped:I["b"].GET_POI_GROUPED,poisCatalog:I["b"].GET_POIS_CATALOG,airportID:I["b"].GET_AIRPORT_ID,airport:I["b"].GET_AIRPORT})),{},{attrs:function(){return this.poi.properties.attrs||{}},title:function(){return this.$t(this.attrs.pat_nombre)},image:function(){var M=this.attrs.pat_imagen_marca_0||this.attrs.pat_imagen_marca_1;return M&&!M.includes("https://www.aena.es")&&(M="https://www.aena.es"+M),M},icon:function(){return this.poi.properties.icon},description:function(){return gs(this.attrs.pat_descripcion_0||this.attrs.pat_descripcion_1||this.observations)},subcategories:function(){var M=this;return this.poi.properties.subcategories.reduce((function(N,D){return M.poisCatalog.some((function(M){var t=M.subcategories.find((function(M){return M.id===D}));return t&&N.push(t),!!t})),N}),[])},phone:function(){return gs(this.attrs.pat_telefono_0||this.attrs.pat_telefono_1)},mail:function(){return gs(this.attrs.pat_email)},web:function(){return gs(this.attrs.pat_enlace_0||this.attrs.pat_enlace_1)},moreInformation:function(){var M=this.attrs.pat_url;return M&&!M.includes("https://www.aena.es")&&(M="https://www.aena.es"+M),M},time:function(){return gs(this.attrs.pat_horario_0||this.attrs.pat_horario_1)},floor:function(){return this.poi.properties.levelName},location:function(){return this.setLocation([this.poi]),this.poi.properties.location},showDescriptionBlock:function(){return this.image||this.description||this.subcategories.length||this.phone||this.mail||this.web||this.time||this.observations},tagLabel:function(){return"".concat(this.poi.properties.location.name,". Planta ").concat(this.poi.properties.levelName,". ").concat(this.$t(this.poi.properties.attrs.pat_nombre))},lastWait:function(){return 2*this.poi.properties.lastWait},hasRoute:function(){return this.airport.has_graph},poiID:function(){return this.poi.properties.id},coordinates:function(){var M=Number(this.poi.geometry.coordinates[1].toFixed(5)),N=Number(this.poi.geometry.coordinates[0].toFixed(5));return[M,N]},observations:function(){return this.attrs.pat_observaciones}}),methods:zs(zs({},Object(n["b"])([I["a"].LOAD_POI,I["a"].CLEAR_POI])),{},{onPaginate:function(M){var N=M[0];N.properties.id!==this.poi.properties.id&&this[I["a"].LOAD_POI]({poi:N,pointGrouped:this.poisGrouped})},filterBySubcategory:function(M){this.$emit("onSelect",{component:"aena-points-categories",subcategories:[M]})},goBack:function(){this.isMobile?this.$emit("goBack"):this.$emit("onSelect",{component:"aena-points-categories"})},calculateRoute:function(){var M=this.$root.$data.avaMode,N=this.$root.$data.autoCalculateRoute;if(M&&!N&&this.poiDId&&this.poiId){var D=this.findPoi(this.poiId);D&&this.$emit("onSelect",{pointDetail:D,component:"aena-route-pre"}),this.$emit("onSelect",{pointDetail:this.poi,component:"aena-route-pre"})}else if(this.$emit("onSelect",{pointDetail:this.poi,component:"aena-route-pre"}),this.poiDId){var t=this.findPoi(this.poiDId);this.$emit("onSelect",{pointDetail:t,component:"aena-route-pre"})}},expand:function(){var M=this;this.isCollapsed=!this.isCollapsed,this.$emit("onCollapsed",this.isCollapsed),window.setTimeout((function(){M.header=M.$refs.title.getBoundingClientRect().height,M.pagination=M.$refs.pagination?M.$refs.pagination.$el.getBoundingClientRect().height+10:0,M.$refs.scrollbar.update()}),260)},visitWeb:function(M){var N={eventCategory:"buscador",eventAction:"visitar web",eventLabel:Object(o["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.open(M,"_blank")},sendEmail:function(M){var N={eventCategory:"buscador",eventAction:"enviar email",eventLabel:Object(o["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.location.href="mailto:".concat(M)},moreInfo:function(M){var N={eventCategory:"buscador",eventAction:"mas informacion",eventLabel:Object(o["a"])(this.tagLabel),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",N),window.open(M,"_blank")}}),watch:{isMobile:{immediate:!0,handler:function(M){this.isCollapsed=M}}}},Ls=As,Is=(D("917c"),Object(kT["a"])(Ls,es,js,!1,null,"0aae3214",null)),ns=Is.exports;function rs(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function ws(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?rs(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):rs(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var cs=function(){var M=this,N=M._self._c;return M.route.length?N("div",{ref:"route",staticClass:"aena-route-container",class:[M.deviceWidthClass],attrs:{id:"aena-route-container",tabindex:"0","aria-label":M.$t("ROUTE_SUMMARY")}},[N("div",{staticClass:"time"},[N("h2",{attrs:{lang:M.$i18n.locale}},[N("b",[N("abbr",{attrs:{title:M.durationTime(M.duration,{abbr:!1})}},[M._v(M._s(M.durationTime(M.duration)))]),N("i",{attrs:{"aria-hidden":"true"}},[M._v("·")])]),M._v("\n "+M._s(M.$n(M.distance,"noDecimal"))+" "),N("abbr",{attrs:{title:M.$t("METERS")}},[M._v("m")])]),M.explorerMode?N("button",{directives:[{name:"t",rawName:"v-t",value:"CLOSE",expression:"'CLOSE'"}],staticClass:"btn-close",attrs:{"aria-label":M.$t("CLOSE")+". "+M.$t("ROUTE_SUMMARY")},on:{click:M.close}}):M._e()]),N("Scrollbar",{ref:"scrollbar"},[N("div",{ref:"scrollContent",staticClass:"scroll-content"},[N("h2",{staticClass:"visually-hidden",attrs:{id:"title"}},[M._v(M._s(M.$t("ROUTE_SUMMARY")))]),N("ul",{staticClass:"content",attrs:{role:"list",tabindex:"0"}},[N("li",{staticClass:"origin",attrs:{role:"listitem"}},[N("button",{attrs:{lang:M.$i18n.locale,"aria-label":M.$t("ORIGIN")+". "+("point"===M.origin.mode?M.$options.filters.displayCoordinates(M.origin.geometry.coordinates):M.$t(M.origin.properties.attrs.pat_nombre))+". "+M.origin.properties.location.name+". "+M.$t("FLOOR")+" "+M.origin.properties.levelName},on:{click:function(N){return M.viewInMap(M.origin.geometry.coordinates,M.origin.properties.building,M.origin.properties.level)}}},[N("Icon",{attrs:{icon:M.origin.properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.origin.mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.origin.geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.origin.properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.origin.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.origin.properties.levelName))])])],1)]),[M._l(M.route,(function(D,t){return[M._l(D.instructions,(function(i,e){return[i.hidden?M._e():N("li",{class:ws({"security-control":i.securityControl||i.oneWay},i.type),attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":M.getStepAriaLabel(i)},on:{click:function(N){M.selectGeometry(i,D.geometry.features,M.getOldStep({instructions:D.instructions,index:e,rootIndex:t}))},keydown:function(N){if(!N.type.indexOf("key")&&M._k(N.keyCode,"enter",13,N.key,"Enter"))return null;M.selectGeometry(i,D.geometry.features,M.getOldStep({instructions:D.instructions,index:e,rootIndex:t}))}}},[N("Icon",{attrs:{icon:"route-icons/"+i.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},[N("p",[M._v(M._s("tag"!==i.type?M.$t("IN_PREPOSITION"):"")+" "),N("b",[M._v(M._s(M.getDistance(i.distance))+" m")])]),N("span",[M._v(M._s(M.$t(i.action,ws({},M.getMsg({destination:i.direction,transport:i.transport}))))+"\n "),"GO_UP"===i.action||"GO_DOWN"===i.action?[M._v(". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(i.currentFloor))]:M._e()],2),"tag"!==i.type?N("p",{staticClass:"time"},[M._v(M._s(M.durationTime(i.time)))]):M._e()])],1)]),!i.hidden&&i.msg&&i.msg.label?N("li",{staticClass:"msg",class:{"security-control":i.securityControl||i.oneWay},attrs:{"aria-label":M.$t(i.msg.label,ws({},M.getMsg(i.msg.props))),role:"listitem"}},[N("span",[M._v(M._s(M.$t(i.msg.label,ws({},M.getMsg(i.msg.props)))))])]):M._e(),i.changeFloor||i.changeBuilding?N("li",{staticClass:"change-floor",class:i.type,attrs:{role:"listitem","aria-label":i.building.name+" "+M.$t("FLOOR")+" "+i.currentFloor}},[N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},[M._v("\n "+M._s(i.building.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(i.currentFloor)+"\n ")])]):M._e()]})),M.newPoints[t]?N("li",{staticClass:"origin",attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":("point"===M.newPoints[t].mode?M.$options.filters.displayCoordinates(M.newPoints[t].geometry.coordinates):M.$t(M.newPoints[t].properties.attrs.pat_nombre))+". "+M.newPoints[t].properties.location.name+". "+M.$t("FLOOR")+" "+M.newPoints[t].properties.levelName},on:{click:function(N){return M.viewInMap(M.newPoints[t].geometry.coordinates,M.newPoints[t].properties.building,M.newPoints[t].properties.level)}}},[N("Icon",{attrs:{icon:M.newPoints[t].properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.newPoints[t].mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.newPoints[t].geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.newPoints[t].properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.newPoints[t].properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.newPoints[t].properties.levelName))])])],1)]):M._e()]}))],N("li",{staticClass:"destination",attrs:{role:"listitem"}},[N("button",{attrs:{"aria-label":M.$t("DESTINATION")+". "+("point"===M.destination.mode?M.$options.filters.displayCoordinates(M.destination.geometry.coordinates):M.$t(M.destination.properties.attrs.pat_nombre))+". "+M.destination.properties.location.name+". "+M.$t("FLOOR")+" "+M.destination.properties.levelName},on:{click:function(N){return M.viewInMap(M.destination.geometry.coordinates,M.destination.properties.building,M.destination.properties.level)}}},[N("Icon",{attrs:{icon:M.destination.properties.icon,size:"50px"}}),N("div",{staticClass:"info-wrapper inert",attrs:{"aria-hidden":"true"}},["point"===M.destination.mode?N("p",[N("b",[M._v(M._s(M._f("displayCoordinates")(M.destination.geometry.coordinates)))])]):N("p",[N("b",[M._v(M._s(M.$t(M.destination.properties.attrs.pat_nombre)))])]),N("span",[M._v(M._s(M.destination.properties.location.name)+". "+M._s(M._f("capitalize")(M.$t("FLOOR")))+" "+M._s(M.destination.properties.levelName))])])],1)])],2)])])],1):M._e()},ys=[],as={filters:{displayCoordinates:function(M){if(!M||!M.length)return"";var N=M.slice(0,2);return[N[1],N[0]].map((function(M){return M.toFixed(5)})).join(", ")}}};function os(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Es(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?os(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):os(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Os={name:"app-aenaRoute",mixins:[P,m,Ts,ss,x,as,fT["a"]],components:{Searcher:tg,AenaPoints:Gs},props:{headerHeight:{type:Number,required:!0}},data:function(){return{}},mounted:function(){this.accessibilityEvents()},updated:function(){this.updateScrollbar(),this.accessibilityEvents()},computed:Es({},Object(n["c"])({airportID:I["b"].GET_AIRPORT_ID,floor:I["b"].GET_FLOOR,building:I["b"].GET_BUILDING,explorerMode:I["b"].GET_EXPLORERMODE})),methods:Es(Es({},Object(n["b"])([I["a"].SET_COORDINATES])),{},{accessibilityEvents:function(){var M=this;this.$refs.scrollContent&&(this.$refs.scrollContent.addEventListener("mouseover",(function(){M.$refs.scrollContent.style.visibility="visible"}),!1),this.$refs.scrollContent.addEventListener("mouseout",(function(){M.$refs.scrollContent.style.visibility="hidden"}),!1))},close:function(){this.$emit("onCloseRoute")},viewInMap:function(M,N,D){this.saveFloor({buildingId:N,floorId:D,force:!0,airportID:this.airportID,tag:"explorador"}),this[I["a"].SET_COORDINATES]({coordinates:M,zoom:20})},selectGeometry:function(M,N,D){var t=D.oldStep,i=D.special,e=N[M.geometryindex],j=M.tag.type.toUpperCase(),T=e.geometry.coordinates.slice(0,2),g=e.properties.building;v["c"].includes(j)&&(g=(i?t:N[t.geometryindex]).properties.building);var s=e.geometry.coordinates[e.geometry.coordinates.length-1]/this.routeC.z;this.viewInMap(T,g,s)},getDistance:function(M){return this.$n(M>1?M:1,"noDecimal")},getMsg:function(M){var N=Es({},M);return N.direction&&(N.direction=this.$t(N.direction)),N.duration&&(N.duration=this.durationTime(N.duration)),N.destination&&(N.destination=this.$t(N.destination)),N.transport&&(N.transport=this.$t(N.transport)),N.oneWay&&(N.oneWay=this.$t("ONEWAY_OPENING")),N},getOldStep:function(M){var N=M.instructions,D=M.index,t=M.rootIndex;return D?{oldStep:N[D-1]}:t?{oldStep:this.newPoints[t-1],special:!0}:{oldStep:this.origin,special:!0}},getStepAriaLabel:function(M){var N="tag"===M.type,D="GO_UP"===M.action||"GO_DOWN"===M.action?this.$t("FLOOR")+M.currentFloor+". ":"",t="tag"!==M.type?this.durationTime(M.time,{abbr:!1})+". ":"";return"".concat(N?"":this.$t("IN_PREPOSITION")," ").concat(this.$n(M.distance,"noDecimal")," ").concat(this.$t("METERS"),". ").concat(this.$t(M.action,this.getMsg({destination:M.direction,transport:M.transport})),". ").concat(D," ").concat(t," ").concat(this.$t(M.msg.label,this.getMsg(M.msg.props)))},updateScrollbar:function(){var M=this;window.setTimeout((function(){M.$refs.scrollbar.update()}),100)}})},xs=Os,Cs=(D("fe47"),Object(kT["a"])(xs,cs,ys,!1,null,"4df4a570",null)),Ss=Cs.exports;function ls(M,N){var D=M.toLowerCase().split(" ");return D.every((function(M){var D=new RegExp(ks(Qs(M)),"gi");return ks(N).match(D)}))}function ks(M){return M.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Qs(M){return M.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ds=D("b76a"),Ys=D.n(ds);function ps(M){var N=M;return Array.isArray(N)&&(N=N[0]),N}var Us=D("efd7");D("1c4c");function hs(M,N,D){Array.from(N.children).forEach((function(N){N.classList.contains(M)||(fs(N,D),Array.from(N.querySelectorAll("*")).forEach((function(M){fs(M,D)})))}))}function fs(M,N){var D=M.getAttribute("tabindex"),t=M.getAttribute("aria-hidden");N?(M.setAttribute("data-tabindex",null!==D?D:"none"),M.setAttribute("data-aria-hidden",null!==t?t:"none"),M.setAttribute("aria-hidden",N),M.setAttribute("tabindex",-1),M.setAttribute("data-inert",M.classList.contains("inert")?"true":"false"),M.classList.add("inert")):("none"!==M.getAttribute("data-tabindex")&&null!==M.getAttribute("data-tabindex")?M.setAttribute("tabindex",M.getAttribute("data-tabindex")):M.removeAttribute("tabindex"),"none"!==M.getAttribute("data-aria-hidden")&&null!==M.getAttribute("data-aria-hidden")?M.setAttribute("aria-hidden",M.getAttribute("data-aria-hidden")):M.removeAttribute("aria-hidden"),"false"===M.getAttribute("data-inert")&&M.classList.remove("inert"),M.removeAttribute("data-aria-hidden"),M.removeAttribute("data-tabindex"),M.removeAttribute("data-inert"))}function ms(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function vs(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?ms(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):ms(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Bs=navigator.userAgent||navigator.vendor||window.opera,bs={name:"AenaPoints",mixins:[x,ss,Ts,P,as,fT["a"]],components:{draggable:Ys.a,AenaSearch:sg,Searcher:tg,"aena-highlighted-points":Cg,"aena-points-list":Ug,"aena-points-categories":is,"aena-point-detail":ns,"aena-route":Ss},props:{search:{type:Boolean,default:!0}},data:function(){return{view:"aena-highlighted-points",lastView:"",currentProps:{highlighted:[],points:[],airport:void 0,category:void 0,categories:[],filters:[],activeFilters:{categories:null,subcategories:[],building:void 0,search:void 0,associatedParking:[]},search:!1,headerHeight:0},blockedPois:!1,toggleDrag:!1,searcherFocus:!1,memoryValue:void 0,isVisible:!1,appBanner:!1,isCollapsed:!1,pmr_enabled:"true"}},created:function(){var M=this,N=Array.isArray(this.subcategories)&&this.subcategories.length>0,D=this.$root.$data.avaMode;if((this.category||N)&&D?this.view="aena-points-categories":this.view="aena-highlighted-points",this.category||this.subcategories){var t=!!this.category,i=Array.isArray(this.subcategories)&&this.subcategories.length>0;if(t&&i&&D){var e=this.poisCatalog.find((function(N){return N.id===M.category})),j=(e&&e.subcategories||[]).map((function(M){return M.id})),T=this.subcategories.filter((function(M){return j.includes(M)}));this.onSelect({component:"aena-points-categories",category:e,subcategories:T})}else if(t){var g=this.poisCatalog.find((function(N){return N.id===M.category}));this.onSelect({component:"aena-points-categories",category:g})}else i&&(this.currentProps.activeFilters.subcategories=this.subcategories,this[I["c"].SAVE_FILTERING](!0),this.saveActiveFilters(),this.onSelect({component:"aena-points-categories",subcategories:this.subcategories}))}else this.setHigtLight(this.poisCatalog);if(this.poi){var s=Array.isArray(this.subcategories)&&this.subcategories.length>0,u=!!this.category;s||u||this.setPoi(this.poi)}this.routeConfig&&(this[I["a"].LOAD_ROUTE]({routeMode:!0}),this.setDestination(),this.toggleBlocked())},updated:function(){this.$refs.header&&this.$refs.header.offsetHeight!==this.currentProps.headerHeight&&(this.currentProps.headerHeight=this.$refs.header.offsetHeight),this.$refs.time&&this.$refs.time.focus()},computed:vs(vs({},Object(n["c"])({isMupiMode:I["b"].IS_MUPI_MODE,isMobile:I["b"].GET_IS_MOBILE,explorerMode:I["b"].GET_EXPLORERMODE,airport:I["b"].GET_AIRPORT,airportID:I["b"].GET_AIRPORT_ID,category:I["b"].GET_CATEGORY,subcategories:I["b"].GET_SUBCATEGORIES,poisCatalog:I["b"].GET_POIS_CATALOG,activeFiltersC:I["b"].GET_ACTIVE_FILTERS,poisList:I["b"].GET_POIS_LIST,poi:I["b"].GET_POI,poiId:I["b"].GET_POI_ID,poiDId:I["b"].GET_POID_ID,buildings:I["b"].GET_BUILDINGS,isRouteMode:I["b"].IS_ROUTE_MODE,stepsAdded:I["b"].GET_NEW_POINT,hasNewPoint:I["b"].HAS_NEW_POINT,getView:I["b"].GET_VIEW,routeConfig:I["b"].GET_ROUTE_CONFIG,pmrProfile:I["b"].GET_PMR_PROFILE,pmrDefaultProfile:I["b"].GET_DEFAULT_PMR_PROFILE})),{},{currentCategory:function(){var M=this;return!!this.currentProps.category&&this.poisCatalog.find((function(N){return N.id===M.currentProps.category.id}))},addBlocked:function(){return!(this.origin&&this.destination)||this.hasNewPoint},pmrActive:function(){return null!==this.pmrProfile},isAndroid:function(){return/android/i.test(Bs)},isIOS:function(){return/iPad|iPhone|iPod/.test(Bs)&&!window.MSStream},appLink:function(){var M="";return this.isAndroid&&(M="https://play.google.com/store/apps/details?id=es.aena.mobile"),this.isIOS&&(M="https://apps.apple.com/es/app/aena/id686440022"),M}}),methods:vs(vs(vs({},Object(n["b"])([I["a"].SET_FEEDBACK,I["a"].LOAD_ACTIVE_FILTERS,I["a"].LOAD_VIEW,I["a"].REMOVE_STEP,I["a"].SET_PMR_PROFILE])),Object(n["d"])([I["c"].SAVE_PMR_CONFIG_VISIBILITY,I["c"].SAVE_FILTERING])),{},{resetActiveFilters:function(){this.currentProps.category=void 0,this.currentProps.activeFilters={subcategories:[],categories:null,building:this.currentProps.activeFilters.building,associatedParking:this.findAssociatedParkings(this.currentProps.activeFilters.building),search:void 0},this.saveActiveFilters()},getActiveFilters:function(){this.currentProps.activeFilters=this.activeFiltersC},saveActiveFilters:function(){this[I["a"].LOAD_ACTIVE_FILTERS](this.currentProps.activeFilters)},onInputFocus:function(){this.searcherFocus=!0,this.isVisible=!0},onInputBlur:function(){this.searcherFocus=!1},onInputChange:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},N=M.value,D=M.name;this.setDestination(D),this.currentProps.category=void 0,this.currentProps.activeFilters.subcategories=[],this.currentProps.activeFilters.categories=null,this.currentProps.activeFilters.search=N,this.currentProps.search=!!N,this.saveActiveFilters(),N?this.onSelect({component:"aena-points-categories",search:N}):(this.view="aena-points-list",this.onSelect({component:"aena-points-list"}))},onInputEnterKey:function(){this.$refs.component.$refs.section.focus()},goBack:function(){this.isVisible=!this.isVisible},onSelect:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(N){var D,t,i,e,j,T,g,s,u,z,L,n,r,w,c=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:D=N.category,t=N.component,i=N.pointDetail,e=N.search,j=N.pointGrouped,T=N.subcategories,M.t0=t,M.next="aena-highlighted-points"===M.t0?4:"aena-points-list"===M.t0?7:"aena-points-categories"===M.t0?10:"aena-point-detail"===M.t0?24:"aena-route-pre"===M.t0?27:"aena-route-poi"===M.t0?34:42;break;case 4:return this.resetActiveFilters(),this.setHigtLight(this.poisCatalog),M.abrupt("break",42);case 7:return this.resetActiveFilters(),this.setCategories(this.poisCatalog),M.abrupt("break",42);case 10:if(this.getActiveFilters(),g=D||this.currentProps.category,s=T&&T.length||this.currentProps.activeFilters.subcategories.length,u=this.currentProps.activeFilters.building,z=this.currentProps.activeFilters.search||e,g||s||u||z){M.next=18;break}return this.onSelect({component:this.lastView}),M.abrupt("return");case 18:return this.currentProps.activeFilters.categories=D||this.currentProps.activeFilters.categories,this.currentProps.activeFilters.subcategories=T||this.currentProps.activeFilters.subcategories,L=D||this.currentProps.category,!L&&this.currentProps.activeFilters.subcategories&&(L=this.poisCatalog.find((function(M){return M.subcategories.some((function(M){return M.id===c.currentProps.activeFilters.subcategories[0]}))}))),this.setPoisCategories({category:L,search:e||this.currentProps.activeFilters.search}),M.abrupt("break",42);case 24:return this.saveActiveFilters(),this.savePoi({poiId:i.id,pointGrouped:j,airportID:this.airportID,tag:"list"}),M.abrupt("break",42);case 27:return this.memoryValue=void 0,"aena-point-detail"===this.view&&this.onSelect({component:"aena-highlighted-points"}),n="destination",this.isMupiMode&&this.poiId===i.properties.id&&(n="origin"),this.isMupiMode&&this.poiDId===i.properties.id&&(n="destination"),this[I["a"].LOAD_ROUTE](Object(A["a"])(Object(A["a"])({i18n:this.$i18n},n,i),"routeMode",!0)),M.abrupt("return");case 34:return this.memoryValue=void 0,r=(this.destinationName||"").includes("step")?"step":this.destinationName,w=r||(this.origin?"destination":"origin"),this.onSelect({component:"aena-highlighted-points"}),M.next=40,this[I["a"].LOAD_ROUTE](Object(A["a"])(Object(A["a"])({i18n:this.$i18n},w,i),"routeMode",!0));case 40:return this.focus(),M.abrupt("return");case 42:t!==this.view&&(this.lastView=this.view),this.view=t,this.isMobile&&"aena-point-detail"===this.view&&(this.$refs.search.active=!1,this.$refs.search.focus=!1,this.isVisible=!0),!this.isMobile||"aena-point-detail"!==this.lastView&&"aena-route"!==this.lastView||"aena-highlighted-points"!==this.view||this.$nextTick((function(){c.$refs.search.active=!1,c.$refs.search.focus=!1,c.isVisible=!1}));case 46:case"end":return M.stop()}}),M,this)})));function N(N){return M.apply(this,arguments)}return N}(),onFilter:function(M){this.currentProps.activeFilters.building=M,this.currentProps.activeFilters.associatedParking=this.findAssociatedParkings(M),this.setPois(this.currentProps.activeFilters.search)},onCategory:function(M){var N=M.data,D=M.type,t=Array.isArray(this.subcategories)&&this.subcategories.length>0;if(!t){var i=N;this.currentProps.activeFilters.categories=null,"category"===D&&(this.currentProps.activeFilters.categories=N,i=[]),this.onSubcategory(i,this.currentProps.activeFilters.search)}},onSubcategory:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=arguments.length>1?arguments[1]:void 0;this.currentProps.activeFilters.categories=this.currentProps.activeFilters.categories,this.currentProps.activeFilters.subcategories=M,this.setPois(N)},setFilterCategories:function(M){var N=this,D=M||this.currentProps.activeFilters.search;if(D){var t=this.poisCatalog.map((function(M){return M.subcategories})).flat(),i=this.currentProps.points.reduce((function(M,N){var i=N.properties.subcategories,e=i.reduce((function(M,N){var i=t.find((function(M){return M.id===N})),e=new RegExp(ks(D),"gi");return i.name.match(e)&&M.push(N),M}),[]);return e.length?M.push.apply(M,Object(y["a"])(e)):M.push.apply(M,Object(y["a"])(i)),M}),[]);this.currentProps.categories=Object(y["a"])(new Set(i)).reduce((function(M,N){var D=t.find((function(M){return M.id===N}));return D&&M.push(D),M}),[])}else if(this.currentCategory)this.currentProps.categories=this.poisCatalog.find((function(M){return M.id===N.currentCategory.id})).subcategories;else{var e=this.poisCatalog.map((function(M){return M.subcategories})).flat();this.currentProps.categories=Object(y["a"])(new Set(e.map((function(M){return M.id})))).map((function(M){return e.find((function(N){return N.id===M}))}))}},setHigtLight:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.currentProps.highlighted=M.filter((function(M){return M.featured})).slice(0,6).sort((function(M,N){return M.featured_order-N.featured_order}))},setCategories:function(M){this.currentProps.points=M},setPois:function(M){var N=this;M&&M!==this.currentProps.activeFilters.search&&(this.currentProps.activeFilters.subcategories=[]);var D=M?this.poisCatalog.reduce((function(D,t){return D=D.concat(t.subcategories.filter((function(D){return N.findWord(D.name,M)}))),D}),[]).map((function(M){return M.id})):[];this.currentProps.points=this.poisList.features.filter((function(t){var i=N.findSubcategoriesInPois(t),e=N.findPoisInSubcategoriesActives(t),j=N.findPoisInBuildingActives(t),T=N.findPoisInSearchActives(t,M,D);return i&&e&&j&&T})).sort(this.orderPois)},orderPois:function(M,N){if(M.properties.building>N.properties.building)return 1;if(M.properties.building<N.properties.building)return-1;if(M.properties.building===N.properties.building){if(M.properties.level>N.properties.level)return 1;if(M.properties.level<N.properties.level)return-1;if(M.properties.level===N.properties.level){if(M.properties.attrs.pat_nombre>N.properties.attrs.pat_nombre)return 1;if(M.properties.attrs.pat_nombre<N.properties.attrs.pat_nombre)return-1}}return 0},findSubcategoriesInPois:function(M){if(this.currentProps.activeFilters.subcategories.length>0)return!0;if(!this.currentProps.category)return!0;var N=this.currentProps.category.subcategories||[],D=N.map((function(M){return M.id})),t=M.properties.subcategories||[];return t.some((function(M){return D.includes(M)}))},findPoisInSubcategoriesActives:function(M){var N=this;return!this.currentProps.activeFilters.subcategories.length||M.properties.subcategories.some((function(M){return N.currentProps.activeFilters.subcategories.includes(M)}))},findPoisInBuildingActives:function(M){return!this.currentProps.activeFilters.building||M.properties.building===this.currentProps.activeFilters.building||this.currentProps.activeFilters.associatedParking.some((function(N){return N===M.properties.building}))},findPoisInSearchActives:function(M,N,D){return!N||this.findWord(M.properties.attrs.pat_nombre,N)||this.findSubcategoryWord(M.properties.subcategories,D)},findWord:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",N=arguments.length>1?arguments[1]:void 0;return!!M&&ls(N,M)},findSubcategoryWord:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=arguments.length>1?arguments[1]:void 0;return!!M.length&&M.some((function(M){return N.includes(M)}))},findAssociatedParkings:function(M){var N=this.buildings.find((function(N){return N.id===M}));return N?N.poi_search_group_ids:[]},setPoisCategories:function(M){var N=M.category,D=M.search;this.currentProps.airport=this.airport,this.currentProps.category=N,this.currentProps.filters=this.buildings,this.onSubcategory(this.currentProps.activeFilters.subcategories,D),this.setFilterCategories(D)},setPoi:function(M){this.onSelect({component:"aena-point-detail",pointDetail:{id:M.properties.id}})},closeRoute:function(){var M=this;this[I["a"].CLEAR_ROUTE](),this[I["a"].SET_FEEDBACK](),this.blockedPois=!1,this.memoryValue=void 0;var N=this.$root.$data.avaMode;if(!(N&&this.poiDId&&this.poiId)){var D="aena-route"===this.view?"aena-points-categories":this.view;this.onSelect({component:D,category:this.currentProps.category}),this.$nextTick((function(){M.isMobile&&"aena-highlighted-points"===D&&(M.$refs.container.classList.remove("visible"),M.isVisible=!1)}))}},restoreAvaCategoryView:function(){var M=this,N=!!this.category,D=Array.isArray(this.subcategories)&&this.subcategories.length>0,t=this.$root.$data.avaMode;if(N&&D&&t){var i=this.poisCatalog.find((function(N){return N.id===M.category})),e=(i&&i.subcategories||[]).map((function(M){return M.id})),j=this.subcategories.filter((function(M){return e.includes(M)}));this.onSelect({component:"aena-points-categories",category:i,subcategories:j})}else if(N){var T=this.poisCatalog.find((function(N){return N.id===M.category}));this.onSelect({component:"aena-points-categories",category:T})}else D&&(this.currentProps.activeFilters.subcategories=this.subcategories,this[I["c"].SAVE_FILTERING](!0),this.saveActiveFilters(),this.onSelect({component:"aena-points-categories",subcategories:this.subcategories}))},resetView:function(){this.onSelect({component:"aena-highlighted-points"})},clearStep:function(M,N,D){if(this.explorerMode){this.currentSearch=void 0;var t=this.steps.length>2&&!N,i=this.steps[M],e=!i||!i.new||!D;if(this.memoryValue&&("origin"===this.destinationName&&M++,this[I["a"].LOAD_ROUTE](Object(A["a"])(Object(A["a"])({i18n:this.$i18n},this.destinationName,this.memoryValue),"reset",!0))),this.memoryValue=void 0,this.memoryValue=i&&!i.new?i:void 0,this.blockedPois=!1,this.resetView(),this.setDestination(N),this.focus(N),e){var j=Object(y["a"])(this.steps);if(this[I["a"].REMOVE_STEP]({index:M,hold:D}),t){var T=M===j.length-1?M-1:M+1;this[I["a"].LOAD_ROUTE](Object(A["a"])(Object(A["a"])({i18n:this.$i18n},this.destinationName,j[T]),"reset",!0)),this[I["a"].REMOVE_STEP]({index:T})}}var g=ps(this.$refs[N]);this.memoryValue&&"point"!==this.memoryValue.mode&&g&&(g.inputValue=this.$t(this.memoryValue.properties.attrs.pat_nombre),g.onInputChange())}},addStep:function(){this.blockedPois=!1,this.addBlocked||(this.setDestination("step"+this.stepsAdded.length),this.resetView(),this[I["a"].LOAD_ROUTE]({i18n:this.$i18n,reset:!0,routeMode:!0,step:{new:!0}}))},toggleBlocked:function(){if(!this.blockedPois&&(this.onSelect({component:"aena-route"}),this.origin&&this.destination)){var M=Object(Us["a"])(this.origin,this.$i18n),N=Object(Us["a"])(this.destination,this.$i18n),D={eventCategory:"como llegar",eventAction:"clic en ruta",eventLabel:"".concat(Object(o["a"])(M)," - ").concat(Object(o["a"])(N)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D)}this.blockedPois=!this.blockedPois},focus:function(M){var N=M||this.destinationName;if(N){var D=ps(this.$refs[N]);D.onFocus()}},onDrag:function(M){this.toggleDrag=!this.toggleDrag},onTransitionEnter:function(){this.searcherFocus||this.$refs.component.$refs.section.focus()},toggleBanner:function(){this.appBanner=!this.appBanner},toggleCollapsed:function(M){this.isCollapsed=M,this.$emit("toggle",M)},showPMRConfig:function(){this[I["c"].SAVE_PMR_CONFIG_VISIBILITY](!0),window.setTimeout((function(){var M=document.querySelector(".flughaveno-map"),N=document.querySelector(".pmr-popup");hs("pmr-wrapper",M,!0),N.focus()}),300)},togglePMR:function(){this[I["a"].SET_PMR_PROFILE](this.pmrProfile?null:this.pmrDefaultProfile)}}),watch:{poisCatalog:function(M){this.setHigtLight(M)},poi:function(M,N){(!N||M&&M.properties.id!==N.properties.id)&&this.setPoi(M)},origin:function(M,N){!M&&N&&this.$refs.origin.onFocus()},destination:function(M,N){!M&&N&&this.$refs.destination.onFocus()},getView:function(M){M&&"aena-point-detail"===this.view&&this.onSelect({component:M}),this[I["a"].LOAD_VIEW]()},poisList:function(M){this.setPois()},isRouteMode:function(M){if(!M){var N=this.$root.$data.avaMode,D=Array.isArray(this.subcategories)&&this.subcategories.length>0,t=!!this.category;if(N&&this.poiDId&&this.poiId)return;N&&(D||t)?this.restoreAvaCategoryView():this.onSelect({component:"aena-highlighted-points"})}}}},Ps=bs,Zs=(D("cd50"),Object(kT["a"])(Ps,FT,VT,!1,null,"876da964",null)),Gs=Zs.exports,Ws=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminal-selector-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("EXPLORE_MAP_TERMINAL_PARKING")))]),N("DropDown",{ref:"dropdown",attrs:{"click-outside":!0,"no-trigger":"",label:M.building&&M.floorC?M.$t("DROPDOWN")+" "+M.$t("EXPLORE_TERMINAL_PARKING")+". "+M.$t("SELECTED")+" "+M.building.name+". "+M.$t("FLOOR")+" "+M.floorC.name:M.$t("DROPDOWN")+" "+M.$t("EXPLORE_TERMINAL_PARKING"),height:M.isMobile?"100%":"auto"},on:{toggle:M.onDropdownToggle},scopedSlots:M._u([{key:"trigger",fn:function(){return[N("div",{staticClass:"selector-trigger",class:{selected:M.floorC,parking:M.floorC&&"TERMINAL"!==M.selected.category}},[M.floorC?M._e():N("Icon",{staticClass:"icon",attrs:{icon:"icon-t-seleccion.svg",size:"30px"}}),M.floorC||M.isMobile?M._e():N("p",{directives:[{name:"t",rawName:"v-t",value:"EXPLORE_TERMINAL_PARKING",expression:"'EXPLORE_TERMINAL_PARKING'"}]}),M.floorC?N("span",{staticClass:"icon-terminal",style:{backgroundColor:M.building.color,color:M.building.font_color}},[N("p",[M._v(M._s(M.building.short_name))])]):M._e(),M.floorC?N("p",[M._v(M._s(M.isMobile?"":M.building.name+".")+" "),M.isMobile?N("span",[M._v("P")]):N("span",[M._v(M._s(M._f("capitalize")(M.$t("FLOOR"))))]),M._v(" "+M._s(M.floorC.name))]):M._e(),M.floorC&&M.isMobile?N("span",{staticClass:"line"}):M._e(),M.isMobile?M._e():N("Icon",{staticClass:"arrow",attrs:{icon:"icon-bullet-link-t.svg",size:"30px",fill:M.floorC?"#ffffff":"#1A2732"}})],1)]},proxy:!0},{key:"content",fn:function(){return[N("div",{staticClass:"content-wrapper"},[M.isMobile?N("div",{staticClass:"header"},[M.selected?N("p",[M._v(M._s(M.$t("SELECT_FLOOR_SHORT")))]):N("p",[M._v(M._s(M.$t("EXPLORE_MOBILE")))]),N("button",{staticClass:"btn-close",on:{click:M.closeDropdown}},[N("Icon",{attrs:{icon:"icon-cerrar-ico-jj.svg",size:"30px",fill:"#1A2732"}})],1)]):M._e(),N("div",{staticClass:"primary"},[N("AenaTerminalsAccordion",{ref:"accordion",attrs:{data:M.accordionData,type:M.type,active:M.active},on:{onItemSelected:M.onItemSelected,onToggle:M.onToggle}})],1),N("div",{staticClass:"secondary"},[N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[M.selected?N("div",{ref:"floors",staticClass:"selection",attrs:{"aria-label":M.$t("FLOORS"),tabindex:"0",role:"listbox"}},[N("h3",{directives:[{name:"t",rawName:"v-t",value:"FLOORS",expression:"'FLOORS'"}],attrs:{"aria-hidden":"true"}}),N("transition-group",{style:{"--total":M.selected.levels.length},attrs:{appear:"",tag:"ul",name:"slide-in"}},M._l(M.selected.levels,(function(D,t){return N("li",{key:D.id,staticClass:"floor",style:{"--i":t}},["A"===D.arrdep||"B"===D.arrdep?N("div",{staticClass:"info left"},[N("Icon",{attrs:{icon:"categories/Llegadas_T.svg",fill:"#71777D"}})],1):M._e(),N("button",{class:{active:M.floor&&M.floor.id===D.id},attrs:{role:"option","aria-label":M.$t("FLOOR")+" "+D.name},on:{click:function(N){return M.onSelectFloor(D)}}},[M._v("\n "+M._s(D.name)+"\n ")]),"D"===D.arrdep||"B"===D.arrdep?N("div",{staticClass:"info right"},[N("Icon",{attrs:{icon:"categories/Salidas_T.svg",fill:"#71777D"}})],1):M._e()])})),0)],1):N("div",{staticClass:"no-selection"},[N("p",{attrs:{lang:M.$i18n.locale}},[M._v(M._s("terminals"===M.type?M.$t("SELECT_TERMINAL"):M.$t("SELECT_PARKING"))+" "),N("b",{directives:[{name:"t",rawName:"v-t",value:"FLOOR",expression:"'FLOOR'"}]})])])])])],1),N("button",{staticClass:"btn-back",class:{"no-selected":!M.floor},attrs:{disabled:!M.floor,"aria-label":M.$t("CLEAR_SELECTION")},on:{click:M.clear}},[M.floor?N("Icon",{staticClass:"arrow",attrs:{icon:"icon-salir-edif.svg",size:"30px",fill:"#1a2732"}}):N("Icon",{staticClass:"arrow",attrs:{icon:"icon-salir-edif.svg",size:"30px",fill:"#E9ECEF"}}),M.isMobile?N("p",[M._v(M._s(M.$t("EXIT")))]):M._e()],1)])]},proxy:!0}])})],1)},Rs=[],Xs=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-terminals-accordion-container"},[N("Scrollbar",{ref:"scrollbar"},[N("div",{staticClass:"scroll-content"},[N("div",{staticClass:"terminals accordion-item",class:{active:"terminals"===M.activeItem},attrs:{role:"select"}},[N("button",{staticClass:"btn-accordion",class:{active:"terminals"===M.activeItem},attrs:{id:"btn-terminals",disabled:M.activeItem&&"terminals"===M.activeItem,tabindex:"0","aria-haspopup":"listbox","aria-expanded":M.activeItem&&"terminals"===M.activeItem,"aria-controls":"sect-terminals"},on:{click:function(N){return M.toggle("terminals")}}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-t-seleccion.svg",size:"30px"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"TERMINALS",expression:"'TERMINALS'"}]})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enter,"after-enter":M.afterEnter,leave:M.leave}},["terminals"===M.activeItem?N("ul",{staticClass:"accordion-content",attrs:{id:"sect-terminals",role:"listbox","aria-labelledby":"btn-terminals"}},M._l(M.terminals,(function(D,t){return N("li",{key:t},[N("button",{staticClass:"btn-accordion-content",class:{active:M.activeSubItem===D.name,disabled:!D.levels.length},attrs:{disabled:!D.levels.length,role:"option","aria-hidden":!D.levels.length},on:{click:function(N){return M.select(D)}}},[N("span",{staticClass:"icon",style:{backgroundColor:D.color,borderColor:D.color,color:D.font_color}},[M._v("\n "+M._s(D.short_name)+"\n ")]),N("p",[M._v(M._s(D.name))])])])})),0):M._e()]),N("span",{staticClass:"line"})],1),N("div",{staticClass:"parkings accordion-item",class:{active:"parkings"===M.activeItem}},[N("span",{staticClass:"line"}),N("button",{staticClass:"btn-accordion",class:{active:"parkings"===M.activeItem},attrs:{id:"btn-parkings",disabled:M.activeItem&&"parkings"===M.activeItem,tabindex:"0","aria-haspopup":"listbox","aria-expanded":M.activeItem&&"parkings"===M.activeItem},on:{click:function(N){return M.toggle("parkings")}}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-p-seleccion.svg",size:"30px"}}),N("p",{directives:[{name:"t",rawName:"v-t",value:"PARKINGS",expression:"'PARKINGS'"}]})],1),N("transition",{attrs:{name:"expand"},on:{enter:M.enter,"after-enter":M.afterEnter,leave:M.leave}},["parkings"===M.activeItem?N("ul",{staticClass:"accordion-content",attrs:{id:"sect-parkings",role:"listbox","aria-labelledby":"btn-parkings"}},M._l(M.parkings,(function(D,t){return N("li",{key:t},[N("button",{staticClass:"btn-accordion-content parking",class:{active:M.activeSubItem===D.name,disabled:!D.levels.length},attrs:{disabled:!D.levels.length,"aria-hidden":!D.levels.length,role:"option"},on:{click:function(N){return M.select(D)}}},[N("span",{staticClass:"icon",style:{backgroundColor:D.color,borderColor:D.color,color:D.font_color}},[M._v("\n "+M._s(D.short_name)+" \n ")]),N("p",[M._v(M._s(D.name))])])])})),0):M._e()])],1),N("br",{staticClass:"clear"})])])],1)},_s=[],Hs=D("9d63"),Fs=D.n(Hs),Vs={name:"app-aenaTerminalsAccordion",mixins:[],components:{VuePerfectScrollbar:Fs.a},props:{data:{type:[Object,Array],required:!0},type:{type:String,required:!0},active:{type:String,required:!1}},data:function(){return{activeItem:this.type,activeSubItem:this.active}},mounted:function(){this.updateScroll()},computed:{terminals:function(){return this.data.terminals.items},parkings:function(){return this.data.parkings.items}},methods:{toggle:function(M){this.activeItem=M,this.activeSubItem=void 0,this.$emit("onToggle",M),this.updateScroll()},select:function(M){this.activeSubItem=M.name,this.$emit("onItemSelected",M)},updateScroll:function(){var M=this;setTimeout((function(){M.$refs.scrollbar.update(),M.$refs.scrollbar.scrollTo(0,0)}),360)},enter:function(M){var N=this;M.style.height="auto";var D=getComputedStyle(M).height;M.style.height=0,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=D,N.updateScroll()}))},afterEnter:function(M){M.style.height="auto"},leave:function(M){var N=getComputedStyle(M).height;M.style.height=N,window.getComputedStyle(M).height,setTimeout((function(){M.style.height=0}))}},watch:{type:function(M){this.activeItem=M},active:function(M){this.activeSubItem=M}}},Js=Vs,qs=(D("ff63"),Object(kT["a"])(Js,Xs,_s,!1,null,"731b6476",null)),Ks=qs.exports;function $s(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function Mu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?$s(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):$s(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Nu={name:"app-aenaTerminalSelector",mixins:[Ts,fT["a"]],components:{AenaTerminalsAccordion:Ks},props:{},data:function(){return{selected:void 0,floor:void 0,type:"terminals",open:!1}},created:function(){this.initData()},computed:Mu(Mu({},Object(n["c"])({isMobile:I["b"].GET_IS_MOBILE,buildings:I["b"].GET_BUILDINGS,building:I["b"].GET_BUILDING,floorC:I["b"].GET_FLOOR,airportID:I["b"].GET_AIRPORT_ID})),{},{accordionData:function(){var M={id:"1",title:"terminales",items:this.buildings.filter((function(M){return"TERMINAL"===M.category}))},N={id:"2",title:"parkings",items:this.buildings.filter((function(M){return"TERMINAL"!==M.category}))};return{terminals:M,parkings:N}},active:function(){return(this.selected||{}).name}}),methods:Mu(Mu({},Object(n["b"])([I["a"].LOAD_FLOOR,I["a"].LOAD_VIEW,I["a"].RESET_BBOX])),{},{initData:function(){this.type="terminals",this.selected=this.building,this.building&&(this.type="TERMINAL"===this.building.category?"terminals":"parkings"),this.floor=this.floorC,this.updateScrolls()},clear:function(){var M=this.selected;this.selected=null,this.floor=null,this[I["a"].LOAD_FLOOR]({floor:this.floor,building:this.selected}),this[I["a"].RESET_BBOX](M),this.closeDropdown()},closeDropdown:function(){this.$refs.accordion.activeSubItem=void 0,this.$refs.dropdown.open=!1},onItemSelected:function(M){var N=this;this.selected=M,this.floor=void 0;var D={eventCategory:"explorador",eventAction:"clic",eventLabel:Object(o["a"])(M.name),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D),this.$nextTick((function(){N.updateScrolls(),N.$refs.floors.focus()}))},onToggle:function(M){this.type=M,this.selected=void 0,this.floor=void 0},onDropdownToggle:function(){this.initData(),this.updateScrolls()},updateScrolls:function(){var M=this;setTimeout((function(){M.$refs.accordion.$refs.scrollbar.update(),M.$refs.scrollbar.update()}),360)},onSelectFloor:function(M){this.floor=M,this[I["a"].LOAD_FLOOR]({floor:this.floor,building:this.selected});var N="".concat(this.selected.name,". Planta ").concat(M.name),D={eventCategory:"explorador",eventAction:"clic",eventLabel:"".concat(Object(o["a"])(N)),language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D),this[I["a"].LOAD_VIEW]("aena-highlighted-points"),this.$refs.dropdown.$refs.button.focus(),this.isMobile&&(this.$refs.dropdown.open=!1)}}),watch:{building:function(M){var N=!this.selected;this.selected=M,M&&N&&this.initData()},floorC:function(M){var N=!this.floor;this.floor=M,M&&N&&this.initData()}}},Du=Nu,tu=(D("e8e9"),Object(kT["a"])(Du,Ws,Rs,!1,null,"0df5f4e4",null)),iu=tu.exports,eu=function(){var M=this,N=M._self._c;return N("Tooltip",{attrs:{text:M.$t("RESET_MAP"),position:"top-left"}},[N("button",{staticClass:"aena-home-button-container",class:[M.deviceWidthClass,{disabled:M.disabled}],attrs:{disabled:M.disabled,"aria-hidden":"true","aria-label":M.$t("RESET_MAP")+" · "+M.$t("AIRPORT_OVERVIEW")},on:{click:M.onReset}},[N("Icon",{staticClass:"icon",attrs:{icon:"reiniciar-home.svg",size:"30px",fill:"#1a2732"}})],1)])},ju=[];function Tu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function gu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Tu(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Tu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var su={name:"HomeButton",mixins:[fT["a"]],components:{},props:{},data:function(){return{}},computed:gu(gu({},Object(n["c"])({building:I["b"].GET_BUILDING,floor:I["b"].GET_FLOOR,poi:I["b"].GET_POI_ID})),{},{disabled:function(){return!this.building||!this.floor}}),methods:gu(gu({},Object(n["b"])([I["a"].LOAD_FLOOR,I["a"].LOAD_ROUTE,I["a"].CLEAR_ROUTE,I["a"].RESET_BBOX,I["a"].SET_HOME_POSITION])),{},{onReset:function(){this.poi?this[I["a"].SET_HOME_POSITION](this.poi):(this[I["a"].LOAD_FLOOR](),this[I["a"].LOAD_ROUTE]({reset:!0,routeMode:!1})),this[I["a"].CLEAR_ROUTE](),this[I["a"].RESET_BBOX]()}})},uu=su,zu=(D("a0b6"),Object(kT["a"])(uu,eu,ju,!1,null,"5ebebba4",null)),Au=zu.exports,Lu=function(){var M=this,N=M._self._c;return N("div",{staticClass:"legend-container",class:[M.deviceWidthClass]},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("LEGEND")))]),N("div",{staticClass:"legend-button-wrapper"},[N("Tooltip",{attrs:{text:M.$t("SHOW_LEGEND")}},[N("button",{key:"button",staticClass:"button",attrs:{role:"button","aria-label":M.$t("LEGEND")},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"info-i-t.svg",size:"30px",fill:"#1a2732"}})],1)])],1),N("transition-group",{attrs:{appear:"",name:"appear"}},[M.opened?N("div",{key:"box",ref:"legend",staticClass:"legend-box",attrs:{tabindex:"0"}},[N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("LEGEND"))+"\n "),N("Tooltip",{attrs:{text:M.$t("HIDE_LEGEND"),position:"top-right"}},[N("button",{staticClass:"close",attrs:{"aria-label":M.$t("HIDE_LEGEND")},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-close.svg",size:"30px",fill:"#71777d"}})],1)])],1),N("div",{staticClass:"body"},[N("h3",{staticClass:"separator",attrs:{id:"s01"}},[M._v(M._s(M.$t("SIGNALING")))]),N("ul",{attrs:{"aria-labelledby":"s01"}},[N("li",{staticClass:"li-row"},[N("Icon",{staticClass:"icon",attrs:{icon:"legend-pp.svg",size:"12px"}}),N("p",[M._v(M._s(M.$t("MAIN_INFORMATION")))])],1),N("li",{staticClass:"li-row"},[N("Icon",{staticClass:"icon",attrs:{icon:"legend-pc.svg",size:"12px"}}),N("p",[M._v(M._s(M.$t("SECONDARY_INFORMATION")))])],1)]),N("h3",{staticClass:"separator",attrs:{id:"s02"}},[M._v(M._s(M.$t("ZONES")))]),N("ul",{attrs:{"aria-labelledby":"s02"}},[N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot free"}),N("p",[M._v(M._s(M.$t("FREE_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot pass-zone"}),N("p",[M._v(M._s(M.$t("PASS_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot markers"}),N("p",[M._v(M._s(M.$t("MARKERS_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot restricted"}),N("p",[M._v(M._s(M.$t("RESTRICTED_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot wc"}),N("p",[M._v(M._s(M.$t("WC_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot vip"}),N("p",[M._v(M._s(M.$t("VIP_ZONE")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"dot safety"}),N("p",[M._v(M._s(M.$t("SAFETY_CONTROL_PASSPORT")))])])]),M.hasRoute?[N("h3",{staticClass:"separator",attrs:{id:"s03"}},[M._v(M._s(M.$t("ROUTES")))]),N("ul",{attrs:{"aria-labelledby":"s03"}},[N("li",{staticClass:"li-row"},[N("div",{staticClass:"route current"}),N("p",[M._v(M._s(M.$t("ROUTE_CURRENT_FLOOR")))])]),N("li",{staticClass:"li-row"},[N("div",{staticClass:"route other"}),N("p",[M._v(M._s(M.$t("ROUTE_OTHER_PLACE")))])])])]:M._e()],2)]):M._e()])],1)},Iu=[];function nu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function ru(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?nu(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):nu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var wu={name:"AenaLegend",mixins:[fT["a"]],components:{},props:{},data:function(){return{opened:!1}},computed:ru(ru({},Object(n["c"])({airport:I["b"].GET_AIRPORT})),{},{hasRoute:function(){return this.airport.has_graph}}),methods:{toggle:function(){var M=this;this.opened=!this.opened,!0===this.opened&&window.setTimeout((function(){M.$refs.legend.focus()}),360)}}},cu=wu,yu=(D("bbf7"),Object(kT["a"])(cu,Lu,Iu,!1,null,"342d7f2b",null)),au=yu.exports,ou=function(){var M=this,N=M._self._c;return N("div",{staticClass:"aena-pmr-container",class:[M.deviceWidthClass],attrs:{tabindex:"-1"}},[N("h2",{staticClass:"visually-hidden"},[M._v(M._s(M.$t("SHOW_PMR")))]),N("div",{staticClass:"legend-button-wrapper"},[N("Tooltip",{attrs:{text:M.$t("SHOW_PMR")}},[N("button",{key:"button",staticClass:"toggle-pmr btn-quaternary",attrs:{role:"button","aria-label":M.$t("PMR"),tabindex:"0"},on:{click:M.toggle}},[M.pmrActive?N("Icon",{staticClass:"icon",attrs:{icon:"pmr-active.svg",size:"30px",fill:"#1a2732"}}):N("Icon",{staticClass:"icon",attrs:{icon:"pmr-config.svg",size:"30px",fill:"#1a2732"}})],1)])],1),N("transition-group",{attrs:{appear:"",name:"appear"}},[M.pmrConfigVisible?N("div",{key:"pmr-box",staticClass:"pmr-box",attrs:{role:"dialog"},on:{keyup:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:M.toggle("close")}}},[N("div",{ref:"popup",staticClass:"pmr-popup",attrs:{role:"document",tabindex:"0","aria-label":M.$t("PMR_CONFIGURATION"),lang:M.language}},[N("div",{staticClass:"header"},[N("Icon",{staticClass:"icon",attrs:{icon:"pmr-t.svg",size:"50px"}}),N("h1",{attrs:{id:"dialog-title"}},[M._v(M._s(M.$t("PMR_CONFIGURATION")))])],1),N("div",{staticClass:"content"},[N("div",{staticClass:"content-title-wrapper"},[N("h2",{staticClass:"content-title"},[M._v(M._s(M.$t("ROUTES_NO_BARRIERS")))]),N("ToggleSwitch",{attrs:{value:M.pmrActive,role:"checkbox","aria-label":M.$t("ROUTES_NO_BARRIERS"),"aria-checked":M.pmrActive},on:{change:M.togglePMR}})],1),N("p",{staticClass:"nbt",attrs:{id:"dialog-description"}},[M._v(M._s(M.$t("ROUTES_NO_BARRIERS_TEXT")))]),N("transition-group",{attrs:{height:"",name:"height"}},[M.pmrActive?N("div",{key:"pmr-options",staticClass:"pmr-options-content"},[N("h3",[M._v(M._s(M.$t("FLOOR_CONNECTORS")))]),N("p",{staticClass:"fct",attrs:{id:"dialogDesc"}},[M._v(M._s(M.$t("FLOOR_CONNECTORS_TEXT")))]),N("Checkbox",{attrs:{label:M.$t("ELEVATORS"),value:!0,disabled:!0}}),N("Checkbox",{attrs:{label:M.$t("ESCALATOR"),value:M.escalatorActive},on:{change:function(N){return M.setPMROption("escalatorActive",N.state)}}}),N("Checkbox",{attrs:{label:M.$t("MECHANICAL_RAMPS"),value:M.rampsActive},on:{change:function(N){return M.setPMROption("rampsActive",N.state)}}})],1):M._e()])],1),N("Tooltip",{staticClass:"close",attrs:{text:M.$t("HIDE_PMR"),position:"top-right",tabindex:"-1"}},[N("button",{staticClass:"close",attrs:{"aria-label":M.$t("HIDE_PMR"),tabindex:"100"},on:{click:M.toggle}},[N("Icon",{staticClass:"icon",attrs:{icon:"icon-close.svg",size:"30px",fill:"#71777d"}})],1)])],1)]):M._e()])],1)},Eu=[];function Ou(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function xu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Ou(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Ou(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Cu={name:"AenaPmr",mixins:[fT["a"]],components:{},props:{},data:function(){return{escalatorActive:!0,rampsActive:!1,language:this.$i18n.locale}},computed:xu(xu({},Object(n["c"])({pmrConfigVisible:I["b"].PMR_CONFIG_VISIBLE,pmrProfile:I["b"].GET_PMR_PROFILE,pmrDefaultProfile:I["b"].GET_DEFAULT_PMR_PROFILE})),{},{pmrActive:function(){return this.pmrProfile===this.pmrDefaultProfile&&this.setDefaultPMROptions(),null!==this.pmrProfile}}),methods:xu(xu(xu({},Object(n["b"])([I["a"].SET_PMR_PROFILE])),Object(n["d"])([I["c"].SAVE_PMR_CONFIG_VISIBILITY])),{},{getProfile:function(){return this.escalatorActive&&this.rampsActive?"pmr_4":this.escalatorActive?"pmr_3":this.rampsActive?"pmr_2":"pmr_1"},setPMROption:function(M,N){this[M]=N,this[I["a"].SET_PMR_PROFILE](this.getProfile())},toggle:function(M){var N=this;this[I["c"].SAVE_PMR_CONFIG_VISIBILITY](!this.pmrConfigVisible);var D=document.querySelector(".flughaveno-map");this.pmrConfigVisible&&"close"!==M?window.setTimeout((function(){var M=N.$refs.popup;hs("pmr-wrapper",D,!0),M.focus()}),300):(hs("pmr-wrapper",D,!1),document.removeEventListener("keydown",this.toggle))},togglePMR:function(){this.setDefaultPMROptions(),this[I["a"].SET_PMR_PROFILE](this.pmrProfile?null:this.getProfile())},setDefaultPMROptions:function(){this.escalatorActive=!1,this.rampsActive=!1}})},Su=Cu,lu=(D("31a0"),Object(kT["a"])(Su,ou,Eu,!1,null,"ac0eb094",null)),ku=lu.exports,Qu=function(){var M=this,N=M._self._c;return N("transition-group",{attrs:{appear:"",name:"appear"}},[N("div",{key:"feedback",ref:"feedback",staticClass:"feedback-container",attrs:{role:"document",tabindex:"0","aria-label":M.$t("FEEDBACK_TITLE"),lang:M.language},on:{keyup:function(N){return!N.type.indexOf("key")&&M._k(N.keyCode,"esc",27,N.key,["Esc","Escape"])?null:M.onCloseNoFeedback.apply(null,arguments)}}},[N("div",{staticClass:"feedback-popup"},[N("div",{staticClass:"close"},[N("button",{staticClass:"btn icon",attrs:{role:"button","aria-label":M.$t("CLOSE")},on:{click:M.onCloseNoFeedback}},[N("Icon",{attrs:{icon:"cerrar-ico-jj.svg",size:"30px"}})],1)]),M.sent?[N("div",{staticClass:"header"},[N("Icon",{attrs:{icon:"tick-ok-2-jj.svg",size:"64px"}})],1),N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("FEEDBACK_TITLE_SENT"))+"\n ")]),N("div",{staticClass:"description",domProps:{innerHTML:M._s(M.$t("FEEDBACK_DESCRIPTION_SENT"))}}),N("div",{staticClass:"actions"},[N("button",{staticClass:"btn lg tertiary text",on:{click:M.onClose}},[M._v(M._s(M.$t("FEEDBACK_ACTION_SENT")))])])]:[N("div",{staticClass:"header"},[N("Icon",{attrs:{icon:"group.svg",size:["192px","12px"]}}),N("Icon",{staticClass:"type",attrs:{icon:(M.pmr?"guaido_pmr":"guiado-pasajero")+".svg",size:"64px"}})],1),N("div",{staticClass:"title"},[M._v("\n "+M._s(M.$t("FEEDBACK_TITLE"))+"\n ")]),N("div",{staticClass:"feedback"},[N("div",{staticClass:"top"},[M._l(M.feedbacks,(function(D){return[N("Tooltip",{attrs:{text:D.text,position:"top"}},[N("button",{staticClass:"star",attrs:{"aria-label":D.text},on:{click:function(N){return M.onFeedback(D.value)},mouseover:function(N){M.hovering=D.value},mouseout:function(N){M.hovering=0}}},[N("Icon",{attrs:{icon:(M.value>=D.value?"estrella-especial-full":"estrella-especial-jj")+".svg",size:"30px",fill:M.hovering>=D.value?"#598000":"#71777D"}})],1)])]}))],2),N("div",{staticClass:"bottom"},[M.value?N("span",{staticClass:"result"},[M._v(M._s(M.text))]):M._e()])]),N("div",{staticClass:"description",domProps:{innerHTML:M._s(M.$t("FEEDBACK_DESCRIPTION"))}}),N("div",{staticClass:"actions"},[N("button",{staticClass:"btn lg primary text",attrs:{disabled:!M.value},on:{click:M.onSubmit}},[M._v(M._s(M.$t("FEEDBACK_ACTION")))])])]],2)])])},du=[];function Yu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function pu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Yu(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Yu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Uu={name:"app-feedback",mixins:[],components:{},props:{},data:function(){return{value:0,sent:!1,hovering:0,language:this.$i18n.locale}},computed:pu(pu({},Object(n["c"])({feedback:I["b"].GET_FEEDBACK,airportID:I["b"].GET_AIRPORT_ID,pmr:I["b"].GET_PMR_PROFILE})),{},{feedbacks:function(){return[{value:1,text:this.$t("FEEDBACK_VERY_LITTLE")},{value:2,text:this.$t("FEEDBACK_LITTLE")},{value:3,text:this.$t("FEEDBACK_NORMAL")},{value:4,text:this.$t("FEEDBACK_QUITE")},{value:5,text:this.$t("FEEDBACK_VERY_QUITE")}]},text:function(){var M=this;return this.value&&this.feedbacks.find((function(N){return N.value===M.value})).text}}),mounted:function(){var M=this,N=document.querySelector(".flughaveno-map");window.setTimeout((function(){var D=M.$refs.feedback;hs("feedback-wrapper",N,!0),D.focus()}),300)},beforeDestroy:function(){this.removeFeedbackFocus(),document.removeEventListener("keydown",this.onCloseNoFeedback)},methods:pu(pu(pu({},Object(n["b"])([I["a"].SET_FEEDBACK])),Object(n["d"])([I["c"].SAVE_FEEDBACK])),{},{onClose:function(){this.removeFeedbackFocus(),this[I["c"].SAVE_FEEDBACK]()},onCloseNoFeedback:function(){this.sent||this.sentFeedback("encuesta descartada","no enviada"),this.onClose()},onFeedback:function(M){this.value=M},onSubmit:function(){this[I["a"].SET_FEEDBACK]({answered:!0}),this.sent=!0,this.sentFeedback(this.value)},sentFeedback:function(M){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"enviada",D={eventCategory:"encuesta",eventAction:N,eventLabel:M,language:this.$i18n.locale,airportID:this.airportID};window.digitalChange("event",D)},removeFeedbackFocus:function(){var M=document.querySelector(".flughaveno-map");hs("feedback-wrapper",M,!1)}})},hu=Uu,fu=(D("b5d5"),Object(kT["a"])(hu,Qu,du,!1,null,"6e183c38",null)),mu=fu.exports,vu=D("704c");function Bu(M,N){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(M);N&&(t=t.filter((function(N){return Object.getOwnPropertyDescriptor(M,N).enumerable}))),D.push.apply(D,t)}return D}function bu(M){for(var N=1;N<arguments.length;N++){var D=null!=arguments[N]?arguments[N]:{};N%2?Bu(Object(D),!0).forEach((function(N){Object(A["a"])(M,N,D[N])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):Bu(Object(D)).forEach((function(N){Object.defineProperty(M,N,Object.getOwnPropertyDescriptor(D,N))}))}return M}var Pu=12e4,Zu=3e5,Gu={name:"app-appShell",mixins:[x,fT["a"]],components:{MapComponent:ZT,AenaPoints:Gs,AenaTerminalSelector:iu,AenaHomeButton:Au,AenaLegend:au,AenaPmr:ku,Feedback:mu,Layers:HT},props:{},data:function(){return{loaded:!1,id:this.$root.$data.id,airport:this.$root.$data.airport,building:this.$root.$data.building,floor:this.$root.$data.floor,explorerMode:this.$root.$data.explorerMode,category:this.$root.$data.category,poi:(this.$root.$data.poi||"").toString(),poiD:(this.$root.$data.poiD||"").toString(),route:this.$root.$data.route,language:this.$root.$data.language,isPortrait:null,pmr_enabled:"true",interval:void 0,intervalPoiWait:void 0,container:null,printMode:this.$root.$data.printMode,layers:!1,lat:this.$root.$data.lat,lon:this.$root.$data.lon,mupiMode:this.$root.$data.mupiMode,avaMode:this.$root.$data.avaMode,subcategories:this.$root.$data.subcategories,zonaubicacion:this.$root.$data.zonaubicacion,filtering:this.$root.$data.filtering,autoCalculateRoute:this.$root.$data.autoCalculateRoute,intervalMupiResetPosition:void 0,pointsDetailCollapsed:!0}},created:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(){var N=this;return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:document.documentElement.setAttribute("lang",this.language),this.initFeedback(),this.saveConfig(),this[I["a"].LOAD_FULL_AIRPORT]().then((function(){N.building&&N.saveFloor({buildingId:N.building,floorId:N.floor,airportID:N.airport,tag:"explorador"}),N.airportC.access_controls_has_wait_info&&(N[I["a"].LOAD_ACCESS_CONTROL_TIME]({code:N.airport,pois:N.pois}),N.intervalPoiWait=setInterval((function(){N[I["a"].LOAD_ACCESS_CONTROL_TIME]({code:N.airport,pois:N.pois})}),3e5)),N.loaded=!0})),window.addEventListener("orientationchange",this.handleOrientation,!0),this.handleOrientation(),window.addEventListener("resize",this.checkIsMobile,!0),document.addEventListener("keydown",this.addAccesibilityClass,!0),document.addEventListener("mousedown",this.removeAccesibilityClass,!0),this.mupiMode&&(this[I["a"].CLEAR_ROUTE](),this.initMupiIntervalEvents());case 10:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),mounted:function(){this.container=document.querySelector(".flughaveno-map"),this.checkIsMobile()},beforeDestroy:function(){clearInterval(this.interval),clearInterval(this.intervalPoiWait),this.mupiMode&&clearInterval(this.intervalMupiResetPosition),window.removeEventListener("resize",this.checkIsMobile,!1),this.removeMupiInternalEvents()},computed:bu(bu({},Object(n["c"])({airportC:I["b"].GET_AIRPORT,pois:I["b"].GET_POIS_LIST,selectedPoi:I["b"].GET_POI,buildings:I["b"].GET_BUILDINGS,buildingC:I["b"].GET_BUILDING,floorC:I["b"].GET_FLOOR,routeConfig:I["b"].GET_ROUTE_CONFIG,isRouteMode:I["b"].IS_ROUTE_MODE,feedback:I["b"].GET_FEEDBACK,layerTree:I["b"].GET_LAYER_TREE,filteringC:I["b"].GET_FILTERING})),{},{appId:function(){return this.id.split("#")[1]},hasRoute:function(){return this.airportC.has_graph}}),methods:bu(bu(bu({},Object(n["b"])([I["a"].LOAD_FULL_AIRPORT,I["a"].SET_FEEDBACK,I["a"].LOAD_ACCESS_CONTROL_TIME,I["a"].SET_HOME_POSITION,I["a"].CLEAR_ROUTE,I["a"].CLEAR_POI])),Object(n["d"])([I["c"].SAVE_DEVICE_WIDTH,I["c"].SAVE_IS_MOBILE,I["c"].SAVE_FILTERING])),{},{resize:function(){this[I["c"].SAVE_DEVICE_WIDTH](this.$el.offsetWidth)},saveConfig:function(){this.$store.commit(I["c"].SAVE_CONFIG,{id:this.id,airport:this.airport,explorerMode:this.explorerMode,building:this.building,floor:this.floor,category:this.category,subcategories:this.subcategories,language:this.language,route:this.route,poi:this.poi,poiD:this.poiD,lat:this.lat,lon:this.lon,mupiMode:this.mupiMode,zonaubicacion:this.zonaubicacion});var M=null!=this.filteringC?this.filteringC:this.filtering;this.$store.commit(I["c"].SAVE_FILTERING,M)},checkIsMobile:function(){var M=Object(vu["a"])(this.id);this.filtering=this.filteringC||M,this.resize(),this[I["c"].SAVE_IS_MOBILE](M),this.$store.commit(I["c"].SAVE_FILTERING,this.filtering)},handleOrientation:function(){var M=this;window.setTimeout((function(){0===window.orientation&&window.innerWidth<=768&&window.innerWidth>=570?M.isPortrait=!0:M.isPortrait=!1}),5e3)},closeModal:function(){this.isPortrait=!1},initFeedback:function(){var M=this,N=function(){var M=JSON.parse(localStorage.getItem("feedback")||"{}");localStorage.removeItem("feedbacks");var N=new Date;M.time&&new Date(M.time).getUTCDate()===N.getUTCDate()||(M.time=N.toISOString(),M.count=1,M.answered=!1,localStorage.setItem("feedback",JSON.stringify(M)))};N(),this.interval=setInterval((function(){var N=JSON.parse(localStorage.getItem("feedback")||"{}");clearInterval(M.interval),N.count<5&&(N.count=4),localStorage.setItem("feedback",JSON.stringify(N)),M[I["a"].SET_FEEDBACK]()}),6e5)},initMupiIntervalEvents:function(){document.addEventListener("keydown",this.cancelIntervalMupi,!1),document.addEventListener("keypress",this.cancelIntervalMupi,!1),document.addEventListener("keyup",this.cancelIntervalMupi,!1),document.addEventListener("mousedown",this.cancelIntervalMupi,!1),document.addEventListener("mouseup",this.cancelIntervalMupi,!1),document.addEventListener("click",this.cancelIntervalMupi,!1),document.addEventListener("touchstart",this.cancelIntervalMupi,!1),document.addEventListener("touchend",this.cancelIntervalMupi,!1),document.addEventListener("touchcancel",this.cancelIntervalMupi,!1),document.addEventListener("touchleave",this.cancelIntervalMupi,!1),document.addEventListener("touchmove",this.cancelIntervalMupi,!1),this.initIntervalMupi()},removeMupiInternalEvents:function(){document.removeEventListener("keydown",this.cancelIntervalMupi,!1),document.removeEventListener("keypress",this.cancelIntervalMupi,!1),document.removeEventListener("keyup",this.cancelIntervalMupi,!1),document.removeEventListener("mousedown",this.cancelIntervalMupi,!1),document.removeEventListener("mouseup",this.cancelIntervalMupi,!1),document.removeEventListener("click",this.cancelIntervalMupi,!1),document.removeEventListener("touchstart",this.cancelIntervalMupi,!1),document.removeEventListener("touchend",this.cancelIntervalMupi,!1),document.removeEventListener("touchcancel",this.cancelIntervalMupi,!1),document.removeEventListener("touchleave",this.cancelIntervalMupi,!1),document.removeEventListener("touchmove",this.cancelIntervalMupi,!1)},initIntervalMupi:function(){var M=this,N=this.$root.$data.avaMode,D=N?Zu:Pu;this.intervalMupiResetPosition=setInterval((function(){M[I["a"].CLEAR_ROUTE](),N||M[I["a"].SET_HOME_POSITION](M.poi),clearInterval(M.intervalMupiResetPosition)}),D)},cancelIntervalMupi:function(M){clearInterval(this.intervalMupiResetPosition),this.intervalMupiResetPosition=void 0,this.initIntervalMupi()},addAccesibilityClass:function(M){this.container.classList.contains("keyboard-nav")||"Tab"!==M.key||this.container.classList.add("keyboard-nav")},removeAccesibilityClass:function(){this.container.classList.remove("keyboard-nav")},onLayerChange:function(M){var N=this.$refs.map.getLayer(M.name);this.$refs.map.setLayoutProperty(N.id,"none"===N.visibility?"visible":"none")},onPointsToggle:function(M){this.pointsDetailCollapsed=M}}),watch:{floorC:function(){var M=Object(L["a"])(regeneratorRuntime.mark((function M(){return regeneratorRuntime.wrap((function(M){while(1)switch(M.prev=M.next){case 0:this.floor=(this.floorC||{}).id,this.building=(this.buildingC||{}).id,this.saveConfig();case 3:case"end":return M.stop()}}),M,this)})));function N(){return M.apply(this,arguments)}return N}(),layerTree:function(M){var N=M.map((function(M){var N=M;return N.name="poiList"===M.id?"Puntos de interés":"building-contour"===M.id?"Contorno de edificios":"building-contour-marker"===M.id?"Marcadores de planta":"poiListSelected"===M.id?"POIs seleccionados":"spaces_base_fill"===M.id?"Relleno del espacio":M.id,N.active=!0,N}));this.layers=N}}},Wu=Gu,Ru=(D("3719"),Object(kT["a"])(Wu,u,z,!1,null,null,null)),Xu=Ru.exports,_u=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],Hu=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Fu(M,N){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+M),N&&console.warn(N.stack))}function Vu(M,N){"undefined"!==typeof console&&(console.error("[vue-i18n] "+M),N&&console.error(N.stack))}var Ju=Array.isArray;function qu(M){return null!==M&&"object"===typeof M}function Ku(M){return"boolean"===typeof M}function $u(M){return"string"===typeof M}var Mz=Object.prototype.toString,Nz="[object Object]";function Dz(M){return Mz.call(M)===Nz}function tz(M){return null===M||void 0===M}function iz(M){return"function"===typeof M}function ez(){var M=[],N=arguments.length;while(N--)M[N]=arguments[N];var D=null,t=null;return 1===M.length?qu(M[0])||Ju(M[0])?t=M[0]:"string"===typeof M[0]&&(D=M[0]):2===M.length&&("string"===typeof M[0]&&(D=M[0]),(qu(M[1])||Ju(M[1]))&&(t=M[1])),{locale:D,params:t}}function jz(M){return JSON.parse(JSON.stringify(M))}function Tz(M,N){if(M.delete(N))return M}function gz(M){var N=[];return M.forEach((function(M){return N.push(M)})),N}function sz(M,N){return!!~M.indexOf(N)}var uz=Object.prototype.hasOwnProperty;function zz(M,N){return uz.call(M,N)}function Az(M){for(var N=arguments,D=Object(M),t=1;t<arguments.length;t++){var i=N[t];if(void 0!==i&&null!==i){var e=void 0;for(e in i)zz(i,e)&&(qu(i[e])?D[e]=Az(D[e],i[e]):D[e]=i[e])}}return D}function Lz(M,N){if(M===N)return!0;var D=qu(M),t=qu(N);if(!D||!t)return!D&&!t&&String(M)===String(N);try{var i=Ju(M),e=Ju(N);if(i&&e)return M.length===N.length&&M.every((function(M,D){return Lz(M,N[D])}));if(i||e)return!1;var j=Object.keys(M),T=Object.keys(N);return j.length===T.length&&j.every((function(D){return Lz(M[D],N[D])}))}catch(g){return!1}}function Iz(M){return M.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function nz(M){return null!=M&&Object.keys(M).forEach((function(N){"string"==typeof M[N]&&(M[N]=Iz(M[N]))})),M}function rz(M){M.prototype.hasOwnProperty("$i18n")||Object.defineProperty(M.prototype,"$i18n",{get:function(){return this._i18n}}),M.prototype.$t=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.$i18n;return t._t.apply(t,[M,t.locale,t._getMessages(),this].concat(N))},M.prototype.$tc=function(M,N){var D=[],t=arguments.length-2;while(t-- >0)D[t]=arguments[t+2];var i=this.$i18n;return i._tc.apply(i,[M,i.locale,i._getMessages(),this,N].concat(D))},M.prototype.$te=function(M,N){var D=this.$i18n;return D._te(M,D.locale,D._getMessages(),N)},M.prototype.$d=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this.$i18n).d.apply(N,[M].concat(D))},M.prototype.$n=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this.$i18n).n.apply(N,[M].concat(D))}}function wz(M){function N(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===M&&(M=!1),M?{mounted:N}:{beforeCreate:function(){var M=this.$options;if(M.i18n=M.i18n||(M.__i18nBridge||M.__i18n?{}:null),M.i18n)if(M.i18n instanceof nA){if(M.__i18nBridge||M.__i18n)try{var N=M.i18n&&M.i18n.messages?M.i18n.messages:{},D=M.__i18nBridge||M.__i18n;D.forEach((function(M){N=Az(N,JSON.parse(M))})),Object.keys(N).forEach((function(D){M.i18n.mergeLocaleMessage(D,N[D])}))}catch(g){0}this._i18n=M.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(Dz(M.i18n)){var t=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof nA?this.$root.$i18n:null;if(t&&(M.i18n.root=this.$root,M.i18n.formatter=t.formatter,M.i18n.fallbackLocale=t.fallbackLocale,M.i18n.formatFallbackMessages=t.formatFallbackMessages,M.i18n.silentTranslationWarn=t.silentTranslationWarn,M.i18n.silentFallbackWarn=t.silentFallbackWarn,M.i18n.pluralizationRules=t.pluralizationRules,M.i18n.preserveDirectiveContent=t.preserveDirectiveContent),M.__i18nBridge||M.__i18n)try{var i=M.i18n&&M.i18n.messages?M.i18n.messages:{},e=M.__i18nBridge||M.__i18n;e.forEach((function(M){i=Az(i,JSON.parse(M))})),M.i18n.messages=i}catch(g){0}var j=M.i18n,T=j.sharedMessages;T&&Dz(T)&&(M.i18n.messages=Az(M.i18n.messages,T)),this._i18n=new nA(M.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===M.i18n.sync||M.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),t&&t.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof nA?this._i18n=this.$root.$i18n:M.parent&&M.parent.$i18n&&M.parent.$i18n instanceof nA&&(this._i18n=M.parent.$i18n)},beforeMount:function(){var M=this.$options;M.i18n=M.i18n||(M.__i18nBridge||M.__i18n?{}:null),M.i18n?(M.i18n instanceof nA||Dz(M.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof nA||M.parent&&M.parent.$i18n&&M.parent.$i18n instanceof nA)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:N,beforeDestroy:function(){if(this._i18n){var M=this;this.$nextTick((function(){M._subscribing&&(M._i18n.unsubscribeDataChanging(M),delete M._subscribing),M._i18nWatcher&&(M._i18nWatcher(),M._i18n.destroyVM(),delete M._i18nWatcher),M._localeWatcher&&(M._localeWatcher(),delete M._localeWatcher)}))}}}}var cz={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(M,N){var D=N.data,t=N.parent,i=N.props,e=N.slots,j=t.$i18n;if(j){var T=i.path,g=i.locale,s=i.places,u=e(),z=j.i(T,g,yz(u)||s?az(u.default,s):u),A=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return A?M(A,D,z):z}}};function yz(M){var N;for(N in M)if("default"!==N)return!1;return Boolean(N)}function az(M,N){var D=N?oz(N):{};if(!M)return D;M=M.filter((function(M){return M.tag||""!==M.text.trim()}));var t=M.every(xz);return M.reduce(t?Ez:Oz,D)}function oz(M){return Array.isArray(M)?M.reduce(Oz,{}):Object.assign({},M)}function Ez(M,N){return N.data&&N.data.attrs&&N.data.attrs.place&&(M[N.data.attrs.place]=N),M}function Oz(M,N,D){return M[D]=N,M}function xz(M){return Boolean(M.data&&M.data.attrs&&M.data.attrs.place)}var Cz,Sz={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(M,N){var D=N.props,t=N.parent,i=N.data,e=t.$i18n;if(!e)return null;var j=null,T=null;$u(D.format)?j=D.format:qu(D.format)&&(D.format.key&&(j=D.format.key),T=Object.keys(D.format).reduce((function(M,N){var t;return sz(_u,N)?Object.assign({},M,(t={},t[N]=D.format[N],t)):M}),null));var g=D.locale||e.locale,s=e._ntp(D.value,g,j,T),u=s.map((function(M,N){var D,t=i.scopedSlots&&i.scopedSlots[M.type];return t?t((D={},D[M.type]=M.value,D.index=N,D.parts=s,D)):M.value})),z=D.tag&&!0!==D.tag||!1===D.tag?D.tag:"span";return z?M(z,{attrs:i.attrs,class:i["class"],staticClass:i.staticClass},u):u}};function lz(M,N,D){dz(M,D)&&pz(M,N,D)}function kz(M,N,D,t){if(dz(M,D)){var i=D.context.$i18n;Yz(M,D)&&Lz(N.value,N.oldValue)&&Lz(M._localeMessage,i.getLocaleMessage(i.locale))||pz(M,N,D)}}function Qz(M,N,D,t){var i=D.context;if(i){var e=D.context.$i18n||{};N.modifiers.preserve||e.preserveDirectiveContent||(M.textContent=""),M._vt=void 0,delete M["_vt"],M._locale=void 0,delete M["_locale"],M._localeMessage=void 0,delete M["_localeMessage"]}else Fu("Vue instance does not exists in VNode context")}function dz(M,N){var D=N.context;return D?!!D.$i18n||(Fu("VueI18n instance does not exists in Vue instance"),!1):(Fu("Vue instance does not exists in VNode context"),!1)}function Yz(M,N){var D=N.context;return M._locale===D.$i18n.locale}function pz(M,N,D){var t,i,e=N.value,j=Uz(e),T=j.path,g=j.locale,s=j.args,u=j.choice;if(T||g||s)if(T){var z=D.context;M._vt=M.textContent=null!=u?(t=z.$i18n).tc.apply(t,[T,u].concat(hz(g,s))):(i=z.$i18n).t.apply(i,[T].concat(hz(g,s))),M._locale=z.$i18n.locale,M._localeMessage=z.$i18n.getLocaleMessage(z.$i18n.locale)}else Fu("`path` is required in v-t directive");else Fu("value type not supported")}function Uz(M){var N,D,t,i;return $u(M)?N=M:Dz(M)&&(N=M.path,D=M.locale,t=M.args,i=M.choice),{path:N,locale:D,args:t,choice:i}}function hz(M,N){var D=[];return M&&D.push(M),N&&(Array.isArray(N)||Dz(N))&&D.push(N),D}function fz(M,N){void 0===N&&(N={bridge:!1}),fz.installed=!0,Cz=M;Cz.version&&Number(Cz.version.split(".")[0]);rz(Cz),Cz.mixin(wz(N.bridge)),Cz.directive("t",{bind:lz,update:kz,unbind:Qz}),Cz.component(cz.name,cz),Cz.component(Sz.name,Sz);var D=Cz.config.optionMergeStrategies;D.i18n=function(M,N){return void 0===N?M:N}}var mz=function(){this._caches=Object.create(null)};mz.prototype.interpolate=function(M,N){if(!N)return[M];var D=this._caches[M];return D||(D=bz(M),this._caches[M]=D),Pz(D,N)};var vz=/^(?:\d)+/,Bz=/^(?:\w)+/;function bz(M){var N=[],D=0,t="";while(D<M.length){var i=M[D++];if("{"===i){t&&N.push({type:"text",value:t}),t="";var e="";i=M[D++];while(void 0!==i&&"}"!==i)e+=i,i=M[D++];var j="}"===i,T=vz.test(e)?"list":j&&Bz.test(e)?"named":"unknown";N.push({value:e,type:T})}else"%"===i?"{"!==M[D]&&(t+=i):t+=i}return t&&N.push({type:"text",value:t}),N}function Pz(M,N){var D=[],t=0,i=Array.isArray(N)?"list":qu(N)?"named":"unknown";if("unknown"===i)return D;while(t<M.length){var e=M[t];switch(e.type){case"text":D.push(e.value);break;case"list":D.push(N[parseInt(e.value,10)]);break;case"named":"named"===i&&D.push(N[e.value]);break;case"unknown":0;break}t++}return D}var Zz=0,Gz=1,Wz=2,Rz=3,Xz=0,_z=1,Hz=2,Fz=3,Vz=4,Jz=5,qz=6,Kz=7,$z=8,MA=[];MA[Xz]={ws:[Xz],ident:[Fz,Zz],"[":[Vz],eof:[Kz]},MA[_z]={ws:[_z],".":[Hz],"[":[Vz],eof:[Kz]},MA[Hz]={ws:[Hz],ident:[Fz,Zz],0:[Fz,Zz],number:[Fz,Zz]},MA[Fz]={ident:[Fz,Zz],0:[Fz,Zz],number:[Fz,Zz],ws:[_z,Gz],".":[Hz,Gz],"[":[Vz,Gz],eof:[Kz,Gz]},MA[Vz]={"'":[Jz,Zz],'"':[qz,Zz],"[":[Vz,Wz],"]":[_z,Rz],eof:$z,else:[Vz,Zz]},MA[Jz]={"'":[Vz,Zz],eof:$z,else:[Jz,Zz]},MA[qz]={'"':[Vz,Zz],eof:$z,else:[qz,Zz]};var NA=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function DA(M){return NA.test(M)}function tA(M){var N=M.charCodeAt(0),D=M.charCodeAt(M.length-1);return N!==D||34!==N&&39!==N?M:M.slice(1,-1)}function iA(M){if(void 0===M||null===M)return"eof";var N=M.charCodeAt(0);switch(N){case 91:case 93:case 46:case 34:case 39:return M;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function eA(M){var N=M.trim();return("0"!==M.charAt(0)||!isNaN(M))&&(DA(N)?tA(N):"*"+N)}function jA(M){var N,D,t,i,e,j,T,g=[],s=-1,u=Xz,z=0,A=[];function L(){var N=M[s+1];if(u===Jz&&"'"===N||u===qz&&'"'===N)return s++,t="\\"+N,A[Zz](),!0}A[Gz]=function(){void 0!==D&&(g.push(D),D=void 0)},A[Zz]=function(){void 0===D?D=t:D+=t},A[Wz]=function(){A[Zz](),z++},A[Rz]=function(){if(z>0)z--,u=Vz,A[Zz]();else{if(z=0,void 0===D)return!1;if(D=eA(D),!1===D)return!1;A[Gz]()}};while(null!==u)if(s++,N=M[s],"\\"!==N||!L()){if(i=iA(N),T=MA[u],e=T[i]||T["else"]||$z,e===$z)return;if(u=e[0],j=A[e[1]],j&&(t=e[2],t=void 0===t?N:t,!1===j()))return;if(u===Kz)return g}}var TA=function(){this._cache=Object.create(null)};TA.prototype.parsePath=function(M){var N=this._cache[M];return N||(N=jA(M),N&&(this._cache[M]=N)),N||[]},TA.prototype.getPathValue=function(M,N){if(!qu(M))return null;var D=this.parsePath(N);if(0===D.length)return null;var t=D.length,i=M,e=0;while(e<t){var j=i[D[e]];if(void 0===j||null===j)return null;i=j,e++}return i};var gA,sA=/<\/?[\w\s="/.':;#-\/]+>/,uA=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,zA=/^@(?:\.([a-zA-Z]+))?:/,AA=/[()]/g,LA={upper:function(M){return M.toLocaleUpperCase()},lower:function(M){return M.toLocaleLowerCase()},capitalize:function(M){return""+M.charAt(0).toLocaleUpperCase()+M.substr(1)}},IA=new mz,nA=function(M){var N=this;void 0===M&&(M={}),!Cz&&"undefined"!==typeof window&&window.Vue&&fz(window.Vue);var D=M.locale||"en-US",t=!1!==M.fallbackLocale&&(M.fallbackLocale||"en-US"),i=M.messages||{},e=M.dateTimeFormats||M.datetimeFormats||{},j=M.numberFormats||{};this._vm=null,this._formatter=M.formatter||IA,this._modifiers=M.modifiers||{},this._missing=M.missing||null,this._root=M.root||null,this._sync=void 0===M.sync||!!M.sync,this._fallbackRoot=void 0===M.fallbackRoot||!!M.fallbackRoot,this._fallbackRootWithEmptyString=void 0===M.fallbackRootWithEmptyString||!!M.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==M.formatFallbackMessages&&!!M.formatFallbackMessages,this._silentTranslationWarn=void 0!==M.silentTranslationWarn&&M.silentTranslationWarn,this._silentFallbackWarn=void 0!==M.silentFallbackWarn&&!!M.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new TA,this._dataListeners=new Set,this._componentInstanceCreatedListener=M.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==M.preserveDirectiveContent&&!!M.preserveDirectiveContent,this.pluralizationRules=M.pluralizationRules||{},this._warnHtmlInMessage=M.warnHtmlInMessage||"off",this._postTranslation=M.postTranslation||null,this._escapeParameterHtml=M.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in M&&(this.__VUE_I18N_BRIDGE__=M.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(M,D){var t=Object.getPrototypeOf(N);if(t&&t.getChoiceIndex){var i=t.getChoiceIndex;return i.call(N,M,D)}var e=function(M,N){return M=Math.abs(M),2===N?M?M>1?1:0:1:M?Math.min(M,2):0};return N.locale in N.pluralizationRules?N.pluralizationRules[N.locale].apply(N,[M,D]):e(M,D)},this._exist=function(M,D){return!(!M||!D)&&(!tz(N._path.getPathValue(M,D))||!!M[D])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(M){N._checkLocaleMessage(M,N._warnHtmlInMessage,i[M])})),this._initVM({locale:D,fallbackLocale:t,messages:i,dateTimeFormats:e,numberFormats:j})},rA={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};nA.prototype._checkLocaleMessage=function(M,N,D){var t=[],i=function(M,N,D,t){if(Dz(D))Object.keys(D).forEach((function(e){var j=D[e];Dz(j)?(t.push(e),t.push("."),i(M,N,j,t),t.pop(),t.pop()):(t.push(e),i(M,N,j,t),t.pop())}));else if(Ju(D))D.forEach((function(D,e){Dz(D)?(t.push("["+e+"]"),t.push("."),i(M,N,D,t),t.pop(),t.pop()):(t.push("["+e+"]"),i(M,N,D,t),t.pop())}));else if($u(D)){var e=sA.test(D);if(e){var j="Detected HTML in message '"+D+"' of keypath '"+t.join("")+"' at '"+N+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===M?Fu(j):"error"===M&&Vu(j)}}};i(N,M,D,t)},nA.prototype._initVM=function(M){var N=Cz.config.silent;Cz.config.silent=!0,this._vm=new Cz({data:M,__VUE18N__INSTANCE__:!0}),Cz.config.silent=N},nA.prototype.destroyVM=function(){this._vm.$destroy()},nA.prototype.subscribeDataChanging=function(M){this._dataListeners.add(M)},nA.prototype.unsubscribeDataChanging=function(M){Tz(this._dataListeners,M)},nA.prototype.watchI18nData=function(){var M=this;return this._vm.$watch("$data",(function(){var N=gz(M._dataListeners),D=N.length;while(D--)Cz.nextTick((function(){N[D]&&N[D].$forceUpdate()}))}),{deep:!0})},nA.prototype.watchLocale=function(M){if(M){if(!this.__VUE_I18N_BRIDGE__)return null;var N=this,D=this._vm;return this.vm.$watch("locale",(function(t){D.$set(D,"locale",t),N.__VUE_I18N_BRIDGE__&&M&&(M.locale.value=t),D.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",(function(M){t.$set(t,"locale",M),t.$forceUpdate()}),{immediate:!0})},nA.prototype.onComponentInstanceCreated=function(M){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(M,this)},rA.vm.get=function(){return this._vm},rA.messages.get=function(){return jz(this._getMessages())},rA.dateTimeFormats.get=function(){return jz(this._getDateTimeFormats())},rA.numberFormats.get=function(){return jz(this._getNumberFormats())},rA.availableLocales.get=function(){return Object.keys(this.messages).sort()},rA.locale.get=function(){return this._vm.locale},rA.locale.set=function(M){this._vm.$set(this._vm,"locale",M)},rA.fallbackLocale.get=function(){return this._vm.fallbackLocale},rA.fallbackLocale.set=function(M){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",M)},rA.formatFallbackMessages.get=function(){return this._formatFallbackMessages},rA.formatFallbackMessages.set=function(M){this._formatFallbackMessages=M},rA.missing.get=function(){return this._missing},rA.missing.set=function(M){this._missing=M},rA.formatter.get=function(){return this._formatter},rA.formatter.set=function(M){this._formatter=M},rA.silentTranslationWarn.get=function(){return this._silentTranslationWarn},rA.silentTranslationWarn.set=function(M){this._silentTranslationWarn=M},rA.silentFallbackWarn.get=function(){return this._silentFallbackWarn},rA.silentFallbackWarn.set=function(M){this._silentFallbackWarn=M},rA.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},rA.preserveDirectiveContent.set=function(M){this._preserveDirectiveContent=M},rA.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},rA.warnHtmlInMessage.set=function(M){var N=this,D=this._warnHtmlInMessage;if(this._warnHtmlInMessage=M,D!==M&&("warn"===M||"error"===M)){var t=this._getMessages();Object.keys(t).forEach((function(M){N._checkLocaleMessage(M,N._warnHtmlInMessage,t[M])}))}},rA.postTranslation.get=function(){return this._postTranslation},rA.postTranslation.set=function(M){this._postTranslation=M},rA.sync.get=function(){return this._sync},rA.sync.set=function(M){this._sync=M},nA.prototype._getMessages=function(){return this._vm.messages},nA.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},nA.prototype._getNumberFormats=function(){return this._vm.numberFormats},nA.prototype._warnDefault=function(M,N,D,t,i,e){if(!tz(D))return D;if(this._missing){var j=this._missing.apply(null,[M,N,t,i]);if($u(j))return j}else 0;if(this._formatFallbackMessages){var T=ez.apply(void 0,i);return this._render(N,e,T.params,N)}return N},nA.prototype._isFallbackRoot=function(M){return(this._fallbackRootWithEmptyString?!M:tz(M))&&!tz(this._root)&&this._fallbackRoot},nA.prototype._isSilentFallbackWarn=function(M){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(M):this._silentFallbackWarn},nA.prototype._isSilentFallback=function(M,N){return this._isSilentFallbackWarn(N)&&(this._isFallbackRoot()||M!==this.fallbackLocale)},nA.prototype._isSilentTranslationWarn=function(M){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(M):this._silentTranslationWarn},nA.prototype._interpolate=function(M,N,D,t,i,e,j){if(!N)return null;var T,g=this._path.getPathValue(N,D);if(Ju(g)||Dz(g))return g;if(tz(g)){if(!Dz(N))return null;if(T=N[D],!$u(T)&&!iz(T))return null}else{if(!$u(g)&&!iz(g))return null;T=g}return $u(T)&&(T.indexOf("@:")>=0||T.indexOf("@.")>=0)&&(T=this._link(M,N,T,t,"raw",e,j)),this._render(T,i,e,D)},nA.prototype._link=function(M,N,D,t,i,e,j){var T=D,g=T.match(uA);for(var s in g)if(g.hasOwnProperty(s)){var u=g[s],z=u.match(zA),A=z[0],L=z[1],I=u.replace(A,"").replace(AA,"");if(sz(j,I))return T;j.push(I);var n=this._interpolate(M,N,I,t,"raw"===i?"string":i,"raw"===i?void 0:e,j);if(this._isFallbackRoot(n)){if(!this._root)throw Error("unexpected error");var r=this._root.$i18n;n=r._translate(r._getMessages(),r.locale,r.fallbackLocale,I,t,i,e)}n=this._warnDefault(M,I,n,t,Ju(e)?e:[e],i),this._modifiers.hasOwnProperty(L)?n=this._modifiers[L](n):LA.hasOwnProperty(L)&&(n=LA[L](n)),j.pop(),T=n?T.replace(u,n):T}return T},nA.prototype._createMessageContext=function(M,N,D,t){var i=this,e=Ju(M)?M:[],j=qu(M)?M:{},T=function(M){return e[M]},g=function(M){return j[M]},s=this._getMessages(),u=this.locale;return{list:T,named:g,values:M,formatter:N,path:D,messages:s,locale:u,linked:function(M){return i._interpolate(u,s[u]||{},M,null,t,void 0,[M])}}},nA.prototype._render=function(M,N,D,t){if(iz(M))return M(this._createMessageContext(D,this._formatter||IA,t,N));var i=this._formatter.interpolate(M,D,t);return i||(i=IA.interpolate(M,D,t)),"string"!==N||$u(i)?i:i.join("")},nA.prototype._appendItemToChain=function(M,N,D){var t=!1;return sz(M,N)||(t=!0,N&&(t="!"!==N[N.length-1],N=N.replace(/!/g,""),M.push(N),D&&D[N]&&(t=D[N]))),t},nA.prototype._appendLocaleToChain=function(M,N,D){var t,i=N.split("-");do{var e=i.join("-");t=this._appendItemToChain(M,e,D),i.splice(-1,1)}while(i.length&&!0===t);return t},nA.prototype._appendBlockToChain=function(M,N,D){for(var t=!0,i=0;i<N.length&&Ku(t);i++){var e=N[i];$u(e)&&(t=this._appendLocaleToChain(M,e,D))}return t},nA.prototype._getLocaleChain=function(M,N){if(""===M)return[];this._localeChainCache||(this._localeChainCache={});var D=this._localeChainCache[M];if(!D){N||(N=this.fallbackLocale),D=[];var t,i=[M];while(Ju(i))i=this._appendBlockToChain(D,i,N);t=Ju(N)?N:qu(N)?N["default"]?N["default"]:null:N,i=$u(t)?[t]:t,i&&this._appendBlockToChain(D,i,null),this._localeChainCache[M]=D}return D},nA.prototype._translate=function(M,N,D,t,i,e,j){for(var T,g=this._getLocaleChain(N,D),s=0;s<g.length;s++){var u=g[s];if(T=this._interpolate(u,M[u],t,i,e,j,[t]),!tz(T))return T}return null},nA.prototype._t=function(M,N,D,t){var i,e=[],j=arguments.length-4;while(j-- >0)e[j]=arguments[j+4];if(!M)return"";var T=ez.apply(void 0,e);this._escapeParameterHtml&&(T.params=nz(T.params));var g=T.locale||N,s=this._translate(D,g,this.fallbackLocale,M,t,"string",T.params);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[M].concat(e))}return s=this._warnDefault(g,M,s,t,e,"string"),this._postTranslation&&null!==s&&void 0!==s&&(s=this._postTranslation(s,M)),s},nA.prototype.t=function(M){var N,D=[],t=arguments.length-1;while(t-- >0)D[t]=arguments[t+1];return(N=this)._t.apply(N,[M,this.locale,this._getMessages(),null].concat(D))},nA.prototype._i=function(M,N,D,t,i){var e=this._translate(D,N,this.fallbackLocale,M,t,"raw",i);if(this._isFallbackRoot(e)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(M,N,i)}return this._warnDefault(N,M,e,t,[i],"raw")},nA.prototype.i=function(M,N,D){return M?($u(N)||(N=this.locale),this._i(M,N,this._getMessages(),null,D)):""},nA.prototype._tc=function(M,N,D,t,i){var e,j=[],T=arguments.length-5;while(T-- >0)j[T]=arguments[T+5];if(!M)return"";void 0===i&&(i=1);var g={count:i,n:i},s=ez.apply(void 0,j);return s.params=Object.assign(g,s.params),j=null===s.locale?[s.params]:[s.locale,s.params],this.fetchChoice((e=this)._t.apply(e,[M,N,D,t].concat(j)),i)},nA.prototype.fetchChoice=function(M,N){if(!M||!$u(M))return null;var D=M.split("|");return N=this.getChoiceIndex(N,D.length),D[N]?D[N].trim():M},nA.prototype.tc=function(M,N){var D,t=[],i=arguments.length-2;while(i-- >0)t[i]=arguments[i+2];return(D=this)._tc.apply(D,[M,this.locale,this._getMessages(),null,N].concat(t))},nA.prototype._te=function(M,N,D){var t=[],i=arguments.length-3;while(i-- >0)t[i]=arguments[i+3];var e=ez.apply(void 0,t).locale||N;return this._exist(D[e],M)},nA.prototype.te=function(M,N){return this._te(M,this.locale,this._getMessages(),N)},nA.prototype.getLocaleMessage=function(M){return jz(this._vm.messages[M]||{})},nA.prototype.setLocaleMessage=function(M,N){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(M,this._warnHtmlInMessage,N),this._vm.$set(this._vm.messages,M,N)},nA.prototype.mergeLocaleMessage=function(M,N){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(M,this._warnHtmlInMessage,N),this._vm.$set(this._vm.messages,M,Az("undefined"!==typeof this._vm.messages[M]&&Object.keys(this._vm.messages[M]).length?Object.assign({},this._vm.messages[M]):{},N))},nA.prototype.getDateTimeFormat=function(M){return jz(this._vm.dateTimeFormats[M]||{})},nA.prototype.setDateTimeFormat=function(M,N){this._vm.$set(this._vm.dateTimeFormats,M,N),this._clearDateTimeFormat(M,N)},nA.prototype.mergeDateTimeFormat=function(M,N){this._vm.$set(this._vm.dateTimeFormats,M,Az(this._vm.dateTimeFormats[M]||{},N)),this._clearDateTimeFormat(M,N)},nA.prototype._clearDateTimeFormat=function(M,N){for(var D in N){var t=M+"__"+D;this._dateTimeFormatters.hasOwnProperty(t)&&delete this._dateTimeFormatters[t]}},nA.prototype._localizeDateTime=function(M,N,D,t,i,e){for(var j=N,T=t[j],g=this._getLocaleChain(N,D),s=0;s<g.length;s++){var u=g[s];if(T=t[u],j=u,!tz(T)&&!tz(T[i]))break}if(tz(T)||tz(T[i]))return null;var z,A=T[i];if(e)z=new Intl.DateTimeFormat(j,Object.assign({},A,e));else{var L=j+"__"+i;z=this._dateTimeFormatters[L],z||(z=this._dateTimeFormatters[L]=new Intl.DateTimeFormat(j,A))}return z.format(M)},nA.prototype._d=function(M,N,D,t){if(!D){var i=t?new Intl.DateTimeFormat(N,t):new Intl.DateTimeFormat(N);return i.format(M)}var e=this._localizeDateTime(M,N,this.fallbackLocale,this._getDateTimeFormats(),D,t);if(this._isFallbackRoot(e)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(M,D,N)}return e||""},nA.prototype.d=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.locale,i=null,e=null;return 1===N.length?($u(N[0])?i=N[0]:qu(N[0])&&(N[0].locale&&(t=N[0].locale),N[0].key&&(i=N[0].key)),e=Object.keys(N[0]).reduce((function(M,D){var t;return sz(Hu,D)?Object.assign({},M,(t={},t[D]=N[0][D],t)):M}),null)):2===N.length&&($u(N[0])&&(i=N[0]),$u(N[1])&&(t=N[1])),this._d(M,t,i,e)},nA.prototype.getNumberFormat=function(M){return jz(this._vm.numberFormats[M]||{})},nA.prototype.setNumberFormat=function(M,N){this._vm.$set(this._vm.numberFormats,M,N),this._clearNumberFormat(M,N)},nA.prototype.mergeNumberFormat=function(M,N){this._vm.$set(this._vm.numberFormats,M,Az(this._vm.numberFormats[M]||{},N)),this._clearNumberFormat(M,N)},nA.prototype._clearNumberFormat=function(M,N){for(var D in N){var t=M+"__"+D;this._numberFormatters.hasOwnProperty(t)&&delete this._numberFormatters[t]}},nA.prototype._getNumberFormatter=function(M,N,D,t,i,e){for(var j=N,T=t[j],g=this._getLocaleChain(N,D),s=0;s<g.length;s++){var u=g[s];if(T=t[u],j=u,!tz(T)&&!tz(T[i]))break}if(tz(T)||tz(T[i]))return null;var z,A=T[i];if(e)z=new Intl.NumberFormat(j,Object.assign({},A,e));else{var L=j+"__"+i;z=this._numberFormatters[L],z||(z=this._numberFormatters[L]=new Intl.NumberFormat(j,A))}return z},nA.prototype._n=function(M,N,D,t){if(!nA.availabilities.numberFormat)return"";if(!D){var i=t?new Intl.NumberFormat(N,t):new Intl.NumberFormat(N);return i.format(M)}var e=this._getNumberFormatter(M,N,this.fallbackLocale,this._getNumberFormats(),D,t),j=e&&e.format(M);if(this._isFallbackRoot(j)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(M,Object.assign({},{key:D,locale:N},t))}return j||""},nA.prototype.n=function(M){var N=[],D=arguments.length-1;while(D-- >0)N[D]=arguments[D+1];var t=this.locale,i=null,e=null;return 1===N.length?$u(N[0])?i=N[0]:qu(N[0])&&(N[0].locale&&(t=N[0].locale),N[0].key&&(i=N[0].key),e=Object.keys(N[0]).reduce((function(M,D){var t;return sz(_u,D)?Object.assign({},M,(t={},t[D]=N[0][D],t)):M}),null)):2===N.length&&($u(N[0])&&(i=N[0]),$u(N[1])&&(t=N[1])),this._n(M,t,i,e)},nA.prototype._ntp=function(M,N,D,t){if(!nA.availabilities.numberFormat)return[];if(!D){var i=t?new Intl.NumberFormat(N,t):new Intl.NumberFormat(N);return i.formatToParts(M)}var e=this._getNumberFormatter(M,N,this.fallbackLocale,this._getNumberFormats(),D,t),j=e&&e.formatToParts(M);if(this._isFallbackRoot(j)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(M,N,D,t)}return j||[]},Object.defineProperties(nA.prototype,rA),Object.defineProperty(nA,"availabilities",{get:function(){if(!gA){var M="undefined"!==typeof Intl;gA={dateTimeFormat:M&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:M&&"undefined"!==typeof Intl.NumberFormat}}return gA}}),nA.install=fz,nA.version="8.28.2";var wA=nA;function cA(){var M=D("49f8"),N={};return M.keys().forEach((function(D){var t=D.match(/([A-Za-z0-9-_]+)\./i);if(t&&t.length>1){var i=t[1];N[i]=M(D)}})),N}s["a"].use(wA);var yA=function(M){return new wA({dateTimeFormats:aA,numberFormats:oA,locale:M||"en",fallbackLocale:"en",messages:cA(),silentTranslationWarn:!0})},aA={en:{short:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"short",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},es:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},ca:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},eu:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},gl:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}},va:{short:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"short",year:"numeric",weekday:"short",hour:"numeric",minute:"numeric"}}},oA={en:{currency:{style:"currency",currency:"USD"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},es:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},ca:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},eu:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},gl:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}},va:{currency:{style:"currency",currency:"EUR"},decimal:{style:"decimal",maximumFractionDigits:2},noDecimal:{style:"decimal",maximumFractionDigits:0}}};function EA(M){var N=D("49f8"),t=!1;return N.keys().forEach((function(N){var D=N.match(/([A-Za-z0-9-_]+)\./i);D&&D.length>1&&D[1]===M&&(t=!0)})),t}s["a"].config.productionTip=!1,s["a"].config.ignoredElements=[/as-\w+/],Object({NODE_ENV:"production",VUE_APP_I18N_LOCALE:"es",VUE_APP_I18N_FALLBACK_LOCALE:"en",VUE_APP_AUTO_FLOOR_ZOOM_MAX:"16",VUE_APP_AUTO_FLOOR_ZOOM_MIN:"14",VUE_APP_API_VERSION:"v1",VUE_APP_API_URL:"https://aena-indoor-read-api.geographica.com/api/",VUE_APP_AENA_HOST:"https://www.aena.es",VUE_APP_PMR_MODE:"true",VUE_APP_DEBUG_MODE:"false",VUE_APP_OUTDOOR:"true",BASE_URL:"/"}).VUE_APP_VERSION&&console.info("SDK version: ".concat(Object({NODE_ENV:"production",VUE_APP_I18N_LOCALE:"es",VUE_APP_I18N_FALLBACK_LOCALE:"en",VUE_APP_AUTO_FLOOR_ZOOM_MAX:"16",VUE_APP_AUTO_FLOOR_ZOOM_MIN:"14",VUE_APP_API_VERSION:"v1",VUE_APP_API_URL:"https://aena-indoor-read-api.geographica.com/api/",VUE_APP_AENA_HOST:"https://www.aena.es",VUE_APP_PMR_MODE:"true",VUE_APP_DEBUG_MODE:"false",VUE_APP_OUTDOOR:"true",BASE_URL:"/"}).VUE_APP_VERSION));var OA=window.navigator.userAgent,xA=OA.indexOf("MSIE");if(xA>0||navigator.userAgent.match(/Trident.*rv:11\./)){var CA={functional:!0,render:function(M,N){var D=N.data,t=N.children;return M("span",D,t)}},SA={functional:!0,render:function(M,N){N.data;var D=N.children;return D}};s["a"].component("transition",SA),s["a"].component("transition-group",CA)}window.onerror=function(M,N,D,t,i){QA({err:M,source:N,info:"in line ".concat(D,":").concat(t)})},s["a"].config.errorHandler=function(M,N,D){QA({err:M,source:N,info:D})};var lA=D("b71f");lA.keys().forEach((function(M){var N=lA(M),D=M.split("/").pop().replace(/\.\w+$/,"");s["a"].component(D,N.default||N)}));var kA=function(){function M(N){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=D.airport,e=D.building,j=D.floor,T=D.explorerMode,g=D.category,s=D.poi,u=D.poiD,z=D.route,A=D.language,L=D.printMode,I=D.lat,n=D.lon,r=D.mupiMode,w=D.avaMode,c=D.subcategories,y=D.filtering,a=D.zonaubicacion,o=D.autoCalculateRoute;t(this,M),this.id=N,this.airport=i,this.building=e,this.floor=j,this.explorerMode=T,this.category=g,this.poi=s,this.poiD=u,this.route=z,this.language=A,this.printMode=L,this.lat=I,this.lon=n,this.mupiMode=r||w,this.avaMode=w,this.subcategories=c,this.filtering=y,this.zonaubicacion=a,this.autoCalculateRoute=void 0!==o&&!!o;try{this.checkErrors(),this.render()}catch(Vu){throw this.renderError(Vu),Vu}}return g(M,[{key:"setAirport",value:function(M){this.airport=M,this.render()}},{key:"setBuilding",value:function(M){this.building=M,this.render()}},{key:"setFloor",value:function(M){this.floor=M,this.render()}},{key:"setPOI",value:function(M){this.poi=M,this.render()}},{key:"setPoiCategory",value:function(M,N){this.floor=M,this.category=N,this.render()}},{key:"setLanguage",value:function(M){this.language=M,this.render()}},{key:"setRoute",value:function(M){this.route=M,this.render()}},{key:"setSubcategories",value:function(M){this.subcategories=M,this.render()}},{key:"setFiltering",value:function(M){this.filtering=M,this.render()}},{key:"checkErrors",value:function(){if(!dA(this.id))throw Error("Id is required");if(!dA(this.airport))throw Error("Airport is required");if(this.printMode&&!this.explorerMode)throw Error("Explorer mode are required with print mode is setted");if(!this.explorerMode&&!(dA(this.building)||dA(this.floor)||dA(this.route)||dA(this.poi)))throw Error("Building or floor or poi ID are required when mode is in Context Mode");if(dA(this.building)&&!dA(this.floor))throw Error("Floor is required with building setted");if(this.avaMode){var M=dA(this.subcategories)||dA(this.category);if(dA(this.subcategories)&&!Array.isArray(this.subcategories))throw Error("Subcategories must be an array");if(M&&!dA(this.poi))throw Error("Poi ID is required with AVA mode with subcategories or category")}else{if(dA(this.category)&&!dA(this.building)&&!dA(this.floor))throw Error("Building and floor are required with category setted");if(dA(this.subcategories)&&!dA(this.building)&&!dA(this.floor)){if(!this.subcategories.length)throw Error("Subcategories are required");throw Error("Building and floor are required with subcategories setted")}if(dA(this.category)&&dA(this.subcategories))throw Error("Category and subcategories cannot be used together")}if(dA(this.route)&&!this.route.steps.length)throw Error("Steps are required");if(dA(this.mupiMode)&&!dA(this.poi))throw Error("Poi ID is required with mupi mode");if(dA(this.avaMode)&&!dA(this.poi))throw Error("Poi ID is required with ava mode")}},{key:"render",value:function(){this.finalize();var M=this.language&&EA(this.language)?this.language:"en";this.instance=new s["a"]({store:Object(I["d"])(),i18n:yA(M),data:{id:this.id,airport:this.airport,building:this.building,floor:this.floor,explorerMode:this.explorerMode,category:this.category,poi:this.poi,poiD:this.poiD,route:this.route,printMode:this.printMode,language:M,lat:this.lat,lon:this.lon,mupiMode:this.mupiMode,avaMode:this.avaMode,subcategories:this.subcategories,filtering:this.filtering,zonaubicacion:this.zonaubicacion,autoCalculateRoute:this.autoCalculateRoute},render:function(M){return M(Xu)}}).$mount(this.id)}},{key:"finalize",value:function(){this.instance&&(this.instance.$el.innerHTML="",this.instance.$destroy())}},{key:"getSelectedPoiId",value:function(){if(!this.instance||!this.instance.$store)return null;var M=this.instance.$store.getters.GET_POI;return M?M.properties.id:null}},{key:"getSelectedPoi",value:function(){return this.instance&&this.instance.$store?this.instance.$store.getters.GET_POI:null}},{key:"getOriginPoiId",value:function(){return this.instance&&this.instance.$store?this.instance.$store.getters.GET_POI_ID||this.instance.$store.getters.GET_POID_ID:null}},{key:"onPoiSelected",value:function(M){this.instance&&this.instance.$store&&"function"===typeof M&&this.instance.$store.watch((function(M){return M.poi}),(function(N){if(N)try{var D={id:N.properties.id,name:N.properties.attrs&&N.properties.attrs.pat_nombre,building:N.properties.building,floor:N.properties.level,subcategories:N.properties.subcategories,coordinates:N.geometry.coordinates,poi:N};M(D)}catch(Vu){console.error("Error in POI selection callback:",Vu)}}))}},{key:"onPoiClicked",value:function(M){this.instance&&(this.instance.$root.$data.onPoiClickCallback=M)}},{key:"renderError",value:function(M){var N=document.getElementById(this.id.split("#")[1]),D=document.createElement("div");D.style.width="100%",D.style.height="100%",D.style.display="flex",D.style.justifyContent="center",D.style.alignItems="center",D.style.backgroundColor="#9c9b9b",D.style.color="#fff",D.innerText=M.toString(),N.append(D)}}])}();function QA(M){var N=M.err,D=M.source,t=M.info;console.error("Error: ",N),console.error("Source: ",D),console.error("Extra info: ",t)}function dA(M){return void 0!==M&&null!==M}window.AMap=kA},"576c":function(M,N,D){(function(M,N){N(D("c1df"))})(0,(function(M){"use strict";
108
108
  //! moment.js locale configuration
109
109
  var N=M.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(M){var N=M%10,D=1===~~(M%100/10)?"th":1===N?"st":2===N?"nd":3===N?"rd":"th";return M+D},week:{dow:1,doy:4}});return N}))},"57b6":function(M,N){M.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTQiIGhlaWdodD0iMTU0IiB2aWV3Qm94PSIwIDAgMTU0IDE1NCIgZmlsbD0iIzFBMjczMiI+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01NCA5My45YzMuMyAwIDYgMi43IDYgNlYxMjhoMzRWOTkuOWMwLTMuMyAyLjctNiA2LTZoMjh2LTM0aC0yOGMtMy4zIDAtNi0yLjctNi02VjI2SDYwdjI4YzAgMy4zLTIuNyA2LTYgNkgyNnYzNGwyOC0uMXpNOTQgMTI4djMtM3ptMCA2SDYwYy0zLjMgMC02LTIuNy02LTZWOTkuOUgyNS45Yy0zLjMgMC02LTIuNy02LTZ2LTM0YzAtMy4zIDIuNy02IDYtNmgyOHYtMjhjMC0zLjMgMi43LTYgNi02SDk0YzMuMyAwIDYgMi43IDYgNnYyOGgyOGMzLjMgMCA2IDIuNyA2IDZ2MzRjMCAzLjMtMi43IDYtNiA2aC0yOFYxMjhjMCAzLjMtMi43IDYtNiA2eiIvPgo8L3N2Zz4K"},"57e7":function(M,N,D){"use strict";var t=D("5ca1"),i=D("c366")(!1),e=[].indexOf,j=!!e&&1/[1].indexOf(1,-0)<0;t(t.P+t.F*(j||!D("2f21")(e)),"Array",{indexOf:function(M){return j?e.apply(this,arguments)||0:i(this,M,arguments[1])}})},"584a":function(M,N){var D=M.exports={version:"2.6.12"};"number"==typeof __e&&(__e=D)},"58b2":function(M,N,D){var t=D("5ca1");t(t.S+t.F*!D("9e1e"),"Object",{defineProperties:D("1495")})},5938:function(M,N){M.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIiBmaWxsPSIjMUEyNzMyIiA+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjA3OCAyMC44NDRsLjMxMi4zMTJhLjM2NC4zNjQgMCAwIDEgMCAuNTA2bC00LjEzIDQuMTNjLS4xNzMuMTczLS40MzkuMTkyLS42MDUuMDU4TDMgMjQuMTk1YS4zNjUuMzY1IDAgMCAxIDAtLjUwN2wuMzEyLS4zMTFhLjM2NC4zNjQgMCAwIDEgLjUwNiAwbDEuMTEgMS4xMSAzLjY0My0zLjY0M2EuMzY1LjM2NSAwIDAgMSAuNTA3IDB6bTE3LjMxOCAyLjYxYS4zNS4zNSAwIDAgMSAuMzUuMzUxdi40NDhjMCAuMTk1LS4xNTUuMzUtLjM3LjM1SDEyLjI5M2EuMzUuMzUgMCAwIDEtLjM1LS4zNXYtLjQ0OGEuMzUuMzUgMCAwIDEgLjM1LS4zNWgxNC4xMDR6TTkuMDc4IDEyLjQxbC4zMTIuMzEyYS4zNjUuMzY1IDAgMCAxIDAgLjUwNmwtNC4xMyA0LjEzYS40Ny40NyAwIDAgMS0uNjgyIDBMMi45OCAxNS43NmEuMzY1LjM2NSAwIDAgMSAwLS41MDdsLjMxMi0uMzEyYS4zNjUuMzY1IDAgMCAxIC41MDcgMGwxLjExIDEuMTEgMy42NjItMy42NDJhLjM2NS4zNjUgMCAwIDEgLjUwNyAwem0xNy4zMTggMi42MWEuMzUuMzUgMCAwIDEgLjM1LjM1MXYuNDQ4YzAgLjE5NS0uMTU1LjM1LS4zNy4zNUgxMi4yOTNhLjM1LjM1IDAgMCAxLS4zNS0uMzV2LS40NDhhLjM1LjM1IDAgMCAxIC4zNS0uMzVoMTQuMTA0ek05LjA3OCAzLjk3NGwuMzEyLjMxMmEuMzY1LjM2NSAwIDAgMSAwIC41MDZsLTQuMTMgNC4xM2EuNDk0LjQ5NCAwIDAgMS0uNzAyIDBMMi45NjEgNy4zMjVhLjM2NS4zNjUgMCAwIDEgMC0uNTA3bC4zMzEtLjMxMmEuMzY1LjM2NSAwIDAgMSAuNTA3IDBsMS4xMSAxLjExIDMuNjYyLTMuNjQyYS4zNjUuMzY1IDAgMCAxIC41MDcgMHptMTcuMjk5IDIuNjFjLjE5NCAwIC4zNS4xNTYuMzUuMzUxdi40NDhjLjAyLjE5NS0uMTM2LjM1LS4zMy4zNUgxMi4yOTFhLjM1LjM1IDAgMCAxLS4zNS0uMzV2LS40NDhjMC0uMTk1LjE1NS0uMzUuMzUtLjM1aDE0LjA4NXoiLz4KPC9zdmc+Cg=="},"595b":function(M,N,D){!function(M,D){D(N)}(0,(function(M){"use strict";function N(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.bbox,i=D.id;if(void 0===M)throw new Error("geometry is required");if(N&&N.constructor!==Object)throw new Error("properties must be an Object");t&&C(t),i&&S(i);var e={type:"Feature"};return i&&(e.id=i),t&&(e.bbox=t),e.properties=N||{},e.geometry=M,e}function D(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var i,j=D.bbox;if(!M)throw new Error("type is required");if(!N)throw new Error("coordinates is required");if(!Array.isArray(N))throw new Error("coordinates must be an Array");switch(j&&C(j),M){case"Point":i=t(N).geometry;break;case"LineString":i=T(N).geometry;break;case"Polygon":i=e(N).geometry;break;case"MultiPoint":i=z(N).geometry;break;case"MultiLineString":i=u(N).geometry;break;case"MultiPolygon":i=A(N).geometry;break;default:throw new Error(M+" is invalid")}return j&&(i.bbox=j),i}function t(M,D,t){if(!M)throw new Error("coordinates is required");if(!Array.isArray(M))throw new Error("coordinates must be an Array");if(M.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!O(M[0])||!O(M[1]))throw new Error("coordinates must contain numbers");return N({type:"Point",coordinates:M},D,t)}function i(M,N,D){if(!M)throw new Error("coordinates is required");if(!Array.isArray(M))throw new Error("coordinates must be an Array");return s(M.map((function(M){return t(M,N)})),D)}function e(M,D,t){if(!M)throw new Error("coordinates is required");for(var i=0;i<M.length;i++){var e=M[i];if(e.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var j=0;j<e[e.length-1].length;j++){if(0===i&&0===j&&!O(e[0][0])||!O(e[0][1]))throw new Error("coordinates must contain numbers");if(e[e.length-1][j]!==e[0][j])throw new Error("First and last Position are not equivalent.")}}return N({type:"Polygon",coordinates:M},D,t)}function j(M,N,D){if(!M)throw new Error("coordinates is required");if(!Array.isArray(M))throw new Error("coordinates must be an Array");return s(M.map((function(M){return e(M,N)})),D)}function T(M,D,t){if(!M)throw new Error("coordinates is required");if(M.length<2)throw new Error("coordinates must be an array of two or more positions");if(!O(M[0][1])||!O(M[0][1]))throw new Error("coordinates must contain numbers");return N({type:"LineString",coordinates:M},D,t)}function g(M,N,D){if(!M)throw new Error("coordinates is required");if(!Array.isArray(M))throw new Error("coordinates must be an Array");return s(M.map((function(M){return T(M,N)})),D)}function s(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.bbox,t=N.id;if(!M)throw new Error("No features passed");if(!Array.isArray(M))throw new Error("features must be an Array");D&&C(D),t&&S(t);var i={type:"FeatureCollection"};return t&&(i.id=t),D&&(i.bbox=D),i.features=M,i}function u(M,D,t){if(!M)throw new Error("coordinates is required");return N({type:"MultiLineString",coordinates:M},D,t)}function z(M,D,t){if(!M)throw new Error("coordinates is required");return N({type:"MultiPoint",coordinates:M},D,t)}function A(M,D,t){if(!M)throw new Error("coordinates is required");return N({type:"MultiPolygon",coordinates:M},D,t)}function L(M,D,t){if(!M)throw new Error("geometries is required");if(!Array.isArray(M))throw new Error("geometries must be an Array");return N({type:"GeometryCollection",geometries:M},D,t)}function I(M,N){if(void 0===M||null===M||isNaN(M))throw new Error("num is required");if(N&&!(N>=0))throw new Error("precision must be a positive number");var D=Math.pow(10,N||0);return Math.round(M*D)/D}function n(M,N){if(void 0===M||null===M)throw new Error("radians is required");if(N&&"string"!=typeof N)throw new Error("units must be a string");var D=fe[N||"kilometers"];if(!D)throw new Error(N+" units is invalid");return M*D}function r(M,N){if(void 0===M||null===M)throw new Error("distance is required");if(N&&"string"!=typeof N)throw new Error("units must be a string");var D=fe[N||"kilometers"];if(!D)throw new Error(N+" units is invalid");return M/D}function w(M,N){return y(r(M,N))}function c(M){if(null===M||void 0===M)throw new Error("bearing is required");var N=M%360;return N<0&&(N+=360),N}function y(M){if(null===M||void 0===M)throw new Error("radians is required");return M%(2*Math.PI)*180/Math.PI}function a(M){if(null===M||void 0===M)throw new Error("degrees is required");return M%360*Math.PI/180}function o(M,N,D){if(null===M||void 0===M)throw new Error("length is required");if(!(M>=0))throw new Error("length must be a positive number");return n(r(M,N),D||"kilometers")}function E(M,N,D){if(null===M||void 0===M)throw new Error("area is required");if(!(M>=0))throw new Error("area must be a positive number");var t=ve[N||"meters"];if(!t)throw new Error("invalid original units");var i=ve[D||"kilometers"];if(!i)throw new Error("invalid final units");return M/t*i}function O(M){return!isNaN(M)&&null!==M&&!Array.isArray(M)}function x(M){return!!M&&M.constructor===Object}function C(M){if(!M)throw new Error("bbox is required");if(!Array.isArray(M))throw new Error("bbox must be an Array");if(4!==M.length&&6!==M.length)throw new Error("bbox must be an Array of 4 or 6 numbers");M.forEach((function(M){if(!O(M))throw new Error("bbox must only contain numbers")}))}function S(M){if(!M)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof M))throw new Error("id must be a number or a string")}function l(M,N,D){if(null!==M)for(var t,i,e,j,T,g,s,u,z=0,A=0,L=M.type,I="FeatureCollection"===L,n="Feature"===L,r=I?M.features.length:1,w=0;w<r;w++){T=(u=!!(s=I?M.features[w].geometry:n?M.geometry:M)&&"GeometryCollection"===s.type)?s.geometries.length:1;for(var c=0;c<T;c++){var y=0,a=0;if(null!==(j=u?s.geometries[c]:s)){g=j.coordinates;var o=j.type;switch(z=!D||"Polygon"!==o&&"MultiPolygon"!==o?0:1,o){case null:break;case"Point":N(g,A,w,y,a),A++,y++;break;case"LineString":case"MultiPoint":for(t=0;t<g.length;t++)N(g[t],A,w,y,a),A++,"MultiPoint"===o&&y++;"LineString"===o&&y++;break;case"Polygon":case"MultiLineString":for(t=0;t<g.length;t++){for(i=0;i<g[t].length-z;i++)N(g[t][i],A,w,y,a),A++;"MultiLineString"===o&&y++,"Polygon"===o&&a++}"Polygon"===o&&y++;break;case"MultiPolygon":for(t=0;t<g.length;t++){for("MultiPolygon"===o&&(a=0),i=0;i<g[t].length;i++){for(e=0;e<g[t][i].length-z;e++)N(g[t][i][e],A,w,y,a),A++;a++}y++}break;case"GeometryCollection":for(t=0;t<j.geometries.length;t++)l(j.geometries[t],N,D);break;default:throw new Error("Unknown Geometry Type")}}}}}function k(M,N,D,t){var i=D;return l(M,(function(M,t,e,j,T){i=0===t&&void 0===D?M:N(i,M,t,e,j,T)}),t),i}function Q(M,N){var D;switch(M.type){case"FeatureCollection":for(D=0;D<M.features.length;D++)N(M.features[D].properties,D);break;case"Feature":N(M.properties,0)}}function d(M,N,D){var t=D;return Q(M,(function(M,i){t=0===i&&void 0===D?M:N(t,M,i)})),t}function Y(M,N){if("Feature"===M.type)N(M,0);else if("FeatureCollection"===M.type)for(var D=0;D<M.features.length;D++)N(M.features[D],D)}function p(M,N,D){var t=D;return Y(M,(function(M,i){t=0===i&&void 0===D?M:N(t,M,i)})),t}function U(M){var N=[];return l(M,(function(M){N.push(M)})),N}function h(M,N){var D,t,i,e,j,T,g,s,u,z,A=0,L="FeatureCollection"===M.type,I="Feature"===M.type,n=L?M.features.length:1;for(D=0;D<n;D++){for(T=L?M.features[D].geometry:I?M.geometry:M,s=L?M.features[D].properties:I?M.properties:{},u=L?M.features[D].bbox:I?M.bbox:void 0,z=L?M.features[D].id:I?M.id:void 0,j=(g=!!T&&"GeometryCollection"===T.type)?T.geometries.length:1,i=0;i<j;i++)if(null!==(e=g?T.geometries[i]:T))switch(e.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":N(e,A,s,u,z);break;case"GeometryCollection":for(t=0;t<e.geometries.length;t++)N(e.geometries[t],A,s,u,z);break;default:throw new Error("Unknown Geometry Type")}else N(null,A,s,u,z);A++}}function f(M,N,D){var t=D;return h(M,(function(M,i,e,j,T){t=0===i&&void 0===D?M:N(t,M,i,e,j,T)})),t}function m(M,D){h(M,(function(M,t,i,e,j){var T,g=null===M?null:M.type;switch(g){case null:case"Point":case"LineString":case"Polygon":return void D(N(M,i,{bbox:e,id:j}),t,0)}switch(g){case"MultiPoint":T="Point";break;case"MultiLineString":T="LineString";break;case"MultiPolygon":T="Polygon"}M.coordinates.forEach((function(M,e){D(N({type:T,coordinates:M},i),t,e)}))}))}function v(M,N,D){var t=D;return m(M,(function(M,i,e){t=0===i&&0===e&&void 0===D?M:N(t,M,i,e)})),t}function B(M,N){m(M,(function(M,D,t){var i=0;if(M.geometry){var e=M.geometry.type;"Point"!==e&&"MultiPoint"!==e&&k(M,(function(e,j,g,s,u,z){var A=T([e,j],M.properties);return N(A,D,t,z,i),i++,j}))}}))}function b(M,N,D){var t=D,i=!1;return B(M,(function(M,e,j,T,g){t=!1===i&&void 0===D?M:N(t,M,e,j,T,g),i=!0})),t}function P(M,N){if(!M)throw new Error("geojson is required");m(M,(function(M,D,t){if(null!==M.geometry){var i=M.geometry.type,e=M.geometry.coordinates;switch(i){case"LineString":N(M,D,t,0,0);break;case"Polygon":for(var j=0;j<e.length;j++)N(T(e[j],M.properties),D,t,j)}}}))}function Z(M,N,D){var t=D;return P(M,(function(M,i,e,j){t=0===i&&void 0===D?M:N(t,M,i,e,j)})),t}function G(M){var N=[1/0,1/0,-1/0,-1/0];return l(M,(function(M){N[0]>M[0]&&(N[0]=M[0]),N[1]>M[1]&&(N[1]=M[1]),N[2]<M[0]&&(N[2]=M[0]),N[3]<M[1]&&(N[3]=M[1])})),N}function W(M){if(!M)throw new Error("obj is required");var N=R(M);if(N.length>1&&O(N[0])&&O(N[1]))return N;throw new Error("Coordinate is not a valid Point")}function R(M){if(!M)throw new Error("obj is required");var N;if(M.length?N=M:M.coordinates?N=M.coordinates:M.geometry&&M.geometry.coordinates&&(N=M.geometry.coordinates),N)return X(N),N;throw new Error("No valid coordinates")}function X(M){if(M.length>1&&O(M[0])&&O(M[1]))return!0;if(Array.isArray(M[0])&&M[0].length)return X(M[0]);throw new Error("coordinates must only contain numbers")}function _(M,N,D){if(!N||!D)throw new Error("type and name required");if(!M||M.type!==N)throw new Error("Invalid input to "+D+": must be a "+N+", given "+M.type)}function H(M,N,D){if(!M)throw new Error("No feature passed");if(!D)throw new Error(".featureOf() requires a name");if(!M||"Feature"!==M.type||!M.geometry)throw new Error("Invalid input to "+D+", Feature with geometry required");if(!M.geometry||M.geometry.type!==N)throw new Error("Invalid input to "+D+": must be a "+N+", given "+M.geometry.type)}function F(M,N,D){if(!M)throw new Error("No featureCollection passed");if(!D)throw new Error(".collectionOf() requires a name");if(!M||"FeatureCollection"!==M.type)throw new Error("Invalid input to "+D+", FeatureCollection required");for(var t=0;t<M.features.length;t++){var i=M.features[t];if(!i||"Feature"!==i.type||!i.geometry)throw new Error("Invalid input to "+D+", Feature with geometry required");if(!i.geometry||i.geometry.type!==N)throw new Error("Invalid input to "+D+": must be a "+N+", given "+i.geometry.type)}}function V(M){if(!M)throw new Error("geojson is required");if(void 0!==M.geometry)return M.geometry;if(M.coordinates||M.geometries)return M;throw new Error("geojson must be a valid Feature or Geometry Object")}function J(){throw new Error("invariant.getGeomType has been deprecated in v5.0 in favor of invariant.getType")}function q(M,N){if(!M)throw new Error((N||"geojson")+" is required");if(M.geometry&&M.geometry.type)return M.geometry.type;if(M.type)return M.type;throw new Error((N||"geojson")+" is invalid")}function K(M,N,D){D=D||{};for(var t=Object.keys(Ze),i=0;i<t.length;i++){var e=t[i],j=D[e];j=void 0!==j&&null!==j?j:Ze[e],Ge[e]=j}Ge.verbose&&console.log("MarchingSquaresJS-isoContours: computing isocontour for "+N);var T=function(M){var N=[],D=0;return M.rows,M.cols,M.cells.forEach((function(t,i){t.forEach((function(t,e){if(void 0!==t&&!function(M){return 5===M.cval||10===M.cval}(t)&&!MM(t)){var j=function(M,N,D){var t,i,e,j=M.length,T=[],g=[0,0,1,1,0,0,0,0,-1,0,1,1,-1,0,-1,0],s=[0,-1,0,0,1,1,1,1,0,-1,0,0,0,-1,0,0],u=["none","bottom","right","right","top","top","top","top","left","bottom","right","right","left","bottom","left","none"],z=(M[N][D],M[N][D]),A=z.cval,L=DM(z,e=["none","left","bottom","left","right","none","bottom","left","top","top","none","top","right","right","bottom","none"][A]);T.push([D+L[0],N+L[1]]),L=DM(z,e=u[A]),T.push([D+L[0],N+L[1]]),NM(z);for(var I=D+g[A],n=N+s[A],r=A;I>=0&&n>=0&&n<j&&(I!=D||n!=N)&&void 0!==(z=M[n][I]);){if(0===(A=z.cval)||15===A)return{path:T,info:"mergeable"};e=u[A],t=g[A],i=s[A],5!==A&&10!==A||(5===A?z.flipped?-1===s[r]?(e="left",t=-1,i=0):(e="right",t=1,i=0):-1===g[r]&&(e="bottom",t=0,i=-1):10===A&&(z.flipped?-1===g[r]?(e="top",t=0,i=1):(e="bottom",t=0,i=-1):1===s[r]&&(e="left",t=-1,i=0))),L=DM(z,e),T.push([I+L[0],n+L[1]]),NM(z),I+=t,n+=i,r=A}return{path:T,info:"closed"}}(M.cells,i,e),T=!1;if("mergeable"===j.info)for(var g=j.path[j.path.length-1][0],s=j.path[j.path.length-1][1],u=D-1;u>=0;u--)if(Math.abs(N[u][0][0]-g)<=1e-7&&Math.abs(N[u][0][1]-s)<=1e-7){for(var z=j.path.length-2;z>=0;--z)N[u].unshift(j.path[z]);T=!0;break}T||(N[D++]=j.path)}}))})),N}(function(M,N){for(var D=M.length-1,t=M[0].length-1,i={rows:D,cols:t,cells:[]},e=0;e<D;++e){i.cells[e]=[];for(var j=0;j<t;++j){var T=0,g=M[e+1][j],s=M[e+1][j+1],u=M[e][j+1],z=M[e][j];if(!(isNaN(g)||isNaN(s)||isNaN(u)||isNaN(z))){T|=g>=N?8:0,T|=s>=N?4:0,T|=u>=N?2:0;var A,L,I,n,r=!1;if(5===(T|=z>=N?1:0)||10===T){var w=(g+s+u+z)/4;5===T&&w<N?(T=10,r=!0):10===T&&w<N&&(T=5,r=!0)}if(0!==T&&15!==T)A=L=I=n=.5,1===T?(I=1-$(N,g,z),L=1-$(N,u,z)):2===T?(L=$(N,z,u),n=1-$(N,s,u)):3===T?(I=1-$(N,g,z),n=1-$(N,s,u)):4===T?(A=$(N,g,s),n=$(N,u,s)):5===T?(A=$(N,g,s),n=$(N,u,s),L=1-$(N,u,z),I=1-$(N,g,z)):6===T?(L=$(N,z,u),A=$(N,g,s)):7===T?(I=1-$(N,g,z),A=$(N,g,s)):8===T?(I=$(N,z,g),A=1-$(N,s,g)):9===T?(L=1-$(N,u,z),A=1-$(N,s,g)):10===T?(A=1-$(N,s,g),n=1-$(N,s,u),L=$(N,z,u),I=$(N,z,g)):11===T?(A=1-$(N,s,g),n=1-$(N,s,u)):12===T?(I=$(N,z,g),n=$(N,u,s)):13===T?(L=1-$(N,u,z),n=$(N,u,s)):14===T?(I=$(N,z,g),L=$(N,z,u)):console.log("MarchingSquaresJS-isoContours: Illegal cval detected: "+T),i.cells[e][j]={cval:T,flipped:r,top:A,right:n,bottom:L,left:I}}}}return i}(M,N));return"function"==typeof Ge.successCallback&&Ge.successCallback(T),T}function $(M,N,D){return(M-N)/(D-N)}function MM(M){return 0===M.cval||15===M.cval}function NM(M){MM(M)||5===M.cval||10===M.cval||(M.cval=15)}function DM(M,N){return"top"===N?[M.top,1]:"bottom"===N?[M.bottom,0]:"right"===N?[1,M.right]:"left"===N?[0,M.left]:void 0}function tM(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.zProperty||"elevation",t=N.flip,i=N.flags;F(M,"Point","input must contain Points");for(var e=function(M,N){var D={};return Y(M,(function(M){var N=R(M)[1];D[N]||(D[N]=[]),D[N].push(M)})),Object.keys(D).map((function(M){var N=D[M],t=N.sort((function(M,N){return R(M)[0]-R(N)[0]}));return t})).sort((function(M,D){return N?R(M[0])[1]-R(D[0])[1]:R(D[0])[1]-R(M[0])[1]}))}(M,t),j=[],T=0;T<e.length;T++){for(var g=e[T],s=[],u=0;u<g.length;u++){var z=g[u];z.properties[D]?s.push(z.properties[D]):s.push(0),!0===i&&(z.properties.matrixPosition=[T,u])}j.push(s)}return j}function iM(M,N,D,t,i){for(D=D||0,t=t||M.length-1,i=i||function(M,N){return M<N?-1:M>N?1:0};t>D;){if(t-D>600){var e=t-D+1,j=N-D+1,T=Math.log(e),g=.5*Math.exp(2*T/3),s=.5*Math.sqrt(T*g*(e-g)/e)*(j-e/2<0?-1:1);iM(M,N,Math.max(D,Math.floor(N-j*g/e+s)),Math.min(t,Math.floor(N+(e-j)*g/e+s)),i)}var u=M[N],z=D,A=t;for(eM(M,D,N),i(M[t],u)>0&&eM(M,D,t);z<A;){for(eM(M,z,A),z++,A--;i(M[z],u)<0;)z++;for(;i(M[A],u)>0;)A--}0===i(M[D],u)?eM(M,D,A):eM(M,++A,t),A<=N&&(D=A+1),N<=A&&(t=A-1)}}function eM(M,N,D){var t=M[N];M[N]=M[D],M[D]=t}function jM(M,N){if(!(this instanceof jM))return new jM(M,N);this._maxEntries=Math.max(4,M||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),N&&this._initFormat(N),this.clear()}function TM(M,N){gM(M,0,M.children.length,N,M)}function gM(M,N,D,t,i){i||(i=rM(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var e,j=N;j<D;j++)e=M.children[j],sM(i,M.leaf?t(e):e);return i}function sM(M,N){return M.minX=Math.min(M.minX,N.minX),M.minY=Math.min(M.minY,N.minY),M.maxX=Math.max(M.maxX,N.maxX),M.maxY=Math.max(M.maxY,N.maxY),M}function uM(M,N){return M.minX-N.minX}function zM(M,N){return M.minY-N.minY}function AM(M){return(M.maxX-M.minX)*(M.maxY-M.minY)}function LM(M){return M.maxX-M.minX+(M.maxY-M.minY)}function IM(M,N){return M.minX<=N.minX&&M.minY<=N.minY&&N.maxX<=M.maxX&&N.maxY<=M.maxY}function nM(M,N){return N.minX<=M.maxX&&N.minY<=M.maxY&&N.maxX>=M.minX&&N.maxY>=M.minY}function rM(M){return{children:M,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function wM(M,N,D,t,i){for(var e,j=[N,D];j.length;)(D=j.pop())-(N=j.pop())<=t||(e=N+Math.ceil((D-N)/t/2)*t,We(M,e,N,D,i),j.push(N,e,e,D))}function cM(M,N){return N={exports:{}},M(N,N.exports),N.exports}function yM(M,N){if(!(this instanceof yM))return new yM(M,N);if(this.data=M||[],this.length=this.data.length,this.compare=N||function(M,N){return M<N?-1:M>N?1:0},this.length>0)for(var D=(this.length>>1)-1;D>=0;D--)this._down(D)}function aM(M,N,D){N=Math.max(0,void 0===N?2:N),D=D||0;for(var t,i=function(M){for(var N=M[0],D=M[0],t=M[0],i=M[0],e=0;e<M.length;e++){var j=M[e];j[0]<N[0]&&(N=j),j[0]>t[0]&&(t=j),j[1]<D[1]&&(D=j),j[1]>i[1]&&(i=j)}var T=[N,D,t,i],g=T.slice();for(e=0;e<M.length;e++)Dj(M[e],T)||g.push(M[e]);var s=Ke(g),u=[];for(e=0;e<s.length;e++)u.push(g[s[e]]);return u}(M),e=Re(16,["[0]","[1]","[0]","[1]"]).load(M),j=[],T=0;T<i.length;T++){var g=i[T];e.remove(g),t=CM(g,t),j.push(t)}var s=Re(16);for(T=0;T<j.length;T++)s.insert(xM(j[T]));for(var u=N*N,z=D*D;j.length;){var A=j.shift(),L=A.p,I=A.next.p,n=SM(L,I);if(!(n<z)){var r=n/u;(g=function(M,N,D,t,i,e,j){for(var T=new Mj(null,oM),g=M.data;g;){for(var s=0;s<g.children.length;s++){var u=g.children[s],z=g.leaf?lM(u,D,t):function(M,N,D){if(EM(M,D)||EM(N,D))return 0;var t=kM(M[0],M[1],N[0],N[1],D.minX,D.minY,D.maxX,D.minY);if(0===t)return 0;var i=kM(M[0],M[1],N[0],N[1],D.minX,D.minY,D.minX,D.maxY);if(0===i)return 0;var e=kM(M[0],M[1],N[0],N[1],D.maxX,D.minY,D.maxX,D.maxY);if(0===e)return 0;var j=kM(M[0],M[1],N[0],N[1],D.minX,D.maxY,D.maxX,D.maxY);return 0===j?0:Math.min(t,i,e,j)}(D,t,u);z>e||T.push({node:u,dist:z})}for(;T.length&&!T.peek().node.children;){var A=T.pop(),L=A.node,I=lM(L,N,D),n=lM(L,t,i);if(A.dist<I&&A.dist<n&&OM(D,L,j)&&OM(t,L,j))return L}(g=T.pop())&&(g=g.node)}return null}(e,A.prev.p,L,I,A.next.next.p,r,s))&&Math.min(SM(g,L),SM(g,I))<=r&&(j.push(A),j.push(CM(g,A)),e.remove(g),s.remove(A),s.insert(xM(A)),s.insert(xM(A.next)))}}A=t;var w=[];do{w.push(A.p),A=A.next}while(A!==t);return w.push(A.p),w}function oM(M,N){return M.dist-N.dist}function EM(M,N){return M[0]>=N.minX&&M[0]<=N.maxX&&M[1]>=N.minY&&M[1]<=N.maxY}function OM(M,N,D){for(var t=Math.min(M[0],N[0]),i=Math.min(M[1],N[1]),e=Math.max(M[0],N[0]),j=Math.max(M[1],N[1]),T=D.search({minX:t,minY:i,maxX:e,maxY:j}),g=0;g<T.length;g++)if(function(M,N,D,t){return M!==t&&N!==D&&tj(M,N,D)>0!=tj(M,N,t)>0&&tj(D,t,M)>0!=tj(D,t,N)>0}(T[g].p,T[g].next.p,M,N))return!1;return!0}function xM(M){var N=M.p,D=M.next.p;return M.minX=Math.min(N[0],D[0]),M.minY=Math.min(N[1],D[1]),M.maxX=Math.max(N[0],D[0]),M.maxY=Math.max(N[1],D[1]),M}function CM(M,N){var D={p:M,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return N?(D.next=N.next,D.prev=N,N.next.prev=D,N.next=D):(D.prev=D,D.next=D),D}function SM(M,N){var D=M[0]-N[0],t=M[1]-N[1];return D*D+t*t}function lM(M,N,D){var t=N[0],i=N[1],e=D[0]-t,j=D[1]-i;if(0!==e||0!==j){var T=((M[0]-t)*e+(M[1]-i)*j)/(e*e+j*j);T>1?(t=D[0],i=D[1]):T>0&&(t+=e*T,i+=j*T)}return e=M[0]-t,j=M[1]-i,e*e+j*j}function kM(M,N,D,t,i,e,j,T){var g,s,u,z,A=D-M,L=t-N,I=j-i,n=T-e,r=M-i,w=N-e,c=A*A+L*L,y=A*I+L*n,a=I*I+n*n,o=A*r+L*w,E=I*r+n*w,O=c*a-y*y,x=O,C=O;0===O?(s=0,x=1,z=E,C=a):(z=c*E-y*o,(s=y*E-a*o)<0?(s=0,z=E,C=a):s>x&&(s=x,z=E+y,C=a)),z<0?(z=0,-o<0?s=0:-o>c?s=x:(s=-o,x=c)):z>C&&(z=C,-o+y<0?s=0:-o+y>c?s=x:(s=-o+y,x=c)),g=0===s?0:s/x;var S=(1-(u=0===z?0:z/C))*i+u*j-((1-g)*M+g*D),l=(1-u)*e+u*T-((1-g)*N+g*t);return S*S+l*l}function QM(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.concavity||1/0,t=[];if(l(M,(function(M){t.push([M[0],M[1]])})),!t.length)return null;var i=ij(t,D);return i.length>3?e([i]):null}function dM(M,N,D){if("object"!=typeof(D=D||{}))throw new Error("options is invalid");var t=D.ignoreBoundary;if(!M)throw new Error("point is required");if(!N)throw new Error("polygon is required");var i=W(M),e=R(N),j=N.geometry?N.geometry.type:N.type,T=N.bbox;if(T&&!1===function(M,N){return N[0]<=M[0]&&N[1]<=M[1]&&N[2]>=M[0]&&N[3]>=M[1]}(i,T))return!1;"Polygon"===j&&(e=[e]);for(var g=0,s=!1;g<e.length&&!s;g++)if(YM(i,e[g][0],t)){for(var u=!1,z=1;z<e[g].length&&!u;)YM(i,e[g][z],!t)&&(u=!0),z++;u||(s=!0)}return s}function YM(M,N,D){var t=!1;N[0][0]===N[N.length-1][0]&&N[0][1]===N[N.length-1][1]&&(N=N.slice(0,N.length-1));for(var i=0,e=N.length-1;i<N.length;e=i++){var j=N[i][0],T=N[i][1],g=N[e][0],s=N[e][1];if(M[1]*(j-g)+T*(g-M[0])+s*(M[0]-j)==0&&(j-M[0])*(g-M[0])<=0&&(T-M[1])*(s-M[1])<=0)return!D;T>M[1]!=s>M[1]&&M[0]<(g-j)*(M[1]-T)/(s-T)+j&&(t=!t)}return t}function pM(M,N){var D=[];return h(N,(function(N){Y(M,(function(M){dM(M,N)&&D.push(M)}))})),s(D)}function UM(M,N){if("FeatureCollection"!==M.type)throw new Error("points must be a FeatureCollection");var D=!1;return s(function(M){if(M.length<3)return[];M.sort(fM);for(var N,D,t,i,e,j,T=M.length-1,g=M[T].x,s=M[0].x,u=M[T].y,z=u;T--;)M[T].y<u&&(u=M[T].y),M[T].y>z&&(z=M[T].y);var A,L=s-g,I=z-u,n=L>I?L:I,r=.5*(s+g),w=.5*(z+u),c=[new hM({x:r-20*n,y:w-n,__sentinel:!0},{x:r,y:w+20*n,__sentinel:!0},{x:r+20*n,y:w-n,__sentinel:!0})],y=[],a=[];for(T=M.length;T--;){for(a.length=0,A=c.length;A--;)(L=M[T].x-c[A].x)>0&&L*L>c[A].r?(y.push(c[A]),c.splice(A,1)):(I=M[T].y-c[A].y,L*L+I*I>c[A].r||(a.push(c[A].a,c[A].b,c[A].b,c[A].c,c[A].c,c[A].a),c.splice(A,1)));for(mM(a),A=a.length;A;)D=a[--A],N=a[--A],t=M[T],i=D.x-N.x,e=D.y-N.y,j=2*(i*(t.y-D.y)-e*(t.x-D.x)),Math.abs(j)>1e-12&&c.push(new hM(N,D,t))}for(Array.prototype.push.apply(y,c),T=y.length;T--;)(y[T].a.__sentinel||y[T].b.__sentinel||y[T].c.__sentinel)&&y.splice(T,1);return y}(M.features.map((function(M){var t={x:M.geometry.coordinates[0],y:M.geometry.coordinates[1]};return N?t.z=M.properties[N]:3===M.geometry.coordinates.length&&(D=!0,t.z=M.geometry.coordinates[2]),t}))).map((function(M){var N=[M.a.x,M.a.y],t=[M.b.x,M.b.y],i=[M.c.x,M.c.y],j={};return D?(N.push(M.a.z),t.push(M.b.z),i.push(M.c.z)):j={a:M.a.z,b:M.b.z,c:M.c.z},e([[N,t,i,N]],j)})))}function hM(M,N,D){this.a=M,this.b=N,this.c=D;var t,i,e=N.x-M.x,j=N.y-M.y,T=D.x-M.x,g=D.y-M.y,s=e*(M.x+N.x)+j*(M.y+N.y),u=T*(M.x+D.x)+g*(M.y+D.y),z=2*(e*(D.y-N.y)-j*(D.x-N.x));this.x=(g*s-j*u)/z,this.y=(e*u-T*s)/z,t=this.x-M.x,i=this.y-M.y,this.r=t*t+i*i}function fM(M,N){return N.x-M.x}function mM(M){var N,D,t,i,e,j=M.length;M:for(;j;)for(D=M[--j],N=M[--j],t=j;t;)if(e=M[--t],i=M[--t],N===i&&D===e||N===e&&D===i){M.splice(j,2),M.splice(t,2),j-=2;continue M}}function vM(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.units,i=W(M),e=W(N),j=a(e[1]-i[1]),T=a(e[0]-i[0]),g=a(i[1]),s=a(e[1]),u=Math.pow(Math.sin(j/2),2)+Math.pow(Math.sin(T/2),2)*Math.cos(g)*Math.cos(s);return n(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),t)}function BM(M){if(!M)throw new Error("geojson is required");switch(M.type){case"Feature":return bM(M);case"FeatureCollection":return function(M){var N={type:"FeatureCollection"};return Object.keys(M).forEach((function(D){switch(D){case"type":case"features":return;default:N[D]=M[D]}})),N.features=M.features.map((function(M){return bM(M)})),N}(M);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return ZM(M);default:throw new Error("unknown GeoJSON type")}}function bM(M){var N={type:"Feature"};return Object.keys(M).forEach((function(D){switch(D){case"type":case"properties":case"geometry":return;default:N[D]=M[D]}})),N.properties=PM(M.properties),N.geometry=ZM(M.geometry),N}function PM(M){var N={};return M?(Object.keys(M).forEach((function(D){var t=M[D];"object"==typeof t?null===t?N[D]=null:t.length?N[D]=t.map((function(M){return M})):N[D]=PM(t):N[D]=t})),N):N}function ZM(M){var N={type:M.type};return M.bbox&&(N.bbox=M.bbox),"GeometryCollection"===M.type?(N.geometries=M.geometries.map((function(M){return ZM(M)})),N):(N.coordinates=GM(M.coordinates),N)}function GM(M){return"object"!=typeof M[0]?M.slice():M.map((function(M){return GM(M)}))}function WM(M,N){function D(M,N){N.length&&N.pop();for(var D=s[M<0?~M:M],t=0,i=D.length;t<i;++t)N.push(g(D[t],t));M<0&&gj(N,i)}function t(M){return g(M)}function i(M){for(var N=[],t=0,i=M.length;t<i;++t)D(M[t],N);return N.length<2&&N.push(N[0]),N}function e(M){for(var N=i(M);N.length<4;)N.push(N[0]);return N}function j(M){return M.map(e)}function T(M){var N,D=M.type;switch(D){case"GeometryCollection":return{type:D,geometries:M.geometries.map(T)};case"Point":N=t(M.coordinates);break;case"MultiPoint":N=M.coordinates.map(t);break;case"LineString":N=i(M.arcs);break;case"MultiLineString":N=M.arcs.map(i);break;case"Polygon":N=j(M.arcs);break;case"MultiPolygon":N=M.arcs.map(j);break;default:return null}return{type:D,coordinates:N}}var g=Tj(M.transform),s=M.arcs;return T(N)}function RM(M,N){function D(M){switch(M.type){case"GeometryCollection":M.geometries.forEach(D);break;case"Polygon":t(M.arcs);break;case"MultiPolygon":M.arcs.forEach(t)}}function t(M){M.forEach((function(N){N.forEach((function(N){(e[N=N<0?~N:N]||(e[N]=[])).push(M)}))})),j.push(M)}function i(N){return function(M){for(var N,D=-1,t=M.length,i=M[t-1],e=0;++D<t;)N=i,i=M[D],e+=N[0]*i[1]-N[1]*i[0];return Math.abs(e)}(WM(M,{type:"Polygon",arcs:[N]}).coordinates[0])}var e={},j=[],T=[];return N.forEach(D),j.forEach((function(M){if(!M._){var N=[],D=[M];for(M._=1,T.push(N);M=D.pop();)N.push(M),M.forEach((function(M){M.forEach((function(M){e[M<0?~M:M].forEach((function(M){M._||(M._=1,D.push(M))}))}))}))}})),j.forEach((function(M){delete M._})),{type:"MultiPolygon",arcs:T.map((function(N){var D,t=[];if(N.forEach((function(M){M.forEach((function(M){M.forEach((function(M){e[M<0?~M:M].length<2&&t.push(M)}))}))})),t=sj(M,t),(D=t.length)>1)for(var j,T,g=1,s=i(t[0]);g<D;++g)(j=i(t[g]))>s&&(T=t[0],t[0]=t[g],t[g]=T,s=j);return t}))}}function XM(M,N,D){for(var t,i=N+(D---N>>1);N<i;++N,--D)t=M[N],M[N]=M[D],M[D]=t}function _M(M){return null==M?{type:null}:("FeatureCollection"===M.type?function(M){var N={type:"GeometryCollection",geometries:M.features.map(HM)};return null!=M.bbox&&(N.bbox=M.bbox),N}:"Feature"===M.type?HM:FM)(M)}function HM(M){var N,D=FM(M.geometry);for(N in null!=M.id&&(D.id=M.id),null!=M.bbox&&(D.bbox=M.bbox),M.properties){D.properties=M.properties;break}return D}function FM(M){if(null==M)return{type:null};var N="GeometryCollection"===M.type?{type:"GeometryCollection",geometries:M.geometries.map(FM)}:"Point"===M.type||"MultiPoint"===M.type?{type:M.type,coordinates:M.coordinates}:{type:M.type,arcs:M.coordinates};return null!=M.bbox&&(N.bbox=M.bbox),N}function VM(M){var N,D=M[0],t=M[1];return t<D&&(N=D,D=t,t=N),D+31*t}function JM(M,N){var D,t=M[0],i=M[1],e=N[0],j=N[1];return i<t&&(D=t,t=i,i=D),j<e&&(D=e,e=j,j=D),t===e&&i===j}function qM(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.mutate;if("FeatureCollection"!==q(M))throw new Error("geojson must be a FeatureCollection");if(!M.features.length)throw new Error("geojson is empty");!1!==D&&void 0!==D||(M=BM(M));var t=[],i=Z(M,(function(M,N){var D=function(M,N){var D,t=M.geometry.coordinates,i=N.geometry.coordinates,e=KM(t[0]),j=KM(t[t.length-1]),g=KM(i[0]),s=KM(i[i.length-1]);if(e===s)D=i.concat(t.slice(1));else if(g===j)D=t.concat(i.slice(1));else if(e===g)D=t.slice(1).reverse().concat(i);else{if(j!==s)return null;D=t.concat(i.reverse().slice(1))}return T(D)}(M,N);return D||(t.push(M),N)}));return i&&t.push(i),t.length?1===t.length?t[0]:u(t.map((function(M){return M.coordinates}))):null}function KM(M){return M[0].toString()+","+M[1].toString()}function $M(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.mutate;if("FeatureCollection"!==q(M))throw new Error("geojson must be a FeatureCollection");if(!M.features.length)throw new Error("geojson is empty");!1!==D&&void 0!==D||(M=BM(M));var t=function(M){var N={};m(M,(function(M){N[M.geometry.type]=!0}));var D=Object.keys(N);return 1===D.length?D[0]:null}(M);if(!t)throw new Error("geojson must be homogenous");switch(t){case"LineString":return qM(M,N);case"Polygon":return function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.mutate;if("FeatureCollection"!==q(M))throw new Error("geojson must be a FeatureCollection");if(!M.features.length)throw new Error("geojson is empty");!1!==D&&void 0!==D||(M=BM(M));var t=[];m(M,(function(M){t.push(M.geometry)}));var i=aj({geoms:L(t).geometry});return uj(i,i.objects.geoms.geometries)}(M,N);default:throw new Error(t+" is not supported")}}function MN(M,D){var t="object"==typeof D?D.mutate:D;if(!M)throw new Error("geojson is required");var i=q(M),e=[];switch(i){case"LineString":e=NN(M);break;case"MultiLineString":case"Polygon":R(M).forEach((function(M){e.push(NN(M))}));break;case"MultiPolygon":R(M).forEach((function(M){var N=[];M.forEach((function(M){N.push(NN(M))})),e.push(N)}));break;case"Point":return M;case"MultiPoint":var j={};R(M).forEach((function(M){var N=M.join("-");j.hasOwnProperty(N)||(e.push(M),j[N]=!0)}));break;default:throw new Error(i+" geometry not supported")}return M.coordinates?!0===t?(M.coordinates=e,M):{type:i,coordinates:e}:!0===t?(M.geometry.coordinates=e,M):N({type:i,coordinates:e},M.properties,M.bbox,M.id)}function NN(M){var N=R(M);if(2===N.length&&!function(M,N){return M[0]===N[0]&&M[1]===N[1]}(N[0],N[1]))return N;var D,t,i,e=[],j=N.length-1;e.push(N[0]);for(var T=1;T<j;T++)D=N[T-1],t=N[T],function(M,N,D){var t=D[0],i=D[1],e=M[0],j=M[1],T=N[0],g=N[1],s=T-e,u=g-j;return(t-e)*u-(i-j)*s==0&&(Math.abs(s)>=Math.abs(u)?s>0?e<=t&&t<=T:T<=t&&t<=e:u>0?j<=i&&i<=g:g<=i&&i<=j)}(D,i=N[T+1],t)||e.push(t);return e.push(i),e}function DN(M,N){var D=M.x-N.x,t=M.y-N.y;return D*D+t*t}function tN(M,N,D){var t=N.x,i=N.y,e=D.x-t,j=D.y-i;if(0!==e||0!==j){var T=((M.x-t)*e+(M.y-i)*j)/(e*e+j*j);T>1?(t=D.x,i=D.y):T>0&&(t+=e*T,i+=j*T)}return e=M.x-t,j=M.y-i,e*e+j*j}function iN(M,N,D,t,i){for(var e,j=t,T=N+1;T<D;T++){var g=tN(M[T],M[N],M[D]);g>j&&(e=T,j=g)}j>t&&(e-N>1&&iN(M,N,e,t,i),i.push(M[e]),D-e>1&&iN(M,e,D,t,i))}function eN(M,N,D){if(M.length<=2)return M;var t=void 0!==N?N*N:1;return M=D?M:function(M,N){for(var D,t=M[0],i=[t],e=1,j=M.length;e<j;e++)DN(D=M[e],t)>N&&(i.push(D),t=D);return t!==D&&i.push(D),i}(M,t),function(M,N){var D=M.length-1,t=[M[0]];return iN(M,0,D,N,t),t.push(M[D]),t}(M,t)}function jN(M,N,D){return eN(M.map((function(M){return{x:M[0],y:M[1],z:M[2]}})),N,D).map((function(M){return M.z?[M.x,M.y,M.z]:[M.x,M.y]}))}function TN(M,N,D){return M.map((function(M){var t=M.map((function(M){return{x:M[0],y:M[1]}}));if(t.length<4)throw new Error("invalid polygon");for(var i=eN(t,N,D).map((function(M){return[M.x,M.y]}));!function(M){return!(M.length<3||3===M.length&&M[2][0]===M[0][0]&&M[2][1]===M[0][1])}(i);)i=eN(t,N-=.01*N,D).map((function(M){return[M.x,M.y]}));return i[i.length-1][0]===i[0][0]&&i[i.length-1][1]===i[0][1]||i.push(i[0]),i}))}function gN(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.resolution||1e4,t=N.sharpness||.85;if(!M)throw new Error("line is required");if(!O(D))throw new Error("resolution must be an number");if(!O(t))throw new Error("sharpness must be an number");for(var i=[],e=new oj({points:V(M).coordinates.map((function(M){return{x:M[0],y:M[1]}})),duration:D,sharpness:t}),j=0;j<e.duration;j+=10){var g=e.pos(j);Math.floor(j/100)%2==0&&i.push([g.x,g.y])}return T(i,M.properties)}function sN(M){C(M);var N=Number(M[0]),D=Number(M[1]),t=Number(M[2]),i=Number(M[3]);if(6===M.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var j=[N,D];return e([[j,[t,D],[t,i],[N,i],j]])}function uN(M){return sN(G(M))}function zN(M){var N=M[0],D=M[1],t=M[2],i=M[3];if(vM(M.slice(0,2),[t,D])>=vM(M.slice(0,2),[N,i])){var e=(D+i)/2;return[N,e-(t-N)/2,t,e+(t-N)/2]}var j=(N+t)/2;return[j-(i-D)/2,D,j+(i-D)/2,i]}function AN(M,N,D,i){if(i=i||{},!x(i))throw new Error("options is invalid");var e=i.units,j=i.properties,T=W(M),g=a(T[0]),s=a(T[1]),u=a(D),z=r(N,e),A=Math.asin(Math.sin(s)*Math.cos(z)+Math.cos(s)*Math.sin(z)*Math.cos(u));return t([y(g+Math.atan2(Math.sin(u)*Math.sin(z)*Math.cos(s),Math.cos(z)-Math.sin(s)*Math.sin(A))),y(A)],j)}function LN(M,N,D){var t=(D=D||{}).steps||64,i=D.properties;if(!M)throw new Error("center is required");if(!N)throw new Error("radius is required");if("object"!=typeof D)throw new Error("options must be an object");if("number"!=typeof t)throw new Error("steps must be a number");t=t||64,i=i||M.properties||{};for(var j=[],T=0;T<t;T++)j.push(AN(M,N,-360*T/t,D).geometry.coordinates);return j.push(j[0]),e([j],i)}function IN(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");if(!0===D.final)return function(M,N){var D=IN(N,M);return(D+180)%360}(M,N);var t=W(M),i=W(N),e=a(t[0]),j=a(i[0]),T=a(t[1]),g=a(i[1]),s=Math.sin(j-e)*Math.cos(g),u=Math.cos(T)*Math.sin(g)-Math.sin(T)*Math.cos(g)*Math.cos(j-e);return y(Math.atan2(s,u))}function nN(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.properties;if(!M)throw new Error("geojson is required");var i=G(M);return t([(i[0]+i[2])/2,(i[1]+i[3])/2],D)}function rN(M,N){var D=0,i=0,e=0;return l(M,(function(M){D+=M[0],i+=M[1],e++}),!0),t([D/e,i/e],N)}function wN(M,N){switch(q(M)){case"Point":return M;case"Polygon":var D=[];l(M,(function(M){D.push(M)}));var i,e,j,T,g,s,u,z,A=rN(M,N),L=A.geometry.coordinates,I=0,n=0,r=0,w=D.map((function(M){return[M[0]-L[0],M[1]-L[1]]}));for(i=0;i<D.length-1;i++)T=(e=w[i])[0],s=e[1],g=(j=w[i+1])[0],r+=z=T*(u=j[1])-g*s,I+=(T+g)*z,n+=(s+u)*z;if(0===r)return A;var c=1/(.5*r*6);return t([L[0]+c*I,L[1]+c*n],N);default:var y=QM(M);return y?wN(y,N):rN(M,N)}}function cN(M){var N=[];return"FeatureCollection"===M.type?Y(M,(function(M){l(M,(function(D){N.push(t(D,M.properties))}))})):l(M,(function(D){N.push(t(D,M.properties))})),s(N)}function yN(M,N,D){D=D||2;var t,i,e,j,T,g,s,u=N&&N.length,z=u?N[0]*D:M.length,A=aN(M,0,z,D,!0),L=[];if(!A)return L;if(u&&(A=function(M,N,D,t){var i,e,j,T,g,s=[];for(i=0,e=N.length;i<e;i++)j=N[i]*t,T=i<e-1?N[i+1]*t:M.length,(g=aN(M,j,T,t,!1))===g.next&&(g.steiner=!0),s.push(function(M){var N=M,D=M;do{N.x<D.x&&(D=N),N=N.next}while(N!==M);return D}(g));for(s.sort(ON),i=0;i<s.length;i++)!function(M,N){if(N=function(M,N){var D,t=N,i=M.x,e=M.y,j=-1/0;do{if(e<=t.y&&e>=t.next.y&&t.next.y!==t.y){var T=t.x+(e-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(T<=i&&T>j){if(j=T,T===i){if(e===t.y)return t;if(e===t.next.y)return t.next}D=t.x<t.next.x?t:t.next}}t=t.next}while(t!==N);if(!D)return null;if(i===j)return D.prev;var g,s=D,u=D.x,z=D.y,A=1/0;for(t=D.next;t!==s;)i>=t.x&&t.x>=u&&i!==t.x&&CN(e<z?i:j,e,u,z,e<z?j:i,e,t.x,t.y)&&((g=Math.abs(e-t.y)/(i-t.x))<A||g===A&&t.x>D.x)&&QN(t,M)&&(D=t,A=g),t=t.next;return D}(M,N)){var D=dN(N,M);oN(D,D.next)}}(s[i],D),D=oN(D,D.next);return D}(M,N,A,D)),M.length>80*D){t=e=M[0],i=j=M[1];for(var I=D;I<z;I+=D)T=M[I],g=M[I+1],T<t&&(t=T),g<i&&(i=g),T>e&&(e=T),g>j&&(j=g);s=0!==(s=Math.max(e-t,j-i))?1/s:0}return EN(A,L,D,t,i,s),L}function aN(M,N,D,t,i){var e,j;if(i===hN(M,N,D,t)>0)for(e=N;e<D;e+=t)j=YN(e,M[e],M[e+1],j);else for(e=D-t;e>=N;e-=t)j=YN(e,M[e],M[e+1],j);return j&&lN(j,j.next)&&(pN(j),j=j.next),j}function oN(M,N){if(!M)return M;N||(N=M);var D,t=M;do{if(D=!1,t.steiner||!lN(t,t.next)&&0!==SN(t.prev,t,t.next))t=t.next;else{if(pN(t),(t=N=t.prev)===t.next)break;D=!0}}while(D||t!==N);return N}function EN(M,N,D,t,i,e,j){if(M){!j&&e&&function(M,N,D,t){var i=M;do{null===i.z&&(i.z=xN(i.x,i.y,N,D,t)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==M);i.prevZ.nextZ=null,i.prevZ=null,function(M){var N,D,t,i,e,j,T,g,s=1;do{for(D=M,M=null,e=null,j=0;D;){for(j++,t=D,T=0,N=0;N<s&&(T++,t=t.nextZ);N++);for(g=s;T>0||g>0&&t;)0!==T&&(0===g||!t||D.z<=t.z)?(i=D,D=D.nextZ,T--):(i=t,t=t.nextZ,g--),e?e.nextZ=i:M=i,i.prevZ=e,e=i;D=t}e.nextZ=null,s*=2}while(j>1)}(i)}(M,t,i,e);for(var T,g,s=M;M.prev!==M.next;)if(T=M.prev,g=M.next,e?function(M,N,D,t){var i=M.prev,e=M,j=M.next;if(SN(i,e,j)>=0)return!1;for(var T=i.x<e.x?i.x<j.x?i.x:j.x:e.x<j.x?e.x:j.x,g=i.y<e.y?i.y<j.y?i.y:j.y:e.y<j.y?e.y:j.y,s=i.x>e.x?i.x>j.x?i.x:j.x:e.x>j.x?e.x:j.x,u=i.y>e.y?i.y>j.y?i.y:j.y:e.y>j.y?e.y:j.y,z=xN(T,g,N,D,t),A=xN(s,u,N,D,t),L=M.nextZ;L&&L.z<=A;){if(L!==M.prev&&L!==M.next&&CN(i.x,i.y,e.x,e.y,j.x,j.y,L.x,L.y)&&SN(L.prev,L,L.next)>=0)return!1;L=L.nextZ}for(L=M.prevZ;L&&L.z>=z;){if(L!==M.prev&&L!==M.next&&CN(i.x,i.y,e.x,e.y,j.x,j.y,L.x,L.y)&&SN(L.prev,L,L.next)>=0)return!1;L=L.prevZ}return!0}(M,t,i,e):function(M){var N=M.prev,D=M,t=M.next;if(SN(N,D,t)>=0)return!1;for(var i=M.next.next;i!==M.prev;){if(CN(N.x,N.y,D.x,D.y,t.x,t.y,i.x,i.y)&&SN(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}(M))N.push(T.i/D),N.push(M.i/D),N.push(g.i/D),pN(M),M=g.next,s=g.next;else if((M=g)===s){j?1===j?EN(M=function(M,N,D){var t=M;do{var i=t.prev,e=t.next.next;!lN(i,e)&&kN(i,t,t.next,e)&&QN(i,e)&&QN(e,i)&&(N.push(i.i/D),N.push(t.i/D),N.push(e.i/D),pN(t),pN(t.next),t=M=e),t=t.next}while(t!==M);return t}(M,N,D),N,D,t,i,e,2):2===j&&function(M,N,D,t,i,e){var j=M;do{for(var T=j.next.next;T!==j.prev;){if(j.i!==T.i&&function(M,N){return M.next.i!==N.i&&M.prev.i!==N.i&&!function(M,N){var D=M;do{if(D.i!==M.i&&D.next.i!==M.i&&D.i!==N.i&&D.next.i!==N.i&&kN(D,D.next,M,N))return!0;D=D.next}while(D!==M);return!1}(M,N)&&QN(M,N)&&QN(N,M)&&function(M,N){var D=M,t=!1,i=(M.x+N.x)/2,e=(M.y+N.y)/2;do{D.y>e!=D.next.y>e&&D.next.y!==D.y&&i<(D.next.x-D.x)*(e-D.y)/(D.next.y-D.y)+D.x&&(t=!t),D=D.next}while(D!==M);return t}(M,N)}(j,T)){var g=dN(j,T);return j=oN(j,j.next),g=oN(g,g.next),EN(j,N,D,t,i,e),void EN(g,N,D,t,i,e)}T=T.next}j=j.next}while(j!==M)}(M,N,D,t,i,e):EN(oN(M),N,D,t,i,e,1);break}}}function ON(M,N){return M.x-N.x}function xN(M,N,D,t,i){return M=32767*(M-D)*i,N=32767*(N-t)*i,M=16711935&(M|M<<8),M=252645135&(M|M<<4),M=858993459&(M|M<<2),M=1431655765&(M|M<<1),N=16711935&(N|N<<8),N=252645135&(N|N<<4),N=858993459&(N|N<<2),N=1431655765&(N|N<<1),M|N<<1}function CN(M,N,D,t,i,e,j,T){return(i-j)*(N-T)-(M-j)*(e-T)>=0&&(M-j)*(t-T)-(D-j)*(N-T)>=0&&(D-j)*(e-T)-(i-j)*(t-T)>=0}function SN(M,N,D){return(N.y-M.y)*(D.x-N.x)-(N.x-M.x)*(D.y-N.y)}function lN(M,N){return M.x===N.x&&M.y===N.y}function kN(M,N,D,t){return!!(lN(M,N)&&lN(D,t)||lN(M,t)&&lN(D,N))||SN(M,N,D)>0!=SN(M,N,t)>0&&SN(D,t,M)>0!=SN(D,t,N)>0}function QN(M,N){return SN(M.prev,M,M.next)<0?SN(M,N,M.next)>=0&&SN(M,M.prev,N)>=0:SN(M,N,M.prev)<0||SN(M,M.next,N)<0}function dN(M,N){var D=new UN(M.i,M.x,M.y),t=new UN(N.i,N.x,N.y),i=M.next,e=N.prev;return M.next=N,N.prev=M,D.next=i,i.prev=D,t.next=D,D.prev=t,e.next=t,t.prev=e,t}function YN(M,N,D,t){var i=new UN(M,N,D);return t?(i.next=t.next,i.prev=t,t.next.prev=i,t.next=i):(i.prev=i,i.next=i),i}function pN(M){M.next.prev=M.prev,M.prev.next=M.next,M.prevZ&&(M.prevZ.nextZ=M.nextZ),M.nextZ&&(M.nextZ.prevZ=M.prevZ)}function UN(M,N,D){this.i=M,this.x=N,this.y=D,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function hN(M,N,D,t){for(var i=0,e=N,j=D-t;e<D;e+=t)i+=(M[j]-M[e])*(M[e+1]+M[j+1]),j=e;return i}function fN(M){var N=function(M){for(var N=M[0][0].length,D={vertices:[],holes:[],dimensions:N},t=0,i=0;i<M.length;i++){for(var e=0;e<M[i].length;e++)for(var j=0;j<N;j++)D.vertices.push(M[i][e][j]);i>0&&(t+=M[i-1].length,D.holes.push(t))}return D}(M),D=Ej(N.vertices,N.holes,2),t=[],i=[];D.forEach((function(M,t){var e=D[t];i.push([N.vertices[2*e],N.vertices[2*e+1]])}));for(var j=0;j<i.length;j+=3){var T=i.slice(j,j+3);T.push(i[j]),t.push(e([T]))}return t}function mN(M,N){if(!M)throw new Error("targetPoint is required");if(!N)throw new Error("points is required");var D,t=1/0;return Y(N,(function(N,i){var e=vM(M,N);e<t&&((D=BM(N)).properties.featureIndex=i,D.properties.distanceToPoint=e,t=e)})),D}function vN(M,N,D,t,i){BN(M,N,D||0,t||M.length-1,i||function(M,N){return M<N?-1:M>N?1:0})}function BN(M,N,D,t,i){for(;t>D;){if(t-D>600){var e=t-D+1,j=N-D+1,T=Math.log(e),g=.5*Math.exp(2*T/3),s=.5*Math.sqrt(T*g*(e-g)/e)*(j-e/2<0?-1:1);BN(M,N,Math.max(D,Math.floor(N-j*g/e+s)),Math.min(t,Math.floor(N+(e-j)*g/e+s)),i)}var u=M[N],z=D,A=t;for(bN(M,D,N),i(M[t],u)>0&&bN(M,D,t);z<A;){for(bN(M,z,A),z++,A--;i(M[z],u)<0;)z++;for(;i(M[A],u)>0;)A--}0===i(M[D],u)?bN(M,D,A):bN(M,++A,t),A<=N&&(D=A+1),N<=A&&(t=A-1)}}function bN(M,N,D){var t=M[N];M[N]=M[D],M[D]=t}function PN(M,N){if(!(this instanceof PN))return new PN(M,N);this._maxEntries=Math.max(4,M||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),N&&this._initFormat(N),this.clear()}function ZN(M,N){GN(M,0,M.children.length,N,M)}function GN(M,N,D,t,i){i||(i=JN(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var e,j=N;j<D;j++)e=M.children[j],WN(i,M.leaf?t(e):e);return i}function WN(M,N){return M.minX=Math.min(M.minX,N.minX),M.minY=Math.min(M.minY,N.minY),M.maxX=Math.max(M.maxX,N.maxX),M.maxY=Math.max(M.maxY,N.maxY),M}function RN(M,N){return M.minX-N.minX}function XN(M,N){return M.minY-N.minY}function _N(M){return(M.maxX-M.minX)*(M.maxY-M.minY)}function HN(M){return M.maxX-M.minX+(M.maxY-M.minY)}function FN(M,N){return M.minX<=N.minX&&M.minY<=N.minY&&N.maxX<=M.maxX&&N.maxY<=M.maxY}function VN(M,N){return N.minX<=M.maxX&&N.minY<=M.maxY&&N.maxX>=M.minX&&N.maxY>=M.minY}function JN(M){return{children:M,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function qN(M,N,D,t,i){for(var e,j=[N,D];j.length;)(D=j.pop())-(N=j.pop())<=t||(vN(M,e=N+Math.ceil((D-N)/t/2)*t,N,D,i),j.push(N,e,e,D))}function KN(M){var N=PN(M);return N.insert=function(M){if(Array.isArray(M)){var N=M;(M=$N(N)).bbox=N}else M.bbox=M.bbox?M.bbox:MD(M);return PN.prototype.insert.call(this,M)},N.load=function(M){var N=[];return Array.isArray(M)?M.forEach((function(M){var D=$N(M);D.bbox=M,N.push(D)})):Y(M,(function(M){M.bbox=M.bbox?M.bbox:MD(M),N.push(M)})),PN.prototype.load.call(this,N)},N.remove=function(M){if(Array.isArray(M)){var N=M;(M=$N(N)).bbox=N}return PN.prototype.remove.call(this,M)},N.clear=function(){return PN.prototype.clear.call(this)},N.search=function(M){return{type:"FeatureCollection",features:PN.prototype.search.call(this,this.toBBox(M))}},N.collides=function(M){return PN.prototype.collides.call(this,this.toBBox(M))},N.all=function(){return{type:"FeatureCollection",features:PN.prototype.all.call(this)}},N.toJSON=function(){return PN.prototype.toJSON.call(this)},N.fromJSON=function(M){return PN.prototype.fromJSON.call(this,M)},N.toBBox=function(M){var N;return N=M.bbox?M.bbox:Array.isArray(M)&&4===M.length?M:MD(M),{minX:N[0],minY:N[1],maxX:N[2],maxY:N[3]}},N}function $N(M){var N=[M[0],M[1]],D=[M[0],M[3]],t=[M[2],M[3]];return{type:"Feature",bbox:M,properties:{},geometry:{type:"Polygon",coordinates:[[N,[M[2],M[1]],t,D,N]]}}}function MD(M){var N=[1/0,1/0,-1/0,-1/0];return l(M,(function(M){N[0]>M[0]&&(N[0]=M[0]),N[1]>M[1]&&(N[1]=M[1]),N[2]<M[0]&&(N[2]=M[0]),N[3]<M[1]&&(N[3]=M[1])})),N}function ND(M){if(!M)throw new Error("geojson is required");var N=[];return m(M,(function(M){!function(M,N){var D=[],t=M.geometry;switch(t.type){case"Polygon":D=R(t);break;case"LineString":D=[R(t)]}D.forEach((function(D){var t=function(M,N){var D=[];return M.reduce((function(M,t){var i=T([M,t],N);return i.bbox=function(M,N){var D=M[0],t=M[1],i=N[0],e=N[1];return[D<i?D:i,t<e?t:e,D>i?D:i,t>e?t:e]}(M,t),D.push(i),t})),D}(D,M.properties);t.forEach((function(M){M.id=N.length,N.push(M)}))}))}(M,N)})),s(N)}function DD(M,D){var t={},i=[];if("LineString"===M.type&&(M=N(M)),"LineString"===D.type&&(D=N(D)),"Feature"===M.type&&"Feature"===D.type&&"LineString"===M.geometry.type&&"LineString"===D.geometry.type&&2===M.geometry.coordinates.length&&2===D.geometry.coordinates.length){var e=tD(M,D);return e&&i.push(e),s(i)}var j=KN();return j.load(ND(D)),Y(ND(M),(function(M){Y(j.search(M),(function(N){var D=tD(M,N);if(D){var e=R(D).join(",");t[e]||(t[e]=!0,i.push(D))}}))})),s(i)}function tD(M,N){var D=R(M),i=R(N);if(2!==D.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==i.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var e=D[0][0],j=D[0][1],T=D[1][0],g=D[1][1],s=i[0][0],u=i[0][1],z=i[1][0],A=i[1][1],L=(A-u)*(T-e)-(z-s)*(g-j),I=(z-s)*(j-u)-(A-u)*(e-s),n=(T-e)*(j-u)-(g-j)*(e-s);if(0===L)return null;var r=I/L,w=n/L;return r>=0&&r<=1&&w>=0&&w<=1?t([e+r*(T-e),j+r*(g-j)]):null}function iD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var i=M.geometry?M.geometry.type:M.type;if("LineString"!==i&&"MultiLineString"!==i)throw new Error("lines must be LineString or MultiLineString");var e=t([1/0,1/0],{dist:1/0}),j=0;return m(M,(function(M){for(var i=R(M),g=0;g<i.length-1;g++){var s=t(i[g]);s.properties.dist=vM(N,s,D);var u=t(i[g+1]);u.properties.dist=vM(N,u,D);var z=vM(s,u,D),A=Math.max(s.properties.dist,u.properties.dist),L=IN(s,u),I=AN(N,A,L+90,D),n=AN(N,A,L-90,D),r=DD(T([I.geometry.coordinates,n.geometry.coordinates]),T([s.geometry.coordinates,u.geometry.coordinates])),w=null;r.features.length>0&&((w=r.features[0]).properties.dist=vM(N,w,D),w.properties.location=j+vM(s,w,D)),s.properties.dist<e.properties.dist&&((e=s).properties.index=g,e.properties.location=j),u.properties.dist<e.properties.dist&&((e=u).properties.index=g+1,e.properties.location=j+z),w&&w.properties.dist<e.properties.dist&&((e=w).properties.index=g),j+=z}})),e}function eD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t,i=D.final;if(!M)throw new Error("start point is required");if(!N)throw new Error("end point is required");return(t=i?jD(W(N),W(M)):jD(W(M),W(N)))>180?-(360-t):t}function jD(M,N){var D=a(M[1]),t=a(N[1]),i=a(N[0]-M[0]);i>Math.PI&&(i-=2*Math.PI),i<-Math.PI&&(i+=2*Math.PI);var e=Math.log(Math.tan(t/2+Math.PI/4)/Math.tan(D/2+Math.PI/4));return(y(Math.atan2(i,e))+360)%360}function TD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.units;if(!M)throw new Error("from point is required");if(!N)throw new Error("to point is required");var i=W(M),e=W(N);return e[0]+=e[0]-i[0]>180?-360:i[0]-e[0]>180?360:0,o(function(M,N,D){var t=D=void 0===D?he:Number(D),i=M[1]*Math.PI/180,e=N[1]*Math.PI/180,j=e-i,T=Math.abs(N[0]-M[0])*Math.PI/180;T>Math.PI&&(T-=2*Math.PI);var g=Math.log(Math.tan(e/2+Math.PI/4)/Math.tan(i/2+Math.PI/4)),s=Math.abs(g)>1e-11?j/g:Math.cos(i);return Math.sqrt(j*j+s*s*T*T)*t}(i,e),"meters",t)}function gD(M,N){return uD(M,"mercator",N)}function sD(M,N){return uD(M,"wgs84",N)}function uD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.mutate;if(!M)throw new Error("geojson is required");return Array.isArray(M)&&O(M[0])?M="mercator"===N?zD(M):AD(M):(!0!==t&&(M=BM(M)),l(M,(function(M){var D="mercator"===N?zD(M):AD(M);M[0]=D[0],M[1]=D[1]}))),M}function zD(M){var N=Math.PI/180,D=20037508.342789244,t=[6378137*(Math.abs(M[0])<=180?M[0]:M[0]-360*function(M){return M<0?-1:M>0?1:0}(M[0]))*N,6378137*Math.log(Math.tan(.25*Math.PI+.5*M[1]*N))];return t[0]>D&&(t[0]=D),t[0]<-D&&(t[0]=-D),t[1]>D&&(t[1]=D),t[1]<-D&&(t[1]=-D),t}function AD(M){var N=180/Math.PI;return[M[0]*N/6378137,(.5*Math.PI-2*Math.atan(Math.exp(-M[1]/6378137)))*N]}function LD(M,D,i){if(i=i||{},!x(i))throw new Error("options is invalid");if(!M)throw new Error("pt is required");if(Array.isArray(M)?M=t(M):"Point"===M.type?M=N(M):H(M,"Point","point"),!D)throw new Error("line is required");Array.isArray(D)?D=T(D):"LineString"===D.type?D=N(D):H(D,"LineString","line");var e=1/0,j=M.geometry.coordinates;return B(D,(function(M){var N=M.geometry.coordinates[0],D=M.geometry.coordinates[1],T=function(M,N,D,i){var e=i.mercator,j=!0!==e?vM(N,M,i):ID(N,M,i),T=c(!0!==e?IN(N,M):eD(N,M)),g=c(!0!==e?IN(N,D):eD(N,D)),s=Math.abs(T-g);if(s>90)return j;var u=(g+180)%360,z=c(!0!==e?IN(D,M):eD(D,M)),A=Math.abs(z-u);return A>180&&(A=Math.abs(A-360)),A>90?!0!==e?vM(M,D,i):ID(M,D,i):!0!==e?j*Math.sin(a(s)):function(M,N,D,i){var e=0;(Math.abs(M[0])>=180||Math.abs(N[0])>=180||Math.abs(D[0])>=180)&&(e=M[0]>0||N[0]>0||D[0]>0?-180:180);var j=t(D),T=gD([M[0]+e,M[1]]),g=gD([N[0]+e,N[1]]),s=gD([D[0]+e,D[1]]),u=sD(function(M,N,D){var t=M[0],i=M[1],e=N[0],j=N[1],T=D[0],g=D[1],s=e-t,u=j-i,z=((T-t)*s+(g-i)*u)/(s*s+u*u);return[t+z*s,i+z*u]}(T,g,s));return 0!==e&&(u[0]-=e),TD(j,u,i)}(N,D,M,i)}(j,N,D,i);e>T&&(e=T)})),e}function ID(M,N,D){var t=D.units,i=0;Math.abs(M[0])>=180&&(i=M[0]>0?-180:180),Math.abs(N[0])>=180&&(i=N[0]>0?-180:180);var e=gD([M[0]+i,M[1]]),j=gD([N[0]+i,N[1]]),T=function(M){return M*M},g=T(e[0]-j[0])+T(e[1]-j[1]);return o(Math.sqrt(g),"meters",t)}function nD(M){for(var D=function(M){return"FeatureCollection"!==M.type?"Feature"!==M.type?s([N(M)]):s([M]):M}(M),i=nN(D),e=!1,j=0;!e&&j<D.features.length;){var T,g=D.features[j].geometry,u=!1;if("Point"===g.type)i.geometry.coordinates[0]===g.coordinates[0]&&i.geometry.coordinates[1]===g.coordinates[1]&&(e=!0);else if("MultiPoint"===g.type){var z=!1;for(T=0;!z&&T<g.coordinates.length;)i.geometry.coordinates[0]===g.coordinates[T][0]&&i.geometry.coordinates[1]===g.coordinates[T][1]&&(e=!0,z=!0),T++}else if("LineString"===g.type)for(T=0;!u&&T<g.coordinates.length-1;)rD(i.geometry.coordinates[0],i.geometry.coordinates[1],g.coordinates[T][0],g.coordinates[T][1],g.coordinates[T+1][0],g.coordinates[T+1][1])&&(u=!0,e=!0),T++;else if("MultiLineString"===g.type)for(var A=0;A<g.coordinates.length;){u=!1,T=0;for(var L=g.coordinates[A];!u&&T<L.length-1;)rD(i.geometry.coordinates[0],i.geometry.coordinates[1],L[T][0],L[T][1],L[T+1][0],L[T+1][1])&&(u=!0,e=!0),T++;A++}else"Polygon"!==g.type&&"MultiPolygon"!==g.type||dM(i,g)&&(e=!0);j++}if(e)return i;var I=s([]);for(j=0;j<D.features.length;j++)I.features=I.features.concat(cN(D.features[j]).features);return t(mN(i,I).geometry.coordinates)}function rD(M,N,D,t,i,e){return Math.sqrt((i-D)*(i-D)+(e-t)*(e-t))===Math.sqrt((M-D)*(M-D)+(N-t)*(N-t))+Math.sqrt((i-M)*(i-M)+(e-N)*(e-N))}function wD(M){return f(M,(function(M,N){return M+cD(N)}),0)}function cD(M){var N,D=0;switch(M.type){case"Polygon":return yD(M.coordinates);case"MultiPolygon":for(N=0;N<M.coordinates.length;N++)D+=yD(M.coordinates[N]);return D;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(N=0;N<M.geometries.length;N++)D+=cD(M.geometries[N]);return D}}function yD(M){var N=0;if(M&&M.length>0){N+=Math.abs(aD(M[0]));for(var D=1;D<M.length;D++)N-=Math.abs(aD(M[D]))}return N}function aD(M){var N,D,t,i,e,j,T=0,g=M.length;if(g>2){for(j=0;j<g;j++)j===g-2?(t=g-2,i=g-1,e=0):j===g-1?(t=g-1,i=0,e=1):(t=j,i=j+1,e=j+2),N=M[t],D=M[i],T+=(oD(M[e][0])-oD(N[0]))*Math.sin(oD(D[1]));T=T*Cj*Cj/2}return T}function oD(M){return M*Math.PI/180}function ED(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");if(!M)throw new Error("geojson is required");return b(M,(function(M,D){var t=D.geometry.coordinates;return M+vM(t[0],t[1],N)}),0)}function OD(M,N,D,t){if(t=t||{},!x(t))throw new Error("options is invalid");var i,e=[];if("Feature"===M.type)i=M.geometry.coordinates;else{if("LineString"!==M.type)throw new Error("input must be a LineString Feature or Geometry");i=M.coordinates}for(var j,g,s,u=0,z=0;z<i.length&&!(N>=u&&z===i.length-1);z++){if(u>N&&0===e.length){if(!(j=N-u))return e.push(i[z]),T(e);g=IN(i[z],i[z-1])-180,s=AN(i[z],j,g,t),e.push(s.geometry.coordinates)}if(u>=D)return(j=D-u)?(g=IN(i[z],i[z-1])-180,s=AN(i[z],j,g,t),e.push(s.geometry.coordinates),T(e)):(e.push(i[z]),T(e));if(u>=N&&e.push(i[z]),z===i.length-1)return T(e);u+=vM(i[z],i[z+1],t)}return T(i[i.length-1])}function xD(M,N,D){var t=(D=D||{}).ignoreEndVertices;if(!x(D))throw new Error("invalid options");if(!M)throw new Error("pt is required");if(!N)throw new Error("line is required");for(var i=W(M),e=R(N),j=0;j<e.length-1;j++){var T=!1;if(t&&(0===j&&(T="start"),j===e.length-2&&(T="end"),0===j&&j+1===e.length-1&&(T="both")),function(M,N,D,t){var i=D[0],e=D[1],j=M[0],T=M[1],g=N[0],s=N[1],u=D[0]-j,z=D[1]-T,A=g-j,L=s-T;return u*L-z*A==0&&(t?"start"===t?Math.abs(A)>=Math.abs(L)?A>0?j<i&&i<=g:g<=i&&i<j:L>0?T<e&&e<=s:s<=e&&e<T:"end"===t?Math.abs(A)>=Math.abs(L)?A>0?j<=i&&i<g:g<i&&i<=j:L>0?T<=e&&e<s:s<e&&e<=T:"both"===t?Math.abs(A)>=Math.abs(L)?A>0?j<i&&i<g:g<i&&i<j:L>0?T<e&&e<s:s<e&&e<T:void 0:Math.abs(A)>=Math.abs(L)?A>0?j<=i&&i<=g:g<=i&&i<=j:L>0?T<=e&&e<=s:s<=e&&e<=T)}(e[j],e[j+1],i,T))return!0}return!1}function CD(M,N){var D=q(M),t=q(N),i=V(M),e=V(N);switch(D){case"Point":switch(t){case"MultiPoint":return function(M,N){var D,t=!1;for(D=0;D<N.coordinates.length;D++)if(lD(N.coordinates[D],M.coordinates)){t=!0;break}return t}(i,e);case"LineString":return xD(i,e,{ignoreEndVertices:!0});case"Polygon":return dM(i,e,{ignoreBoundary:!0});default:throw new Error("feature2 "+t+" geometry not supported")}case"MultiPoint":switch(t){case"MultiPoint":return function(M,N){for(var D=0;D<M.coordinates.length;D++){for(var t=!1,i=0;i<N.coordinates.length;i++)lD(M.coordinates[D],N.coordinates[i])&&(t=!0);if(!t)return!1}return!0}(i,e);case"LineString":return function(M,N){for(var D=!1,t=0;t<M.coordinates.length;t++){if(!xD(M.coordinates[t],N))return!1;D||(D=xD(M.coordinates[t],N,{ignoreEndVertices:!0}))}return D}(i,e);case"Polygon":return function(M,N){for(var D=!0,t=0;t<M.coordinates.length;t++){var i=dM(M.coordinates[1],N);if(!i){D=!1;break}i=dM(M.coordinates[1],N,{ignoreBoundary:!0})}return D&&i}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"LineString":switch(t){case"LineString":return function(M,N){for(var D=0;D<M.coordinates.length;D++)if(!xD(M.coordinates[D],N))return!1;return!0}(i,e);case"Polygon":return function(M,N){var D=G(N),t=G(M);if(!SD(D,t))return!1;for(var i=!1,e=0;e<M.coordinates.length-1;e++){if(!dM(M.coordinates[e],N))return!1;if(i||(i=dM(M.coordinates[e],N,{ignoreBoundary:!0})),!i){var j=function(M,N){return[(M[0]+N[0])/2,(M[1]+N[1])/2]}(M.coordinates[e],M.coordinates[e+1]);i=dM(j,N,{ignoreBoundary:!0})}}return i}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"Polygon":switch(t){case"Polygon":return function(M,N){var D=G(M);if(!SD(G(N),D))return!1;for(var t=0;t<M.coordinates[0].length;t++)if(!dM(M.coordinates[0][t],N))return!1;return!0}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}default:throw new Error("feature1 "+D+" geometry not supported")}}function SD(M,N){return!(M[0]>N[0])&&!(M[2]<N[2])&&!(M[1]>N[1])&&!(M[3]<N[3])}function lD(M,N){return M[0]===N[0]&&M[1]===N[1]}function kD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var i=D.mask,e=D.properties,j=[];if(null===N||void 0===N)throw new Error("cellSide is required");if(!O(N))throw new Error("cellSide is invalid");if(!M)throw new Error("bbox is required");if(!Array.isArray(M))throw new Error("bbox must be array");if(4!==M.length)throw new Error("bbox must contain 4 numbers");if(i&&-1===["Polygon","MultiPolygon"].indexOf(q(i)))throw new Error("options.mask must be a (Multi)Polygon");for(var T=M[0],g=M[1],u=M[2],z=M[3],A=N/vM([T,g],[u,g],D)*(u-T),L=N/vM([T,g],[T,z],D)*(z-g),I=u-T,n=z-g,r=Math.floor(I/A),w=(n-Math.floor(n/L)*L)/2,c=T+(I-r*A)/2;c<=u;){for(var y=g+w;y<=z;){var a=t([c,y],e);i?CD(a,i)&&j.push(a):j.push(a),y+=L}c+=A}return s(j)}function QD(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.precision,t=N.coordinates,i=N.mutate;if(D=void 0===D||null===D||isNaN(D)?6:D,t=void 0===t||null===t||isNaN(t)?3:t,!M)throw new Error("<geojson> is required");if("number"!=typeof D)throw new Error("<precision> must be a number");if("number"!=typeof t)throw new Error("<coordinates> must be a number");!1!==i&&void 0!==i||(M=JSON.parse(JSON.stringify(M)));var e=Math.pow(10,D);return l(M,(function(M){!function(M,N,D){M.length>D&&M.splice(D,M.length);for(var t=0;t<M.length;t++)M[t]=Math.round(M[t]*N)/N}(M,e,t)})),M}function dD(M,N){if(!M||!N)return!1;if(M.length!==N.length)return!1;for(var D=0,t=M.length;D<t;D++)if(M[D]instanceof Array&&N[D]instanceof Array){if(!dD(M[D],N[D]))return!1}else if(M[D]!==N[D])return!1;return!0}function YD(M,N){if(void 0===N&&(N=!0),3!=M.length)throw new Error("This function requires an array of three points [x,y]");return(M[1][0]-M[0][0])*(M[2][1]-M[0][1])-(M[1][1]-M[0][1])*(M[2][0]-M[0][0])>=0==N}function pD(M,N){if(!M||!N)return!1;if(M.length!=N.length)return!1;for(var D=0,t=M.length;D<t;D++)if(M[D]instanceof Array&&N[D]instanceof Array){if(!pD(M[D],N[D]))return!1}else if(M[D]!=N[D])return!1;return!0}function UD(M,N){var D=[],t=KN();return m(N,(function(N){if(D.forEach((function(M,N){M.id=N})),D.length){var i=t.search(N);if(i.features.length){var e=fD(N,i);D=D.filter((function(M){return M.id!==e.id})),t.remove(e),Y(hD(e,N),(function(M){D.push(M),t.insert(M)}))}}else(D=hD(M,N).features).forEach((function(M){M.bbox||(M.bbox=zN(G(M)))})),t.load(s(D))})),s(D)}function hD(M,N){var D=[],t=R(M)[0],i=R(M)[M.geometry.coordinates.length-1];if(mD(t,W(N))||mD(i,W(N)))return s([M]);var e=KN(),j=ND(M);e.load(j);var g=e.search(N);if(!g.features.length)return s([M]);var u=fD(N,g),z=p(j,(function(M,t,i){var e=R(t)[1],j=W(N);return i===u.id?(M.push(j),D.push(T(M)),mD(j,e)?[j]:[j,e]):(M.push(e),M)}),[t]);return z.length>1&&D.push(T(z)),s(D)}function fD(M,N){if(!N.features.length)throw new Error("lines must contain features");if(1===N.features.length)return N.features[0];var D,t=1/0;return Y(N,(function(N){var i=iD(N,M).properties.dist;i<t&&(D=N,t=i)})),D}function mD(M,N){return M[0]===N[0]&&M[1]===N[1]}function vD(M,N,D,t,i){if(i=i||{},!x(i))throw new Error("options is invalid");var e=i.steps,j=i.units;if(!M)throw new Error("center is required");if(!N)throw new Error("radius is required");if(void 0===D||null===D)throw new Error("bearing1 is required");if(void 0===t||null===t)throw new Error("bearing2 is required");if("object"!=typeof i)throw new Error("options must be an object");e=e||64;var g=BD(D),s=BD(t),u=M.properties;if(g===s)return T(LN(M,N,i).geometry.coordinates[0],u);for(var z=g,A=g<s?s:s+360,L=z,I=[],n=0;L<A;)I.push(AN(M,N,L,j).geometry.coordinates),L=z+360*++n/e;return L>A&&I.push(AN(M,N,A,j).geometry.coordinates),T(I,u)}function BD(M){var N=M%360;return N<0&&(N+=360),N}function bD(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.properties,t=q(M),i=R(M);if(D=D||M.properties||{},!i.length)throw new Error("polygon must contain coordinates");switch(t){case"Polygon":return PD(i,D);case"MultiPolygon":var e=[];return i.forEach((function(M){e.push(PD(M,D))})),s(e);default:throw new Error("geom "+t+" not supported")}}function PD(M,N){return M.length>1?u(M,N):T(M[0],N)}function ZD(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.properties,t=N.autoComplete,i=N.orderCoords;if(!M)throw new Error("lines is required");switch(t=void 0===t||t,i=void 0===i||i,q(M)){case"FeatureCollection":case"GeometryCollection":var e=[];return(M.features?M.features:M.geometries).forEach((function(M){e.push(R(GD(M,{},t,i)))})),A(e,D)}return GD(M,D,t,i)}function GD(M,N,D,t){N=N||M.properties||{};var i=R(M),j=q(M);if(!i.length)throw new Error("line must contain coordinates");switch(j){case"LineString":return D&&(i=WD(i)),e([i],N);case"MultiLineString":var g=[],s=0;return i.forEach((function(M){if(D&&(M=WD(M)),t){var N=function(M){var N=M[0],D=M[1],t=M[2],i=M[3];return Math.abs(N-t)*Math.abs(D-i)}(G(T(M)));N>s?(g.unshift(M),s=N):g.push(M)}else g.push(M)})),e(g,N);default:throw new Error("geometry type "+j+" is not supported")}}function WD(M){var N=M[0],D=N[0],t=N[1],i=M[M.length-1],e=i[0],j=i[1];return D===e&&t===j||M.push(N),M}function RD(M,N,D){var t,i,e,j,T,g=M.length,s=_D(M[0],N),u=[];for(D||(D=[]),t=1;t<g;t++){for(i=M[t-1],j=T=_D(e=M[t],N);;){if(!(s|j)){u.push(i),j!==T?(u.push(e),t<g-1&&(D.push(u),u=[])):t===g-1&&u.push(e);break}if(s&j)break;s?s=_D(i=XD(i,e,s,N),N):j=_D(e=XD(i,e,j,N),N)}s=T}return u.length&&D.push(u),D}function XD(M,N,D,t){return 8&D?[M[0]+(N[0]-M[0])*(t[3]-M[1])/(N[1]-M[1]),t[3]]:4&D?[M[0]+(N[0]-M[0])*(t[1]-M[1])/(N[1]-M[1]),t[1]]:2&D?[t[2],M[1]+(N[1]-M[1])*(t[2]-M[0])/(N[0]-M[0])]:1&D?[t[0],M[1]+(N[1]-M[1])*(t[0]-M[0])/(N[0]-M[0])]:null}function _D(M,N){var D=0;return M[0]<N[0]?D|=1:M[0]>N[2]&&(D|=2),M[1]<N[1]?D|=4:M[1]>N[3]&&(D|=8),D}function HD(M,N){for(var D=[],t=0;t<M.length;t++){var i=mj.polygon(M[t],N);i.length>0&&(i[0][0]===i[i.length-1][0]&&i[0][1]===i[i.length-1][1]||i.push(i[0]),i.length>=4&&D.push(i))}return D}function FD(M){return"[object Arguments]"===Object.prototype.toString.call(M)}function VD(M,N,D){return D||(D={}),M===N||(M instanceof Date&&N instanceof Date?M.getTime()===N.getTime():!M||!N||"object"!=typeof M&&"object"!=typeof N?(D.strict,M===N):function(M,N,D){var t,i;if(JD(M)||JD(N))return!1;if(M.prototype!==N.prototype)return!1;if(FD(M))return!!FD(N)&&(M=vj.call(M),N=vj.call(N),VD(M,N,D));if(qD(M)){if(!qD(N))return!1;if(M.length!==N.length)return!1;for(t=0;t<M.length;t++)if(M[t]!==N[t])return!1;return!0}try{var e=Object.keys(M),j=Object.keys(N)}catch(M){return!1}if(e.length!==j.length)return!1;for(e.sort(),j.sort(),t=e.length-1;t>=0;t--)if(e[t]!==j[t])return!1;for(t=e.length-1;t>=0;t--)if(i=e[t],!VD(M[i],N[i],D))return!1;return typeof M==typeof N}(M,N,D))}function JD(M){return null===M||void 0===M}function qD(M){return!(!M||"object"!=typeof M||"number"!=typeof M.length)&&"function"==typeof M.copy&&"function"==typeof M.slice&&!(M.length>0&&"number"!=typeof M[0])}function KD(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t,i=D.tolerance||0,e=[],j=KN();return j.load(ND(M)),B(N,(function(M){var N=!1;Y(j.search(M),(function(D){if(!1===N){var e=R(M).sort(),j=R(D).sort();VD(e,j)||(0===i?xD(e[0],D)&&xD(e[1],D):iD(D,e[0]).properties.dist<=i&&iD(D,e[1]).properties.dist<=i)?(N=!0,t=t?$D(t,M):M):(0===i?xD(j[0],M)&&xD(j[1],M):iD(M,j[0]).properties.dist<=i&&iD(M,j[1]).properties.dist<=i)&&(t=t?$D(t,D):D)}})),!1===N&&t&&(e.push(t),t=void 0)})),t&&e.push(t),s(e)}function $D(M,N){var D=R(N),t=R(M),i=t[0],e=t[t.length-1],j=M.geometry.coordinates;return VD(D[0],i)?j.unshift(D[1]):VD(D[0],e)?j.push(D[1]):VD(D[1],i)?j.unshift(D[0]):VD(D[1],e)&&j.push(D[0]),M}function Mt(M){var N=M%360;return N<0&&(N+=360),N}function Nt(M,N,D,i){if(i=i||{},!x(i))throw new Error("options is invalid");var e=i.units,j=i.properties;if(!M)throw new Error("origin is required");if(void 0===N||null===N)throw new Error("distance is required");if(void 0===D||null===D)throw new Error("bearing is required");if(!(N>=0))throw new Error("distance must be greater than 0");var T=o(N,e,"meters"),g=W(M),s=function(M,N,D,t){t=void 0===t?he:Number(t);var i=N/t,e=M[0]*Math.PI/180,j=a(M[1]),T=a(D),g=i*Math.cos(T),s=j+g;Math.abs(s)>Math.PI/2&&(s=s>0?Math.PI-s:-Math.PI-s);var u=Math.log(Math.tan(s/2+Math.PI/4)/Math.tan(j/2+Math.PI/4)),z=Math.abs(u)>1e-11?g/u:Math.cos(j),A=i*Math.sin(T)/z;return[(180*(e+A)/Math.PI+540)%360-180,180*s/Math.PI]}(g,T,D);return s[0]+=s[0]-g[0]>180?-360:g[0]-s[0]>180?360:0,t(s,j)}function Dt(M,N,D,t,i,e){for(var j=0;j<M.length;j++){var T=M[j],g=M[j+1];j===M.length-1&&(g=M[0]),t=tt(T,g,N),D<=0&&t>0?function(M,N,D){return tt(M,N,D)<0}(N,T,i)||(i=T):D>0&&t<=0&&(function(M,N,D){return tt(M,N,D)>0}(N,T,e)||(e=T)),D=t}return[i,e]}function tt(M,N,D){return(N[0]-M[0])*(D[1]-M[1])-(D[0]-M[0])*(N[1]-M[1])}function it(M){if(!M)throw new Error("line is required");var N=M.geometry?M.geometry.type:M.type;if(!Array.isArray(M)&&"LineString"!==N)throw new Error("geometry must be a LineString");for(var D,t,i=R(M),e=0,j=1;j<i.length;)D=t||i[0],e+=((t=i[j])[0]-D[0])*(t[1]+D[1]),j++;return e>0}function et(M,N){switch("Feature"===M.type?M.geometry.type:M.type){case"GeometryCollection":return h(M,(function(M){et(M,N)})),M;case"LineString":return jt(R(M),N),M;case"Polygon":return Tt(R(M),N),M;case"MultiLineString":return R(M).forEach((function(M){jt(M,N)})),M;case"MultiPolygon":return R(M).forEach((function(M){Tt(M,N)})),M;case"Point":case"MultiPoint":return M}}function jt(M,N){it(M)===N&&M.reverse()}function Tt(M,N){it(M[0])!==N&&M[0].reverse();for(var D=1;D<M.length;D++)it(M[D])===N&&M[D].reverse()}function gt(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.zProperty||"elevation",t=N.flip,i=N.flags;F(M,"Point","input must contain Points");for(var e=function(M,N){var D={};return Y(M,(function(M){var N=R(M)[1];D[N]||(D[N]=[]),D[N].push(M)})),Object.keys(D).map((function(M){var N=D[M],t=N.sort((function(M,N){return R(M)[0]-R(N)[0]}));return t})).sort((function(M,D){return N?R(M[0])[1]-R(D[0])[1]:R(D[0])[1]-R(M[0])[1]}))}(M,t),j=[],T=0;T<e.length;T++){for(var g=e[T],s=[],u=0;u<g.length;u++){var z=g[u];z.properties[D]?s.push(z.properties[D]):s.push(0),!0===i&&(z.properties.matrixPosition=[T,u])}j.push(s)}return j}function st(M,N,D,t){t=t||{};for(var i=Object.keys(Bj),e=0;e<i.length;e++){var j=i[e],T=t[j];T=void 0!==T&&null!==T?T:Bj[j],bj[j]=T}bj.verbose&&console.log("MarchingSquaresJS-isoBands: computing isobands for ["+N+":"+(N+D)+"]");var g,s=function(M,N,D){for(var t=M.length-1,i=M[0].length-1,e={rows:t,cols:i,cells:[]},j=N+Math.abs(D),T=0;T<t;++T){e.cells[T]=[];for(var g=0;g<i;++g){var s=0,u=M[T+1][g],z=M[T+1][g+1],A=M[T][g+1],L=M[T][g];if(!(isNaN(u)||isNaN(z)||isNaN(A)||isNaN(L))){s|=u<N?0:u>j?128:64,s|=z<N?0:z>j?32:16,s|=A<N?0:A>j?8:4;var I=+(s|=L<N?0:L>j?2:1),n=0;if(17===s||18===s||33===s||34===s||38===s||68===s||72===s||98===s||102===s||132===s||136===s||137===s||152===s||153===s){var r=(u+z+A+L)/4;n=r>j?2:r<N?0:1,34===s?1===n?s=35:0===n&&(s=136):136===s?1===n?(s=35,n=4):0===n&&(s=34):17===s?1===n?(s=155,n=4):0===n&&(s=153):68===s?1===n?(s=103,n=4):0===n&&(s=102):153===s?1===n&&(s=155):102===s?1===n&&(s=103):152===s?n<2&&(s=156,n=1):137===s?n<2&&(s=139,n=1):98===s?n<2&&(s=99,n=1):38===s?n<2&&(s=39,n=1):18===s?n>0?(s=156,n=4):s=152:33===s?n>0?(s=139,n=4):s=137:72===s?n>0?(s=99,n=4):s=98:132===s&&(n>0?(s=39,n=4):s=38)}if(0!=s&&170!=s){var w,c,y,a,o,E,O,x;w=c=y=a=o=E=O=x=.5;var C=[];1===s?(y=1-ut(N,A,L),x=1-ut(N,u,L),C.push(CT[s])):169===s?(y=ut(j,L,A),x=ut(j,L,u),C.push(CT[s])):4===s?(E=1-ut(N,z,A),a=ut(N,L,A),C.push(OT[s])):166===s?(E=ut(j,A,z),a=1-ut(j,A,L),C.push(OT[s])):16===s?(o=ut(N,A,z),c=ut(N,u,z),C.push(ET[s])):154===s?(o=1-ut(j,z,A),c=1-ut(j,z,u),C.push(ET[s])):64===s?(O=ut(N,L,u),w=1-ut(N,z,u),C.push(lT[s])):106===s?(O=1-ut(j,u,L),w=ut(j,u,z),C.push(lT[s])):168===s?(a=ut(j,L,A),y=ut(N,L,A),x=ut(N,L,u),O=ut(j,L,u),C.push(xT[s]),C.push(CT[s])):2===s?(a=1-ut(N,A,L),y=1-ut(j,A,L),x=1-ut(j,u,L),O=1-ut(N,u,L),C.push(xT[s]),C.push(CT[s])):162===s?(o=ut(j,A,z),E=ut(N,A,z),a=1-ut(N,A,L),y=1-ut(j,A,L),C.push(xT[s]),C.push(CT[s])):8===s?(o=1-ut(N,z,A),E=1-ut(j,z,A),a=ut(j,L,A),y=ut(N,L,A),C.push(ET[s]),C.push(OT[s])):138===s?(o=1-ut(N,z,A),E=1-ut(j,z,A),w=1-ut(j,z,u),c=1-ut(N,z,u),C.push(ET[s]),C.push(OT[s])):32===s?(o=ut(j,A,z),E=ut(N,A,z),w=ut(N,u,z),c=ut(j,u,z),C.push(ET[s]),C.push(OT[s])):42===s?(x=1-ut(j,u,L),O=1-ut(N,u,L),w=ut(N,u,z),c=ut(j,u,z),C.push(ST[s]),C.push(lT[s])):128===s&&(x=ut(N,L,u),O=ut(j,L,u),w=1-ut(j,z,u),c=1-ut(N,z,u),C.push(ST[s]),C.push(lT[s])),5===s?(E=1-ut(N,z,A),x=1-ut(N,u,L),C.push(OT[s])):165===s?(E=ut(j,A,z),x=ut(j,L,u),C.push(OT[s])):20===s?(a=ut(N,L,A),c=ut(N,u,z),C.push(xT[s])):150===s?(a=1-ut(j,A,L),c=1-ut(j,z,u),C.push(xT[s])):80===s?(o=ut(N,A,z),O=ut(N,L,u),C.push(ET[s])):90===s?(o=1-ut(j,z,A),O=1-ut(j,u,L),C.push(ET[s])):65===s?(y=1-ut(N,A,L),w=1-ut(N,z,u),C.push(CT[s])):105===s?(y=ut(j,L,A),w=ut(j,u,z),C.push(CT[s])):160===s?(o=ut(j,A,z),E=ut(N,A,z),x=ut(N,L,u),O=ut(j,L,u),C.push(ET[s]),C.push(OT[s])):10===s?(o=1-ut(N,z,A),E=1-ut(j,z,A),x=1-ut(j,u,L),O=1-ut(N,u,L),C.push(ET[s]),C.push(OT[s])):130===s?(a=1-ut(N,A,L),y=1-ut(j,A,L),w=1-ut(j,z,u),c=1-ut(N,z,u),C.push(xT[s]),C.push(CT[s])):40===s?(a=ut(j,L,A),y=ut(N,L,A),w=ut(N,u,z),c=ut(j,u,z),C.push(xT[s]),C.push(CT[s])):101===s?(E=ut(j,A,z),w=ut(j,u,z),C.push(OT[s])):69===s?(E=1-ut(N,z,A),w=1-ut(N,z,u),C.push(OT[s])):149===s?(x=ut(j,L,u),c=1-ut(j,z,u),C.push(ST[s])):21===s?(x=1-ut(N,u,L),c=ut(N,u,z),C.push(ST[s])):86===s?(a=1-ut(j,A,L),O=1-ut(j,u,L),C.push(xT[s])):84===s?(a=ut(N,L,A),O=ut(N,L,u),C.push(xT[s])):89===s?(o=1-ut(j,z,A),y=ut(j,L,A),C.push(CT[s])):81===s?(o=ut(N,A,z),y=1-ut(N,A,L),C.push(CT[s])):96===s?(o=ut(j,A,z),E=ut(N,A,z),O=ut(N,L,u),w=ut(j,u,z),C.push(ET[s]),C.push(OT[s])):74===s?(o=1-ut(N,z,A),E=1-ut(j,z,A),O=1-ut(j,u,L),w=1-ut(N,z,u),C.push(ET[s]),C.push(OT[s])):24===s?(o=1-ut(j,z,A),a=ut(j,L,A),y=ut(N,L,A),c=ut(N,u,z),C.push(ET[s]),C.push(CT[s])):146===s?(o=ut(N,A,z),a=1-ut(N,A,L),y=1-ut(j,A,L),c=1-ut(j,z,u),C.push(ET[s]),C.push(CT[s])):6===s?(E=1-ut(N,z,A),a=1-ut(j,A,L),x=1-ut(j,u,L),O=1-ut(N,u,L),C.push(OT[s]),C.push(xT[s])):164===s?(E=ut(j,A,z),a=ut(N,L,A),x=ut(N,L,u),O=ut(j,L,u),C.push(OT[s]),C.push(xT[s])):129===s?(y=1-ut(N,A,L),x=ut(j,L,u),w=1-ut(j,z,u),c=1-ut(N,z,u),C.push(CT[s]),C.push(ST[s])):41===s?(y=ut(j,L,A),x=1-ut(N,u,L),w=ut(N,u,z),c=ut(j,u,z),C.push(CT[s]),C.push(ST[s])):66===s?(a=1-ut(N,A,L),y=1-ut(j,A,L),O=1-ut(j,u,L),w=1-ut(N,z,u),C.push(xT[s]),C.push(CT[s])):104===s?(a=ut(j,L,A),y=ut(N,L,A),O=ut(N,L,u),w=ut(j,u,z),C.push(CT[s]),C.push(kT[s])):144===s?(o=ut(N,A,z),x=ut(N,L,u),O=ut(j,L,u),c=1-ut(j,z,u),C.push(ET[s]),C.push(lT[s])):26===s?(o=1-ut(j,z,A),x=1-ut(j,u,L),O=1-ut(N,u,L),c=ut(N,u,z),C.push(ET[s]),C.push(lT[s])):36===s?(E=ut(j,A,z),a=ut(N,L,A),w=ut(N,u,z),c=ut(j,u,z),C.push(OT[s]),C.push(xT[s])):134===s?(E=1-ut(N,z,A),a=1-ut(j,A,L),w=1-ut(j,z,u),c=1-ut(N,z,u),C.push(OT[s]),C.push(xT[s])):9===s?(o=1-ut(N,z,A),E=1-ut(j,z,A),y=ut(j,L,A),x=1-ut(N,u,L),C.push(ET[s]),C.push(OT[s])):161===s?(o=ut(j,A,z),E=ut(N,A,z),y=1-ut(N,A,L),x=ut(j,L,u),C.push(ET[s]),C.push(OT[s])):37===s?(E=ut(j,A,z),x=1-ut(N,u,L),w=ut(N,u,z),c=ut(j,u,z),C.push(OT[s]),C.push(ST[s])):133===s?(E=1-ut(N,z,A),x=ut(j,L,u),w=1-ut(j,z,u),c=1-ut(N,z,u),C.push(OT[s]),C.push(ST[s])):148===s?(a=ut(N,L,A),x=ut(N,L,u),O=ut(j,L,u),c=1-ut(j,z,u),C.push(xT[s]),C.push(lT[s])):22===s?(a=1-ut(j,A,L),x=1-ut(j,u,L),O=1-ut(N,u,L),c=ut(N,u,z),C.push(xT[s]),C.push(lT[s])):82===s?(o=ut(N,A,z),a=1-ut(N,A,L),y=1-ut(j,A,L),O=1-ut(j,u,L),C.push(ET[s]),C.push(CT[s])):88===s?(o=1-ut(j,z,A),a=ut(j,L,A),y=ut(N,L,A),O=ut(N,L,u),C.push(ET[s]),C.push(CT[s])):73===s?(o=1-ut(N,z,A),E=1-ut(j,z,A),y=ut(j,L,A),w=1-ut(N,z,u),C.push(ET[s]),C.push(OT[s])):97===s?(o=ut(j,A,z),E=ut(N,A,z),y=1-ut(N,A,L),w=ut(j,u,z),C.push(ET[s]),C.push(OT[s])):145===s?(o=ut(N,A,z),y=1-ut(N,A,L),x=ut(j,L,u),c=1-ut(j,z,u),C.push(ET[s]),C.push(ST[s])):25===s?(o=1-ut(j,z,A),y=ut(j,L,A),x=1-ut(N,u,L),c=ut(N,u,z),C.push(ET[s]),C.push(ST[s])):70===s?(E=1-ut(N,z,A),a=1-ut(j,A,L),O=1-ut(j,u,L),w=1-ut(N,z,u),C.push(OT[s]),C.push(xT[s])):100===s?(E=ut(j,A,z),a=ut(N,L,A),O=ut(N,L,u),w=ut(j,u,z),C.push(OT[s]),C.push(xT[s])):34===s?(0===n?(o=1-ut(N,z,A),E=1-ut(j,z,A),a=ut(j,L,A),y=ut(N,L,A),x=ut(N,L,u),O=ut(j,L,u),w=1-ut(j,z,u),c=1-ut(N,z,u)):(o=ut(j,A,z),E=ut(N,A,z),a=1-ut(N,A,L),y=1-ut(j,A,L),x=1-ut(j,u,L),O=1-ut(N,u,L),w=ut(N,u,z),c=ut(j,u,z)),C.push(ET[s]),C.push(OT[s]),C.push(ST[s]),C.push(lT[s])):35===s?(4===n?(o=1-ut(N,z,A),E=1-ut(j,z,A),a=ut(j,L,A),y=ut(N,L,A),x=ut(N,L,u),O=ut(j,L,u),w=1-ut(j,z,u),c=1-ut(N,z,u)):(o=ut(j,A,z),E=ut(N,A,z),a=1-ut(N,A,L),y=1-ut(j,A,L),x=1-ut(j,u,L),O=1-ut(N,u,L),w=ut(N,u,z),c=ut(j,u,z)),C.push(ET[s]),C.push(OT[s]),C.push(CT[s]),C.push(lT[s])):136===s?(0===n?(o=ut(j,A,z),E=ut(N,A,z),a=1-ut(N,A,L),y=1-ut(j,A,L),x=1-ut(j,u,L),O=1-ut(N,u,L),w=ut(N,u,z),c=ut(j,u,z)):(o=1-ut(N,z,A),E=1-ut(j,z,A),a=ut(j,L,A),y=ut(N,L,A),x=ut(N,L,u),O=ut(j,L,u),w=1-ut(j,z,u),c=1-ut(N,z,u)),C.push(ET[s]),C.push(OT[s]),C.push(ST[s]),C.push(lT[s])):153===s?(0===n?(o=ut(N,A,z),y=1-ut(N,A,L),x=1-ut(N,u,L),c=ut(N,u,z)):(o=1-ut(j,z,A),y=ut(j,L,A),x=ut(j,L,u),c=1-ut(j,z,u)),C.push(ET[s]),C.push(CT[s])):102===s?(0===n?(E=1-ut(N,z,A),a=ut(N,L,A),O=ut(N,L,u),w=1-ut(N,z,u)):(E=ut(j,A,z),a=1-ut(j,A,L),O=1-ut(j,u,L),w=ut(j,u,z)),C.push(OT[s]),C.push(lT[s])):155===s?(4===n?(o=ut(N,A,z),y=1-ut(N,A,L),x=1-ut(N,u,L),c=ut(N,u,z)):(o=1-ut(j,z,A),y=ut(j,L,A),x=ut(j,L,u),c=1-ut(j,z,u)),C.push(ET[s]),C.push(ST[s])):103===s?(4===n?(E=1-ut(N,z,A),a=ut(N,L,A),O=ut(N,L,u),w=1-ut(N,z,u)):(E=ut(j,A,z),a=1-ut(j,A,L),O=1-ut(j,u,L),w=ut(j,u,z)),C.push(OT[s]),C.push(xT[s])):152===s?(0===n?(o=ut(N,A,z),a=1-ut(N,A,L),y=1-ut(j,A,L),x=1-ut(j,u,L),O=1-ut(N,u,L),c=ut(N,u,z)):(o=1-ut(j,z,A),a=ut(j,L,A),y=ut(N,L,A),x=ut(N,L,u),O=ut(j,L,u),c=1-ut(j,z,u)),C.push(ET[s]),C.push(xT[s]),C.push(CT[s])):156===s?(4===n?(o=ut(N,A,z),a=1-ut(N,A,L),y=1-ut(j,A,L),x=1-ut(j,u,L),O=1-ut(N,u,L),c=ut(N,u,z)):(o=1-ut(j,z,A),a=ut(j,L,A),y=ut(N,L,A),x=ut(N,L,u),O=ut(j,L,u),c=1-ut(j,z,u)),C.push(ET[s]),C.push(CT[s]),C.push(lT[s])):137===s?(0===n?(o=ut(j,A,z),E=ut(N,A,z),y=1-ut(N,A,L),x=1-ut(N,u,L),w=ut(N,u,z),c=ut(j,u,z)):(o=1-ut(N,z,A),E=1-ut(j,z,A),y=ut(j,L,A),x=ut(j,L,u),w=1-ut(j,z,u),c=1-ut(N,z,u)),C.push(ET[s]),C.push(OT[s]),C.push(CT[s])):139===s?(4===n?(o=ut(j,A,z),E=ut(N,A,z),y=1-ut(N,A,L),x=1-ut(N,u,L),w=ut(N,u,z),c=ut(j,u,z)):(o=1-ut(N,z,A),E=1-ut(j,z,A),y=ut(j,L,A),x=ut(j,L,u),w=1-ut(j,z,u),c=1-ut(N,z,u)),C.push(ET[s]),C.push(OT[s]),C.push(ST[s])):98===s?(0===n?(o=1-ut(N,z,A),E=1-ut(j,z,A),a=ut(j,L,A),y=ut(N,L,A),O=ut(N,L,u),w=1-ut(N,z,u)):(o=ut(j,A,z),E=ut(N,A,z),a=1-ut(N,A,L),y=1-ut(j,A,L),O=1-ut(j,u,L),w=ut(j,u,z)),C.push(ET[s]),C.push(OT[s]),C.push(lT[s])):99===s?(4===n?(o=1-ut(N,z,A),E=1-ut(j,z,A),a=ut(j,L,A),y=ut(N,L,A),O=ut(N,L,u),w=1-ut(N,z,u)):(o=ut(j,A,z),E=ut(N,A,z),a=1-ut(N,A,L),y=1-ut(j,A,L),O=1-ut(j,u,L),w=ut(j,u,z)),C.push(ET[s]),C.push(OT[s]),C.push(CT[s])):38===s?(0===n?(E=1-ut(N,z,A),a=ut(N,L,A),x=ut(N,L,u),O=ut(j,L,u),w=1-ut(j,z,u),c=1-ut(N,z,u)):(E=ut(j,A,z),a=1-ut(j,A,L),x=1-ut(j,u,L),O=1-ut(N,u,L),w=ut(N,u,z),c=ut(j,u,z)),C.push(OT[s]),C.push(ST[s]),C.push(lT[s])):39===s?(4===n?(E=1-ut(N,z,A),a=ut(N,L,A),x=ut(N,L,u),O=ut(j,L,u),w=1-ut(j,z,u),c=1-ut(N,z,u)):(E=ut(j,A,z),a=1-ut(j,A,L),x=1-ut(j,u,L),O=1-ut(N,u,L),w=ut(N,u,z),c=ut(j,u,z)),C.push(OT[s]),C.push(xT[s]),C.push(lT[s])):85===s&&(o=1,E=0,a=1,y=0,x=0,O=1,w=0,c=1),(w<0||w>1||c<0||c>1||o<0||o>1||a<0||a>1||x<0||x>1||O<0||O>1)&&console.log("MarchingSquaresJS-isoBands: "+s+" "+I+" "+u+","+z+","+A+","+L+" "+n+" "+w+" "+c+" "+o+" "+E+" "+a+" "+y+" "+x+" "+O),e.cells[T][g]={cval:s,cval_real:I,flipped:n,topleft:w,topright:c,righttop:o,rightbottom:E,bottomright:a,bottomleft:y,leftbottom:x,lefttop:O,edges:C}}}}}return e}(M,N,D);return bj.polygons?(bj.verbose&&console.log("MarchingSquaresJS-isoBands: returning single polygons for each grid cell"),g=function(M){var N=[],D=0;return M.cells.forEach((function(M,t){M.forEach((function(M,i){if(void 0!==M){var e=dT[M.cval](M);"object"==typeof e&&zt(e)?"object"==typeof e[0]&&zt(e[0])?"object"==typeof e[0][0]&&zt(e[0][0])?e.forEach((function(M){M.forEach((function(M){M[0]+=i,M[1]+=t})),N[D++]=M})):(e.forEach((function(M){M[0]+=i,M[1]+=t})),N[D++]=e):console.log("MarchingSquaresJS-isoBands: bandcell polygon with malformed coordinates"):console.log("MarchingSquaresJS-isoBands: bandcell polygon with null coordinates")}}))})),N}(s)):(bj.verbose&&console.log("MarchingSquaresJS-isoBands: returning polygon paths for entire data grid"),g=function(M){for(var N=[],D=M.rows,t=M.cols,i=[],e=0;e<D;e++)for(var j=0;j<t;j++)if(void 0!==M.cells[e][j]&&M.cells[e][j].edges.length>0){var T=M.cells[e][j],g=function(M){if(M.edges.length>0){var N=M.edges[M.edges.length-1],D=M.cval_real;switch(N){case 0:return D&Zj?{p:[1,M.righttop],x:-1,y:0,o:1}:{p:[M.topleft,1],x:0,y:-1,o:0};case 1:return D&Gj?{p:[M.topleft,1],x:0,y:-1,o:0}:{p:[1,M.rightbottom],x:-1,y:0,o:0};case 2:return D&Gj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[M.topleft,1],x:0,y:-1,o:0};case 3:return D&Wj?{p:[M.topleft,1],x:0,y:-1,o:0}:{p:[M.bottomleft,0],x:0,y:1,o:0};case 4:return D&Zj?{p:[1,M.righttop],x:-1,y:0,o:1}:{p:[M.topright,1],x:0,y:-1,o:1};case 5:return D&Gj?{p:[M.topright,1],x:0,y:-1,o:1}:{p:[1,M.rightbottom],x:-1,y:0,o:0};case 6:return D&Gj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[M.topright,1],x:0,y:-1,o:1};case 7:return D&Wj?{p:[M.topright,1],x:0,y:-1,o:1}:{p:[M.bottomleft,0],x:0,y:1,o:0};case 8:return D&Gj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[1,M.righttop],x:-1,y:0,o:1};case 9:return D&Wj?{p:[1,M.righttop],x:-1,y:0,o:1}:{p:[M.bottomleft,0],x:0,y:1,o:0};case 10:return D&Wj?{p:[0,M.leftbottom],x:1,y:0,o:0}:{p:[1,M.righttop],x:-1,y:0,o:1};case 11:return D&Pj?{p:[1,M.righttop],x:-1,y:0,o:1}:{p:[0,M.lefttop],x:1,y:0,o:1};case 12:return D&Gj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[1,M.rightbottom],x:-1,y:0,o:0};case 13:return D&Wj?{p:[1,M.rightbottom],x:-1,y:0,o:0}:{p:[M.bottomleft,0],x:0,y:1,o:0};case 14:return D&Wj?{p:[0,M.leftbottom],x:1,y:0,o:0}:{p:[1,M.rightbottom],x:-1,y:0,o:0};case 15:return D&Pj?{p:[1,M.rightbottom],x:-1,y:0,o:0}:{p:[0,M.lefttop],x:1,y:0,o:1};case 16:return D&Gj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[0,M.leftbottom],x:1,y:0,o:0};case 17:return D&Pj?{p:[M.bottomright,0],x:0,y:1,o:1}:{p:[0,M.lefttop],x:1,y:0,o:1};case 18:return D&Wj?{p:[0,M.leftbottom],x:1,y:0,o:0}:{p:[M.bottomleft,0],x:0,y:1,o:0};case 19:return D&Pj?{p:[M.bottomleft,0],x:0,y:1,o:0}:{p:[0,M.lefttop],x:1,y:0,o:1};case 20:return D&Pj?{p:[M.topleft,1],x:0,y:-1,o:0}:{p:[0,M.leftbottom],x:1,y:0,o:0};case 21:return D&Zj?{p:[0,M.leftbottom],x:1,y:0,o:0}:{p:[M.topright,1],x:0,y:-1,o:1};case 22:return D&Pj?{p:[M.topleft,1],x:0,y:-1,o:0}:{p:[0,M.lefttop],x:1,y:0,o:1};case 23:return D&Zj?{p:[0,M.lefttop],x:1,y:0,o:1}:{p:[M.topright,1],x:0,y:-1,o:1};default:console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(M)}}return null}(T),s=null,u=j,z=e;null!==g&&i.push([g.p[0]+u,g.p[1]+z]);do{if(null===(s=function(M,N,D,t){var i,e,j,T,g,s=M.cval;switch(N){case-1:switch(t){case 0:i=OT[s],j=$j[s],T=MT[s],g=NT[s];break;default:i=ET[s],j=Jj[s],T=qj[s],g=Kj[s]}break;case 1:switch(t){case 0:i=ST[s],j=zT[s],T=AT[s],g=LT[s];break;default:i=lT[s],j=gT[s],T=sT[s],g=uT[s]}break;default:switch(D){case-1:switch(t){case 0:i=kT[s],j=Rj[s],T=Xj[s],g=_j[s];break;default:i=QT[s],j=Hj[s],T=Fj[s],g=Vj[s]}break;case 1:switch(t){case 0:i=CT[s],j=DT[s],T=tT[s],g=iT[s];break;default:i=xT[s],j=eT[s],T=jT[s],g=TT[s]}}}if(e=M.edges.indexOf(i),void 0===M.edges[e])return null;switch(function(M,N){delete M.edges[N];for(var D=N+1;D<M.edges.length;D++)M.edges[D-1]=M.edges[D];M.edges.pop()}(M,e),s=M.cval_real,i){case 0:s&Zj?(N=M.topleft,D=1):(N=1,D=M.righttop);break;case 1:s&Gj?(N=1,D=M.rightbottom):(N=M.topleft,D=1);break;case 2:s&Gj?(N=M.topleft,D=1):(N=M.bottomright,D=0);break;case 3:s&Wj?(N=M.bottomleft,D=0):(N=M.topleft,D=1);break;case 4:s&Zj?(N=M.topright,D=1):(N=1,D=M.righttop);break;case 5:s&Gj?(N=1,D=M.rightbottom):(N=M.topright,D=1);break;case 6:s&Gj?(N=M.topright,D=1):(N=M.bottomright,D=0);break;case 7:s&Wj?(N=M.bottomleft,D=0):(N=M.topright,D=1);break;case 8:s&Gj?(N=1,D=M.righttop):(N=M.bottomright,D=0);break;case 9:s&Wj?(N=M.bottomleft,D=0):(N=1,D=M.righttop);break;case 10:s&Wj?(N=1,D=M.righttop):(N=0,D=M.leftbottom);break;case 11:s&Pj?(N=0,D=M.lefttop):(N=1,D=M.righttop);break;case 12:s&Gj?(N=1,D=M.rightbottom):(N=M.bottomright,D=0);break;case 13:s&Wj?(N=M.bottomleft,D=0):(N=1,D=M.rightbottom);break;case 14:s&Wj?(N=1,D=M.rightbottom):(N=0,D=M.leftbottom);break;case 15:s&Pj?(N=0,D=M.lefttop):(N=1,D=M.rightbottom);break;case 16:s&Gj?(N=0,D=M.leftbottom):(N=M.bottomright,D=0);break;case 17:s&Pj?(N=0,D=M.lefttop):(N=M.bottomright,D=0);break;case 18:s&Wj?(N=M.bottomleft,D=0):(N=0,D=M.leftbottom);break;case 19:s&Pj?(N=0,D=M.lefttop):(N=M.bottomleft,D=0);break;case 20:s&Pj?(N=0,D=M.leftbottom):(N=M.topleft,D=1);break;case 21:s&Zj?(N=M.topright,D=1):(N=0,D=M.leftbottom);break;case 22:s&Pj?(N=0,D=M.lefttop):(N=M.topleft,D=1);break;case 23:s&Zj?(N=M.topright,D=1):(N=0,D=M.lefttop);break;default:return console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(M),null}return void 0!==N&&void 0!==D&&void 0!==j&&void 0!==T&&void 0!==g||(console.log("MarchingSquaresJS-isoBands: undefined value!"),console.log(M),console.log(N+" "+D+" "+j+" "+T+" "+g)),{p:[N,D],x:j,y:T,o:g}}(M.cells[z][u],g.x,g.y,g.o)))break;if(i.push([s.p[0]+u,s.p[1]+z]),u+=s.x,z+=s.y,g=s,z<0||z>=D||u<0||u>=t||void 0===M.cells[z][u]){u-=s.x,z-=s.y;var A=function(M,N,D,t,i,e){for(var j=M.cells[D][N],T=j.cval_real,g=N+t,s=D+i,u=[],z=!1;!z;){if(void 0===M.cells[s]||void 0===M.cells[s][g])if(s-=i,g-=t,j=M.cells[s][g],T=j.cval_real,-1===i)if(0===e)if(T&Wj)u.push([g,s]),t=-1,i=0,e=0;else{if(!(T&Gj)){u.push([g+j.bottomright,s]),t=0,i=1,e=1,z=!0;break}u.push([g+1,s]),t=1,i=0,e=0}else{if(!(T&Wj)){if(T&Gj){u.push([g+j.bottomright,s]),t=0,i=1,e=1,z=!0;break}u.push([g+j.bottomleft,s]),t=0,i=1,e=0,z=!0;break}u.push([g,s]),t=-1,i=0,e=0}else if(1===i)if(0===e){if(!(T&Zj)){if(T&Pj){u.push([g+j.topleft,s+1]),t=0,i=-1,e=0,z=!0;break}u.push([g+j.topright,s+1]),t=0,i=-1,e=1,z=!0;break}u.push([g+1,s+1]),t=1,i=0,e=1}else u.push([g+1,s+1]),t=1,i=0,e=1;else if(-1===t)if(0===e){if(!(T&Pj)){if(T&Wj){u.push([g,s+j.leftbottom]),t=1,i=0,e=0,z=!0;break}u.push([g,s+j.lefttop]),t=1,i=0,e=1,z=!0;break}u.push([g,s+1]),t=0,i=1,e=0}else{if(!(T&Pj)){console.log("MarchingSquaresJS-isoBands: wtf");break}u.push([g,s+1]),t=0,i=1,e=0}else{if(1!==t){console.log("MarchingSquaresJS-isoBands: we came from nowhere!");break}if(0===e){if(!(T&Gj)){u.push([g+1,s+j.rightbottom]),t=-1,i=0,e=0,z=!0;break}u.push([g+1,s]),t=0,i=-1,e=1}else{if(!(T&Gj)){if(T&Zj){u.push([g+1,s+j.righttop]),t=-1,i=0,e=1;break}u.push([g+1,s+j.rightbottom]),t=-1,i=0,e=0,z=!0;break}u.push([g+1,s]),t=0,i=-1,e=1}}else if(j=M.cells[s][g],T=j.cval_real,-1===t)if(0===e)if(void 0!==M.cells[s-1]&&void 0!==M.cells[s-1][g])t=0,i=-1,e=1;else{if(!(T&Wj)){u.push([g+j.bottomright,s]),t=0,i=1,e=1,z=!0;break}u.push([g,s])}else{if(!(T&Pj)){console.log("MarchingSquaresJS-isoBands: found entry from top at "+g+","+s);break}console.log("MarchingSquaresJS-isoBands: proceeding in x-direction!")}else if(1===t){if(0===e){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==M.cells[s+1]&&void 0!==M.cells[s+1][g])t=0,i=1,e=0;else{if(!(T&Zj)){u.push([g+j.topleft,s+1]),t=0,i=-1,e=0,z=!0;break}u.push([g+1,s+1]),t=1,i=0,e=1}}else if(-1===i){if(1!==e){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==M.cells[s][g+1])t=1,i=0,e=1;else{if(!(T&Gj)){u.push([g+1,s+j.righttop]),t=-1,i=0,e=1,z=!0;break}u.push([g+1,s]),t=0,i=-1,e=1}}else{if(1!==i){console.log("MarchingSquaresJS-isoBands: where did we came from???");break}if(0!==e){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==M.cells[s][g-1])t=-1,i=0,e=0;else{if(!(T&Pj)){u.push([g,s+j.leftbottom]),t=1,i=0,e=0,z=!0;break}u.push([g,s+1]),t=0,i=1,e=0}}if(g+=t,s+=i,g===N&&s===D)break}return{path:u,i:g,j:s,x:t,y:i,o:e}}(M,u,z,s.x,s.y,s.o);if(null===A)break;A.path.forEach((function(M){i.push(M)})),u=A.i,z=A.j,g=A}}while(void 0!==M.cells[z][u]&&M.cells[z][u].edges.length>0);N.push(i),i=[],M.cells[e][j].edges.length>0&&j--}return N}(s)),"function"==typeof bj.successCallback&&bj.successCallback(g),g}function ut(M,N,D){return(M-N)/(D-N)}function zt(M){return M.constructor.toString().indexOf("Array")>-1}function At(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.pivot,i=D.mutate;if(!M)throw new Error("geojson is required");if(void 0===N||null===N||isNaN(N))throw new Error("angle is required");return 0===N||(t||(t=rN(M)),!1!==i&&void 0!==i||(M=BM(M)),l(M,(function(M){var D=eD(t,M)+N,i=TD(t,M),e=R(Nt(t,i,D));M[0]=e[0],M[1]=e[1]}))),M}function Lt(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.origin,i=D.mutate;if(!M)throw new Error("geojson required");if("number"!=typeof N||0===N)throw new Error("invalid factor");var e=Array.isArray(t)||"object"==typeof t;return!0!==i&&(M=BM(M)),"FeatureCollection"!==M.type||e?It(M,N,t):(Y(M,(function(D,i){M.features[i]=It(D,N,t)})),M)}function It(M,N,D){var i="Point"===q(M);return D=function(M,N){if(void 0!==N&&null!==N||(N="centroid"),Array.isArray(N)||"object"==typeof N)return W(N);var D=M.bbox?M.bbox:G(M),i=D[0],e=D[1],j=D[2],T=D[3];switch(N){case"sw":case"southwest":case"westsouth":case"bottomleft":return t([i,e]);case"se":case"southeast":case"eastsouth":case"bottomright":return t([j,e]);case"nw":case"northwest":case"westnorth":case"topleft":return t([i,T]);case"ne":case"northeast":case"eastnorth":case"topright":return t([j,T]);case"center":return nN(M);case void 0:case null:case"centroid":return rN(M);default:throw new Error("invalid origin")}}(M,D),1===N||i||l(M,(function(M){var t=TD(D,M),i=eD(D,M),e=R(Nt(D,t*N,i));M[0]=e[0],M[1]=e[1],3===M.length&&(M[2]*=N)})),M}function nt(M){var N=M[0],D=M[1];return[D[0]-N[0],D[1]-N[1]]}function rt(M,N){return M[0]*N[1]-N[0]*M[1]}function wt(M,N){return!function(M,N){return 0===rt(nt(M),nt(N))}(M,N)&&function(M,N){var D=M[0],t=nt(M),i=N[0],e=nt(N),j=rt(t,e);return function(M,N){return[M[0]+N[0],M[1]+N[1]]}(D,function(M,N){return[M*N[0],M*N[1]]}(rt(function(M,N){return[M[0]-N[0],M[1]-N[1]]}(i,D),e)/j,t))}(M,N)}function ct(M,N,D){var t=[],i=w(N,D),e=R(M),j=[];return e.forEach((function(M,N){if(N!==e.length-1){var D=function(M,N,D){var t=Math.sqrt((M[0]-N[0])*(M[0]-N[0])+(M[1]-N[1])*(M[1]-N[1])),i=M[0]+D*(N[1]-M[1])/t,e=N[0]+D*(N[1]-M[1])/t,j=M[1]+D*(M[0]-N[0])/t,T=N[1]+D*(M[0]-N[0])/t;return[[i,j],[e,T]]}(M,e[N+1],i);if(t.push(D),N>0){var T=t[N-1],g=wt(D,T);!1!==g&&(T[1]=g,D[0]=g),j.push(T[0]),N===e.length-2&&(j.push(D[0]),j.push(D[1]))}2===e.length&&(j.push(D[0]),j.push(D[1]))}})),T(j,M.properties)}function yt(M,N,D){var t=N[0]-M[0],i=N[1]-M[1],e=D[0]-N[0],j=D[1]-N[1];return Math.sign(t*j-e*i)}function at(M,N){return N.geometry.coordinates[0].every((function(N){return dM(t(N),M)}))}function ot(M,N){for(var D=0;D<M.coordinates.length-1;D++)if(function(M,N,D){var t=D[0]-M[0],i=D[1]-M[1],e=N[0]-M[0],j=N[1]-M[1];return t*j-i*e==0&&(Math.abs(e)>=Math.abs(j)?e>0?M[0]<=D[0]&&D[0]<=N[0]:N[0]<=D[0]&&D[0]<=M[0]:j>0?M[1]<=D[1]&&D[1]<=N[1]:N[1]<=D[1]&&D[1]<=M[1])}(M.coordinates[D],M.coordinates[D+1],N.coordinates))return!0;return!1}function Et(M,N){return DD(N,bD(M)).features.length>0}function Ot(M,N){return!(M[0]>N[0])&&!(M[2]<N[2])&&!(M[1]>N[1])&&!(M[3]<N[3])}function xt(M,N){return M[0]===N[0]&&M[1]===N[1]}function Ct(M,N){for(var D=!1,t=!1,i=M.coordinates.length,e=0;e<i&&!D&&!t;){for(var j=0;j<N.coordinates.length-1;j++){var T=!0;0!==j&&j!==N.coordinates.length-2||(T=!1),kt(N.coordinates[j],N.coordinates[j+1],M.coordinates[e],T)?D=!0:t=!0}e++}return D&&t}function St(M,N){return DD(M,bD(N)).features.length>0}function lt(M,N){for(var D=!1,i=!1,e=M.coordinates[0].length,j=0;j<e&&D&&i;)dM(t(M.coordinates[0][j]),N)?D=!0:i=!0,j++;return i&&i}function kt(M,N,D,t){var i=D[0]-M[0],e=D[1]-M[1],j=N[0]-M[0],T=N[1]-M[1];return 0==i*T-e*j&&(t?Math.abs(j)>=Math.abs(T)?j>0?M[0]<=D[0]&&D[0]<=N[0]:N[0]<=D[0]&&D[0]<=M[0]:T>0?M[1]<=D[1]&&D[1]<=N[1]:N[1]<=D[1]&&D[1]<=M[1]:Math.abs(j)>=Math.abs(T)?j>0?M[0]<D[0]&&D[0]<N[0]:N[0]<D[0]&&D[0]<M[0]:T>0?M[1]<D[1]&&D[1]<N[1]:N[1]<D[1]&&D[1]<M[1])}function Qt(M){return M.coordinates.map((function(N){return{type:M.type.replace("Multi",""),coordinates:N}}))}function dt(M,N){return M.hasOwnProperty("coordinates")?M.coordinates.length===N.coordinates.length:M.length===N.length}function Yt(M,N){return BT(M,N,{strict:!0})}function pt(M,N){if(!M)throw new Error("feature1 is required");if(!N)throw new Error("feature2 is required");var D=q(M);if(D!==q(N))throw new Error("features must be of the same type");if("Point"===D)throw new Error("Point geometry not supported");if(new PT({precision:6}).compare(M,N))return!1;var t=0;switch(D){case"MultiPoint":var i=U(M),e=U(N);i.forEach((function(M){e.forEach((function(N){M[0]===N[0]&&M[1]===N[1]&&t++}))}));break;case"LineString":case"MultiLineString":B(M,(function(M){B(N,(function(N){KD(M,N).features.length&&t++}))}));break;case"Polygon":case"MultiPolygon":B(M,(function(M){B(N,(function(N){DD(M,N).features.length&&t++}))}))}return t>0}function Ut(M,N,D){D=D||[];for(var t=0;t<M;t++)D[t]=N;return D}function ht(M,N){if(M.geometry&&M.geometry.type)return M.geometry.type;if(M.type)return M.type;throw new Error("Invalid GeoJSON object for "+N)}function ft(M){for(var N=M,D=[];N.parent;)D.unshift(N),N=N.parent;return D}function mt(M,N){N=N||{},this.nodes=[],this.diagonal=!!N.diagonal,this.grid=[];for(var D=0;D<M.length;D++){this.grid[D]=[];for(var t=0,i=M[D];t<i.length;t++){var e=new vt(D,t,i[t]);this.grid[D][t]=e,this.nodes.push(e)}}this.init()}function vt(M,N,D){this.x=M,this.y=N,this.weight=D}function Bt(M){this.content=[],this.scoreFunction=M}function bt(M){return M[0]}function Pt(M){return M[1]}function Zt(){this._=null}function Gt(M){M.U=M.C=M.L=M.R=M.P=M.N=null}function Wt(M,N){var D=N,t=N.R,i=D.U;i?i.L===D?i.L=t:i.R=t:M._=t,t.U=i,D.U=t,D.R=t.L,D.R&&(D.R.U=D),t.L=D}function Rt(M,N){var D=N,t=N.L,i=D.U;i?i.L===D?i.L=t:i.R=t:M._=t,t.U=i,D.U=t,D.L=t.R,D.L&&(D.L.U=D),t.R=D}function Xt(M){for(;M.L;)M=M.L;return M}function _t(M,N,D,t){var i=[null,null],e=jg.push(i)-1;return i.left=M,i.right=N,D&&Ft(i,M,N,D),t&&Ft(i,N,M,t),ig[M.index].halfedges.push(e),ig[N.index].halfedges.push(e),i}function Ht(M,N,D){var t=[N,D];return t.left=M,t}function Ft(M,N,D,t){M[0]||M[1]?M.left===D?M[1]=t:M[0]=t:(M[0]=t,M.left=N,M.right=D)}function Vt(M,N,D,t,i){var e,j=M[0],T=M[1],g=j[0],s=j[1],u=0,z=1,A=T[0]-g,L=T[1]-s;if(e=N-g,A||!(e>0)){if(e/=A,A<0){if(e<u)return;e<z&&(z=e)}else if(A>0){if(e>z)return;e>u&&(u=e)}if(e=t-g,A||!(e<0)){if(e/=A,A<0){if(e>z)return;e>u&&(u=e)}else if(A>0){if(e<u)return;e<z&&(z=e)}if(e=D-s,L||!(e>0)){if(e/=L,L<0){if(e<u)return;e<z&&(z=e)}else if(L>0){if(e>z)return;e>u&&(u=e)}if(e=i-s,L||!(e<0)){if(e/=L,L<0){if(e>z)return;e>u&&(u=e)}else if(L>0){if(e<u)return;e<z&&(z=e)}return!(u>0||z<1)||(u>0&&(M[0]=[g+u*A,s+u*L]),z<1&&(M[1]=[g+z*A,s+z*L]),!0)}}}}}function Jt(M,N,D,t,i){var e=M[1];if(e)return!0;var j,T,g=M[0],s=M.left,u=M.right,z=s[0],A=s[1],L=u[0],I=u[1],n=(z+L)/2,r=(A+I)/2;if(I===A){if(n<N||n>=t)return;if(z>L){if(g){if(g[1]>=i)return}else g=[n,D];e=[n,i]}else{if(g){if(g[1]<D)return}else g=[n,i];e=[n,D]}}else if(j=(z-L)/(I-A),T=r-j*n,j<-1||j>1)if(z>L){if(g){if(g[1]>=i)return}else g=[(D-T)/j,D];e=[(i-T)/j,i]}else{if(g){if(g[1]<D)return}else g=[(i-T)/j,i];e=[(D-T)/j,D]}else if(A<I){if(g){if(g[0]>=t)return}else g=[N,j*N+T];e=[t,j*t+T]}else{if(g){if(g[0]<N)return}else g=[t,j*t+T];e=[N,j*N+T]}return M[0]=g,M[1]=e,!0}function qt(M,N){var D=M.site,t=N.left,i=N.right;return D===i&&(i=t,t=D),i?Math.atan2(i[1]-t[1],i[0]-t[0]):(D===t?(t=N[1],i=N[0]):(t=N[0],i=N[1]),Math.atan2(t[0]-i[0],i[1]-t[1]))}function Kt(M,N){return N[+(N.left!==M.site)]}function $t(M,N){return N[+(N.left===M.site)]}function Mi(M){var N=M.P,D=M.N;if(N&&D){var t=N.site,i=M.site,e=D.site;if(t!==e){var j=i[0],T=i[1],g=t[0]-j,s=t[1]-T,u=e[0]-j,z=e[1]-T,A=2*(g*z-s*u);if(!(A>=-ug)){var L=g*g+s*s,I=u*u+z*z,n=(z*L-s*I)/A,r=(g*I-u*L)/A,w=Tg.pop()||new function(){Gt(this),this.x=this.y=this.arc=this.site=this.cy=null};w.arc=M,w.site=i,w.x=n+j,w.y=(w.cy=r+T)+Math.sqrt(n*n+r*r),M.circle=w;for(var c=null,y=eg._;y;)if(w.y<y.y||w.y===y.y&&w.x<=y.x){if(!y.L){c=y.P;break}y=y.L}else{if(!y.R){c=y;break}y=y.R}eg.insert(c,w),c||(Dg=w)}}}}function Ni(M){var N=M.circle;N&&(N.P||(Dg=N.N),eg.remove(N),Tg.push(N),Gt(N),M.circle=null)}function Di(M){var N=gg.pop()||new function(){Gt(this),this.edge=this.site=this.circle=null};return N.site=M,N}function ti(M){Ni(M),tg.remove(M),gg.push(M),Gt(M)}function ii(M){var N=M.circle,D=N.x,t=N.cy,i=[D,t],e=M.P,j=M.N,T=[M];ti(M);for(var g=e;g.circle&&Math.abs(D-g.circle.x)<sg&&Math.abs(t-g.circle.cy)<sg;)e=g.P,T.unshift(g),ti(g),g=e;T.unshift(g),Ni(g);for(var s=j;s.circle&&Math.abs(D-s.circle.x)<sg&&Math.abs(t-s.circle.cy)<sg;)j=s.N,T.push(s),ti(s),s=j;T.push(s),Ni(s);var u,z=T.length;for(u=1;u<z;++u)s=T[u],g=T[u-1],Ft(s.edge,g.site,s.site,i);g=T[0],(s=T[z-1]).edge=_t(g.site,s.site,null,i),Mi(g),Mi(s)}function ei(M){for(var N,D,t,i,e=M[0],j=M[1],T=tg._;T;)if((t=ji(T,j)-e)>sg)T=T.L;else{if(!((i=e-function(M,N){var D=M.N;if(D)return ji(D,N);var t=M.site;return t[1]===N?t[0]:1/0}(T,j))>sg)){t>-sg?(N=T.P,D=T):i>-sg?(N=T,D=T.N):N=D=T;break}if(!T.R){N=T;break}T=T.R}!function(M){ig[M.index]={site:M,halfedges:[]}}(M);var g=Di(M);if(tg.insert(N,g),N||D){if(N===D)return Ni(N),D=Di(N.site),tg.insert(g,D),g.edge=D.edge=_t(N.site,g.site),Mi(N),void Mi(D);if(D){Ni(N),Ni(D);var s=N.site,u=s[0],z=s[1],A=M[0]-u,L=M[1]-z,I=D.site,n=I[0]-u,r=I[1]-z,w=2*(A*r-L*n),c=A*A+L*L,y=n*n+r*r,a=[(r*c-L*y)/w+u,(A*y-n*c)/w+z];Ft(D.edge,s,I,a),g.edge=_t(s,M,null,a),D.edge=_t(M,I,null,a),Mi(N),Mi(D)}else g.edge=_t(N.site,g.site)}}function ji(M,N){var D=M.site,t=D[0],i=D[1],e=i-N;if(!e)return t;var j=M.P;if(!j)return-1/0;var T=(D=j.site)[0],g=D[1],s=g-N;if(!s)return T;var u=T-t,z=1/e-1/s,A=u/s;return z?(-A+Math.sqrt(A*A-2*z*(u*u/(-2*s)-g+s/2+i-e/2)))/z+t:(t+T)/2}function Ti(M,N,D){return(M[0]-D[0])*(N[1]-M[1])-(M[0]-N[0])*(D[1]-M[1])}function gi(M,N){return N[1]-M[1]||N[0]-M[0]}function si(M,N){var D,t,i,e=M.sort(gi).pop();for(jg=[],ig=new Array(M.length),tg=new Zt,eg=new Zt;;)if(i=Dg,e&&(!i||e[1]<i.y||e[1]===i.y&&e[0]<i.x))e[0]===D&&e[1]===t||(ei(e),D=e[0],t=e[1]),e=M.pop();else{if(!i)break;ii(i.arc)}if(function(){for(var M,N,D,t,i=0,e=ig.length;i<e;++i)if((M=ig[i])&&(t=(N=M.halfedges).length)){var j=new Array(t),T=new Array(t);for(D=0;D<t;++D)j[D]=D,T[D]=qt(M,jg[N[D]]);for(j.sort((function(M,N){return T[N]-T[M]})),D=0;D<t;++D)T[D]=N[j[D]];for(D=0;D<t;++D)N[D]=T[D]}}(),N){var j=+N[0][0],T=+N[0][1],g=+N[1][0],s=+N[1][1];!function(M,N,D,t){for(var i,e=jg.length;e--;)Jt(i=jg[e],M,N,D,t)&&Vt(i,M,N,D,t)&&(Math.abs(i[0][0]-i[1][0])>sg||Math.abs(i[0][1]-i[1][1])>sg)||delete jg[e]}(j,T,g,s),function(M,N,D,t){var i,e,j,T,g,s,u,z,A,L,I,n,r=ig.length,w=!0;for(i=0;i<r;++i)if(e=ig[i]){for(j=e.site,T=(g=e.halfedges).length;T--;)jg[g[T]]||g.splice(T,1);for(T=0,s=g.length;T<s;)I=(L=$t(e,jg[g[T]]))[0],n=L[1],z=(u=Kt(e,jg[g[++T%s]]))[0],A=u[1],(Math.abs(I-z)>sg||Math.abs(n-A)>sg)&&(g.splice(T,0,jg.push(Ht(j,L,Math.abs(I-M)<sg&&t-n>sg?[M,Math.abs(z-M)<sg?A:t]:Math.abs(n-t)<sg&&D-I>sg?[Math.abs(A-t)<sg?z:D,t]:Math.abs(I-D)<sg&&n-N>sg?[D,Math.abs(z-D)<sg?A:N]:Math.abs(n-N)<sg&&I-M>sg?[Math.abs(A-N)<sg?z:M,N]:null))-1),++s);s&&(w=!1)}if(w){var c,y,a,o=1/0;for(i=0,w=null;i<r;++i)(e=ig[i])&&(a=(c=(j=e.site)[0]-M)*c+(y=j[1]-N)*y)<o&&(o=a,w=e);if(w){var E=[M,N],O=[M,t],x=[D,t],C=[D,N];w.halfedges.push(jg.push(Ht(j=w.site,E,O))-1,jg.push(Ht(j,O,x))-1,jg.push(Ht(j,x,C))-1,jg.push(Ht(j,C,E))-1)}}for(i=0;i<r;++i)(e=ig[i])&&(e.halfedges.length||delete ig[i])}(j,T,g,s)}this.edges=jg,this.cells=ig,tg=eg=jg=ig=null}function ui(M){return(M=M.slice()).push(M[0]),e([M])}function zi(M,N,D,t){var i=(t=t||{}).steps||64,j=t.units||"kilometers",T=t.angle||0,g=t.pivot||M,s=t.properties||M.properties||{};if(!M)throw new Error("center is required");if(!N)throw new Error("xSemiAxis is required");if(!D)throw new Error("ySemiAxis is required");if(!x(t))throw new Error("options must be an object");if(!O(i))throw new Error("steps must be a number");if(!O(T))throw new Error("angle must be a number");var u=W(M);if("degrees"===j)var z=a(T);else N=Nt(M,N,90,{units:j}),D=Nt(M,D,0,{units:j}),N=W(N)[0]-u[0],D=W(D)[1]-u[1];for(var A=[],L=0;L<i;L+=1){var I=-360*L/i,n=N*D/Math.sqrt(Math.pow(D,2)+Math.pow(N,2)*Math.pow(Ai(I),2)),r=N*D/Math.sqrt(Math.pow(N,2)+Math.pow(D,2)/Math.pow(Ai(I),2));if(I<-90&&I>=-270&&(n=-n),I<-180&&I>=-360&&(r=-r),"degrees"===j){var w=n*Math.cos(z)+r*Math.sin(z),c=r*Math.cos(z)-n*Math.sin(z);n=w,r=c}A.push([n+u[0],r+u[1]])}return A.push(A[0]),"degrees"===j?e([A],s):At(e([A],s),T,{pivot:g})}function Ai(M){var N=M*Math.PI/180;return Math.tan(N)}function Li(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.properties,i=N.weight;if(!M)throw new Error("geojson is required");var e=0,j=0,T=0;return h(M,(function(M,N,D){var t=D[i];if(t=void 0===t||null===t?1:t,!O(t))throw new Error("weight value must be a number for feature index "+N);(t=Number(t))>0&&l(M,(function(M){e+=M[0]*t,j+=M[1]*t,T+=t}))})),t([e/T,j/T],D)}function Ii(M,N,D,i){var e=D.properties.tolerance||.001,j=0,T=0,g=0,s=0;if(Y(D,(function(N){var D=N.properties.weight,t=void 0===D||null===D?1:D;if(t=Number(t),!O(t))throw new Error("weight value must be a number");if(t>0){s+=1;var i=t*vM(N,M);0===i&&(i=1);var e=t/i;j+=N.geometry.coordinates[0]*e,T+=N.geometry.coordinates[1]*e,g+=e}})),s<1)throw new Error("no features to measure");var u=j/g,z=T/g;return 1===s||0===i||Math.abs(u-N[0])<e&&Math.abs(z-N[1])<e?t([u,z],{medianCandidates:D.properties.medianCandidates}):(D.properties.medianCandidates.push([u,z]),Ii([u,z],M,D,i-1))}function ni(M,N){return{x:M[0]-N[0],y:M[1]-N[1]}}function ri(M){if(x(M)&&(M=M.bbox),M&&!Array.isArray(M))throw new Error("bbox is invalid");return M?function(M){return[Math.random()*(M[2]-M[0])+M[0],Math.random()*(M[3]-M[1])+M[1]]}(M):[360*ai(),180*ai()]}function wi(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.bbox;void 0!==M&&null!==M||(M=1);for(var i=[],e=0;e<M;e++)i.push(t(ri(D)));return s(i)}function ci(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.bbox,t=N.num_vertices,i=N.max_radial_length;void 0!==M&&null!==M||(M=1),O(t)||(t=10),O(i)||(i=10);for(var j=[],T=0;T<M;T++){var g=[],u=Array.apply(null,new Array(t+1)).map(Math.random);u.forEach((function(M,N,D){D[N]=N>0?M+D[N-1]:M})),u.forEach((function(M){M=2*M*Math.PI/u[u.length-1];var N=Math.random();g.push([N*i*Math.sin(M),N*i*Math.cos(M)])})),g[g.length-1]=g[0],g=g.map(function(M){return function(N){return[N[0]+M[0],N[1]+M[1]]}}(ri(D))),j.push(e([g]))}return s(j)}function yi(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.bbox,t=N.num_vertices,i=N.max_length,e=N.max_rotation;void 0!==M&&null!==M||(M=1),(!O(t)||t<2)&&(t=10),O(i)||(i=1e-4),O(e)||(e=Math.PI/8);for(var j=[],g=0;g<M;g++){for(var u=[ri(D)],z=0;z<t-1;z++){var A=(0===z?2*Math.random()*Math.PI:Math.tan((u[z][1]-u[z-1][1])/(u[z][0]-u[z-1][0])))+(Math.random()-.5)*e*2,L=Math.random()*i;u.push([u[z][0]+L*Math.cos(A),u[z][1]+L*Math.sin(A)])}j.push(T(u))}return s(j)}function ai(){return Math.random()-.5}function oi(M,N){if(!M)throw new Error("geojson is required");if("FeatureCollection"!==M.type)throw new Error("geojson must be a FeatureCollection");if(void 0===N||null===N)throw new Error("filter is required");var D=[];return Y(M,(function(M){Ci(M.properties,N)&&D.push(M)})),s(D)}function Ei(M,N,D){if(!M)throw new Error("geojson is required");if("FeatureCollection"!==M.type)throw new Error("geojson must be a FeatureCollection");if(void 0===N||null===N)throw new Error("property is required");for(var t=xi(M,N),i=Object.keys(t),e=0;e<i.length;e++){for(var j=i[e],T=t[j],g=[],u=0;u<T.length;u++)g.push(M.features[T[u]]);D(s(g),j,e)}}function Oi(M,N,D,t){var i=t;return Ei(M,N,(function(M,N,e){i=0===e&&void 0===t?M:D(i,M,N,e)})),i}function xi(M,N){var D={};return Y(M,(function(M,t){var i=M.properties||{};if(i.hasOwnProperty(N)){var e=i[N];D.hasOwnProperty(e)?D[e].push(t):D[e]=[t]}})),D}function Ci(M,N){if(void 0===M)return!1;var D=typeof N;if("number"===D||"string"===D)return M.hasOwnProperty(N);if(Array.isArray(N)){for(var t=0;t<N.length;t++)if(!Ci(M,N[t]))return!1;return!0}return Si(M,N)}function Si(M,N){for(var D=Object.keys(N),t=0;t<D.length;t++){var i=D[t];if(M[i]!==N[i])return!1}return!0}function li(M,N){if(!N)return{};if(!N.length)return{};for(var D={},t=0;t<N.length;t++){var i=N[t];M.hasOwnProperty(i)&&(D[i]=M[i])}return D}function ki(){}function Qi(M){this.message=M||""}function di(M){this.message=M||""}function Yi(){}function pi(M){return null===M?ps:M.color}function Ui(M){return null===M?null:M.parent}function hi(M,N){null!==M&&(M.color=N)}function fi(M){return null===M?null:M.left}function mi(M){return null===M?null:M.right}function vi(){this.root_=null,this.size_=0}function Bi(){}function bi(){this.array_=[],arguments[0]instanceof ws&&this.addAll(arguments[0])}function Pi(){}function Zi(M){this.message=M||""}function Gi(){this.array_=[]}function Wi(M){switch(M.type){case"Polygon":return wD(M)>1?M:null;case"MultiPolygon":var N=[];if(m(M,(function(M){wD(M)>1&&N.push(M.geometry.coordinates)})),N.length)return{type:"MultiPolygon",coordinates:N}}}function Ri(){this.reset()}function Xi(M,N,D){var t=M.s=N+D,i=t-N,e=t-i;M.t=N-e+(D-i)}function _i(M){return M>1?vL:M<-1?-vL:Math.asin(M)}function Hi(){}function Fi(M,N){M&&KL.hasOwnProperty(M.type)&&KL[M.type](M,N)}function Vi(M,N,D){var t,i=-1,e=M.length-D;for(N.lineStart();++i<e;)t=M[i],N.point(t[0],t[1],t[2]);N.lineEnd()}function Ji(M,N){var D=-1,t=M.length;for(N.polygonStart();++D<t;)Vi(M[D],N,1);N.polygonEnd()}function qi(M){return[RL(M[1],M[0]),_i(M[2])]}function Ki(M){var N=M[0],D=M[1],t=XL(D);return[t*XL(N),t*FL(N),FL(D)]}function $i(M,N){return M[0]*N[0]+M[1]*N[1]+M[2]*N[2]}function Me(M,N){return[M[1]*N[2]-M[2]*N[1],M[2]*N[0]-M[0]*N[2],M[0]*N[1]-M[1]*N[0]]}function Ne(M,N){M[0]+=N[0],M[1]+=N[1],M[2]+=N[2]}function De(M,N){return[M[0]*N,M[1]*N,M[2]*N]}function te(M){var N=VL(M[0]*M[0]+M[1]*M[1]+M[2]*M[2]);M[0]/=N,M[1]/=N,M[2]/=N}function ie(M,N){return[M>mL?M-bL:M<-mL?M+bL:M,N]}function ee(M,N,D){return(M%=bL)?N||D?MI(Te(M),ge(N,D)):Te(M):N||D?ge(N,D):ie}function je(M){return function(N,D){return N+=M,[N>mL?N-bL:N<-mL?N+bL:N,D]}}function Te(M){var N=je(M);return N.invert=je(-M),N}function ge(M,N){function D(M,N){var D=XL(N),T=XL(M)*D,g=FL(M)*D,s=FL(N),u=s*t+T*i;return[RL(g*e-u*j,T*t-s*i),_i(u*e+g*j)]}var t=XL(M),i=FL(M),e=XL(N),j=FL(N);return D.invert=function(M,N){var D=XL(N),T=XL(M)*D,g=FL(M)*D,s=FL(N),u=s*e-g*j;return[RL(g*e+s*j,T*t+u*i),_i(u*t-T*i)]},D}function se(M,N){(N=Ki(N))[0]-=M,te(N);var D=function(M){return M>1?0:M<-1?mL:Math.acos(M)}(-N[1]);return((-N[2]<0?-D:D)+bL-fL)%bL}function ue(M,N,D,t){this.x=M,this.z=N,this.o=D,this.e=t,this.v=!1,this.n=this.p=null}function ze(M){if(N=M.length){for(var N,D,t=0,i=M[0];++t<N;)i.n=D=M[t],D.p=i,i=D;i.n=D=M[0],D.p=i}}function Ae(M,N,D,t){function i(i,e){return M<=i&&i<=D&&N<=e&&e<=t}function e(i,e,T,s){var u=0,z=0;if(null==i||(u=j(i,T))!==(z=j(e,T))||g(i,e)<0^T>0)do{s.point(0===u||3===u?M:D,u>1?t:N)}while((u=(u+T+4)%4)!==z);else s.point(e[0],e[1])}function j(t,i){return GL(t[0]-M)<fL?i>0?0:3:GL(t[0]-D)<fL?i>0?2:1:GL(t[1]-N)<fL?i>0?1:0:i>0?3:2}function T(M,N){return g(M.x,N.x)}function g(M,N){var D=j(M,1),t=j(N,1);return D!==t?D-t:0===D?N[1]-M[1]:1===D?M[0]-N[0]:2===D?M[1]-N[1]:N[0]-M[0]}return function(j){function g(M,N){i(M,N)&&o.point(M,N)}function s(e,j){var T=i(e,j);if(z&&A.push([e,j]),y)L=e,I=j,n=T,y=!1,T&&(o.lineStart(),o.point(e,j));else if(T&&c)o.point(e,j);else{var g=[r=Math.max(sI,Math.min(gI,r)),w=Math.max(sI,Math.min(gI,w))],s=[e=Math.max(sI,Math.min(gI,e)),j=Math.max(sI,Math.min(gI,j))];tI(g,s,M,N,D,t)?(c||(o.lineStart(),o.point(g[0],g[1])),o.point(s[0],s[1]),T||o.lineEnd(),a=!1):T&&(o.lineStart(),o.point(e,j),a=!1)}r=e,w=j,c=T}var u,z,A,L,I,n,r,w,c,y,a,o=j,E=DI(),O={point:g,lineStart:function(){O.point=s,z&&z.push(A=[]),y=!0,c=!1,r=w=NaN},lineEnd:function(){u&&(s(L,I),n&&c&&E.rejoin(),u.push(E.result())),O.point=g,c&&o.lineEnd()},polygonStart:function(){o=E,u=[],z=[],a=!0},polygonEnd:function(){var N=function(){for(var N=0,D=0,i=z.length;D<i;++D)for(var e,j,T=z[D],g=1,s=T.length,u=T[0],A=u[0],L=u[1];g<s;++g)e=A,j=L,A=(u=T[g])[0],L=u[1],j<=t?L>t&&(A-e)*(t-j)>(L-j)*(M-e)&&++N:L<=t&&(A-e)*(t-j)<(L-j)*(M-e)&&--N;return N}(),D=a&&N,i=(u=TI(u)).length;(D||i)&&(j.polygonStart(),D&&(j.lineStart(),e(null,null,1,j),j.lineEnd()),i&&eI(u,T,N,e,j),j.polygonEnd()),o=j,u=z=A=null}};return O}}function Le(M){return M.length>1}function Ie(M,N){return((M=M.x)[0]<0?M[1]-vL-fL:vL-M[1])-((N=N.x)[0]<0?N[1]-vL-fL:vL-N[1])}function ne(M){return function(N){var D=new re;for(var t in M)D[t]=M[t];return D.stream=N,D}}function re(){}function we(M,N,D){var t=N[1][0]-N[0][0],i=N[1][1]-N[0][1],e=M.clipExtent&&M.clipExtent();M.scale(150).translate([0,0]),null!=e&&M.clipExtent(null),$L(D,M.stream(rI));var j=rI.result(),T=Math.min(t/(j[1][0]-j[0][0]),i/(j[1][1]-j[0][1])),g=+N[0][0]+(t-T*(j[1][0]+j[0][0]))/2,s=+N[0][1]+(i-T*(j[1][1]+j[0][1]))/2;return null!=e&&M.clipExtent(e),M.scale(150*T).translate([g,s])}function ce(M){return function(M){function N(M){return M=s(M[0]*ZL,M[1]*ZL),[M[0]*n+j,T-M[1]*n]}function D(M,N){return M=e(M,N),[M[0]*n+j,T-M[1]*n]}function t(){s=MI(g=ee(a,o,E),e);var M=e(c,y);return j=r-M[0]*n,T=w+M[1]*n,i()}function i(){return L=I=null,N}var e,j,T,g,s,u,z,A,L,I,n=150,r=480,w=250,c=0,y=0,a=0,o=0,E=0,O=null,x=cI,C=null,S=zI,l=.5,k=EI(D,l);return N.stream=function(M){return L&&I===M?L:L=OI(x(g,k(S(I=M))))},N.clipAngle=function(M){return arguments.length?(x=+M?yI(O=M*ZL,6*ZL):(O=null,cI),i()):O*PL},N.clipExtent=function(M){return arguments.length?(S=null==M?(C=u=z=A=null,zI):Ae(C=+M[0][0],u=+M[0][1],z=+M[1][0],A=+M[1][1]),i()):null==C?null:[[C,u],[z,A]]},N.scale=function(M){return arguments.length?(n=+M,t()):n},N.translate=function(M){return arguments.length?(r=+M[0],w=+M[1],t()):[r,w]},N.center=function(M){return arguments.length?(c=M[0]%360*ZL,y=M[1]%360*ZL,t()):[c*PL,y*PL]},N.rotate=function(M){return arguments.length?(a=M[0]%360*ZL,o=M[1]%360*ZL,E=M.length>2?M[2]%360*ZL:0,t()):[a*PL,o*PL,E*PL]},N.precision=function(M){return arguments.length?(k=EI(D,l=M*M),i()):VL(l)},N.fitExtent=function(M,D){return we(N,M,D)},N.fitSize=function(M,D){return function(M,N,D){return we(M,[[0,0],N],D)}(N,M,D)},function(){return e=M.apply(this,arguments),N.invert=e.invert&&function(M){return(M=s.invert((M[0]-j)/n,(T-M[1])/n))&&[M[0]*PL,M[1]*PL]},t()}}((function(){return M}))()}function ye(M,N){return[M,HL(JL((vL+N)/2))]}function ae(M,N){return[HL(JL((vL+N)/2)),-M]}function oe(M,D,t,i){var e=M.properties||{},j="Feature"===M.type?M.geometry:M;if("GeometryCollection"===j.type){var T=[];return h(M,(function(M){var N=oe(M,D,t,i);N&&T.push(N)})),s(T)}var g,u=G(M),z=u[1]>50&&u[3]>50;g=z?{type:j.type,coordinates:Oe(j.coordinates,Ce(j))}:gD(j);var A,L=(new ou).read(g),I=n(r(D,t),"meters"),w=AA.bufferOp(L,I);if(w=(new Eu).write(w),!Ee(w.coordinates))return(A=z?{type:w.type,coordinates:xe(w.coordinates,Ce(j))}:sD(w)).geometry?A:N(A,e)}function Ee(M){return Array.isArray(M[0])?Ee(M[0]):isNaN(M[0])}function Oe(M,N){return"object"!=typeof M[0]?N(M):M.map((function(M){return Oe(M,N)}))}function xe(M,N){return"object"!=typeof M[0]?N.invert(M):M.map((function(M){return xe(M,N)}))}function Ce(M){var N=nN(M).geometry.coordinates.reverse(),D=N.map((function(M){return-M}));return xI().center(N).rotate(D).scale(he)}function Se(){for(var M=new ou,N=M.read(JSON.stringify(arguments[0].geometry)),D=1;D<arguments.length;D++)N=pL.union(N,M.read(JSON.stringify(arguments[D].geometry)));return N=(new Eu).write(N),{type:"Feature",geometry:N,properties:arguments[0].properties}}function le(M,D){var t=V(M),i=V(D);if(MN(QD(i,{precision:4})).coordinates[0].length<4)return null;if(MN(QD(t,{precision:4})).coordinates[0].length<4)return null;var e=new ou,j=e.read(QD(t)),T=e.read(QD(i)),g=OL.intersection(j,T);return g.isEmpty()?null:N((new Eu).write(g))}function ke(M,N){return function(M,N,D){var t,i;if(!Array.isArray(N))throw new Error("Get closest expects an array as second argument");return N.forEach((function(N,e){var j=D(N,M);j>=0&&(void 0===i||j<i)&&(i=j,t=e)})),t}(M,N,(function(M,N){return M-N}))}function Qe(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.properties||{},i=D.triangles,j=D.mask;if(null===N||void 0===N)throw new Error("cellSide is required");if(!O(N))throw new Error("cellSide is invalid");if(!M)throw new Error("bbox is required");if(!Array.isArray(M))throw new Error("bbox must be array");if(4!==M.length)throw new Error("bbox must contain 4 numbers");if(j&&-1===["Polygon","MultiPolygon"].indexOf(q(j)))throw new Error("options.mask must be a (Multi)Polygon");var T=M[0],g=M[1],u=M[2],z=M[3],A=(g+z)/2,L=(T+u)/2,I=2*N/vM([T,A],[u,A],D)*(u-T),n=2*N/vM([L,g],[L,z],D)*(z-g),r=I/2,w=2*r,c=Math.sqrt(3)/2*n,y=u-T,a=z-g,o=.75*w,E=c,C=(y-w)/(w-r/2),S=Math.floor(C),l=(S*o-r/2-y)/2-r/2+o/2,k=Math.floor((a-c)/c),Q=(a-k*c)/2,d=k*c-a>c/2;d&&(Q-=c/4);for(var Y=[],p=[],U=0;U<6;U++){var h=2*Math.PI/6*U;Y.push(Math.cos(h)),p.push(Math.sin(h))}for(var f=[],m=0;m<=S;m++)for(var v=0;v<=k;v++){var B=m%2==1;if((0!==v||!B)&&(0!==v||!d)){var b=m*o+T-l,P=v*E+g+Q;if(B&&(P-=c/2),!0===i)(function(M,N,D,t,i,j){for(var T=[],g=0;g<6;g++){var s=[];s.push(M),s.push([M[0]+N*i[g],M[1]+D*j[g]]),s.push([M[0]+N*i[(g+1)%6],M[1]+D*j[(g+1)%6]]),s.push(M),T.push(e([s],t))}return T})([b,P],I/2,n/2,t,Y,p).forEach((function(M){j?le(j,M)&&f.push(M):f.push(M)}));else{var Z=function(M,N,D,t,i,j){for(var T=[],g=0;g<6;g++){var s=M[0]+N*i[g],u=M[1]+D*j[g];T.push([s,u])}return T.push(T[0].slice()),e([T],t)}([b,P],I/2,n/2,t,Y,p);j?le(j,Z)&&f.push(Z):f.push(Z)}}}return s(f)}function de(M){if(M.features.length<=1)return M;var N=function(M){var N=Re(),D=[];return m(M,(function(M,N){var t=G(M);D.push({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],geojson:M,index:N})})),N.load(D),N}(M),D=[],t={};return m(M,(function(M,i){if(t[i])return!0;for(N.remove({index:i},Ye),t[i]=!0;;){var e=G(M),j=N.search({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]});if(j.length>0){var T=j.map((function(M){return t[M.index]=!0,N.remove({index:M.index},Ye),M.geojson}));T.push(M),M=Se.apply(this,T)}if(0===j.length)break}D.push(M)})),s(D)}function Ye(M,N){return M.index===N.index}function pe(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.properties,i=D.mask,j=[];if(null===N||void 0===N)throw new Error("cellSide is required");if(!O(N))throw new Error("cellSide is invalid");if(!M)throw new Error("bbox is required");if(!Array.isArray(M))throw new Error("bbox must be array");if(4!==M.length)throw new Error("bbox must contain 4 numbers");if(i&&-1===["Polygon","MultiPolygon"].indexOf(q(i)))throw new Error("options.mask must be a (Multi)Polygon");for(var T=M[0],g=M[1],u=M[2],z=M[3],A=N/vM([T,g],[u,g],D)*(u-T),L=N/vM([T,g],[T,z],D)*(z-g),I=u-T,n=z-g,r=Math.floor(I/A),w=Math.floor(n/L),c=(n-w*L)/2,y=T+(I-r*A)/2,a=0;a<r;a++){for(var o=g+c,E=0;E<w;E++){var C=e([[[y,o],[y,o+L],[y+A,o+L],[y+A,o],[y,o]]],t);i?le(i,C)&&j.push(C):j.push(C),o+=L}y+=A}return s(j)}function Ue(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.properties,i=D.mask,j=[];if(null===N||void 0===N)throw new Error("cellSide is required");if(!O(N))throw new Error("cellSide is invalid");if(!M)throw new Error("bbox is required");if(!Array.isArray(M))throw new Error("bbox must be array");if(4!==M.length)throw new Error("bbox must contain 4 numbers");if(i&&-1===["Polygon","MultiPolygon"].indexOf(q(i)))throw new Error("options.mask must be a (Multi)Polygon");for(var T=N/vM([M[0],M[1]],[M[2],M[1]],D)*(M[2]-M[0]),g=N/vM([M[0],M[1]],[M[0],M[3]],D)*(M[3]-M[1]),u=0,z=M[0];z<=M[2];){for(var A=0,L=M[1];L<=M[3];){var I=null,n=null;u%2==0&&A%2==0?(I=e([[[z,L],[z,L+g],[z+T,L],[z,L]]],t),n=e([[[z,L+g],[z+T,L+g],[z+T,L],[z,L+g]]],t)):u%2==0&&A%2==1?(I=e([[[z,L],[z+T,L+g],[z+T,L],[z,L]]],t),n=e([[[z,L],[z,L+g],[z+T,L+g],[z,L]]],t)):A%2==0&&u%2==1?(I=e([[[z,L],[z,L+g],[z+T,L+g],[z,L]]],t),n=e([[[z,L],[z+T,L+g],[z+T,L],[z,L]]],t)):A%2==1&&u%2==1&&(I=e([[[z,L],[z,L+g],[z+T,L],[z,L]]],t),n=e([[[z,L+g],[z+T,L+g],[z+T,L],[z,L+g]]],t)),i?(le(i,I)&&j.push(I),le(i,n)&&j.push(n)):(j.push(I),j.push(n)),L+=g,A++}u++,z+=T}return s(j)}var he=6371008.8,fe={meters:he,metres:he,millimeters:1e3*he,millimetres:1e3*he,centimeters:100*he,centimetres:100*he,kilometers:he/1e3,kilometres:he/1e3,miles:he/1609.344,nauticalmiles:he/1852,inches:39.37*he,yards:he/1.0936,feet:3.28084*he,radians:1,degrees:he/111325},me={meters:1,metres:1,millimeters:1e3,millimetres:1e3,centimeters:100,centimetres:100,kilometers:.001,kilometres:.001,miles:1/1609.344,nauticalmiles:1/1852,inches:39.37,yards:1/1.0936,feet:3.28084,radians:1/he,degrees:1/111325},ve={meters:1,metres:1,millimeters:1e6,millimetres:1e6,centimeters:1e4,centimetres:1e4,kilometers:1e-6,kilometres:1e-6,acres:247105e-9,miles:386e-9,yards:1.195990046,feet:10.763910417,inches:1550.003100006},Be=Object.freeze({earthRadius:he,factors:fe,unitsFactors:me,areaFactors:ve,feature:N,geometry:D,point:t,points:i,polygon:e,polygons:j,lineString:T,lineStrings:g,featureCollection:s,multiLineString:u,multiPoint:z,multiPolygon:A,geometryCollection:L,round:I,radiansToLength:n,lengthToRadians:r,lengthToDegrees:w,bearingToAzimuth:c,radiansToDegrees:y,degreesToRadians:a,convertLength:o,convertArea:E,isNumber:O,isObject:x,validateBBox:C,validateId:S,radians2degrees:function(){throw new Error("method has been renamed to `radiansToDegrees`")},degrees2radians:function(){throw new Error("method has been renamed to `degreesToRadians`")},distanceToDegrees:function(){throw new Error("method has been renamed to `lengthToDegrees`")},distanceToRadians:function(){throw new Error("method has been renamed to `lengthToRadians`")},radiansToDistance:function(){throw new Error("method has been renamed to `radiansToLength`")},bearingToAngle:function(){throw new Error("method has been renamed to `bearingToAzimuth`")},convertDistance:function(){throw new Error("method has been renamed to `convertLength`")}}),be=Object.freeze({coordEach:l,coordReduce:k,propEach:Q,propReduce:d,featureEach:Y,featureReduce:p,coordAll:U,geomEach:h,geomReduce:f,flattenEach:m,flattenReduce:v,segmentEach:B,segmentReduce:b,lineEach:P,lineReduce:Z}),Pe=Object.freeze({getCoord:W,getCoords:R,containsNumber:X,geojsonType:_,featureOf:H,collectionOf:F,getGeom:V,getGeomType:J,getType:q}),Ze={successCallback:null,verbose:!1},Ge={},We=iM,Re=jM;jM.prototype={all:function(){return this._all(this.data,[])},search:function(M){var N=this.data,D=[],t=this.toBBox;if(!nM(M,N))return D;for(var i,e,j,T,g=[];N;){for(i=0,e=N.children.length;i<e;i++)j=N.children[i],nM(M,T=N.leaf?t(j):j)&&(N.leaf?D.push(j):IM(M,T)?this._all(j,D):g.push(j));N=g.pop()}return D},collides:function(M){var N=this.data,D=this.toBBox;if(!nM(M,N))return!1;for(var t,i,e,j,T=[];N;){for(t=0,i=N.children.length;t<i;t++)if(e=N.children[t],j=N.leaf?D(e):e,nM(M,j)){if(N.leaf||IM(M,j))return!0;T.push(e)}N=T.pop()}return!1},load:function(M){if(!M||!M.length)return this;if(M.length<this._minEntries){for(var N=0,D=M.length;N<D;N++)this.insert(M[N]);return this}var t=this._build(M.slice(),0,M.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){var i=this.data;this.data=t,t=i}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this},insert:function(M){return M&&this._insert(M,this.data.height-1),this},clear:function(){return this.data=rM([]),this},remove:function(M,N){if(!M)return this;for(var D,t,i,e,j=this.data,T=this.toBBox(M),g=[],s=[];j||g.length;){if(j||(j=g.pop(),t=g[g.length-1],D=s.pop(),e=!0),j.leaf&&-1!==(i=function(M,N,D){if(!D)return N.indexOf(M);for(var t=0;t<N.length;t++)if(D(M,N[t]))return t;return-1}(M,j.children,N)))return j.children.splice(i,1),g.push(j),this._condense(g),this;e||j.leaf||!IM(j,T)?t?(D++,j=t.children[D],e=!1):j=null:(g.push(j),s.push(D),D=0,t=j,j=j.children[0])}return this},toBBox:function(M){return M},compareMinX:uM,compareMinY:zM,toJSON:function(){return this.data},fromJSON:function(M){return this.data=M,this},_all:function(M,N){for(var D=[];M;)M.leaf?N.push.apply(N,M.children):D.push.apply(D,M.children),M=D.pop();return N},_build:function(M,N,D,t){var i,e=D-N+1,j=this._maxEntries;if(e<=j)return i=rM(M.slice(N,D+1)),TM(i,this.toBBox),i;t||(t=Math.ceil(Math.log(e)/Math.log(j)),j=Math.ceil(e/Math.pow(j,t-1))),(i=rM([])).leaf=!1,i.height=t;var T,g,s,u,z=Math.ceil(e/j),A=z*Math.ceil(Math.sqrt(j));for(wM(M,N,D,A,this.compareMinX),T=N;T<=D;T+=A)for(wM(M,T,s=Math.min(T+A-1,D),z,this.compareMinY),g=T;g<=s;g+=z)u=Math.min(g+z-1,s),i.children.push(this._build(M,g,u,t-1));return TM(i,this.toBBox),i},_chooseSubtree:function(M,N,D,t){for(var i,e,j,T,g,s,u,z;t.push(N),!N.leaf&&t.length-1!==D;){for(u=z=1/0,i=0,e=N.children.length;i<e;i++)g=AM(j=N.children[i]),(s=function(M,N){return(Math.max(N.maxX,M.maxX)-Math.min(N.minX,M.minX))*(Math.max(N.maxY,M.maxY)-Math.min(N.minY,M.minY))}(M,j)-g)<z?(z=s,u=g<u?g:u,T=j):s===z&&g<u&&(u=g,T=j);N=T||N.children[0]}return N},_insert:function(M,N,D){var t=this.toBBox,i=D?M:t(M),e=[],j=this._chooseSubtree(i,this.data,N,e);for(j.children.push(M),sM(j,i);N>=0&&e[N].children.length>this._maxEntries;)this._split(e,N),N--;this._adjustParentBBoxes(i,e,N)},_split:function(M,N){var D=M[N],t=D.children.length,i=this._minEntries;this._chooseSplitAxis(D,i,t);var e=this._chooseSplitIndex(D,i,t),j=rM(D.children.splice(e,D.children.length-e));j.height=D.height,j.leaf=D.leaf,TM(D,this.toBBox),TM(j,this.toBBox),N?M[N-1].children.push(j):this._splitRoot(D,j)},_splitRoot:function(M,N){this.data=rM([M,N]),this.data.height=M.height+1,this.data.leaf=!1,TM(this.data,this.toBBox)},_chooseSplitIndex:function(M,N,D){var t,i,e,j,T,g,s,u;for(g=s=1/0,t=N;t<=D-N;t++)j=function(M,N){var D=Math.max(M.minX,N.minX),t=Math.max(M.minY,N.minY),i=Math.min(M.maxX,N.maxX),e=Math.min(M.maxY,N.maxY);return Math.max(0,i-D)*Math.max(0,e-t)}(i=gM(M,0,t,this.toBBox),e=gM(M,t,D,this.toBBox)),T=AM(i)+AM(e),j<g?(g=j,u=t,s=T<s?T:s):j===g&&T<s&&(s=T,u=t);return u},_chooseSplitAxis:function(M,N,D){var t=M.leaf?this.compareMinX:uM,i=M.leaf?this.compareMinY:zM;this._allDistMargin(M,N,D,t)<this._allDistMargin(M,N,D,i)&&M.children.sort(t)},_allDistMargin:function(M,N,D,t){M.children.sort(t);var i,e,j=this.toBBox,T=gM(M,0,N,j),g=gM(M,D-N,D,j),s=LM(T)+LM(g);for(i=N;i<D-N;i++)e=M.children[i],sM(T,M.leaf?j(e):e),s+=LM(T);for(i=D-N-1;i>=N;i--)e=M.children[i],sM(g,M.leaf?j(e):e),s+=LM(g);return s},_adjustParentBBoxes:function(M,N,D){for(var t=D;t>=0;t--)sM(N[t],M)},_condense:function(M){for(var N,D=M.length-1;D>=0;D--)0===M[D].children.length?D>0?(N=M[D-1].children).splice(N.indexOf(M[D]),1):this.clear():TM(M[D],this.toBBox)},_initFormat:function(M){var N=["return a"," - b",";"];this.compareMinX=new Function("a","b",N.join(M[0])),this.compareMinY=new Function("a","b",N.join(M[1])),this.toBBox=new Function("a","return {minX: a"+M[0]+", minY: a"+M[1]+", maxX: a"+M[2]+", maxY: a"+M[3]+"};")}};var Xe=function(M,N,D){var t=M*N,i=_e*M,e=i-(i-M),j=M-e,T=_e*N,g=T-(T-N),s=N-g,u=j*s-(t-e*g-j*g-e*s);return D?(D[0]=u,D[1]=t,D):[u,t]},_e=+(Math.pow(2,27)+1),He=function(M,N){var D=0|M.length,t=0|N.length;if(1===D&&1===t)return function(M,N){var D=M+N,t=D-M,i=M-(D-t)+(N-t);return i?[i,D]:[D]}(M[0],N[0]);var i,e,j=D+t,T=new Array(j),g=0,s=0,u=0,z=Math.abs,A=M[s],L=z(A),I=N[u],n=z(I);L<n?(e=A,(s+=1)<D&&(L=z(A=M[s]))):(e=I,(u+=1)<t&&(n=z(I=N[u]))),s<D&&L<n||u>=t?(i=A,(s+=1)<D&&(L=z(A=M[s]))):(i=I,(u+=1)<t&&(n=z(I=N[u])));for(var r,w,c=i+e,y=c-i,a=e-y,o=a,E=c;s<D&&u<t;)L<n?(i=A,(s+=1)<D&&(L=z(A=M[s]))):(i=I,(u+=1)<t&&(n=z(I=N[u]))),(a=(e=o)-(y=(c=i+e)-i))&&(T[g++]=a),o=E-((r=E+c)-(w=r-E))+(c-w),E=r;for(;s<D;)(a=(e=o)-(y=(c=(i=A)+e)-i))&&(T[g++]=a),o=E-((r=E+c)-(w=r-E))+(c-w),E=r,(s+=1)<D&&(A=M[s]);for(;u<t;)(a=(e=o)-(y=(c=(i=I)+e)-i))&&(T[g++]=a),o=E-((r=E+c)-(w=r-E))+(c-w),E=r,(u+=1)<t&&(I=N[u]);return o&&(T[g++]=o),E&&(T[g++]=E),g||(T[g++]=0),T.length=g,T},Fe=function(M,N,D){var t=M+N,i=t-M,e=N-i,j=M-(t-i);return D?(D[0]=j+e,D[1]=t,D):[j+e,t]},Ve=function(M,N){var D=M.length;if(1===D){var t=Xe(M[0],N);return t[0]?t:[t[1]]}var i=new Array(2*D),e=[.1,.1],j=[.1,.1],T=0;Xe(M[0],N,e),e[0]&&(i[T++]=e[0]);for(var g=1;g<D;++g){Xe(M[g],N,j);var s=e[1];Fe(s,j[0],e),e[0]&&(i[T++]=e[0]);var u=j[1],z=e[1],A=u+z,L=z-(A-u);e[1]=A,L&&(i[T++]=L)}return e[1]&&(i[T++]=e[1]),0===T&&(i[T++]=0),i.length=T,i},Je=function(M,N){var D=0|M.length,t=0|N.length;if(1===D&&1===t)return function(M,N){var D=M+N,t=D-M,i=M-(D-t)+(N-t);return i?[i,D]:[D]}(M[0],-N[0]);var i,e,j=D+t,T=new Array(j),g=0,s=0,u=0,z=Math.abs,A=M[s],L=z(A),I=-N[u],n=z(I);L<n?(e=A,(s+=1)<D&&(L=z(A=M[s]))):(e=I,(u+=1)<t&&(n=z(I=-N[u]))),s<D&&L<n||u>=t?(i=A,(s+=1)<D&&(L=z(A=M[s]))):(i=I,(u+=1)<t&&(n=z(I=-N[u])));for(var r,w,c=i+e,y=c-i,a=e-y,o=a,E=c;s<D&&u<t;)L<n?(i=A,(s+=1)<D&&(L=z(A=M[s]))):(i=I,(u+=1)<t&&(n=z(I=-N[u]))),(a=(e=o)-(y=(c=i+e)-i))&&(T[g++]=a),o=E-((r=E+c)-(w=r-E))+(c-w),E=r;for(;s<D;)(a=(e=o)-(y=(c=(i=A)+e)-i))&&(T[g++]=a),o=E-((r=E+c)-(w=r-E))+(c-w),E=r,(s+=1)<D&&(A=M[s]);for(;u<t;)(a=(e=o)-(y=(c=(i=I)+e)-i))&&(T[g++]=a),o=E-((r=E+c)-(w=r-E))+(c-w),E=r,(u+=1)<t&&(I=-N[u]);return o&&(T[g++]=o),E&&(T[g++]=E),g||(T[g++]=0),T.length=g,T},qe=cM((function(M){function N(M,N){for(var D=new Array(M.length-1),t=1;t<M.length;++t)for(var i=D[t-1]=new Array(M.length-1),e=0,j=0;e<M.length;++e)e!==N&&(i[j++]=M[t][e]);return D}function D(M){return 1&M?"-":""}function t(M){if(1===M.length)return M[0];if(2===M.length)return["sum(",M[0],",",M[1],")"].join("");var N=M.length>>1;return["sum(",t(M.slice(0,N)),",",t(M.slice(N)),")"].join("")}function i(M){if(2===M.length)return[["sum(prod(",M[0][0],",",M[1][1],"),prod(-",M[0][1],",",M[1][0],"))"].join("")];for(var e=[],j=0;j<M.length;++j)e.push(["scale(",t(i(N(M,j))),",",D(j),M[0][j],")"].join(""));return e}function e(M){for(var D=[],e=[],j=function(M){for(var N=new Array(M),D=0;D<M;++D){N[D]=new Array(M);for(var t=0;t<M;++t)N[D][t]=["m",t,"[",M-D-1,"]"].join("")}return N}(M),T=[],g=0;g<M;++g)0==(1&g)?D.push.apply(D,i(N(j,g))):e.push.apply(e,i(N(j,g))),T.push("m"+g);var s=t(D),u=t(e),z="orientation"+M+"Exact",A=["function ",z,"(",T.join(),"){var p=",s,",n=",u,",d=sub(p,n);return d[d.length-1];};return ",z].join("");return new Function("sum","prod","scale","sub",A)(He,Xe,Ve,Je)}var j=5,T=e(3),g=e(4),s=[function(){return 0},function(){return 0},function(M,N){return N[0]-M[0]},function(M,N,D){var t,i=(M[1]-D[1])*(N[0]-D[0]),e=(M[0]-D[0])*(N[1]-D[1]),j=i-e;if(i>0){if(e<=0)return j;t=i+e}else{if(!(i<0))return j;if(e>=0)return j;t=-(i+e)}var g=33306690738754716e-32*t;return j>=g||j<=-g?j:T(M,N,D)},function(M,N,D,t){var i=M[0]-t[0],e=N[0]-t[0],j=D[0]-t[0],T=M[1]-t[1],s=N[1]-t[1],u=D[1]-t[1],z=M[2]-t[2],A=N[2]-t[2],L=D[2]-t[2],I=e*u,n=j*s,r=j*T,w=i*u,c=i*s,y=e*T,a=z*(I-n)+A*(r-w)+L*(c-y),o=7771561172376103e-31*((Math.abs(I)+Math.abs(n))*Math.abs(z)+(Math.abs(r)+Math.abs(w))*Math.abs(A)+(Math.abs(c)+Math.abs(y))*Math.abs(L));return a>o||-a>o?a:g(M,N,D,t)}];!function(){for(;s.length<=j;)s.push(e(s.length));for(var N=[],D=["slow"],t=0;t<=j;++t)N.push("a"+t),D.push("o"+t);var i=["function getOrientation(",N.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(t=2;t<=j;++t)i.push("case ",t,":return o",t,"(",N.slice(0,t).join(),");");i.push("}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation"),D.push(i.join(""));var T=Function.apply(void 0,D);for(M.exports=T.apply(void 0,[function(M){var N=s[M.length];return N||(N=s[M.length]=e(M.length)),N.apply(void 0,M)}].concat(s)),t=0;t<=j;++t)M.exports[t]=s[t]}()})),Ke=function(M){var N=M.length;if(N<3){for(var D=new Array(N),t=0;t<N;++t)D[t]=t;return 2===N&&M[0][0]===M[1][0]&&M[0][1]===M[1][1]?[0]:D}var i=new Array(N);for(t=0;t<N;++t)i[t]=t;i.sort((function(N,D){var t=M[N][0]-M[D][0];return t||M[N][1]-M[D][1]}));var e=[i[0],i[1]],j=[i[0],i[1]];for(t=2;t<N;++t){for(var T=i[t],g=M[T],s=e.length;s>1&&$e(M[e[s-2]],M[e[s-1]],g)<=0;)s-=1,e.pop();for(e.push(T),s=j.length;s>1&&$e(M[j[s-2]],M[j[s-1]],g)>=0;)s-=1,j.pop();j.push(T)}D=new Array(j.length+e.length-2);for(var u=0,z=(t=0,e.length);t<z;++t)D[u++]=e[t];for(var A=j.length-2;A>0;--A)D[u++]=j[A];return D},$e=qe[3],Mj=yM,Nj=yM;yM.prototype={push:function(M){this.data.push(M),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var M=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),M}},peek:function(){return this.data[0]},_up:function(M){for(var N=this.data,D=this.compare,t=N[M];M>0;){var i=M-1>>1,e=N[i];if(D(t,e)>=0)break;N[M]=e,M=i}N[M]=t},_down:function(M){for(var N=this.data,D=this.compare,t=this.length>>1,i=N[M];M<t;){var e=1+(M<<1),j=e+1,T=N[e];if(j<this.length&&D(N[j],T)<0&&(e=j,T=N[j]),D(T,i)>=0)break;N[M]=T,M=e}N[M]=i}},Mj.default=Nj;var Dj=function(M,N){for(var D=M[0],t=M[1],i=!1,e=0,j=N.length-1;e<N.length;j=e++){var T=N[e][0],g=N[e][1],s=N[j][0],u=N[j][1];g>t!=u>t&&D<(s-T)*(t-g)/(u-g)+T&&(i=!i)}return i},tj=qe[3],ij=aM,ej=aM;ij.default=ej;var jj=function(M){return M},Tj=function(M){if(null==M)return jj;var N,D,t=M.scale[0],i=M.scale[1],e=M.translate[0],j=M.translate[1];return function(M,T){T||(N=D=0);var g=2,s=M.length,u=new Array(s);for(u[0]=(N+=M[0])*t+e,u[1]=(D+=M[1])*i+j;g<s;)u[g]=M[g],++g;return u}},gj=function(M,N){for(var D,t=M.length,i=t-N;i<--t;)D=M[i],M[i++]=M[t],M[t]=D},sj=function(M,N){function D(M,N){for(var D in M){var i=M[D];delete N[i.start],delete i.start,delete i.end,i.forEach((function(M){t[M<0?~M:M]=1})),j.push(i)}}var t={},i={},e={},j=[],T=-1;return N.forEach((function(D,t){var i,e=M.arcs[D<0?~D:D];e.length<3&&!e[1][0]&&!e[1][1]&&(i=N[++T],N[T]=D,N[t]=i)})),N.forEach((function(N){var D,t,j=function(N){var D,t=M.arcs[N<0?~N:N],i=t[0];return M.transform?(D=[0,0],t.forEach((function(M){D[0]+=M[0],D[1]+=M[1]}))):D=t[t.length-1],N<0?[D,i]:[i,D]}(N),T=j[0],g=j[1];if(D=e[T])if(delete e[D.end],D.push(N),D.end=g,t=i[g]){delete i[t.start];var s=t===D?D:D.concat(t);i[s.start=D.start]=e[s.end=t.end]=s}else i[D.start]=e[D.end]=D;else if(D=i[g])if(delete i[D.start],D.unshift(N),D.start=T,t=e[T]){delete e[t.end];var u=t===D?D:t.concat(D);i[u.start=t.start]=e[u.end=D.end]=u}else i[D.start]=e[D.end]=D;else i[(D=[N]).start=T]=e[D.end=g]=D})),D(e,i),D(i,e),N.forEach((function(M){t[M<0?~M:M]||j.push([M])})),j},uj=function(M){return WM(M,RM.apply(this,arguments))},zj=function(M,N,D,t,i,e){3===arguments.length&&(t=e=Array,i=null);for(var j=new t(M=1<<Math.max(4,Math.ceil(Math.log(M)/Math.LN2))),T=new e(M),g=M-1,s=0;s<M;++s)j[s]=i;return{set:function(t,e){for(var s=N(t)&g,u=j[s],z=0;u!=i;){if(D(u,t))return T[s]=e;if(++z>=M)throw new Error("full hashmap");u=j[s=s+1&g]}return j[s]=t,T[s]=e,e},maybeSet:function(t,e){for(var s=N(t)&g,u=j[s],z=0;u!=i;){if(D(u,t))return T[s];if(++z>=M)throw new Error("full hashmap");u=j[s=s+1&g]}return j[s]=t,T[s]=e,e},get:function(t,e){for(var s=N(t)&g,u=j[s],z=0;u!=i;){if(D(u,t))return T[s];if(++z>=M)break;u=j[s=s+1&g]}return e},keys:function(){for(var M=[],N=0,D=j.length;N<D;++N){var t=j[N];t!=i&&M.push(t)}return M}}},Aj=function(M,N){return M[0]===N[0]&&M[1]===N[1]},Lj=new ArrayBuffer(16),Ij=new Float64Array(Lj),nj=new Uint32Array(Lj),rj=function(M){Ij[0]=M[0],Ij[1]=M[1];var N=nj[0]^nj[1];return 2147483647&(N<<5^N>>7^nj[2]^nj[3])},wj=function(M){function N(M,N,D,t){if(A[D]!==M){A[D]=M;var i=L[D];if(i>=0){var e=I[D];i===N&&e===t||i===t&&e===N||(++r,n[D]=1)}else L[D]=N,I[D]=t}}function D(M){return rj(g[M])}function t(M,N){return Aj(g[M],g[N])}var i,e,j,T,g=M.coordinates,s=M.lines,u=M.rings,z=function(){for(var M=zj(1.4*g.length,D,t,Int32Array,-1,Int32Array),N=new Int32Array(g.length),i=0,e=g.length;i<e;++i)N[i]=M.maybeSet(i,i);return N}(),A=new Int32Array(g.length),L=new Int32Array(g.length),I=new Int32Array(g.length),n=new Int8Array(g.length),r=0;for(i=0,e=g.length;i<e;++i)A[i]=L[i]=I[i]=-1;for(i=0,e=s.length;i<e;++i){var w=s[i],c=w[0],y=w[1];for(j=z[c],T=z[++c],++r,n[j]=1;++c<=y;)N(i,j,j=T,T=z[c]);++r,n[T]=1}for(i=0,e=g.length;i<e;++i)A[i]=-1;for(i=0,e=u.length;i<e;++i){var a=u[i],o=a[0]+1,E=a[1];for(N(i,z[E-1],j=z[o-1],T=z[o]);++o<=E;)N(i,j,j=T,T=z[o])}A=L=I=null;var O,x=function(M,N,D,t,i){3===arguments.length&&(t=Array,i=null);for(var e=new t(M=1<<Math.max(4,Math.ceil(Math.log(M)/Math.LN2))),j=M-1,T=0;T<M;++T)e[T]=i;return{add:function(t){for(var T=N(t)&j,g=e[T],s=0;g!=i;){if(D(g,t))return!0;if(++s>=M)throw new Error("full hashset");g=e[T=T+1&j]}return e[T]=t,!0},has:function(t){for(var T=N(t)&j,g=e[T],s=0;g!=i;){if(D(g,t))return!0;if(++s>=M)break;g=e[T=T+1&j]}return!1},values:function(){for(var M=[],N=0,D=e.length;N<D;++N){var t=e[N];t!=i&&M.push(t)}return M}}}(1.4*r,rj,Aj);for(i=0,e=g.length;i<e;++i)n[O=z[i]]&&x.add(g[O]);return x},cj=function(M){var N,D,t,i=wj(M),e=M.coordinates,j=M.lines,T=M.rings;for(D=0,t=j.length;D<t;++D)for(var g=j[D],s=g[0],u=g[1];++s<u;)i.has(e[s])&&(N={0:s,1:g[1]},g[1]=s,g=g.next=N);for(D=0,t=T.length;D<t;++D)for(var z=T[D],A=z[0],L=A,I=z[1],n=i.has(e[A]);++L<I;)i.has(e[L])&&(n?(N={0:L,1:z[1]},z[1]=L,z=z.next=N):(function(M,N,D,t){XM(M,N,D),XM(M,N,N+t),XM(M,N+t,D)}(e,A,I,I-L),e[I]=e[A],n=!0,L=A));return M},yj=function(M){function N(M){var N,D,t,i,e,j,T,g;if(t=L.get(N=s[M[0]]))for(T=0,g=t.length;T<g;++T)if(i=t[T],function(M,N){var D=M[0],t=N[0],i=M[1],e=N[1];if(D-i!=t-e)return!1;for(;D<=i;++D,++t)if(!Aj(s[D],s[t]))return!1;return!0}(i,M))return M[0]=i[0],void(M[1]=i[1]);if(e=L.get(D=s[M[1]]))for(T=0,g=e.length;T<g;++T)if(j=e[T],function(M,N){var D=M[0],t=N[0],i=M[1],e=N[1];if(D-i!=t-e)return!1;for(;D<=i;++D,--e)if(!Aj(s[D],s[e]))return!1;return!0}(j,M))return M[1]=j[0],void(M[0]=j[1]);t?t.push(M):L.set(N,[M]),e?e.push(M):L.set(D,[M]),I.push(M)}function D(M,N){var D=M[0],t=N[0],e=M[1]-D;if(e!==N[1]-t)return!1;for(var j=i(M),T=i(N),g=0;g<e;++g)if(!Aj(s[D+(g+j)%e],s[t+(g+T)%e]))return!1;return!0}function t(M,N){var D=M[0],t=N[0],e=M[1],j=N[1],T=e-D;if(T!==j-t)return!1;for(var g=i(M),u=T-i(N),z=0;z<T;++z)if(!Aj(s[D+(z+g)%T],s[j-(z+u)%T]))return!1;return!0}function i(M){for(var N=M[0],D=M[1],t=N,i=t,e=s[t];++t<D;){var j=s[t];(j[0]<e[0]||j[0]===e[0]&&j[1]<e[1])&&(i=t,e=j)}return i-N}var e,j,T,g,s=M.coordinates,u=M.lines,z=M.rings,A=u.length+z.length;for(delete M.lines,delete M.rings,T=0,g=u.length;T<g;++T)for(e=u[T];e=e.next;)++A;for(T=0,g=z.length;T<g;++T)for(j=z[T];j=j.next;)++A;var L=zj(2*A*1.4,rj,Aj),I=M.arcs=[];for(T=0,g=u.length;T<g;++T){e=u[T];do{N(e)}while(e=e.next)}for(T=0,g=z.length;T<g;++T)if((j=z[T]).next)do{N(j)}while(j=j.next);else!function(M){var N,e,j,T,g;if(e=L.get(N=s[M[0]]))for(T=0,g=e.length;T<g;++T){if(j=e[T],D(j,M))return M[0]=j[0],void(M[1]=j[1]);if(t(j,M))return M[0]=j[1],void(M[1]=j[0])}if(e=L.get(N=s[M[0]+i(M)]))for(T=0,g=e.length;T<g;++T){if(j=e[T],D(j,M))return M[0]=j[0],void(M[1]=j[1]);if(t(j,M))return M[0]=j[1],void(M[1]=j[0])}e?e.push(M):L.set(N,[M]),I.push(M)}(j);return M},aj=function(M,N){function D(M){M&&u.hasOwnProperty(M.type)&&u[M.type](M)}function t(M){var N=[];do{var D=s.get(M);N.push(M[0]<M[1]?D:~D)}while(M=M.next);return N}function i(M){return M.map(t)}var e=function(M){function N(M){null!=M&&s.hasOwnProperty(M.type)&&s[M.type](M)}function D(M){var N=M[0],D=M[1];N<e&&(e=N),N>T&&(T=N),D<j&&(j=D),D>g&&(g=D)}function t(M){M.forEach(D)}function i(M){M.forEach(t)}var e=1/0,j=1/0,T=-1/0,g=-1/0,s={GeometryCollection:function(M){M.geometries.forEach(N)},Point:function(M){D(M.coordinates)},MultiPoint:function(M){M.coordinates.forEach(D)},LineString:function(M){t(M.arcs)},MultiLineString:function(M){M.arcs.forEach(t)},Polygon:function(M){M.arcs.forEach(t)},MultiPolygon:function(M){M.arcs.forEach(i)}};for(var u in M)N(M[u]);return T>=e&&g>=j?[e,j,T,g]:void 0}(M=function(M){var N,D={};for(N in M)D[N]=_M(M[N]);return D}(M)),j=N>0&&e&&function(M,N,D){function t(M){return[Math.round((M[0]-s)*L),Math.round((M[1]-u)*I)]}function i(M,N){for(var D,t,i,e,j,T=-1,g=0,z=M.length,A=new Array(z);++T<z;)D=M[T],e=Math.round((D[0]-s)*L),j=Math.round((D[1]-u)*I),e===t&&j===i||(A[g++]=[t=e,i=j]);for(A.length=g;g<N;)g=A.push([A[0][0],A[0][1]]);return A}function e(M){return i(M,2)}function j(M){return i(M,4)}function T(M){return M.map(j)}function g(M){null!=M&&n.hasOwnProperty(M.type)&&n[M.type](M)}var s=N[0],u=N[1],z=N[2],A=N[3],L=z-s?(D-1)/(z-s):1,I=A-u?(D-1)/(A-u):1,n={GeometryCollection:function(M){M.geometries.forEach(g)},Point:function(M){M.coordinates=t(M.coordinates)},MultiPoint:function(M){M.coordinates=M.coordinates.map(t)},LineString:function(M){M.arcs=e(M.arcs)},MultiLineString:function(M){M.arcs=M.arcs.map(e)},Polygon:function(M){M.arcs=T(M.arcs)},MultiPolygon:function(M){M.arcs=M.arcs.map(T)}};for(var r in M)g(M[r]);return{scale:[1/L,1/I],translate:[s,u]}}(M,e,N),T=yj(cj(function(M){function N(M){M&&s.hasOwnProperty(M.type)&&s[M.type](M)}function D(M){for(var N=0,D=M.length;N<D;++N)g[++e]=M[N];var t={0:e-D+1,1:e};return j.push(t),t}function t(M){for(var N=0,D=M.length;N<D;++N)g[++e]=M[N];var t={0:e-D+1,1:e};return T.push(t),t}function i(M){return M.map(t)}var e=-1,j=[],T=[],g=[],s={GeometryCollection:function(M){M.geometries.forEach(N)},LineString:function(M){M.arcs=D(M.arcs)},MultiLineString:function(M){M.arcs=M.arcs.map(D)},Polygon:function(M){M.arcs=M.arcs.map(t)},MultiPolygon:function(M){M.arcs=M.arcs.map(i)}};for(var u in M)N(M[u]);return{type:"Topology",coordinates:g,lines:j,rings:T,objects:M}}(M))),g=T.coordinates,s=zj(1.4*T.arcs.length,VM,JM);M=T.objects,T.bbox=e,T.arcs=T.arcs.map((function(M,N){return s.set(M,N),g.slice(M[0],M[1]+1)})),delete T.coordinates,g=null;var u={GeometryCollection:function(M){M.geometries.forEach(D)},LineString:function(M){M.arcs=t(M.arcs)},MultiLineString:function(M){M.arcs=M.arcs.map(t)},Polygon:function(M){M.arcs=M.arcs.map(t)},MultiPolygon:function(M){M.arcs=M.arcs.map(i)}};for(var z in M)D(M[z]);return j&&(T.transform=j,T.arcs=function(M){for(var N=-1,D=M.length;++N<D;){for(var t,i,e=M[N],j=0,T=1,g=e.length,s=e[0],u=s[0],z=s[1];++j<g;)t=(s=e[j])[0],i=s[1],t===u&&i===z||(e[T++]=[t-u,i-z],u=t,z=i);1===T&&(e[T++]=[0,0]),e.length=T}return M}(T.arcs)),T},oj=function(M){this.points=M.points||[],this.duration=M.duration||1e4,this.sharpness=M.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=M.stepLength||60,this.length=this.points.length,this.delay=0;for(var N=0;N<this.length;N++)this.points[N].z=this.points[N].z||0;for(N=0;N<this.length-1;N++){var D=this.points[N],t=this.points[N+1];this.centers.push({x:(D.x+t.x)/2,y:(D.y+t.y)/2,z:(D.z+t.z)/2})}for(this.controls.push([this.points[0],this.points[0]]),N=0;N<this.centers.length-1;N++){D=this.centers[N],t=this.centers[N+1];var i=this.points[N+1].x-(this.centers[N].x+this.centers[N+1].x)/2,e=this.points[N+1].y-(this.centers[N].y+this.centers[N+1].y)/2,j=this.points[N+1].z-(this.centers[N].y+this.centers[N+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[N+1].x+this.sharpness*(this.centers[N].x+i),y:(1-this.sharpness)*this.points[N+1].y+this.sharpness*(this.centers[N].y+e),z:(1-this.sharpness)*this.points[N+1].z+this.sharpness*(this.centers[N].z+j)},{x:(1-this.sharpness)*this.points[N+1].x+this.sharpness*(this.centers[N+1].x+i),y:(1-this.sharpness)*this.points[N+1].y+this.sharpness*(this.centers[N+1].y+e),z:(1-this.sharpness)*this.points[N+1].z+this.sharpness*(this.centers[N+1].z+j)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this};oj.prototype.cacheSteps=function(M){var N=[],D=this.pos(0);N.push(0);for(var t=0;t<this.duration;t+=10){var i=this.pos(t);Math.sqrt((i.x-D.x)*(i.x-D.x)+(i.y-D.y)*(i.y-D.y)+(i.z-D.z)*(i.z-D.z))>M&&(N.push(t),D=i)}return N},oj.prototype.vector=function(M){var N=this.pos(M+10),D=this.pos(M-10);return{angle:180*Math.atan2(N.y-D.y,N.x-D.x)/3.14,speed:Math.sqrt((D.x-N.x)*(D.x-N.x)+(D.y-N.y)*(D.y-N.y)+(D.z-N.z)*(D.z-N.z))}},oj.prototype.pos=function(M){var N=M-this.delay;N<0&&(N=0),N>this.duration&&(N=this.duration-1);var D=N/this.duration;if(D>=1)return this.points[this.length-1];var t=Math.floor((this.points.length-1)*D);return function(M,N,D,t,i){var e=function(M){var N=M*M;return[N*M,3*N*(1-M),3*M*(1-M)*(1-M),(1-M)*(1-M)*(1-M)]}(M);return{x:i.x*e[0]+t.x*e[1]+D.x*e[2]+N.x*e[3],y:i.y*e[0]+t.y*e[1]+D.y*e[2]+N.y*e[3],z:i.z*e[0]+t.z*e[1]+D.z*e[2]+N.z*e[3]}}((this.length-1)*D-t,this.points[t],this.controls[t][1],this.controls[t+1][0],this.points[t+1])};var Ej=yN,Oj=yN;yN.deviation=function(M,N,D,t){var i=N&&N.length,e=i?N[0]*D:M.length,j=Math.abs(hN(M,0,e,D));if(i)for(var T=0,g=N.length;T<g;T++){var s=N[T]*D,u=T<g-1?N[T+1]*D:M.length;j-=Math.abs(hN(M,s,u,D))}var z=0;for(T=0;T<t.length;T+=3){var A=t[T]*D,L=t[T+1]*D,I=t[T+2]*D;z+=Math.abs((M[A]-M[I])*(M[L+1]-M[A+1])-(M[A]-M[L])*(M[I+1]-M[A+1]))}return 0===j&&0===z?0:Math.abs((z-j)/j)},yN.flatten=function(M){for(var N=M[0][0].length,D={vertices:[],holes:[],dimensions:N},t=0,i=0;i<M.length;i++){for(var e=0;e<M[i].length;e++)for(var j=0;j<N;j++)D.vertices.push(M[i][e][j]);i>0&&(t+=M[i-1].length,D.holes.push(t))}return D},Ej.default=Oj,PN.prototype={all:function(){return this._all(this.data,[])},search:function(M){var N=this.data,D=[],t=this.toBBox;if(!VN(M,N))return D;for(var i,e,j,T,g=[];N;){for(i=0,e=N.children.length;i<e;i++)j=N.children[i],VN(M,T=N.leaf?t(j):j)&&(N.leaf?D.push(j):FN(M,T)?this._all(j,D):g.push(j));N=g.pop()}return D},collides:function(M){var N=this.data,D=this.toBBox;if(!VN(M,N))return!1;for(var t,i,e,j,T=[];N;){for(t=0,i=N.children.length;t<i;t++)if(e=N.children[t],j=N.leaf?D(e):e,VN(M,j)){if(N.leaf||FN(M,j))return!0;T.push(e)}N=T.pop()}return!1},load:function(M){if(!M||!M.length)return this;if(M.length<this._minEntries){for(var N=0,D=M.length;N<D;N++)this.insert(M[N]);return this}var t=this._build(M.slice(),0,M.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){var i=this.data;this.data=t,t=i}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this},insert:function(M){return M&&this._insert(M,this.data.height-1),this},clear:function(){return this.data=JN([]),this},remove:function(M,N){if(!M)return this;for(var D,t,i,e,j=this.data,T=this.toBBox(M),g=[],s=[];j||g.length;){if(j||(j=g.pop(),t=g[g.length-1],D=s.pop(),e=!0),j.leaf&&-1!==(i=function(M,N,D){if(!D)return N.indexOf(M);for(var t=0;t<N.length;t++)if(D(M,N[t]))return t;return-1}(M,j.children,N)))return j.children.splice(i,1),g.push(j),this._condense(g),this;e||j.leaf||!FN(j,T)?t?(D++,j=t.children[D],e=!1):j=null:(g.push(j),s.push(D),D=0,t=j,j=j.children[0])}return this},toBBox:function(M){return M},compareMinX:RN,compareMinY:XN,toJSON:function(){return this.data},fromJSON:function(M){return this.data=M,this},_all:function(M,N){for(var D=[];M;)M.leaf?N.push.apply(N,M.children):D.push.apply(D,M.children),M=D.pop();return N},_build:function(M,N,D,t){var i,e=D-N+1,j=this._maxEntries;if(e<=j)return i=JN(M.slice(N,D+1)),ZN(i,this.toBBox),i;t||(t=Math.ceil(Math.log(e)/Math.log(j)),j=Math.ceil(e/Math.pow(j,t-1))),(i=JN([])).leaf=!1,i.height=t;var T,g,s,u,z=Math.ceil(e/j),A=z*Math.ceil(Math.sqrt(j));for(qN(M,N,D,A,this.compareMinX),T=N;T<=D;T+=A)for(qN(M,T,s=Math.min(T+A-1,D),z,this.compareMinY),g=T;g<=s;g+=z)u=Math.min(g+z-1,s),i.children.push(this._build(M,g,u,t-1));return ZN(i,this.toBBox),i},_chooseSubtree:function(M,N,D,t){for(var i,e,j,T,g,s,u,z;t.push(N),!N.leaf&&t.length-1!==D;){for(u=z=1/0,i=0,e=N.children.length;i<e;i++)g=_N(j=N.children[i]),(s=function(M,N){return(Math.max(N.maxX,M.maxX)-Math.min(N.minX,M.minX))*(Math.max(N.maxY,M.maxY)-Math.min(N.minY,M.minY))}(M,j)-g)<z?(z=s,u=g<u?g:u,T=j):s===z&&g<u&&(u=g,T=j);N=T||N.children[0]}return N},_insert:function(M,N,D){var t=this.toBBox,i=D?M:t(M),e=[],j=this._chooseSubtree(i,this.data,N,e);for(j.children.push(M),WN(j,i);N>=0&&e[N].children.length>this._maxEntries;)this._split(e,N),N--;this._adjustParentBBoxes(i,e,N)},_split:function(M,N){var D=M[N],t=D.children.length,i=this._minEntries;this._chooseSplitAxis(D,i,t);var e=this._chooseSplitIndex(D,i,t),j=JN(D.children.splice(e,D.children.length-e));j.height=D.height,j.leaf=D.leaf,ZN(D,this.toBBox),ZN(j,this.toBBox),N?M[N-1].children.push(j):this._splitRoot(D,j)},_splitRoot:function(M,N){this.data=JN([M,N]),this.data.height=M.height+1,this.data.leaf=!1,ZN(this.data,this.toBBox)},_chooseSplitIndex:function(M,N,D){var t,i,e,j,T,g,s,u;for(g=s=1/0,t=N;t<=D-N;t++)j=function(M,N){var D=Math.max(M.minX,N.minX),t=Math.max(M.minY,N.minY),i=Math.min(M.maxX,N.maxX),e=Math.min(M.maxY,N.maxY);return Math.max(0,i-D)*Math.max(0,e-t)}(i=GN(M,0,t,this.toBBox),e=GN(M,t,D,this.toBBox)),T=_N(i)+_N(e),j<g?(g=j,u=t,s=T<s?T:s):j===g&&T<s&&(s=T,u=t);return u},_chooseSplitAxis:function(M,N,D){var t=M.leaf?this.compareMinX:RN,i=M.leaf?this.compareMinY:XN;this._allDistMargin(M,N,D,t)<this._allDistMargin(M,N,D,i)&&M.children.sort(t)},_allDistMargin:function(M,N,D,t){M.children.sort(t);var i,e,j=this.toBBox,T=GN(M,0,N,j),g=GN(M,D-N,D,j),s=HN(T)+HN(g);for(i=N;i<D-N;i++)e=M.children[i],WN(T,M.leaf?j(e):e),s+=HN(T);for(i=D-N-1;i>=N;i--)e=M.children[i],WN(g,M.leaf?j(e):e),s+=HN(g);return s},_adjustParentBBoxes:function(M,N,D){for(var t=D;t>=0;t--)WN(N[t],M)},_condense:function(M){for(var N,D=M.length-1;D>=0;D--)0===M[D].children.length?D>0?(N=M[D-1].children).splice(N.indexOf(M[D]),1):this.clear():ZN(M[D],this.toBBox)},_initFormat:function(M){var N=["return a"," - b",";"];this.compareMinX=new Function("a","b",N.join(M[0])),this.compareMinY=new Function("a","b",N.join(M[1])),this.toBBox=new Function("a","return {minX: a"+M[0]+", minY: a"+M[1]+", maxX: a"+M[2]+", maxY: a"+M[3]+"};")}};var xj=Object.freeze({toMercator:gD,toWgs84:sD}),Cj=6378137,Sj=function(M,N,D){function t(M,D,t,i){var g,s,u=e[M][D],z=e[M][D+1],A=e[t][i],L=e[t][i+1],I=function(M,N,D,t){if(dD(M,D)||dD(M,t)||dD(N,D)||dD(t,D))return null;var i=M[0],e=M[1],j=N[0],T=N[1],g=D[0],s=D[1],u=t[0],z=t[1],A=(i-j)*(s-z)-(e-T)*(g-u);return 0===A?null:[((i*T-e*j)*(g-u)-(i-j)*(g*z-s*u))/A,((i*T-e*j)*(s-z)-(e-T)*(g*z-s*u))/A]}(u,z,A,L);if(null!==I&&(g=z[0]!==u[0]?(I[0]-u[0])/(z[0]-u[0]):(I[1]-u[1])/(z[1]-u[1]),s=L[0]!==A[0]?(I[0]-A[0])/(L[0]-A[0]):(I[1]-A[1])/(L[1]-A[1]),!(g>=1||g<=0||s>=1||s<=0))){var n=I,r=!T[n];r&&(T[n]=!0),N?j.push(N(I,M,D,u,z,g,t,i,A,L,s,r)):j.push(I)}}function i(M,N){var D,t,i,j,T=e[M][N],g=e[M][N+1];return T[0]<g[0]?(D=T[0],t=g[0]):(D=g[0],t=T[0]),T[1]<g[1]?(i=T[1],j=g[1]):(i=g[1],j=T[1]),{minX:D,minY:i,maxX:t,maxY:j,ring:M,edge:N}}if("Polygon"!==M.geometry.type)throw new Error("The input feature must be a Polygon");void 0===D&&(D=1);var e=M.geometry.coordinates,j=[],T={};if(D){for(var g=[],s=0;s<e.length;s++)for(var u=0;u<e[s].length-1;u++)g.push(i(s,u));var z=Re();z.load(g)}for(var A=0;A<e.length;A++)for(var L=0;L<e[A].length-1;L++)if(D)z.search(i(A,L)).forEach((function(M){var N=M.ring,D=M.edge;t(A,L,N,D)}));else for(var I=0;I<e.length;I++)for(var n=0;n<e[I].length-1;n++)t(A,L,I,n);return N||(j={type:"Feature",geometry:{type:"MultiPoint",coordinates:j}}),j},lj=function(M){function N(){for(var M=[],N=0;N<I.features.length;N++)-1==I.features[N].properties.parent&&M.push(N);if(M.length>1)for(N=0;N<M.length;N++){for(var D=-1,t=0;t<I.features.length;t++)M[N]!=t&&dM(I.features[M[N]].geometry.coordinates[0][0],I.features[t],{ignoreBoundary:!0})&&wD(I.features[t])<1/0&&(D=t);I.features[M[N]].properties.parent=D}}function D(){for(var M=0;M<I.features.length;M++)if(-1==I.features[M].properties.parent){var N=I.features[M].properties.winding;I.features[M].properties.netWinding=N,t(M,N)}}function t(M,N){for(var D=0;D<I.features.length;D++)if(I.features[D].properties.parent==M){var i=N+I.features[D].properties.winding;I.features[D].properties.netWinding=i,t(D,i)}}if("Feature"!=M.type)throw new Error("The input must a geojson object of type Feature");if(void 0===M.geometry||null==M.geometry)throw new Error("The input must a geojson object with a non-empty geometry");if("Polygon"!=M.geometry.type)throw new Error("The input must be a geojson Polygon");for(var i=M.geometry.coordinates.length,j=[],T=0;T<i;T++){var g=M.geometry.coordinates[T];pD(g[0],g[g.length-1])||g.push(g[0]),j.push.apply(j,g.slice(0,g.length-1))}if(!function(M){for(var N={},D=1,t=0,i=M.length;t<i;++t){if(N.hasOwnProperty(M[t])){D=0;break}N[M[t]]=1}return D}(j))throw new Error("The input polygon may not have duplicate vertices (except for the first and last vertex of each ring)");var u=j.length,z=Sj(M,(function(M,N,D,t,i,e,j,T,g,s,u,z){return[M,N,D,t,i,e,j,T,g,s,u,z]})),A=z.length;if(0==A){var L=[];for(T=0;T<i;T++)L.push(e([M.geometry.coordinates[T]],{parent:-1,winding:function(M){for(var N=0,D=0;D<M.length-1;D++)M[D][0]<M[N][0]&&(N=D);if(YD([M[(N-1).modulo(M.length-1)],M[N],M[(N+1).modulo(M.length-1)]],!0))var t=1;else t=-1;return t}(M.geometry.coordinates[T])}));var I=s(L);return N(),D(),I}var n=[],r=[];for(T=0;T<i;T++){n.push([]);for(var w=0;w<M.geometry.coordinates[T].length-1;w++)n[T].push([new kj(M.geometry.coordinates[T][(w+1).modulo(M.geometry.coordinates[T].length-1)],1,[T,w],[T,(w+1).modulo(M.geometry.coordinates[T].length-1)],void 0)]),r.push(new Qj(M.geometry.coordinates[T][w],[T,(w-1).modulo(M.geometry.coordinates[T].length-1)],[T,w],void 0,void 0,!1,!0))}for(T=0;T<A;T++)n[z[T][1]][z[T][2]].push(new kj(z[T][0],z[T][5],[z[T][1],z[T][2]],[z[T][6],z[T][7]],void 0)),z[T][11]&&r.push(new Qj(z[T][0],[z[T][1],z[T][2]],[z[T][6],z[T][7]],void 0,void 0,!0,!0));var c=r.length;for(T=0;T<n.length;T++)for(w=0;w<n[T].length;w++)n[T][w].sort((function(M,N){return M.param<N.param?-1:1}));var y=[];for(T=0;T<c;T++)y.push({minX:r[T].coord[0],minY:r[T].coord[1],maxX:r[T].coord[0],maxY:r[T].coord[1],index:T});var a=Re();for(a.load(y),T=0;T<n.length;T++)for(w=0;w<n[T].length;w++)for(var o=0;o<n[T][w].length;o++){O=o==n[T][w].length-1?n[T][(w+1).modulo(M.geometry.coordinates[T].length-1)][0].coord:n[T][w][o+1].coord;var E=a.search({minX:O[0],minY:O[1],maxX:O[0],maxY:O[1]})[0];n[T][w][o].nxtIsectAlongEdgeIn=E.index}for(T=0;T<n.length;T++)for(w=0;w<n[T].length;w++)for(o=0;o<n[T][w].length;o++){var O=n[T][w][o].coord,x=(E=a.search({minX:O[0],minY:O[1],maxX:O[0],maxY:O[1]})[0]).index;x<u?r[x].nxtIsectAlongRingAndEdge2=n[T][w][o].nxtIsectAlongEdgeIn:pD(r[x].ringAndEdge1,n[T][w][o].ringAndEdgeIn)?r[x].nxtIsectAlongRingAndEdge1=n[T][w][o].nxtIsectAlongEdgeIn:r[x].nxtIsectAlongRingAndEdge2=n[T][w][o].nxtIsectAlongEdgeIn}var C=[];for(T=0,w=0;w<i;w++){var S=T;for(o=0;o<M.geometry.coordinates[w].length-1;o++)r[T].coord[0]<r[S].coord[0]&&(S=T),T++;var l=r[S].nxtIsectAlongRingAndEdge2;for(o=0;o<r.length;o++)if(r[o].nxtIsectAlongRingAndEdge1==S||r[o].nxtIsectAlongRingAndEdge2==S){var k=o;break}var Q=YD([r[k].coord,r[S].coord,r[l].coord],!0)?1:-1;C.push({isect:S,parent:-1,winding:Q})}for(C.sort((function(M,N){return r[M.isect].coord>r[N.isect].coord?-1:1})),L=[];C.length>0;){var d=C.pop(),Y=d.isect,p=d.parent,U=d.winding,h=L.length,f=[r[Y].coord],m=Y;if(r[Y].ringAndEdge1Walkable)var v=r[Y].ringAndEdge1,B=r[Y].nxtIsectAlongRingAndEdge1;else v=r[Y].ringAndEdge2,B=r[Y].nxtIsectAlongRingAndEdge2;for(;!pD(r[Y].coord,r[B].coord);){f.push(r[B].coord);var b=void 0;for(T=0;T<C.length;T++)if(C[T].isect==B){b=T;break}if(void 0!=b&&C.splice(b,1),pD(v,r[B].ringAndEdge1)){if(v=r[B].ringAndEdge2,r[B].ringAndEdge2Walkable=!1,r[B].ringAndEdge1Walkable){var P={isect:B};YD([r[m].coord,r[B].coord,r[r[B].nxtIsectAlongRingAndEdge2].coord],1==U)?(P.parent=p,P.winding=-U):(P.parent=h,P.winding=U),C.push(P)}m=B,B=r[B].nxtIsectAlongRingAndEdge2}else v=r[B].ringAndEdge1,r[B].ringAndEdge1Walkable=!1,r[B].ringAndEdge2Walkable&&(P={isect:B},YD([r[m].coord,r[B].coord,r[r[B].nxtIsectAlongRingAndEdge1].coord],1==U)?(P.parent=p,P.winding=-U):(P.parent=h,P.winding=U),C.push(P)),m=B,B=r[B].nxtIsectAlongRingAndEdge1}f.push(r[B].coord),L.push(e([f],{index:h,parent:p,winding:U,netWinding:void 0}))}return I=s(L),N(),D(),I},kj=function(M,N,D,t,i){this.coord=M,this.param=N,this.ringAndEdgeIn=D,this.ringAndEdgeOut=t,this.nxtIsectAlongEdgeIn=i},Qj=function(M,N,D,t,i,e,j){this.coord=M,this.ringAndEdge1=N,this.ringAndEdge2=D,this.nxtIsectAlongRingAndEdge1=t,this.nxtIsectAlongRingAndEdge2=i,this.ringAndEdge1Walkable=e,this.ringAndEdge2Walkable=j};Number.prototype.modulo=function(M){return(this%M+M)%M};var dj=Math.PI/180,Yj=180/Math.PI,pj=function(M,N){this.lon=M,this.lat=N,this.x=dj*M,this.y=dj*N};pj.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},pj.prototype.antipode=function(){var M=-1*this.lat,N=this.lon<0?180+this.lon:-1*(180-this.lon);return new pj(N,M)};var Uj=function(){this.coords=[],this.length=0};Uj.prototype.move_to=function(M){this.length++,this.coords.push(M)};var hj=function(M){this.properties=M||{},this.geometries=[]};hj.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var M=[],N=0;N<this.geometries.length;N++)M.push(this.geometries[N].coords);return{geometry:{type:"MultiLineString",coordinates:M},type:"Feature",properties:this.properties}},hj.prototype.wkt=function(){for(var M="",N="LINESTRING(",D=function(M){N+=M[0]+" "+M[1]+","},t=0;t<this.geometries.length;t++){if(0===this.geometries[t].coords.length)return"LINESTRING(empty)";this.geometries[t].coords.forEach(D),M+=N.substring(0,N.length-1)+")"}return M};var fj=function(M,N,D){if(!M||void 0===M.x||void 0===M.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");if(!N||void 0===N.x||void 0===N.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");this.start=new pj(M.x,M.y),this.end=new pj(N.x,N.y),this.properties=D||{};var t=this.start.x-this.end.x,i=this.start.y-this.end.y,e=Math.pow(Math.sin(i/2),2)+Math.cos(this.start.y)*Math.cos(this.end.y)*Math.pow(Math.sin(t/2),2);if(this.g=2*Math.asin(Math.sqrt(e)),this.g===Math.PI)throw new Error("it appears "+M.view()+" and "+N.view()+" are 'antipodal', e.g diametrically opposite, thus there is no single route but rather infinite");if(isNaN(this.g))throw new Error("could not calculate great circle between "+M+" and "+N)};fj.prototype.interpolate=function(M){var N=Math.sin((1-M)*this.g)/Math.sin(this.g),D=Math.sin(M*this.g)/Math.sin(this.g),t=N*Math.cos(this.start.y)*Math.cos(this.start.x)+D*Math.cos(this.end.y)*Math.cos(this.end.x),i=N*Math.cos(this.start.y)*Math.sin(this.start.x)+D*Math.cos(this.end.y)*Math.sin(this.end.x),e=N*Math.sin(this.start.y)+D*Math.sin(this.end.y),j=Yj*Math.atan2(e,Math.sqrt(Math.pow(t,2)+Math.pow(i,2)));return[Yj*Math.atan2(i,t),j]},fj.prototype.Arc=function(M,N){var D=[];if(!M||M<=2)D.push([this.start.lon,this.start.lat]),D.push([this.end.lon,this.end.lat]);else for(var t=1/(M-1),i=0;i<M;++i){var e=t*i,j=this.interpolate(e);D.push(j)}for(var T=!1,g=0,s=N&&N.offset?N.offset:10,u=180-s,z=-180+s,A=360-s,L=1;L<D.length;++L){var I=D[L-1][0],n=D[L][0],r=Math.abs(n-I);r>A&&(n>u&&I<z||I>u&&n<z)?T=!0:r>g&&(g=r)}var w=[];if(T&&g<s){var c=[];w.push(c);for(var y=0;y<D.length;++y){var a=parseFloat(D[y][0]);if(y>0&&Math.abs(a-D[y-1][0])>A){var o=parseFloat(D[y-1][0]),E=parseFloat(D[y-1][1]),O=parseFloat(D[y][0]),x=parseFloat(D[y][1]);if(o>-180&&o<z&&180===O&&y+1<D.length&&D[y-1][0]>-180&&D[y-1][0]<z){c.push([-180,D[y][1]]),y++,c.push([D[y][0],D[y][1]]);continue}if(o>u&&o<180&&-180===O&&y+1<D.length&&D[y-1][0]>u&&D[y-1][0]<180){c.push([180,D[y][1]]),y++,c.push([D[y][0],D[y][1]]);continue}if(o<z&&O>u){var C=o;o=O,O=C;var S=E;E=x,x=S}if(o>u&&O<z&&(O+=360),o<=180&&O>=180&&o<O){var l=(180-o)/(O-o),k=l*x+(1-l)*E;c.push([D[y-1][0]>u?180:-180,k]),(c=[]).push([D[y-1][0]>u?-180:180,k]),w.push(c)}else c=[],w.push(c);c.push([a,D[y][1]])}else c.push([D[y][0],D[y][1]])}}else{var Q=[];w.push(Q);for(var d=0;d<D.length;++d)Q.push([D[d][0],D[d][1]])}for(var Y=new hj(this.properties),p=0;p<w.length;++p){var U=new Uj;Y.geometries.push(U);for(var h=w[p],f=0;f<h.length;++f)U.move_to(h[f])}return Y};var mj=RD;RD.polyline=RD,RD.polygon=function(M,N){var D,t,i,e,j,T,g;for(t=1;t<=8;t*=2){for(D=[],e=!(_D(i=M[M.length-1],N)&t),j=0;j<M.length;j++)(g=!(_D(T=M[j],N)&t))!==e&&D.push(XD(i,T,t,N)),g&&D.push(T),i=T,e=g;if(!(M=D).length)break}return D};var vj=Array.prototype.slice,Bj={successCallback:null,verbose:!1,polygons:!1},bj={},Pj=64,Zj=16,Gj=4,Wj=1,Rj=[],Xj=[],_j=[],Hj=[],Fj=[],Vj=[],Jj=[],qj=[],Kj=[],$j=[],MT=[],NT=[],DT=[],tT=[],iT=[],eT=[],jT=[],TT=[],gT=[],sT=[],uT=[],zT=[],AT=[],LT=[];Jj[85]=$j[85]=-1,qj[85]=MT[85]=0,Kj[85]=NT[85]=1,gT[85]=zT[85]=1,sT[85]=AT[85]=0,uT[85]=LT[85]=1,Rj[85]=Hj[85]=0,Xj[85]=Fj[85]=-1,_j[85]=iT[85]=0,eT[85]=DT[85]=0,jT[85]=tT[85]=1,Vj[85]=TT[85]=1,zT[1]=zT[169]=0,AT[1]=AT[169]=-1,LT[1]=LT[169]=0,DT[1]=DT[169]=-1,tT[1]=tT[169]=0,iT[1]=iT[169]=0,$j[4]=$j[166]=0,MT[4]=MT[166]=-1,NT[4]=NT[166]=1,eT[4]=eT[166]=1,jT[4]=jT[166]=0,TT[4]=TT[166]=0,Jj[16]=Jj[154]=0,qj[16]=qj[154]=1,Kj[16]=Kj[154]=1,Hj[16]=Hj[154]=1,Fj[16]=Fj[154]=0,Vj[16]=Vj[154]=1,gT[64]=gT[106]=0,sT[64]=sT[106]=1,uT[64]=uT[106]=0,Rj[64]=Rj[106]=-1,Xj[64]=Xj[106]=0,_j[64]=_j[106]=1,gT[2]=gT[168]=0,sT[2]=sT[168]=-1,uT[2]=uT[168]=1,zT[2]=zT[168]=0,AT[2]=AT[168]=-1,LT[2]=LT[168]=0,DT[2]=DT[168]=-1,tT[2]=tT[168]=0,iT[2]=iT[168]=0,eT[2]=eT[168]=-1,jT[2]=jT[168]=0,TT[2]=TT[168]=1,Jj[8]=Jj[162]=0,qj[8]=qj[162]=-1,Kj[8]=Kj[162]=0,$j[8]=$j[162]=0,MT[8]=MT[162]=-1,NT[8]=NT[162]=1,DT[8]=DT[162]=1,tT[8]=tT[162]=0,iT[8]=iT[162]=1,eT[8]=eT[162]=1,jT[8]=jT[162]=0,TT[8]=TT[162]=0,Jj[32]=Jj[138]=0,qj[32]=qj[138]=1,Kj[32]=Kj[138]=1,$j[32]=$j[138]=0,MT[32]=MT[138]=1,NT[32]=NT[138]=0,Rj[32]=Rj[138]=1,Xj[32]=Xj[138]=0,_j[32]=_j[138]=0,Hj[32]=Hj[138]=1,Fj[32]=Fj[138]=0,Vj[32]=Vj[138]=1,zT[128]=zT[42]=0,AT[128]=AT[42]=1,LT[128]=LT[42]=1,gT[128]=gT[42]=0,sT[128]=sT[42]=1,uT[128]=uT[42]=0,Rj[128]=Rj[42]=-1,Xj[128]=Xj[42]=0,_j[128]=_j[42]=1,Hj[128]=Hj[42]=-1,Fj[128]=Fj[42]=0,Vj[128]=Vj[42]=0,$j[5]=$j[165]=-1,MT[5]=MT[165]=0,NT[5]=NT[165]=0,zT[5]=zT[165]=1,AT[5]=AT[165]=0,LT[5]=LT[165]=0,eT[20]=eT[150]=0,jT[20]=jT[150]=1,TT[20]=TT[150]=1,Hj[20]=Hj[150]=0,Fj[20]=Fj[150]=-1,Vj[20]=Vj[150]=1,Jj[80]=Jj[90]=-1,qj[80]=qj[90]=0,Kj[80]=Kj[90]=1,gT[80]=gT[90]=1,sT[80]=sT[90]=0,uT[80]=uT[90]=1,DT[65]=DT[105]=0,tT[65]=tT[105]=1,iT[65]=iT[105]=0,Rj[65]=Rj[105]=0,Xj[65]=Xj[105]=-1,_j[65]=_j[105]=0,Jj[160]=Jj[10]=-1,qj[160]=qj[10]=0,Kj[160]=Kj[10]=1,$j[160]=$j[10]=-1,MT[160]=MT[10]=0,NT[160]=NT[10]=0,zT[160]=zT[10]=1,AT[160]=AT[10]=0,LT[160]=LT[10]=0,gT[160]=gT[10]=1,sT[160]=sT[10]=0,uT[160]=uT[10]=1,eT[130]=eT[40]=0,jT[130]=jT[40]=1,TT[130]=TT[40]=1,DT[130]=DT[40]=0,tT[130]=tT[40]=1,iT[130]=iT[40]=0,Rj[130]=Rj[40]=0,Xj[130]=Xj[40]=-1,_j[130]=_j[40]=0,Hj[130]=Hj[40]=0,Fj[130]=Fj[40]=-1,Vj[130]=Vj[40]=1,$j[37]=$j[133]=0,MT[37]=MT[133]=1,NT[37]=NT[133]=1,zT[37]=zT[133]=0,AT[37]=AT[133]=1,LT[37]=LT[133]=0,Rj[37]=Rj[133]=-1,Xj[37]=Xj[133]=0,_j[37]=_j[133]=0,Hj[37]=Hj[133]=1,Fj[37]=Fj[133]=0,Vj[37]=Vj[133]=0,eT[148]=eT[22]=-1,jT[148]=jT[22]=0,TT[148]=TT[22]=0,zT[148]=zT[22]=0,AT[148]=AT[22]=-1,LT[148]=LT[22]=1,gT[148]=gT[22]=0,sT[148]=sT[22]=1,uT[148]=uT[22]=1,Hj[148]=Hj[22]=-1,Fj[148]=Fj[22]=0,Vj[148]=Vj[22]=1,Jj[82]=Jj[88]=0,qj[82]=qj[88]=-1,Kj[82]=Kj[88]=1,eT[82]=eT[88]=1,jT[82]=jT[88]=0,TT[82]=TT[88]=1,DT[82]=DT[88]=-1,tT[82]=tT[88]=0,iT[82]=iT[88]=1,gT[82]=gT[88]=0,sT[82]=sT[88]=-1,uT[82]=uT[88]=0,Jj[73]=Jj[97]=0,qj[73]=qj[97]=1,Kj[73]=Kj[97]=0,$j[73]=$j[97]=0,MT[73]=MT[97]=-1,NT[73]=NT[97]=0,DT[73]=DT[97]=1,tT[73]=tT[97]=0,iT[73]=iT[97]=0,Rj[73]=Rj[97]=1,Xj[73]=Xj[97]=0,_j[73]=_j[97]=1,Jj[145]=Jj[25]=0,qj[145]=qj[25]=-1,Kj[145]=Kj[25]=0,DT[145]=DT[25]=1,tT[145]=tT[25]=0,iT[145]=iT[25]=1,zT[145]=zT[25]=0,AT[145]=AT[25]=1,LT[145]=LT[25]=1,Hj[145]=Hj[25]=-1,Fj[145]=Fj[25]=0,Vj[145]=Vj[25]=0,$j[70]=$j[100]=0,MT[70]=MT[100]=1,NT[70]=NT[100]=0,eT[70]=eT[100]=-1,jT[70]=jT[100]=0,TT[70]=TT[100]=1,gT[70]=gT[100]=0,sT[70]=sT[100]=-1,uT[70]=uT[100]=1,Rj[70]=Rj[100]=1,Xj[70]=Xj[100]=0,_j[70]=_j[100]=0,$j[101]=$j[69]=0,MT[101]=MT[69]=1,NT[101]=NT[69]=0,Rj[101]=Rj[69]=1,Xj[101]=Xj[69]=0,_j[101]=_j[69]=0,zT[149]=zT[21]=0,AT[149]=AT[21]=1,LT[149]=LT[21]=1,Hj[149]=Hj[21]=-1,Fj[149]=Fj[21]=0,Vj[149]=Vj[21]=0,eT[86]=eT[84]=-1,jT[86]=jT[84]=0,TT[86]=TT[84]=1,gT[86]=gT[84]=0,sT[86]=sT[84]=-1,uT[86]=uT[84]=1,Jj[89]=Jj[81]=0,qj[89]=qj[81]=-1,Kj[89]=Kj[81]=0,DT[89]=DT[81]=1,tT[89]=tT[81]=0,iT[89]=iT[81]=1,Jj[96]=Jj[74]=0,qj[96]=qj[74]=1,Kj[96]=Kj[74]=0,$j[96]=$j[74]=-1,MT[96]=MT[74]=0,NT[96]=NT[74]=1,gT[96]=gT[74]=1,sT[96]=sT[74]=0,uT[96]=uT[74]=0,Rj[96]=Rj[74]=1,Xj[96]=Xj[74]=0,_j[96]=_j[74]=1,Jj[24]=Jj[146]=0,qj[24]=qj[146]=-1,Kj[24]=Kj[146]=1,eT[24]=eT[146]=1,jT[24]=jT[146]=0,TT[24]=TT[146]=1,DT[24]=DT[146]=0,tT[24]=tT[146]=1,iT[24]=iT[146]=1,Hj[24]=Hj[146]=0,Fj[24]=Fj[146]=-1,Vj[24]=Vj[146]=0,$j[6]=$j[164]=-1,MT[6]=MT[164]=0,NT[6]=NT[164]=1,eT[6]=eT[164]=-1,jT[6]=jT[164]=0,TT[6]=TT[164]=0,zT[6]=zT[164]=0,AT[6]=AT[164]=-1,LT[6]=LT[164]=1,gT[6]=gT[164]=1,sT[6]=sT[164]=0,uT[6]=uT[164]=0,DT[129]=DT[41]=0,tT[129]=tT[41]=1,iT[129]=iT[41]=1,zT[129]=zT[41]=0,AT[129]=AT[41]=1,LT[129]=LT[41]=0,Rj[129]=Rj[41]=-1,Xj[129]=Xj[41]=0,_j[129]=_j[41]=0,Hj[129]=Hj[41]=0,Fj[129]=Fj[41]=-1,Vj[129]=Vj[41]=0,eT[66]=eT[104]=0,jT[66]=jT[104]=1,TT[66]=TT[104]=0,DT[66]=DT[104]=-1,tT[66]=tT[104]=0,iT[66]=iT[104]=1,gT[66]=gT[104]=0,sT[66]=sT[104]=-1,uT[66]=uT[104]=0,Rj[66]=Rj[104]=0,Xj[66]=Xj[104]=-1,_j[66]=_j[104]=1,Jj[144]=Jj[26]=-1,qj[144]=qj[26]=0,Kj[144]=Kj[26]=0,zT[144]=zT[26]=1,AT[144]=AT[26]=0,LT[144]=LT[26]=1,gT[144]=gT[26]=0,sT[144]=sT[26]=1,uT[144]=uT[26]=1,Hj[144]=Hj[26]=-1,Fj[144]=Fj[26]=0,Vj[144]=Vj[26]=1,$j[36]=$j[134]=0,MT[36]=MT[134]=1,NT[36]=NT[134]=1,eT[36]=eT[134]=0,jT[36]=jT[134]=1,TT[36]=TT[134]=0,Rj[36]=Rj[134]=0,Xj[36]=Xj[134]=-1,_j[36]=_j[134]=1,Hj[36]=Hj[134]=1,Fj[36]=Fj[134]=0,Vj[36]=Vj[134]=0,Jj[9]=Jj[161]=-1,qj[9]=qj[161]=0,Kj[9]=Kj[161]=0,$j[9]=$j[161]=0,MT[9]=MT[161]=-1,NT[9]=NT[161]=0,DT[9]=DT[161]=1,tT[9]=tT[161]=0,iT[9]=iT[161]=0,zT[9]=zT[161]=1,AT[9]=AT[161]=0,LT[9]=LT[161]=1,Jj[136]=0,qj[136]=1,Kj[136]=1,$j[136]=0,MT[136]=1,NT[136]=0,eT[136]=-1,jT[136]=0,TT[136]=1,DT[136]=-1,tT[136]=0,iT[136]=0,zT[136]=0,AT[136]=-1,LT[136]=0,gT[136]=0,sT[136]=-1,uT[136]=1,Rj[136]=1,Xj[136]=0,_j[136]=0,Hj[136]=1,Fj[136]=0,Vj[136]=1,Jj[34]=0,qj[34]=-1,Kj[34]=0,$j[34]=0,MT[34]=-1,NT[34]=1,eT[34]=1,jT[34]=0,TT[34]=0,DT[34]=1,tT[34]=0,iT[34]=1,zT[34]=0,AT[34]=1,LT[34]=1,gT[34]=0,sT[34]=1,uT[34]=0,Rj[34]=-1,Xj[34]=0,_j[34]=1,Hj[34]=-1,Fj[34]=0,Vj[34]=0,Jj[35]=0,qj[35]=1,Kj[35]=1,$j[35]=0,MT[35]=-1,NT[35]=1,eT[35]=1,jT[35]=0,TT[35]=0,DT[35]=-1,tT[35]=0,iT[35]=0,zT[35]=0,AT[35]=-1,LT[35]=0,gT[35]=0,sT[35]=1,uT[35]=0,Rj[35]=-1,Xj[35]=0,_j[35]=1,Hj[35]=1,Fj[35]=0,Vj[35]=1,Jj[153]=0,qj[153]=1,Kj[153]=1,DT[153]=-1,tT[153]=0,iT[153]=0,zT[153]=0,AT[153]=-1,LT[153]=0,Hj[153]=1,Fj[153]=0,Vj[153]=1,$j[102]=0,MT[102]=-1,NT[102]=1,eT[102]=1,jT[102]=0,TT[102]=0,gT[102]=0,sT[102]=1,uT[102]=0,Rj[102]=-1,Xj[102]=0,_j[102]=1,Jj[155]=0,qj[155]=-1,Kj[155]=0,DT[155]=1,tT[155]=0,iT[155]=1,zT[155]=0,AT[155]=1,LT[155]=1,Hj[155]=-1,Fj[155]=0,Vj[155]=0,$j[103]=0,MT[103]=1,NT[103]=0,eT[103]=-1,jT[103]=0,TT[103]=1,gT[103]=0,sT[103]=-1,uT[103]=1,Rj[103]=1,Xj[103]=0,_j[103]=0,Jj[152]=0,qj[152]=1,Kj[152]=1,eT[152]=-1,jT[152]=0,TT[152]=1,DT[152]=-1,tT[152]=0,iT[152]=0,zT[152]=0,AT[152]=-1,LT[152]=0,gT[152]=0,sT[152]=-1,uT[152]=1,Hj[152]=1,Fj[152]=0,Vj[152]=1,Jj[156]=0,qj[156]=-1,Kj[156]=1,eT[156]=1,jT[156]=0,TT[156]=1,DT[156]=-1,tT[156]=0,iT[156]=0,zT[156]=0,AT[156]=-1,LT[156]=0,gT[156]=0,sT[156]=1,uT[156]=1,Hj[156]=-1,Fj[156]=0,Vj[156]=1,Jj[137]=0,qj[137]=1,Kj[137]=1,$j[137]=0,MT[137]=1,NT[137]=0,DT[137]=-1,tT[137]=0,iT[137]=0,zT[137]=0,AT[137]=-1,LT[137]=0,Rj[137]=1,Xj[137]=0,_j[137]=0,Hj[137]=1,Fj[137]=0,Vj[137]=1,Jj[139]=0,qj[139]=1,Kj[139]=1,$j[139]=0,MT[139]=-1,NT[139]=0,DT[139]=1,tT[139]=0,iT[139]=0,zT[139]=0,AT[139]=1,LT[139]=0,Rj[139]=-1,Xj[139]=0,_j[139]=0,Hj[139]=1,Fj[139]=0,Vj[139]=1,Jj[98]=0,qj[98]=-1,Kj[98]=0,$j[98]=0,MT[98]=-1,NT[98]=1,eT[98]=1,jT[98]=0,TT[98]=0,DT[98]=1,tT[98]=0,iT[98]=1,gT[98]=0,sT[98]=1,uT[98]=0,Rj[98]=-1,Xj[98]=0,_j[98]=1,Jj[99]=0,qj[99]=1,Kj[99]=0,$j[99]=0,MT[99]=-1,NT[99]=1,eT[99]=1,jT[99]=0,TT[99]=0,DT[99]=-1,tT[99]=0,iT[99]=1,gT[99]=0,sT[99]=-1,uT[99]=0,Rj[99]=1,Xj[99]=0,_j[99]=1,$j[38]=0,MT[38]=-1,NT[38]=1,eT[38]=1,jT[38]=0,TT[38]=0,zT[38]=0,AT[38]=1,LT[38]=1,gT[38]=0,sT[38]=1,uT[38]=0,Rj[38]=-1,Xj[38]=0,_j[38]=1,Hj[38]=-1,Fj[38]=0,Vj[38]=0,$j[39]=0,MT[39]=1,NT[39]=1,eT[39]=-1,jT[39]=0,TT[39]=0,zT[39]=0,AT[39]=-1,LT[39]=1,gT[39]=0,sT[39]=1,uT[39]=0,Rj[39]=-1,Xj[39]=0,_j[39]=1,Hj[39]=1,Fj[39]=0,Vj[39]=0;var IT=function(M){return[[M.bottomleft,0],[0,0],[0,M.leftbottom]]},nT=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0]]},rT=function(M){return[[M.topright,1],[1,1],[1,M.righttop]]},wT=function(M){return[[0,M.lefttop],[0,1],[M.topleft,1]]},cT=function(M){return[[M.bottomright,0],[M.bottomleft,0],[0,M.leftbottom],[0,M.lefttop]]},yT=function(M){return[[M.bottomright,0],[M.bottomleft,0],[1,M.righttop],[1,M.rightbottom]]},aT=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.topleft,1],[M.topright,1]]},oT=function(M){return[[0,M.leftbottom],[0,M.lefttop],[M.topleft,1],[M.topright,1]]},ET=[],OT=[],xT=[],CT=[],ST=[],lT=[],kT=[],QT=[];CT[1]=ST[1]=18,CT[169]=ST[169]=18,xT[4]=OT[4]=12,xT[166]=OT[166]=12,ET[16]=QT[16]=4,ET[154]=QT[154]=4,lT[64]=kT[64]=22,lT[106]=kT[106]=22,xT[2]=lT[2]=17,CT[2]=ST[2]=18,xT[168]=lT[168]=17,CT[168]=ST[168]=18,ET[8]=CT[8]=9,OT[8]=xT[8]=12,ET[162]=CT[162]=9,OT[162]=xT[162]=12,ET[32]=QT[32]=4,OT[32]=kT[32]=1,ET[138]=QT[138]=4,OT[138]=kT[138]=1,ST[128]=QT[128]=21,lT[128]=kT[128]=22,ST[42]=QT[42]=21,lT[42]=kT[42]=22,OT[5]=ST[5]=14,OT[165]=ST[165]=14,xT[20]=QT[20]=6,xT[150]=QT[150]=6,ET[80]=lT[80]=11,ET[90]=lT[90]=11,CT[65]=kT[65]=3,CT[105]=kT[105]=3,ET[160]=lT[160]=11,OT[160]=ST[160]=14,ET[10]=lT[10]=11,OT[10]=ST[10]=14,xT[130]=QT[130]=6,CT[130]=kT[130]=3,xT[40]=QT[40]=6,CT[40]=kT[40]=3,OT[101]=kT[101]=1,OT[69]=kT[69]=1,ST[149]=QT[149]=21,ST[21]=QT[21]=21,xT[86]=lT[86]=17,xT[84]=lT[84]=17,ET[89]=CT[89]=9,ET[81]=CT[81]=9,ET[96]=kT[96]=0,OT[96]=lT[96]=15,ET[74]=kT[74]=0,OT[74]=lT[74]=15,ET[24]=xT[24]=8,CT[24]=QT[24]=7,ET[146]=xT[146]=8,CT[146]=QT[146]=7,OT[6]=lT[6]=15,xT[6]=ST[6]=16,OT[164]=lT[164]=15,xT[164]=ST[164]=16,CT[129]=QT[129]=7,ST[129]=kT[129]=20,CT[41]=QT[41]=7,ST[41]=kT[41]=20,xT[66]=kT[66]=2,CT[66]=lT[66]=19,xT[104]=kT[104]=2,CT[104]=lT[104]=19,ET[144]=ST[144]=10,lT[144]=QT[144]=23,ET[26]=ST[26]=10,lT[26]=QT[26]=23,OT[36]=QT[36]=5,xT[36]=kT[36]=2,OT[134]=QT[134]=5,xT[134]=kT[134]=2,ET[9]=ST[9]=10,OT[9]=CT[9]=13,ET[161]=ST[161]=10,OT[161]=CT[161]=13,OT[37]=QT[37]=5,ST[37]=kT[37]=20,OT[133]=QT[133]=5,ST[133]=kT[133]=20,xT[148]=ST[148]=16,lT[148]=QT[148]=23,xT[22]=ST[22]=16,lT[22]=QT[22]=23,ET[82]=xT[82]=8,CT[82]=lT[82]=19,ET[88]=xT[88]=8,CT[88]=lT[88]=19,ET[73]=kT[73]=0,OT[73]=CT[73]=13,ET[97]=kT[97]=0,OT[97]=CT[97]=13,ET[145]=CT[145]=9,ST[145]=QT[145]=21,ET[25]=CT[25]=9,ST[25]=QT[25]=21,OT[70]=kT[70]=1,xT[70]=lT[70]=17,OT[100]=kT[100]=1,xT[100]=lT[100]=17,ET[34]=CT[34]=9,OT[34]=xT[34]=12,ST[34]=QT[34]=21,lT[34]=kT[34]=22,ET[136]=QT[136]=4,OT[136]=kT[136]=1,xT[136]=lT[136]=17,CT[136]=ST[136]=18,ET[35]=QT[35]=4,OT[35]=xT[35]=12,CT[35]=ST[35]=18,lT[35]=kT[35]=22,ET[153]=QT[153]=4,CT[153]=ST[153]=18,OT[102]=xT[102]=12,lT[102]=kT[102]=22,ET[155]=CT[155]=9,ST[155]=QT[155]=23,OT[103]=kT[103]=1,xT[103]=lT[103]=17,ET[152]=QT[152]=4,xT[152]=lT[152]=17,CT[152]=ST[152]=18,ET[156]=xT[156]=8,CT[156]=ST[156]=18,lT[156]=QT[156]=23,ET[137]=QT[137]=4,OT[137]=kT[137]=1,CT[137]=ST[137]=18,ET[139]=QT[139]=4,OT[139]=CT[139]=13,ST[139]=kT[139]=20,ET[98]=CT[98]=9,OT[98]=xT[98]=12,lT[98]=kT[98]=22,ET[99]=kT[99]=0,OT[99]=xT[99]=12,CT[99]=lT[99]=19,OT[38]=xT[38]=12,ST[38]=QT[38]=21,lT[38]=kT[38]=22,OT[39]=QT[39]=5,xT[39]=ST[39]=16,lT[39]=kT[39]=22;var dT=[];dT[1]=dT[169]=IT,dT[4]=dT[166]=nT,dT[16]=dT[154]=rT,dT[64]=dT[106]=wT,dT[168]=dT[2]=cT,dT[162]=dT[8]=yT,dT[138]=dT[32]=aT,dT[42]=dT[128]=oT,dT[5]=dT[165]=function(M){return[[0,0],[0,M.leftbottom],[1,M.rightbottom],[1,0]]},dT[20]=dT[150]=function(M){return[[1,0],[M.bottomright,0],[M.topright,1],[1,1]]},dT[80]=dT[90]=function(M){return[[1,1],[1,M.righttop],[0,M.lefttop],[0,1]]},dT[65]=dT[105]=function(M){return[[M.bottomleft,0],[0,0],[0,1],[M.topleft,1]]},dT[160]=dT[10]=function(M){return[[1,M.righttop],[1,M.rightbottom],[0,M.leftbottom],[0,M.lefttop]]},dT[130]=dT[40]=function(M){return[[M.topleft,1],[M.topright,1],[M.bottomright,0],[M.bottomleft,0]]},dT[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},dT[101]=dT[69]=function(M){return[[1,M.rightbottom],[1,0],[0,0],[0,1],[M.topleft,1]]},dT[149]=dT[21]=function(M){return[[M.topright,1],[1,1],[1,0],[0,0],[0,M.leftbottom]]},dT[86]=dT[84]=function(M){return[[1,0],[M.bottomright,0],[0,M.lefttop],[0,1],[1,1]]},dT[89]=dT[81]=function(M){return[[1,1],[1,M.righttop],[M.bottomleft,0],[0,0],[0,1]]},dT[96]=dT[74]=function(M){return[[1,M.righttop],[1,M.rightbottom],[0,M.lefttop],[0,1],[M.topleft,1]]},dT[24]=dT[146]=function(M){return[[1,1],[1,M.righttop],[M.bottomright,0],[M.bottomleft,0],[M.topright,1]]},dT[6]=dT[164]=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0],[0,M.leftbottom],[0,M.lefttop]]},dT[129]=dT[41]=function(M){return[[M.topright,1],[M.bottomleft,0],[0,0],[0,M.leftbottom],[M.topleft,1]]},dT[66]=dT[104]=function(M){return[[M.bottomright,0],[M.bottomleft,0],[0,M.lefttop],[0,1],[M.topleft,1]]},dT[144]=dT[26]=function(M){return[[1,1],[1,M.righttop],[0,M.leftbottom],[0,M.lefttop],[M.topright,1]]},dT[36]=dT[134]=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0],[M.topleft,1],[M.topright,1]]},dT[9]=dT[161]=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.bottomleft,0],[0,0],[0,M.leftbottom]]},dT[37]=dT[133]=function(M){return[[1,M.rightbottom],[1,0],[0,0],[0,M.leftbottom],[M.topleft,1],[M.topright,1]]},dT[148]=dT[22]=function(M){return[[1,1],[1,0],[M.bottomright,0],[0,M.leftbottom],[0,M.lefttop],[M.topright,1]]},dT[82]=dT[88]=function(M){return[[1,1],[1,M.righttop],[M.bottomright,0],[M.bottomleft,0],[0,M.lefttop],[0,1]]},dT[73]=dT[97]=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.bottomleft,0],[0,0],[0,1],[M.topleft,1]]},dT[145]=dT[25]=function(M){return[[1,1],[1,M.righttop],[M.bottomleft,0],[0,0],[0,M.leftbottom],[M.topright,1]]},dT[70]=dT[100]=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0],[0,M.lefttop],[0,1],[M.topleft,1]]},dT[34]=function(M){return[oT(M),yT(M)]},dT[35]=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.bottomright,0],[M.bottomleft,0],[0,M.leftbottom],[0,M.lefttop],[M.topleft,1],[M.topright,1]]},dT[136]=function(M){return[aT(M),cT(M)]},dT[153]=function(M){return[rT(M),IT(M)]},dT[102]=function(M){return[nT(M),wT(M)]},dT[155]=function(M){return[[1,1],[1,M.righttop],[M.bottomleft,0],[0,0],[0,M.leftbottom],[M.topright,1]]},dT[103]=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0],[0,M.lefttop],[0,1],[M.topleft,1]]},dT[152]=function(M){return[rT(M),cT(M)]},dT[156]=function(M){return[[1,1],[1,M.righttop],[M.bottomright,0],[M.bottomleft,0],[0,M.leftbottom],[0,M.lefttop],[M.topright,1]]},dT[137]=function(M){return[aT(M),IT(M)]},dT[139]=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.bottomleft,0],[0,0],[0,M.leftbottom],[M.topleft,1],[M.topright,1]]},dT[98]=function(M){return[yT(M),wT(M)]},dT[99]=function(M){return[[1,M.righttop],[1,M.rightbottom],[M.bottomright,0],[M.bottomleft,0],[0,M.lefttop],[0,1],[M.topleft,1]]},dT[38]=function(M){return[nT(M),oT(M)]},dT[39]=function(M){return[[1,M.rightbottom],[1,0],[M.bottomright,0],[0,M.leftbottom],[0,M.lefttop],[M.topleft,1],[M.topright,1]]};var YT=function M(N){this.id=M.buildId(N),this.coordinates=N,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1};YT.buildId=function(M){return M.join(",")},YT.prototype.removeInnerEdge=function(M){this.innerEdges=this.innerEdges.filter((function(N){return N.from.id!==M.from.id}))},YT.prototype.removeOuterEdge=function(M){this.outerEdges=this.outerEdges.filter((function(N){return N.to.id!==M.to.id}))},YT.prototype.addOuterEdge=function(M){this.outerEdges.push(M),this.outerEdgesSorted=!1},YT.prototype.sortOuterEdges=function(){var M=this;this.outerEdgesSorted||(this.outerEdges.sort((function(N,D){var t=N.to,i=D.to;if(t.coordinates[0]-M.coordinates[0]>=0&&i.coordinates[0]-M.coordinates[0]<0)return 1;if(t.coordinates[0]-M.coordinates[0]<0&&i.coordinates[0]-M.coordinates[0]>=0)return-1;if(t.coordinates[0]-M.coordinates[0]==0&&i.coordinates[0]-M.coordinates[0]==0)return t.coordinates[1]-M.coordinates[1]>=0||i.coordinates[1]-M.coordinates[1]>=0?t.coordinates[1]-i.coordinates[1]:i.coordinates[1]-t.coordinates[1];var e=yt(M.coordinates,t.coordinates,i.coordinates);return e<0?1:e>0?-1:Math.pow(t.coordinates[0]-M.coordinates[0],2)+Math.pow(t.coordinates[1]-M.coordinates[1],2)-(Math.pow(i.coordinates[0]-M.coordinates[0],2)+Math.pow(i.coordinates[1]-M.coordinates[1],2))})),this.outerEdgesSorted=!0)},YT.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},YT.prototype.getOuterEdge=function(M){return this.sortOuterEdges(),this.outerEdges[M]},YT.prototype.addInnerEdge=function(M){this.innerEdges.push(M)};var pT=function(M,N){this.from=M,this.to=N,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)};pT.prototype.getSymetric=function(){return this.symetric||(this.symetric=new pT(this.to,this.from),this.symetric.symetric=this),this.symetric},pT.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},pT.prototype.isEqual=function(M){return this.from.id===M.from.id&&this.to.id===M.to.id},pT.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},pT.prototype.toLineString=function(){return T([this.from.coordinates,this.to.coordinates])},pT.prototype.compareTo=function(M){return yt(M.from.coordinates,M.to.coordinates,this.to.coordinates)};var UT=function(){this.edges=[],this.polygon=void 0,this.envelope=void 0},hT={length:{configurable:!0}};UT.prototype.push=function(M){this[this.edges.length]=M,this.edges.push(M),this.polygon=this.envelope=void 0},UT.prototype.get=function(M){return this.edges[M]},hT.length.get=function(){return this.edges.length},UT.prototype.forEach=function(M){this.edges.forEach(M)},UT.prototype.map=function(M){return this.edges.map(M)},UT.prototype.some=function(M){return this.edges.some(M)},UT.prototype.isValid=function(){return!0},UT.prototype.isHole=function(){var M=this,N=this.edges.reduce((function(N,D,t){return D.from.coordinates[1]>M.edges[N].from.coordinates[1]&&(N=t),N}),0),D=(0===N?this.length:N)-1,t=(N+1)%this.length,i=yt(this.edges[D].from.coordinates,this.edges[N].from.coordinates,this.edges[t].from.coordinates);return 0===i?this.edges[D].from.coordinates[0]>this.edges[t].from.coordinates[0]:i>0},UT.prototype.toMultiPoint=function(){return z(this.edges.map((function(M){return M.from.coordinates})))},UT.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var M=this.edges.map((function(M){return M.from.coordinates}));return M.push(this.edges[0].from.coordinates),this.polygon=e([M])},UT.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=uN(this.toPolygon())},UT.findEdgeRingContaining=function(M,N){var D,i,e=M.getEnvelope();return N.forEach((function(N){var j=N.getEnvelope();if(i&&(D=i.getEnvelope()),!function(M,N){var D=M.geometry.coordinates.map((function(M){return M[0]})),t=M.geometry.coordinates.map((function(M){return M[1]})),i=N.geometry.coordinates.map((function(M){return M[0]})),e=N.geometry.coordinates.map((function(M){return M[1]}));return Math.max(null,D)===Math.max(null,i)&&Math.max(null,t)===Math.max(null,e)&&Math.min(null,D)===Math.min(null,i)&&Math.min(null,t)===Math.min(null,e)}(j,e)&&at(j,e)){var T=M.map((function(M){return M.from.coordinates})).find((function(M){return!N.some((function(N){return function(M,N){return M[0]===N[0]&&M[1]===N[1]}(M,N.from.coordinates)}))}));T&&N.inside(t(T))&&(i&&!at(D,j)||(i=N))}})),i},UT.prototype.inside=function(M){return dM(M,this.toPolygon())},Object.defineProperties(UT.prototype,hT);var fT=function(){this.edges=[],this.nodes={}};fT.fromGeoJson=function(M){!function(M){if(!M)throw new Error("No geojson passed");if("FeatureCollection"!==M.type&&"GeometryCollection"!==M.type&&"MultiLineString"!==M.type&&"LineString"!==M.type&&"Feature"!==M.type)throw new Error("Invalid input type '"+M.type+"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature")}(M);var N=new fT;return m(M,(function(M){H(M,"LineString","Graph::fromGeoJson"),k(M,(function(M,D){if(M){var t=N.getNode(M),i=N.getNode(D);N.addEdge(t,i)}return D}))})),N},fT.prototype.getNode=function(M){var N=YT.buildId(M),D=this.nodes[N];return D||(D=this.nodes[N]=new YT(M)),D},fT.prototype.addEdge=function(M,N){var D=new pT(M,N),t=D.getSymetric();this.edges.push(D),this.edges.push(t)},fT.prototype.deleteDangles=function(){var M=this;Object.keys(this.nodes).map((function(N){return M.nodes[N]})).forEach((function(N){return M._removeIfDangle(N)}))},fT.prototype._removeIfDangle=function(M){var N=this;if(M.innerEdges.length<=1){var D=M.getOuterEdges().map((function(M){return M.to}));this.removeNode(M),D.forEach((function(M){return N._removeIfDangle(M)}))}},fT.prototype.deleteCutEdges=function(){var M=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach((function(N){N.label===N.symetric.label&&(M.removeEdge(N.symetric),M.removeEdge(N))}))},fT.prototype._computeNextCWEdges=function(M){var N=this;void 0===M?Object.keys(this.nodes).forEach((function(M){return N._computeNextCWEdges(N.nodes[M])})):M.getOuterEdges().forEach((function(N,D){M.getOuterEdge((0===D?M.getOuterEdges().length:D)-1).symetric.next=N}))},fT.prototype._computeNextCCWEdges=function(M,N){for(var D,t,i=M.getOuterEdges(),e=i.length-1;e>=0;--e){var j=i[e],T=j.symetric,g=void 0,s=void 0;j.label===N&&(g=j),T.label===N&&(s=T),g&&s&&(s&&(t=s),g&&(t&&(t.next=g,t=void 0),D||(D=g)))}t&&(t.next=D)},fT.prototype._findLabeledEdgeRings=function(){var M=[],N=0;return this.edges.forEach((function(D){if(!(D.label>=0)){M.push(D);var t=D;do{t.label=N,t=t.next}while(!D.isEqual(t));N++}})),M},fT.prototype.getEdgeRings=function(){var M=this;this._computeNextCWEdges(),this.edges.forEach((function(M){M.label=void 0})),this._findLabeledEdgeRings().forEach((function(N){M._findIntersectionNodes(N).forEach((function(D){M._computeNextCCWEdges(D,N.label)}))}));var N=[];return this.edges.forEach((function(D){D.ring||N.push(M._findEdgeRing(D))})),N},fT.prototype._findIntersectionNodes=function(M){var N=[],D=M,t=function(){var t=0;D.from.getOuterEdges().forEach((function(N){N.label===M.label&&++t})),t>1&&N.push(D.from),D=D.next};do{t()}while(!M.isEqual(D));return N},fT.prototype._findEdgeRing=function(M){var N=M,D=new UT;do{D.push(N),N.ring=D,N=N.next}while(!M.isEqual(N));return D},fT.prototype.removeNode=function(M){var N=this;M.getOuterEdges().forEach((function(M){return N.removeEdge(M)})),M.innerEdges.forEach((function(M){return N.removeEdge(M)})),delete this.nodes[M.id]},fT.prototype.removeEdge=function(M){this.edges=this.edges.filter((function(N){return!N.isEqual(M)})),M.deleteEdge()};var mT=cM((function(M,N){function D(M){var N=[];for(var D in M)N.push(D);return N}(M.exports="function"==typeof Object.keys?Object.keys:D).shim=D})),vT=(mT.shim,cM((function(M,N){function D(M){return"[object Arguments]"==Object.prototype.toString.call(M)}function t(M){return M&&"object"==typeof M&&"number"==typeof M.length&&Object.prototype.hasOwnProperty.call(M,"callee")&&!Object.prototype.propertyIsEnumerable.call(M,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(N=M.exports=i?D:t).supported=D,N.unsupported=t}))),BT=(vT.supported,vT.unsupported,cM((function(M){function N(M){return null===M||void 0===M}function D(M){return!(!M||"object"!=typeof M||"number"!=typeof M.length)&&"function"==typeof M.copy&&"function"==typeof M.slice&&!(M.length>0&&"number"!=typeof M[0])}var t=Array.prototype.slice,i=M.exports=function(M,e,j){return j||(j={}),M===e||(M instanceof Date&&e instanceof Date?M.getTime()===e.getTime():!M||!e||"object"!=typeof M&&"object"!=typeof e?j.strict?M===e:M==e:function(M,e,j){var T,g;if(N(M)||N(e))return!1;if(M.prototype!==e.prototype)return!1;if(vT(M))return!!vT(e)&&(M=t.call(M),e=t.call(e),i(M,e,j));if(D(M)){if(!D(e))return!1;if(M.length!==e.length)return!1;for(T=0;T<M.length;T++)if(M[T]!==e[T])return!1;return!0}try{var s=mT(M),u=mT(e)}catch(M){return!1}if(s.length!=u.length)return!1;for(s.sort(),u.sort(),T=s.length-1;T>=0;T--)if(s[T]!=u[T])return!1;for(T=s.length-1;T>=0;T--)if(g=s[T],!i(M[g],e[g],j))return!1;return typeof M==typeof e}(M,e,j))}}))),bT=function(M){this.precision=M&&M.precision?M.precision:17,this.direction=!(!M||!M.direction)&&M.direction,this.pseudoNode=!(!M||!M.pseudoNode)&&M.pseudoNode,this.objectComparator=M&&M.objectComparator?M.objectComparator:Yt};bT.prototype.compare=function(M,N){if(M.type!==N.type||!dt(M,N))return!1;switch(M.type){case"Point":return this.compareCoord(M.coordinates,N.coordinates);case"LineString":return this.compareLine(M.coordinates,N.coordinates,0,!1);case"Polygon":return this.comparePolygon(M,N);case"Feature":return this.compareFeature(M,N);default:if(0===M.type.indexOf("Multi")){var D=this,t=Qt(M),i=Qt(N);return t.every((function(M){return this.some((function(N){return D.compare(M,N)}))}),i)}}return!1},bT.prototype.compareCoord=function(M,N){if(M.length!==N.length)return!1;for(var D=0;D<M.length;D++)if(M[D].toFixed(this.precision)!==N[D].toFixed(this.precision))return!1;return!0},bT.prototype.compareLine=function(M,N,D,t){if(!dt(M,N))return!1;var i=this.pseudoNode?M:this.removePseudo(M),e=this.pseudoNode?N:this.removePseudo(N);if(!t||this.compareCoord(i[0],e[0])||(e=this.fixStartIndex(e,i))){var j=this.compareCoord(i[D],e[D]);return this.direction||j?this.comparePath(i,e):!!this.compareCoord(i[D],e[e.length-(1+D)])&&this.comparePath(i.slice().reverse(),e)}},bT.prototype.fixStartIndex=function(M,N){for(var D,t=-1,i=0;i<M.length;i++)if(this.compareCoord(M[i],N[0])){t=i;break}return t>=0&&(D=[].concat(M.slice(t,M.length),M.slice(1,t+1))),D},bT.prototype.comparePath=function(M,N){var D=this;return M.every((function(M,N){return D.compareCoord(M,this[N])}),N)},bT.prototype.comparePolygon=function(M,N){if(this.compareLine(M.coordinates[0],N.coordinates[0],1,!0)){var D=M.coordinates.slice(1,M.coordinates.length),t=N.coordinates.slice(1,N.coordinates.length),i=this;return D.every((function(M){return this.some((function(N){return i.compareLine(M,N,1,!0)}))}),t)}return!1},bT.prototype.compareFeature=function(M,N){return!(M.id!==N.id||!this.objectComparator(M.properties,N.properties)||!this.compareBBox(M,N))&&this.compare(M.geometry,N.geometry)},bT.prototype.compareBBox=function(M,N){return!!(!M.bbox&&!N.bbox||M.bbox&&N.bbox&&this.compareCoord(M.bbox,N.bbox))},bT.prototype.removePseudo=function(M){return M};var PT=bT,ZT=cM((function(M){function N(M,N,D,t){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(M,N,D,t)}N.prototype.run=function(M,N,D,t){this._init(M,N,D,t);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var e=this._regionQuery(i);if(e.length<this.minPts)this.noise.push(i);else{var j=this.clusters.length;this.clusters.push([]),this._addToCluster(i,j),this._expandCluster(j,e)}}return this.clusters},N.prototype._init=function(M,N,D,t){if(M){if(!(M instanceof Array))throw Error("Dataset must be of type array, "+typeof M+" given");this.dataset=M,this.clusters=[],this.noise=[],this._datasetLength=M.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}N&&(this.epsilon=N),D&&(this.minPts=D),t&&(this.distance=t)},N.prototype._expandCluster=function(M,N){for(var D=0;D<N.length;D++){var t=N[D];if(1!==this._visited[t]){this._visited[t]=1;var i=this._regionQuery(t);i.length>=this.minPts&&(N=this._mergeArrays(N,i))}1!==this._assigned[t]&&this._addToCluster(t,M)}},N.prototype._addToCluster=function(M,N){this.clusters[N].push(M),this._assigned[M]=1},N.prototype._regionQuery=function(M){for(var N=[],D=0;D<this._datasetLength;D++)this.distance(this.dataset[M],this.dataset[D])<this.epsilon&&N.push(D);return N},N.prototype._mergeArrays=function(M,N){for(var D=N.length,t=0;t<D;t++){var i=N[t];M.indexOf(i)<0&&M.push(i)}return M},N.prototype._euclideanDistance=function(M,N){for(var D=0,t=Math.min(M.length,N.length);t--;)D+=(M[t]-N[t])*(M[t]-N[t]);return Math.sqrt(D)},M.exports&&(M.exports=N)})),GT=cM((function(M){function N(M,N,D){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(M,N,D)}N.prototype.init=function(M,N,D){this.assignments=[],this.centroids=[],void 0!==M&&(this.dataset=M),void 0!==N&&(this.k=N),void 0!==D&&(this.distance=D)},N.prototype.run=function(M,N){this.init(M,N);for(var D=this.dataset.length,t=0;t<this.k;t++)this.centroids[t]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var e=0;e<this.k;e++){for(var j=new Array(u),T=0,g=0;g<u;g++)j[g]=0;for(var s=0;s<D;s++){var u=this.dataset[s].length;if(e===this.assignments[s]){for(g=0;g<u;g++)j[g]+=this.dataset[s][g];T++}}if(T>0){for(g=0;g<u;g++)j[g]/=T;this.centroids[e]=j}else this.centroids[e]=this.randomCentroid(),i=!0}}return this.getClusters()},N.prototype.randomCentroid=function(){var M,N,D=this.dataset.length-1;do{N=Math.round(Math.random()*D),M=this.dataset[N]}while(this.centroids.indexOf(M)>=0);return M},N.prototype.assign=function(){for(var M,N=!1,D=this.dataset.length,t=0;t<D;t++)(M=this.argmin(this.dataset[t],this.centroids,this.distance))!=this.assignments[t]&&(this.assignments[t]=M,N=!0);return N},N.prototype.getClusters=function(){for(var M,N=new Array(this.k),D=0;D<this.assignments.length;D++)void 0===N[M=this.assignments[D]]&&(N[M]=[]),N[M].push(D);return N},N.prototype.argmin=function(M,N,D){for(var t,i=Number.MAX_VALUE,e=0,j=N.length,T=0;T<j;T++)(t=D(M,N[T]))<i&&(i=t,e=T);return e},N.prototype.distance=function(M,N){for(var D=0,t=Math.min(M.length,N.length);t--;){var i=M[t]-N[t];D+=i*i}return Math.sqrt(D)},M.exports&&(M.exports=N)})),WT=cM((function(M){function N(M,N,D){this._queue=[],this._priorities=[],this._sorting="desc",this._init(M,N,D)}N.prototype.insert=function(M,N){for(var D=this._queue.length,t=D;t--;){var i=this._priorities[t];"desc"===this._sorting?N>i&&(D=t):N<i&&(D=t)}this._insertAt(M,N,D)},N.prototype.remove=function(M){for(var N=this._queue.length;N--;)if(M===this._queue[N]){this._queue.splice(N,1),this._priorities.splice(N,1);break}},N.prototype.forEach=function(M){this._queue.forEach(M)},N.prototype.getElements=function(){return this._queue},N.prototype.getElementPriority=function(M){return this._priorities[M]},N.prototype.getPriorities=function(){return this._priorities},N.prototype.getElementsWithPriorities=function(){for(var M=[],N=0,D=this._queue.length;N<D;N++)M.push([this._queue[N],this._priorities[N]]);return M},N.prototype._init=function(M,N,D){if(M&&N){if(this._queue=[],this._priorities=[],M.length!==N.length)throw new Error("Arrays must have the same length");for(var t=0;t<M.length;t++)this.insert(M[t],N[t])}D&&(this._sorting=D)},N.prototype._insertAt=function(M,N,D){this._queue.length===D?(this._queue.push(M),this._priorities.push(N)):(this._queue.splice(D,0,M),this._priorities.splice(D,0,N))},M.exports&&(M.exports=N)})),RT=cM((function(M){function N(M,N,D,t){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(M,N,D,t)}if(M.exports)var D=WT;N.prototype.run=function(M,N,t,i){this._init(M,N,t,i);for(var e=0,j=this.dataset.length;e<j;e++)if(1!==this._processed[e]){this._processed[e]=1,this.clusters.push([e]);var T=this.clusters.length-1;this._orderedList.push(e);var g=new D(null,null,"asc"),s=this._regionQuery(e);void 0!==this._distanceToCore(e)&&(this._updateQueue(e,s,g),this._expandCluster(T,g))}return this.clusters},N.prototype.getReachabilityPlot=function(){for(var M=[],N=0,D=this._orderedList.length;N<D;N++){var t=this._orderedList[N],i=this._reachability[t];M.push([t,i])}return M},N.prototype._init=function(M,N,D,t){if(M){if(!(M instanceof Array))throw Error("Dataset must be of type array, "+typeof M+" given");this.dataset=M,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}N&&(this.epsilon=N),D&&(this.minPts=D),t&&(this.distance=t)},N.prototype._updateQueue=function(M,N,D){var t=this;this._coreDistance=this._distanceToCore(M),N.forEach((function(N){if(void 0===t._processed[N]){var i=t.distance(t.dataset[M],t.dataset[N]),e=Math.max(t._coreDistance,i);void 0===t._reachability[N]?(t._reachability[N]=e,D.insert(N,e)):e<t._reachability[N]&&(t._reachability[N]=e,D.remove(N),D.insert(N,e))}}))},N.prototype._expandCluster=function(M,N){for(var D=N.getElements(),t=0,i=D.length;t<i;t++){var e=D[t];if(void 0===this._processed[e]){var j=this._regionQuery(e);this._processed[e]=1,this.clusters[M].push(e),this._orderedList.push(e),void 0!==this._distanceToCore(e)&&(this._updateQueue(e,j,N),this._expandCluster(M,N))}}},N.prototype._distanceToCore=function(M){for(var N=this.epsilon,D=0;D<N;D++)if(this._regionQuery(M,D).length>=this.minPts)return D},N.prototype._regionQuery=function(M,N){N=N||this.epsilon;for(var D=[],t=0,i=this.dataset.length;t<i;t++)this.distance(this.dataset[M],this.dataset[t])<N&&D.push(t);return D},N.prototype._euclideanDistance=function(M,N){for(var D=0,t=Math.min(M.length,N.length);t--;)D+=(M[t]-N[t])*(M[t]-N[t]);return Math.sqrt(D)},M.exports&&(M.exports=N)})),XT=cM((function(M){M.exports&&(M.exports={DBSCAN:ZT,KMEANS:GT,OPTICS:RT,PriorityQueue:WT})})),_T=(XT.DBSCAN,XT.KMEANS,XT.OPTICS,XT.PriorityQueue,function(M,N,D){for(var t=M.length,i=0,e=0;e<t;e++){var j=(M[e]||0)-(N[e]||0);i+=j*j}return D?Math.sqrt(i):i}),HT=_T,FT=function(M,N,D){var t=Math.abs(M-N);return D?t:t*t},VT=_T,JT=function(M,N){for(var D={},t=[],i=N<<2,e=M.length,j=M[0].length>0;t.length<N&&i-- >0;){var T=M[Math.floor(Math.random()*e)],g=j?T.join("_"):""+T;D[g]||(D[g]=!0,t.push(T))}if(t.length<N)throw new Error("Error initializating clusters");return t},qT=function(M,N){var D=M[0].length?HT:FT,t=[],i=M.length,e=M[0].length>0,j=M[Math.floor(Math.random()*i)];for(e&&j.join("_"),t.push(j);t.length<N;){for(var T=[],g=t.length,s=0,u=[],z=0;z<i;z++){for(var A=1/0,L=0;L<g;L++){var I=D(M[z],t[L]);I<=A&&(A=I)}T[z]=A}for(var n=0;n<i;n++)s+=T[n];for(var r=0;r<i;r++)u[r]={i:r,v:M[r],pr:T[r]/s,cs:0};u.sort((function(M,N){return M.pr-N.pr})),u[0].cs=u[0].pr;for(var w=1;w<i;w++)u[w].cs=u[w-1].cs+u[w].pr;for(var c=Math.random(),y=0;y<i-1&&u[y++].cs<c;);t.push(u[y-1].v)}return t},KT=1e4,$T=function(M,N,D,t){var i=[],e=[],j=[],T=[],g=!1,s=t||KT,u=M.length,z=M[0].length,A=z>0,L=[];if(D)i="kmrand"==D?JT(M,N):"kmpp"==D?qT(M,N):D;else for(var I={};i.length<N;){var n=Math.floor(Math.random()*u);I[n]||(I[n]=!0,i.push(M[n]))}do{Ut(N,0,L);for(var r=0;r<u;r++){for(var w=1/0,c=0,y=0;y<N;y++)(T=A?VT(M[r],i[y]):Math.abs(M[r]-i[y]))<=w&&(w=T,c=y);j[r]=c,L[c]++}for(var a=[],o=(e=[],0);o<N;o++)a[o]=A?Ut(z,0,a[o]):0,e[o]=i[o];if(A){for(var E=0;E<N;E++)i[E]=[];for(var O=0;O<u;O++)for(var x=a[j[O]],C=M[O],S=0;S<z;S++)x[S]+=C[S];g=!0;for(var l=0;l<N;l++){for(var k=i[l],Q=a[l],d=e[l],Y=L[l],p=0;p<z;p++)k[p]=Q[p]/Y||0;if(g)for(var U=0;U<z;U++)if(d[U]!=k[U]){g=!1;break}}}else{for(var h=0;h<u;h++)a[j[h]]+=M[h];for(var f=0;f<N;f++)i[f]=a[f]/L[f]||0;g=!0;for(var m=0;m<N;m++)if(e[m]!=i[m]){g=!1;break}}g=g||--s<=0}while(!g);return{it:KT-s,k:N,idxs:j,centroids:i}},Mg={search:function(M,N,D,t){M.cleanDirty();var i=(t=t||{}).heuristic||Mg.heuristics.manhattan,e=t.closest||!1,j=new Bt((function(M){return M.f})),T=N;for(N.h=i(N,D),j.push(N);j.size()>0;){var g=j.pop();if(g===D)return ft(g);g.closed=!0;for(var s=M.neighbors(g),u=0,z=s.length;u<z;++u){var A=s[u];if(!A.closed&&!A.isWall()){var L=g.g+A.getCost(g),I=A.visited;(!I||L<A.g)&&(A.visited=!0,A.parent=g,A.h=A.h||i(A,D),A.g=L,A.f=A.g+A.h,M.markDirty(A),e&&(A.h<T.h||A.h===T.h&&A.g<T.g)&&(T=A),I?j.rescoreElement(A):j.push(A))}}}return e?ft(T):[]},heuristics:{manhattan:function(M,N){return Math.abs(N.x-M.x)+Math.abs(N.y-M.y)},diagonal:function(M,N){var D=Math.sqrt(2),t=Math.abs(N.x-M.x),i=Math.abs(N.y-M.y);return 1*(t+i)+(D-2)*Math.min(t,i)}},cleanNode:function(M){M.f=0,M.g=0,M.h=0,M.visited=!1,M.closed=!1,M.parent=null}};mt.prototype.init=function(){this.dirtyNodes=[];for(var M=0;M<this.nodes.length;M++)Mg.cleanNode(this.nodes[M])},mt.prototype.cleanDirty=function(){for(var M=0;M<this.dirtyNodes.length;M++)Mg.cleanNode(this.dirtyNodes[M]);this.dirtyNodes=[]},mt.prototype.markDirty=function(M){this.dirtyNodes.push(M)},mt.prototype.neighbors=function(M){var N=[],D=M.x,t=M.y,i=this.grid;return i[D-1]&&i[D-1][t]&&N.push(i[D-1][t]),i[D+1]&&i[D+1][t]&&N.push(i[D+1][t]),i[D]&&i[D][t-1]&&N.push(i[D][t-1]),i[D]&&i[D][t+1]&&N.push(i[D][t+1]),this.diagonal&&(i[D-1]&&i[D-1][t-1]&&N.push(i[D-1][t-1]),i[D+1]&&i[D+1][t-1]&&N.push(i[D+1][t-1]),i[D-1]&&i[D-1][t+1]&&N.push(i[D-1][t+1]),i[D+1]&&i[D+1][t+1]&&N.push(i[D+1][t+1])),N},mt.prototype.toString=function(){for(var M,N,D,t,i=[],e=this.grid,j=0,T=e.length;j<T;j++){for(M=[],D=0,t=(N=e[j]).length;D<t;D++)M.push(N[D].weight);i.push(M.join(" "))}return i.join("\n")},vt.prototype.toString=function(){return"["+this.x+" "+this.y+"]"},vt.prototype.getCost=function(M){return M&&M.x!==this.x&&M.y!==this.y?1.41421*this.weight:this.weight},vt.prototype.isWall=function(){return 0===this.weight},Bt.prototype={push:function(M){this.content.push(M),this.sinkDown(this.content.length-1)},pop:function(){var M=this.content[0],N=this.content.pop();return this.content.length>0&&(this.content[0]=N,this.bubbleUp(0)),M},remove:function(M){var N=this.content.indexOf(M),D=this.content.pop();N!==this.content.length-1&&(this.content[N]=D,this.scoreFunction(D)<this.scoreFunction(M)?this.sinkDown(N):this.bubbleUp(N))},size:function(){return this.content.length},rescoreElement:function(M){this.sinkDown(this.content.indexOf(M))},sinkDown:function(M){for(var N=this.content[M];M>0;){var D=(M+1>>1)-1,t=this.content[D];if(!(this.scoreFunction(N)<this.scoreFunction(t)))break;this.content[D]=N,this.content[M]=t,M=D}},bubbleUp:function(M){for(var N=this.content.length,D=this.content[M],t=this.scoreFunction(D);;){var i,e=M+1<<1,j=e-1,T=null;if(j<N){var g=this.content[j];(i=this.scoreFunction(g))<t&&(T=j)}if(e<N){var s=this.content[e];this.scoreFunction(s)<(null===T?t:i)&&(T=e)}if(null===T)break;this.content[M]=this.content[T],this.content[T]=D,M=T}}};var Ng=function(M){return function(){return M}};Zt.prototype={constructor:Zt,insert:function(M,N){var D,t,i;if(M){if(N.P=M,N.N=M.N,M.N&&(M.N.P=N),M.N=N,M.R){for(M=M.R;M.L;)M=M.L;M.L=N}else M.R=N;D=M}else this._?(M=Xt(this._),N.P=null,N.N=M,M.P=M.L=N,D=M):(N.P=N.N=null,this._=N,D=null);for(N.L=N.R=null,N.U=D,N.C=!0,M=N;D&&D.C;)D===(t=D.U).L?(i=t.R)&&i.C?(D.C=i.C=!1,t.C=!0,M=t):(M===D.R&&(Wt(this,D),D=(M=D).U),D.C=!1,t.C=!0,Rt(this,t)):(i=t.L)&&i.C?(D.C=i.C=!1,t.C=!0,M=t):(M===D.L&&(Rt(this,D),D=(M=D).U),D.C=!1,t.C=!0,Wt(this,t)),D=M.U;this._.C=!1},remove:function(M){M.N&&(M.N.P=M.P),M.P&&(M.P.N=M.N),M.N=M.P=null;var N,D,t,i=M.U,e=M.L,j=M.R;if(D=e?j?Xt(j):e:j,i?i.L===M?i.L=D:i.R=D:this._=D,e&&j?(t=D.C,D.C=M.C,D.L=e,e.U=D,D!==j?(i=D.U,D.U=M.U,M=D.R,i.L=M,D.R=j,j.U=D):(D.U=i,i=D,M=D.R)):(t=M.C,M=D),M&&(M.U=i),!t)if(M&&M.C)M.C=!1;else{do{if(M===this._)break;if(M===i.L){if((N=i.R).C&&(N.C=!1,i.C=!0,Wt(this,i),N=i.R),N.L&&N.L.C||N.R&&N.R.C){N.R&&N.R.C||(N.L.C=!1,N.C=!0,Rt(this,N),N=i.R),N.C=i.C,i.C=N.R.C=!1,Wt(this,i),M=this._;break}}else if((N=i.L).C&&(N.C=!1,i.C=!0,Rt(this,i),N=i.L),N.L&&N.L.C||N.R&&N.R.C){N.L&&N.L.C||(N.R.C=!1,N.C=!0,Wt(this,N),N=i.L),N.C=i.C,i.C=N.L.C=!1,Rt(this,i),M=this._;break}N.C=!0,M=i,i=i.U}while(!M.C);M&&(M.C=!1)}}};var Dg,tg,ig,eg,jg,Tg=[],gg=[],sg=1e-6,ug=1e-12;si.prototype={constructor:si,polygons:function(){var M=this.edges;return this.cells.map((function(N){var D=N.halfedges.map((function(D){return Kt(N,M[D])}));return D.data=N.site.data,D}))},triangles:function(){var M=[],N=this.edges;return this.cells.forEach((function(D,t){if(e=(i=D.halfedges).length)for(var i,e,j,T=D.site,g=-1,s=N[i[e-1]],u=s.left===T?s.right:s.left;++g<e;)j=u,u=(s=N[i[g]]).left===T?s.right:s.left,j&&u&&t<j.index&&t<u.index&&Ti(T,j,u)<0&&M.push([T.data,j.data,u.data])})),M},links:function(){return this.edges.filter((function(M){return M.right})).map((function(M){return{source:M.left.data,target:M.right.data}}))},find:function(M,N,D){for(var t,i,e=this,j=e._found||0,T=e.cells.length;!(i=e.cells[j]);)if(++j>=T)return null;var g=M-i.site[0],s=N-i.site[1],u=g*g+s*s;do{i=e.cells[t=j],j=null,i.halfedges.forEach((function(D){var t=e.edges[D],T=t.left;if(T!==i.site&&T||(T=t.right)){var g=M-T[0],s=N-T[1],z=g*g+s*s;z<u&&(u=z,j=T.index)}}))}while(null!==j);return e._found=t,null==D||u<=D*D?i.site:null}};var zg=function(){function M(M){return new si(M.map((function(t,i){var e=[Math.round(N(t,i,M)/sg)*sg,Math.round(D(t,i,M)/sg)*sg];return e.index=i,e.data=t,e})),t)}var N=bt,D=Pt,t=null;return M.polygons=function(N){return M(N).polygons()},M.links=function(N){return M(N).links()},M.triangles=function(N){return M(N).triangles()},M.x=function(D){return arguments.length?(N="function"==typeof D?D:Ng(+D),M):N},M.y=function(N){return arguments.length?(D="function"==typeof N?N:Ng(+N),M):D},M.extent=function(N){return arguments.length?(t=null==N?null:[[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]],M):t&&[[t[0][0],t[0][1]],[t[1][0],t[1][1]]]},M.size=function(N){return arguments.length?(t=null==N?null:[[0,0],[+N[0],+N[1]]],M):t&&[t[1][0]-t[0][0],t[1][1]-t[0][1]]},M},Ag=Object.freeze({randomPosition:ri,randomPoint:wi,randomPolygon:ci,randomLineString:yi}),Lg=Object.freeze({getCluster:oi,clusterEach:Ei,clusterReduce:Oi,createBins:xi,applyFilter:Ci,propertiesContainsFilter:Si,filterProperties:li});"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(M){if(void 0===this||null===this)throw new TypeError(this+" is not an object");var N=Object(this),D=Math.max(Math.min(N.length,9007199254740991),0)||0,t=1 in arguments&&parseInt(Number(arguments[1]),10)||0;t=t<0?Math.max(D+t,0):Math.min(t,D);var i=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:D;for(i=i<0?Math.max(D+arguments[2],0):Math.min(i,D);t<i;)N[t]=M,++t;return N},writable:!0}),Number.isFinite=Number.isFinite||function(M){return"number"==typeof M&&isFinite(M)},Number.isInteger=Number.isInteger||function(M){return"number"==typeof M&&isFinite(M)&&Math.floor(M)===M},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(M){return M!=M},Math.trunc=Math.trunc||function(M){return M<0?Math.ceil(M):Math.floor(M)};var Ig=function(){};Ig.prototype.interfaces_=function(){return[]},Ig.prototype.getClass=function(){return Ig},Ig.prototype.equalsWithTolerance=function(M,N,D){return Math.abs(M-N)<=D};var ng=function(){},rg=function(){},wg={MAX_VALUE:{configurable:!0}};rg.isNaN=function(M){return Number.isNaN(M)},rg.doubleToLongBits=function(M){return M},rg.longBitsToDouble=function(M){return M},rg.isInfinite=function(M){return!Number.isFinite(M)},wg.MAX_VALUE.get=function(){return Number.MAX_VALUE},Object.defineProperties(rg,wg);var cg=function(){},yg=function(){},ag=function(){},og=function M(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)this.x=0,this.y=0,this.z=M.NULL_ORDINATE;else if(1===arguments.length){var N=arguments[0];this.x=N.x,this.y=N.y,this.z=N.z}else 2===arguments.length?(this.x=arguments[0],this.y=arguments[1],this.z=M.NULL_ORDINATE):3===arguments.length&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},Eg={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};og.prototype.setOrdinate=function(M,N){switch(M){case og.X:this.x=N;break;case og.Y:this.y=N;break;case og.Z:this.z=N;break;default:throw new ng("Invalid ordinate index: "+M)}},og.prototype.equals2D=function(){if(1===arguments.length){var M=arguments[0];return this.x===M.x&&this.y===M.y}if(2===arguments.length){var N=arguments[0],D=arguments[1];return!!Ig.equalsWithTolerance(this.x,N.x,D)&&!!Ig.equalsWithTolerance(this.y,N.y,D)}},og.prototype.getOrdinate=function(M){switch(M){case og.X:return this.x;case og.Y:return this.y;case og.Z:return this.z}throw new ng("Invalid ordinate index: "+M)},og.prototype.equals3D=function(M){return this.x===M.x&&this.y===M.y&&(this.z===M.z||rg.isNaN(this.z))&&rg.isNaN(M.z)},og.prototype.equals=function(M){return M instanceof og&&this.equals2D(M)},og.prototype.equalInZ=function(M,N){return Ig.equalsWithTolerance(this.z,M.z,N)},og.prototype.compareTo=function(M){var N=M;return this.x<N.x?-1:this.x>N.x?1:this.y<N.y?-1:this.y>N.y?1:0},og.prototype.clone=function(){},og.prototype.copy=function(){return new og(this)},og.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},og.prototype.distance3D=function(M){var N=this.x-M.x,D=this.y-M.y,t=this.z-M.z;return Math.sqrt(N*N+D*D+t*t)},og.prototype.distance=function(M){var N=this.x-M.x,D=this.y-M.y;return Math.sqrt(N*N+D*D)},og.prototype.hashCode=function(){var M=17;return M=37*M+og.hashCode(this.x),37*M+og.hashCode(this.y)},og.prototype.setCoordinate=function(M){this.x=M.x,this.y=M.y,this.z=M.z},og.prototype.interfaces_=function(){return[cg,yg,ki]},og.prototype.getClass=function(){return og},og.hashCode=function(){if(1===arguments.length){var M=arguments[0],N=rg.doubleToLongBits(M);return Math.trunc((N^N)>>>32)}},Eg.DimensionalComparator.get=function(){return Og},Eg.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},Eg.NULL_ORDINATE.get=function(){return rg.NaN},Eg.X.get=function(){return 0},Eg.Y.get=function(){return 1},Eg.Z.get=function(){return 2},Object.defineProperties(og,Eg);var Og=function(M){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var N=arguments[0];if(2!==N&&3!==N)throw new ng("only 2 or 3 dimensions may be specified");this._dimensionsToTest=N}};Og.prototype.compare=function(M,N){var D=M,t=N,i=Og.compare(D.x,t.x);if(0!==i)return i;var e=Og.compare(D.y,t.y);return 0!==e?e:this._dimensionsToTest<=2?0:Og.compare(D.z,t.z)},Og.prototype.interfaces_=function(){return[ag]},Og.prototype.getClass=function(){return Og},Og.compare=function(M,N){return M<N?-1:M>N?1:rg.isNaN(M)?rg.isNaN(N)?0:-1:rg.isNaN(N)?1:0};var xg=function(){};xg.prototype.create=function(){},xg.prototype.interfaces_=function(){return[]},xg.prototype.getClass=function(){return xg};var Cg=function(){},Sg={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};Cg.prototype.interfaces_=function(){return[]},Cg.prototype.getClass=function(){return Cg},Cg.toLocationSymbol=function(M){switch(M){case Cg.EXTERIOR:return"e";case Cg.BOUNDARY:return"b";case Cg.INTERIOR:return"i";case Cg.NONE:return"-"}throw new ng("Unknown location value: "+M)},Sg.INTERIOR.get=function(){return 0},Sg.BOUNDARY.get=function(){return 1},Sg.EXTERIOR.get=function(){return 2},Sg.NONE.get=function(){return-1},Object.defineProperties(Cg,Sg);var lg=function(M,N){return M.interfaces_&&M.interfaces_().indexOf(N)>-1},kg=function(){},Qg={LOG_10:{configurable:!0}};kg.prototype.interfaces_=function(){return[]},kg.prototype.getClass=function(){return kg},kg.log10=function(M){var N=Math.log(M);return rg.isInfinite(N)||rg.isNaN(N)?N:N/kg.LOG_10},kg.min=function(M,N,D,t){var i=M;return N<i&&(i=N),D<i&&(i=D),t<i&&(i=t),i},kg.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var M=arguments[0],N=arguments[1],D=arguments[2];return M<N?N:M>D?D:M}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var t=arguments[0],i=arguments[1],e=arguments[2];return t<i?i:t>e?e:t}},kg.wrap=function(M,N){return M<0?N- -M%N:M%N},kg.max=function(){if(3===arguments.length){var M=arguments[0],N=arguments[1],D=arguments[2],t=M;return N>t&&(t=N),D>t&&(t=D),t}if(4===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2],T=arguments[3],g=i;return e>g&&(g=e),j>g&&(g=j),T>g&&(g=T),g}},kg.average=function(M,N){return(M+N)/2},Qg.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(kg,Qg);var dg=function(M){this.str=M};dg.prototype.append=function(M){this.str+=M},dg.prototype.setCharAt=function(M,N){this.str=this.str.substr(0,M)+N+this.str.substr(M+1)},dg.prototype.toString=function(M){return this.str};var Yg=function(M){this.value=M};Yg.prototype.intValue=function(){return this.value},Yg.prototype.compareTo=function(M){return this.value<M?-1:this.value>M?1:0},Yg.isNaN=function(M){return Number.isNaN(M)};var pg=function(){};pg.isWhitespace=function(M){return M<=32&&M>=0||127===M},pg.toUpperCase=function(M){return M.toUpperCase()};var Ug=function M(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var N=arguments[0];this.init(N)}else if(arguments[0]instanceof M){var D=arguments[0];this.init(D)}else if("string"==typeof arguments[0]){var t=arguments[0];M.call(this,M.parse(t))}}else if(2===arguments.length){var i=arguments[0],e=arguments[1];this.init(i,e)}},hg={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};Ug.prototype.le=function(M){return(this._hi<M._hi||this._hi===M._hi)&&this._lo<=M._lo},Ug.prototype.extractSignificantDigits=function(M,N){var D=this.abs(),t=Ug.magnitude(D._hi),i=Ug.TEN.pow(t);(D=D.divide(i)).gt(Ug.TEN)?(D=D.divide(Ug.TEN),t+=1):D.lt(Ug.ONE)&&(D=D.multiply(Ug.TEN),t-=1);for(var e=t+1,j=new dg,T=Ug.MAX_PRINT_DIGITS-1,g=0;g<=T;g++){M&&g===e&&j.append(".");var s=Math.trunc(D._hi);if(s<0)break;var u=!1,z=0;s>9?(u=!0,z="9"):z="0"+s,j.append(z),D=D.subtract(Ug.valueOf(s)).multiply(Ug.TEN),u&&D.selfAdd(Ug.TEN);var A=!0,L=Ug.magnitude(D._hi);if(L<0&&Math.abs(L)>=T-g&&(A=!1),!A)break}return N[0]=t,j.toString()},Ug.prototype.sqr=function(){return this.multiply(this)},Ug.prototype.doubleValue=function(){return this._hi+this._lo},Ug.prototype.subtract=function(){if(arguments[0]instanceof Ug){var M=arguments[0];return this.add(M.negate())}if("number"==typeof arguments[0]){var N=arguments[0];return this.add(-N)}},Ug.prototype.equals=function(){if(1===arguments.length){var M=arguments[0];return this._hi===M._hi&&this._lo===M._lo}},Ug.prototype.isZero=function(){return 0===this._hi&&0===this._lo},Ug.prototype.selfSubtract=function(){if(arguments[0]instanceof Ug){var M=arguments[0];return this.isNaN()?this:this.selfAdd(-M._hi,-M._lo)}if("number"==typeof arguments[0]){var N=arguments[0];return this.isNaN()?this:this.selfAdd(-N,0)}},Ug.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},Ug.prototype.min=function(M){return this.le(M)?this:M},Ug.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof Ug){var M=arguments[0];return this.selfDivide(M._hi,M._lo)}if("number"==typeof arguments[0]){var N=arguments[0];return this.selfDivide(N,0)}}else if(2===arguments.length){var D=arguments[0],t=arguments[1],i=null,e=null,j=null,T=null,g=null,s=null,u=null,z=null;return g=this._hi/D,s=Ug.SPLIT*g,i=s-g,z=Ug.SPLIT*D,i=s-i,e=g-i,j=z-D,u=g*D,j=z-j,T=D-j,z=i*j-u+i*T+e*j+e*T,s=(this._hi-u-z+this._lo-g*t)/D,z=g+s,this._hi=z,this._lo=g-z+s,this}},Ug.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},Ug.prototype.divide=function(){if(arguments[0]instanceof Ug){var M=arguments[0],N=null,D=null,t=null,i=null,e=null,j=null,T=null,g=null;return D=(e=this._hi/M._hi)-(N=(j=Ug.SPLIT*e)-(N=j-e)),g=N*(t=(g=Ug.SPLIT*M._hi)-(t=g-M._hi))-(T=e*M._hi)+N*(i=M._hi-t)+D*t+D*i,j=(this._hi-T-g+this._lo-e*M._lo)/M._hi,new Ug(g=e+j,e-g+j)}if("number"==typeof arguments[0]){var s=arguments[0];return rg.isNaN(s)?Ug.createNaN():Ug.copy(this).selfDivide(s,0)}},Ug.prototype.ge=function(M){return(this._hi>M._hi||this._hi===M._hi)&&this._lo>=M._lo},Ug.prototype.pow=function(M){if(0===M)return Ug.valueOf(1);var N=new Ug(this),D=Ug.valueOf(1),t=Math.abs(M);if(t>1)for(;t>0;)t%2==1&&D.selfMultiply(N),(t/=2)>0&&(N=N.sqr());else D=N;return M<0?D.reciprocal():D},Ug.prototype.ceil=function(){if(this.isNaN())return Ug.NaN;var M=Math.ceil(this._hi),N=0;return M===this._hi&&(N=Math.ceil(this._lo)),new Ug(M,N)},Ug.prototype.compareTo=function(M){var N=M;return this._hi<N._hi?-1:this._hi>N._hi?1:this._lo<N._lo?-1:this._lo>N._lo?1:0},Ug.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},Ug.prototype.setValue=function(){if(arguments[0]instanceof Ug){var M=arguments[0];return this.init(M),this}if("number"==typeof arguments[0]){var N=arguments[0];return this.init(N),this}},Ug.prototype.max=function(M){return this.ge(M)?this:M},Ug.prototype.sqrt=function(){if(this.isZero())return Ug.valueOf(0);if(this.isNegative())return Ug.NaN;var M=1/Math.sqrt(this._hi),N=this._hi*M,D=Ug.valueOf(N),t=this.subtract(D.sqr())._hi*(.5*M);return D.add(t)},Ug.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof Ug){var M=arguments[0];return this.selfAdd(M._hi,M._lo)}if("number"==typeof arguments[0]){var N=arguments[0],D=null,t=null,i=null,e=null,j=null,T=null;return i=this._hi+N,j=i-this._hi,e=i-j,e=N-j+(this._hi-e),T=e+this._lo,D=i+T,t=T+(i-D),this._hi=D+t,this._lo=t+(D-this._hi),this}}else if(2===arguments.length){var g=arguments[0],s=arguments[1],u=null,z=null,A=null,L=null,I=null,n=null,r=null;L=this._hi+g,z=this._lo+s,I=L-(n=L-this._hi),A=z-(r=z-this._lo);var w=(u=L+(n=(I=g-n+(this._hi-I))+z))+(n=(A=s-r+(this._lo-A))+(n+(L-u))),c=n+(u-w);return this._hi=w,this._lo=c,this}},Ug.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof Ug){var M=arguments[0];return this.selfMultiply(M._hi,M._lo)}if("number"==typeof arguments[0]){var N=arguments[0];return this.selfMultiply(N,0)}}else if(2===arguments.length){var D=arguments[0],t=arguments[1],i=null,e=null,j=null,T=null,g=null,s=null;i=(g=Ug.SPLIT*this._hi)-this._hi,s=Ug.SPLIT*D,i=g-i,e=this._hi-i,j=s-D;var u=(g=this._hi*D)+(s=i*(j=s-j)-g+i*(T=D-j)+e*j+e*T+(this._hi*t+this._lo*D)),z=s+(i=g-u);return this._hi=u,this._lo=z,this}},Ug.prototype.selfSqr=function(){return this.selfMultiply(this)},Ug.prototype.floor=function(){if(this.isNaN())return Ug.NaN;var M=Math.floor(this._hi),N=0;return M===this._hi&&(N=Math.floor(this._lo)),new Ug(M,N)},Ug.prototype.negate=function(){return this.isNaN()?this:new Ug(-this._hi,-this._lo)},Ug.prototype.clone=function(){},Ug.prototype.multiply=function(){if(arguments[0]instanceof Ug){var M=arguments[0];return M.isNaN()?Ug.createNaN():Ug.copy(this).selfMultiply(M)}if("number"==typeof arguments[0]){var N=arguments[0];return rg.isNaN(N)?Ug.createNaN():Ug.copy(this).selfMultiply(N,0)}},Ug.prototype.isNaN=function(){return rg.isNaN(this._hi)},Ug.prototype.intValue=function(){return Math.trunc(this._hi)},Ug.prototype.toString=function(){var M=Ug.magnitude(this._hi);return M>=-3&&M<=20?this.toStandardNotation():this.toSciNotation()},Ug.prototype.toStandardNotation=function(){var M=this.getSpecialNumberString();if(null!==M)return M;var N=new Array(1).fill(null),D=this.extractSignificantDigits(!0,N),t=N[0]+1,i=D;if("."===D.charAt(0))i="0"+D;else if(t<0)i="0."+Ug.stringOfChar("0",-t)+D;else if(-1===D.indexOf(".")){var e=t-D.length;i=D+Ug.stringOfChar("0",e)+".0"}return this.isNegative()?"-"+i:i},Ug.prototype.reciprocal=function(){var M=null,N=null,D=null,t=null,i=null,e=null,j=null,T=null;N=(i=1/this._hi)-(M=(e=Ug.SPLIT*i)-(M=e-i)),D=(T=Ug.SPLIT*this._hi)-this._hi;var g=i+(e=(1-(j=i*this._hi)-(T=M*(D=T-D)-j+M*(t=this._hi-D)+N*D+N*t)-i*this._lo)/this._hi);return new Ug(g,i-g+e)},Ug.prototype.toSciNotation=function(){if(this.isZero())return Ug.SCI_NOT_ZERO;var M=this.getSpecialNumberString();if(null!==M)return M;var N=new Array(1).fill(null),D=this.extractSignificantDigits(!1,N),t=Ug.SCI_NOT_EXPONENT_CHAR+N[0];if("0"===D.charAt(0))throw new Error("Found leading zero: "+D);var i="";D.length>1&&(i=D.substring(1));var e=D.charAt(0)+"."+i;return this.isNegative()?"-"+e+t:e+t},Ug.prototype.abs=function(){return this.isNaN()?Ug.NaN:this.isNegative()?this.negate():new Ug(this)},Ug.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},Ug.prototype.lt=function(M){return(this._hi<M._hi||this._hi===M._hi)&&this._lo<M._lo},Ug.prototype.add=function(){if(arguments[0]instanceof Ug){var M=arguments[0];return Ug.copy(this).selfAdd(M)}if("number"==typeof arguments[0]){var N=arguments[0];return Ug.copy(this).selfAdd(N)}},Ug.prototype.init=function(){if(1===arguments.length){if("number"==typeof arguments[0]){var M=arguments[0];this._hi=M,this._lo=0}else if(arguments[0]instanceof Ug){var N=arguments[0];this._hi=N._hi,this._lo=N._lo}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this._hi=D,this._lo=t}},Ug.prototype.gt=function(M){return(this._hi>M._hi||this._hi===M._hi)&&this._lo>M._lo},Ug.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},Ug.prototype.trunc=function(){return this.isNaN()?Ug.NaN:this.isPositive()?this.floor():this.ceil()},Ug.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},Ug.prototype.interfaces_=function(){return[ki,cg,yg]},Ug.prototype.getClass=function(){return Ug},Ug.sqr=function(M){return Ug.valueOf(M).selfMultiply(M)},Ug.valueOf=function(){if("string"==typeof arguments[0]){var M=arguments[0];return Ug.parse(M)}if("number"==typeof arguments[0]){var N=arguments[0];return new Ug(N)}},Ug.sqrt=function(M){return Ug.valueOf(M).sqrt()},Ug.parse=function(M){for(var N=0,D=M.length;pg.isWhitespace(M.charAt(N));)N++;var t=!1;if(N<D){var i=M.charAt(N);"-"!==i&&"+"!==i||(N++,"-"===i&&(t=!0))}for(var e=new Ug,j=0,T=0,g=0;!(N>=D);){var s=M.charAt(N);if(N++,pg.isDigit(s)){var u=s-"0";e.selfMultiply(Ug.TEN),e.selfAdd(u),j++}else{if("."!==s){if("e"===s||"E"===s){var z=M.substring(N);try{g=Yg.parseInt(z)}catch(N){throw N instanceof Error?new Error("Invalid exponent "+z+" in string "+M):N}break}throw new Error("Unexpected character '"+s+"' at position "+N+" in string "+M)}T=j}}var A=e,L=j-T-g;if(0===L)A=e;else if(L>0){var I=Ug.TEN.pow(L);A=e.divide(I)}else if(L<0){var n=Ug.TEN.pow(-L);A=e.multiply(n)}return t?A.negate():A},Ug.createNaN=function(){return new Ug(rg.NaN,rg.NaN)},Ug.copy=function(M){return new Ug(M)},Ug.magnitude=function(M){var N=Math.abs(M),D=Math.log(N)/Math.log(10),t=Math.trunc(Math.floor(D));return 10*Math.pow(10,t)<=N&&(t+=1),t},Ug.stringOfChar=function(M,N){for(var D=new dg,t=0;t<N;t++)D.append(M);return D.toString()},hg.PI.get=function(){return new Ug(3.141592653589793,12246467991473532e-32)},hg.TWO_PI.get=function(){return new Ug(6.283185307179586,24492935982947064e-32)},hg.PI_2.get=function(){return new Ug(1.5707963267948966,6123233995736766e-32)},hg.E.get=function(){return new Ug(2.718281828459045,14456468917292502e-32)},hg.NaN.get=function(){return new Ug(rg.NaN,rg.NaN)},hg.EPS.get=function(){return 123259516440783e-46},hg.SPLIT.get=function(){return 134217729},hg.MAX_PRINT_DIGITS.get=function(){return 32},hg.TEN.get=function(){return Ug.valueOf(10)},hg.ONE.get=function(){return Ug.valueOf(1)},hg.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"},hg.SCI_NOT_ZERO.get=function(){return"0.0E0"},Object.defineProperties(Ug,hg);var fg=function(){},mg={DP_SAFE_EPSILON:{configurable:!0}};fg.prototype.interfaces_=function(){return[]},fg.prototype.getClass=function(){return fg},fg.orientationIndex=function(M,N,D){var t=fg.orientationIndexFilter(M,N,D);if(t<=1)return t;var i=Ug.valueOf(N.x).selfAdd(-M.x),e=Ug.valueOf(N.y).selfAdd(-M.y),j=Ug.valueOf(D.x).selfAdd(-N.x),T=Ug.valueOf(D.y).selfAdd(-N.y);return i.selfMultiply(T).selfSubtract(e.selfMultiply(j)).signum()},fg.signOfDet2x2=function(M,N,D,t){return M.multiply(t).selfSubtract(N.multiply(D)).signum()},fg.intersection=function(M,N,D,t){var i=Ug.valueOf(t.y).selfSubtract(D.y).selfMultiply(Ug.valueOf(N.x).selfSubtract(M.x)),e=Ug.valueOf(t.x).selfSubtract(D.x).selfMultiply(Ug.valueOf(N.y).selfSubtract(M.y)),j=i.subtract(e),T=Ug.valueOf(t.x).selfSubtract(D.x).selfMultiply(Ug.valueOf(M.y).selfSubtract(D.y)),g=Ug.valueOf(t.y).selfSubtract(D.y).selfMultiply(Ug.valueOf(M.x).selfSubtract(D.x)),s=T.subtract(g).selfDivide(j).doubleValue(),u=Ug.valueOf(M.x).selfAdd(Ug.valueOf(N.x).selfSubtract(M.x).selfMultiply(s)).doubleValue(),z=Ug.valueOf(N.x).selfSubtract(M.x).selfMultiply(Ug.valueOf(M.y).selfSubtract(D.y)),A=Ug.valueOf(N.y).selfSubtract(M.y).selfMultiply(Ug.valueOf(M.x).selfSubtract(D.x)),L=z.subtract(A).selfDivide(j).doubleValue(),I=Ug.valueOf(D.y).selfAdd(Ug.valueOf(t.y).selfSubtract(D.y).selfMultiply(L)).doubleValue();return new og(u,I)},fg.orientationIndexFilter=function(M,N,D){var t=null,i=(M.x-D.x)*(N.y-D.y),e=(M.y-D.y)*(N.x-D.x),j=i-e;if(i>0){if(e<=0)return fg.signum(j);t=i+e}else{if(!(i<0))return fg.signum(j);if(e>=0)return fg.signum(j);t=-i-e}var T=fg.DP_SAFE_EPSILON*t;return j>=T||-j>=T?fg.signum(j):2},fg.signum=function(M){return M>0?1:M<0?-1:0},mg.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(fg,mg);var vg=function(){},Bg={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};Bg.X.get=function(){return 0},Bg.Y.get=function(){return 1},Bg.Z.get=function(){return 2},Bg.M.get=function(){return 3},vg.prototype.setOrdinate=function(M,N,D){},vg.prototype.size=function(){},vg.prototype.getOrdinate=function(M,N){},vg.prototype.getCoordinate=function(){},vg.prototype.getCoordinateCopy=function(M){},vg.prototype.getDimension=function(){},vg.prototype.getX=function(M){},vg.prototype.clone=function(){},vg.prototype.expandEnvelope=function(M){},vg.prototype.copy=function(){},vg.prototype.getY=function(M){},vg.prototype.toCoordinateArray=function(){},vg.prototype.interfaces_=function(){return[yg]},vg.prototype.getClass=function(){return vg},Object.defineProperties(vg,Bg);var bg=function(){},Pg=function(M){function N(){M.call(this,"Projective point not representable on the Cartesian plane.")}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(bg),Zg=function(){};Zg.arraycopy=function(M,N,D,t,i){for(var e=0,j=N;j<N+i;j++)D[t+e]=M[j],e++},Zg.getProperty=function(M){return{"line.separator":"\n"}[M]};var Gg=function M(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var N=arguments[0];this.x=N.x,this.y=N.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var D=arguments[0],t=arguments[1];this.x=D,this.y=t,this.w=1}else if(arguments[0]instanceof M&&arguments[1]instanceof M){var i=arguments[0],e=arguments[1];this.x=i.y*e.w-e.y*i.w,this.y=e.x*i.w-i.x*e.w,this.w=i.x*e.y-e.x*i.y}else if(arguments[0]instanceof og&&arguments[1]instanceof og){var j=arguments[0],T=arguments[1];this.x=j.y-T.y,this.y=T.x-j.x,this.w=j.x*T.y-T.x*j.y}}else if(3===arguments.length){var g=arguments[0],s=arguments[1],u=arguments[2];this.x=g,this.y=s,this.w=u}else if(4===arguments.length){var z=arguments[0],A=arguments[1],L=arguments[2],I=arguments[3],n=z.y-A.y,r=A.x-z.x,w=z.x*A.y-A.x*z.y,c=L.y-I.y,y=I.x-L.x,a=L.x*I.y-I.x*L.y;this.x=r*a-y*w,this.y=c*w-n*a,this.w=n*y-c*r}};Gg.prototype.getY=function(){var M=this.y/this.w;if(rg.isNaN(M)||rg.isInfinite(M))throw new Pg;return M},Gg.prototype.getX=function(){var M=this.x/this.w;if(rg.isNaN(M)||rg.isInfinite(M))throw new Pg;return M},Gg.prototype.getCoordinate=function(){var M=new og;return M.x=this.getX(),M.y=this.getY(),M},Gg.prototype.interfaces_=function(){return[]},Gg.prototype.getClass=function(){return Gg},Gg.intersection=function(M,N,D,t){var i=M.y-N.y,e=N.x-M.x,j=M.x*N.y-N.x*M.y,T=D.y-t.y,g=t.x-D.x,s=D.x*t.y-t.x*D.y,u=i*g-T*e,z=(e*s-g*j)/u,A=(T*j-i*s)/u;if(rg.isNaN(z)||rg.isInfinite(z)||rg.isNaN(A)||rg.isInfinite(A))throw new Pg;return new og(z,A)};var Wg=function M(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof og){var N=arguments[0];this.init(N.x,N.x,N.y,N.y)}else if(arguments[0]instanceof M){var D=arguments[0];this.init(D)}}else if(2===arguments.length){var t=arguments[0],i=arguments[1];this.init(t.x,i.x,t.y,i.y)}else if(4===arguments.length){var e=arguments[0],j=arguments[1],T=arguments[2],g=arguments[3];this.init(e,j,T,g)}},Rg={serialVersionUID:{configurable:!0}};Wg.prototype.getArea=function(){return this.getWidth()*this.getHeight()},Wg.prototype.equals=function(M){if(!(M instanceof Wg))return!1;var N=M;return this.isNull()?N.isNull():this._maxx===N.getMaxX()&&this._maxy===N.getMaxY()&&this._minx===N.getMinX()&&this._miny===N.getMinY()},Wg.prototype.intersection=function(M){if(this.isNull()||M.isNull()||!this.intersects(M))return new Wg;var N=this._minx>M._minx?this._minx:M._minx,D=this._miny>M._miny?this._miny:M._miny,t=this._maxx<M._maxx?this._maxx:M._maxx,i=this._maxy<M._maxy?this._maxy:M._maxy;return new Wg(N,t,D,i)},Wg.prototype.isNull=function(){return this._maxx<this._minx},Wg.prototype.getMaxX=function(){return this._maxx},Wg.prototype.covers=function(){if(1===arguments.length){if(arguments[0]instanceof og){var M=arguments[0];return this.covers(M.x,M.y)}if(arguments[0]instanceof Wg){var N=arguments[0];return!this.isNull()&&!N.isNull()&&N.getMinX()>=this._minx&&N.getMaxX()<=this._maxx&&N.getMinY()>=this._miny&&N.getMaxY()<=this._maxy}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];return!this.isNull()&&D>=this._minx&&D<=this._maxx&&t>=this._miny&&t<=this._maxy}},Wg.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof Wg){var M=arguments[0];return!this.isNull()&&!M.isNull()&&!(M._minx>this._maxx||M._maxx<this._minx||M._miny>this._maxy||M._maxy<this._miny)}if(arguments[0]instanceof og){var N=arguments[0];return this.intersects(N.x,N.y)}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];return!this.isNull()&&!(D>this._maxx||D<this._minx||t>this._maxy||t<this._miny)}},Wg.prototype.getMinY=function(){return this._miny},Wg.prototype.getMinX=function(){return this._minx},Wg.prototype.expandToInclude=function(){if(1===arguments.length){if(arguments[0]instanceof og){var M=arguments[0];this.expandToInclude(M.x,M.y)}else if(arguments[0]instanceof Wg){var N=arguments[0];if(N.isNull())return null;this.isNull()?(this._minx=N.getMinX(),this._maxx=N.getMaxX(),this._miny=N.getMinY(),this._maxy=N.getMaxY()):(N._minx<this._minx&&(this._minx=N._minx),N._maxx>this._maxx&&(this._maxx=N._maxx),N._miny<this._miny&&(this._miny=N._miny),N._maxy>this._maxy&&(this._maxy=N._maxy))}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this.isNull()?(this._minx=D,this._maxx=D,this._miny=t,this._maxy=t):(D<this._minx&&(this._minx=D),D>this._maxx&&(this._maxx=D),t<this._miny&&(this._miny=t),t>this._maxy&&(this._maxy=t))}},Wg.prototype.minExtent=function(){if(this.isNull())return 0;var M=this.getWidth(),N=this.getHeight();return M<N?M:N},Wg.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx},Wg.prototype.compareTo=function(M){var N=M;return this.isNull()?N.isNull()?0:-1:N.isNull()?1:this._minx<N._minx?-1:this._minx>N._minx?1:this._miny<N._miny?-1:this._miny>N._miny?1:this._maxx<N._maxx?-1:this._maxx>N._maxx?1:this._maxy<N._maxy?-1:this._maxy>N._maxy?1:0},Wg.prototype.translate=function(M,N){if(this.isNull())return null;this.init(this.getMinX()+M,this.getMaxX()+M,this.getMinY()+N,this.getMaxY()+N)},Wg.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},Wg.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},Wg.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},Wg.prototype.maxExtent=function(){if(this.isNull())return 0;var M=this.getWidth(),N=this.getHeight();return M>N?M:N},Wg.prototype.expandBy=function(){if(1===arguments.length){var M=arguments[0];this.expandBy(M,M)}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(this.isNull())return null;this._minx-=N,this._maxx+=N,this._miny-=D,this._maxy+=D,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},Wg.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof Wg){var M=arguments[0];return this.covers(M)}if(arguments[0]instanceof og){var N=arguments[0];return this.covers(N)}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];return this.covers(D,t)}},Wg.prototype.centre=function(){return this.isNull()?null:new og((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},Wg.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof og){var M=arguments[0];this.init(M.x,M.x,M.y,M.y)}else if(arguments[0]instanceof Wg){var N=arguments[0];this._minx=N._minx,this._maxx=N._maxx,this._miny=N._miny,this._maxy=N._maxy}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this.init(D.x,t.x,D.y,t.y)}else if(4===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2],T=arguments[3];i<e?(this._minx=i,this._maxx=e):(this._minx=e,this._maxx=i),j<T?(this._miny=j,this._maxy=T):(this._miny=T,this._maxy=j)}},Wg.prototype.getMaxY=function(){return this._maxy},Wg.prototype.distance=function(M){if(this.intersects(M))return 0;var N=0;this._maxx<M._minx?N=M._minx-this._maxx:this._minx>M._maxx&&(N=this._minx-M._maxx);var D=0;return this._maxy<M._miny?D=M._miny-this._maxy:this._miny>M._maxy&&(D=this._miny-M._maxy),0===N?D:0===D?N:Math.sqrt(N*N+D*D)},Wg.prototype.hashCode=function(){var M=17;return M=37*M+og.hashCode(this._minx),M=37*M+og.hashCode(this._maxx),M=37*M+og.hashCode(this._miny),37*M+og.hashCode(this._maxy)},Wg.prototype.interfaces_=function(){return[cg,ki]},Wg.prototype.getClass=function(){return Wg},Wg.intersects=function(){if(3===arguments.length){var M=arguments[0],N=arguments[1],D=arguments[2];return D.x>=(M.x<N.x?M.x:N.x)&&D.x<=(M.x>N.x?M.x:N.x)&&D.y>=(M.y<N.y?M.y:N.y)&&D.y<=(M.y>N.y?M.y:N.y)}if(4===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2],j=arguments[3],T=Math.min(e.x,j.x),g=Math.max(e.x,j.x),s=Math.min(t.x,i.x),u=Math.max(t.x,i.x);return!(s>g)&&!(u<T)&&(T=Math.min(e.y,j.y),g=Math.max(e.y,j.y),s=Math.min(t.y,i.y),u=Math.max(t.y,i.y),!(s>g)&&!(u<T))}},Rg.serialVersionUID.get=function(){return 0x51845cd552189800},Object.defineProperties(Wg,Rg);var Xg={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},_g=function(M){this.geometryFactory=M||new nu};_g.prototype.read=function(M){var N,D,t;M=M.replace(/[\n\r]/g," ");var i=Xg.typeStr.exec(M);if(-1!==M.search("EMPTY")&&((i=Xg.emptyTypeStr.exec(M))[2]=void 0),i&&(D=i[1].toLowerCase(),t=i[2],Fg[D]&&(N=Fg[D].apply(this,[t]))),void 0===N)throw new Error("Could not parse WKT "+M);return N},_g.prototype.write=function(M){return this.extractGeometry(M)},_g.prototype.extractGeometry=function(M){var N=M.getGeometryType().toLowerCase();if(!Hg[N])return null;var D=N.toUpperCase();return M.isEmpty()?D+" EMPTY":D+"("+Hg[N].apply(this,[M])+")"};var Hg={coordinate:function(M){return M.x+" "+M.y},point:function(M){return Hg.coordinate.call(this,M._coordinates._coordinates[0])},multipoint:function(M){for(var N=[],D=0,t=M._geometries.length;D<t;++D)N.push("("+Hg.point.apply(this,[M._geometries[D]])+")");return N.join(",")},linestring:function(M){for(var N=[],D=0,t=M._points._coordinates.length;D<t;++D)N.push(Hg.coordinate.apply(this,[M._points._coordinates[D]]));return N.join(",")},linearring:function(M){for(var N=[],D=0,t=M._points._coordinates.length;D<t;++D)N.push(Hg.coordinate.apply(this,[M._points._coordinates[D]]));return N.join(",")},multilinestring:function(M){for(var N=[],D=0,t=M._geometries.length;D<t;++D)N.push("("+Hg.linestring.apply(this,[M._geometries[D]])+")");return N.join(",")},polygon:function(M){var N=[];N.push("("+Hg.linestring.apply(this,[M._shell])+")");for(var D=0,t=M._holes.length;D<t;++D)N.push("("+Hg.linestring.apply(this,[M._holes[D]])+")");return N.join(",")},multipolygon:function(M){for(var N=[],D=0,t=M._geometries.length;D<t;++D)N.push("("+Hg.polygon.apply(this,[M._geometries[D]])+")");return N.join(",")},geometrycollection:function(M){for(var N=[],D=0,t=M._geometries.length;D<t;++D)N.push(this.extractGeometry(M._geometries[D]));return N.join(",")}},Fg={point:function(M){if(void 0===M)return this.geometryFactory.createPoint();var N=M.trim().split(Xg.spaces);return this.geometryFactory.createPoint(new og(Number.parseFloat(N[0]),Number.parseFloat(N[1])))},multipoint:function(M){if(void 0===M)return this.geometryFactory.createMultiPoint();for(var N,D=M.trim().split(","),t=[],i=0,e=D.length;i<e;++i)N=D[i].replace(Xg.trimParens,"$1"),t.push(Fg.point.apply(this,[N]));return this.geometryFactory.createMultiPoint(t)},linestring:function(M){if(void 0===M)return this.geometryFactory.createLineString();for(var N,D=M.trim().split(","),t=[],i=0,e=D.length;i<e;++i)N=D[i].trim().split(Xg.spaces),t.push(new og(Number.parseFloat(N[0]),Number.parseFloat(N[1])));return this.geometryFactory.createLineString(t)},linearring:function(M){if(void 0===M)return this.geometryFactory.createLinearRing();for(var N,D=M.trim().split(","),t=[],i=0,e=D.length;i<e;++i)N=D[i].trim().split(Xg.spaces),t.push(new og(Number.parseFloat(N[0]),Number.parseFloat(N[1])));return this.geometryFactory.createLinearRing(t)},multilinestring:function(M){if(void 0===M)return this.geometryFactory.createMultiLineString();for(var N,D=M.trim().split(Xg.parenComma),t=[],i=0,e=D.length;i<e;++i)N=D[i].replace(Xg.trimParens,"$1"),t.push(Fg.linestring.apply(this,[N]));return this.geometryFactory.createMultiLineString(t)},polygon:function(M){if(void 0===M)return this.geometryFactory.createPolygon();for(var N,D,t,i,e=M.trim().split(Xg.parenComma),j=[],T=0,g=e.length;T<g;++T)N=e[T].replace(Xg.trimParens,"$1"),D=Fg.linestring.apply(this,[N]),t=this.geometryFactory.createLinearRing(D._points),0===T?i=t:j.push(t);return this.geometryFactory.createPolygon(i,j)},multipolygon:function(M){if(void 0===M)return this.geometryFactory.createMultiPolygon();for(var N,D=M.trim().split(Xg.doubleParenComma),t=[],i=0,e=D.length;i<e;++i)N=D[i].replace(Xg.trimParens,"$1"),t.push(Fg.polygon.apply(this,[N]));return this.geometryFactory.createMultiPolygon(t)},geometrycollection:function(M){if(void 0===M)return this.geometryFactory.createGeometryCollection();for(var N=(M=M.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),D=[],t=0,i=N.length;t<i;++t)D.push(this.read(N[t]));return this.geometryFactory.createGeometryCollection(D)}},Vg=function(M){this.parser=new _g(M)};Vg.prototype.write=function(M){return this.parser.write(M)},Vg.toLineString=function(M,N){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+M.x+" "+M.y+", "+N.x+" "+N.y+" )"};var Jg=function(M){function N(N){M.call(this,N),this.name="RuntimeException",this.message=N,this.stack=(new M).stack}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N}(Error),qg=function(M){function N(){if(M.call(this),0===arguments.length)M.call(this);else if(1===arguments.length){var N=arguments[0];M.call(this,N)}}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Jg),Kg=function(){};Kg.prototype.interfaces_=function(){return[]},Kg.prototype.getClass=function(){return Kg},Kg.shouldNeverReachHere=function(){if(0===arguments.length)Kg.shouldNeverReachHere(null);else if(1===arguments.length){var M=arguments[0];throw new qg("Should never reach here"+(null!==M?": "+M:""))}},Kg.isTrue=function(){var M,N;if(1===arguments.length)M=arguments[0],Kg.isTrue(M,null);else if(2===arguments.length&&(M=arguments[0],N=arguments[1],!M))throw null===N?new qg:new qg(N)},Kg.equals=function(){var M,N,D;if(2===arguments.length)M=arguments[0],N=arguments[1],Kg.equals(M,N,null);else if(3===arguments.length&&(M=arguments[0],N=arguments[1],D=arguments[2],!N.equals(M)))throw new qg("Expected "+M+" but encountered "+N+(null!==D?": "+D:""))};var $g=function(){this._result=null,this._inputLines=Array(2).fill().map((function(){return Array(2)})),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new og,this._intPt[1]=new og,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},Ms={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};$g.prototype.getIndexAlongSegment=function(M,N){return this.computeIntLineIndex(),this._intLineIndex[M][N]},$g.prototype.getTopologySummary=function(){var M=new dg;return this.isEndPoint()&&M.append(" endpoint"),this._isProper&&M.append(" proper"),this.isCollinear()&&M.append(" collinear"),M.toString()},$g.prototype.computeIntersection=function(M,N,D,t){this._inputLines[0][0]=M,this._inputLines[0][1]=N,this._inputLines[1][0]=D,this._inputLines[1][1]=t,this._result=this.computeIntersect(M,N,D,t)},$g.prototype.getIntersectionNum=function(){return this._result},$g.prototype.computeIntLineIndex=function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map((function(){return Array(2)})),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var M=arguments[0];this.getEdgeDistance(M,0)>this.getEdgeDistance(M,1)?(this._intLineIndex[M][0]=0,this._intLineIndex[M][1]=1):(this._intLineIndex[M][0]=1,this._intLineIndex[M][1]=0)}},$g.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},$g.prototype.setPrecisionModel=function(M){this._precisionModel=M},$g.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var M=arguments[0],N=0;N<this._result;N++)if(!this._intPt[N].equals2D(this._inputLines[M][0])&&!this._intPt[N].equals2D(this._inputLines[M][1]))return!0;return!1}},$g.prototype.getIntersection=function(M){return this._intPt[M]},$g.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper},$g.prototype.hasIntersection=function(){return this._result!==$g.NO_INTERSECTION},$g.prototype.getEdgeDistance=function(M,N){return $g.computeEdgeDistance(this._intPt[N],this._inputLines[M][0],this._inputLines[M][1])},$g.prototype.isCollinear=function(){return this._result===$g.COLLINEAR_INTERSECTION},$g.prototype.toString=function(){return Vg.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+Vg.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},$g.prototype.getEndpoint=function(M,N){return this._inputLines[M][N]},$g.prototype.isIntersection=function(M){for(var N=0;N<this._result;N++)if(this._intPt[N].equals2D(M))return!0;return!1},$g.prototype.getIntersectionAlongSegment=function(M,N){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[M][N]]},$g.prototype.interfaces_=function(){return[]},$g.prototype.getClass=function(){return $g},$g.computeEdgeDistance=function(M,N,D){var t=Math.abs(D.x-N.x),i=Math.abs(D.y-N.y),e=-1;if(M.equals(N))e=0;else if(M.equals(D))e=t>i?t:i;else{var j=Math.abs(M.x-N.x),T=Math.abs(M.y-N.y);0!==(e=t>i?j:T)||M.equals(N)||(e=Math.max(j,T))}return Kg.isTrue(!(0===e&&!M.equals(N)),"Bad distance calculation"),e},$g.nonRobustComputeEdgeDistance=function(M,N,D){var t=M.x-N.x,i=M.y-N.y,e=Math.sqrt(t*t+i*i);return Kg.isTrue(!(0===e&&!M.equals(N)),"Invalid distance calculation"),e},Ms.DONT_INTERSECT.get=function(){return 0},Ms.DO_INTERSECT.get=function(){return 1},Ms.COLLINEAR.get=function(){return 2},Ms.NO_INTERSECTION.get=function(){return 0},Ms.POINT_INTERSECTION.get=function(){return 1},Ms.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties($g,Ms);var Ns=function(M){function N(){M.apply(this,arguments)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.isInSegmentEnvelopes=function(M){var N=new Wg(this._inputLines[0][0],this._inputLines[0][1]),D=new Wg(this._inputLines[1][0],this._inputLines[1][1]);return N.contains(M)&&D.contains(M)},N.prototype.computeIntersection=function(){if(3!==arguments.length)return M.prototype.computeIntersection.apply(this,arguments);var N=arguments[0],D=arguments[1],t=arguments[2];if(this._isProper=!1,Wg.intersects(D,t,N)&&0===is.orientationIndex(D,t,N)&&0===is.orientationIndex(t,D,N))return this._isProper=!0,(N.equals(D)||N.equals(t))&&(this._isProper=!1),this._result=M.POINT_INTERSECTION,null;this._result=M.NO_INTERSECTION},N.prototype.normalizeToMinimum=function(M,N,D,t,i){i.x=this.smallestInAbsValue(M.x,N.x,D.x,t.x),i.y=this.smallestInAbsValue(M.y,N.y,D.y,t.y),M.x-=i.x,M.y-=i.y,N.x-=i.x,N.y-=i.y,D.x-=i.x,D.y-=i.y,t.x-=i.x,t.y-=i.y},N.prototype.safeHCoordinateIntersection=function(M,D,t,i){var e=null;try{e=Gg.intersection(M,D,t,i)}catch(j){if(!(j instanceof Pg))throw j;e=N.nearestEndpoint(M,D,t,i)}return e},N.prototype.intersection=function(M,D,t,i){var e=this.intersectionWithNormalization(M,D,t,i);return this.isInSegmentEnvelopes(e)||(e=new og(N.nearestEndpoint(M,D,t,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(e),e},N.prototype.smallestInAbsValue=function(M,N,D,t){var i=M,e=Math.abs(i);return Math.abs(N)<e&&(i=N,e=Math.abs(N)),Math.abs(D)<e&&(i=D,e=Math.abs(D)),Math.abs(t)<e&&(i=t),i},N.prototype.checkDD=function(M,N,D,t,i){var e=fg.intersection(M,N,D,t),j=this.isInSegmentEnvelopes(e);Zg.out.println("DD in env = "+j+" --------------------- "+e),i.distance(e)>1e-4&&Zg.out.println("Distance = "+i.distance(e))},N.prototype.intersectionWithNormalization=function(M,N,D,t){var i=new og(M),e=new og(N),j=new og(D),T=new og(t),g=new og;this.normalizeToEnvCentre(i,e,j,T,g);var s=this.safeHCoordinateIntersection(i,e,j,T);return s.x+=g.x,s.y+=g.y,s},N.prototype.computeCollinearIntersection=function(N,D,t,i){var e=Wg.intersects(N,D,t),j=Wg.intersects(N,D,i),T=Wg.intersects(t,i,N),g=Wg.intersects(t,i,D);return e&&j?(this._intPt[0]=t,this._intPt[1]=i,M.COLLINEAR_INTERSECTION):T&&g?(this._intPt[0]=N,this._intPt[1]=D,M.COLLINEAR_INTERSECTION):e&&T?(this._intPt[0]=t,this._intPt[1]=N,!t.equals(N)||j||g?M.COLLINEAR_INTERSECTION:M.POINT_INTERSECTION):e&&g?(this._intPt[0]=t,this._intPt[1]=D,!t.equals(D)||j||T?M.COLLINEAR_INTERSECTION:M.POINT_INTERSECTION):j&&T?(this._intPt[0]=i,this._intPt[1]=N,!i.equals(N)||e||g?M.COLLINEAR_INTERSECTION:M.POINT_INTERSECTION):j&&g?(this._intPt[0]=i,this._intPt[1]=D,!i.equals(D)||e||T?M.COLLINEAR_INTERSECTION:M.POINT_INTERSECTION):M.NO_INTERSECTION},N.prototype.normalizeToEnvCentre=function(M,N,D,t,i){var e=M.x<N.x?M.x:N.x,j=M.y<N.y?M.y:N.y,T=M.x>N.x?M.x:N.x,g=M.y>N.y?M.y:N.y,s=D.x<t.x?D.x:t.x,u=D.y<t.y?D.y:t.y,z=D.x>t.x?D.x:t.x,A=D.y>t.y?D.y:t.y,L=((e>s?e:s)+(T<z?T:z))/2,I=((j>u?j:u)+(g<A?g:A))/2;i.x=L,i.y=I,M.x-=i.x,M.y-=i.y,N.x-=i.x,N.y-=i.y,D.x-=i.x,D.y-=i.y,t.x-=i.x,t.y-=i.y},N.prototype.computeIntersect=function(N,D,t,i){if(this._isProper=!1,!Wg.intersects(N,D,t,i))return M.NO_INTERSECTION;var e=is.orientationIndex(N,D,t),j=is.orientationIndex(N,D,i);if(e>0&&j>0||e<0&&j<0)return M.NO_INTERSECTION;var T=is.orientationIndex(t,i,N),g=is.orientationIndex(t,i,D);return T>0&&g>0||T<0&&g<0?M.NO_INTERSECTION:0===e&&0===j&&0===T&&0===g?this.computeCollinearIntersection(N,D,t,i):(0===e||0===j||0===T||0===g?(this._isProper=!1,N.equals2D(t)||N.equals2D(i)?this._intPt[0]=N:D.equals2D(t)||D.equals2D(i)?this._intPt[0]=D:0===e?this._intPt[0]=new og(t):0===j?this._intPt[0]=new og(i):0===T?this._intPt[0]=new og(N):0===g&&(this._intPt[0]=new og(D))):(this._isProper=!0,this._intPt[0]=this.intersection(N,D,t,i)),M.POINT_INTERSECTION)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N.nearestEndpoint=function(M,N,D,t){var i=M,e=is.distancePointLine(M,D,t),j=is.distancePointLine(N,D,t);return j<e&&(e=j,i=N),(j=is.distancePointLine(D,M,N))<e&&(e=j,i=D),(j=is.distancePointLine(t,M,N))<e&&(e=j,i=t),i},N}($g),Ds=function(){};Ds.prototype.interfaces_=function(){return[]},Ds.prototype.getClass=function(){return Ds},Ds.orientationIndex=function(M,N,D){var t=N.x-M.x,i=N.y-M.y,e=D.x-N.x,j=D.y-N.y;return Ds.signOfDet2x2(t,i,e,j)},Ds.signOfDet2x2=function(M,N,D,t){var i=null,e=null,j=null;if(i=1,0===M||0===t)return 0===N||0===D?0:N>0?D>0?-i:i:D>0?i:-i;if(0===N||0===D)return t>0?M>0?i:-i:M>0?-i:i;if(N>0?t>0?N<=t||(i=-i,e=M,M=D,D=e,e=N,N=t,t=e):N<=-t?(i=-i,D=-D,t=-t):(e=M,M=-D,D=e,e=N,N=-t,t=e):t>0?-N<=t?(i=-i,M=-M,N=-N):(e=-M,M=D,D=e,e=-N,N=t,t=e):N>=t?(M=-M,N=-N,D=-D,t=-t):(i=-i,e=-M,M=-D,D=e,e=-N,N=-t,t=e),M>0){if(!(D>0))return i;if(!(M<=D))return i}else{if(D>0)return-i;if(!(M>=D))return-i;i=-i,M=-M,D=-D}for(;;){if(j=Math.floor(D/M),D-=j*M,(t-=j*N)<0)return-i;if(t>N)return i;if(M>D+D){if(N<t+t)return i}else{if(N>t+t)return-i;D=M-D,t=N-t,i=-i}if(0===t)return 0===D?0:-i;if(0===D)return i;if(j=Math.floor(M/D),M-=j*D,(N-=j*t)<0)return i;if(N>t)return-i;if(D>M+M){if(t<N+N)return-i}else{if(t>N+N)return i;M=D-M,N=t-N,i=-i}if(0===N)return 0===M?0:i;if(0===M)return-i}};var ts=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var M=arguments[0];this._p=M};ts.prototype.countSegment=function(M,N){if(M.x<this._p.x&&N.x<this._p.x)return null;if(this._p.x===N.x&&this._p.y===N.y)return this._isPointOnSegment=!0,null;if(M.y===this._p.y&&N.y===this._p.y){var D=M.x,t=N.x;return D>t&&(D=N.x,t=M.x),this._p.x>=D&&this._p.x<=t&&(this._isPointOnSegment=!0),null}if(M.y>this._p.y&&N.y<=this._p.y||N.y>this._p.y&&M.y<=this._p.y){var i=M.x-this._p.x,e=M.y-this._p.y,j=N.x-this._p.x,T=N.y-this._p.y,g=Ds.signOfDet2x2(i,e,j,T);if(0===g)return this._isPointOnSegment=!0,null;T<e&&(g=-g),g>0&&this._crossingCount++}},ts.prototype.isPointInPolygon=function(){return this.getLocation()!==Cg.EXTERIOR},ts.prototype.getLocation=function(){return this._isPointOnSegment?Cg.BOUNDARY:this._crossingCount%2==1?Cg.INTERIOR:Cg.EXTERIOR},ts.prototype.isOnSegment=function(){return this._isPointOnSegment},ts.prototype.interfaces_=function(){return[]},ts.prototype.getClass=function(){return ts},ts.locatePointInRing=function(){if(arguments[0]instanceof og&&lg(arguments[1],vg)){for(var M=arguments[0],N=arguments[1],D=new ts(M),t=new og,i=new og,e=1;e<N.size();e++)if(N.getCoordinate(e,t),N.getCoordinate(e-1,i),D.countSegment(t,i),D.isOnSegment())return D.getLocation();return D.getLocation()}if(arguments[0]instanceof og&&arguments[1]instanceof Array){for(var j=arguments[0],T=arguments[1],g=new ts(j),s=1;s<T.length;s++){var u=T[s],z=T[s-1];if(g.countSegment(u,z),g.isOnSegment())return g.getLocation()}return g.getLocation()}};var is=function(){},es={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};is.prototype.interfaces_=function(){return[]},is.prototype.getClass=function(){return is},is.orientationIndex=function(M,N,D){return fg.orientationIndex(M,N,D)},is.signedArea=function(){if(arguments[0]instanceof Array){var M=arguments[0];if(M.length<3)return 0;for(var N=0,D=M[0].x,t=1;t<M.length-1;t++){var i=M[t].x-D,e=M[t+1].y;N+=i*(M[t-1].y-e)}return N/2}if(lg(arguments[0],vg)){var j=arguments[0],T=j.size();if(T<3)return 0;var g=new og,s=new og,u=new og;j.getCoordinate(0,s),j.getCoordinate(1,u);var z=s.x;u.x-=z;for(var A=0,L=1;L<T-1;L++)g.y=s.y,s.x=u.x,s.y=u.y,j.getCoordinate(L+1,u),u.x-=z,A+=s.x*(g.y-u.y);return A/2}},is.distanceLineLine=function(M,N,D,t){if(M.equals(N))return is.distancePointLine(M,D,t);if(D.equals(t))return is.distancePointLine(t,M,N);var i=!1;if(Wg.intersects(M,N,D,t)){var e=(N.x-M.x)*(t.y-D.y)-(N.y-M.y)*(t.x-D.x);if(0===e)i=!0;else{var j=(M.y-D.y)*(t.x-D.x)-(M.x-D.x)*(t.y-D.y),T=((M.y-D.y)*(N.x-M.x)-(M.x-D.x)*(N.y-M.y))/e,g=j/e;(g<0||g>1||T<0||T>1)&&(i=!0)}}else i=!0;return i?kg.min(is.distancePointLine(M,D,t),is.distancePointLine(N,D,t),is.distancePointLine(D,M,N),is.distancePointLine(t,M,N)):0},is.isPointInRing=function(M,N){return is.locatePointInRing(M,N)!==Cg.EXTERIOR},is.computeLength=function(M){var N=M.size();if(N<=1)return 0;var D=0,t=new og;M.getCoordinate(0,t);for(var i=t.x,e=t.y,j=1;j<N;j++){M.getCoordinate(j,t);var T=t.x,g=t.y,s=T-i,u=g-e;D+=Math.sqrt(s*s+u*u),i=T,e=g}return D},is.isCCW=function(M){var N=M.length-1;if(N<3)throw new ng("Ring has fewer than 4 points, so orientation cannot be determined");for(var D=M[0],t=0,i=1;i<=N;i++){var e=M[i];e.y>D.y&&(D=e,t=i)}var j=t;do{(j-=1)<0&&(j=N)}while(M[j].equals2D(D)&&j!==t);var T=t;do{T=(T+1)%N}while(M[T].equals2D(D)&&T!==t);var g=M[j],s=M[T];if(g.equals2D(D)||s.equals2D(D)||g.equals2D(s))return!1;var u=is.computeOrientation(g,D,s),z=!1;return z=0===u?g.x>s.x:u>0,z},is.locatePointInRing=function(M,N){return ts.locatePointInRing(M,N)},is.distancePointLinePerpendicular=function(M,N,D){var t=(D.x-N.x)*(D.x-N.x)+(D.y-N.y)*(D.y-N.y),i=((N.y-M.y)*(D.x-N.x)-(N.x-M.x)*(D.y-N.y))/t;return Math.abs(i)*Math.sqrt(t)},is.computeOrientation=function(M,N,D){return is.orientationIndex(M,N,D)},is.distancePointLine=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];if(0===N.length)throw new ng("Line array must contain at least one vertex");for(var D=M.distance(N[0]),t=0;t<N.length-1;t++){var i=is.distancePointLine(M,N[t],N[t+1]);i<D&&(D=i)}return D}if(3===arguments.length){var e=arguments[0],j=arguments[1],T=arguments[2];if(j.x===T.x&&j.y===T.y)return e.distance(j);var g=(T.x-j.x)*(T.x-j.x)+(T.y-j.y)*(T.y-j.y),s=((e.x-j.x)*(T.x-j.x)+(e.y-j.y)*(T.y-j.y))/g;if(s<=0)return e.distance(j);if(s>=1)return e.distance(T);var u=((j.y-e.y)*(T.x-j.x)-(j.x-e.x)*(T.y-j.y))/g;return Math.abs(u)*Math.sqrt(g)}},is.isOnLine=function(M,N){for(var D=new Ns,t=1;t<N.length;t++){var i=N[t-1],e=N[t];if(D.computeIntersection(M,i,e),D.hasIntersection())return!0}return!1},es.CLOCKWISE.get=function(){return-1},es.RIGHT.get=function(){return is.CLOCKWISE},es.COUNTERCLOCKWISE.get=function(){return 1},es.LEFT.get=function(){return is.COUNTERCLOCKWISE},es.COLLINEAR.get=function(){return 0},es.STRAIGHT.get=function(){return is.COLLINEAR},Object.defineProperties(is,es);var js=function(){};js.prototype.filter=function(M){},js.prototype.interfaces_=function(){return[]},js.prototype.getClass=function(){return js};var Ts=function(){var M=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=M,this._SRID=M.getSRID()},gs={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};Ts.prototype.isGeometryCollection=function(){return this.getSortIndex()===Ts.SORTINDEX_GEOMETRYCOLLECTION},Ts.prototype.getFactory=function(){return this._factory},Ts.prototype.getGeometryN=function(M){return this},Ts.prototype.getArea=function(){return 0},Ts.prototype.isRectangle=function(){return!1},Ts.prototype.equals=function(){if(arguments[0]instanceof Ts){var M=arguments[0];return null!==M&&this.equalsTopo(M)}if(arguments[0]instanceof Object){var N=arguments[0];if(!(N instanceof Ts))return!1;var D=N;return this.equalsExact(D)}},Ts.prototype.equalsExact=function(M){return this===M||this.equalsExact(M,0)},Ts.prototype.geometryChanged=function(){this.apply(Ts.geometryChangedFilter)},Ts.prototype.geometryChangedAction=function(){this._envelope=null},Ts.prototype.equalsNorm=function(M){return null!==M&&this.norm().equalsExact(M.norm())},Ts.prototype.getLength=function(){return 0},Ts.prototype.getNumGeometries=function(){return 1},Ts.prototype.compareTo=function(){if(1===arguments.length){var M=arguments[0],N=M;return this.getSortIndex()!==N.getSortIndex()?this.getSortIndex()-N.getSortIndex():this.isEmpty()&&N.isEmpty()?0:this.isEmpty()?-1:N.isEmpty()?1:this.compareToSameClass(M)}if(2===arguments.length){var D=arguments[0],t=arguments[1];return this.getSortIndex()!==D.getSortIndex()?this.getSortIndex()-D.getSortIndex():this.isEmpty()&&D.isEmpty()?0:this.isEmpty()?-1:D.isEmpty()?1:this.compareToSameClass(D,t)}},Ts.prototype.getUserData=function(){return this._userData},Ts.prototype.getSRID=function(){return this._SRID},Ts.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},Ts.prototype.checkNotGeometryCollection=function(M){if(M.getSortIndex()===Ts.SORTINDEX_GEOMETRYCOLLECTION)throw new ng("This method does not support GeometryCollection arguments")},Ts.prototype.equal=function(M,N,D){return 0===D?M.equals(N):M.distance(N)<=D},Ts.prototype.norm=function(){var M=this.copy();return M.normalize(),M},Ts.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()},Ts.prototype.getEnvelopeInternal=function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new Wg(this._envelope)},Ts.prototype.setSRID=function(M){this._SRID=M},Ts.prototype.setUserData=function(M){this._userData=M},Ts.prototype.compare=function(M,N){for(var D=M.iterator(),t=N.iterator();D.hasNext()&&t.hasNext();){var i=D.next(),e=t.next(),j=i.compareTo(e);if(0!==j)return j}return D.hasNext()?1:t.hasNext()?-1:0},Ts.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()},Ts.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===Ts.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===Ts.SORTINDEX_MULTIPOINT||this.getSortIndex()===Ts.SORTINDEX_MULTILINESTRING||this.getSortIndex()===Ts.SORTINDEX_MULTIPOLYGON},Ts.prototype.interfaces_=function(){return[yg,cg,ki]},Ts.prototype.getClass=function(){return Ts},Ts.hasNonEmptyElements=function(M){for(var N=0;N<M.length;N++)if(!M[N].isEmpty())return!0;return!1},Ts.hasNullElements=function(M){for(var N=0;N<M.length;N++)if(null===M[N])return!0;return!1},gs.serialVersionUID.get=function(){return 0x799ea46522854c00},gs.SORTINDEX_POINT.get=function(){return 0},gs.SORTINDEX_MULTIPOINT.get=function(){return 1},gs.SORTINDEX_LINESTRING.get=function(){return 2},gs.SORTINDEX_LINEARRING.get=function(){return 3},gs.SORTINDEX_MULTILINESTRING.get=function(){return 4},gs.SORTINDEX_POLYGON.get=function(){return 5},gs.SORTINDEX_MULTIPOLYGON.get=function(){return 6},gs.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7},gs.geometryChangedFilter.get=function(){return ss},Object.defineProperties(Ts,gs);var ss=function(){};ss.interfaces_=function(){return[js]},ss.filter=function(M){M.geometryChangedAction()};var us=function(){};us.prototype.filter=function(M){},us.prototype.interfaces_=function(){return[]},us.prototype.getClass=function(){return us};var zs=function(){},As={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};zs.prototype.isInBoundary=function(M){},zs.prototype.interfaces_=function(){return[]},zs.prototype.getClass=function(){return zs},As.Mod2BoundaryNodeRule.get=function(){return Ls},As.EndPointBoundaryNodeRule.get=function(){return Is},As.MultiValentEndPointBoundaryNodeRule.get=function(){return ns},As.MonoValentEndPointBoundaryNodeRule.get=function(){return rs},As.MOD2_BOUNDARY_RULE.get=function(){return new Ls},As.ENDPOINT_BOUNDARY_RULE.get=function(){return new Is},As.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new ns},As.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new rs},As.OGC_SFS_BOUNDARY_RULE.get=function(){return zs.MOD2_BOUNDARY_RULE},Object.defineProperties(zs,As);var Ls=function(){};Ls.prototype.isInBoundary=function(M){return M%2==1},Ls.prototype.interfaces_=function(){return[zs]},Ls.prototype.getClass=function(){return Ls};var Is=function(){};Is.prototype.isInBoundary=function(M){return M>0},Is.prototype.interfaces_=function(){return[zs]},Is.prototype.getClass=function(){return Is};var ns=function(){};ns.prototype.isInBoundary=function(M){return M>1},ns.prototype.interfaces_=function(){return[zs]},ns.prototype.getClass=function(){return ns};var rs=function(){};rs.prototype.isInBoundary=function(M){return 1===M},rs.prototype.interfaces_=function(){return[zs]},rs.prototype.getClass=function(){return rs};var ws=function(){};ws.prototype.add=function(){},ws.prototype.addAll=function(){},ws.prototype.isEmpty=function(){},ws.prototype.iterator=function(){},ws.prototype.size=function(){},ws.prototype.toArray=function(){},ws.prototype.remove=function(){};var cs=function(M){function N(N){M.call(this),this.message=N||""}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={name:{configurable:!0}};return D.name.get=function(){return"IndexOutOfBoundsException"},Object.defineProperties(N,D),N}(Error),ys=function(){};ys.prototype.hasNext=function(){},ys.prototype.next=function(){},ys.prototype.remove=function(){};var as=function(M){function N(){M.apply(this,arguments)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.get=function(){},N.prototype.set=function(){},N.prototype.isEmpty=function(){},N}(ws);(Qi.prototype=new Error).name="NoSuchElementException";var os=function(M){function N(){M.call(this),this.array_=[],arguments[0]instanceof ws&&this.addAll(arguments[0])}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.ensureCapacity=function(){},N.prototype.interfaces_=function(){return[M,ws]},N.prototype.add=function(M){return 1===arguments.length?this.array_.push(M):this.array_.splice(arguments[0],arguments[1]),!0},N.prototype.clear=function(){this.array_=[]},N.prototype.addAll=function(M){for(var N=M.iterator();N.hasNext();)this.add(N.next());return!0},N.prototype.set=function(M,N){var D=this.array_[M];return this.array_[M]=N,D},N.prototype.iterator=function(){return new Es(this)},N.prototype.get=function(M){if(M<0||M>=this.size())throw new cs;return this.array_[M]},N.prototype.isEmpty=function(){return 0===this.array_.length},N.prototype.size=function(){return this.array_.length},N.prototype.toArray=function(){for(var M=[],N=0,D=this.array_.length;N<D;N++)M.push(this.array_[N]);return M},N.prototype.remove=function(M){for(var N=!1,D=0,t=this.array_.length;D<t;D++)if(this.array_[D]===M){this.array_.splice(D,1),N=!0;break}return N},N}(as),Es=function(M){function N(N){M.call(this),this.arrayList_=N,this.position_=0}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new Qi;return this.arrayList_.get(this.position_++)},N.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},N.prototype.set=function(M){return this.arrayList_.set(this.position_-1,M)},N.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},N}(ys),Os=function(M){function N(){if(M.call(this),0===arguments.length);else if(1===arguments.length){var N=arguments[0];this.ensureCapacity(N.length),this.add(N,!0)}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this.ensureCapacity(D.length),this.add(D,t)}}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={coordArrayType:{configurable:!0}};return D.coordArrayType.get=function(){return new Array(0).fill(null)},N.prototype.getCoordinate=function(M){return this.get(M)},N.prototype.addAll=function(){if(2===arguments.length){for(var N=arguments[0],D=arguments[1],t=!1,i=N.iterator();i.hasNext();)this.add(i.next(),D),t=!0;return t}return M.prototype.addAll.apply(this,arguments)},N.prototype.clone=function(){for(var N=M.prototype.clone.call(this),D=0;D<this.size();D++)N.add(D,this.get(D).copy());return N},N.prototype.toCoordinateArray=function(){return this.toArray(N.coordArrayType)},N.prototype.add=function(){if(1===arguments.length){var N=arguments[0];M.prototype.add.call(this,N)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var D=arguments[0],t=arguments[1];return this.add(D,t,!0),!0}if(arguments[0]instanceof og&&"boolean"==typeof arguments[1]){var i=arguments[0];if(!arguments[1]&&this.size()>=1&&this.get(this.size()-1).equals2D(i))return null;M.prototype.add.call(this,i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var e=arguments[0],j=arguments[1];return this.add(e,j),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var T=arguments[0],g=arguments[1];if(arguments[2])for(var s=0;s<T.length;s++)this.add(T[s],g);else for(var u=T.length-1;u>=0;u--)this.add(T[u],g);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof og){var z=arguments[0],A=arguments[1];if(!arguments[2]){var L=this.size();if(L>0){if(z>0&&this.get(z-1).equals2D(A))return null;if(z<L&&this.get(z).equals2D(A))return null}}M.prototype.add.call(this,z,A)}}else if(4===arguments.length){var I=arguments[0],n=arguments[1],r=arguments[2],w=arguments[3],c=1;r>w&&(c=-1);for(var y=r;y!==w;y+=c)this.add(I[y],n);return!0}},N.prototype.closeRing=function(){this.size()>0&&this.add(new og(this.get(0)),!1)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},Object.defineProperties(N,D),N}(os),xs=function(){},Cs={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};Cs.ForwardComparator.get=function(){return Ss},Cs.BidirectionalComparator.get=function(){return ls},Cs.coordArrayType.get=function(){return new Array(0).fill(null)},xs.prototype.interfaces_=function(){return[]},xs.prototype.getClass=function(){return xs},xs.isRing=function(M){return!(M.length<4)&&!!M[0].equals2D(M[M.length-1])},xs.ptNotInList=function(M,N){for(var D=0;D<M.length;D++){var t=M[D];if(xs.indexOf(t,N)<0)return t}return null},xs.scroll=function(M,N){var D=xs.indexOf(N,M);if(D<0)return null;var t=new Array(M.length).fill(null);Zg.arraycopy(M,D,t,0,M.length-D),Zg.arraycopy(M,0,t,M.length-D,D),Zg.arraycopy(t,0,M,0,M.length)},xs.equals=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];if(M===N)return!0;if(null===M||null===N)return!1;if(M.length!==N.length)return!1;for(var D=0;D<M.length;D++)if(!M[D].equals(N[D]))return!1;return!0}if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2];if(t===i)return!0;if(null===t||null===i)return!1;if(t.length!==i.length)return!1;for(var j=0;j<t.length;j++)if(0!==e.compare(t[j],i[j]))return!1;return!0}},xs.intersection=function(M,N){for(var D=new Os,t=0;t<M.length;t++)N.intersects(M[t])&&D.add(M[t],!0);return D.toCoordinateArray()},xs.hasRepeatedPoints=function(M){for(var N=1;N<M.length;N++)if(M[N-1].equals(M[N]))return!0;return!1},xs.removeRepeatedPoints=function(M){return xs.hasRepeatedPoints(M)?new Os(M,!1).toCoordinateArray():M},xs.reverse=function(M){for(var N=M.length-1,D=Math.trunc(N/2),t=0;t<=D;t++){var i=M[t];M[t]=M[N-t],M[N-t]=i}},xs.removeNull=function(M){for(var N=0,D=0;D<M.length;D++)null!==M[D]&&N++;var t=new Array(N).fill(null);if(0===N)return t;for(var i=0,e=0;e<M.length;e++)null!==M[e]&&(t[i++]=M[e]);return t},xs.copyDeep=function(){if(1===arguments.length){for(var M=arguments[0],N=new Array(M.length).fill(null),D=0;D<M.length;D++)N[D]=new og(M[D]);return N}if(5===arguments.length)for(var t=arguments[0],i=arguments[1],e=arguments[2],j=arguments[3],T=arguments[4],g=0;g<T;g++)e[j+g]=new og(t[i+g])},xs.isEqualReversed=function(M,N){for(var D=0;D<M.length;D++){var t=M[D],i=N[M.length-D-1];if(0!==t.compareTo(i))return!1}return!0},xs.envelope=function(M){for(var N=new Wg,D=0;D<M.length;D++)N.expandToInclude(M[D]);return N},xs.toCoordinateArray=function(M){return M.toArray(xs.coordArrayType)},xs.atLeastNCoordinatesOrNothing=function(M,N){return N.length>=M?N:[]},xs.indexOf=function(M,N){for(var D=0;D<N.length;D++)if(M.equals(N[D]))return D;return-1},xs.increasingDirection=function(M){for(var N=0;N<Math.trunc(M.length/2);N++){var D=M.length-1-N,t=M[N].compareTo(M[D]);if(0!==t)return t}return 1},xs.compare=function(M,N){for(var D=0;D<M.length&&D<N.length;){var t=M[D].compareTo(N[D]);if(0!==t)return t;D++}return D<N.length?-1:D<M.length?1:0},xs.minCoordinate=function(M){for(var N=null,D=0;D<M.length;D++)(null===N||N.compareTo(M[D])>0)&&(N=M[D]);return N},xs.extract=function(M,N,D){N=kg.clamp(N,0,M.length);var t=(D=kg.clamp(D,-1,M.length))-N+1;D<0&&(t=0),N>=M.length&&(t=0),D<N&&(t=0);var i=new Array(t).fill(null);if(0===t)return i;for(var e=0,j=N;j<=D;j++)i[e++]=M[j];return i},Object.defineProperties(xs,Cs);var Ss=function(){};Ss.prototype.compare=function(M,N){return xs.compare(M,N)},Ss.prototype.interfaces_=function(){return[ag]},Ss.prototype.getClass=function(){return Ss};var ls=function(){};ls.prototype.compare=function(M,N){var D=M,t=N;if(D.length<t.length)return-1;if(D.length>t.length)return 1;if(0===D.length)return 0;var i=xs.compare(D,t);return xs.isEqualReversed(D,t)?0:i},ls.prototype.OLDcompare=function(M,N){var D=M,t=N;if(D.length<t.length)return-1;if(D.length>t.length)return 1;if(0===D.length)return 0;for(var i=xs.increasingDirection(D),e=xs.increasingDirection(t),j=i>0?0:D.length-1,T=e>0?0:D.length-1,g=0;g<D.length;g++){var s=D[j].compareTo(t[T]);if(0!==s)return s;j+=i,T+=e}return 0},ls.prototype.interfaces_=function(){return[ag]},ls.prototype.getClass=function(){return ls};var ks=function(){};ks.prototype.get=function(){},ks.prototype.put=function(){},ks.prototype.size=function(){},ks.prototype.values=function(){},ks.prototype.entrySet=function(){};var Qs=function(M){function N(){M.apply(this,arguments)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N}(ks);(di.prototype=new Error).name="OperationNotSupported",(Yi.prototype=new ws).contains=function(){};var ds=function(M){function N(){M.call(this),this.array_=[],arguments[0]instanceof ws&&this.addAll(arguments[0])}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.contains=function(M){for(var N=0,D=this.array_.length;N<D;N++)if(this.array_[N]===M)return!0;return!1},N.prototype.add=function(M){return!this.contains(M)&&(this.array_.push(M),!0)},N.prototype.addAll=function(M){for(var N=M.iterator();N.hasNext();)this.add(N.next());return!0},N.prototype.remove=function(M){throw new Error},N.prototype.size=function(){return this.array_.length},N.prototype.isEmpty=function(){return 0===this.array_.length},N.prototype.toArray=function(){for(var M=[],N=0,D=this.array_.length;N<D;N++)M.push(this.array_[N]);return M},N.prototype.iterator=function(){return new Ys(this)},N}(Yi),Ys=function(M){function N(N){M.call(this),this.hashSet_=N,this.position_=0}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new Qi;return this.hashSet_.array_[this.position_++]},N.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},N.prototype.remove=function(){throw new di},N}(ys),ps=0;(vi.prototype=new Qs).get=function(M){for(var N=this.root_;null!==N;){var D=M.compareTo(N.key);if(D<0)N=N.left;else{if(!(D>0))return N.value;N=N.right}}return null},vi.prototype.put=function(M,N){if(null===this.root_)return this.root_={key:M,value:N,left:null,right:null,parent:null,color:ps,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var D,t,i=this.root_;do{if(D=i,(t=M.compareTo(i.key))<0)i=i.left;else{if(!(t>0)){var e=i.value;return i.value=N,e}i=i.right}}while(null!==i);var j={key:M,left:null,right:null,value:N,parent:D,color:ps,getValue:function(){return this.value},getKey:function(){return this.key}};return t<0?D.left=j:D.right=j,this.fixAfterInsertion(j),this.size_++,null},vi.prototype.fixAfterInsertion=function(M){for(M.color=1;null!=M&&M!==this.root_&&1===M.parent.color;)if(Ui(M)===fi(Ui(Ui(M)))){var N=mi(Ui(Ui(M)));1===pi(N)?(hi(Ui(M),ps),hi(N,ps),hi(Ui(Ui(M)),1),M=Ui(Ui(M))):(M===mi(Ui(M))&&(M=Ui(M),this.rotateLeft(M)),hi(Ui(M),ps),hi(Ui(Ui(M)),1),this.rotateRight(Ui(Ui(M))))}else{var D=fi(Ui(Ui(M)));1===pi(D)?(hi(Ui(M),ps),hi(D,ps),hi(Ui(Ui(M)),1),M=Ui(Ui(M))):(M===fi(Ui(M))&&(M=Ui(M),this.rotateRight(M)),hi(Ui(M),ps),hi(Ui(Ui(M)),1),this.rotateLeft(Ui(Ui(M))))}this.root_.color=ps},vi.prototype.values=function(){var M=new os,N=this.getFirstEntry();if(null!==N)for(M.add(N.value);null!==(N=vi.successor(N));)M.add(N.value);return M},vi.prototype.entrySet=function(){var M=new ds,N=this.getFirstEntry();if(null!==N)for(M.add(N);null!==(N=vi.successor(N));)M.add(N);return M},vi.prototype.rotateLeft=function(M){if(null!=M){var N=M.right;M.right=N.left,null!=N.left&&(N.left.parent=M),N.parent=M.parent,null===M.parent?this.root_=N:M.parent.left===M?M.parent.left=N:M.parent.right=N,N.left=M,M.parent=N}},vi.prototype.rotateRight=function(M){if(null!=M){var N=M.left;M.left=N.right,null!=N.right&&(N.right.parent=M),N.parent=M.parent,null===M.parent?this.root_=N:M.parent.right===M?M.parent.right=N:M.parent.left=N,N.right=M,M.parent=N}},vi.prototype.getFirstEntry=function(){var M=this.root_;if(null!=M)for(;null!=M.left;)M=M.left;return M},vi.successor=function(M){if(null===M)return null;if(null!==M.right){for(var N=M.right;null!==N.left;)N=N.left;return N}for(var D=M.parent,t=M;null!==D&&t===D.right;)t=D,D=D.parent;return D},vi.prototype.size=function(){return this.size_};var Us=function(){};Us.prototype.interfaces_=function(){return[]},Us.prototype.getClass=function(){return Us},Bi.prototype=new Yi,(bi.prototype=new Bi).contains=function(M){for(var N=0,D=this.array_.length;N<D;N++)if(0===this.array_[N].compareTo(M))return!0;return!1},bi.prototype.add=function(M){if(this.contains(M))return!1;for(var N=0,D=this.array_.length;N<D;N++)if(1===this.array_[N].compareTo(M))return this.array_.splice(N,0,M),!0;return this.array_.push(M),!0},bi.prototype.addAll=function(M){for(var N=M.iterator();N.hasNext();)this.add(N.next());return!0},bi.prototype.remove=function(M){throw new di},bi.prototype.size=function(){return this.array_.length},bi.prototype.isEmpty=function(){return 0===this.array_.length},bi.prototype.toArray=function(){for(var M=[],N=0,D=this.array_.length;N<D;N++)M.push(this.array_[N]);return M},bi.prototype.iterator=function(){return new hs(this)};var hs=function(M){this.treeSet_=M,this.position_=0};hs.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new Qi;return this.treeSet_.array_[this.position_++]},hs.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},hs.prototype.remove=function(){throw new di};var fs=function(){};fs.sort=function(){var M,N,D,t,i=arguments[0];if(1===arguments.length)t=function(M,N){return M.compareTo(N)},i.sort(t);else if(2===arguments.length)D=arguments[1],t=function(M,N){return D.compare(M,N)},i.sort(t);else if(3===arguments.length){(N=i.slice(arguments[1],arguments[2])).sort();var e=i.slice(0,arguments[1]).concat(N,i.slice(arguments[2],i.length));for(i.splice(0,i.length),M=0;M<e.length;M++)i.push(e[M])}else if(4===arguments.length)for(N=i.slice(arguments[1],arguments[2]),D=arguments[3],t=function(M,N){return D.compare(M,N)},N.sort(t),e=i.slice(0,arguments[1]).concat(N,i.slice(arguments[2],i.length)),i.splice(0,i.length),M=0;M<e.length;M++)i.push(e[M])},fs.asList=function(M){for(var N=new os,D=0,t=M.length;D<t;D++)N.add(M[D]);return N};var ms=function(){},vs={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};vs.P.get=function(){return 0},vs.L.get=function(){return 1},vs.A.get=function(){return 2},vs.FALSE.get=function(){return-1},vs.TRUE.get=function(){return-2},vs.DONTCARE.get=function(){return-3},vs.SYM_FALSE.get=function(){return"F"},vs.SYM_TRUE.get=function(){return"T"},vs.SYM_DONTCARE.get=function(){return"*"},vs.SYM_P.get=function(){return"0"},vs.SYM_L.get=function(){return"1"},vs.SYM_A.get=function(){return"2"},ms.prototype.interfaces_=function(){return[]},ms.prototype.getClass=function(){return ms},ms.toDimensionSymbol=function(M){switch(M){case ms.FALSE:return ms.SYM_FALSE;case ms.TRUE:return ms.SYM_TRUE;case ms.DONTCARE:return ms.SYM_DONTCARE;case ms.P:return ms.SYM_P;case ms.L:return ms.SYM_L;case ms.A:return ms.SYM_A}throw new ng("Unknown dimension value: "+M)},ms.toDimensionValue=function(M){switch(pg.toUpperCase(M)){case ms.SYM_FALSE:return ms.FALSE;case ms.SYM_TRUE:return ms.TRUE;case ms.SYM_DONTCARE:return ms.DONTCARE;case ms.SYM_P:return ms.P;case ms.SYM_L:return ms.L;case ms.SYM_A:return ms.A}throw new ng("Unknown dimension symbol: "+M)},Object.defineProperties(ms,vs);var Bs=function(){};Bs.prototype.filter=function(M){},Bs.prototype.interfaces_=function(){return[]},Bs.prototype.getClass=function(){return Bs};var bs=function(){};bs.prototype.filter=function(M,N){},bs.prototype.isDone=function(){},bs.prototype.isGeometryChanged=function(){},bs.prototype.interfaces_=function(){return[]},bs.prototype.getClass=function(){return bs};var Ps=function(M){function N(N,D){if(M.call(this,D),this._geometries=N||[],M.hasNullElements(this._geometries))throw new ng("geometries must not contain null elements")}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.computeEnvelopeInternal=function(){for(var M=new Wg,N=0;N<this._geometries.length;N++)M.expandToInclude(this._geometries[N].getEnvelopeInternal());return M},N.prototype.getGeometryN=function(M){return this._geometries[M]},N.prototype.getSortIndex=function(){return M.SORTINDEX_GEOMETRYCOLLECTION},N.prototype.getCoordinates=function(){for(var M=new Array(this.getNumPoints()).fill(null),N=-1,D=0;D<this._geometries.length;D++)for(var t=this._geometries[D].getCoordinates(),i=0;i<t.length;i++)M[++N]=t[i];return M},N.prototype.getArea=function(){for(var M=0,N=0;N<this._geometries.length;N++)M+=this._geometries[N].getArea();return M},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];if(!this.isEquivalentClass(N))return!1;var t=N;if(this._geometries.length!==t._geometries.length)return!1;for(var i=0;i<this._geometries.length;i++)if(!this._geometries[i].equalsExact(t._geometries[i],D))return!1;return!0}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.normalize=function(){for(var M=0;M<this._geometries.length;M++)this._geometries[M].normalize();fs.sort(this._geometries)},N.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},N.prototype.getBoundaryDimension=function(){for(var M=ms.FALSE,N=0;N<this._geometries.length;N++)M=Math.max(M,this._geometries[N].getBoundaryDimension());return M},N.prototype.getDimension=function(){for(var M=ms.FALSE,N=0;N<this._geometries.length;N++)M=Math.max(M,this._geometries[N].getDimension());return M},N.prototype.getLength=function(){for(var M=0,N=0;N<this._geometries.length;N++)M+=this._geometries[N].getLength();return M},N.prototype.getNumPoints=function(){for(var M=0,N=0;N<this._geometries.length;N++)M+=this._geometries[N].getNumPoints();return M},N.prototype.getNumGeometries=function(){return this._geometries.length},N.prototype.reverse=function(){for(var M=this._geometries.length,N=new Array(M).fill(null),D=0;D<this._geometries.length;D++)N[D]=this._geometries[D].reverse();return this.getFactory().createGeometryCollection(N)},N.prototype.compareToSameClass=function(){if(1===arguments.length){var M=arguments[0],N=new bi(fs.asList(this._geometries)),D=new bi(fs.asList(M._geometries));return this.compare(N,D)}if(2===arguments.length){for(var t=arguments[0],i=arguments[1],e=t,j=this.getNumGeometries(),T=e.getNumGeometries(),g=0;g<j&&g<T;){var s=this.getGeometryN(g),u=e.getGeometryN(g),z=s.compareToSameClass(u,i);if(0!==z)return z;g++}return g<j?1:g<T?-1:0}},N.prototype.apply=function(){if(lg(arguments[0],us))for(var M=arguments[0],N=0;N<this._geometries.length;N++)this._geometries[N].apply(M);else if(lg(arguments[0],bs)){var D=arguments[0];if(0===this._geometries.length)return null;for(var t=0;t<this._geometries.length&&(this._geometries[t].apply(D),!D.isDone());t++);D.isGeometryChanged()&&this.geometryChanged()}else if(lg(arguments[0],Bs)){var i=arguments[0];i.filter(this);for(var e=0;e<this._geometries.length;e++)this._geometries[e].apply(i)}else if(lg(arguments[0],js)){var j=arguments[0];j.filter(this);for(var T=0;T<this._geometries.length;T++)this._geometries[T].apply(j)}},N.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),Kg.shouldNeverReachHere(),null},N.prototype.clone=function(){var N=M.prototype.clone.call(this);N._geometries=new Array(this._geometries.length).fill(null);for(var D=0;D<this._geometries.length;D++)N._geometries[D]=this._geometries[D].clone();return N},N.prototype.getGeometryType=function(){return"GeometryCollection"},N.prototype.copy=function(){for(var M=new Array(this._geometries.length).fill(null),D=0;D<M.length;D++)M[D]=this._geometries[D].copy();return new N(M,this._factory)},N.prototype.isEmpty=function(){for(var M=0;M<this._geometries.length;M++)if(!this._geometries[M].isEmpty())return!1;return!0},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return-0x4f07bcb1f857d800},Object.defineProperties(N,D),N}(Ts),Zs=function(M){function N(){M.apply(this,arguments)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.getSortIndex=function(){return Ts.SORTINDEX_MULTILINESTRING},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];return!!this.isEquivalentClass(N)&&M.prototype.equalsExact.call(this,N,D)}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.getBoundaryDimension=function(){return this.isClosed()?ms.FALSE:0},N.prototype.isClosed=function(){if(this.isEmpty())return!1;for(var M=0;M<this._geometries.length;M++)if(!this._geometries[M].isClosed())return!1;return!0},N.prototype.getDimension=function(){return 1},N.prototype.reverse=function(){for(var M=this._geometries.length,N=new Array(M).fill(null),D=0;D<this._geometries.length;D++)N[M-1-D]=this._geometries[D].reverse();return this.getFactory().createMultiLineString(N)},N.prototype.getBoundary=function(){return new Gs(this).getBoundary()},N.prototype.getGeometryType=function(){return"MultiLineString"},N.prototype.copy=function(){for(var M=new Array(this._geometries.length).fill(null),D=0;D<M.length;D++)M[D]=this._geometries[D].copy();return new N(M,this._factory)},N.prototype.interfaces_=function(){return[Us]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return 0x7155d2ab4afa8000},Object.defineProperties(N,D),N}(Ps),Gs=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var M=arguments[0],N=zs.MOD2_BOUNDARY_RULE;this._geom=M,this._geomFact=M.getFactory(),this._bnRule=N}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this._geom=D,this._geomFact=D.getFactory(),this._bnRule=t}};Gs.prototype.boundaryMultiLineString=function(M){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var N=this.computeBoundaryCoordinates(M);return 1===N.length?this._geomFact.createPoint(N[0]):this._geomFact.createMultiPointFromCoords(N)},Gs.prototype.getBoundary=function(){return this._geom instanceof Hs?this.boundaryLineString(this._geom):this._geom instanceof Zs?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()},Gs.prototype.boundaryLineString=function(M){return this._geom.isEmpty()?this.getEmptyMultiPoint():M.isClosed()?this._bnRule.isInBoundary(2)?M.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([M.getStartPoint(),M.getEndPoint()])},Gs.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()},Gs.prototype.computeBoundaryCoordinates=function(M){var N=new os;this._endpointMap=new vi;for(var D=0;D<M.getNumGeometries();D++){var t=M.getGeometryN(D);0!==t.getNumPoints()&&(this.addEndpoint(t.getCoordinateN(0)),this.addEndpoint(t.getCoordinateN(t.getNumPoints()-1)))}for(var i=this._endpointMap.entrySet().iterator();i.hasNext();){var e=i.next(),j=e.getValue().count;this._bnRule.isInBoundary(j)&&N.add(e.getKey())}return xs.toCoordinateArray(N)},Gs.prototype.addEndpoint=function(M){var N=this._endpointMap.get(M);null===N&&(N=new Ws,this._endpointMap.put(M,N)),N.count++},Gs.prototype.interfaces_=function(){return[]},Gs.prototype.getClass=function(){return Gs},Gs.getBoundary=function(){if(1===arguments.length){var M=arguments[0];return new Gs(M).getBoundary()}if(2===arguments.length){var N=arguments[0],D=arguments[1];return new Gs(N,D).getBoundary()}};var Ws=function(){this.count=null};Ws.prototype.interfaces_=function(){return[]},Ws.prototype.getClass=function(){return Ws};var Rs=function(){},Xs={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};Rs.prototype.interfaces_=function(){return[]},Rs.prototype.getClass=function(){return Rs},Rs.chars=function(M,N){for(var D=new Array(N).fill(null),t=0;t<N;t++)D[t]=M;return String(D)},Rs.getStackTrace=function(){if(1===arguments.length){var M=arguments[0],N=new function(){},D=new function(){}(N);return M.printStackTrace(D),N.toString()}if(2===arguments.length){for(var t=arguments[0],i=arguments[1],e="",j=new function(){}(new function(){}(Rs.getStackTrace(t))),T=0;T<i;T++)try{e+=j.readLine()+Rs.NEWLINE}catch(M){if(!(M instanceof Pi))throw M;Kg.shouldNeverReachHere()}return e}},Rs.split=function(M,N){for(var D=N.length,t=new os,i=""+M,e=i.indexOf(N);e>=0;){var j=i.substring(0,e);t.add(j),e=(i=i.substring(e+D)).indexOf(N)}i.length>0&&t.add(i);for(var T=new Array(t.size()).fill(null),g=0;g<T.length;g++)T[g]=t.get(g);return T},Rs.toString=function(){if(1===arguments.length){var M=arguments[0];return Rs.SIMPLE_ORDINATE_FORMAT.format(M)}},Rs.spaces=function(M){return Rs.chars(" ",M)},Xs.NEWLINE.get=function(){return Zg.getProperty("line.separator")},Xs.SIMPLE_ORDINATE_FORMAT.get=function(){return new function(){}("0.#")},Object.defineProperties(Rs,Xs);var _s=function(){};_s.prototype.interfaces_=function(){return[]},_s.prototype.getClass=function(){return _s},_s.copyCoord=function(M,N,D,t){for(var i=Math.min(M.getDimension(),D.getDimension()),e=0;e<i;e++)D.setOrdinate(t,e,M.getOrdinate(N,e))},_s.isRing=function(M){var N=M.size();return 0===N||!(N<=3)&&M.getOrdinate(0,vg.X)===M.getOrdinate(N-1,vg.X)&&M.getOrdinate(0,vg.Y)===M.getOrdinate(N-1,vg.Y)},_s.isEqual=function(M,N){var D=M.size();if(D!==N.size())return!1;for(var t=Math.min(M.getDimension(),N.getDimension()),i=0;i<D;i++)for(var e=0;e<t;e++){var j=M.getOrdinate(i,e),T=N.getOrdinate(i,e);if(M.getOrdinate(i,e)!==N.getOrdinate(i,e)&&(!rg.isNaN(j)||!rg.isNaN(T)))return!1}return!0},_s.extend=function(M,N,D){var t=M.create(D,N.getDimension()),i=N.size();if(_s.copy(N,0,t,0,i),i>0)for(var e=i;e<D;e++)_s.copy(N,i-1,t,e,1);return t},_s.reverse=function(M){for(var N=M.size()-1,D=Math.trunc(N/2),t=0;t<=D;t++)_s.swap(M,t,N-t)},_s.swap=function(M,N,D){if(N===D)return null;for(var t=0;t<M.getDimension();t++){var i=M.getOrdinate(N,t);M.setOrdinate(N,t,M.getOrdinate(D,t)),M.setOrdinate(D,t,i)}},_s.copy=function(M,N,D,t,i){for(var e=0;e<i;e++)_s.copyCoord(M,N+e,D,t+e)},_s.toString=function(){if(1===arguments.length){var M=arguments[0],N=M.size();if(0===N)return"()";var D=M.getDimension(),t=new dg;t.append("(");for(var i=0;i<N;i++){i>0&&t.append(" ");for(var e=0;e<D;e++)e>0&&t.append(","),t.append(Rs.toString(M.getOrdinate(i,e)))}return t.append(")"),t.toString()}},_s.ensureValidRing=function(M,N){var D=N.size();return 0===D?N:D<=3?_s.createClosedRing(M,N,4):N.getOrdinate(0,vg.X)===N.getOrdinate(D-1,vg.X)&&N.getOrdinate(0,vg.Y)===N.getOrdinate(D-1,vg.Y)?N:_s.createClosedRing(M,N,D+1)},_s.createClosedRing=function(M,N,D){var t=M.create(D,N.getDimension()),i=N.size();_s.copy(N,0,t,0,i);for(var e=i;e<D;e++)_s.copy(N,0,t,e,1);return t};var Hs=function(M){function N(N,D){M.call(this,D),this._points=null,this.init(N)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new Wg:this._points.expandEnvelope(new Wg)},N.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},N.prototype.getSortIndex=function(){return M.SORTINDEX_LINESTRING},N.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];if(!this.isEquivalentClass(N))return!1;var t=N;if(this._points.size()!==t._points.size())return!1;for(var i=0;i<this._points.size();i++)if(!this.equal(this._points.getCoordinate(i),t._points.getCoordinate(i),D))return!1;return!0}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.normalize=function(){for(var M=0;M<Math.trunc(this._points.size()/2);M++){var N=this._points.size()-1-M;if(!this._points.getCoordinate(M).equals(this._points.getCoordinate(N)))return this._points.getCoordinate(M).compareTo(this._points.getCoordinate(N))>0&&_s.reverse(this._points),null}},N.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},N.prototype.getBoundaryDimension=function(){return this.isClosed()?ms.FALSE:0},N.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},N.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},N.prototype.getDimension=function(){return 1},N.prototype.getLength=function(){return is.computeLength(this._points)},N.prototype.getNumPoints=function(){return this._points.size()},N.prototype.reverse=function(){var M=this._points.copy();return _s.reverse(M),this.getFactory().createLineString(M)},N.prototype.compareToSameClass=function(){if(1===arguments.length){for(var M=arguments[0],N=0,D=0;N<this._points.size()&&D<M._points.size();){var t=this._points.getCoordinate(N).compareTo(M._points.getCoordinate(D));if(0!==t)return t;N++,D++}return N<this._points.size()?1:D<M._points.size()?-1:0}if(2===arguments.length){var i=arguments[0];return arguments[1].compare(this._points,i._points)}},N.prototype.apply=function(){if(lg(arguments[0],us))for(var M=arguments[0],N=0;N<this._points.size();N++)M.filter(this._points.getCoordinate(N));else if(lg(arguments[0],bs)){var D=arguments[0];if(0===this._points.size())return null;for(var t=0;t<this._points.size()&&(D.filter(this._points,t),!D.isDone());t++);D.isGeometryChanged()&&this.geometryChanged()}else(lg(arguments[0],Bs)||lg(arguments[0],js))&&arguments[0].filter(this)},N.prototype.getBoundary=function(){return new Gs(this).getBoundary()},N.prototype.isEquivalentClass=function(M){return M instanceof N},N.prototype.clone=function(){var N=M.prototype.clone.call(this);return N._points=this._points.clone(),N},N.prototype.getCoordinateN=function(M){return this._points.getCoordinate(M)},N.prototype.getGeometryType=function(){return"LineString"},N.prototype.copy=function(){return new N(this._points.copy(),this._factory)},N.prototype.getCoordinateSequence=function(){return this._points},N.prototype.isEmpty=function(){return 0===this._points.size()},N.prototype.init=function(M){if(null===M&&(M=this.getFactory().getCoordinateSequenceFactory().create([])),1===M.size())throw new ng("Invalid number of points in LineString (found "+M.size()+" - must be 0 or >= 2)");this._points=M},N.prototype.isCoordinate=function(M){for(var N=0;N<this._points.size();N++)if(this._points.getCoordinate(N).equals(M))return!0;return!1},N.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},N.prototype.getPointN=function(M){return this.getFactory().createPoint(this._points.getCoordinate(M))},N.prototype.interfaces_=function(){return[Us]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(N,D),N}(Ts),Fs=function(){};Fs.prototype.interfaces_=function(){return[]},Fs.prototype.getClass=function(){return Fs};var Vs=function(M){function N(N,D){M.call(this,D),this._coordinates=N||null,this.init(this._coordinates)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new Wg;var M=new Wg;return M.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),M},N.prototype.getSortIndex=function(){return M.SORTINDEX_POINT},N.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];return!!this.isEquivalentClass(N)&&(!(!this.isEmpty()||!N.isEmpty())||this.isEmpty()===N.isEmpty()&&this.equal(N.getCoordinate(),this.getCoordinate(),D))}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.normalize=function(){},N.prototype.getCoordinate=function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},N.prototype.getBoundaryDimension=function(){return ms.FALSE},N.prototype.getDimension=function(){return 0},N.prototype.getNumPoints=function(){return this.isEmpty()?0:1},N.prototype.reverse=function(){return this.copy()},N.prototype.getX=function(){if(null===this.getCoordinate())throw new Error("getX called on empty Point");return this.getCoordinate().x},N.prototype.compareToSameClass=function(){if(1===arguments.length){var M=arguments[0];return this.getCoordinate().compareTo(M.getCoordinate())}if(2===arguments.length){var N=arguments[0];return arguments[1].compare(this._coordinates,N._coordinates)}},N.prototype.apply=function(){if(lg(arguments[0],us)){var M=arguments[0];if(this.isEmpty())return null;M.filter(this.getCoordinate())}else if(lg(arguments[0],bs)){var N=arguments[0];if(this.isEmpty())return null;N.filter(this._coordinates,0),N.isGeometryChanged()&&this.geometryChanged()}else(lg(arguments[0],Bs)||lg(arguments[0],js))&&arguments[0].filter(this)},N.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},N.prototype.clone=function(){var N=M.prototype.clone.call(this);return N._coordinates=this._coordinates.clone(),N},N.prototype.getGeometryType=function(){return"Point"},N.prototype.copy=function(){return new N(this._coordinates.copy(),this._factory)},N.prototype.getCoordinateSequence=function(){return this._coordinates},N.prototype.getY=function(){if(null===this.getCoordinate())throw new Error("getY called on empty Point");return this.getCoordinate().y},N.prototype.isEmpty=function(){return 0===this._coordinates.size()},N.prototype.init=function(M){null===M&&(M=this.getFactory().getCoordinateSequenceFactory().create([])),Kg.isTrue(M.size()<=1),this._coordinates=M},N.prototype.isSimple=function(){return!0},N.prototype.interfaces_=function(){return[Fs]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return 0x44077bad161cbc00},Object.defineProperties(N,D),N}(Ts),Js=function(){};Js.prototype.interfaces_=function(){return[]},Js.prototype.getClass=function(){return Js};var qs=function(M){function N(N,D,t){if(M.call(this,t),this._shell=null,this._holes=null,null===N&&(N=this.getFactory().createLinearRing()),null===D&&(D=[]),M.hasNullElements(D))throw new ng("holes must not contain null elements");if(N.isEmpty()&&M.hasNonEmptyElements(D))throw new ng("shell is empty but holes are not");this._shell=N,this._holes=D}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},N.prototype.getSortIndex=function(){return M.SORTINDEX_POLYGON},N.prototype.getCoordinates=function(){if(this.isEmpty())return[];for(var M=new Array(this.getNumPoints()).fill(null),N=-1,D=this._shell.getCoordinates(),t=0;t<D.length;t++)M[++N]=D[t];for(var i=0;i<this._holes.length;i++)for(var e=this._holes[i].getCoordinates(),j=0;j<e.length;j++)M[++N]=e[j];return M},N.prototype.getArea=function(){var M=0;M+=Math.abs(is.signedArea(this._shell.getCoordinateSequence()));for(var N=0;N<this._holes.length;N++)M-=Math.abs(is.signedArea(this._holes[N].getCoordinateSequence()));return M},N.prototype.isRectangle=function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var M=this._shell.getCoordinateSequence(),N=this.getEnvelopeInternal(),D=0;D<5;D++){var t=M.getX(D);if(t!==N.getMinX()&&t!==N.getMaxX())return!1;var i=M.getY(D);if(i!==N.getMinY()&&i!==N.getMaxY())return!1}for(var e=M.getX(0),j=M.getY(0),T=1;T<=4;T++){var g=M.getX(T),s=M.getY(T);if(g!==e===(s!==j))return!1;e=g,j=s}return!0},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];if(!this.isEquivalentClass(N))return!1;var t=N,i=this._shell,e=t._shell;if(!i.equalsExact(e,D))return!1;if(this._holes.length!==t._holes.length)return!1;for(var j=0;j<this._holes.length;j++)if(!this._holes[j].equalsExact(t._holes[j],D))return!1;return!0}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.normalize=function(){if(0===arguments.length){this.normalize(this._shell,!0);for(var M=0;M<this._holes.length;M++)this.normalize(this._holes[M],!1);fs.sort(this._holes)}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(N.isEmpty())return null;var t=new Array(N.getCoordinates().length-1).fill(null);Zg.arraycopy(N.getCoordinates(),0,t,0,t.length);var i=xs.minCoordinate(N.getCoordinates());xs.scroll(t,i),Zg.arraycopy(t,0,N.getCoordinates(),0,t.length),N.getCoordinates()[t.length]=t[0],is.isCCW(N.getCoordinates())===D&&xs.reverse(N.getCoordinates())}},N.prototype.getCoordinate=function(){return this._shell.getCoordinate()},N.prototype.getNumInteriorRing=function(){return this._holes.length},N.prototype.getBoundaryDimension=function(){return 1},N.prototype.getDimension=function(){return 2},N.prototype.getLength=function(){var M=0;M+=this._shell.getLength();for(var N=0;N<this._holes.length;N++)M+=this._holes[N].getLength();return M},N.prototype.getNumPoints=function(){for(var M=this._shell.getNumPoints(),N=0;N<this._holes.length;N++)M+=this._holes[N].getNumPoints();return M},N.prototype.reverse=function(){var M=this.copy();M._shell=this._shell.copy().reverse(),M._holes=new Array(this._holes.length).fill(null);for(var N=0;N<this._holes.length;N++)M._holes[N]=this._holes[N].copy().reverse();return M},N.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},N.prototype.compareToSameClass=function(){if(1===arguments.length){var M=arguments[0],N=this._shell,D=M._shell;return N.compareToSameClass(D)}if(2===arguments.length){var t=arguments[0],i=arguments[1],e=t,j=this._shell,T=e._shell,g=j.compareToSameClass(T,i);if(0!==g)return g;for(var s=this.getNumInteriorRing(),u=e.getNumInteriorRing(),z=0;z<s&&z<u;){var A=this.getInteriorRingN(z),L=e.getInteriorRingN(z),I=A.compareToSameClass(L,i);if(0!==I)return I;z++}return z<s?1:z<u?-1:0}},N.prototype.apply=function(M){if(lg(M,us)){this._shell.apply(M);for(var N=0;N<this._holes.length;N++)this._holes[N].apply(M)}else if(lg(M,bs)){if(this._shell.apply(M),!M.isDone())for(var D=0;D<this._holes.length&&(this._holes[D].apply(M),!M.isDone());D++);M.isGeometryChanged()&&this.geometryChanged()}else if(lg(M,Bs))M.filter(this);else if(lg(M,js)){M.filter(this),this._shell.apply(M);for(var t=0;t<this._holes.length;t++)this._holes[t].apply(M)}},N.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var M=new Array(this._holes.length+1).fill(null);M[0]=this._shell;for(var N=0;N<this._holes.length;N++)M[N+1]=this._holes[N];return M.length<=1?this.getFactory().createLinearRing(M[0].getCoordinateSequence()):this.getFactory().createMultiLineString(M)},N.prototype.clone=function(){var N=M.prototype.clone.call(this);N._shell=this._shell.clone(),N._holes=new Array(this._holes.length).fill(null);for(var D=0;D<this._holes.length;D++)N._holes[D]=this._holes[D].clone();return N},N.prototype.getGeometryType=function(){return"Polygon"},N.prototype.copy=function(){for(var M=this._shell.copy(),D=new Array(this._holes.length).fill(null),t=0;t<D.length;t++)D[t]=this._holes[t].copy();return new N(M,D,this._factory)},N.prototype.getExteriorRing=function(){return this._shell},N.prototype.isEmpty=function(){return this._shell.isEmpty()},N.prototype.getInteriorRingN=function(M){return this._holes[M]},N.prototype.interfaces_=function(){return[Js]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(N,D),N}(Ts),Ks=function(M){function N(){M.apply(this,arguments)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.getSortIndex=function(){return Ts.SORTINDEX_MULTIPOINT},N.prototype.isValid=function(){return!0},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];return!!this.isEquivalentClass(N)&&M.prototype.equalsExact.call(this,N,D)}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.getCoordinate=function(){if(1===arguments.length){var N=arguments[0];return this._geometries[N].getCoordinate()}return M.prototype.getCoordinate.apply(this,arguments)},N.prototype.getBoundaryDimension=function(){return ms.FALSE},N.prototype.getDimension=function(){return 0},N.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},N.prototype.getGeometryType=function(){return"MultiPoint"},N.prototype.copy=function(){for(var M=new Array(this._geometries.length).fill(null),D=0;D<M.length;D++)M[D]=this._geometries[D].copy();return new N(M,this._factory)},N.prototype.interfaces_=function(){return[Fs]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return-0x6fb1ed4162e0fc00},Object.defineProperties(N,D),N}(Ps),$s=function(M){function N(N,D){N instanceof og&&D instanceof nu&&(N=D.getCoordinateSequenceFactory().create(N)),M.call(this,N,D),this.validateConstruction()}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return N.prototype.getSortIndex=function(){return Ts.SORTINDEX_LINEARRING},N.prototype.getBoundaryDimension=function(){return ms.FALSE},N.prototype.isClosed=function(){return!!this.isEmpty()||M.prototype.isClosed.call(this)},N.prototype.reverse=function(){var M=this._points.copy();return _s.reverse(M),this.getFactory().createLinearRing(M)},N.prototype.validateConstruction=function(){if(!this.isEmpty()&&!M.prototype.isClosed.call(this))throw new ng("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<N.MINIMUM_VALID_SIZE)throw new ng("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},N.prototype.getGeometryType=function(){return"LinearRing"},N.prototype.copy=function(){return new N(this._points.copy(),this._factory)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},D.MINIMUM_VALID_SIZE.get=function(){return 4},D.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(N,D),N}(Hs),Mu=function(M){function N(){M.apply(this,arguments)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={serialVersionUID:{configurable:!0}};return N.prototype.getSortIndex=function(){return Ts.SORTINDEX_MULTIPOLYGON},N.prototype.equalsExact=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];return!!this.isEquivalentClass(N)&&M.prototype.equalsExact.call(this,N,D)}return M.prototype.equalsExact.apply(this,arguments)},N.prototype.getBoundaryDimension=function(){return 1},N.prototype.getDimension=function(){return 2},N.prototype.reverse=function(){for(var M=this._geometries.length,N=new Array(M).fill(null),D=0;D<this._geometries.length;D++)N[D]=this._geometries[D].reverse();return this.getFactory().createMultiPolygon(N)},N.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var M=new os,N=0;N<this._geometries.length;N++)for(var D=this._geometries[N].getBoundary(),t=0;t<D.getNumGeometries();t++)M.add(D.getGeometryN(t));var i=new Array(M.size()).fill(null);return this.getFactory().createMultiLineString(M.toArray(i))},N.prototype.getGeometryType=function(){return"MultiPolygon"},N.prototype.copy=function(){for(var M=new Array(this._geometries.length).fill(null),D=0;D<M.length;D++)M[D]=this._geometries[D].copy();return new N(M,this._factory)},N.prototype.interfaces_=function(){return[Js]},N.prototype.getClass=function(){return N},D.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(N,D),N}(Ps),Nu=function(M){this._factory=M||null,this._isUserDataCopied=!1},Du={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};Nu.prototype.setCopyUserData=function(M){this._isUserDataCopied=M},Nu.prototype.edit=function(M,N){if(null===M)return null;var D=this.editInternal(M,N);return this._isUserDataCopied&&D.setUserData(M.getUserData()),D},Nu.prototype.editInternal=function(M,N){return null===this._factory&&(this._factory=M.getFactory()),M instanceof Ps?this.editGeometryCollection(M,N):M instanceof qs?this.editPolygon(M,N):M instanceof Vs||M instanceof Hs?N.edit(M,this._factory):(Kg.shouldNeverReachHere("Unsupported Geometry class: "+M.getClass().getName()),null)},Nu.prototype.editGeometryCollection=function(M,N){for(var D=N.edit(M,this._factory),t=new os,i=0;i<D.getNumGeometries();i++){var e=this.edit(D.getGeometryN(i),N);null===e||e.isEmpty()||t.add(e)}return D.getClass()===Ks?this._factory.createMultiPoint(t.toArray([])):D.getClass()===Zs?this._factory.createMultiLineString(t.toArray([])):D.getClass()===Mu?this._factory.createMultiPolygon(t.toArray([])):this._factory.createGeometryCollection(t.toArray([]))},Nu.prototype.editPolygon=function(M,N){var D=N.edit(M,this._factory);if(null===D&&(D=this._factory.createPolygon(null)),D.isEmpty())return D;var t=this.edit(D.getExteriorRing(),N);if(null===t||t.isEmpty())return this._factory.createPolygon();for(var i=new os,e=0;e<D.getNumInteriorRing();e++){var j=this.edit(D.getInteriorRingN(e),N);null===j||j.isEmpty()||i.add(j)}return this._factory.createPolygon(t,i.toArray([]))},Nu.prototype.interfaces_=function(){return[]},Nu.prototype.getClass=function(){return Nu},Nu.GeometryEditorOperation=function(){},Du.NoOpGeometryOperation.get=function(){return tu},Du.CoordinateOperation.get=function(){return iu},Du.CoordinateSequenceOperation.get=function(){return eu},Object.defineProperties(Nu,Du);var tu=function(){};tu.prototype.edit=function(M,N){return M},tu.prototype.interfaces_=function(){return[Nu.GeometryEditorOperation]},tu.prototype.getClass=function(){return tu};var iu=function(){};iu.prototype.edit=function(M,N){var D=this.editCoordinates(M.getCoordinates(),M);return null===D?M:M instanceof $s?N.createLinearRing(D):M instanceof Hs?N.createLineString(D):M instanceof Vs?D.length>0?N.createPoint(D[0]):N.createPoint():M},iu.prototype.interfaces_=function(){return[Nu.GeometryEditorOperation]},iu.prototype.getClass=function(){return iu};var eu=function(){};eu.prototype.edit=function(M,N){return M instanceof $s?N.createLinearRing(this.edit(M.getCoordinateSequence(),M)):M instanceof Hs?N.createLineString(this.edit(M.getCoordinateSequence(),M)):M instanceof Vs?N.createPoint(this.edit(M.getCoordinateSequence(),M)):M},eu.prototype.interfaces_=function(){return[Nu.GeometryEditorOperation]},eu.prototype.getClass=function(){return eu};var ju=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var M=arguments[0];this._coordinates=new Array(M).fill(null);for(var N=0;N<M;N++)this._coordinates[N]=new og}else if(lg(arguments[0],vg)){var D=arguments[0];if(null===D)return this._coordinates=new Array(0).fill(null),null;this._dimension=D.getDimension(),this._coordinates=new Array(D.size()).fill(null);for(var t=0;t<this._coordinates.length;t++)this._coordinates[t]=D.getCoordinateCopy(t)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var i=arguments[0],e=arguments[1];this._coordinates=i,this._dimension=e,null===i&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var j=arguments[0],T=arguments[1];this._coordinates=new Array(j).fill(null),this._dimension=T;for(var g=0;g<j;g++)this._coordinates[g]=new og}},Tu={serialVersionUID:{configurable:!0}};ju.prototype.setOrdinate=function(M,N,D){switch(N){case vg.X:this._coordinates[M].x=D;break;case vg.Y:this._coordinates[M].y=D;break;case vg.Z:this._coordinates[M].z=D;break;default:throw new ng("invalid ordinateIndex")}},ju.prototype.size=function(){return this._coordinates.length},ju.prototype.getOrdinate=function(M,N){switch(N){case vg.X:return this._coordinates[M].x;case vg.Y:return this._coordinates[M].y;case vg.Z:return this._coordinates[M].z}return rg.NaN},ju.prototype.getCoordinate=function(){if(1===arguments.length){var M=arguments[0];return this._coordinates[M]}if(2===arguments.length){var N=arguments[0],D=arguments[1];D.x=this._coordinates[N].x,D.y=this._coordinates[N].y,D.z=this._coordinates[N].z}},ju.prototype.getCoordinateCopy=function(M){return new og(this._coordinates[M])},ju.prototype.getDimension=function(){return this._dimension},ju.prototype.getX=function(M){return this._coordinates[M].x},ju.prototype.clone=function(){for(var M=new Array(this.size()).fill(null),N=0;N<this._coordinates.length;N++)M[N]=this._coordinates[N].clone();return new ju(M,this._dimension)},ju.prototype.expandEnvelope=function(M){for(var N=0;N<this._coordinates.length;N++)M.expandToInclude(this._coordinates[N]);return M},ju.prototype.copy=function(){for(var M=new Array(this.size()).fill(null),N=0;N<this._coordinates.length;N++)M[N]=this._coordinates[N].copy();return new ju(M,this._dimension)},ju.prototype.toString=function(){if(this._coordinates.length>0){var M=new dg(17*this._coordinates.length);M.append("("),M.append(this._coordinates[0]);for(var N=1;N<this._coordinates.length;N++)M.append(", "),M.append(this._coordinates[N]);return M.append(")"),M.toString()}return"()"},ju.prototype.getY=function(M){return this._coordinates[M].y},ju.prototype.toCoordinateArray=function(){return this._coordinates},ju.prototype.interfaces_=function(){return[vg,ki]},ju.prototype.getClass=function(){return ju},Tu.serialVersionUID.get=function(){return-0xcb44a778db18e00},Object.defineProperties(ju,Tu);var gu=function(){},su={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};gu.prototype.readResolve=function(){return gu.instance()},gu.prototype.create=function(){if(1===arguments.length){if(arguments[0]instanceof Array){var M=arguments[0];return new ju(M)}if(lg(arguments[0],vg)){var N=arguments[0];return new ju(N)}}else if(2===arguments.length){var D=arguments[0],t=arguments[1];return t>3&&(t=3),t<2?new ju(D):new ju(D,t)}},gu.prototype.interfaces_=function(){return[xg,ki]},gu.prototype.getClass=function(){return gu},gu.instance=function(){return gu.instanceObject},su.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},su.instanceObject.get=function(){return new gu},Object.defineProperties(gu,su);var uu=function(M){function N(){M.call(this),this.map_=new Map}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.get=function(M){return this.map_.get(M)||null},N.prototype.put=function(M,N){return this.map_.set(M,N),N},N.prototype.values=function(){for(var M=new os,N=this.map_.values(),D=N.next();!D.done;)M.add(D.value),D=N.next();return M},N.prototype.entrySet=function(){var M=new ds;return this.map_.entries().forEach((function(N){return M.add(N)})),M},N.prototype.size=function(){return this.map_.size()},N}(ks),zu=function M(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=M.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof Lu){var N=arguments[0];this._modelType=N,N===M.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var D=arguments[0];this._modelType=M.FIXED,this.setScale(D)}else if(arguments[0]instanceof M){var t=arguments[0];this._modelType=t._modelType,this._scale=t._scale}},Au={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};zu.prototype.equals=function(M){if(!(M instanceof zu))return!1;var N=M;return this._modelType===N._modelType&&this._scale===N._scale},zu.prototype.compareTo=function(M){var N=M,D=this.getMaximumSignificantDigits(),t=N.getMaximumSignificantDigits();return new Yg(D).compareTo(new Yg(t))},zu.prototype.getScale=function(){return this._scale},zu.prototype.isFloating=function(){return this._modelType===zu.FLOATING||this._modelType===zu.FLOATING_SINGLE},zu.prototype.getType=function(){return this._modelType},zu.prototype.toString=function(){var M="UNKNOWN";return this._modelType===zu.FLOATING?M="Floating":this._modelType===zu.FLOATING_SINGLE?M="Floating-Single":this._modelType===zu.FIXED&&(M="Fixed (Scale="+this.getScale()+")"),M},zu.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var M=arguments[0];return rg.isNaN(M)||this._modelType===zu.FLOATING_SINGLE?M:this._modelType===zu.FIXED?Math.round(M*this._scale)/this._scale:M}if(arguments[0]instanceof og){var N=arguments[0];if(this._modelType===zu.FLOATING)return null;N.x=this.makePrecise(N.x),N.y=this.makePrecise(N.y)}},zu.prototype.getMaximumSignificantDigits=function(){var M=16;return this._modelType===zu.FLOATING?M=16:this._modelType===zu.FLOATING_SINGLE?M=6:this._modelType===zu.FIXED&&(M=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),M},zu.prototype.setScale=function(M){this._scale=Math.abs(M)},zu.prototype.interfaces_=function(){return[ki,cg]},zu.prototype.getClass=function(){return zu},zu.mostPrecise=function(M,N){return M.compareTo(N)>=0?M:N},Au.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},Au.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(zu,Au);var Lu=function M(N){this._name=N||null,M.nameToTypeMap.put(N,this)},Iu={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};Lu.prototype.readResolve=function(){return Lu.nameToTypeMap.get(this._name)},Lu.prototype.toString=function(){return this._name},Lu.prototype.interfaces_=function(){return[ki]},Lu.prototype.getClass=function(){return Lu},Iu.serialVersionUID.get=function(){return-552860263173159e4},Iu.nameToTypeMap.get=function(){return new uu},Object.defineProperties(Lu,Iu),zu.Type=Lu,zu.FIXED=new Lu("FIXED"),zu.FLOATING=new Lu("FLOATING"),zu.FLOATING_SINGLE=new Lu("FLOATING SINGLE");var nu=function M(){this._precisionModel=new zu,this._SRID=0,this._coordinateSequenceFactory=M.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?lg(arguments[0],xg)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof zu&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},ru={serialVersionUID:{configurable:!0}};nu.prototype.toGeometry=function(M){return M.isNull()?this.createPoint(null):M.getMinX()===M.getMaxX()&&M.getMinY()===M.getMaxY()?this.createPoint(new og(M.getMinX(),M.getMinY())):M.getMinX()===M.getMaxX()||M.getMinY()===M.getMaxY()?this.createLineString([new og(M.getMinX(),M.getMinY()),new og(M.getMaxX(),M.getMaxY())]):this.createPolygon(this.createLinearRing([new og(M.getMinX(),M.getMinY()),new og(M.getMinX(),M.getMaxY()),new og(M.getMaxX(),M.getMaxY()),new og(M.getMaxX(),M.getMinY()),new og(M.getMinX(),M.getMinY())]),null)},nu.prototype.createLineString=function(M){return M?M instanceof Array?new Hs(this.getCoordinateSequenceFactory().create(M),this):lg(M,vg)?new Hs(M,this):void 0:new Hs(this.getCoordinateSequenceFactory().create([]),this)},nu.prototype.createMultiLineString=function(){if(0===arguments.length)return new Zs(null,this);if(1===arguments.length){var M=arguments[0];return new Zs(M,this)}},nu.prototype.buildGeometry=function(M){for(var N=null,D=!1,t=!1,i=M.iterator();i.hasNext();){var e=i.next(),j=e.getClass();null===N&&(N=j),j!==N&&(D=!0),e.isGeometryCollectionOrDerived()&&(t=!0)}if(null===N)return this.createGeometryCollection();if(D||t)return this.createGeometryCollection(nu.toGeometryArray(M));var T=M.iterator().next();if(M.size()>1){if(T instanceof qs)return this.createMultiPolygon(nu.toPolygonArray(M));if(T instanceof Hs)return this.createMultiLineString(nu.toLineStringArray(M));if(T instanceof Vs)return this.createMultiPoint(nu.toPointArray(M));Kg.shouldNeverReachHere("Unhandled class: "+T.getClass().getName())}return T},nu.prototype.createMultiPointFromCoords=function(M){return this.createMultiPoint(null!==M?this.getCoordinateSequenceFactory().create(M):null)},nu.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof og){var M=arguments[0];return this.createPoint(null!==M?this.getCoordinateSequenceFactory().create([M]):null)}if(lg(arguments[0],vg)){var N=arguments[0];return new Vs(N,this)}}},nu.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},nu.prototype.createPolygon=function(){if(0===arguments.length)return new qs(null,null,this);if(1===arguments.length){if(lg(arguments[0],vg)){var M=arguments[0];return this.createPolygon(this.createLinearRing(M))}if(arguments[0]instanceof Array){var N=arguments[0];return this.createPolygon(this.createLinearRing(N))}if(arguments[0]instanceof $s){var D=arguments[0];return this.createPolygon(D,null)}}else if(2===arguments.length){var t=arguments[0],i=arguments[1];return new qs(t,i,this)}},nu.prototype.getSRID=function(){return this._SRID},nu.prototype.createGeometryCollection=function(){if(0===arguments.length)return new Ps(null,this);if(1===arguments.length){var M=arguments[0];return new Ps(M,this)}},nu.prototype.createGeometry=function(M){return new Nu(this).edit(M,{edit:function(){if(2===arguments.length){var M=arguments[0];return this._coordinateSequenceFactory.create(M)}}})},nu.prototype.getPrecisionModel=function(){return this._precisionModel},nu.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var M=arguments[0];return this.createLinearRing(null!==M?this.getCoordinateSequenceFactory().create(M):null)}if(lg(arguments[0],vg)){var N=arguments[0];return new $s(N,this)}}},nu.prototype.createMultiPolygon=function(){if(0===arguments.length)return new Mu(null,this);if(1===arguments.length){var M=arguments[0];return new Mu(M,this)}},nu.prototype.createMultiPoint=function(){if(0===arguments.length)return new Ks(null,this);if(1===arguments.length){if(arguments[0]instanceof Array){var M=arguments[0];return new Ks(M,this)}if(arguments[0]instanceof Array){var N=arguments[0];return this.createMultiPoint(null!==N?this.getCoordinateSequenceFactory().create(N):null)}if(lg(arguments[0],vg)){var D=arguments[0];if(null===D)return this.createMultiPoint(new Array(0).fill(null));for(var t=new Array(D.size()).fill(null),i=0;i<D.size();i++){var e=this.getCoordinateSequenceFactory().create(1,D.getDimension());_s.copy(D,i,e,0,1),t[i]=this.createPoint(e)}return this.createMultiPoint(t)}}},nu.prototype.interfaces_=function(){return[ki]},nu.prototype.getClass=function(){return nu},nu.toMultiPolygonArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},nu.toGeometryArray=function(M){if(null===M)return null;var N=new Array(M.size()).fill(null);return M.toArray(N)},nu.getDefaultCoordinateSequenceFactory=function(){return gu.instance()},nu.toMultiLineStringArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},nu.toLineStringArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},nu.toMultiPointArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},nu.toLinearRingArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},nu.toPointArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},nu.toPolygonArray=function(M){var N=new Array(M.size()).fill(null);return M.toArray(N)},nu.createPointFromInternalCoord=function(M,N){return N.getPrecisionModel().makePrecise(M),N.getFactory().createPoint(M)},ru.serialVersionUID.get=function(){return-0x5ea75f2051eeb400},Object.defineProperties(nu,ru);var wu=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],cu=function(M){this.geometryFactory=M||new nu};cu.prototype.read=function(M){var N,D=(N="string"==typeof M?JSON.parse(M):M).type;if(!yu[D])throw new Error("Unknown GeoJSON type: "+N.type);return-1!==wu.indexOf(D)?yu[D].apply(this,[N.coordinates]):"GeometryCollection"===D?yu[D].apply(this,[N.geometries]):yu[D].apply(this,[N])},cu.prototype.write=function(M){var N=M.getGeometryType();if(!au[N])throw new Error("Geometry is not supported");return au[N].apply(this,[M])};var yu={Feature:function(M){var N={};for(var D in M)N[D]=M[D];if(M.geometry){var t=M.geometry.type;if(!yu[t])throw new Error("Unknown GeoJSON type: "+M.type);N.geometry=this.read(M.geometry)}return M.bbox&&(N.bbox=yu.bbox.apply(this,[M.bbox])),N},FeatureCollection:function(M){var N={};if(M.features){N.features=[];for(var D=0;D<M.features.length;++D)N.features.push(this.read(M.features[D]))}return M.bbox&&(N.bbox=this.parse.bbox.apply(this,[M.bbox])),N},coordinates:function(M){for(var N=[],D=0;D<M.length;++D){var t=M[D];N.push(new og(t[0],t[1]))}return N},bbox:function(M){return this.geometryFactory.createLinearRing([new og(M[0],M[1]),new og(M[2],M[1]),new og(M[2],M[3]),new og(M[0],M[3]),new og(M[0],M[1])])},Point:function(M){var N=new og(M[0],M[1]);return this.geometryFactory.createPoint(N)},MultiPoint:function(M){for(var N=[],D=0;D<M.length;++D)N.push(yu.Point.apply(this,[M[D]]));return this.geometryFactory.createMultiPoint(N)},LineString:function(M){var N=yu.coordinates.apply(this,[M]);return this.geometryFactory.createLineString(N)},MultiLineString:function(M){for(var N=[],D=0;D<M.length;++D)N.push(yu.LineString.apply(this,[M[D]]));return this.geometryFactory.createMultiLineString(N)},Polygon:function(M){for(var N=yu.coordinates.apply(this,[M[0]]),D=this.geometryFactory.createLinearRing(N),t=[],i=1;i<M.length;++i){var e=M[i],j=yu.coordinates.apply(this,[e]),T=this.geometryFactory.createLinearRing(j);t.push(T)}return this.geometryFactory.createPolygon(D,t)},MultiPolygon:function(M){for(var N=[],D=0;D<M.length;++D){var t=M[D];N.push(yu.Polygon.apply(this,[t]))}return this.geometryFactory.createMultiPolygon(N)},GeometryCollection:function(M){for(var N=[],D=0;D<M.length;++D){var t=M[D];N.push(this.read(t))}return this.geometryFactory.createGeometryCollection(N)}},au={coordinate:function(M){return[M.x,M.y]},Point:function(M){return{type:"Point",coordinates:au.coordinate.apply(this,[M.getCoordinate()])}},MultiPoint:function(M){for(var N=[],D=0;D<M._geometries.length;++D){var t=M._geometries[D],i=au.Point.apply(this,[t]);N.push(i.coordinates)}return{type:"MultiPoint",coordinates:N}},LineString:function(M){for(var N=[],D=M.getCoordinates(),t=0;t<D.length;++t){var i=D[t];N.push(au.coordinate.apply(this,[i]))}return{type:"LineString",coordinates:N}},MultiLineString:function(M){for(var N=[],D=0;D<M._geometries.length;++D){var t=M._geometries[D],i=au.LineString.apply(this,[t]);N.push(i.coordinates)}return{type:"MultiLineString",coordinates:N}},Polygon:function(M){var N=[],D=au.LineString.apply(this,[M._shell]);N.push(D.coordinates);for(var t=0;t<M._holes.length;++t){var i=M._holes[t],e=au.LineString.apply(this,[i]);N.push(e.coordinates)}return{type:"Polygon",coordinates:N}},MultiPolygon:function(M){for(var N=[],D=0;D<M._geometries.length;++D){var t=M._geometries[D],i=au.Polygon.apply(this,[t]);N.push(i.coordinates)}return{type:"MultiPolygon",coordinates:N}},GeometryCollection:function(M){for(var N=[],D=0;D<M._geometries.length;++D){var t=M._geometries[D],i=t.getGeometryType();N.push(au[i].apply(this,[t]))}return{type:"GeometryCollection",geometries:N}}},ou=function(M){this.geometryFactory=M||new nu,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new cu(this.geometryFactory)};ou.prototype.read=function(M){var N=this.parser.read(M);return this.precisionModel.getType()===zu.FIXED&&this.reducePrecision(N),N},ou.prototype.reducePrecision=function(M){var N,D;if(M.coordinate)this.precisionModel.makePrecise(M.coordinate);else if(M.points)for(N=0,D=M.points.length;N<D;N++)this.precisionModel.makePrecise(M.points[N]);else if(M.geometries)for(N=0,D=M.geometries.length;N<D;N++)this.reducePrecision(M.geometries[N])};var Eu=function(){this.parser=new cu(this.geometryFactory)};Eu.prototype.write=function(M){return this.parser.write(M)};var Ou=function(){},xu={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};Ou.prototype.interfaces_=function(){return[]},Ou.prototype.getClass=function(){return Ou},Ou.opposite=function(M){return M===Ou.LEFT?Ou.RIGHT:M===Ou.RIGHT?Ou.LEFT:M},xu.ON.get=function(){return 0},xu.LEFT.get=function(){return 1},xu.RIGHT.get=function(){return 2},Object.defineProperties(Ou,xu),(Zi.prototype=new Error).name="EmptyStackException",(Gi.prototype=new as).add=function(M){return this.array_.push(M),!0},Gi.prototype.get=function(M){if(M<0||M>=this.size())throw new Error;return this.array_[M]},Gi.prototype.push=function(M){return this.array_.push(M),M},Gi.prototype.pop=function(M){if(0===this.array_.length)throw new Zi;return this.array_.pop()},Gi.prototype.peek=function(){if(0===this.array_.length)throw new Zi;return this.array_[this.array_.length-1]},Gi.prototype.empty=function(){return 0===this.array_.length},Gi.prototype.isEmpty=function(){return this.empty()},Gi.prototype.search=function(M){return this.array_.indexOf(M)},Gi.prototype.size=function(){return this.array_.length},Gi.prototype.toArray=function(){for(var M=[],N=0,D=this.array_.length;N<D;N++)M.push(this.array_[N]);return M};var Cu=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};Cu.prototype.getCoordinate=function(){return this._minCoord},Cu.prototype.getRightmostSide=function(M,N){var D=this.getRightmostSideOfSegment(M,N);return D<0&&(D=this.getRightmostSideOfSegment(M,N-1)),D<0&&(this._minCoord=null,this.checkForRightmostCoordinate(M)),D},Cu.prototype.findRightmostEdgeAtVertex=function(){var M=this._minDe.getEdge().getCoordinates();Kg.isTrue(this._minIndex>0&&this._minIndex<M.length,"rightmost point expected to be interior vertex of edge");var N=M[this._minIndex-1],D=M[this._minIndex+1],t=is.computeOrientation(this._minCoord,D,N),i=!1;(N.y<this._minCoord.y&&D.y<this._minCoord.y&&t===is.COUNTERCLOCKWISE||N.y>this._minCoord.y&&D.y>this._minCoord.y&&t===is.CLOCKWISE)&&(i=!0),i&&(this._minIndex=this._minIndex-1)},Cu.prototype.getRightmostSideOfSegment=function(M,N){var D=M.getEdge().getCoordinates();if(N<0||N+1>=D.length)return-1;if(D[N].y===D[N+1].y)return-1;var t=Ou.LEFT;return D[N].y<D[N+1].y&&(t=Ou.RIGHT),t},Cu.prototype.getEdge=function(){return this._orientedDe},Cu.prototype.checkForRightmostCoordinate=function(M){for(var N=M.getEdge().getCoordinates(),D=0;D<N.length-1;D++)(null===this._minCoord||N[D].x>this._minCoord.x)&&(this._minDe=M,this._minIndex=D,this._minCoord=N[D])},Cu.prototype.findRightmostEdgeAtNode=function(){var M=this._minDe.getNode().getEdges();this._minDe=M.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},Cu.prototype.findEdge=function(M){for(var N=M.iterator();N.hasNext();){var D=N.next();D.isForward()&&this.checkForRightmostCoordinate(D)}Kg.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Ou.LEFT&&(this._orientedDe=this._minDe.getSym())},Cu.prototype.interfaces_=function(){return[]},Cu.prototype.getClass=function(){return Cu};var Su=function(M){function N(D,t){M.call(this,N.msgWithCoord(D,t)),this.pt=t?new og(t):null,this.name="TopologyException"}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.getCoordinate=function(){return this.pt},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N.msgWithCoord=function(M,N){return N?M:M+" [ "+N+" ]"},N}(Jg),lu=function(){this.array_=[]};lu.prototype.addLast=function(M){this.array_.push(M)},lu.prototype.removeFirst=function(){return this.array_.shift()},lu.prototype.isEmpty=function(){return 0===this.array_.length};var ku=function(){this._finder=null,this._dirEdgeList=new os,this._nodes=new os,this._rightMostCoord=null,this._env=null,this._finder=new Cu};ku.prototype.clearVisitedEdges=function(){for(var M=this._dirEdgeList.iterator();M.hasNext();)M.next().setVisited(!1)},ku.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},ku.prototype.computeNodeDepth=function(M){for(var N=null,D=M.getEdges().iterator();D.hasNext();){var t=D.next();if(t.isVisited()||t.getSym().isVisited()){N=t;break}}if(null===N)throw new Su("unable to find edge to compute depths at "+M.getCoordinate());M.getEdges().computeDepths(N);for(var i=M.getEdges().iterator();i.hasNext();){var e=i.next();e.setVisited(!0),this.copySymDepths(e)}},ku.prototype.computeDepth=function(M){this.clearVisitedEdges();var N=this._finder.getEdge();N.setEdgeDepths(Ou.RIGHT,M),this.copySymDepths(N),this.computeDepths(N)},ku.prototype.create=function(M){this.addReachable(M),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},ku.prototype.findResultEdges=function(){for(var M=this._dirEdgeList.iterator();M.hasNext();){var N=M.next();N.getDepth(Ou.RIGHT)>=1&&N.getDepth(Ou.LEFT)<=0&&!N.isInteriorAreaEdge()&&N.setInResult(!0)}},ku.prototype.computeDepths=function(M){var N=new ds,D=new lu,t=M.getNode();for(D.addLast(t),N.add(t),M.setVisited(!0);!D.isEmpty();){var i=D.removeFirst();N.add(i),this.computeNodeDepth(i);for(var e=i.getEdges().iterator();e.hasNext();){var j=e.next().getSym();if(!j.isVisited()){var T=j.getNode();N.contains(T)||(D.addLast(T),N.add(T))}}}},ku.prototype.compareTo=function(M){var N=M;return this._rightMostCoord.x<N._rightMostCoord.x?-1:this._rightMostCoord.x>N._rightMostCoord.x?1:0},ku.prototype.getEnvelope=function(){if(null===this._env){for(var M=new Wg,N=this._dirEdgeList.iterator();N.hasNext();)for(var D=N.next().getEdge().getCoordinates(),t=0;t<D.length-1;t++)M.expandToInclude(D[t]);this._env=M}return this._env},ku.prototype.addReachable=function(M){var N=new Gi;for(N.add(M);!N.empty();){var D=N.pop();this.add(D,N)}},ku.prototype.copySymDepths=function(M){var N=M.getSym();N.setDepth(Ou.LEFT,M.getDepth(Ou.RIGHT)),N.setDepth(Ou.RIGHT,M.getDepth(Ou.LEFT))},ku.prototype.add=function(M,N){M.setVisited(!0),this._nodes.add(M);for(var D=M.getEdges().iterator();D.hasNext();){var t=D.next();this._dirEdgeList.add(t);var i=t.getSym().getNode();i.isVisited()||N.push(i)}},ku.prototype.getNodes=function(){return this._nodes},ku.prototype.getDirectedEdges=function(){return this._dirEdgeList},ku.prototype.interfaces_=function(){return[cg]},ku.prototype.getClass=function(){return ku};var Qu=function M(){if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var N=arguments[0];this.init(N.length)}else if(Number.isInteger(arguments[0])){var D=arguments[0];this.init(1),this.location[Ou.ON]=D}else if(arguments[0]instanceof M){var t=arguments[0];if(this.init(t.location.length),null!==t)for(var i=0;i<this.location.length;i++)this.location[i]=t.location[i]}}else if(3===arguments.length){var e=arguments[0],j=arguments[1],T=arguments[2];this.init(3),this.location[Ou.ON]=e,this.location[Ou.LEFT]=j,this.location[Ou.RIGHT]=T}};Qu.prototype.setAllLocations=function(M){for(var N=0;N<this.location.length;N++)this.location[N]=M},Qu.prototype.isNull=function(){for(var M=0;M<this.location.length;M++)if(this.location[M]!==Cg.NONE)return!1;return!0},Qu.prototype.setAllLocationsIfNull=function(M){for(var N=0;N<this.location.length;N++)this.location[N]===Cg.NONE&&(this.location[N]=M)},Qu.prototype.isLine=function(){return 1===this.location.length},Qu.prototype.merge=function(M){if(M.location.length>this.location.length){var N=new Array(3).fill(null);N[Ou.ON]=this.location[Ou.ON],N[Ou.LEFT]=Cg.NONE,N[Ou.RIGHT]=Cg.NONE,this.location=N}for(var D=0;D<this.location.length;D++)this.location[D]===Cg.NONE&&D<M.location.length&&(this.location[D]=M.location[D])},Qu.prototype.getLocations=function(){return this.location},Qu.prototype.flip=function(){if(this.location.length<=1)return null;var M=this.location[Ou.LEFT];this.location[Ou.LEFT]=this.location[Ou.RIGHT],this.location[Ou.RIGHT]=M},Qu.prototype.toString=function(){var M=new dg;return this.location.length>1&&M.append(Cg.toLocationSymbol(this.location[Ou.LEFT])),M.append(Cg.toLocationSymbol(this.location[Ou.ON])),this.location.length>1&&M.append(Cg.toLocationSymbol(this.location[Ou.RIGHT])),M.toString()},Qu.prototype.setLocations=function(M,N,D){this.location[Ou.ON]=M,this.location[Ou.LEFT]=N,this.location[Ou.RIGHT]=D},Qu.prototype.get=function(M){return M<this.location.length?this.location[M]:Cg.NONE},Qu.prototype.isArea=function(){return this.location.length>1},Qu.prototype.isAnyNull=function(){for(var M=0;M<this.location.length;M++)if(this.location[M]===Cg.NONE)return!0;return!1},Qu.prototype.setLocation=function(){if(1===arguments.length){var M=arguments[0];this.setLocation(Ou.ON,M)}else if(2===arguments.length){var N=arguments[0],D=arguments[1];this.location[N]=D}},Qu.prototype.init=function(M){this.location=new Array(M).fill(null),this.setAllLocations(Cg.NONE)},Qu.prototype.isEqualOnSide=function(M,N){return this.location[N]===M.location[N]},Qu.prototype.allPositionsEqual=function(M){for(var N=0;N<this.location.length;N++)if(this.location[N]!==M)return!1;return!0},Qu.prototype.interfaces_=function(){return[]},Qu.prototype.getClass=function(){return Qu};var du=function M(){if(this.elt=new Array(2).fill(null),1===arguments.length){if(Number.isInteger(arguments[0])){var N=arguments[0];this.elt[0]=new Qu(N),this.elt[1]=new Qu(N)}else if(arguments[0]instanceof M){var D=arguments[0];this.elt[0]=new Qu(D.elt[0]),this.elt[1]=new Qu(D.elt[1])}}else if(2===arguments.length){var t=arguments[0],i=arguments[1];this.elt[0]=new Qu(Cg.NONE),this.elt[1]=new Qu(Cg.NONE),this.elt[t].setLocation(i)}else if(3===arguments.length){var e=arguments[0],j=arguments[1],T=arguments[2];this.elt[0]=new Qu(e,j,T),this.elt[1]=new Qu(e,j,T)}else if(4===arguments.length){var g=arguments[0],s=arguments[1],u=arguments[2],z=arguments[3];this.elt[0]=new Qu(Cg.NONE,Cg.NONE,Cg.NONE),this.elt[1]=new Qu(Cg.NONE,Cg.NONE,Cg.NONE),this.elt[g].setLocations(s,u,z)}};du.prototype.getGeometryCount=function(){var M=0;return this.elt[0].isNull()||M++,this.elt[1].isNull()||M++,M},du.prototype.setAllLocations=function(M,N){this.elt[M].setAllLocations(N)},du.prototype.isNull=function(M){return this.elt[M].isNull()},du.prototype.setAllLocationsIfNull=function(){if(1===arguments.length){var M=arguments[0];this.setAllLocationsIfNull(0,M),this.setAllLocationsIfNull(1,M)}else if(2===arguments.length){var N=arguments[0],D=arguments[1];this.elt[N].setAllLocationsIfNull(D)}},du.prototype.isLine=function(M){return this.elt[M].isLine()},du.prototype.merge=function(M){for(var N=0;N<2;N++)null===this.elt[N]&&null!==M.elt[N]?this.elt[N]=new Qu(M.elt[N]):this.elt[N].merge(M.elt[N])},du.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()},du.prototype.getLocation=function(){if(1===arguments.length){var M=arguments[0];return this.elt[M].get(Ou.ON)}if(2===arguments.length){var N=arguments[0],D=arguments[1];return this.elt[N].get(D)}},du.prototype.toString=function(){var M=new dg;return null!==this.elt[0]&&(M.append("A:"),M.append(this.elt[0].toString())),null!==this.elt[1]&&(M.append(" B:"),M.append(this.elt[1].toString())),M.toString()},du.prototype.isArea=function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var M=arguments[0];return this.elt[M].isArea()}},du.prototype.isAnyNull=function(M){return this.elt[M].isAnyNull()},du.prototype.setLocation=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];this.elt[M].setLocation(Ou.ON,N)}else if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2];this.elt[D].setLocation(t,i)}},du.prototype.isEqualOnSide=function(M,N){return this.elt[0].isEqualOnSide(M.elt[0],N)&&this.elt[1].isEqualOnSide(M.elt[1],N)},du.prototype.allPositionsEqual=function(M,N){return this.elt[M].allPositionsEqual(N)},du.prototype.toLine=function(M){this.elt[M].isArea()&&(this.elt[M]=new Qu(this.elt[M].location[0]))},du.prototype.interfaces_=function(){return[]},du.prototype.getClass=function(){return du},du.toLineLabel=function(M){for(var N=new du(Cg.NONE),D=0;D<2;D++)N.setLocation(D,M.getLocation(D));return N};var Yu=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new os,this._pts=new os,this._label=new du(Cg.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new os,this._geometryFactory=null;var M=arguments[0],N=arguments[1];this._geometryFactory=N,this.computePoints(M),this.computeRing()};Yu.prototype.computeRing=function(){if(null!==this._ring)return null;for(var M=new Array(this._pts.size()).fill(null),N=0;N<this._pts.size();N++)M[N]=this._pts.get(N);this._ring=this._geometryFactory.createLinearRing(M),this._isHole=is.isCCW(this._ring.getCoordinates())},Yu.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},Yu.prototype.computePoints=function(M){this._startDe=M;var N=M,D=!0;do{if(null===N)throw new Su("Found null DirectedEdge");if(N.getEdgeRing()===this)throw new Su("Directed Edge visited twice during ring-building at "+N.getCoordinate());this._edges.add(N);var t=N.getLabel();Kg.isTrue(t.isArea()),this.mergeLabel(t),this.addPoints(N.getEdge(),N.isForward(),D),D=!1,this.setEdgeRing(N,this),N=this.getNext(N)}while(N!==this._startDe)},Yu.prototype.getLinearRing=function(){return this._ring},Yu.prototype.getCoordinate=function(M){return this._pts.get(M)},Yu.prototype.computeMaxNodeDegree=function(){this._maxNodeDegree=0;var M=this._startDe;do{var N=M.getNode().getEdges().getOutgoingDegree(this);N>this._maxNodeDegree&&(this._maxNodeDegree=N),M=this.getNext(M)}while(M!==this._startDe);this._maxNodeDegree*=2},Yu.prototype.addPoints=function(M,N,D){var t=M.getCoordinates();if(N){var i=1;D&&(i=0);for(var e=i;e<t.length;e++)this._pts.add(t[e])}else{var j=t.length-2;D&&(j=t.length-1);for(var T=j;T>=0;T--)this._pts.add(t[T])}},Yu.prototype.isHole=function(){return this._isHole},Yu.prototype.setInResult=function(){var M=this._startDe;do{M.getEdge().setInResult(!0),M=M.getNext()}while(M!==this._startDe)},Yu.prototype.containsPoint=function(M){var N=this.getLinearRing();if(!N.getEnvelopeInternal().contains(M))return!1;if(!is.isPointInRing(M,N.getCoordinates()))return!1;for(var D=this._holes.iterator();D.hasNext();)if(D.next().containsPoint(M))return!1;return!0},Yu.prototype.addHole=function(M){this._holes.add(M)},Yu.prototype.isShell=function(){return null===this._shell},Yu.prototype.getLabel=function(){return this._label},Yu.prototype.getEdges=function(){return this._edges},Yu.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},Yu.prototype.getShell=function(){return this._shell},Yu.prototype.mergeLabel=function(){if(1===arguments.length){var M=arguments[0];this.mergeLabel(M,0),this.mergeLabel(M,1)}else if(2===arguments.length){var N=arguments[0],D=arguments[1],t=N.getLocation(D,Ou.RIGHT);if(t===Cg.NONE)return null;if(this._label.getLocation(D)===Cg.NONE)return this._label.setLocation(D,t),null}},Yu.prototype.setShell=function(M){this._shell=M,null!==M&&M.addHole(this)},Yu.prototype.toPolygon=function(M){for(var N=new Array(this._holes.size()).fill(null),D=0;D<this._holes.size();D++)N[D]=this._holes.get(D).getLinearRing();return M.createPolygon(this.getLinearRing(),N)},Yu.prototype.interfaces_=function(){return[]},Yu.prototype.getClass=function(){return Yu};var pu=function(M){function N(){var N=arguments[0],D=arguments[1];M.call(this,N,D)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.setEdgeRing=function(M,N){M.setMinEdgeRing(N)},N.prototype.getNext=function(M){return M.getNextMin()},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Yu),Uu=function(M){function N(){var N=arguments[0],D=arguments[1];M.call(this,N,D)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.buildMinimalRings=function(){var M=new os,N=this._startDe;do{if(null===N.getMinEdgeRing()){var D=new pu(N,this._geometryFactory);M.add(D)}N=N.getNext()}while(N!==this._startDe);return M},N.prototype.setEdgeRing=function(M,N){M.setEdgeRing(N)},N.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){var M=this._startDe;do{M.getNode().getEdges().linkMinimalDirectedEdges(this),M=M.getNext()}while(M!==this._startDe)},N.prototype.getNext=function(M){return M.getNext()},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Yu),hu=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var M=arguments[0];this._label=M}};hu.prototype.setVisited=function(M){this._isVisited=M},hu.prototype.setInResult=function(M){this._isInResult=M},hu.prototype.isCovered=function(){return this._isCovered},hu.prototype.isCoveredSet=function(){return this._isCoveredSet},hu.prototype.setLabel=function(M){this._label=M},hu.prototype.getLabel=function(){return this._label},hu.prototype.setCovered=function(M){this._isCovered=M,this._isCoveredSet=!0},hu.prototype.updateIM=function(M){Kg.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(M)},hu.prototype.isInResult=function(){return this._isInResult},hu.prototype.isVisited=function(){return this._isVisited},hu.prototype.interfaces_=function(){return[]},hu.prototype.getClass=function(){return hu};var fu=function(M){function N(){M.call(this),this._coord=null,this._edges=null;var N=arguments[0],D=arguments[1];this._coord=N,this._edges=D,this._label=new du(0,Cg.NONE)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.isIncidentEdgeInResult=function(){for(var M=this.getEdges().getEdges().iterator();M.hasNext();)if(M.next().getEdge().isInResult())return!0;return!1},N.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},N.prototype.getCoordinate=function(){return this._coord},N.prototype.print=function(M){M.println("node "+this._coord+" lbl: "+this._label)},N.prototype.computeIM=function(M){},N.prototype.computeMergedLocation=function(M,N){var D=Cg.NONE;if(D=this._label.getLocation(N),!M.isNull(N)){var t=M.getLocation(N);D!==Cg.BOUNDARY&&(D=t)}return D},N.prototype.setLabel=function(){if(2!==arguments.length)return M.prototype.setLabel.apply(this,arguments);var N=arguments[0],D=arguments[1];null===this._label?this._label=new du(N,D):this._label.setLocation(N,D)},N.prototype.getEdges=function(){return this._edges},N.prototype.mergeLabel=function(){if(arguments[0]instanceof N){var M=arguments[0];this.mergeLabel(M._label)}else if(arguments[0]instanceof du)for(var D=arguments[0],t=0;t<2;t++){var i=this.computeMergedLocation(D,t);this._label.getLocation(t)===Cg.NONE&&this._label.setLocation(t,i)}},N.prototype.add=function(M){this._edges.insert(M),M.setNode(this)},N.prototype.setLabelBoundary=function(M){if(null===this._label)return null;var N=Cg.NONE;null!==this._label&&(N=this._label.getLocation(M));var D=null;switch(N){case Cg.BOUNDARY:D=Cg.INTERIOR;break;case Cg.INTERIOR:default:D=Cg.BOUNDARY}this._label.setLocation(M,D)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(hu),mu=function(){this.nodeMap=new vi,this.nodeFact=null;var M=arguments[0];this.nodeFact=M};mu.prototype.find=function(M){return this.nodeMap.get(M)},mu.prototype.addNode=function(){if(arguments[0]instanceof og){var M=arguments[0],N=this.nodeMap.get(M);return null===N&&(N=this.nodeFact.createNode(M),this.nodeMap.put(M,N)),N}if(arguments[0]instanceof fu){var D=arguments[0],t=this.nodeMap.get(D.getCoordinate());return null===t?(this.nodeMap.put(D.getCoordinate(),D),D):(t.mergeLabel(D),t)}},mu.prototype.print=function(M){for(var N=this.iterator();N.hasNext();)N.next().print(M)},mu.prototype.iterator=function(){return this.nodeMap.values().iterator()},mu.prototype.values=function(){return this.nodeMap.values()},mu.prototype.getBoundaryNodes=function(M){for(var N=new os,D=this.iterator();D.hasNext();){var t=D.next();t.getLabel().getLocation(M)===Cg.BOUNDARY&&N.add(t)}return N},mu.prototype.add=function(M){var N=M.getCoordinate();this.addNode(N).add(M)},mu.prototype.interfaces_=function(){return[]},mu.prototype.getClass=function(){return mu};var vu=function(){},Bu={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};vu.prototype.interfaces_=function(){return[]},vu.prototype.getClass=function(){return vu},vu.isNorthern=function(M){return M===vu.NE||M===vu.NW},vu.isOpposite=function(M,N){return M!==N&&2===(M-N+4)%4},vu.commonHalfPlane=function(M,N){if(M===N)return M;if(2===(M-N+4)%4)return-1;var D=M<N?M:N;return 0===D&&3===(M>N?M:N)?3:D},vu.isInHalfPlane=function(M,N){return N===vu.SE?M===vu.SE||M===vu.SW:M===N||M===N+1},vu.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var M=arguments[0],N=arguments[1];if(0===M&&0===N)throw new ng("Cannot compute the quadrant for point ( "+M+", "+N+" )");return M>=0?N>=0?vu.NE:vu.SE:N>=0?vu.NW:vu.SW}if(arguments[0]instanceof og&&arguments[1]instanceof og){var D=arguments[0],t=arguments[1];if(t.x===D.x&&t.y===D.y)throw new ng("Cannot compute the quadrant for two identical points "+D);return t.x>=D.x?t.y>=D.y?vu.NE:vu.SE:t.y>=D.y?vu.NW:vu.SW}},Bu.NE.get=function(){return 0},Bu.NW.get=function(){return 1},Bu.SW.get=function(){return 2},Bu.SE.get=function(){return 3},Object.defineProperties(vu,Bu);var bu=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var M=arguments[0];this._edge=M}else if(3===arguments.length){var N=arguments[0],D=arguments[1],t=arguments[2];this._edge=N,this.init(D,t),this._label=null}else if(4===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2],T=arguments[3];this._edge=i,this.init(e,j),this._label=T}};bu.prototype.compareDirection=function(M){return this._dx===M._dx&&this._dy===M._dy?0:this._quadrant>M._quadrant?1:this._quadrant<M._quadrant?-1:is.computeOrientation(M._p0,M._p1,this._p1)},bu.prototype.getDy=function(){return this._dy},bu.prototype.getCoordinate=function(){return this._p0},bu.prototype.setNode=function(M){this._node=M},bu.prototype.print=function(M){var N=Math.atan2(this._dy,this._dx),D=this.getClass().getName(),t=D.lastIndexOf("."),i=D.substring(t+1);M.print(" "+i+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+N+" "+this._label)},bu.prototype.compareTo=function(M){var N=M;return this.compareDirection(N)},bu.prototype.getDirectedCoordinate=function(){return this._p1},bu.prototype.getDx=function(){return this._dx},bu.prototype.getLabel=function(){return this._label},bu.prototype.getEdge=function(){return this._edge},bu.prototype.getQuadrant=function(){return this._quadrant},bu.prototype.getNode=function(){return this._node},bu.prototype.toString=function(){var M=Math.atan2(this._dy,this._dx),N=this.getClass().getName(),D=N.lastIndexOf(".");return" "+N.substring(D+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+M+" "+this._label},bu.prototype.computeLabel=function(M){},bu.prototype.init=function(M,N){this._p0=M,this._p1=N,this._dx=N.x-M.x,this._dy=N.y-M.y,this._quadrant=vu.quadrant(this._dx,this._dy),Kg.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},bu.prototype.interfaces_=function(){return[cg]},bu.prototype.getClass=function(){return bu};var Pu=function(M){function N(){var N=arguments[0],D=arguments[1];if(M.call(this,N),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=D,D)this.init(N.getCoordinate(0),N.getCoordinate(1));else{var t=N.getNumPoints()-1;this.init(N.getCoordinate(t),N.getCoordinate(t-1))}this.computeDirectedLabel()}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.getNextMin=function(){return this._nextMin},N.prototype.getDepth=function(M){return this._depth[M]},N.prototype.setVisited=function(M){this._isVisited=M},N.prototype.computeDirectedLabel=function(){this._label=new du(this._edge.getLabel()),this._isForward||this._label.flip()},N.prototype.getNext=function(){return this._next},N.prototype.setDepth=function(M,N){if(-999!==this._depth[M]&&this._depth[M]!==N)throw new Su("assigned depths do not match",this.getCoordinate());this._depth[M]=N},N.prototype.isInteriorAreaEdge=function(){for(var M=!0,N=0;N<2;N++)this._label.isArea(N)&&this._label.getLocation(N,Ou.LEFT)===Cg.INTERIOR&&this._label.getLocation(N,Ou.RIGHT)===Cg.INTERIOR||(M=!1);return M},N.prototype.setNextMin=function(M){this._nextMin=M},N.prototype.print=function(N){M.prototype.print.call(this,N),N.print(" "+this._depth[Ou.LEFT]+"/"+this._depth[Ou.RIGHT]),N.print(" ("+this.getDepthDelta()+")"),this._isInResult&&N.print(" inResult")},N.prototype.setMinEdgeRing=function(M){this._minEdgeRing=M},N.prototype.isLineEdge=function(){var M=this._label.isLine(0)||this._label.isLine(1),N=!this._label.isArea(0)||this._label.allPositionsEqual(0,Cg.EXTERIOR),D=!this._label.isArea(1)||this._label.allPositionsEqual(1,Cg.EXTERIOR);return M&&N&&D},N.prototype.setEdgeRing=function(M){this._edgeRing=M},N.prototype.getMinEdgeRing=function(){return this._minEdgeRing},N.prototype.getDepthDelta=function(){var M=this._edge.getDepthDelta();return this._isForward||(M=-M),M},N.prototype.setInResult=function(M){this._isInResult=M},N.prototype.getSym=function(){return this._sym},N.prototype.isForward=function(){return this._isForward},N.prototype.getEdge=function(){return this._edge},N.prototype.printEdge=function(M){this.print(M),M.print(" "),this._isForward?this._edge.print(M):this._edge.printReverse(M)},N.prototype.setSym=function(M){this._sym=M},N.prototype.setVisitedEdge=function(M){this.setVisited(M),this._sym.setVisited(M)},N.prototype.setEdgeDepths=function(M,N){var D=this.getEdge().getDepthDelta();this._isForward||(D=-D);var t=1;M===Ou.LEFT&&(t=-1);var i=Ou.opposite(M),e=N+D*t;this.setDepth(M,N),this.setDepth(i,e)},N.prototype.getEdgeRing=function(){return this._edgeRing},N.prototype.isInResult=function(){return this._isInResult},N.prototype.setNext=function(M){this._next=M},N.prototype.isVisited=function(){return this._isVisited},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N.depthFactor=function(M,N){return M===Cg.EXTERIOR&&N===Cg.INTERIOR?1:M===Cg.INTERIOR&&N===Cg.EXTERIOR?-1:0},N}(bu),Zu=function(){};Zu.prototype.createNode=function(M){return new fu(M,null)},Zu.prototype.interfaces_=function(){return[]},Zu.prototype.getClass=function(){return Zu};var Gu=function(){if(this._edges=new os,this._nodes=null,this._edgeEndList=new os,0===arguments.length)this._nodes=new mu(new Zu);else if(1===arguments.length){var M=arguments[0];this._nodes=new mu(M)}};Gu.prototype.printEdges=function(M){M.println("Edges:");for(var N=0;N<this._edges.size();N++){M.println("edge "+N+":");var D=this._edges.get(N);D.print(M),D.eiList.print(M)}},Gu.prototype.find=function(M){return this._nodes.find(M)},Gu.prototype.addNode=function(){if(arguments[0]instanceof fu){var M=arguments[0];return this._nodes.addNode(M)}if(arguments[0]instanceof og){var N=arguments[0];return this._nodes.addNode(N)}},Gu.prototype.getNodeIterator=function(){return this._nodes.iterator()},Gu.prototype.linkResultDirectedEdges=function(){for(var M=this._nodes.iterator();M.hasNext();)M.next().getEdges().linkResultDirectedEdges()},Gu.prototype.debugPrintln=function(M){Zg.out.println(M)},Gu.prototype.isBoundaryNode=function(M,N){var D=this._nodes.find(N);if(null===D)return!1;var t=D.getLabel();return null!==t&&t.getLocation(M)===Cg.BOUNDARY},Gu.prototype.linkAllDirectedEdges=function(){for(var M=this._nodes.iterator();M.hasNext();)M.next().getEdges().linkAllDirectedEdges()},Gu.prototype.matchInSameDirection=function(M,N,D,t){return!!M.equals(D)&&is.computeOrientation(M,N,t)===is.COLLINEAR&&vu.quadrant(M,N)===vu.quadrant(D,t)},Gu.prototype.getEdgeEnds=function(){return this._edgeEndList},Gu.prototype.debugPrint=function(M){Zg.out.print(M)},Gu.prototype.getEdgeIterator=function(){return this._edges.iterator()},Gu.prototype.findEdgeInSameDirection=function(M,N){for(var D=0;D<this._edges.size();D++){var t=this._edges.get(D),i=t.getCoordinates();if(this.matchInSameDirection(M,N,i[0],i[1]))return t;if(this.matchInSameDirection(M,N,i[i.length-1],i[i.length-2]))return t}return null},Gu.prototype.insertEdge=function(M){this._edges.add(M)},Gu.prototype.findEdgeEnd=function(M){for(var N=this.getEdgeEnds().iterator();N.hasNext();){var D=N.next();if(D.getEdge()===M)return D}return null},Gu.prototype.addEdges=function(M){for(var N=M.iterator();N.hasNext();){var D=N.next();this._edges.add(D);var t=new Pu(D,!0),i=new Pu(D,!1);t.setSym(i),i.setSym(t),this.add(t),this.add(i)}},Gu.prototype.add=function(M){this._nodes.add(M),this._edgeEndList.add(M)},Gu.prototype.getNodes=function(){return this._nodes.values()},Gu.prototype.findEdge=function(M,N){for(var D=0;D<this._edges.size();D++){var t=this._edges.get(D),i=t.getCoordinates();if(M.equals(i[0])&&N.equals(i[1]))return t}return null},Gu.prototype.interfaces_=function(){return[]},Gu.prototype.getClass=function(){return Gu},Gu.linkResultDirectedEdges=function(M){for(var N=M.iterator();N.hasNext();)N.next().getEdges().linkResultDirectedEdges()};var Wu=function(){this._geometryFactory=null,this._shellList=new os;var M=arguments[0];this._geometryFactory=M};Wu.prototype.sortShellsAndHoles=function(M,N,D){for(var t=M.iterator();t.hasNext();){var i=t.next();i.isHole()?D.add(i):N.add(i)}},Wu.prototype.computePolygons=function(M){for(var N=new os,D=M.iterator();D.hasNext();){var t=D.next().toPolygon(this._geometryFactory);N.add(t)}return N},Wu.prototype.placeFreeHoles=function(M,N){for(var D=N.iterator();D.hasNext();){var t=D.next();if(null===t.getShell()){var i=this.findEdgeRingContaining(t,M);if(null===i)throw new Su("unable to assign hole to a shell",t.getCoordinate(0));t.setShell(i)}}},Wu.prototype.buildMinimalEdgeRings=function(M,N,D){for(var t=new os,i=M.iterator();i.hasNext();){var e=i.next();if(e.getMaxNodeDegree()>2){e.linkDirectedEdgesForMinimalEdgeRings();var j=e.buildMinimalRings(),T=this.findShell(j);null!==T?(this.placePolygonHoles(T,j),N.add(T)):D.addAll(j)}else t.add(e)}return t},Wu.prototype.containsPoint=function(M){for(var N=this._shellList.iterator();N.hasNext();)if(N.next().containsPoint(M))return!0;return!1},Wu.prototype.buildMaximalEdgeRings=function(M){for(var N=new os,D=M.iterator();D.hasNext();){var t=D.next();if(t.isInResult()&&t.getLabel().isArea()&&null===t.getEdgeRing()){var i=new Uu(t,this._geometryFactory);N.add(i),i.setInResult()}}return N},Wu.prototype.placePolygonHoles=function(M,N){for(var D=N.iterator();D.hasNext();){var t=D.next();t.isHole()&&t.setShell(M)}},Wu.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},Wu.prototype.findEdgeRingContaining=function(M,N){for(var D=M.getLinearRing(),t=D.getEnvelopeInternal(),i=D.getCoordinateN(0),e=null,j=null,T=N.iterator();T.hasNext();){var g=T.next(),s=g.getLinearRing(),u=s.getEnvelopeInternal();null!==e&&(j=e.getLinearRing().getEnvelopeInternal());var z=!1;u.contains(t)&&is.isPointInRing(i,s.getCoordinates())&&(z=!0),z&&(null===e||j.contains(u))&&(e=g)}return e},Wu.prototype.findShell=function(M){for(var N=0,D=null,t=M.iterator();t.hasNext();){var i=t.next();i.isHole()||(D=i,N++)}return Kg.isTrue(N<=1,"found two shells in MinimalEdgeRing list"),D},Wu.prototype.add=function(){if(1===arguments.length){var M=arguments[0];this.add(M.getEdgeEnds(),M.getNodes())}else if(2===arguments.length){var N=arguments[0],D=arguments[1];Gu.linkResultDirectedEdges(D);var t=this.buildMaximalEdgeRings(N),i=new os,e=this.buildMinimalEdgeRings(t,this._shellList,i);this.sortShellsAndHoles(e,this._shellList,i),this.placeFreeHoles(this._shellList,i)}},Wu.prototype.interfaces_=function(){return[]},Wu.prototype.getClass=function(){return Wu};var Ru=function(){};Ru.prototype.getBounds=function(){},Ru.prototype.interfaces_=function(){return[]},Ru.prototype.getClass=function(){return Ru};var Xu=function(){this._bounds=null,this._item=null;var M=arguments[0],N=arguments[1];this._bounds=M,this._item=N};Xu.prototype.getItem=function(){return this._item},Xu.prototype.getBounds=function(){return this._bounds},Xu.prototype.interfaces_=function(){return[Ru,ki]},Xu.prototype.getClass=function(){return Xu};var _u=function(){this._size=null,this._items=null,this._size=0,this._items=new os,this._items.add(null)};_u.prototype.poll=function(){if(this.isEmpty())return null;var M=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),M},_u.prototype.size=function(){return this._size},_u.prototype.reorder=function(M){for(var N=null,D=this._items.get(M);2*M<=this._size&&((N=2*M)!==this._size&&this._items.get(N+1).compareTo(this._items.get(N))<0&&N++,this._items.get(N).compareTo(D)<0);M=N)this._items.set(M,this._items.get(N));this._items.set(M,D)},_u.prototype.clear=function(){this._size=0,this._items.clear()},_u.prototype.isEmpty=function(){return 0===this._size},_u.prototype.add=function(M){this._items.add(null),this._size+=1;var N=this._size;for(this._items.set(0,M);M.compareTo(this._items.get(Math.trunc(N/2)))<0;N/=2)this._items.set(N,this._items.get(Math.trunc(N/2)));this._items.set(N,M)},_u.prototype.interfaces_=function(){return[]},_u.prototype.getClass=function(){return _u};var Hu=function(){};Hu.prototype.visitItem=function(M){},Hu.prototype.interfaces_=function(){return[]},Hu.prototype.getClass=function(){return Hu};var Fu=function(){};Fu.prototype.insert=function(M,N){},Fu.prototype.remove=function(M,N){},Fu.prototype.query=function(){},Fu.prototype.interfaces_=function(){return[]},Fu.prototype.getClass=function(){return Fu};var Vu=function(){if(this._childBoundables=new os,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var M=arguments[0];this._level=M}},Ju={serialVersionUID:{configurable:!0}};Vu.prototype.getLevel=function(){return this._level},Vu.prototype.size=function(){return this._childBoundables.size()},Vu.prototype.getChildBoundables=function(){return this._childBoundables},Vu.prototype.addChildBoundable=function(M){Kg.isTrue(null===this._bounds),this._childBoundables.add(M)},Vu.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},Vu.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},Vu.prototype.interfaces_=function(){return[Ru,ki]},Vu.prototype.getClass=function(){return Vu},Ju.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(Vu,Ju);var qu=function(){};qu.reverseOrder=function(){return{compare:function(M,N){return N.compareTo(M)}}},qu.min=function(M){return qu.sort(M),M.get(0)},qu.sort=function(M,N){var D=M.toArray();N?fs.sort(D,N):fs.sort(D);for(var t=M.iterator(),i=0,e=D.length;i<e;i++)t.next(),t.set(D[i])},qu.singletonList=function(M){var N=new os;return N.add(M),N};var Ku=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var M=arguments[0],N=arguments[1],D=arguments[2];this._boundable1=M,this._boundable2=N,this._itemDistance=D,this._distance=this.distance()};Ku.prototype.expandToQueue=function(M,N){var D=Ku.isComposite(this._boundable1),t=Ku.isComposite(this._boundable2);if(D&&t)return Ku.area(this._boundable1)>Ku.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,M,N),null):(this.expand(this._boundable2,this._boundable1,M,N),null);if(D)return this.expand(this._boundable1,this._boundable2,M,N),null;if(t)return this.expand(this._boundable2,this._boundable1,M,N),null;throw new ng("neither boundable is composite")},Ku.prototype.isLeaves=function(){return!(Ku.isComposite(this._boundable1)||Ku.isComposite(this._boundable2))},Ku.prototype.compareTo=function(M){var N=M;return this._distance<N._distance?-1:this._distance>N._distance?1:0},Ku.prototype.expand=function(M,N,D,t){for(var i=M.getChildBoundables().iterator();i.hasNext();){var e=i.next(),j=new Ku(e,N,this._itemDistance);j.getDistance()<t&&D.add(j)}},Ku.prototype.getBoundable=function(M){return 0===M?this._boundable1:this._boundable2},Ku.prototype.getDistance=function(){return this._distance},Ku.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},Ku.prototype.interfaces_=function(){return[cg]},Ku.prototype.getClass=function(){return Ku},Ku.area=function(M){return M.getBounds().getArea()},Ku.isComposite=function(M){return M instanceof Vu};var $u=function M(){if(this._root=null,this._built=!1,this._itemBoundables=new os,this._nodeCapacity=null,0===arguments.length){var N=M.DEFAULT_NODE_CAPACITY;this._nodeCapacity=N}else if(1===arguments.length){var D=arguments[0];Kg.isTrue(D>1,"Node capacity must be greater than 1"),this._nodeCapacity=D}},Mz={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};$u.prototype.getNodeCapacity=function(){return this._nodeCapacity},$u.prototype.lastNode=function(M){return M.get(M.size()-1)},$u.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var M=0,N=arguments[0].getChildBoundables().iterator();N.hasNext();){var D=N.next();D instanceof Vu?M+=this.size(D):D instanceof Xu&&(M+=1)}return M}},$u.prototype.removeItem=function(M,N){for(var D=null,t=M.getChildBoundables().iterator();t.hasNext();){var i=t.next();i instanceof Xu&&i.getItem()===N&&(D=i)}return null!==D&&(M.getChildBoundables().remove(D),!0)},$u.prototype.itemsTree=function(){if(0===arguments.length){this.build();var M=this.itemsTree(this._root);return null===M?new os:M}if(1===arguments.length){for(var N=arguments[0],D=new os,t=N.getChildBoundables().iterator();t.hasNext();){var i=t.next();if(i instanceof Vu){var e=this.itemsTree(i);null!==e&&D.add(e)}else i instanceof Xu?D.add(i.getItem()):Kg.shouldNeverReachHere()}return D.size()<=0?null:D}},$u.prototype.insert=function(M,N){Kg.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new Xu(M,N))},$u.prototype.boundablesAtLevel=function(){if(1===arguments.length){var M=arguments[0],N=new os;return this.boundablesAtLevel(M,this._root,N),N}if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2];if(Kg.isTrue(D>-2),t.getLevel()===D)return i.add(t),null;for(var e=t.getChildBoundables().iterator();e.hasNext();){var j=e.next();j instanceof Vu?this.boundablesAtLevel(D,j,i):(Kg.isTrue(j instanceof Xu),-1===D&&i.add(j))}return null}},$u.prototype.query=function(){if(1===arguments.length){var M=arguments[0];this.build();var N=new os;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),M)&&this.query(M,this._root,N),N}if(2===arguments.length){var D=arguments[0],t=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),D)&&this.query(D,this._root,t)}else if(3===arguments.length)if(lg(arguments[2],Hu)&&arguments[0]instanceof Object&&arguments[1]instanceof Vu)for(var i=arguments[0],e=arguments[1],j=arguments[2],T=e.getChildBoundables(),g=0;g<T.size();g++){var s=T.get(g);this.getIntersectsOp().intersects(s.getBounds(),i)&&(s instanceof Vu?this.query(i,s,j):s instanceof Xu?j.visitItem(s.getItem()):Kg.shouldNeverReachHere())}else if(lg(arguments[2],as)&&arguments[0]instanceof Object&&arguments[1]instanceof Vu)for(var u=arguments[0],z=arguments[1],A=arguments[2],L=z.getChildBoundables(),I=0;I<L.size();I++){var n=L.get(I);this.getIntersectsOp().intersects(n.getBounds(),u)&&(n instanceof Vu?this.query(u,n,A):n instanceof Xu?A.add(n.getItem()):Kg.shouldNeverReachHere())}},$u.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0},$u.prototype.getRoot=function(){return this.build(),this._root},$u.prototype.remove=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),M)&&this.remove(M,this._root,N)}if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2],e=this.removeItem(t,i);if(e)return!0;for(var j=null,T=t.getChildBoundables().iterator();T.hasNext();){var g=T.next();if(this.getIntersectsOp().intersects(g.getBounds(),D)&&g instanceof Vu&&(e=this.remove(D,g,i))){j=g;break}}return null!==j&&j.getChildBoundables().isEmpty()&&t.getChildBoundables().remove(j),e}},$u.prototype.createHigherLevels=function(M,N){Kg.isTrue(!M.isEmpty());var D=this.createParentBoundables(M,N+1);return 1===D.size()?D.get(0):this.createHigherLevels(D,N+1)},$u.prototype.depth=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var M=0,N=arguments[0].getChildBoundables().iterator();N.hasNext();){var D=N.next();if(D instanceof Vu){var t=this.depth(D);t>M&&(M=t)}}return M+1}},$u.prototype.createParentBoundables=function(M,N){Kg.isTrue(!M.isEmpty());var D=new os;D.add(this.createNode(N));var t=new os(M);qu.sort(t,this.getComparator());for(var i=t.iterator();i.hasNext();){var e=i.next();this.lastNode(D).getChildBoundables().size()===this.getNodeCapacity()&&D.add(this.createNode(N)),this.lastNode(D).addChildBoundable(e)}return D},$u.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},$u.prototype.interfaces_=function(){return[ki]},$u.prototype.getClass=function(){return $u},$u.compareDoubles=function(M,N){return M>N?1:M<N?-1:0},Mz.IntersectsOp.get=function(){return Nz},Mz.serialVersionUID.get=function(){return-0x35ef64c82d4c5400},Mz.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties($u,Mz);var Nz=function(){},Dz=function(){};Dz.prototype.distance=function(M,N){},Dz.prototype.interfaces_=function(){return[]},Dz.prototype.getClass=function(){return Dz};var tz=function(M){function N(D){D=D||N.DEFAULT_NODE_CAPACITY,M.call(this,D)}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return N.prototype.createParentBoundablesFromVerticalSlices=function(M,N){Kg.isTrue(M.length>0);for(var D=new os,t=0;t<M.length;t++)D.addAll(this.createParentBoundablesFromVerticalSlice(M[t],N));return D},N.prototype.createNode=function(M){return new iz(M)},N.prototype.size=function(){return 0===arguments.length?M.prototype.size.call(this):M.prototype.size.apply(this,arguments)},N.prototype.insert=function(){if(2!==arguments.length)return M.prototype.insert.apply(this,arguments);var N=arguments[0],D=arguments[1];if(N.isNull())return null;M.prototype.insert.call(this,N,D)},N.prototype.getIntersectsOp=function(){return N.intersectsOp},N.prototype.verticalSlices=function(M,N){for(var D=Math.trunc(Math.ceil(M.size()/N)),t=new Array(N).fill(null),i=M.iterator(),e=0;e<N;e++){t[e]=new os;for(var j=0;i.hasNext()&&j<D;){var T=i.next();t[e].add(T),j++}}return t},N.prototype.query=function(){if(1===arguments.length){var N=arguments[0];return M.prototype.query.call(this,N)}if(2===arguments.length){var D=arguments[0],t=arguments[1];M.prototype.query.call(this,D,t)}else if(3===arguments.length)if(lg(arguments[2],Hu)&&arguments[0]instanceof Object&&arguments[1]instanceof Vu){var i=arguments[0],e=arguments[1],j=arguments[2];M.prototype.query.call(this,i,e,j)}else if(lg(arguments[2],as)&&arguments[0]instanceof Object&&arguments[1]instanceof Vu){var T=arguments[0],g=arguments[1],s=arguments[2];M.prototype.query.call(this,T,g,s)}},N.prototype.getComparator=function(){return N.yComparator},N.prototype.createParentBoundablesFromVerticalSlice=function(N,D){return M.prototype.createParentBoundables.call(this,N,D)},N.prototype.remove=function(){if(2===arguments.length){var N=arguments[0],D=arguments[1];return M.prototype.remove.call(this,N,D)}return M.prototype.remove.apply(this,arguments)},N.prototype.depth=function(){return 0===arguments.length?M.prototype.depth.call(this):M.prototype.depth.apply(this,arguments)},N.prototype.createParentBoundables=function(M,D){Kg.isTrue(!M.isEmpty());var t=Math.trunc(Math.ceil(M.size()/this.getNodeCapacity())),i=new os(M);qu.sort(i,N.xComparator);var e=this.verticalSlices(i,Math.trunc(Math.ceil(Math.sqrt(t))));return this.createParentBoundablesFromVerticalSlices(e,D)},N.prototype.nearestNeighbour=function(){if(1===arguments.length){if(lg(arguments[0],Dz)){var M=arguments[0],D=new Ku(this.getRoot(),this.getRoot(),M);return this.nearestNeighbour(D)}if(arguments[0]instanceof Ku){var t=arguments[0];return this.nearestNeighbour(t,rg.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof N&&lg(arguments[1],Dz)){var i=arguments[0],e=arguments[1],j=new Ku(this.getRoot(),i.getRoot(),e);return this.nearestNeighbour(j)}if(arguments[0]instanceof Ku&&"number"==typeof arguments[1]){var T=arguments[0],g=arguments[1],s=null,u=new _u;for(u.add(T);!u.isEmpty()&&g>0;){var z=u.poll(),A=z.getDistance();if(A>=g)break;z.isLeaves()?(g=A,s=z):z.expandToQueue(u,g)}return[s.getBoundable(0).getItem(),s.getBoundable(1).getItem()]}}else if(3===arguments.length){var L=arguments[0],I=arguments[1],n=arguments[2],r=new Xu(L,I),w=new Ku(this.getRoot(),r,n);return this.nearestNeighbour(w)[0]}},N.prototype.interfaces_=function(){return[Fu,ki]},N.prototype.getClass=function(){return N},N.centreX=function(M){return N.avg(M.getMinX(),M.getMaxX())},N.avg=function(M,N){return(M+N)/2},N.centreY=function(M){return N.avg(M.getMinY(),M.getMaxY())},D.STRtreeNode.get=function(){return iz},D.serialVersionUID.get=function(){return 0x39920f7d5f261e0},D.xComparator.get=function(){return{interfaces_:function(){return[ag]},compare:function(D,t){return M.compareDoubles(N.centreX(D.getBounds()),N.centreX(t.getBounds()))}}},D.yComparator.get=function(){return{interfaces_:function(){return[ag]},compare:function(D,t){return M.compareDoubles(N.centreY(D.getBounds()),N.centreY(t.getBounds()))}}},D.intersectsOp.get=function(){return{interfaces_:function(){return[M.IntersectsOp]},intersects:function(M,N){return M.intersects(N)}}},D.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(N,D),N}($u),iz=function(M){function N(){var N=arguments[0];M.call(this,N)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.computeBounds=function(){for(var M=null,N=this.getChildBoundables().iterator();N.hasNext();){var D=N.next();null===M?M=new Wg(D.getBounds()):M.expandToInclude(D.getBounds())}return M},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Vu),ez=function(){};ez.prototype.interfaces_=function(){return[]},ez.prototype.getClass=function(){return ez},ez.relativeSign=function(M,N){return M<N?-1:M>N?1:0},ez.compare=function(M,N,D){if(N.equals2D(D))return 0;var t=ez.relativeSign(N.x,D.x),i=ez.relativeSign(N.y,D.y);switch(M){case 0:return ez.compareValue(t,i);case 1:return ez.compareValue(i,t);case 2:return ez.compareValue(i,-t);case 3:return ez.compareValue(-t,i);case 4:return ez.compareValue(-t,-i);case 5:return ez.compareValue(-i,-t);case 6:return ez.compareValue(-i,t);case 7:return ez.compareValue(t,-i)}return Kg.shouldNeverReachHere("invalid octant value"),0},ez.compareValue=function(M,N){return M<0?-1:M>0?1:N<0?-1:N>0?1:0};var jz=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var M=arguments[0],N=arguments[1],D=arguments[2],t=arguments[3];this._segString=M,this.coord=new og(N),this.segmentIndex=D,this._segmentOctant=t,this._isInterior=!N.equals2D(M.getCoordinate(D))};jz.prototype.getCoordinate=function(){return this.coord},jz.prototype.print=function(M){M.print(this.coord),M.print(" seg # = "+this.segmentIndex)},jz.prototype.compareTo=function(M){var N=M;return this.segmentIndex<N.segmentIndex?-1:this.segmentIndex>N.segmentIndex?1:this.coord.equals2D(N.coord)?0:ez.compare(this._segmentOctant,this.coord,N.coord)},jz.prototype.isEndPoint=function(M){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===M},jz.prototype.isInterior=function(){return this._isInterior},jz.prototype.interfaces_=function(){return[cg]},jz.prototype.getClass=function(){return jz};var Tz=function(){this._nodeMap=new vi,this._edge=null;var M=arguments[0];this._edge=M};Tz.prototype.getSplitCoordinates=function(){var M=new Os;this.addEndpoints();for(var N=this.iterator(),D=N.next();N.hasNext();){var t=N.next();this.addEdgeCoordinates(D,t,M),D=t}return M.toCoordinateArray()},Tz.prototype.addCollapsedNodes=function(){var M=new os;this.findCollapsesFromInsertedNodes(M),this.findCollapsesFromExistingVertices(M);for(var N=M.iterator();N.hasNext();){var D=N.next().intValue();this.add(this._edge.getCoordinate(D),D)}},Tz.prototype.print=function(M){M.println("Intersections:");for(var N=this.iterator();N.hasNext();)N.next().print(M)},Tz.prototype.findCollapsesFromExistingVertices=function(M){for(var N=0;N<this._edge.size()-2;N++){var D=this._edge.getCoordinate(N),t=this._edge.getCoordinate(N+2);D.equals2D(t)&&M.add(new Yg(N+1))}},Tz.prototype.addEdgeCoordinates=function(M,N,D){var t=this._edge.getCoordinate(N.segmentIndex),i=N.isInterior()||!N.coord.equals2D(t);D.add(new og(M.coord),!1);for(var e=M.segmentIndex+1;e<=N.segmentIndex;e++)D.add(this._edge.getCoordinate(e));i&&D.add(new og(N.coord))},Tz.prototype.iterator=function(){return this._nodeMap.values().iterator()},Tz.prototype.addSplitEdges=function(M){this.addEndpoints(),this.addCollapsedNodes();for(var N=this.iterator(),D=N.next();N.hasNext();){var t=N.next(),i=this.createSplitEdge(D,t);M.add(i),D=t}},Tz.prototype.findCollapseIndex=function(M,N,D){if(!M.coord.equals2D(N.coord))return!1;var t=N.segmentIndex-M.segmentIndex;return N.isInterior()||t--,1===t&&(D[0]=M.segmentIndex+1,!0)},Tz.prototype.findCollapsesFromInsertedNodes=function(M){for(var N=new Array(1).fill(null),D=this.iterator(),t=D.next();D.hasNext();){var i=D.next();this.findCollapseIndex(t,i,N)&&M.add(new Yg(N[0])),t=i}},Tz.prototype.getEdge=function(){return this._edge},Tz.prototype.addEndpoints=function(){var M=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(M),M)},Tz.prototype.createSplitEdge=function(M,N){var D=N.segmentIndex-M.segmentIndex+2,t=this._edge.getCoordinate(N.segmentIndex),i=N.isInterior()||!N.coord.equals2D(t);i||D--;var e=new Array(D).fill(null),j=0;e[j++]=new og(M.coord);for(var T=M.segmentIndex+1;T<=N.segmentIndex;T++)e[j++]=this._edge.getCoordinate(T);return i&&(e[j]=new og(N.coord)),new zz(e,this._edge.getData())},Tz.prototype.add=function(M,N){var D=new jz(this._edge,M,N,this._edge.getSegmentOctant(N)),t=this._nodeMap.get(D);return null!==t?(Kg.isTrue(t.coord.equals2D(M),"Found equal nodes with different coordinates"),t):(this._nodeMap.put(D,D),D)},Tz.prototype.checkSplitEdgesCorrectness=function(M){var N=this._edge.getCoordinates(),D=M.get(0).getCoordinate(0);if(!D.equals2D(N[0]))throw new Jg("bad split edge start point at "+D);var t=M.get(M.size()-1).getCoordinates(),i=t[t.length-1];if(!i.equals2D(N[N.length-1]))throw new Jg("bad split edge end point at "+i)},Tz.prototype.interfaces_=function(){return[]},Tz.prototype.getClass=function(){return Tz};var gz=function(){};gz.prototype.interfaces_=function(){return[]},gz.prototype.getClass=function(){return gz},gz.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var M=arguments[0],N=arguments[1];if(0===M&&0===N)throw new ng("Cannot compute the octant for point ( "+M+", "+N+" )");var D=Math.abs(M),t=Math.abs(N);return M>=0?N>=0?D>=t?0:1:D>=t?7:6:N>=0?D>=t?3:2:D>=t?4:5}if(arguments[0]instanceof og&&arguments[1]instanceof og){var i=arguments[0],e=arguments[1],j=e.x-i.x,T=e.y-i.y;if(0===j&&0===T)throw new ng("Cannot compute the octant for two identical points "+i);return gz.octant(j,T)}};var sz=function(){};sz.prototype.getCoordinates=function(){},sz.prototype.size=function(){},sz.prototype.getCoordinate=function(M){},sz.prototype.isClosed=function(){},sz.prototype.setData=function(M){},sz.prototype.getData=function(){},sz.prototype.interfaces_=function(){return[]},sz.prototype.getClass=function(){return sz};var uz=function(){};uz.prototype.addIntersection=function(M,N){},uz.prototype.interfaces_=function(){return[sz]},uz.prototype.getClass=function(){return uz};var zz=function(){this._nodeList=new Tz(this),this._pts=null,this._data=null;var M=arguments[0],N=arguments[1];this._pts=M,this._data=N};zz.prototype.getCoordinates=function(){return this._pts},zz.prototype.size=function(){return this._pts.length},zz.prototype.getCoordinate=function(M){return this._pts[M]},zz.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},zz.prototype.getSegmentOctant=function(M){return M===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(M),this.getCoordinate(M+1))},zz.prototype.setData=function(M){this._data=M},zz.prototype.safeOctant=function(M,N){return M.equals2D(N)?0:gz.octant(M,N)},zz.prototype.getData=function(){return this._data},zz.prototype.addIntersection=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];this.addIntersectionNode(M,N)}else if(4===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[3],e=new og(D.getIntersection(i));this.addIntersection(e,t)}},zz.prototype.toString=function(){return Vg.toLineString(new ju(this._pts))},zz.prototype.getNodeList=function(){return this._nodeList},zz.prototype.addIntersectionNode=function(M,N){var D=N,t=D+1;if(t<this._pts.length){var i=this._pts[t];M.equals2D(i)&&(D=t)}return this._nodeList.add(M,D)},zz.prototype.addIntersections=function(M,N,D){for(var t=0;t<M.getIntersectionNum();t++)this.addIntersection(M,N,D,t)},zz.prototype.interfaces_=function(){return[uz]},zz.prototype.getClass=function(){return zz},zz.getNodedSubstrings=function(){if(1===arguments.length){var M=arguments[0],N=new os;return zz.getNodedSubstrings(M,N),N}if(2===arguments.length)for(var D=arguments[0],t=arguments[1],i=D.iterator();i.hasNext();)i.next().getNodeList().addSplitEdges(t)};var Az=function(){if(this.p0=null,this.p1=null,0===arguments.length)this.p0=new og,this.p1=new og;else if(1===arguments.length){var M=arguments[0];this.p0=new og(M.p0),this.p1=new og(M.p1)}else if(2===arguments.length)this.p0=arguments[0],this.p1=arguments[1];else if(4===arguments.length){var N=arguments[0],D=arguments[1],t=arguments[2],i=arguments[3];this.p0=new og(N,D),this.p1=new og(t,i)}},Lz={serialVersionUID:{configurable:!0}};Az.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)},Az.prototype.orientationIndex=function(){if(arguments[0]instanceof Az){var M=arguments[0],N=is.orientationIndex(this.p0,this.p1,M.p0),D=is.orientationIndex(this.p0,this.p1,M.p1);return N>=0&&D>=0||N<=0&&D<=0?Math.max(N,D):0}if(arguments[0]instanceof og){var t=arguments[0];return is.orientationIndex(this.p0,this.p1,t)}},Az.prototype.toGeometry=function(M){return M.createLineString([this.p0,this.p1])},Az.prototype.isVertical=function(){return this.p0.x===this.p1.x},Az.prototype.equals=function(M){if(!(M instanceof Az))return!1;var N=M;return this.p0.equals(N.p0)&&this.p1.equals(N.p1)},Az.prototype.intersection=function(M){var N=new Ns;return N.computeIntersection(this.p0,this.p1,M.p0,M.p1),N.hasIntersection()?N.getIntersection(0):null},Az.prototype.project=function(){if(arguments[0]instanceof og){var M=arguments[0];if(M.equals(this.p0)||M.equals(this.p1))return new og(M);var N=this.projectionFactor(M),D=new og;return D.x=this.p0.x+N*(this.p1.x-this.p0.x),D.y=this.p0.y+N*(this.p1.y-this.p0.y),D}if(arguments[0]instanceof Az){var t=arguments[0],i=this.projectionFactor(t.p0),e=this.projectionFactor(t.p1);if(i>=1&&e>=1)return null;if(i<=0&&e<=0)return null;var j=this.project(t.p0);i<0&&(j=this.p0),i>1&&(j=this.p1);var T=this.project(t.p1);return e<0&&(T=this.p0),e>1&&(T=this.p1),new Az(j,T)}},Az.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},Az.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},Az.prototype.getCoordinate=function(M){return 0===M?this.p0:this.p1},Az.prototype.distancePerpendicular=function(M){return is.distancePointLinePerpendicular(M,this.p0,this.p1)},Az.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},Az.prototype.midPoint=function(){return Az.midPoint(this.p0,this.p1)},Az.prototype.projectionFactor=function(M){if(M.equals(this.p0))return 0;if(M.equals(this.p1))return 1;var N=this.p1.x-this.p0.x,D=this.p1.y-this.p0.y,t=N*N+D*D;return t<=0?rg.NaN:((M.x-this.p0.x)*N+(M.y-this.p0.y)*D)/t},Az.prototype.closestPoints=function(M){var N=this.intersection(M);if(null!==N)return[N,N];var D=new Array(2).fill(null),t=rg.MAX_VALUE,i=null,e=this.closestPoint(M.p0);t=e.distance(M.p0),D[0]=e,D[1]=M.p0;var j=this.closestPoint(M.p1);(i=j.distance(M.p1))<t&&(t=i,D[0]=j,D[1]=M.p1);var T=M.closestPoint(this.p0);(i=T.distance(this.p0))<t&&(t=i,D[0]=this.p0,D[1]=T);var g=M.closestPoint(this.p1);return(i=g.distance(this.p1))<t&&(t=i,D[0]=this.p1,D[1]=g),D},Az.prototype.closestPoint=function(M){var N=this.projectionFactor(M);return N>0&&N<1?this.project(M):this.p0.distance(M)<this.p1.distance(M)?this.p0:this.p1},Az.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)},Az.prototype.getLength=function(){return this.p0.distance(this.p1)},Az.prototype.compareTo=function(M){var N=M,D=this.p0.compareTo(N.p0);return 0!==D?D:this.p1.compareTo(N.p1)},Az.prototype.reverse=function(){var M=this.p0;this.p0=this.p1,this.p1=M},Az.prototype.equalsTopo=function(M){return this.p0.equals(M.p0)&&(this.p1.equals(M.p1)||this.p0.equals(M.p1))&&this.p1.equals(M.p0)},Az.prototype.lineIntersection=function(M){try{return Gg.intersection(this.p0,this.p1,M.p0,M.p1)}catch(M){if(!(M instanceof Pg))throw M}return null},Az.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)},Az.prototype.pointAlongOffset=function(M,N){var D=this.p0.x+M*(this.p1.x-this.p0.x),t=this.p0.y+M*(this.p1.y-this.p0.y),i=this.p1.x-this.p0.x,e=this.p1.y-this.p0.y,j=Math.sqrt(i*i+e*e),T=0,g=0;if(0!==N){if(j<=0)throw new Error("Cannot compute offset from zero-length line segment");T=N*i/j,g=N*e/j}return new og(D-g,t+T)},Az.prototype.setCoordinates=function(){if(1===arguments.length){var M=arguments[0];this.setCoordinates(M.p0,M.p1)}else if(2===arguments.length){var N=arguments[0],D=arguments[1];this.p0.x=N.x,this.p0.y=N.y,this.p1.x=D.x,this.p1.y=D.y}},Az.prototype.segmentFraction=function(M){var N=this.projectionFactor(M);return N<0?N=0:(N>1||rg.isNaN(N))&&(N=1),N},Az.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},Az.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},Az.prototype.distance=function(){if(arguments[0]instanceof Az){var M=arguments[0];return is.distanceLineLine(this.p0,this.p1,M.p0,M.p1)}if(arguments[0]instanceof og){var N=arguments[0];return is.distancePointLine(N,this.p0,this.p1)}},Az.prototype.pointAlong=function(M){var N=new og;return N.x=this.p0.x+M*(this.p1.x-this.p0.x),N.y=this.p0.y+M*(this.p1.y-this.p0.y),N},Az.prototype.hashCode=function(){var M=rg.doubleToLongBits(this.p0.x);M^=31*rg.doubleToLongBits(this.p0.y);var N=Math.trunc(M)^Math.trunc(M>>32),D=rg.doubleToLongBits(this.p1.x);return D^=31*rg.doubleToLongBits(this.p1.y),N^Math.trunc(D)^Math.trunc(D>>32)},Az.prototype.interfaces_=function(){return[cg,ki]},Az.prototype.getClass=function(){return Az},Az.midPoint=function(M,N){return new og((M.x+N.x)/2,(M.y+N.y)/2)},Lz.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(Az,Lz);var Iz=function(){this.tempEnv1=new Wg,this.tempEnv2=new Wg,this._overlapSeg1=new Az,this._overlapSeg2=new Az};Iz.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var M=arguments[0],N=arguments[1],D=arguments[2],t=arguments[3];M.getLineSegment(N,this._overlapSeg1),D.getLineSegment(t,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},Iz.prototype.interfaces_=function(){return[]},Iz.prototype.getClass=function(){return Iz};var nz=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var M=arguments[0],N=arguments[1],D=arguments[2],t=arguments[3];this._pts=M,this._start=N,this._end=D,this._context=t};nz.prototype.getLineSegment=function(M,N){N.p0=this._pts[M],N.p1=this._pts[M+1]},nz.prototype.computeSelect=function(M,N,D,t){var i=this._pts[N],e=this._pts[D];if(t.tempEnv1.init(i,e),D-N==1)return t.select(this,N),null;if(!M.intersects(t.tempEnv1))return null;var j=Math.trunc((N+D)/2);N<j&&this.computeSelect(M,N,j,t),j<D&&this.computeSelect(M,j,D,t)},nz.prototype.getCoordinates=function(){for(var M=new Array(this._end-this._start+1).fill(null),N=0,D=this._start;D<=this._end;D++)M[N++]=this._pts[D];return M},nz.prototype.computeOverlaps=function(M,N){this.computeOverlapsInternal(this._start,this._end,M,M._start,M._end,N)},nz.prototype.setId=function(M){this._id=M},nz.prototype.select=function(M,N){this.computeSelect(M,this._start,this._end,N)},nz.prototype.getEnvelope=function(){if(null===this._env){var M=this._pts[this._start],N=this._pts[this._end];this._env=new Wg(M,N)}return this._env},nz.prototype.getEndIndex=function(){return this._end},nz.prototype.getStartIndex=function(){return this._start},nz.prototype.getContext=function(){return this._context},nz.prototype.getId=function(){return this._id},nz.prototype.computeOverlapsInternal=function(M,N,D,t,i,e){var j=this._pts[M],T=this._pts[N],g=D._pts[t],s=D._pts[i];if(N-M==1&&i-t==1)return e.overlap(this,M,D,t),null;if(e.tempEnv1.init(j,T),e.tempEnv2.init(g,s),!e.tempEnv1.intersects(e.tempEnv2))return null;var u=Math.trunc((M+N)/2),z=Math.trunc((t+i)/2);M<u&&(t<z&&this.computeOverlapsInternal(M,u,D,t,z,e),z<i&&this.computeOverlapsInternal(M,u,D,z,i,e)),u<N&&(t<z&&this.computeOverlapsInternal(u,N,D,t,z,e),z<i&&this.computeOverlapsInternal(u,N,D,z,i,e))},nz.prototype.interfaces_=function(){return[]},nz.prototype.getClass=function(){return nz};var rz=function(){};rz.prototype.interfaces_=function(){return[]},rz.prototype.getClass=function(){return rz},rz.getChainStartIndices=function(M){var N=0,D=new os;D.add(new Yg(N));do{var t=rz.findChainEnd(M,N);D.add(new Yg(t)),N=t}while(N<M.length-1);return rz.toIntArray(D)},rz.findChainEnd=function(M,N){for(var D=N;D<M.length-1&&M[D].equals2D(M[D+1]);)D++;if(D>=M.length-1)return M.length-1;for(var t=vu.quadrant(M[D],M[D+1]),i=N+1;i<M.length;){if(!M[i-1].equals2D(M[i])&&vu.quadrant(M[i-1],M[i])!==t)break;i++}return i-1},rz.getChains=function(){if(1===arguments.length){var M=arguments[0];return rz.getChains(M,null)}if(2===arguments.length){for(var N=arguments[0],D=arguments[1],t=new os,i=rz.getChainStartIndices(N),e=0;e<i.length-1;e++){var j=new nz(N,i[e],i[e+1],D);t.add(j)}return t}},rz.toIntArray=function(M){for(var N=new Array(M.size()).fill(null),D=0;D<N.length;D++)N[D]=M.get(D).intValue();return N};var wz=function(){};wz.prototype.computeNodes=function(M){},wz.prototype.getNodedSubstrings=function(){},wz.prototype.interfaces_=function(){return[]},wz.prototype.getClass=function(){return wz};var cz=function(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var M=arguments[0];this.setSegmentIntersector(M)}};cz.prototype.setSegmentIntersector=function(M){this._segInt=M},cz.prototype.interfaces_=function(){return[wz]},cz.prototype.getClass=function(){return cz};var yz=function(M){function N(N){N?M.call(this,N):M.call(this),this._monoChains=new os,this._index=new tz,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}M&&(N.__proto__=M),(N.prototype=Object.create(M&&M.prototype)).constructor=N;var D={SegmentOverlapAction:{configurable:!0}};return N.prototype.getMonotoneChains=function(){return this._monoChains},N.prototype.getNodedSubstrings=function(){return zz.getNodedSubstrings(this._nodedSegStrings)},N.prototype.getIndex=function(){return this._index},N.prototype.add=function(M){for(var N=rz.getChains(M.getCoordinates(),M).iterator();N.hasNext();){var D=N.next();D.setId(this._idCounter++),this._index.insert(D.getEnvelope(),D),this._monoChains.add(D)}},N.prototype.computeNodes=function(M){this._nodedSegStrings=M;for(var N=M.iterator();N.hasNext();)this.add(N.next());this.intersectChains()},N.prototype.intersectChains=function(){for(var M=new az(this._segInt),N=this._monoChains.iterator();N.hasNext();)for(var D=N.next(),t=this._index.query(D.getEnvelope()).iterator();t.hasNext();){var i=t.next();if(i.getId()>D.getId()&&(D.computeOverlaps(i,M),this._nOverlaps++),this._segInt.isDone())return null}},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},D.SegmentOverlapAction.get=function(){return az},Object.defineProperties(N,D),N}(cz),az=function(M){function N(){M.call(this),this._si=null;var N=arguments[0];this._si=N}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.overlap=function(){if(4!==arguments.length)return M.prototype.overlap.apply(this,arguments);var N=arguments[0],D=arguments[1],t=arguments[2],i=arguments[3],e=N.getContext(),j=t.getContext();this._si.processIntersections(e,D,j,i)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Iz),oz=function M(){if(this._quadrantSegments=M.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=M.CAP_ROUND,this._joinStyle=M.JOIN_ROUND,this._mitreLimit=M.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=M.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var N=arguments[0];this.setQuadrantSegments(N)}else if(2===arguments.length){var D=arguments[0],t=arguments[1];this.setQuadrantSegments(D),this.setEndCapStyle(t)}else if(4===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2],T=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(e),this.setJoinStyle(j),this.setMitreLimit(T)}},Ez={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};oz.prototype.getEndCapStyle=function(){return this._endCapStyle},oz.prototype.isSingleSided=function(){return this._isSingleSided},oz.prototype.setQuadrantSegments=function(M){this._quadrantSegments=M,0===this._quadrantSegments&&(this._joinStyle=oz.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=oz.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),M<=0&&(this._quadrantSegments=1),this._joinStyle!==oz.JOIN_ROUND&&(this._quadrantSegments=oz.DEFAULT_QUADRANT_SEGMENTS)},oz.prototype.getJoinStyle=function(){return this._joinStyle},oz.prototype.setJoinStyle=function(M){this._joinStyle=M},oz.prototype.setSimplifyFactor=function(M){this._simplifyFactor=M<0?0:M},oz.prototype.getSimplifyFactor=function(){return this._simplifyFactor},oz.prototype.getQuadrantSegments=function(){return this._quadrantSegments},oz.prototype.setEndCapStyle=function(M){this._endCapStyle=M},oz.prototype.getMitreLimit=function(){return this._mitreLimit},oz.prototype.setMitreLimit=function(M){this._mitreLimit=M},oz.prototype.setSingleSided=function(M){this._isSingleSided=M},oz.prototype.interfaces_=function(){return[]},oz.prototype.getClass=function(){return oz},oz.bufferDistanceError=function(M){var N=Math.PI/2/M;return 1-Math.cos(N/2)},Ez.CAP_ROUND.get=function(){return 1},Ez.CAP_FLAT.get=function(){return 2},Ez.CAP_SQUARE.get=function(){return 3},Ez.JOIN_ROUND.get=function(){return 1},Ez.JOIN_MITRE.get=function(){return 2},Ez.JOIN_BEVEL.get=function(){return 3},Ez.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Ez.DEFAULT_MITRE_LIMIT.get=function(){return 5},Ez.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(oz,Ez);var Oz=function(M){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=is.COUNTERCLOCKWISE,this._inputLine=M||null},xz={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Oz.prototype.isDeletable=function(M,N,D,t){var i=this._inputLine[M],e=this._inputLine[N],j=this._inputLine[D];return!!this.isConcave(i,e,j)&&!!this.isShallow(i,e,j,t)&&this.isShallowSampled(i,e,M,D,t)},Oz.prototype.deleteShallowConcavities=function(){for(var M=1,N=this.findNextNonDeletedIndex(M),D=this.findNextNonDeletedIndex(N),t=!1;D<this._inputLine.length;){var i=!1;this.isDeletable(M,N,D,this._distanceTol)&&(this._isDeleted[N]=Oz.DELETE,i=!0,t=!0),M=i?D:N,N=this.findNextNonDeletedIndex(M),D=this.findNextNonDeletedIndex(N)}return t},Oz.prototype.isShallowConcavity=function(M,N,D,t){return is.computeOrientation(M,N,D)===this._angleOrientation&&is.distancePointLine(N,M,D)<t},Oz.prototype.isShallowSampled=function(M,N,D,t,i){var e=Math.trunc((t-D)/Oz.NUM_PTS_TO_CHECK);e<=0&&(e=1);for(var j=D;j<t;j+=e)if(!this.isShallow(M,N,this._inputLine[j],i))return!1;return!0},Oz.prototype.isConcave=function(M,N,D){var t=is.computeOrientation(M,N,D)===this._angleOrientation;return t},Oz.prototype.simplify=function(M){this._distanceTol=Math.abs(M),M<0&&(this._angleOrientation=is.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var N=!1;do{N=this.deleteShallowConcavities()}while(N);return this.collapseLine()},Oz.prototype.findNextNonDeletedIndex=function(M){for(var N=M+1;N<this._inputLine.length&&this._isDeleted[N]===Oz.DELETE;)N++;return N},Oz.prototype.isShallow=function(M,N,D,t){return is.distancePointLine(N,M,D)<t},Oz.prototype.collapseLine=function(){for(var M=new Os,N=0;N<this._inputLine.length;N++)this._isDeleted[N]!==Oz.DELETE&&M.add(this._inputLine[N]);return M.toCoordinateArray()},Oz.prototype.interfaces_=function(){return[]},Oz.prototype.getClass=function(){return Oz},Oz.simplify=function(M,N){return new Oz(M).simplify(N)},xz.INIT.get=function(){return 0},xz.DELETE.get=function(){return 1},xz.KEEP.get=function(){return 1},xz.NUM_PTS_TO_CHECK.get=function(){return 10},Object.defineProperties(Oz,xz);var Cz=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new os},Sz={COORDINATE_ARRAY_TYPE:{configurable:!0}};Cz.prototype.getCoordinates=function(){return this._ptList.toArray(Cz.COORDINATE_ARRAY_TYPE)},Cz.prototype.setPrecisionModel=function(M){this._precisionModel=M},Cz.prototype.addPt=function(M){var N=new og(M);if(this._precisionModel.makePrecise(N),this.isRedundant(N))return null;this._ptList.add(N)},Cz.prototype.revere=function(){},Cz.prototype.addPts=function(M,N){if(N)for(var D=0;D<M.length;D++)this.addPt(M[D]);else for(var t=M.length-1;t>=0;t--)this.addPt(M[t])},Cz.prototype.isRedundant=function(M){if(this._ptList.size()<1)return!1;var N=this._ptList.get(this._ptList.size()-1);return M.distance(N)<this._minimimVertexDistance},Cz.prototype.toString=function(){return(new nu).createLineString(this.getCoordinates()).toString()},Cz.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var M=new og(this._ptList.get(0)),N=this._ptList.get(this._ptList.size()-1);if(M.equals(N))return null;this._ptList.add(M)},Cz.prototype.setMinimumVertexDistance=function(M){this._minimimVertexDistance=M},Cz.prototype.interfaces_=function(){return[]},Cz.prototype.getClass=function(){return Cz},Sz.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)},Object.defineProperties(Cz,Sz);var lz=function(){},kz={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};lz.prototype.interfaces_=function(){return[]},lz.prototype.getClass=function(){return lz},lz.toDegrees=function(M){return 180*M/Math.PI},lz.normalize=function(M){for(;M>Math.PI;)M-=lz.PI_TIMES_2;for(;M<=-Math.PI;)M+=lz.PI_TIMES_2;return M},lz.angle=function(){if(1===arguments.length){var M=arguments[0];return Math.atan2(M.y,M.x)}if(2===arguments.length){var N=arguments[0],D=arguments[1],t=D.x-N.x,i=D.y-N.y;return Math.atan2(i,t)}},lz.isAcute=function(M,N,D){var t=M.x-N.x,i=M.y-N.y;return t*(D.x-N.x)+i*(D.y-N.y)>0},lz.isObtuse=function(M,N,D){var t=M.x-N.x,i=M.y-N.y;return t*(D.x-N.x)+i*(D.y-N.y)<0},lz.interiorAngle=function(M,N,D){var t=lz.angle(N,M),i=lz.angle(N,D);return Math.abs(i-t)},lz.normalizePositive=function(M){if(M<0){for(;M<0;)M+=lz.PI_TIMES_2;M>=lz.PI_TIMES_2&&(M=0)}else{for(;M>=lz.PI_TIMES_2;)M-=lz.PI_TIMES_2;M<0&&(M=0)}return M},lz.angleBetween=function(M,N,D){var t=lz.angle(N,M),i=lz.angle(N,D);return lz.diff(t,i)},lz.diff=function(M,N){var D=null;return(D=M<N?N-M:M-N)>Math.PI&&(D=2*Math.PI-D),D},lz.toRadians=function(M){return M*Math.PI/180},lz.getTurn=function(M,N){var D=Math.sin(N-M);return D>0?lz.COUNTERCLOCKWISE:D<0?lz.CLOCKWISE:lz.NONE},lz.angleBetweenOriented=function(M,N,D){var t=lz.angle(N,M),i=lz.angle(N,D)-t;return i<=-Math.PI?i+lz.PI_TIMES_2:i>Math.PI?i-lz.PI_TIMES_2:i},kz.PI_TIMES_2.get=function(){return 2*Math.PI},kz.PI_OVER_2.get=function(){return Math.PI/2},kz.PI_OVER_4.get=function(){return Math.PI/4},kz.COUNTERCLOCKWISE.get=function(){return is.COUNTERCLOCKWISE},kz.CLOCKWISE.get=function(){return is.CLOCKWISE},kz.NONE.get=function(){return is.COLLINEAR},Object.defineProperties(lz,kz);var Qz=function M(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new Az,this._seg1=new Az,this._offset0=new Az,this._offset1=new Az,this._side=0,this._hasNarrowConcaveAngle=!1;var N=arguments[0],D=arguments[1],t=arguments[2];this._precisionModel=N,this._bufParams=D,this._li=new Ns,this._filletAngleQuantum=Math.PI/2/D.getQuadrantSegments(),D.getQuadrantSegments()>=8&&D.getJoinStyle()===oz.JOIN_ROUND&&(this._closingSegLengthFactor=M.MAX_CLOSING_SEG_LEN_FACTOR),this.init(t)},dz={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};Qz.prototype.addNextSegment=function(M,N){if(this._s0=this._s1,this._s1=this._s2,this._s2=M,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var D=is.computeOrientation(this._s0,this._s1,this._s2),t=D===is.CLOCKWISE&&this._side===Ou.LEFT||D===is.COUNTERCLOCKWISE&&this._side===Ou.RIGHT;0===D?this.addCollinear(N):t?this.addOutsideTurn(D,N):this.addInsideTurn(D,N)},Qz.prototype.addLineEndCap=function(M,N){var D=new Az(M,N),t=new Az;this.computeOffsetSegment(D,Ou.LEFT,this._distance,t);var i=new Az;this.computeOffsetSegment(D,Ou.RIGHT,this._distance,i);var e=N.x-M.x,j=N.y-M.y,T=Math.atan2(j,e);switch(this._bufParams.getEndCapStyle()){case oz.CAP_ROUND:this._segList.addPt(t.p1),this.addFilletArc(N,T+Math.PI/2,T-Math.PI/2,is.CLOCKWISE,this._distance),this._segList.addPt(i.p1);break;case oz.CAP_FLAT:this._segList.addPt(t.p1),this._segList.addPt(i.p1);break;case oz.CAP_SQUARE:var g=new og;g.x=Math.abs(this._distance)*Math.cos(T),g.y=Math.abs(this._distance)*Math.sin(T);var s=new og(t.p1.x+g.x,t.p1.y+g.y),u=new og(i.p1.x+g.x,i.p1.y+g.y);this._segList.addPt(s),this._segList.addPt(u)}},Qz.prototype.getCoordinates=function(){return this._segList.getCoordinates()},Qz.prototype.addMitreJoin=function(M,N,D,t){var i=!0,e=null;try{e=Gg.intersection(N.p0,N.p1,D.p0,D.p1),(t<=0?1:e.distance(M)/Math.abs(t))>this._bufParams.getMitreLimit()&&(i=!1)}catch(M){if(!(M instanceof Pg))throw M;e=new og(0,0),i=!1}i?this._segList.addPt(e):this.addLimitedMitreJoin(N,D,t,this._bufParams.getMitreLimit())},Qz.prototype.addFilletCorner=function(M,N,D,t,i){var e=N.x-M.x,j=N.y-M.y,T=Math.atan2(j,e),g=D.x-M.x,s=D.y-M.y,u=Math.atan2(s,g);t===is.CLOCKWISE?T<=u&&(T+=2*Math.PI):T>=u&&(T-=2*Math.PI),this._segList.addPt(N),this.addFilletArc(M,T,u,t,i),this._segList.addPt(D)},Qz.prototype.addOutsideTurn=function(M,N){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*Qz.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===oz.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===oz.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(N&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,M,this._distance),this._segList.addPt(this._offset1.p0))},Qz.prototype.createSquare=function(M){this._segList.addPt(new og(M.x+this._distance,M.y+this._distance)),this._segList.addPt(new og(M.x+this._distance,M.y-this._distance)),this._segList.addPt(new og(M.x-this._distance,M.y-this._distance)),this._segList.addPt(new og(M.x-this._distance,M.y+this._distance)),this._segList.closeRing()},Qz.prototype.addSegments=function(M,N){this._segList.addPts(M,N)},Qz.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)},Qz.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)},Qz.prototype.initSideSegments=function(M,N,D){this._s1=M,this._s2=N,this._side=D,this._seg1.setCoordinates(M,N),this.computeOffsetSegment(this._seg1,D,this._distance,this._offset1)},Qz.prototype.addLimitedMitreJoin=function(M,N,D,t){var i=this._seg0.p1,e=lz.angle(i,this._seg0.p0),j=lz.angleBetweenOriented(this._seg0.p0,i,this._seg1.p1)/2,T=lz.normalize(e+j),g=lz.normalize(T+Math.PI),s=t*D,u=D-s*Math.abs(Math.sin(j)),z=i.x+s*Math.cos(g),A=i.y+s*Math.sin(g),L=new og(z,A),I=new Az(i,L),n=I.pointAlongOffset(1,u),r=I.pointAlongOffset(1,-u);this._side===Ou.LEFT?(this._segList.addPt(n),this._segList.addPt(r)):(this._segList.addPt(r),this._segList.addPt(n))},Qz.prototype.computeOffsetSegment=function(M,N,D,t){var i=N===Ou.LEFT?1:-1,e=M.p1.x-M.p0.x,j=M.p1.y-M.p0.y,T=Math.sqrt(e*e+j*j),g=i*D*e/T,s=i*D*j/T;t.p0.x=M.p0.x-s,t.p0.y=M.p0.y+g,t.p1.x=M.p1.x-s,t.p1.y=M.p1.y+g},Qz.prototype.addFilletArc=function(M,N,D,t,i){var e=t===is.CLOCKWISE?-1:1,j=Math.abs(N-D),T=Math.trunc(j/this._filletAngleQuantum+.5);if(T<1)return null;for(var g=j/T,s=0,u=new og;s<j;){var z=N+e*s;u.x=M.x+i*Math.cos(z),u.y=M.y+i*Math.sin(z),this._segList.addPt(u),s+=g}},Qz.prototype.addInsideTurn=function(M,N){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*Qz.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var D=new og((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(D);var t=new og((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(t)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},Qz.prototype.createCircle=function(M){var N=new og(M.x+this._distance,M.y);this._segList.addPt(N),this.addFilletArc(M,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},Qz.prototype.addBevelJoin=function(M,N){this._segList.addPt(M.p1),this._segList.addPt(N.p0)},Qz.prototype.init=function(M){this._distance=M,this._maxCurveSegmentError=M*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new Cz,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(M*Qz.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},Qz.prototype.addCollinear=function(M){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===oz.JOIN_BEVEL||this._bufParams.getJoinStyle()===oz.JOIN_MITRE?(M&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,is.CLOCKWISE,this._distance))},Qz.prototype.closeRing=function(){this._segList.closeRing()},Qz.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},Qz.prototype.interfaces_=function(){return[]},Qz.prototype.getClass=function(){return Qz},dz.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},dz.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},dz.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},dz.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(Qz,dz);var Yz=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var M=arguments[0],N=arguments[1];this._precisionModel=M,this._bufParams=N};Yz.prototype.getOffsetCurve=function(M,N){if(this._distance=N,0===N)return null;var D=N<0,t=Math.abs(N),i=this.getSegGen(t);M.length<=1?this.computePointCurve(M[0],i):this.computeOffsetCurve(M,D,i);var e=i.getCoordinates();return D&&xs.reverse(e),e},Yz.prototype.computeSingleSidedBufferCurve=function(M,N,D){var t=this.simplifyTolerance(this._distance);if(N){D.addSegments(M,!0);var i=Oz.simplify(M,-t),e=i.length-1;D.initSideSegments(i[e],i[e-1],Ou.LEFT),D.addFirstSegment();for(var j=e-2;j>=0;j--)D.addNextSegment(i[j],!0)}else{D.addSegments(M,!1);var T=Oz.simplify(M,t),g=T.length-1;D.initSideSegments(T[0],T[1],Ou.LEFT),D.addFirstSegment();for(var s=2;s<=g;s++)D.addNextSegment(T[s],!0)}D.addLastSegment(),D.closeRing()},Yz.prototype.computeRingBufferCurve=function(M,N,D){var t=this.simplifyTolerance(this._distance);N===Ou.RIGHT&&(t=-t);var i=Oz.simplify(M,t),e=i.length-1;D.initSideSegments(i[e-1],i[0],N);for(var j=1;j<=e;j++){var T=1!==j;D.addNextSegment(i[j],T)}D.closeRing()},Yz.prototype.computeLineBufferCurve=function(M,N){var D=this.simplifyTolerance(this._distance),t=Oz.simplify(M,D),i=t.length-1;N.initSideSegments(t[0],t[1],Ou.LEFT);for(var e=2;e<=i;e++)N.addNextSegment(t[e],!0);N.addLastSegment(),N.addLineEndCap(t[i-1],t[i]);var j=Oz.simplify(M,-D),T=j.length-1;N.initSideSegments(j[T],j[T-1],Ou.LEFT);for(var g=T-2;g>=0;g--)N.addNextSegment(j[g],!0);N.addLastSegment(),N.addLineEndCap(j[1],j[0]),N.closeRing()},Yz.prototype.computePointCurve=function(M,N){switch(this._bufParams.getEndCapStyle()){case oz.CAP_ROUND:N.createCircle(M);break;case oz.CAP_SQUARE:N.createSquare(M)}},Yz.prototype.getLineCurve=function(M,N){if(this._distance=N,N<0&&!this._bufParams.isSingleSided())return null;if(0===N)return null;var D=Math.abs(N),t=this.getSegGen(D);if(M.length<=1)this.computePointCurve(M[0],t);else if(this._bufParams.isSingleSided()){var i=N<0;this.computeSingleSidedBufferCurve(M,i,t)}else this.computeLineBufferCurve(M,t);return t.getCoordinates()},Yz.prototype.getBufferParameters=function(){return this._bufParams},Yz.prototype.simplifyTolerance=function(M){return M*this._bufParams.getSimplifyFactor()},Yz.prototype.getRingCurve=function(M,N,D){if(this._distance=D,M.length<=2)return this.getLineCurve(M,D);if(0===D)return Yz.copyCoordinates(M);var t=this.getSegGen(D);return this.computeRingBufferCurve(M,N,t),t.getCoordinates()},Yz.prototype.computeOffsetCurve=function(M,N,D){var t=this.simplifyTolerance(this._distance);if(N){var i=Oz.simplify(M,-t),e=i.length-1;D.initSideSegments(i[e],i[e-1],Ou.LEFT),D.addFirstSegment();for(var j=e-2;j>=0;j--)D.addNextSegment(i[j],!0)}else{var T=Oz.simplify(M,t),g=T.length-1;D.initSideSegments(T[0],T[1],Ou.LEFT),D.addFirstSegment();for(var s=2;s<=g;s++)D.addNextSegment(T[s],!0)}D.addLastSegment()},Yz.prototype.getSegGen=function(M){return new Qz(this._precisionModel,this._bufParams,M)},Yz.prototype.interfaces_=function(){return[]},Yz.prototype.getClass=function(){return Yz},Yz.copyCoordinates=function(M){for(var N=new Array(M.length).fill(null),D=0;D<N.length;D++)N[D]=new og(M[D]);return N};var pz=function(){this._subgraphs=null,this._seg=new Az,this._cga=new is;var M=arguments[0];this._subgraphs=M},Uz={DepthSegment:{configurable:!0}};pz.prototype.findStabbedSegments=function(){if(1===arguments.length){for(var M=arguments[0],N=new os,D=this._subgraphs.iterator();D.hasNext();){var t=D.next(),i=t.getEnvelope();M.y<i.getMinY()||M.y>i.getMaxY()||this.findStabbedSegments(M,t.getDirectedEdges(),N)}return N}if(3===arguments.length)if(lg(arguments[2],as)&&arguments[0]instanceof og&&arguments[1]instanceof Pu){for(var e=arguments[0],j=arguments[1],T=arguments[2],g=j.getEdge().getCoordinates(),s=0;s<g.length-1;s++)if(this._seg.p0=g[s],this._seg.p1=g[s+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<e.x)&&!(this._seg.isHorizontal()||e.y<this._seg.p0.y||e.y>this._seg.p1.y||is.computeOrientation(this._seg.p0,this._seg.p1,e)===is.RIGHT)){var u=j.getDepth(Ou.LEFT);this._seg.p0.equals(g[s])||(u=j.getDepth(Ou.RIGHT));var z=new hz(this._seg,u);T.add(z)}}else if(lg(arguments[2],as)&&arguments[0]instanceof og&&lg(arguments[1],as))for(var A=arguments[0],L=arguments[1],I=arguments[2],n=L.iterator();n.hasNext();){var r=n.next();r.isForward()&&this.findStabbedSegments(A,r,I)}},pz.prototype.getDepth=function(M){var N=this.findStabbedSegments(M);return 0===N.size()?0:qu.min(N)._leftDepth},pz.prototype.interfaces_=function(){return[]},pz.prototype.getClass=function(){return pz},Uz.DepthSegment.get=function(){return hz},Object.defineProperties(pz,Uz);var hz=function(){this._upwardSeg=null,this._leftDepth=null;var M=arguments[0],N=arguments[1];this._upwardSeg=new Az(M),this._leftDepth=N};hz.prototype.compareTo=function(M){var N=M;if(this._upwardSeg.minX()>=N._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=N._upwardSeg.minX())return-1;var D=this._upwardSeg.orientationIndex(N._upwardSeg);return 0!==D||0!=(D=-1*N._upwardSeg.orientationIndex(this._upwardSeg))?D:this._upwardSeg.compareTo(N._upwardSeg)},hz.prototype.compareX=function(M,N){var D=M.p0.compareTo(N.p0);return 0!==D?D:M.p1.compareTo(N.p1)},hz.prototype.toString=function(){return this._upwardSeg.toString()},hz.prototype.interfaces_=function(){return[cg]},hz.prototype.getClass=function(){return hz};var fz=function(M,N,D){this.p0=M||null,this.p1=N||null,this.p2=D||null};fz.prototype.area=function(){return fz.area(this.p0,this.p1,this.p2)},fz.prototype.signedArea=function(){return fz.signedArea(this.p0,this.p1,this.p2)},fz.prototype.interpolateZ=function(M){if(null===M)throw new ng("Supplied point is null.");return fz.interpolateZ(M,this.p0,this.p1,this.p2)},fz.prototype.longestSideLength=function(){return fz.longestSideLength(this.p0,this.p1,this.p2)},fz.prototype.isAcute=function(){return fz.isAcute(this.p0,this.p1,this.p2)},fz.prototype.circumcentre=function(){return fz.circumcentre(this.p0,this.p1,this.p2)},fz.prototype.area3D=function(){return fz.area3D(this.p0,this.p1,this.p2)},fz.prototype.centroid=function(){return fz.centroid(this.p0,this.p1,this.p2)},fz.prototype.inCentre=function(){return fz.inCentre(this.p0,this.p1,this.p2)},fz.prototype.interfaces_=function(){return[]},fz.prototype.getClass=function(){return fz},fz.area=function(M,N,D){return Math.abs(((D.x-M.x)*(N.y-M.y)-(N.x-M.x)*(D.y-M.y))/2)},fz.signedArea=function(M,N,D){return((D.x-M.x)*(N.y-M.y)-(N.x-M.x)*(D.y-M.y))/2},fz.det=function(M,N,D,t){return M*t-N*D},fz.interpolateZ=function(M,N,D,t){var i=N.x,e=N.y,j=D.x-i,T=t.x-i,g=D.y-e,s=t.y-e,u=j*s-T*g,z=M.x-i,A=M.y-e,L=(s*z-T*A)/u,I=(-g*z+j*A)/u;return N.z+L*(D.z-N.z)+I*(t.z-N.z)},fz.longestSideLength=function(M,N,D){var t=M.distance(N),i=N.distance(D),e=D.distance(M),j=t;return i>j&&(j=i),e>j&&(j=e),j},fz.isAcute=function(M,N,D){return!!lz.isAcute(M,N,D)&&!!lz.isAcute(N,D,M)&&!!lz.isAcute(D,M,N)},fz.circumcentre=function(M,N,D){var t=D.x,i=D.y,e=M.x-t,j=M.y-i,T=N.x-t,g=N.y-i,s=2*fz.det(e,j,T,g),u=fz.det(j,e*e+j*j,g,T*T+g*g),z=fz.det(e,e*e+j*j,T,T*T+g*g);return new og(t-u/s,i+z/s)},fz.perpendicularBisector=function(M,N){var D=N.x-M.x,t=N.y-M.y,i=new Gg(M.x+D/2,M.y+t/2,1),e=new Gg(M.x-t+D/2,M.y+D+t/2,1);return new Gg(i,e)},fz.angleBisector=function(M,N,D){var t=N.distance(M),i=t/(t+N.distance(D)),e=D.x-M.x,j=D.y-M.y;return new og(M.x+i*e,M.y+i*j)},fz.area3D=function(M,N,D){var t=N.x-M.x,i=N.y-M.y,e=N.z-M.z,j=D.x-M.x,T=D.y-M.y,g=D.z-M.z,s=i*g-e*T,u=e*j-t*g,z=t*T-i*j,A=s*s+u*u+z*z,L=Math.sqrt(A)/2;return L},fz.centroid=function(M,N,D){var t=(M.x+N.x+D.x)/3,i=(M.y+N.y+D.y)/3;return new og(t,i)},fz.inCentre=function(M,N,D){var t=N.distance(D),i=M.distance(D),e=M.distance(N),j=t+i+e,T=(t*M.x+i*N.x+e*D.x)/j,g=(t*M.y+i*N.y+e*D.y)/j;return new og(T,g)};var mz=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new os;var M=arguments[0],N=arguments[1],D=arguments[2];this._inputGeom=M,this._distance=N,this._curveBuilder=D};mz.prototype.addPoint=function(M){if(this._distance<=0)return null;var N=M.getCoordinates(),D=this._curveBuilder.getLineCurve(N,this._distance);this.addCurve(D,Cg.EXTERIOR,Cg.INTERIOR)},mz.prototype.addPolygon=function(M){var N=this._distance,D=Ou.LEFT;this._distance<0&&(N=-this._distance,D=Ou.RIGHT);var t=M.getExteriorRing(),i=xs.removeRepeatedPoints(t.getCoordinates());if(this._distance<0&&this.isErodedCompletely(t,this._distance))return null;if(this._distance<=0&&i.length<3)return null;this.addPolygonRing(i,N,D,Cg.EXTERIOR,Cg.INTERIOR);for(var e=0;e<M.getNumInteriorRing();e++){var j=M.getInteriorRingN(e),T=xs.removeRepeatedPoints(j.getCoordinates());this._distance>0&&this.isErodedCompletely(j,-this._distance)||this.addPolygonRing(T,N,Ou.opposite(D),Cg.INTERIOR,Cg.EXTERIOR)}},mz.prototype.isTriangleErodedCompletely=function(M,N){var D=new fz(M[0],M[1],M[2]),t=D.inCentre();return is.distancePointLine(t,D.p0,D.p1)<Math.abs(N)},mz.prototype.addLineString=function(M){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var N=xs.removeRepeatedPoints(M.getCoordinates()),D=this._curveBuilder.getLineCurve(N,this._distance);this.addCurve(D,Cg.EXTERIOR,Cg.INTERIOR)},mz.prototype.addCurve=function(M,N,D){if(null===M||M.length<2)return null;var t=new zz(M,new du(0,Cg.BOUNDARY,N,D));this._curveList.add(t)},mz.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList},mz.prototype.addPolygonRing=function(M,N,D,t,i){if(0===N&&M.length<$s.MINIMUM_VALID_SIZE)return null;var e=t,j=i;M.length>=$s.MINIMUM_VALID_SIZE&&is.isCCW(M)&&(e=i,j=t,D=Ou.opposite(D));var T=this._curveBuilder.getRingCurve(M,D,N);this.addCurve(T,e,j)},mz.prototype.add=function(M){if(M.isEmpty())return null;M instanceof qs?this.addPolygon(M):M instanceof Hs?this.addLineString(M):M instanceof Vs?this.addPoint(M):(M instanceof Ks||M instanceof Zs||M instanceof Mu||M instanceof Ps)&&this.addCollection(M)},mz.prototype.isErodedCompletely=function(M,N){var D=M.getCoordinates();if(D.length<4)return N<0;if(4===D.length)return this.isTriangleErodedCompletely(D,N);var t=M.getEnvelopeInternal(),i=Math.min(t.getHeight(),t.getWidth());return N<0&&2*Math.abs(N)>i},mz.prototype.addCollection=function(M){for(var N=0;N<M.getNumGeometries();N++){var D=M.getGeometryN(N);this.add(D)}},mz.prototype.interfaces_=function(){return[]},mz.prototype.getClass=function(){return mz};var vz=function(){};vz.prototype.locate=function(M){},vz.prototype.interfaces_=function(){return[]},vz.prototype.getClass=function(){return vz};var Bz=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var M=arguments[0];this._parent=M,this._atStart=!0,this._index=0,this._max=M.getNumGeometries()};Bz.prototype.next=function(){if(this._atStart)return this._atStart=!1,Bz.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new Qi;var M=this._parent.getGeometryN(this._index++);return M instanceof Ps?(this._subcollectionIterator=new Bz(M),this._subcollectionIterator.next()):M},Bz.prototype.remove=function(){throw new Error(this.getClass().getName())},Bz.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},Bz.prototype.interfaces_=function(){return[ys]},Bz.prototype.getClass=function(){return Bz},Bz.isAtomic=function(M){return!(M instanceof Ps)};var bz=function(){this._geom=null;var M=arguments[0];this._geom=M};bz.prototype.locate=function(M){return bz.locate(M,this._geom)},bz.prototype.interfaces_=function(){return[vz]},bz.prototype.getClass=function(){return bz},bz.isPointInRing=function(M,N){return!!N.getEnvelopeInternal().intersects(M)&&is.isPointInRing(M,N.getCoordinates())},bz.containsPointInPolygon=function(M,N){if(N.isEmpty())return!1;var D=N.getExteriorRing();if(!bz.isPointInRing(M,D))return!1;for(var t=0;t<N.getNumInteriorRing();t++){var i=N.getInteriorRingN(t);if(bz.isPointInRing(M,i))return!1}return!0},bz.containsPoint=function(M,N){if(N instanceof qs)return bz.containsPointInPolygon(M,N);if(N instanceof Ps)for(var D=new Bz(N);D.hasNext();){var t=D.next();if(t!==N&&bz.containsPoint(M,t))return!0}return!1},bz.locate=function(M,N){return N.isEmpty()?Cg.EXTERIOR:bz.containsPoint(M,N)?Cg.INTERIOR:Cg.EXTERIOR};var Pz=function(){this._edgeMap=new vi,this._edgeList=null,this._ptInAreaLocation=[Cg.NONE,Cg.NONE]};Pz.prototype.getNextCW=function(M){this.getEdges();var N=this._edgeList.indexOf(M),D=N-1;return 0===N&&(D=this._edgeList.size()-1),this._edgeList.get(D)},Pz.prototype.propagateSideLabels=function(M){for(var N=Cg.NONE,D=this.iterator();D.hasNext();){var t=D.next().getLabel();t.isArea(M)&&t.getLocation(M,Ou.LEFT)!==Cg.NONE&&(N=t.getLocation(M,Ou.LEFT))}if(N===Cg.NONE)return null;for(var i=N,e=this.iterator();e.hasNext();){var j=e.next(),T=j.getLabel();if(T.getLocation(M,Ou.ON)===Cg.NONE&&T.setLocation(M,Ou.ON,i),T.isArea(M)){var g=T.getLocation(M,Ou.LEFT),s=T.getLocation(M,Ou.RIGHT);if(s!==Cg.NONE){if(s!==i)throw new Su("side location conflict",j.getCoordinate());g===Cg.NONE&&Kg.shouldNeverReachHere("found single null side (at "+j.getCoordinate()+")"),i=g}else Kg.isTrue(T.getLocation(M,Ou.LEFT)===Cg.NONE,"found single null side"),T.setLocation(M,Ou.RIGHT,i),T.setLocation(M,Ou.LEFT,i)}}},Pz.prototype.getCoordinate=function(){var M=this.iterator();return M.hasNext()?M.next().getCoordinate():null},Pz.prototype.print=function(M){Zg.out.println("EdgeEndStar: "+this.getCoordinate());for(var N=this.iterator();N.hasNext();)N.next().print(M)},Pz.prototype.isAreaLabelsConsistent=function(M){return this.computeEdgeEndLabels(M.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},Pz.prototype.checkAreaLabelsConsistent=function(M){var N=this.getEdges();if(N.size()<=0)return!0;var D=N.size()-1,t=N.get(D).getLabel().getLocation(M,Ou.LEFT);Kg.isTrue(t!==Cg.NONE,"Found unlabelled area edge");for(var i=t,e=this.iterator();e.hasNext();){var j=e.next().getLabel();Kg.isTrue(j.isArea(M),"Found non-area edge");var T=j.getLocation(M,Ou.LEFT),g=j.getLocation(M,Ou.RIGHT);if(T===g)return!1;if(g!==i)return!1;i=T}return!0},Pz.prototype.findIndex=function(M){this.iterator();for(var N=0;N<this._edgeList.size();N++)if(this._edgeList.get(N)===M)return N;return-1},Pz.prototype.iterator=function(){return this.getEdges().iterator()},Pz.prototype.getEdges=function(){return null===this._edgeList&&(this._edgeList=new os(this._edgeMap.values())),this._edgeList},Pz.prototype.getLocation=function(M,N,D){return this._ptInAreaLocation[M]===Cg.NONE&&(this._ptInAreaLocation[M]=bz.locate(N,D[M].getGeometry())),this._ptInAreaLocation[M]},Pz.prototype.toString=function(){var M=new dg;M.append("EdgeEndStar: "+this.getCoordinate()),M.append("\n");for(var N=this.iterator();N.hasNext();){var D=N.next();M.append(D),M.append("\n")}return M.toString()},Pz.prototype.computeEdgeEndLabels=function(M){for(var N=this.iterator();N.hasNext();)N.next().computeLabel(M)},Pz.prototype.computeLabelling=function(M){this.computeEdgeEndLabels(M[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var N=[!1,!1],D=this.iterator();D.hasNext();)for(var t=D.next().getLabel(),i=0;i<2;i++)t.isLine(i)&&t.getLocation(i)===Cg.BOUNDARY&&(N[i]=!0);for(var e=this.iterator();e.hasNext();)for(var j=e.next(),T=j.getLabel(),g=0;g<2;g++)if(T.isAnyNull(g)){var s=Cg.NONE;if(N[g])s=Cg.EXTERIOR;else{var u=j.getCoordinate();s=this.getLocation(g,u,M)}T.setAllLocationsIfNull(g,s)}},Pz.prototype.getDegree=function(){return this._edgeMap.size()},Pz.prototype.insertEdgeEnd=function(M,N){this._edgeMap.put(M,N),this._edgeList=null},Pz.prototype.interfaces_=function(){return[]},Pz.prototype.getClass=function(){return Pz};var Zz=function(M){function N(){M.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.linkResultDirectedEdges=function(){this.getResultAreaEdges();for(var M=null,N=null,D=this._SCANNING_FOR_INCOMING,t=0;t<this._resultAreaEdgeList.size();t++){var i=this._resultAreaEdgeList.get(t),e=i.getSym();if(i.getLabel().isArea())switch(null===M&&i.isInResult()&&(M=i),D){case this._SCANNING_FOR_INCOMING:if(!e.isInResult())continue;N=e,D=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!i.isInResult())continue;N.setNext(i),D=this._SCANNING_FOR_INCOMING}}if(D===this._LINKING_TO_OUTGOING){if(null===M)throw new Su("no outgoing dirEdge found",this.getCoordinate());Kg.isTrue(M.isInResult(),"unable to link last incoming dirEdge"),N.setNext(M)}},N.prototype.insert=function(M){var N=M;this.insertEdgeEnd(N,N)},N.prototype.getRightmostEdge=function(){var M=this.getEdges(),N=M.size();if(N<1)return null;var D=M.get(0);if(1===N)return D;var t=M.get(N-1),i=D.getQuadrant(),e=t.getQuadrant();return vu.isNorthern(i)&&vu.isNorthern(e)?D:vu.isNorthern(i)||vu.isNorthern(e)?0!==D.getDy()?D:0!==t.getDy()?t:(Kg.shouldNeverReachHere("found two horizontal edges incident on node"),null):t},N.prototype.print=function(M){Zg.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var N=this.iterator();N.hasNext();){var D=N.next();M.print("out "),D.print(M),M.println(),M.print("in "),D.getSym().print(M),M.println()}},N.prototype.getResultAreaEdges=function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new os;for(var M=this.iterator();M.hasNext();){var N=M.next();(N.isInResult()||N.getSym().isInResult())&&this._resultAreaEdgeList.add(N)}return this._resultAreaEdgeList},N.prototype.updateLabelling=function(M){for(var N=this.iterator();N.hasNext();){var D=N.next().getLabel();D.setAllLocationsIfNull(0,M.getLocation(0)),D.setAllLocationsIfNull(1,M.getLocation(1))}},N.prototype.linkAllDirectedEdges=function(){this.getEdges();for(var M=null,N=null,D=this._edgeList.size()-1;D>=0;D--){var t=this._edgeList.get(D),i=t.getSym();null===N&&(N=i),null!==M&&i.setNext(M),M=t}N.setNext(M)},N.prototype.computeDepths=function(){if(1===arguments.length){var M=arguments[0],N=this.findIndex(M),D=M.getDepth(Ou.LEFT),t=M.getDepth(Ou.RIGHT),i=this.computeDepths(N+1,this._edgeList.size(),D);if(this.computeDepths(0,N,i)!==t)throw new Su("depth mismatch at "+M.getCoordinate())}else if(3===arguments.length){for(var e=arguments[0],j=arguments[1],T=arguments[2],g=e;g<j;g++){var s=this._edgeList.get(g);s.setEdgeDepths(Ou.RIGHT,T),T=s.getDepth(Ou.LEFT)}return T}},N.prototype.mergeSymLabels=function(){for(var M=this.iterator();M.hasNext();){var N=M.next();N.getLabel().merge(N.getSym().getLabel())}},N.prototype.linkMinimalDirectedEdges=function(M){for(var N=null,D=null,t=this._SCANNING_FOR_INCOMING,i=this._resultAreaEdgeList.size()-1;i>=0;i--){var e=this._resultAreaEdgeList.get(i),j=e.getSym();switch(null===N&&e.getEdgeRing()===M&&(N=e),t){case this._SCANNING_FOR_INCOMING:if(j.getEdgeRing()!==M)continue;D=j,t=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(e.getEdgeRing()!==M)continue;D.setNextMin(e),t=this._SCANNING_FOR_INCOMING}}t===this._LINKING_TO_OUTGOING&&(Kg.isTrue(null!==N,"found null for first outgoing dirEdge"),Kg.isTrue(N.getEdgeRing()===M,"unable to link last incoming dirEdge"),D.setNextMin(N))},N.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var M=0,N=this.iterator();N.hasNext();)N.next().isInResult()&&M++;return M}if(1===arguments.length){for(var D=arguments[0],t=0,i=this.iterator();i.hasNext();)i.next().getEdgeRing()===D&&t++;return t}},N.prototype.getLabel=function(){return this._label},N.prototype.findCoveredLineEdges=function(){for(var M=Cg.NONE,N=this.iterator();N.hasNext();){var D=N.next(),t=D.getSym();if(!D.isLineEdge()){if(D.isInResult()){M=Cg.INTERIOR;break}if(t.isInResult()){M=Cg.EXTERIOR;break}}}if(M===Cg.NONE)return null;for(var i=M,e=this.iterator();e.hasNext();){var j=e.next(),T=j.getSym();j.isLineEdge()?j.getEdge().setCovered(i===Cg.INTERIOR):(j.isInResult()&&(i=Cg.EXTERIOR),T.isInResult()&&(i=Cg.INTERIOR))}},N.prototype.computeLabelling=function(N){M.prototype.computeLabelling.call(this,N),this._label=new du(Cg.NONE);for(var D=this.iterator();D.hasNext();)for(var t=D.next().getEdge().getLabel(),i=0;i<2;i++){var e=t.getLocation(i);e!==Cg.INTERIOR&&e!==Cg.BOUNDARY||this._label.setLocation(i,Cg.INTERIOR)}},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Pz),Gz=function(M){function N(){M.apply(this,arguments)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.createNode=function(M){return new fu(M,new Zz)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(Zu),Wz=function M(){this._pts=null,this._orientation=null;var N=arguments[0];this._pts=N,this._orientation=M.orientation(N)};Wz.prototype.compareTo=function(M){var N=M;return Wz.compareOriented(this._pts,this._orientation,N._pts,N._orientation)},Wz.prototype.interfaces_=function(){return[cg]},Wz.prototype.getClass=function(){return Wz},Wz.orientation=function(M){return 1===xs.increasingDirection(M)},Wz.compareOriented=function(M,N,D,t){for(var i=N?1:-1,e=t?1:-1,j=N?M.length:-1,T=t?D.length:-1,g=N?0:M.length-1,s=t?0:D.length-1;;){var u=M[g].compareTo(D[s]);if(0!==u)return u;var z=(g+=i)===j,A=(s+=e)===T;if(z&&!A)return-1;if(!z&&A)return 1;if(z&&A)return 0}};var Rz=function(){this._edges=new os,this._ocaMap=new vi};Rz.prototype.print=function(M){M.print("MULTILINESTRING ( ");for(var N=0;N<this._edges.size();N++){var D=this._edges.get(N);N>0&&M.print(","),M.print("(");for(var t=D.getCoordinates(),i=0;i<t.length;i++)i>0&&M.print(","),M.print(t[i].x+" "+t[i].y);M.println(")")}M.print(") ")},Rz.prototype.addAll=function(M){for(var N=M.iterator();N.hasNext();)this.add(N.next())},Rz.prototype.findEdgeIndex=function(M){for(var N=0;N<this._edges.size();N++)if(this._edges.get(N).equals(M))return N;return-1},Rz.prototype.iterator=function(){return this._edges.iterator()},Rz.prototype.getEdges=function(){return this._edges},Rz.prototype.get=function(M){return this._edges.get(M)},Rz.prototype.findEqualEdge=function(M){var N=new Wz(M.getCoordinates());return this._ocaMap.get(N)},Rz.prototype.add=function(M){this._edges.add(M);var N=new Wz(M.getCoordinates());this._ocaMap.put(N,M)},Rz.prototype.interfaces_=function(){return[]},Rz.prototype.getClass=function(){return Rz};var Xz=function(){};Xz.prototype.processIntersections=function(M,N,D,t){},Xz.prototype.isDone=function(){},Xz.prototype.interfaces_=function(){return[]},Xz.prototype.getClass=function(){return Xz};var _z=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var M=arguments[0];this._li=M};_z.prototype.isTrivialIntersection=function(M,N,D,t){if(M===D&&1===this._li.getIntersectionNum()){if(_z.isAdjacentSegments(N,t))return!0;if(M.isClosed()){var i=M.size()-1;if(0===N&&t===i||0===t&&N===i)return!0}}return!1},_z.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},_z.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},_z.prototype.getLineIntersector=function(){return this._li},_z.prototype.hasProperIntersection=function(){return this._hasProper},_z.prototype.processIntersections=function(M,N,D,t){if(M===D&&N===t)return null;this.numTests++;var i=M.getCoordinates()[N],e=M.getCoordinates()[N+1],j=D.getCoordinates()[t],T=D.getCoordinates()[t+1];this._li.computeIntersection(i,e,j,T),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(M,N,D,t)||(this._hasIntersection=!0,M.addIntersections(this._li,N,0),D.addIntersections(this._li,t,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},_z.prototype.hasIntersection=function(){return this._hasIntersection},_z.prototype.isDone=function(){return!1},_z.prototype.hasInteriorIntersection=function(){return this._hasInterior},_z.prototype.interfaces_=function(){return[Xz]},_z.prototype.getClass=function(){return _z},_z.isAdjacentSegments=function(M,N){return 1===Math.abs(M-N)};var Hz=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var M=arguments[0],N=arguments[1],D=arguments[2];this.coord=new og(M),this.segmentIndex=N,this.dist=D};Hz.prototype.getSegmentIndex=function(){return this.segmentIndex},Hz.prototype.getCoordinate=function(){return this.coord},Hz.prototype.print=function(M){M.print(this.coord),M.print(" seg # = "+this.segmentIndex),M.println(" dist = "+this.dist)},Hz.prototype.compareTo=function(M){var N=M;return this.compare(N.segmentIndex,N.dist)},Hz.prototype.isEndPoint=function(M){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===M},Hz.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},Hz.prototype.getDistance=function(){return this.dist},Hz.prototype.compare=function(M,N){return this.segmentIndex<M?-1:this.segmentIndex>M?1:this.dist<N?-1:this.dist>N?1:0},Hz.prototype.interfaces_=function(){return[cg]},Hz.prototype.getClass=function(){return Hz};var Fz=function(){this._nodeMap=new vi,this.edge=null;var M=arguments[0];this.edge=M};Fz.prototype.print=function(M){M.println("Intersections:");for(var N=this.iterator();N.hasNext();)N.next().print(M)},Fz.prototype.iterator=function(){return this._nodeMap.values().iterator()},Fz.prototype.addSplitEdges=function(M){this.addEndpoints();for(var N=this.iterator(),D=N.next();N.hasNext();){var t=N.next(),i=this.createSplitEdge(D,t);M.add(i),D=t}},Fz.prototype.addEndpoints=function(){var M=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[M],M,0)},Fz.prototype.createSplitEdge=function(M,N){var D=N.segmentIndex-M.segmentIndex+2,t=this.edge.pts[N.segmentIndex],i=N.dist>0||!N.coord.equals2D(t);i||D--;var e=new Array(D).fill(null),j=0;e[j++]=new og(M.coord);for(var T=M.segmentIndex+1;T<=N.segmentIndex;T++)e[j++]=this.edge.pts[T];return i&&(e[j]=N.coord),new $z(e,new du(this.edge._label))},Fz.prototype.add=function(M,N,D){var t=new Hz(M,N,D),i=this._nodeMap.get(t);return null!==i?i:(this._nodeMap.put(t,t),t)},Fz.prototype.isIntersection=function(M){for(var N=this.iterator();N.hasNext();)if(N.next().coord.equals(M))return!0;return!1},Fz.prototype.interfaces_=function(){return[]},Fz.prototype.getClass=function(){return Fz};var Vz=function(){};Vz.prototype.getChainStartIndices=function(M){var N=0,D=new os;D.add(new Yg(N));do{var t=this.findChainEnd(M,N);D.add(new Yg(t)),N=t}while(N<M.length-1);return Vz.toIntArray(D)},Vz.prototype.findChainEnd=function(M,N){for(var D=vu.quadrant(M[N],M[N+1]),t=N+1;t<M.length;){if(vu.quadrant(M[t-1],M[t])!==D)break;t++}return t-1},Vz.prototype.interfaces_=function(){return[]},Vz.prototype.getClass=function(){return Vz},Vz.toIntArray=function(M){for(var N=new Array(M.size()).fill(null),D=0;D<N.length;D++)N[D]=M.get(D).intValue();return N};var Jz=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new Wg,this.env2=new Wg;var M=arguments[0];this.e=M,this.pts=M.getCoordinates();var N=new Vz;this.startIndex=N.getChainStartIndices(this.pts)};Jz.prototype.getCoordinates=function(){return this.pts},Jz.prototype.getMaxX=function(M){var N=this.pts[this.startIndex[M]].x,D=this.pts[this.startIndex[M+1]].x;return N>D?N:D},Jz.prototype.getMinX=function(M){var N=this.pts[this.startIndex[M]].x,D=this.pts[this.startIndex[M+1]].x;return N<D?N:D},Jz.prototype.computeIntersectsForChain=function(){if(4===arguments.length){var M=arguments[0],N=arguments[1],D=arguments[2],t=arguments[3];this.computeIntersectsForChain(this.startIndex[M],this.startIndex[M+1],N,N.startIndex[D],N.startIndex[D+1],t)}else if(6===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2],T=arguments[3],g=arguments[4],s=arguments[5],u=this.pts[i],z=this.pts[e],A=j.pts[T],L=j.pts[g];if(e-i==1&&g-T==1)return s.addIntersections(this.e,i,j.e,T),null;if(this.env1.init(u,z),this.env2.init(A,L),!this.env1.intersects(this.env2))return null;var I=Math.trunc((i+e)/2),n=Math.trunc((T+g)/2);i<I&&(T<n&&this.computeIntersectsForChain(i,I,j,T,n,s),n<g&&this.computeIntersectsForChain(i,I,j,n,g,s)),I<e&&(T<n&&this.computeIntersectsForChain(I,e,j,T,n,s),n<g&&this.computeIntersectsForChain(I,e,j,n,g,s))}},Jz.prototype.getStartIndexes=function(){return this.startIndex},Jz.prototype.computeIntersects=function(M,N){for(var D=0;D<this.startIndex.length-1;D++)for(var t=0;t<M.startIndex.length-1;t++)this.computeIntersectsForChain(D,M,t,N)},Jz.prototype.interfaces_=function(){return[]},Jz.prototype.getClass=function(){return Jz};var qz=function M(){this._depth=Array(2).fill().map((function(){return Array(3)}));for(var N=0;N<2;N++)for(var D=0;D<3;D++)this._depth[N][D]=M.NULL_VALUE},Kz={NULL_VALUE:{configurable:!0}};qz.prototype.getDepth=function(M,N){return this._depth[M][N]},qz.prototype.setDepth=function(M,N,D){this._depth[M][N]=D},qz.prototype.isNull=function(){if(0===arguments.length){for(var M=0;M<2;M++)for(var N=0;N<3;N++)if(this._depth[M][N]!==qz.NULL_VALUE)return!1;return!0}if(1===arguments.length){var D=arguments[0];return this._depth[D][1]===qz.NULL_VALUE}if(2===arguments.length){var t=arguments[0],i=arguments[1];return this._depth[t][i]===qz.NULL_VALUE}},qz.prototype.normalize=function(){for(var M=0;M<2;M++)if(!this.isNull(M)){var N=this._depth[M][1];this._depth[M][2]<N&&(N=this._depth[M][2]),N<0&&(N=0);for(var D=1;D<3;D++){var t=0;this._depth[M][D]>N&&(t=1),this._depth[M][D]=t}}},qz.prototype.getDelta=function(M){return this._depth[M][Ou.RIGHT]-this._depth[M][Ou.LEFT]},qz.prototype.getLocation=function(M,N){return this._depth[M][N]<=0?Cg.EXTERIOR:Cg.INTERIOR},qz.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},qz.prototype.add=function(){if(1===arguments.length)for(var M=arguments[0],N=0;N<2;N++)for(var D=1;D<3;D++){var t=M.getLocation(N,D);t!==Cg.EXTERIOR&&t!==Cg.INTERIOR||(this.isNull(N,D)?this._depth[N][D]=qz.depthAtLocation(t):this._depth[N][D]+=qz.depthAtLocation(t))}else if(3===arguments.length){var i=arguments[0],e=arguments[1];arguments[2]===Cg.INTERIOR&&this._depth[i][e]++}},qz.prototype.interfaces_=function(){return[]},qz.prototype.getClass=function(){return qz},qz.depthAtLocation=function(M){return M===Cg.EXTERIOR?0:M===Cg.INTERIOR?1:qz.NULL_VALUE},Kz.NULL_VALUE.get=function(){return-1},Object.defineProperties(qz,Kz);var $z=function(M){function N(){if(M.call(this),this.pts=null,this._env=null,this.eiList=new Fz(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new qz,this._depthDelta=0,1===arguments.length){var D=arguments[0];N.call(this,D,null)}else if(2===arguments.length){var t=arguments[0],i=arguments[1];this.pts=t,this._label=i}}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.getDepth=function(){return this._depth},N.prototype.getCollapsedEdge=function(){var M=new Array(2).fill(null);return M[0]=this.pts[0],M[1]=this.pts[1],new N(M,du.toLineLabel(this._label))},N.prototype.isIsolated=function(){return this._isIsolated},N.prototype.getCoordinates=function(){return this.pts},N.prototype.setIsolated=function(M){this._isIsolated=M},N.prototype.setName=function(M){this._name=M},N.prototype.equals=function(M){if(!(M instanceof N))return!1;var D=M;if(this.pts.length!==D.pts.length)return!1;for(var t=!0,i=!0,e=this.pts.length,j=0;j<this.pts.length;j++)if(this.pts[j].equals2D(D.pts[j])||(t=!1),this.pts[j].equals2D(D.pts[--e])||(i=!1),!t&&!i)return!1;return!0},N.prototype.getCoordinate=function(){if(0===arguments.length)return this.pts.length>0?this.pts[0]:null;if(1===arguments.length){var M=arguments[0];return this.pts[M]}},N.prototype.print=function(M){M.print("edge "+this._name+": "),M.print("LINESTRING (");for(var N=0;N<this.pts.length;N++)N>0&&M.print(","),M.print(this.pts[N].x+" "+this.pts[N].y);M.print(") "+this._label+" "+this._depthDelta)},N.prototype.computeIM=function(M){N.updateIM(this._label,M)},N.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},N.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},N.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},N.prototype.getDepthDelta=function(){return this._depthDelta},N.prototype.getNumPoints=function(){return this.pts.length},N.prototype.printReverse=function(M){M.print("edge "+this._name+": ");for(var N=this.pts.length-1;N>=0;N--)M.print(this.pts[N]+" ");M.println("")},N.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new Jz(this)),this._mce},N.prototype.getEnvelope=function(){if(null===this._env){this._env=new Wg;for(var M=0;M<this.pts.length;M++)this._env.expandToInclude(this.pts[M])}return this._env},N.prototype.addIntersection=function(M,N,D,t){var i=new og(M.getIntersection(t)),e=N,j=M.getEdgeDistance(D,t),T=e+1;if(T<this.pts.length){var g=this.pts[T];i.equals2D(g)&&(e=T,j=0)}this.eiList.add(i,e,j)},N.prototype.toString=function(){var M=new dg;M.append("edge "+this._name+": "),M.append("LINESTRING (");for(var N=0;N<this.pts.length;N++)N>0&&M.append(","),M.append(this.pts[N].x+" "+this.pts[N].y);return M.append(") "+this._label+" "+this._depthDelta),M.toString()},N.prototype.isPointwiseEqual=function(M){if(this.pts.length!==M.pts.length)return!1;for(var N=0;N<this.pts.length;N++)if(!this.pts[N].equals2D(M.pts[N]))return!1;return!0},N.prototype.setDepthDelta=function(M){this._depthDelta=M},N.prototype.getEdgeIntersectionList=function(){return this.eiList},N.prototype.addIntersections=function(M,N,D){for(var t=0;t<M.getIntersectionNum();t++)this.addIntersection(M,N,D,t)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N.updateIM=function(){if(2!==arguments.length)return M.prototype.updateIM.apply(this,arguments);var N=arguments[0],D=arguments[1];D.setAtLeastIfValid(N.getLocation(0,Ou.ON),N.getLocation(1,Ou.ON),1),N.isArea()&&(D.setAtLeastIfValid(N.getLocation(0,Ou.LEFT),N.getLocation(1,Ou.LEFT),2),D.setAtLeastIfValid(N.getLocation(0,Ou.RIGHT),N.getLocation(1,Ou.RIGHT),2))},N}(hu),MA=function(M){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new Rz,this._bufParams=M||null};MA.prototype.setWorkingPrecisionModel=function(M){this._workingPrecisionModel=M},MA.prototype.insertUniqueEdge=function(M){var N=this._edgeList.findEqualEdge(M);if(null!==N){var D=N.getLabel(),t=M.getLabel();N.isPointwiseEqual(M)||(t=new du(M.getLabel())).flip(),D.merge(t);var i=MA.depthDelta(t),e=N.getDepthDelta()+i;N.setDepthDelta(e)}else this._edgeList.add(M),M.setDepthDelta(MA.depthDelta(M.getLabel()))},MA.prototype.buildSubgraphs=function(M,N){for(var D=new os,t=M.iterator();t.hasNext();){var i=t.next(),e=i.getRightmostCoordinate(),j=new pz(D).getDepth(e);i.computeDepth(j),i.findResultEdges(),D.add(i),N.add(i.getDirectedEdges(),i.getNodes())}},MA.prototype.createSubgraphs=function(M){for(var N=new os,D=M.getNodes().iterator();D.hasNext();){var t=D.next();if(!t.isVisited()){var i=new ku;i.create(t),N.add(i)}}return qu.sort(N,qu.reverseOrder()),N},MA.prototype.createEmptyResultGeometry=function(){return this._geomFact.createPolygon()},MA.prototype.getNoder=function(M){if(null!==this._workingNoder)return this._workingNoder;var N=new yz,D=new Ns;return D.setPrecisionModel(M),N.setSegmentIntersector(new _z(D)),N},MA.prototype.buffer=function(M,N){var D=this._workingPrecisionModel;null===D&&(D=M.getPrecisionModel()),this._geomFact=M.getFactory();var t=new Yz(D,this._bufParams),i=new mz(M,N,t).getCurves();if(i.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(i,D),this._graph=new Gu(new Gz),this._graph.addEdges(this._edgeList.getEdges());var e=this.createSubgraphs(this._graph),j=new Wu(this._geomFact);this.buildSubgraphs(e,j);var T=j.getPolygons();return T.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(T)},MA.prototype.computeNodedEdges=function(M,N){var D=this.getNoder(N);D.computeNodes(M);for(var t=D.getNodedSubstrings().iterator();t.hasNext();){var i=t.next(),e=i.getCoordinates();if(2!==e.length||!e[0].equals2D(e[1])){var j=i.getData(),T=new $z(i.getCoordinates(),new du(j));this.insertUniqueEdge(T)}}},MA.prototype.setNoder=function(M){this._workingNoder=M},MA.prototype.interfaces_=function(){return[]},MA.prototype.getClass=function(){return MA},MA.depthDelta=function(M){var N=M.getLocation(0,Ou.LEFT),D=M.getLocation(0,Ou.RIGHT);return N===Cg.INTERIOR&&D===Cg.EXTERIOR?1:N===Cg.EXTERIOR&&D===Cg.INTERIOR?-1:0},MA.convertSegStrings=function(M){for(var N=new nu,D=new os;M.hasNext();){var t=M.next(),i=N.createLineString(t.getCoordinates());D.add(i)}return N.buildGeometry(D)};var NA=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var M=arguments[0],N=arguments[1];this._noder=M,this._scaleFactor=N,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(4===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2],e=arguments[3];this._noder=D,this._scaleFactor=t,this._offsetX=i,this._offsetY=e,this._isScaled=!this.isIntegerPrecision()}};NA.prototype.rescale=function(){if(lg(arguments[0],ws))for(var M=arguments[0].iterator();M.hasNext();){var N=M.next();this.rescale(N.getCoordinates())}else if(arguments[0]instanceof Array){for(var D=arguments[0],t=0;t<D.length;t++)D[t].x=D[t].x/this._scaleFactor+this._offsetX,D[t].y=D[t].y/this._scaleFactor+this._offsetY;2===D.length&&D[0].equals2D(D[1])&&Zg.out.println(D)}},NA.prototype.scale=function(){if(lg(arguments[0],ws)){for(var M=arguments[0],N=new os,D=M.iterator();D.hasNext();){var t=D.next();N.add(new zz(this.scale(t.getCoordinates()),t.getData()))}return N}if(arguments[0]instanceof Array){for(var i=arguments[0],e=new Array(i.length).fill(null),j=0;j<i.length;j++)e[j]=new og(Math.round((i[j].x-this._offsetX)*this._scaleFactor),Math.round((i[j].y-this._offsetY)*this._scaleFactor),i[j].z);return xs.removeRepeatedPoints(e)}},NA.prototype.isIntegerPrecision=function(){return 1===this._scaleFactor},NA.prototype.getNodedSubstrings=function(){var M=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(M),M},NA.prototype.computeNodes=function(M){var N=M;this._isScaled&&(N=this.scale(M)),this._noder.computeNodes(N)},NA.prototype.interfaces_=function(){return[wz]},NA.prototype.getClass=function(){return NA};var DA=function(){this._li=new Ns,this._segStrings=null;var M=arguments[0];this._segStrings=M},tA={fact:{configurable:!0}};DA.prototype.checkEndPtVertexIntersections=function(){if(0===arguments.length)for(var M=this._segStrings.iterator();M.hasNext();){var N=M.next().getCoordinates();this.checkEndPtVertexIntersections(N[0],this._segStrings),this.checkEndPtVertexIntersections(N[N.length-1],this._segStrings)}else if(2===arguments.length)for(var D=arguments[0],t=arguments[1].iterator();t.hasNext();)for(var i=t.next().getCoordinates(),e=1;e<i.length-1;e++)if(i[e].equals(D))throw new Jg("found endpt/interior pt intersection at index "+e+" :pt "+D)},DA.prototype.checkInteriorIntersections=function(){if(0===arguments.length)for(var M=this._segStrings.iterator();M.hasNext();)for(var N=M.next(),D=this._segStrings.iterator();D.hasNext();){var t=D.next();this.checkInteriorIntersections(N,t)}else if(2===arguments.length)for(var i=arguments[0],e=arguments[1],j=i.getCoordinates(),T=e.getCoordinates(),g=0;g<j.length-1;g++)for(var s=0;s<T.length-1;s++)this.checkInteriorIntersections(i,g,e,s);else if(4===arguments.length){var u=arguments[0],z=arguments[1],A=arguments[2],L=arguments[3];if(u===A&&z===L)return null;var I=u.getCoordinates()[z],n=u.getCoordinates()[z+1],r=A.getCoordinates()[L],w=A.getCoordinates()[L+1];if(this._li.computeIntersection(I,n,r,w),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,I,n)||this.hasInteriorIntersection(this._li,r,w)))throw new Jg("found non-noded intersection at "+I+"-"+n+" and "+r+"-"+w)}},DA.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},DA.prototype.checkCollapses=function(){if(0===arguments.length)for(var M=this._segStrings.iterator();M.hasNext();){var N=M.next();this.checkCollapses(N)}else if(1===arguments.length)for(var D=arguments[0].getCoordinates(),t=0;t<D.length-2;t++)this.checkCollapse(D[t],D[t+1],D[t+2])},DA.prototype.hasInteriorIntersection=function(M,N,D){for(var t=0;t<M.getIntersectionNum();t++){var i=M.getIntersection(t);if(!i.equals(N)&&!i.equals(D))return!0}return!1},DA.prototype.checkCollapse=function(M,N,D){if(M.equals(D))throw new Jg("found non-noded collapse at "+DA.fact.createLineString([M,N,D]))},DA.prototype.interfaces_=function(){return[]},DA.prototype.getClass=function(){return DA},tA.fact.get=function(){return new nu},Object.defineProperties(DA,tA);var iA=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var M=arguments[0],N=arguments[1],D=arguments[2];if(this._originalPt=M,this._pt=M,this._scaleFactor=N,this._li=D,N<=0)throw new ng("Scale factor must be non-zero");1!==N&&(this._pt=new og(this.scale(M.x),this.scale(M.y)),this._p0Scaled=new og,this._p1Scaled=new og),this.initCorners(this._pt)},eA={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};iA.prototype.intersectsScaled=function(M,N){var D=Math.min(M.x,N.x),t=Math.max(M.x,N.x),i=Math.min(M.y,N.y),e=Math.max(M.y,N.y),j=this._maxx<D||this._minx>t||this._maxy<i||this._miny>e;if(j)return!1;var T=this.intersectsToleranceSquare(M,N);return Kg.isTrue(!(j&&T),"Found bad envelope test"),T},iA.prototype.initCorners=function(M){this._minx=M.x-.5,this._maxx=M.x+.5,this._miny=M.y-.5,this._maxy=M.y+.5,this._corner[0]=new og(this._maxx,this._maxy),this._corner[1]=new og(this._minx,this._maxy),this._corner[2]=new og(this._minx,this._miny),this._corner[3]=new og(this._maxx,this._miny)},iA.prototype.intersects=function(M,N){return 1===this._scaleFactor?this.intersectsScaled(M,N):(this.copyScaled(M,this._p0Scaled),this.copyScaled(N,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},iA.prototype.scale=function(M){return Math.round(M*this._scaleFactor)},iA.prototype.getCoordinate=function(){return this._originalPt},iA.prototype.copyScaled=function(M,N){N.x=this.scale(M.x),N.y=this.scale(M.y)},iA.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var M=iA.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new Wg(this._originalPt.x-M,this._originalPt.x+M,this._originalPt.y-M,this._originalPt.y+M)}return this._safeEnv},iA.prototype.intersectsPixelClosure=function(M,N){return this._li.computeIntersection(M,N,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(M,N,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(M,N,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(M,N,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},iA.prototype.intersectsToleranceSquare=function(M,N){var D=!1,t=!1;return this._li.computeIntersection(M,N,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(M,N,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(D=!0),this._li.computeIntersection(M,N,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(t=!0),this._li.computeIntersection(M,N,this._corner[3],this._corner[0]),!!this._li.isProper()||!(!D||!t)||!!M.equals(this._pt)||!!N.equals(this._pt))))},iA.prototype.addSnappedNode=function(M,N){var D=M.getCoordinate(N),t=M.getCoordinate(N+1);return!!this.intersects(D,t)&&(M.addIntersection(this.getCoordinate(),N),!0)},iA.prototype.interfaces_=function(){return[]},iA.prototype.getClass=function(){return iA},eA.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(iA,eA);var jA=function(){this.tempEnv1=new Wg,this.selectedSegment=new Az};jA.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var M=arguments[0],N=arguments[1];M.getLineSegment(N,this.selectedSegment),this.select(this.selectedSegment)}},jA.prototype.interfaces_=function(){return[]},jA.prototype.getClass=function(){return jA};var TA=function(){this._index=null;var M=arguments[0];this._index=M},gA={HotPixelSnapAction:{configurable:!0}};TA.prototype.snap=function(){if(1===arguments.length){var M=arguments[0];return this.snap(M,null,-1)}if(3===arguments.length){var N=arguments[0],D=arguments[1],t=arguments[2],i=N.getSafeEnvelope(),e=new sA(N,D,t);return this._index.query(i,{interfaces_:function(){return[Hu]},visitItem:function(M){M.select(i,e)}}),e.isNodeAdded()}},TA.prototype.interfaces_=function(){return[]},TA.prototype.getClass=function(){return TA},gA.HotPixelSnapAction.get=function(){return sA},Object.defineProperties(TA,gA);var sA=function(M){function N(){M.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var N=arguments[0],D=arguments[1],t=arguments[2];this._hotPixel=N,this._parentEdge=D,this._hotPixelVertexIndex=t}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.isNodeAdded=function(){return this._isNodeAdded},N.prototype.select=function(){if(2!==arguments.length)return M.prototype.select.apply(this,arguments);var N=arguments[0],D=arguments[1],t=N.getContext();if(null!==this._parentEdge&&t===this._parentEdge&&D===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(t,D)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(jA),uA=function(){this._li=null,this._interiorIntersections=null;var M=arguments[0];this._li=M,this._interiorIntersections=new os};uA.prototype.processIntersections=function(M,N,D,t){if(M===D&&N===t)return null;var i=M.getCoordinates()[N],e=M.getCoordinates()[N+1],j=D.getCoordinates()[t],T=D.getCoordinates()[t+1];if(this._li.computeIntersection(i,e,j,T),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var g=0;g<this._li.getIntersectionNum();g++)this._interiorIntersections.add(this._li.getIntersection(g));M.addIntersections(this._li,N,0),D.addIntersections(this._li,t,1)}},uA.prototype.isDone=function(){return!1},uA.prototype.getInteriorIntersections=function(){return this._interiorIntersections},uA.prototype.interfaces_=function(){return[Xz]},uA.prototype.getClass=function(){return uA};var zA=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var M=arguments[0];this._pm=M,this._li=new Ns,this._li.setPrecisionModel(M),this._scaleFactor=M.getScale()};zA.prototype.checkCorrectness=function(M){var N=zz.getNodedSubstrings(M),D=new DA(N);try{D.checkValid()}catch(M){if(!(M instanceof bg))throw M;M.printStackTrace()}},zA.prototype.getNodedSubstrings=function(){return zz.getNodedSubstrings(this._nodedSegStrings)},zA.prototype.snapRound=function(M,N){var D=this.findInteriorIntersections(M,N);this.computeIntersectionSnaps(D),this.computeVertexSnaps(M)},zA.prototype.findInteriorIntersections=function(M,N){var D=new uA(N);return this._noder.setSegmentIntersector(D),this._noder.computeNodes(M),D.getInteriorIntersections()},zA.prototype.computeVertexSnaps=function(){if(lg(arguments[0],ws))for(var M=arguments[0].iterator();M.hasNext();){var N=M.next();this.computeVertexSnaps(N)}else if(arguments[0]instanceof zz)for(var D=arguments[0],t=D.getCoordinates(),i=0;i<t.length;i++){var e=new iA(t[i],this._scaleFactor,this._li);this._pointSnapper.snap(e,D,i)&&D.addIntersection(t[i],i)}},zA.prototype.computeNodes=function(M){this._nodedSegStrings=M,this._noder=new yz,this._pointSnapper=new TA(this._noder.getIndex()),this.snapRound(M,this._li)},zA.prototype.computeIntersectionSnaps=function(M){for(var N=M.iterator();N.hasNext();){var D=N.next(),t=new iA(D,this._scaleFactor,this._li);this._pointSnapper.snap(t)}},zA.prototype.interfaces_=function(){return[wz]},zA.prototype.getClass=function(){return zA};var AA=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new oz,this._resultGeometry=null,this._saveException=null,1===arguments.length){var M=arguments[0];this._argGeom=M}else if(2===arguments.length){var N=arguments[0],D=arguments[1];this._argGeom=N,this._bufParams=D}},LA={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};AA.prototype.bufferFixedPrecision=function(M){var N=new NA(new zA(new zu(1)),M.getScale()),D=new MA(this._bufParams);D.setWorkingPrecisionModel(M),D.setNoder(N),this._resultGeometry=D.buffer(this._argGeom,this._distance)},AA.prototype.bufferReducedPrecision=function(){var M=this;if(0===arguments.length){for(var N=AA.MAX_PRECISION_DIGITS;N>=0;N--){try{M.bufferReducedPrecision(N)}catch(N){if(!(N instanceof Su))throw N;M._saveException=N}if(null!==M._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var D=arguments[0],t=AA.precisionScaleFactor(this._argGeom,this._distance,D),i=new zu(t);this.bufferFixedPrecision(i)}},AA.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var M=this._argGeom.getFactory().getPrecisionModel();M.getType()===zu.FIXED?this.bufferFixedPrecision(M):this.bufferReducedPrecision()},AA.prototype.setQuadrantSegments=function(M){this._bufParams.setQuadrantSegments(M)},AA.prototype.bufferOriginalPrecision=function(){try{var M=new MA(this._bufParams);this._resultGeometry=M.buffer(this._argGeom,this._distance)}catch(M){if(!(M instanceof Jg))throw M;this._saveException=M}},AA.prototype.getResultGeometry=function(M){return this._distance=M,this.computeGeometry(),this._resultGeometry},AA.prototype.setEndCapStyle=function(M){this._bufParams.setEndCapStyle(M)},AA.prototype.interfaces_=function(){return[]},AA.prototype.getClass=function(){return AA},AA.bufferOp=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];return new AA(M).getResultGeometry(N)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Ts&&"number"==typeof arguments[1]){var D=arguments[0],t=arguments[1],i=arguments[2],e=new AA(D);return e.setQuadrantSegments(i),e.getResultGeometry(t)}if(arguments[2]instanceof oz&&arguments[0]instanceof Ts&&"number"==typeof arguments[1]){var j=arguments[0],T=arguments[1],g=arguments[2];return new AA(j,g).getResultGeometry(T)}}else if(4===arguments.length){var s=arguments[0],u=arguments[1],z=arguments[2],A=arguments[3],L=new AA(s);return L.setQuadrantSegments(z),L.setEndCapStyle(A),L.getResultGeometry(u)}},AA.precisionScaleFactor=function(M,N,D){var t=M.getEnvelopeInternal(),i=kg.max(Math.abs(t.getMaxX()),Math.abs(t.getMaxY()),Math.abs(t.getMinX()),Math.abs(t.getMinY()))+2*(N>0?N:0),e=D-Math.trunc(Math.log(i)/Math.log(10)+1);return Math.pow(10,e)},LA.CAP_ROUND.get=function(){return oz.CAP_ROUND},LA.CAP_BUTT.get=function(){return oz.CAP_FLAT},LA.CAP_FLAT.get=function(){return oz.CAP_FLAT},LA.CAP_SQUARE.get=function(){return oz.CAP_SQUARE},LA.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(AA,LA);var IA=function(){this._pt=[new og,new og],this._distance=rg.NaN,this._isNull=!0};IA.prototype.getCoordinates=function(){return this._pt},IA.prototype.getCoordinate=function(M){return this._pt[M]},IA.prototype.setMinimum=function(){if(1===arguments.length){var M=arguments[0];this.setMinimum(M._pt[0],M._pt[1])}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(this._isNull)return this.initialize(N,D),null;var t=N.distance(D);t<this._distance&&this.initialize(N,D,t)}},IA.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var M=arguments[0],N=arguments[1];this._pt[0].setCoordinate(M),this._pt[1].setCoordinate(N),this._distance=M.distance(N),this._isNull=!1}else if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2];this._pt[0].setCoordinate(D),this._pt[1].setCoordinate(t),this._distance=i,this._isNull=!1}},IA.prototype.getDistance=function(){return this._distance},IA.prototype.setMaximum=function(){if(1===arguments.length){var M=arguments[0];this.setMaximum(M._pt[0],M._pt[1])}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(this._isNull)return this.initialize(N,D),null;var t=N.distance(D);t>this._distance&&this.initialize(N,D,t)}},IA.prototype.interfaces_=function(){return[]},IA.prototype.getClass=function(){return IA};var nA=function(){};nA.prototype.interfaces_=function(){return[]},nA.prototype.getClass=function(){return nA},nA.computeDistance=function(){if(arguments[2]instanceof IA&&arguments[0]instanceof Hs&&arguments[1]instanceof og)for(var M=arguments[0],N=arguments[1],D=arguments[2],t=M.getCoordinates(),i=new Az,e=0;e<t.length-1;e++){i.setCoordinates(t[e],t[e+1]);var j=i.closestPoint(N);D.setMinimum(j,N)}else if(arguments[2]instanceof IA&&arguments[0]instanceof qs&&arguments[1]instanceof og){var T=arguments[0],g=arguments[1],s=arguments[2];nA.computeDistance(T.getExteriorRing(),g,s);for(var u=0;u<T.getNumInteriorRing();u++)nA.computeDistance(T.getInteriorRingN(u),g,s)}else if(arguments[2]instanceof IA&&arguments[0]instanceof Ts&&arguments[1]instanceof og){var z=arguments[0],A=arguments[1],L=arguments[2];if(z instanceof Hs)nA.computeDistance(z,A,L);else if(z instanceof qs)nA.computeDistance(z,A,L);else if(z instanceof Ps)for(var I=z,n=0;n<I.getNumGeometries();n++){var r=I.getGeometryN(n);nA.computeDistance(r,A,L)}else L.setMinimum(z.getCoordinate(),A)}else if(arguments[2]instanceof IA&&arguments[0]instanceof Az&&arguments[1]instanceof og){var w=arguments[0],c=arguments[1],y=arguments[2],a=w.closestPoint(c);y.setMinimum(a,c)}};var rA=function(M){this._maxPtDist=new IA,this._inputGeom=M||null},wA={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};rA.prototype.computeMaxMidpointDistance=function(M){var N=new yA(this._inputGeom);M.apply(N),this._maxPtDist.setMaximum(N.getMaxPointDistance())},rA.prototype.computeMaxVertexDistance=function(M){var N=new cA(this._inputGeom);M.apply(N),this._maxPtDist.setMaximum(N.getMaxPointDistance())},rA.prototype.findDistance=function(M){return this.computeMaxVertexDistance(M),this.computeMaxMidpointDistance(M),this._maxPtDist.getDistance()},rA.prototype.getDistancePoints=function(){return this._maxPtDist},rA.prototype.interfaces_=function(){return[]},rA.prototype.getClass=function(){return rA},wA.MaxPointDistanceFilter.get=function(){return cA},wA.MaxMidpointDistanceFilter.get=function(){return yA},Object.defineProperties(rA,wA);var cA=function(M){this._maxPtDist=new IA,this._minPtDist=new IA,this._geom=M||null};cA.prototype.filter=function(M){this._minPtDist.initialize(),nA.computeDistance(this._geom,M,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},cA.prototype.getMaxPointDistance=function(){return this._maxPtDist},cA.prototype.interfaces_=function(){return[us]},cA.prototype.getClass=function(){return cA};var yA=function(M){this._maxPtDist=new IA,this._minPtDist=new IA,this._geom=M||null};yA.prototype.filter=function(M,N){if(0===N)return null;var D=M.getCoordinate(N-1),t=M.getCoordinate(N),i=new og((D.x+t.x)/2,(D.y+t.y)/2);this._minPtDist.initialize(),nA.computeDistance(this._geom,i,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},yA.prototype.isDone=function(){return!1},yA.prototype.isGeometryChanged=function(){return!1},yA.prototype.getMaxPointDistance=function(){return this._maxPtDist},yA.prototype.interfaces_=function(){return[bs]},yA.prototype.getClass=function(){return yA};var aA=function(M){this._comps=M||null};aA.prototype.filter=function(M){M instanceof qs&&this._comps.add(M)},aA.prototype.interfaces_=function(){return[Bs]},aA.prototype.getClass=function(){return aA},aA.getPolygons=function(){if(1===arguments.length){var M=arguments[0];return aA.getPolygons(M,new os)}if(2===arguments.length){var N=arguments[0],D=arguments[1];return N instanceof qs?D.add(N):N instanceof Ps&&N.apply(new aA(D)),D}};var oA=function(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var M=arguments[0];this._lines=M}else if(2===arguments.length){var N=arguments[0],D=arguments[1];this._lines=N,this._isForcedToLineString=D}};oA.prototype.filter=function(M){if(this._isForcedToLineString&&M instanceof $s){var N=M.getFactory().createLineString(M.getCoordinateSequence());return this._lines.add(N),null}M instanceof Hs&&this._lines.add(M)},oA.prototype.setForceToLineString=function(M){this._isForcedToLineString=M},oA.prototype.interfaces_=function(){return[js]},oA.prototype.getClass=function(){return oA},oA.getGeometry=function(){if(1===arguments.length){var M=arguments[0];return M.getFactory().buildGeometry(oA.getLines(M))}if(2===arguments.length){var N=arguments[0],D=arguments[1];return N.getFactory().buildGeometry(oA.getLines(N,D))}},oA.getLines=function(){if(1===arguments.length){var M=arguments[0];return oA.getLines(M,!1)}if(2===arguments.length){if(lg(arguments[0],ws)&&lg(arguments[1],ws)){for(var N=arguments[0],D=arguments[1],t=N.iterator();t.hasNext();){var i=t.next();oA.getLines(i,D)}return D}if(arguments[0]instanceof Ts&&"boolean"==typeof arguments[1]){var e=arguments[0],j=arguments[1],T=new os;return e.apply(new oA(T,j)),T}if(arguments[0]instanceof Ts&&lg(arguments[1],ws)){var g=arguments[0],s=arguments[1];return g instanceof Hs?s.add(g):g.apply(new oA(s)),s}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&lg(arguments[0],ws)&&lg(arguments[1],ws)){for(var u=arguments[0],z=arguments[1],A=arguments[2],L=u.iterator();L.hasNext();){var I=L.next();oA.getLines(I,z,A)}return z}if("boolean"==typeof arguments[2]&&arguments[0]instanceof Ts&&lg(arguments[1],ws)){var n=arguments[0],r=arguments[1],w=arguments[2];return n.apply(new oA(r,w)),r}}};var EA=function(){if(this._boundaryRule=zs.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var M=arguments[0];if(null===M)throw new ng("Rule must be non-null");this._boundaryRule=M}};EA.prototype.locateInternal=function(){if(arguments[0]instanceof og&&arguments[1]instanceof qs){var M=arguments[0],N=arguments[1];if(N.isEmpty())return Cg.EXTERIOR;var D=N.getExteriorRing(),t=this.locateInPolygonRing(M,D);if(t===Cg.EXTERIOR)return Cg.EXTERIOR;if(t===Cg.BOUNDARY)return Cg.BOUNDARY;for(var i=0;i<N.getNumInteriorRing();i++){var e=N.getInteriorRingN(i),j=this.locateInPolygonRing(M,e);if(j===Cg.INTERIOR)return Cg.EXTERIOR;if(j===Cg.BOUNDARY)return Cg.BOUNDARY}return Cg.INTERIOR}if(arguments[0]instanceof og&&arguments[1]instanceof Hs){var T=arguments[0],g=arguments[1];if(!g.getEnvelopeInternal().intersects(T))return Cg.EXTERIOR;var s=g.getCoordinates();return g.isClosed()||!T.equals(s[0])&&!T.equals(s[s.length-1])?is.isOnLine(T,s)?Cg.INTERIOR:Cg.EXTERIOR:Cg.BOUNDARY}if(arguments[0]instanceof og&&arguments[1]instanceof Vs){var u=arguments[0];return arguments[1].getCoordinate().equals2D(u)?Cg.INTERIOR:Cg.EXTERIOR}},EA.prototype.locateInPolygonRing=function(M,N){return N.getEnvelopeInternal().intersects(M)?is.locatePointInRing(M,N.getCoordinates()):Cg.EXTERIOR},EA.prototype.intersects=function(M,N){return this.locate(M,N)!==Cg.EXTERIOR},EA.prototype.updateLocationInfo=function(M){M===Cg.INTERIOR&&(this._isIn=!0),M===Cg.BOUNDARY&&this._numBoundaries++},EA.prototype.computeLocation=function(M,N){if(N instanceof Vs&&this.updateLocationInfo(this.locateInternal(M,N)),N instanceof Hs)this.updateLocationInfo(this.locateInternal(M,N));else if(N instanceof qs)this.updateLocationInfo(this.locateInternal(M,N));else if(N instanceof Zs)for(var D=N,t=0;t<D.getNumGeometries();t++){var i=D.getGeometryN(t);this.updateLocationInfo(this.locateInternal(M,i))}else if(N instanceof Mu)for(var e=N,j=0;j<e.getNumGeometries();j++){var T=e.getGeometryN(j);this.updateLocationInfo(this.locateInternal(M,T))}else if(N instanceof Ps)for(var g=new Bz(N);g.hasNext();){var s=g.next();s!==N&&this.computeLocation(M,s)}},EA.prototype.locate=function(M,N){return N.isEmpty()?Cg.EXTERIOR:N instanceof Hs||N instanceof qs?this.locateInternal(M,N):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(M,N),this._boundaryRule.isInBoundary(this._numBoundaries)?Cg.BOUNDARY:this._numBoundaries>0||this._isIn?Cg.INTERIOR:Cg.EXTERIOR)},EA.prototype.interfaces_=function(){return[]},EA.prototype.getClass=function(){return EA};var OA=function M(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length){var N=arguments[0],D=arguments[1];M.call(this,N,M.INSIDE_AREA,D)}else if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2];this._component=t,this._segIndex=i,this._pt=e}},xA={INSIDE_AREA:{configurable:!0}};OA.prototype.isInsideArea=function(){return this._segIndex===OA.INSIDE_AREA},OA.prototype.getCoordinate=function(){return this._pt},OA.prototype.getGeometryComponent=function(){return this._component},OA.prototype.getSegmentIndex=function(){return this._segIndex},OA.prototype.interfaces_=function(){return[]},OA.prototype.getClass=function(){return OA},xA.INSIDE_AREA.get=function(){return-1},Object.defineProperties(OA,xA);var CA=function(M){this._pts=M||null};CA.prototype.filter=function(M){M instanceof Vs&&this._pts.add(M)},CA.prototype.interfaces_=function(){return[Bs]},CA.prototype.getClass=function(){return CA},CA.getPoints=function(){if(1===arguments.length){var M=arguments[0];return M instanceof Vs?qu.singletonList(M):CA.getPoints(M,new os)}if(2===arguments.length){var N=arguments[0],D=arguments[1];return N instanceof Vs?D.add(N):N instanceof Ps&&N.apply(new CA(D)),D}};var SA=function(){this._locations=null;var M=arguments[0];this._locations=M};SA.prototype.filter=function(M){(M instanceof Vs||M instanceof Hs||M instanceof qs)&&this._locations.add(new OA(M,0,M.getCoordinate()))},SA.prototype.interfaces_=function(){return[Bs]},SA.prototype.getClass=function(){return SA},SA.getLocations=function(M){var N=new os;return M.apply(new SA(N)),N};var lA=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new EA,this._minDistanceLocation=null,this._minDistance=rg.MAX_VALUE,2===arguments.length){var M=arguments[0],N=arguments[1];this._geom=[M,N],this._terminateDistance=0}else if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=D,this._geom[1]=t,this._terminateDistance=i}};lA.prototype.computeContainmentDistance=function(){if(0===arguments.length){var M=new Array(2).fill(null);if(this.computeContainmentDistance(0,M),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,M)}else if(2===arguments.length){var N=arguments[0],D=arguments[1],t=1-N,i=aA.getPolygons(this._geom[N]);if(i.size()>0){var e=SA.getLocations(this._geom[t]);if(this.computeContainmentDistance(e,i,D),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[t]=D[0],this._minDistanceLocation[N]=D[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&lg(arguments[0],as)&&lg(arguments[1],as)){for(var j=arguments[0],T=arguments[1],g=arguments[2],s=0;s<j.size();s++)for(var u=j.get(s),z=0;z<T.size();z++)if(this.computeContainmentDistance(u,T.get(z),g),this._minDistance<=this._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof OA&&arguments[1]instanceof qs){var A=arguments[0],L=arguments[1],I=arguments[2],n=A.getCoordinate();if(Cg.EXTERIOR!==this._ptLocator.locate(n,L))return this._minDistance=0,I[0]=A,I[1]=new OA(L,n),null}},lA.prototype.computeMinDistanceLinesPoints=function(M,N,D){for(var t=0;t<M.size();t++)for(var i=M.get(t),e=0;e<N.size();e++){var j=N.get(e);if(this.computeMinDistance(i,j,D),this._minDistance<=this._terminateDistance)return null}},lA.prototype.computeFacetDistance=function(){var M=new Array(2).fill(null),N=oA.getLines(this._geom[0]),D=oA.getLines(this._geom[1]),t=CA.getPoints(this._geom[0]),i=CA.getPoints(this._geom[1]);return this.computeMinDistanceLines(N,D,M),this.updateMinDistance(M,!1),this._minDistance<=this._terminateDistance?null:(M[0]=null,M[1]=null,this.computeMinDistanceLinesPoints(N,i,M),this.updateMinDistance(M,!1),this._minDistance<=this._terminateDistance?null:(M[0]=null,M[1]=null,this.computeMinDistanceLinesPoints(D,t,M),this.updateMinDistance(M,!0),this._minDistance<=this._terminateDistance?null:(M[0]=null,M[1]=null,this.computeMinDistancePoints(t,i,M),void this.updateMinDistance(M,!1))))},lA.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation},lA.prototype.updateMinDistance=function(M,N){if(null===M[0])return null;N?(this._minDistanceLocation[0]=M[1],this._minDistanceLocation[1]=M[0]):(this._minDistanceLocation[0]=M[0],this._minDistanceLocation[1]=M[1])},lA.prototype.nearestPoints=function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},lA.prototype.computeMinDistance=function(){if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof Hs&&arguments[1]instanceof Vs){var M=arguments[0],N=arguments[1],D=arguments[2];if(M.getEnvelopeInternal().distance(N.getEnvelopeInternal())>this._minDistance)return null;for(var t=M.getCoordinates(),i=N.getCoordinate(),e=0;e<t.length-1;e++){var j=is.distancePointLine(i,t[e],t[e+1]);if(j<this._minDistance){this._minDistance=j;var T=new Az(t[e],t[e+1]).closestPoint(i);D[0]=new OA(M,e,T),D[1]=new OA(N,0,i)}if(this._minDistance<=this._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof Hs&&arguments[1]instanceof Hs){var g=arguments[0],s=arguments[1],u=arguments[2];if(g.getEnvelopeInternal().distance(s.getEnvelopeInternal())>this._minDistance)return null;for(var z=g.getCoordinates(),A=s.getCoordinates(),L=0;L<z.length-1;L++)for(var I=0;I<A.length-1;I++){var n=is.distanceLineLine(z[L],z[L+1],A[I],A[I+1]);if(n<this._minDistance){this._minDistance=n;var r=new Az(z[L],z[L+1]),w=new Az(A[I],A[I+1]),c=r.closestPoints(w);u[0]=new OA(g,L,c[0]),u[1]=new OA(s,I,c[1])}if(this._minDistance<=this._terminateDistance)return null}}},lA.prototype.computeMinDistancePoints=function(M,N,D){for(var t=0;t<M.size();t++)for(var i=M.get(t),e=0;e<N.size();e++){var j=N.get(e),T=i.getCoordinate().distance(j.getCoordinate());if(T<this._minDistance&&(this._minDistance=T,D[0]=new OA(i,0,i.getCoordinate()),D[1]=new OA(j,0,j.getCoordinate())),this._minDistance<=this._terminateDistance)return null}},lA.prototype.distance=function(){if(null===this._geom[0]||null===this._geom[1])throw new ng("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},lA.prototype.computeMinDistanceLines=function(M,N,D){for(var t=0;t<M.size();t++)for(var i=M.get(t),e=0;e<N.size();e++){var j=N.get(e);if(this.computeMinDistance(i,j,D),this._minDistance<=this._terminateDistance)return null}},lA.prototype.interfaces_=function(){return[]},lA.prototype.getClass=function(){return lA},lA.distance=function(M,N){return new lA(M,N).distance()},lA.isWithinDistance=function(M,N,D){return new lA(M,N,D).distance()<=D},lA.nearestPoints=function(M,N){return new lA(M,N).nearestPoints()};var kA=function(){this._pt=[new og,new og],this._distance=rg.NaN,this._isNull=!0};kA.prototype.getCoordinates=function(){return this._pt},kA.prototype.getCoordinate=function(M){return this._pt[M]},kA.prototype.setMinimum=function(){if(1===arguments.length){var M=arguments[0];this.setMinimum(M._pt[0],M._pt[1])}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(this._isNull)return this.initialize(N,D),null;var t=N.distance(D);t<this._distance&&this.initialize(N,D,t)}},kA.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var M=arguments[0],N=arguments[1];this._pt[0].setCoordinate(M),this._pt[1].setCoordinate(N),this._distance=M.distance(N),this._isNull=!1}else if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2];this._pt[0].setCoordinate(D),this._pt[1].setCoordinate(t),this._distance=i,this._isNull=!1}},kA.prototype.toString=function(){return Vg.toLineString(this._pt[0],this._pt[1])},kA.prototype.getDistance=function(){return this._distance},kA.prototype.setMaximum=function(){if(1===arguments.length){var M=arguments[0];this.setMaximum(M._pt[0],M._pt[1])}else if(2===arguments.length){var N=arguments[0],D=arguments[1];if(this._isNull)return this.initialize(N,D),null;var t=N.distance(D);t>this._distance&&this.initialize(N,D,t)}},kA.prototype.interfaces_=function(){return[]},kA.prototype.getClass=function(){return kA};var QA=function(){};QA.prototype.interfaces_=function(){return[]},QA.prototype.getClass=function(){return QA},QA.computeDistance=function(){if(arguments[2]instanceof kA&&arguments[0]instanceof Hs&&arguments[1]instanceof og)for(var M=arguments[0],N=arguments[1],D=arguments[2],t=new Az,i=M.getCoordinates(),e=0;e<i.length-1;e++){t.setCoordinates(i[e],i[e+1]);var j=t.closestPoint(N);D.setMinimum(j,N)}else if(arguments[2]instanceof kA&&arguments[0]instanceof qs&&arguments[1]instanceof og){var T=arguments[0],g=arguments[1],s=arguments[2];QA.computeDistance(T.getExteriorRing(),g,s);for(var u=0;u<T.getNumInteriorRing();u++)QA.computeDistance(T.getInteriorRingN(u),g,s)}else if(arguments[2]instanceof kA&&arguments[0]instanceof Ts&&arguments[1]instanceof og){var z=arguments[0],A=arguments[1],L=arguments[2];if(z instanceof Hs)QA.computeDistance(z,A,L);else if(z instanceof qs)QA.computeDistance(z,A,L);else if(z instanceof Ps)for(var I=z,n=0;n<I.getNumGeometries();n++){var r=I.getGeometryN(n);QA.computeDistance(r,A,L)}else L.setMinimum(z.getCoordinate(),A)}else if(arguments[2]instanceof kA&&arguments[0]instanceof Az&&arguments[1]instanceof og){var w=arguments[0],c=arguments[1],y=arguments[2],a=w.closestPoint(c);y.setMinimum(a,c)}};var dA=function(){this._g0=null,this._g1=null,this._ptDist=new kA,this._densifyFrac=0;var M=arguments[0],N=arguments[1];this._g0=M,this._g1=N},YA={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};dA.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()},dA.prototype.setDensifyFraction=function(M){if(M>1||M<=0)throw new ng("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=M},dA.prototype.compute=function(M,N){this.computeOrientedDistance(M,N,this._ptDist),this.computeOrientedDistance(N,M,this._ptDist)},dA.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},dA.prototype.computeOrientedDistance=function(M,N,D){var t=new pA(N);if(M.apply(t),D.setMaximum(t.getMaxPointDistance()),this._densifyFrac>0){var i=new UA(N,this._densifyFrac);M.apply(i),D.setMaximum(i.getMaxPointDistance())}},dA.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},dA.prototype.interfaces_=function(){return[]},dA.prototype.getClass=function(){return dA},dA.distance=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];return new dA(M,N).distance()}if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2],e=new dA(D,t);return e.setDensifyFraction(i),e.distance()}},YA.MaxPointDistanceFilter.get=function(){return pA},YA.MaxDensifiedByFractionDistanceFilter.get=function(){return UA},Object.defineProperties(dA,YA);var pA=function(){this._maxPtDist=new kA,this._minPtDist=new kA,this._euclideanDist=new QA,this._geom=null;var M=arguments[0];this._geom=M};pA.prototype.filter=function(M){this._minPtDist.initialize(),QA.computeDistance(this._geom,M,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},pA.prototype.getMaxPointDistance=function(){return this._maxPtDist},pA.prototype.interfaces_=function(){return[us]},pA.prototype.getClass=function(){return pA};var UA=function(){this._maxPtDist=new kA,this._minPtDist=new kA,this._geom=null,this._numSubSegs=0;var M=arguments[0],N=arguments[1];this._geom=M,this._numSubSegs=Math.trunc(Math.round(1/N))};UA.prototype.filter=function(M,N){if(0===N)return null;for(var D=M.getCoordinate(N-1),t=M.getCoordinate(N),i=(t.x-D.x)/this._numSubSegs,e=(t.y-D.y)/this._numSubSegs,j=0;j<this._numSubSegs;j++){var T=D.x+j*i,g=D.y+j*e,s=new og(T,g);this._minPtDist.initialize(),QA.computeDistance(this._geom,s,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)}},UA.prototype.isDone=function(){return!1},UA.prototype.isGeometryChanged=function(){return!1},UA.prototype.getMaxPointDistance=function(){return this._maxPtDist},UA.prototype.interfaces_=function(){return[bs]},UA.prototype.getClass=function(){return UA};var hA=function(M,N,D){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=M||null,this._bufDistance=N||null,this._result=D||null},fA={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};hA.prototype.checkMaximumDistance=function(M,N,D){var t=new dA(N,M);if(t.setDensifyFraction(.25),this._maxDistanceFound=t.orientedDistance(),this._maxDistanceFound>D){this._isValid=!1;var i=t.getCoordinates();this._errorLocation=i[1],this._errorIndicator=M.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+Vg.toLineString(i[0],i[1])+")"}},hA.prototype.isValid=function(){var M=Math.abs(this._bufDistance),N=hA.MAX_DISTANCE_DIFF_FRAC*M;return this._minValidDistance=M-N,this._maxValidDistance=M+N,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),hA.VERBOSE&&Zg.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},hA.prototype.checkNegativeValid=function(){if(!(this._input instanceof qs||this._input instanceof Mu||this._input instanceof Ps))return null;var M=this.getPolygonLines(this._input);if(this.checkMinimumDistance(M,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(M,this._result,this._maxValidDistance)},hA.prototype.getErrorIndicator=function(){return this._errorIndicator},hA.prototype.checkMinimumDistance=function(M,N,D){var t=new lA(M,N,D);if(this._minDistanceFound=t.distance(),this._minDistanceFound<D){this._isValid=!1;var i=t.nearestPoints();this._errorLocation=t.nearestPoints()[1],this._errorIndicator=M.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+Vg.toLineString(i[0],i[1])+" )"}},hA.prototype.checkPositiveValid=function(){var M=this._result.getBoundary();if(this.checkMinimumDistance(this._input,M,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,M,this._maxValidDistance)},hA.prototype.getErrorLocation=function(){return this._errorLocation},hA.prototype.getPolygonLines=function(M){for(var N=new os,D=new oA(N),t=aA.getPolygons(M).iterator();t.hasNext();)t.next().apply(D);return M.getFactory().buildGeometry(N)},hA.prototype.getErrorMessage=function(){return this._errMsg},hA.prototype.interfaces_=function(){return[]},hA.prototype.getClass=function(){return hA},fA.VERBOSE.get=function(){return!1},fA.MAX_DISTANCE_DIFF_FRAC.get=function(){return.012},Object.defineProperties(hA,fA);var mA=function(M,N,D){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=M||null,this._distance=N||null,this._result=D||null},vA={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};mA.prototype.isValid=function(){return this.checkPolygonal(),this._isValid?(this.checkExpectedEmpty(),this._isValid?(this.checkEnvelope(),this._isValid?(this.checkArea(),this._isValid?(this.checkDistance(),this._isValid):this._isValid):this._isValid):this._isValid):this._isValid},mA.prototype.checkEnvelope=function(){if(this._distance<0)return null;var M=this._distance*mA.MAX_ENV_DIFF_FRAC;0===M&&(M=.001);var N=new Wg(this._input.getEnvelopeInternal());N.expandBy(this._distance);var D=new Wg(this._result.getEnvelopeInternal());D.expandBy(M),D.contains(N)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(D)),this.report("Envelope")},mA.prototype.checkDistance=function(){var M=new hA(this._input,this._distance,this._result);M.isValid()||(this._isValid=!1,this._errorMsg=M.getErrorMessage(),this._errorLocation=M.getErrorLocation(),this._errorIndicator=M.getErrorIndicator()),this.report("Distance")},mA.prototype.checkArea=function(){var M=this._input.getArea(),N=this._result.getArea();this._distance>0&&M>N&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&M<N&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")},mA.prototype.checkPolygonal=function(){this._result instanceof qs||this._result instanceof Mu||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")},mA.prototype.getErrorIndicator=function(){return this._errorIndicator},mA.prototype.getErrorLocation=function(){return this._errorLocation},mA.prototype.checkExpectedEmpty=function(){return this._input.getDimension()>=2||this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},mA.prototype.report=function(M){if(!mA.VERBOSE)return null;Zg.out.println("Check "+M+": "+(this._isValid?"passed":"FAILED"))},mA.prototype.getErrorMessage=function(){return this._errorMsg},mA.prototype.interfaces_=function(){return[]},mA.prototype.getClass=function(){return mA},mA.isValidMsg=function(M,N,D){var t=new mA(M,N,D);return t.isValid()?null:t.getErrorMessage()},mA.isValid=function(M,N,D){return!!new mA(M,N,D).isValid()},vA.VERBOSE.get=function(){return!1},vA.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(mA,vA);var BA=function(){this._pts=null,this._data=null;var M=arguments[0],N=arguments[1];this._pts=M,this._data=N};BA.prototype.getCoordinates=function(){return this._pts},BA.prototype.size=function(){return this._pts.length},BA.prototype.getCoordinate=function(M){return this._pts[M]},BA.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},BA.prototype.getSegmentOctant=function(M){return M===this._pts.length-1?-1:gz.octant(this.getCoordinate(M),this.getCoordinate(M+1))},BA.prototype.setData=function(M){this._data=M},BA.prototype.getData=function(){return this._data},BA.prototype.toString=function(){return Vg.toLineString(new ju(this._pts))},BA.prototype.interfaces_=function(){return[sz]},BA.prototype.getClass=function(){return BA};var bA=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new os,this._intersectionCount=0,this._keepIntersections=!0;var M=arguments[0];this._li=M,this._interiorIntersection=null};bA.prototype.getInteriorIntersection=function(){return this._interiorIntersection},bA.prototype.setCheckEndSegmentsOnly=function(M){this._isCheckEndSegmentsOnly=M},bA.prototype.getIntersectionSegments=function(){return this._intSegments},bA.prototype.count=function(){return this._intersectionCount},bA.prototype.getIntersections=function(){return this._intersections},bA.prototype.setFindAllIntersections=function(M){this._findAllIntersections=M},bA.prototype.setKeepIntersections=function(M){this._keepIntersections=M},bA.prototype.processIntersections=function(M,N,D,t){if(!this._findAllIntersections&&this.hasIntersection())return null;if(M===D&&N===t)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(M,N)&&!this.isEndSegment(D,t))return null;var i=M.getCoordinates()[N],e=M.getCoordinates()[N+1],j=D.getCoordinates()[t],T=D.getCoordinates()[t+1];this._li.computeIntersection(i,e,j,T),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=i,this._intSegments[1]=e,this._intSegments[2]=j,this._intSegments[3]=T,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},bA.prototype.isEndSegment=function(M,N){return 0===N||N>=M.size()-2},bA.prototype.hasIntersection=function(){return null!==this._interiorIntersection},bA.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},bA.prototype.interfaces_=function(){return[Xz]},bA.prototype.getClass=function(){return bA},bA.createAllIntersectionsFinder=function(M){var N=new bA(M);return N.setFindAllIntersections(!0),N},bA.createAnyIntersectionFinder=function(M){return new bA(M)},bA.createIntersectionCounter=function(M){var N=new bA(M);return N.setFindAllIntersections(!0),N.setKeepIntersections(!1),N};var PA=function(){this._li=new Ns,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var M=arguments[0];this._segStrings=M};PA.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},PA.prototype.getIntersections=function(){return this._segInt.getIntersections()},PA.prototype.isValid=function(){return this.execute(),this._isValid},PA.prototype.setFindAllIntersections=function(M){this._findAllIntersections=M},PA.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new bA(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var M=new yz;if(M.setSegmentIntersector(this._segInt),M.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},PA.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new Su(this.getErrorMessage(),this._segInt.getInteriorIntersection())},PA.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var M=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+Vg.toLineString(M[0],M[1])+" and "+Vg.toLineString(M[2],M[3])},PA.prototype.interfaces_=function(){return[]},PA.prototype.getClass=function(){return PA},PA.computeIntersections=function(M){var N=new PA(M);return N.setFindAllIntersections(!0),N.isValid(),N.getIntersections()};var ZA=function M(){this._nv=null;var N=arguments[0];this._nv=new PA(M.toSegmentStrings(N))};ZA.prototype.checkValid=function(){this._nv.checkValid()},ZA.prototype.interfaces_=function(){return[]},ZA.prototype.getClass=function(){return ZA},ZA.toSegmentStrings=function(M){for(var N=new os,D=M.iterator();D.hasNext();){var t=D.next();N.add(new BA(t.getCoordinates(),t))}return N},ZA.checkValid=function(M){new ZA(M).checkValid()};var GA=function(M){this._mapOp=M};GA.prototype.map=function(M){for(var N=new os,D=0;D<M.getNumGeometries();D++){var t=this._mapOp.map(M.getGeometryN(D));t.isEmpty()||N.add(t)}return M.getFactory().createGeometryCollection(nu.toGeometryArray(N))},GA.prototype.interfaces_=function(){return[]},GA.prototype.getClass=function(){return GA},GA.map=function(M,N){return new GA(N).map(M)};var WA=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new os,this._resultLineList=new os;var M=arguments[0],N=arguments[1],D=arguments[2];this._op=M,this._geometryFactory=N,this._ptLocator=D};WA.prototype.collectLines=function(M){for(var N=this._op.getGraph().getEdgeEnds().iterator();N.hasNext();){var D=N.next();this.collectLineEdge(D,M,this._lineEdgesList),this.collectBoundaryTouchEdge(D,M,this._lineEdgesList)}},WA.prototype.labelIsolatedLine=function(M,N){var D=this._ptLocator.locate(M.getCoordinate(),this._op.getArgGeometry(N));M.getLabel().setLocation(N,D)},WA.prototype.build=function(M){return this.findCoveredLineEdges(),this.collectLines(M),this.buildLines(M),this._resultLineList},WA.prototype.collectLineEdge=function(M,N,D){var t=M.getLabel(),i=M.getEdge();M.isLineEdge()&&(M.isVisited()||!OL.isResultOfOp(t,N)||i.isCovered()||(D.add(i),M.setVisitedEdge(!0)))},WA.prototype.findCoveredLineEdges=function(){for(var M=this._op.getGraph().getNodes().iterator();M.hasNext();)M.next().getEdges().findCoveredLineEdges();for(var N=this._op.getGraph().getEdgeEnds().iterator();N.hasNext();){var D=N.next(),t=D.getEdge();if(D.isLineEdge()&&!t.isCoveredSet()){var i=this._op.isCoveredByA(D.getCoordinate());t.setCovered(i)}}},WA.prototype.labelIsolatedLines=function(M){for(var N=M.iterator();N.hasNext();){var D=N.next(),t=D.getLabel();D.isIsolated()&&(t.isNull(0)?this.labelIsolatedLine(D,0):this.labelIsolatedLine(D,1))}},WA.prototype.buildLines=function(M){for(var N=this._lineEdgesList.iterator();N.hasNext();){var D=N.next(),t=this._geometryFactory.createLineString(D.getCoordinates());this._resultLineList.add(t),D.setInResult(!0)}},WA.prototype.collectBoundaryTouchEdge=function(M,N,D){var t=M.getLabel();return M.isLineEdge()||M.isVisited()||M.isInteriorAreaEdge()||M.getEdge().isInResult()?null:(Kg.isTrue(!(M.isInResult()||M.getSym().isInResult())||!M.getEdge().isInResult()),void(OL.isResultOfOp(t,N)&&N===OL.INTERSECTION&&(D.add(M.getEdge()),M.setVisitedEdge(!0))))},WA.prototype.interfaces_=function(){return[]},WA.prototype.getClass=function(){return WA};var RA=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new os;var M=arguments[0],N=arguments[1];this._op=M,this._geometryFactory=N};RA.prototype.filterCoveredNodeToPoint=function(M){var N=M.getCoordinate();if(!this._op.isCoveredByLA(N)){var D=this._geometryFactory.createPoint(N);this._resultPointList.add(D)}},RA.prototype.extractNonCoveredResultNodes=function(M){for(var N=this._op.getGraph().getNodes().iterator();N.hasNext();){var D=N.next();if(!D.isInResult()&&!D.isIncidentEdgeInResult()&&(0===D.getEdges().getDegree()||M===OL.INTERSECTION)){var t=D.getLabel();OL.isResultOfOp(t,M)&&this.filterCoveredNodeToPoint(D)}}},RA.prototype.build=function(M){return this.extractNonCoveredResultNodes(M),this._resultPointList},RA.prototype.interfaces_=function(){return[]},RA.prototype.getClass=function(){return RA};var XA=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};XA.prototype.transformPoint=function(M,N){return this._factory.createPoint(this.transformCoordinates(M.getCoordinateSequence(),M))},XA.prototype.transformPolygon=function(M,N){var D=!0,t=this.transformLinearRing(M.getExteriorRing(),M);null!==t&&t instanceof $s&&!t.isEmpty()||(D=!1);for(var i=new os,e=0;e<M.getNumInteriorRing();e++){var j=this.transformLinearRing(M.getInteriorRingN(e),M);null===j||j.isEmpty()||(j instanceof $s||(D=!1),i.add(j))}if(D)return this._factory.createPolygon(t,i.toArray([]));var T=new os;return null!==t&&T.add(t),T.addAll(i),this._factory.buildGeometry(T)},XA.prototype.createCoordinateSequence=function(M){return this._factory.getCoordinateSequenceFactory().create(M)},XA.prototype.getInputGeometry=function(){return this._inputGeom},XA.prototype.transformMultiLineString=function(M,N){for(var D=new os,t=0;t<M.getNumGeometries();t++){var i=this.transformLineString(M.getGeometryN(t),M);null!==i&&(i.isEmpty()||D.add(i))}return this._factory.buildGeometry(D)},XA.prototype.transformCoordinates=function(M,N){return this.copy(M)},XA.prototype.transformLineString=function(M,N){return this._factory.createLineString(this.transformCoordinates(M.getCoordinateSequence(),M))},XA.prototype.transformMultiPoint=function(M,N){for(var D=new os,t=0;t<M.getNumGeometries();t++){var i=this.transformPoint(M.getGeometryN(t),M);null!==i&&(i.isEmpty()||D.add(i))}return this._factory.buildGeometry(D)},XA.prototype.transformMultiPolygon=function(M,N){for(var D=new os,t=0;t<M.getNumGeometries();t++){var i=this.transformPolygon(M.getGeometryN(t),M);null!==i&&(i.isEmpty()||D.add(i))}return this._factory.buildGeometry(D)},XA.prototype.copy=function(M){return M.copy()},XA.prototype.transformGeometryCollection=function(M,N){for(var D=new os,t=0;t<M.getNumGeometries();t++){var i=this.transform(M.getGeometryN(t));null!==i&&(this._pruneEmptyGeometry&&i.isEmpty()||D.add(i))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(nu.toGeometryArray(D)):this._factory.buildGeometry(D)},XA.prototype.transform=function(M){if(this._inputGeom=M,this._factory=M.getFactory(),M instanceof Vs)return this.transformPoint(M,null);if(M instanceof Ks)return this.transformMultiPoint(M,null);if(M instanceof $s)return this.transformLinearRing(M,null);if(M instanceof Hs)return this.transformLineString(M,null);if(M instanceof Zs)return this.transformMultiLineString(M,null);if(M instanceof qs)return this.transformPolygon(M,null);if(M instanceof Mu)return this.transformMultiPolygon(M,null);if(M instanceof Ps)return this.transformGeometryCollection(M,null);throw new ng("Unknown Geometry subtype: "+M.getClass().getName())},XA.prototype.transformLinearRing=function(M,N){var D=this.transformCoordinates(M.getCoordinateSequence(),M);if(null===D)return this._factory.createLinearRing(null);var t=D.size();return t>0&&t<4&&!this._preserveType?this._factory.createLineString(D):this._factory.createLinearRing(D)},XA.prototype.interfaces_=function(){return[]},XA.prototype.getClass=function(){return XA};var _A=function M(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new Az,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Hs&&"number"==typeof arguments[1]){var N=arguments[0],D=arguments[1];M.call(this,N.getCoordinates(),D)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var t=arguments[0],i=arguments[1];this._srcPts=t,this._isClosed=M.isClosed(t),this._snapTolerance=i}};_A.prototype.snapVertices=function(M,N){for(var D=this._isClosed?M.size()-1:M.size(),t=0;t<D;t++){var i=M.get(t),e=this.findSnapForVertex(i,N);null!==e&&(M.set(t,new og(e)),0===t&&this._isClosed&&M.set(M.size()-1,new og(e)))}},_A.prototype.findSnapForVertex=function(M,N){for(var D=0;D<N.length;D++){if(M.equals2D(N[D]))return null;if(M.distance(N[D])<this._snapTolerance)return N[D]}return null},_A.prototype.snapTo=function(M){var N=new Os(this._srcPts);return this.snapVertices(N,M),this.snapSegments(N,M),N.toCoordinateArray()},_A.prototype.snapSegments=function(M,N){if(0===N.length)return null;var D=N.length;N[0].equals2D(N[N.length-1])&&(D=N.length-1);for(var t=0;t<D;t++){var i=N[t],e=this.findSegmentIndexToSnap(i,M);e>=0&&M.add(e+1,new og(i),!1)}},_A.prototype.findSegmentIndexToSnap=function(M,N){for(var D=rg.MAX_VALUE,t=-1,i=0;i<N.size()-1;i++){if(this._seg.p0=N.get(i),this._seg.p1=N.get(i+1),this._seg.p0.equals2D(M)||this._seg.p1.equals2D(M)){if(this._allowSnappingToSourceVertices)continue;return-1}var e=this._seg.distance(M);e<this._snapTolerance&&e<D&&(D=e,t=i)}return t},_A.prototype.setAllowSnappingToSourceVertices=function(M){this._allowSnappingToSourceVertices=M},_A.prototype.interfaces_=function(){return[]},_A.prototype.getClass=function(){return _A},_A.isClosed=function(M){return!(M.length<=1)&&M[0].equals2D(M[M.length-1])};var HA=function(M){this._srcGeom=M||null},FA={SNAP_PRECISION_FACTOR:{configurable:!0}};HA.prototype.snapTo=function(M,N){var D=this.extractTargetCoordinates(M);return new VA(N,D).transform(this._srcGeom)},HA.prototype.snapToSelf=function(M,N){var D=this.extractTargetCoordinates(this._srcGeom),t=new VA(M,D,!0).transform(this._srcGeom),i=t;return N&&lg(i,Js)&&(i=t.buffer(0)),i},HA.prototype.computeSnapTolerance=function(M){return this.computeMinimumSegmentLength(M)/10},HA.prototype.extractTargetCoordinates=function(M){for(var N=new bi,D=M.getCoordinates(),t=0;t<D.length;t++)N.add(D[t]);return N.toArray(new Array(0).fill(null))},HA.prototype.computeMinimumSegmentLength=function(M){for(var N=rg.MAX_VALUE,D=0;D<M.length-1;D++){var t=M[D].distance(M[D+1]);t<N&&(N=t)}return N},HA.prototype.interfaces_=function(){return[]},HA.prototype.getClass=function(){return HA},HA.snap=function(M,N,D){var t=new Array(2).fill(null),i=new HA(M);t[0]=i.snapTo(N,D);var e=new HA(N);return t[1]=e.snapTo(t[0],D),t},HA.computeOverlaySnapTolerance=function(){if(1===arguments.length){var M=arguments[0],N=HA.computeSizeBasedSnapTolerance(M),D=M.getPrecisionModel();if(D.getType()===zu.FIXED){var t=1/D.getScale()*2/1.415;t>N&&(N=t)}return N}if(2===arguments.length){var i=arguments[0],e=arguments[1];return Math.min(HA.computeOverlaySnapTolerance(i),HA.computeOverlaySnapTolerance(e))}},HA.computeSizeBasedSnapTolerance=function(M){var N=M.getEnvelopeInternal();return Math.min(N.getHeight(),N.getWidth())*HA.SNAP_PRECISION_FACTOR},HA.snapToSelf=function(M,N,D){return new HA(M).snapToSelf(N,D)},FA.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(HA,FA);var VA=function(M){function N(N,D,t){M.call(this),this._snapTolerance=N||null,this._snapPts=D||null,this._isSelfSnap=void 0!==t&&t}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.snapLine=function(M,N){var D=new _A(M,this._snapTolerance);return D.setAllowSnappingToSourceVertices(this._isSelfSnap),D.snapTo(N)},N.prototype.transformCoordinates=function(M,N){var D=M.toCoordinateArray(),t=this.snapLine(D,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(t)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(XA),JA=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};JA.prototype.getCommon=function(){return rg.longBitsToDouble(this._commonBits)},JA.prototype.add=function(M){var N=rg.doubleToLongBits(M);return this._isFirst?(this._commonBits=N,this._commonSignExp=JA.signExpBits(this._commonBits),this._isFirst=!1,null):JA.signExpBits(N)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=JA.numCommonMostSigMantissaBits(this._commonBits,N),void(this._commonBits=JA.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},JA.prototype.toString=function(){if(1===arguments.length){var M=arguments[0],N=rg.longBitsToDouble(M),D="0000000000000000000000000000000000000000000000000000000000000000"+rg.toBinaryString(M),t=D.substring(D.length-64);return t.substring(0,1)+" "+t.substring(1,12)+"(exp) "+t.substring(12)+" [ "+N+" ]"}},JA.prototype.interfaces_=function(){return[]},JA.prototype.getClass=function(){return JA},JA.getBit=function(M,N){return 0!=(M&1<<N)?1:0},JA.signExpBits=function(M){return M>>52},JA.zeroLowerBits=function(M,N){return M&~((1<<N)-1)},JA.numCommonMostSigMantissaBits=function(M,N){for(var D=0,t=52;t>=0;t--){if(JA.getBit(M,t)!==JA.getBit(N,t))return D;D++}return 52};var qA=function(){this._commonCoord=null,this._ccFilter=new $A},KA={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};qA.prototype.addCommonBits=function(M){var N=new ML(this._commonCoord);M.apply(N),M.geometryChanged()},qA.prototype.removeCommonBits=function(M){if(0===this._commonCoord.x&&0===this._commonCoord.y)return M;var N=new og(this._commonCoord);N.x=-N.x,N.y=-N.y;var D=new ML(N);return M.apply(D),M.geometryChanged(),M},qA.prototype.getCommonCoordinate=function(){return this._commonCoord},qA.prototype.add=function(M){M.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},qA.prototype.interfaces_=function(){return[]},qA.prototype.getClass=function(){return qA},KA.CommonCoordinateFilter.get=function(){return $A},KA.Translater.get=function(){return ML},Object.defineProperties(qA,KA);var $A=function(){this._commonBitsX=new JA,this._commonBitsY=new JA};$A.prototype.filter=function(M){this._commonBitsX.add(M.x),this._commonBitsY.add(M.y)},$A.prototype.getCommonCoordinate=function(){return new og(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},$A.prototype.interfaces_=function(){return[us]},$A.prototype.getClass=function(){return $A};var ML=function(){this.trans=null;var M=arguments[0];this.trans=M};ML.prototype.filter=function(M,N){var D=M.getOrdinate(N,0)+this.trans.x,t=M.getOrdinate(N,1)+this.trans.y;M.setOrdinate(N,0,D),M.setOrdinate(N,1,t)},ML.prototype.isDone=function(){return!1},ML.prototype.isGeometryChanged=function(){return!0},ML.prototype.interfaces_=function(){return[bs]},ML.prototype.getClass=function(){return ML};var NL=function(M,N){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=M,this._geom[1]=N,this.computeSnapTolerance()};NL.prototype.selfSnap=function(M){return new HA(M).snapTo(M,this._snapTolerance)},NL.prototype.removeCommonBits=function(M){this._cbr=new qA,this._cbr.add(M[0]),this._cbr.add(M[1]);var N=new Array(2).fill(null);return N[0]=this._cbr.removeCommonBits(M[0].copy()),N[1]=this._cbr.removeCommonBits(M[1].copy()),N},NL.prototype.prepareResult=function(M){return this._cbr.addCommonBits(M),M},NL.prototype.getResultGeometry=function(M){var N=this.snap(this._geom),D=OL.overlayOp(N[0],N[1],M);return this.prepareResult(D)},NL.prototype.checkValid=function(M){M.isValid()||Zg.out.println("Snapped geometry is invalid")},NL.prototype.computeSnapTolerance=function(){this._snapTolerance=HA.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},NL.prototype.snap=function(M){var N=this.removeCommonBits(M);return HA.snap(N[0],N[1],this._snapTolerance)},NL.prototype.interfaces_=function(){return[]},NL.prototype.getClass=function(){return NL},NL.overlayOp=function(M,N,D){return new NL(M,N).getResultGeometry(D)},NL.union=function(M,N){return NL.overlayOp(M,N,OL.UNION)},NL.intersection=function(M,N){return NL.overlayOp(M,N,OL.INTERSECTION)},NL.symDifference=function(M,N){return NL.overlayOp(M,N,OL.SYMDIFFERENCE)},NL.difference=function(M,N){return NL.overlayOp(M,N,OL.DIFFERENCE)};var DL=function(M,N){this._geom=new Array(2).fill(null),this._geom[0]=M,this._geom[1]=N};DL.prototype.getResultGeometry=function(M){var N=null,D=!1,t=null;try{N=OL.overlayOp(this._geom[0],this._geom[1],M),D=!0}catch(M){if(!(M instanceof Jg))throw M;t=M}if(!D)try{N=NL.overlayOp(this._geom[0],this._geom[1],M)}catch(M){throw M instanceof Jg?t:M}return N},DL.prototype.interfaces_=function(){return[]},DL.prototype.getClass=function(){return DL},DL.overlayOp=function(M,N,D){return new DL(M,N).getResultGeometry(D)},DL.union=function(M,N){return DL.overlayOp(M,N,OL.UNION)},DL.intersection=function(M,N){return DL.overlayOp(M,N,OL.INTERSECTION)},DL.symDifference=function(M,N){return DL.overlayOp(M,N,OL.SYMDIFFERENCE)},DL.difference=function(M,N){return DL.overlayOp(M,N,OL.DIFFERENCE)};var tL=function(){this.mce=null,this.chainIndex=null;var M=arguments[0],N=arguments[1];this.mce=M,this.chainIndex=N};tL.prototype.computeIntersections=function(M,N){this.mce.computeIntersectsForChain(this.chainIndex,M.mce,M.chainIndex,N)},tL.prototype.interfaces_=function(){return[]},tL.prototype.getClass=function(){return tL};var iL=function M(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var N=arguments[0],D=arguments[1];this._eventType=M.DELETE,this._xValue=N,this._insertEvent=D}else if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2];this._eventType=M.INSERT,this._label=t,this._xValue=i,this._obj=e}},eL={INSERT:{configurable:!0},DELETE:{configurable:!0}};iL.prototype.isDelete=function(){return this._eventType===iL.DELETE},iL.prototype.setDeleteEventIndex=function(M){this._deleteEventIndex=M},iL.prototype.getObject=function(){return this._obj},iL.prototype.compareTo=function(M){var N=M;return this._xValue<N._xValue?-1:this._xValue>N._xValue?1:this._eventType<N._eventType?-1:this._eventType>N._eventType?1:0},iL.prototype.getInsertEvent=function(){return this._insertEvent},iL.prototype.isInsert=function(){return this._eventType===iL.INSERT},iL.prototype.isSameLabel=function(M){return null!==this._label&&this._label===M._label},iL.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},iL.prototype.interfaces_=function(){return[cg]},iL.prototype.getClass=function(){return iL},eL.INSERT.get=function(){return 1},eL.DELETE.get=function(){return 2},Object.defineProperties(iL,eL);var jL=function(){};jL.prototype.interfaces_=function(){return[]},jL.prototype.getClass=function(){return jL};var TL=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var M=arguments[0],N=arguments[1],D=arguments[2];this._li=M,this._includeProper=N,this._recordIsolated=D};TL.prototype.isTrivialIntersection=function(M,N,D,t){if(M===D&&1===this._li.getIntersectionNum()){if(TL.isAdjacentSegments(N,t))return!0;if(M.isClosed()){var i=M.getNumPoints()-1;if(0===N&&t===i||0===t&&N===i)return!0}}return!1},TL.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},TL.prototype.setIsDoneIfProperInt=function(M){this._isDoneWhenProperInt=M},TL.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},TL.prototype.isBoundaryPointInternal=function(M,N){for(var D=N.iterator();D.hasNext();){var t=D.next().getCoordinate();if(M.isIntersection(t))return!0}return!1},TL.prototype.hasProperIntersection=function(){return this._hasProper},TL.prototype.hasIntersection=function(){return this._hasIntersection},TL.prototype.isDone=function(){return this._isDone},TL.prototype.isBoundaryPoint=function(M,N){return null!==N&&(!!this.isBoundaryPointInternal(M,N[0])||!!this.isBoundaryPointInternal(M,N[1]))},TL.prototype.setBoundaryNodes=function(M,N){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=M,this._bdyNodes[1]=N},TL.prototype.addIntersections=function(M,N,D,t){if(M===D&&N===t)return null;this.numTests++;var i=M.getCoordinates()[N],e=M.getCoordinates()[N+1],j=D.getCoordinates()[t],T=D.getCoordinates()[t+1];this._li.computeIntersection(i,e,j,T),this._li.hasIntersection()&&(this._recordIsolated&&(M.setIsolated(!1),D.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(M,N,D,t)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(M.addIntersections(this._li,N,0),D.addIntersections(this._li,t,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},TL.prototype.interfaces_=function(){return[]},TL.prototype.getClass=function(){return TL},TL.isAdjacentSegments=function(M,N){return 1===Math.abs(M-N)};var gL=function(M){function N(){M.call(this),this.events=new os,this.nOverlaps=null}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.prepareEvents=function(){qu.sort(this.events);for(var M=0;M<this.events.size();M++){var N=this.events.get(M);N.isDelete()&&N.getInsertEvent().setDeleteEventIndex(M)}},N.prototype.computeIntersections=function(){if(1===arguments.length){var M=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var N=0;N<this.events.size();N++){var D=this.events.get(N);if(D.isInsert()&&this.processOverlaps(N,D.getDeleteEventIndex(),D,M),M.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof TL&&lg(arguments[0],as)&&lg(arguments[1],as)){var t=arguments[0],i=arguments[1],e=arguments[2];this.addEdges(t,t),this.addEdges(i,i),this.computeIntersections(e)}else if("boolean"==typeof arguments[2]&&lg(arguments[0],as)&&arguments[1]instanceof TL){var j=arguments[0],T=arguments[1];arguments[2]?this.addEdges(j,null):this.addEdges(j),this.computeIntersections(T)}},N.prototype.addEdge=function(M,N){for(var D=M.getMonotoneChainEdge(),t=D.getStartIndexes(),i=0;i<t.length-1;i++){var e=new tL(D,i),j=new iL(N,D.getMinX(i),e);this.events.add(j),this.events.add(new iL(D.getMaxX(i),j))}},N.prototype.processOverlaps=function(M,N,D,t){for(var i=D.getObject(),e=M;e<N;e++){var j=this.events.get(e);if(j.isInsert()){var T=j.getObject();D.isSameLabel(j)||(i.computeIntersections(T,t),this.nOverlaps++)}}},N.prototype.addEdges=function(){if(1===arguments.length)for(var M=arguments[0].iterator();M.hasNext();){var N=M.next();this.addEdge(N,N)}else if(2===arguments.length)for(var D=arguments[0],t=arguments[1],i=D.iterator();i.hasNext();){var e=i.next();this.addEdge(e,t)}},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(jL),sL=function(){this._min=rg.POSITIVE_INFINITY,this._max=rg.NEGATIVE_INFINITY},uL={NodeComparator:{configurable:!0}};sL.prototype.getMin=function(){return this._min},sL.prototype.intersects=function(M,N){return!(this._min>N||this._max<M)},sL.prototype.getMax=function(){return this._max},sL.prototype.toString=function(){return Vg.toLineString(new og(this._min,0),new og(this._max,0))},sL.prototype.interfaces_=function(){return[]},sL.prototype.getClass=function(){return sL},uL.NodeComparator.get=function(){return zL},Object.defineProperties(sL,uL);var zL=function(){};zL.prototype.compare=function(M,N){var D=M,t=N,i=(D._min+D._max)/2,e=(t._min+t._max)/2;return i<e?-1:i>e?1:0},zL.prototype.interfaces_=function(){return[ag]},zL.prototype.getClass=function(){return zL};var AL=function(M){function N(){M.call(this),this._item=null;var N=arguments[0],D=arguments[1],t=arguments[2];this._min=N,this._max=D,this._item=t}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.query=function(M,N,D){if(!this.intersects(M,N))return null;D.visitItem(this._item)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(sL),LL=function(M){function N(){M.call(this),this._node1=null,this._node2=null;var N=arguments[0],D=arguments[1];this._node1=N,this._node2=D,this.buildExtent(this._node1,this._node2)}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.buildExtent=function(M,N){this._min=Math.min(M._min,N._min),this._max=Math.max(M._max,N._max)},N.prototype.query=function(M,N,D){if(!this.intersects(M,N))return null;null!==this._node1&&this._node1.query(M,N,D),null!==this._node2&&this._node2.query(M,N,D)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(sL),IL=function(){this._leaves=new os,this._root=null,this._level=0};IL.prototype.buildTree=function(){qu.sort(this._leaves,new sL.NodeComparator);for(var M=this._leaves,N=null,D=new os;;){if(this.buildLevel(M,D),1===D.size())return D.get(0);N=M,M=D,D=N}},IL.prototype.insert=function(M,N,D){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new AL(M,N,D))},IL.prototype.query=function(M,N,D){this.init(),this._root.query(M,N,D)},IL.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},IL.prototype.printNode=function(M){Zg.out.println(Vg.toLineString(new og(M._min,this._level),new og(M._max,this._level)))},IL.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},IL.prototype.buildLevel=function(M,N){this._level++,N.clear();for(var D=0;D<M.size();D+=2){var t=M.get(D);if(null===(D+1<M.size()?M.get(D):null))N.add(t);else{var i=new LL(M.get(D),M.get(D+1));N.add(i)}}},IL.prototype.interfaces_=function(){return[]},IL.prototype.getClass=function(){return IL};var nL=function(){this._items=new os};nL.prototype.visitItem=function(M){this._items.add(M)},nL.prototype.getItems=function(){return this._items},nL.prototype.interfaces_=function(){return[Hu]},nL.prototype.getClass=function(){return nL};var rL=function(){this._index=null;var M=arguments[0];if(!lg(M,Js))throw new ng("Argument must be Polygonal");this._index=new yL(M)},wL={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};rL.prototype.locate=function(M){var N=new ts(M),D=new cL(N);return this._index.query(M.y,M.y,D),N.getLocation()},rL.prototype.interfaces_=function(){return[vz]},rL.prototype.getClass=function(){return rL},wL.SegmentVisitor.get=function(){return cL},wL.IntervalIndexedGeometry.get=function(){return yL},Object.defineProperties(rL,wL);var cL=function(){this._counter=null;var M=arguments[0];this._counter=M};cL.prototype.visitItem=function(M){var N=M;this._counter.countSegment(N.getCoordinate(0),N.getCoordinate(1))},cL.prototype.interfaces_=function(){return[Hu]},cL.prototype.getClass=function(){return cL};var yL=function(){this._index=new IL;var M=arguments[0];this.init(M)};yL.prototype.init=function(M){for(var N=oA.getLines(M).iterator();N.hasNext();){var D=N.next().getCoordinates();this.addLine(D)}},yL.prototype.addLine=function(M){for(var N=1;N<M.length;N++){var D=new Az(M[N-1],M[N]),t=Math.min(D.p0.y,D.p1.y),i=Math.max(D.p0.y,D.p1.y);this._index.insert(t,i,D)}},yL.prototype.query=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1],D=new nL;return this._index.query(M,N,D),D.getItems()}if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2];this._index.query(t,i,e)}},yL.prototype.interfaces_=function(){return[]},yL.prototype.getClass=function(){return yL};var aL=function(M){function N(){if(M.call(this),this._parentGeom=null,this._lineEdgeMap=new uu,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new EA,2===arguments.length){var N=arguments[0],D=arguments[1],t=zs.OGC_SFS_BOUNDARY_RULE;this._argIndex=N,this._parentGeom=D,this._boundaryNodeRule=t,null!==D&&this.add(D)}else if(3===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2];this._argIndex=i,this._parentGeom=e,this._boundaryNodeRule=j,null!==e&&this.add(e)}}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.insertBoundaryPoint=function(M,D){var t=this._nodes.addNode(D).getLabel(),i=1;Cg.NONE,t.getLocation(M,Ou.ON)===Cg.BOUNDARY&&i++;var e=N.determineBoundary(this._boundaryNodeRule,i);t.setLocation(M,e)},N.prototype.computeSelfNodes=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1];return this.computeSelfNodes(M,N,!1)}if(3===arguments.length){var D=arguments[0],t=arguments[1],i=arguments[2],e=new TL(D,!0,!1);e.setIsDoneIfProperInt(i);var j=this.createEdgeSetIntersector(),T=this._parentGeom instanceof $s||this._parentGeom instanceof qs||this._parentGeom instanceof Mu,g=t||!T;return j.computeIntersections(this._edges,e,g),this.addSelfIntersectionNodes(this._argIndex),e}},N.prototype.computeSplitEdges=function(M){for(var N=this._edges.iterator();N.hasNext();)N.next().eiList.addSplitEdges(M)},N.prototype.computeEdgeIntersections=function(M,N,D){var t=new TL(N,D,!0);return t.setBoundaryNodes(this.getBoundaryNodes(),M.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,M._edges,t),t},N.prototype.getGeometry=function(){return this._parentGeom},N.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},N.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},N.prototype.addPoint=function(){if(arguments[0]instanceof Vs){var M=arguments[0].getCoordinate();this.insertPoint(this._argIndex,M,Cg.INTERIOR)}else if(arguments[0]instanceof og){var N=arguments[0];this.insertPoint(this._argIndex,N,Cg.INTERIOR)}},N.prototype.addPolygon=function(M){this.addPolygonRing(M.getExteriorRing(),Cg.EXTERIOR,Cg.INTERIOR);for(var N=0;N<M.getNumInteriorRing();N++){var D=M.getInteriorRingN(N);this.addPolygonRing(D,Cg.INTERIOR,Cg.EXTERIOR)}},N.prototype.addEdge=function(M){this.insertEdge(M);var N=M.getCoordinates();this.insertPoint(this._argIndex,N[0],Cg.BOUNDARY),this.insertPoint(this._argIndex,N[N.length-1],Cg.BOUNDARY)},N.prototype.addLineString=function(M){var N=xs.removeRepeatedPoints(M.getCoordinates());if(N.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=N[0],null;var D=new $z(N,new du(this._argIndex,Cg.INTERIOR));this._lineEdgeMap.put(M,D),this.insertEdge(D),Kg.isTrue(N.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,N[0]),this.insertBoundaryPoint(this._argIndex,N[N.length-1])},N.prototype.getInvalidPoint=function(){return this._invalidPoint},N.prototype.getBoundaryPoints=function(){for(var M=this.getBoundaryNodes(),N=new Array(M.size()).fill(null),D=0,t=M.iterator();t.hasNext();){var i=t.next();N[D++]=i.getCoordinate().copy()}return N},N.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},N.prototype.addSelfIntersectionNode=function(M,N,D){if(this.isBoundaryNode(M,N))return null;D===Cg.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(M,N):this.insertPoint(M,N,D)},N.prototype.addPolygonRing=function(M,N,D){if(M.isEmpty())return null;var t=xs.removeRepeatedPoints(M.getCoordinates());if(t.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=t[0],null;var i=N,e=D;is.isCCW(t)&&(i=D,e=N);var j=new $z(t,new du(this._argIndex,Cg.BOUNDARY,i,e));this._lineEdgeMap.put(M,j),this.insertEdge(j),this.insertPoint(this._argIndex,t[0],Cg.BOUNDARY)},N.prototype.insertPoint=function(M,N,D){var t=this._nodes.addNode(N),i=t.getLabel();null===i?t._label=new du(M,D):i.setLocation(M,D)},N.prototype.createEdgeSetIntersector=function(){return new gL},N.prototype.addSelfIntersectionNodes=function(M){for(var N=this._edges.iterator();N.hasNext();)for(var D=N.next(),t=D.getLabel().getLocation(M),i=D.eiList.iterator();i.hasNext();){var e=i.next();this.addSelfIntersectionNode(M,e.coord,t)}},N.prototype.add=function(){if(1!==arguments.length)return M.prototype.add.apply(this,arguments);var N=arguments[0];if(N.isEmpty())return null;if(N instanceof Mu&&(this._useBoundaryDeterminationRule=!1),N instanceof qs)this.addPolygon(N);else if(N instanceof Hs)this.addLineString(N);else if(N instanceof Vs)this.addPoint(N);else if(N instanceof Ks)this.addCollection(N);else if(N instanceof Zs)this.addCollection(N);else if(N instanceof Mu)this.addCollection(N);else{if(!(N instanceof Ps))throw new Error(N.getClass().getName());this.addCollection(N)}},N.prototype.addCollection=function(M){for(var N=0;N<M.getNumGeometries();N++){var D=M.getGeometryN(N);this.add(D)}},N.prototype.locate=function(M){return lg(this._parentGeom,Js)&&this._parentGeom.getNumGeometries()>50?(null===this._areaPtLocator&&(this._areaPtLocator=new rL(this._parentGeom)),this._areaPtLocator.locate(M)):this._ptLocator.locate(M,this._parentGeom)},N.prototype.findEdge=function(){if(1===arguments.length){var N=arguments[0];return this._lineEdgeMap.get(N)}return M.prototype.findEdge.apply(this,arguments)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N.determineBoundary=function(M,N){return M.isInBoundary(N)?Cg.BOUNDARY:Cg.INTERIOR},N}(Gu),oL=function(){if(this._li=new Ns,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var M=arguments[0];this.setComputationPrecision(M.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new aL(0,M)}else if(2===arguments.length){var N=arguments[0],D=arguments[1],t=zs.OGC_SFS_BOUNDARY_RULE;N.getPrecisionModel().compareTo(D.getPrecisionModel())>=0?this.setComputationPrecision(N.getPrecisionModel()):this.setComputationPrecision(D.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new aL(0,N,t),this._arg[1]=new aL(1,D,t)}else if(3===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2];i.getPrecisionModel().compareTo(e.getPrecisionModel())>=0?this.setComputationPrecision(i.getPrecisionModel()):this.setComputationPrecision(e.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new aL(0,i,j),this._arg[1]=new aL(1,e,j)}};oL.prototype.getArgGeometry=function(M){return this._arg[M].getGeometry()},oL.prototype.setComputationPrecision=function(M){this._resultPrecisionModel=M,this._li.setPrecisionModel(this._resultPrecisionModel)},oL.prototype.interfaces_=function(){return[]},oL.prototype.getClass=function(){return oL};var EL=function(){};EL.prototype.interfaces_=function(){return[]},EL.prototype.getClass=function(){return EL},EL.map=function(){if(arguments[0]instanceof Ts&&lg(arguments[1],EL.MapOp)){for(var M=arguments[0],N=arguments[1],D=new os,t=0;t<M.getNumGeometries();t++){var i=N.map(M.getGeometryN(t));null!==i&&D.add(i)}return M.getFactory().buildGeometry(D)}if(lg(arguments[0],ws)&&lg(arguments[1],EL.MapOp)){for(var e=arguments[0],j=arguments[1],T=new os,g=e.iterator();g.hasNext();){var s=g.next(),u=j.map(s);null!==u&&T.add(u)}return T}},EL.MapOp=function(){};var OL=function(M){function N(){var N=arguments[0],D=arguments[1];M.call(this,N,D),this._ptLocator=new EA,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new Rz,this._resultPolyList=new os,this._resultLineList=new os,this._resultPointList=new os,this._graph=new Gu(new Gz),this._geomFact=N.getFactory()}return M&&(N.__proto__=M),N.prototype=Object.create(M&&M.prototype),N.prototype.constructor=N,N.prototype.insertUniqueEdge=function(M){var N=this._edgeList.findEqualEdge(M);if(null!==N){var D=N.getLabel(),t=M.getLabel();N.isPointwiseEqual(M)||(t=new du(M.getLabel())).flip();var i=N.getDepth();i.isNull()&&i.add(D),i.add(t),D.merge(t)}else this._edgeList.add(M)},N.prototype.getGraph=function(){return this._graph},N.prototype.cancelDuplicateResultEdges=function(){for(var M=this._graph.getEdgeEnds().iterator();M.hasNext();){var N=M.next(),D=N.getSym();N.isInResult()&&D.isInResult()&&(N.setInResult(!1),D.setInResult(!1))}},N.prototype.isCoveredByLA=function(M){return!!this.isCovered(M,this._resultLineList)||!!this.isCovered(M,this._resultPolyList)},N.prototype.computeGeometry=function(M,D,t,i){var e=new os;return e.addAll(M),e.addAll(D),e.addAll(t),e.isEmpty()?N.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(e)},N.prototype.mergeSymLabels=function(){for(var M=this._graph.getNodes().iterator();M.hasNext();)M.next().getEdges().mergeSymLabels()},N.prototype.isCovered=function(M,N){for(var D=N.iterator();D.hasNext();){var t=D.next();if(this._ptLocator.locate(M,t)!==Cg.EXTERIOR)return!0}return!1},N.prototype.replaceCollapsedEdges=function(){for(var M=new os,N=this._edgeList.iterator();N.hasNext();){var D=N.next();D.isCollapsed()&&(N.remove(),M.add(D.getCollapsedEdge()))}this._edgeList.addAll(M)},N.prototype.updateNodeLabelling=function(){for(var M=this._graph.getNodes().iterator();M.hasNext();){var N=M.next(),D=N.getEdges().getLabel();N.getLabel().merge(D)}},N.prototype.getResultGeometry=function(M){return this.computeOverlay(M),this._resultGeom},N.prototype.insertUniqueEdges=function(M){for(var N=M.iterator();N.hasNext();){var D=N.next();this.insertUniqueEdge(D)}},N.prototype.computeOverlay=function(M){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var N=new os;this._arg[0].computeSplitEdges(N),this._arg[1].computeSplitEdges(N),this.insertUniqueEdges(N),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),ZA.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(M),this.cancelDuplicateResultEdges();var D=new Wu(this._geomFact);D.add(this._graph),this._resultPolyList=D.getPolygons();var t=new WA(this,this._geomFact,this._ptLocator);this._resultLineList=t.build(M);var i=new RA(this,this._geomFact,this._ptLocator);this._resultPointList=i.build(M),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,M)},N.prototype.labelIncompleteNode=function(M,N){var D=this._ptLocator.locate(M.getCoordinate(),this._arg[N].getGeometry());M.getLabel().setLocation(N,D)},N.prototype.copyPoints=function(M){for(var N=this._arg[M].getNodeIterator();N.hasNext();){var D=N.next();this._graph.addNode(D.getCoordinate()).setLabel(M,D.getLabel().getLocation(M))}},N.prototype.findResultAreaEdges=function(M){for(var D=this._graph.getEdgeEnds().iterator();D.hasNext();){var t=D.next(),i=t.getLabel();i.isArea()&&!t.isInteriorAreaEdge()&&N.isResultOfOp(i.getLocation(0,Ou.RIGHT),i.getLocation(1,Ou.RIGHT),M)&&t.setInResult(!0)}},N.prototype.computeLabelsFromDepths=function(){for(var M=this._edgeList.iterator();M.hasNext();){var N=M.next(),D=N.getLabel(),t=N.getDepth();if(!t.isNull()){t.normalize();for(var i=0;i<2;i++)D.isNull(i)||!D.isArea()||t.isNull(i)||(0===t.getDelta(i)?D.toLine(i):(Kg.isTrue(!t.isNull(i,Ou.LEFT),"depth of LEFT side has not been initialized"),D.setLocation(i,Ou.LEFT,t.getLocation(i,Ou.LEFT)),Kg.isTrue(!t.isNull(i,Ou.RIGHT),"depth of RIGHT side has not been initialized"),D.setLocation(i,Ou.RIGHT,t.getLocation(i,Ou.RIGHT))))}}},N.prototype.computeLabelling=function(){for(var M=this._graph.getNodes().iterator();M.hasNext();)M.next().getEdges().computeLabelling(this._arg);this.mergeSymLabels(),this.updateNodeLabelling()},N.prototype.labelIncompleteNodes=function(){for(var M=this._graph.getNodes().iterator();M.hasNext();){var N=M.next(),D=N.getLabel();N.isIsolated()&&(D.isNull(0)?this.labelIncompleteNode(N,0):this.labelIncompleteNode(N,1)),N.getEdges().updateLabelling(D)}},N.prototype.isCoveredByA=function(M){return!!this.isCovered(M,this._resultPolyList)},N.prototype.interfaces_=function(){return[]},N.prototype.getClass=function(){return N},N}(oL);OL.overlayOp=function(M,N,D){return new OL(M,N).getResultGeometry(D)},OL.intersection=function(M,N){if(M.isEmpty()||N.isEmpty())return OL.createEmptyResult(OL.INTERSECTION,M,N,M.getFactory());if(M.isGeometryCollection()){var D=N;return GA.map(M,{interfaces_:function(){return[EL.MapOp]},map:function(M){return M.intersection(D)}})}return M.checkNotGeometryCollection(M),M.checkNotGeometryCollection(N),DL.overlayOp(M,N,OL.INTERSECTION)},OL.symDifference=function(M,N){if(M.isEmpty()||N.isEmpty()){if(M.isEmpty()&&N.isEmpty())return OL.createEmptyResult(OL.SYMDIFFERENCE,M,N,M.getFactory());if(M.isEmpty())return N.copy();if(N.isEmpty())return M.copy()}return M.checkNotGeometryCollection(M),M.checkNotGeometryCollection(N),DL.overlayOp(M,N,OL.SYMDIFFERENCE)},OL.resultDimension=function(M,N,D){var t=N.getDimension(),i=D.getDimension(),e=-1;switch(M){case OL.INTERSECTION:e=Math.min(t,i);break;case OL.UNION:e=Math.max(t,i);break;case OL.DIFFERENCE:e=t;break;case OL.SYMDIFFERENCE:e=Math.max(t,i)}return e},OL.createEmptyResult=function(M,N,D,t){var i=null;switch(OL.resultDimension(M,N,D)){case-1:i=t.createGeometryCollection(new Array(0).fill(null));break;case 0:i=t.createPoint();break;case 1:i=t.createLineString();break;case 2:i=t.createPolygon()}return i},OL.difference=function(M,N){return M.isEmpty()?OL.createEmptyResult(OL.DIFFERENCE,M,N,M.getFactory()):N.isEmpty()?M.copy():(M.checkNotGeometryCollection(M),M.checkNotGeometryCollection(N),DL.overlayOp(M,N,OL.DIFFERENCE))},OL.isResultOfOp=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1],D=M.getLocation(0),t=M.getLocation(1);return OL.isResultOfOp(D,t,N)}if(3===arguments.length){var i=arguments[0],e=arguments[1],j=arguments[2];switch(i===Cg.BOUNDARY&&(i=Cg.INTERIOR),e===Cg.BOUNDARY&&(e=Cg.INTERIOR),j){case OL.INTERSECTION:return i===Cg.INTERIOR&&e===Cg.INTERIOR;case OL.UNION:return i===Cg.INTERIOR||e===Cg.INTERIOR;case OL.DIFFERENCE:return i===Cg.INTERIOR&&e!==Cg.INTERIOR;case OL.SYMDIFFERENCE:return i===Cg.INTERIOR&&e!==Cg.INTERIOR||i!==Cg.INTERIOR&&e===Cg.INTERIOR}return!1}},OL.INTERSECTION=1,OL.UNION=2,OL.DIFFERENCE=3,OL.SYMDIFFERENCE=4;var xL=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new EA,this._seg=new Az;var M=arguments[0],N=arguments[1];this._g=M,this._boundaryDistanceTolerance=N,this._linework=this.extractLinework(M)};xL.prototype.isWithinToleranceOfBoundary=function(M){for(var N=0;N<this._linework.getNumGeometries();N++)for(var D=this._linework.getGeometryN(N).getCoordinateSequence(),t=0;t<D.size()-1;t++)if(D.getCoordinate(t,this._seg.p0),D.getCoordinate(t+1,this._seg.p1),this._seg.distance(M)<=this._boundaryDistanceTolerance)return!0;return!1},xL.prototype.getLocation=function(M){return this.isWithinToleranceOfBoundary(M)?Cg.BOUNDARY:this._ptLocator.locate(M,this._g)},xL.prototype.extractLinework=function(M){var N=new CL;M.apply(N);var D=N.getLinework(),t=nu.toLineStringArray(D);return M.getFactory().createMultiLineString(t)},xL.prototype.interfaces_=function(){return[]},xL.prototype.getClass=function(){return xL};var CL=function(){this._linework=null,this._linework=new os};CL.prototype.getLinework=function(){return this._linework},CL.prototype.filter=function(M){if(M instanceof qs){var N=M;this._linework.add(N.getExteriorRing());for(var D=0;D<N.getNumInteriorRing();D++)this._linework.add(N.getInteriorRingN(D))}},CL.prototype.interfaces_=function(){return[Bs]},CL.prototype.getClass=function(){return CL};var SL=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var M=arguments[0];this._g=M};SL.prototype.extractPoints=function(M,N,D){for(var t=M.getCoordinates(),i=0;i<t.length-1;i++)this.computeOffsetPoints(t[i],t[i+1],N,D)},SL.prototype.setSidesToGenerate=function(M,N){this._doLeft=M,this._doRight=N},SL.prototype.getPoints=function(M){for(var N=new os,D=oA.getLines(this._g).iterator();D.hasNext();){var t=D.next();this.extractPoints(t,M,N)}return N},SL.prototype.computeOffsetPoints=function(M,N,D,t){var i=N.x-M.x,e=N.y-M.y,j=Math.sqrt(i*i+e*e),T=D*i/j,g=D*e/j,s=(N.x+M.x)/2,u=(N.y+M.y)/2;if(this._doLeft){var z=new og(s-g,u+T);t.add(z)}if(this._doRight){var A=new og(s+g,u-T);t.add(A)}},SL.prototype.interfaces_=function(){return[]},SL.prototype.getClass=function(){return SL};var lL=function M(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=M.TOLERANCE,this._testCoords=new os;var N=arguments[0],D=arguments[1],t=arguments[2];this._boundaryDistanceTolerance=M.computeBoundaryDistanceTolerance(N,D),this._geom=[N,D,t],this._locFinder=[new xL(this._geom[0],this._boundaryDistanceTolerance),new xL(this._geom[1],this._boundaryDistanceTolerance),new xL(this._geom[2],this._boundaryDistanceTolerance)]},kL={TOLERANCE:{configurable:!0}};lL.prototype.reportResult=function(M,N,D){Zg.out.println("Overlay result invalid - A:"+Cg.toLocationSymbol(N[0])+" B:"+Cg.toLocationSymbol(N[1])+" expected:"+(D?"i":"e")+" actual:"+Cg.toLocationSymbol(N[2]))},lL.prototype.isValid=function(M){this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]);var N=this.checkValid(M);return N},lL.prototype.checkValid=function(){if(1===arguments.length){for(var M=arguments[0],N=0;N<this._testCoords.size();N++){var D=this._testCoords.get(N);if(!this.checkValid(M,D))return this._invalidLocation=D,!1}return!0}if(2===arguments.length){var t=arguments[0],i=arguments[1];return this._location[0]=this._locFinder[0].getLocation(i),this._location[1]=this._locFinder[1].getLocation(i),this._location[2]=this._locFinder[2].getLocation(i),!!lL.hasLocation(this._location,Cg.BOUNDARY)||this.isValidResult(t,this._location)}},lL.prototype.addTestPts=function(M){var N=new SL(M);this._testCoords.addAll(N.getPoints(5*this._boundaryDistanceTolerance))},lL.prototype.isValidResult=function(M,N){var D=OL.isResultOfOp(N[0],N[1],M),t=!(D^N[2]===Cg.INTERIOR);return t||this.reportResult(M,N,D),t},lL.prototype.getInvalidLocation=function(){return this._invalidLocation},lL.prototype.interfaces_=function(){return[]},lL.prototype.getClass=function(){return lL},lL.hasLocation=function(M,N){for(var D=0;D<3;D++)if(M[D]===N)return!0;return!1},lL.computeBoundaryDistanceTolerance=function(M,N){return Math.min(HA.computeSizeBasedSnapTolerance(M),HA.computeSizeBasedSnapTolerance(N))},lL.isValid=function(M,N,D,t){return new lL(M,N,t).isValid(D)},kL.TOLERANCE.get=function(){return 1e-6},Object.defineProperties(lL,kL);var QL=function M(N){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=M.extractFactory(N),this._inputGeoms=N};QL.prototype.extractElements=function(M,N){if(null===M)return null;for(var D=0;D<M.getNumGeometries();D++){var t=M.getGeometryN(D);this._skipEmpty&&t.isEmpty()||N.add(t)}},QL.prototype.combine=function(){for(var M=new os,N=this._inputGeoms.iterator();N.hasNext();){var D=N.next();this.extractElements(D,M)}return 0===M.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(M)},QL.prototype.interfaces_=function(){return[]},QL.prototype.getClass=function(){return QL},QL.combine=function(){if(1===arguments.length){var M=arguments[0];return new QL(M).combine()}if(2===arguments.length){var N=arguments[0],D=arguments[1];return new QL(QL.createList(N,D)).combine()}if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2];return new QL(QL.createList(t,i,e)).combine()}},QL.extractFactory=function(M){return M.isEmpty()?null:M.iterator().next().getFactory()},QL.createList=function(){if(2===arguments.length){var M=arguments[0],N=arguments[1],D=new os;return D.add(M),D.add(N),D}if(3===arguments.length){var t=arguments[0],i=arguments[1],e=arguments[2],j=new os;return j.add(t),j.add(i),j.add(e),j}};var dL=function(){this._inputPolys=null,this._geomFactory=null;var M=arguments[0];this._inputPolys=M,null===this._inputPolys&&(this._inputPolys=new os)},YL={STRTREE_NODE_CAPACITY:{configurable:!0}};dL.prototype.reduceToGeometries=function(M){for(var N=new os,D=M.iterator();D.hasNext();){var t=D.next(),i=null;lg(t,as)?i=this.unionTree(t):t instanceof Ts&&(i=t),N.add(i)}return N},dL.prototype.extractByEnvelope=function(M,N,D){for(var t=new os,i=0;i<N.getNumGeometries();i++){var e=N.getGeometryN(i);e.getEnvelopeInternal().intersects(M)?t.add(e):D.add(e)}return this._geomFactory.buildGeometry(t)},dL.prototype.unionOptimized=function(M,N){var D=M.getEnvelopeInternal(),t=N.getEnvelopeInternal();if(!D.intersects(t))return QL.combine(M,N);if(M.getNumGeometries()<=1&&N.getNumGeometries()<=1)return this.unionActual(M,N);var i=D.intersection(t);return this.unionUsingEnvelopeIntersection(M,N,i)},dL.prototype.union=function(){if(null===this._inputPolys)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var M=new tz(dL.STRTREE_NODE_CAPACITY),N=this._inputPolys.iterator();N.hasNext();){var D=N.next();M.insert(D.getEnvelopeInternal(),D)}this._inputPolys=null;var t=M.itemsTree();return this.unionTree(t)},dL.prototype.binaryUnion=function(){if(1===arguments.length){var M=arguments[0];return this.binaryUnion(M,0,M.size())}if(3===arguments.length){var N=arguments[0],D=arguments[1],t=arguments[2];if(t-D<=1){var i=dL.getGeometry(N,D);return this.unionSafe(i,null)}if(t-D==2)return this.unionSafe(dL.getGeometry(N,D),dL.getGeometry(N,D+1));var e=Math.trunc((t+D)/2),j=this.binaryUnion(N,D,e),T=this.binaryUnion(N,e,t);return this.unionSafe(j,T)}},dL.prototype.repeatedUnion=function(M){for(var N=null,D=M.iterator();D.hasNext();){var t=D.next();N=null===N?t.copy():N.union(t)}return N},dL.prototype.unionSafe=function(M,N){return null===M&&null===N?null:null===M?N.copy():null===N?M.copy():this.unionOptimized(M,N)},dL.prototype.unionActual=function(M,N){return dL.restrictToPolygons(M.union(N))},dL.prototype.unionTree=function(M){var N=this.reduceToGeometries(M);return this.binaryUnion(N)},dL.prototype.unionUsingEnvelopeIntersection=function(M,N,D){var t=new os,i=this.extractByEnvelope(D,M,t),e=this.extractByEnvelope(D,N,t),j=this.unionActual(i,e);return t.add(j),QL.combine(t)},dL.prototype.bufferUnion=function(){if(1===arguments.length){var M=arguments[0];return M.get(0).getFactory().buildGeometry(M).buffer(0)}if(2===arguments.length){var N=arguments[0],D=arguments[1];return N.getFactory().createGeometryCollection([N,D]).buffer(0)}},dL.prototype.interfaces_=function(){return[]},dL.prototype.getClass=function(){return dL},dL.restrictToPolygons=function(M){if(lg(M,Js))return M;var N=aA.getPolygons(M);return 1===N.size()?N.get(0):M.getFactory().createMultiPolygon(nu.toPolygonArray(N))},dL.getGeometry=function(M,N){return N>=M.size()?null:M.get(N)},dL.union=function(M){return new dL(M).union()},YL.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(dL,YL);var pL=function(){};pL.prototype.interfaces_=function(){return[]},pL.prototype.getClass=function(){return pL},pL.union=function(M,N){if(M.isEmpty()||N.isEmpty()){if(M.isEmpty()&&N.isEmpty())return OL.createEmptyResult(OL.UNION,M,N,M.getFactory());if(M.isEmpty())return N.copy();if(N.isEmpty())return M.copy()}return M.checkNotGeometryCollection(M),M.checkNotGeometryCollection(N),DL.overlayOp(M,N,OL.UNION)};var UL=function(){return new Ri};Ri.prototype={constructor:Ri,reset:function(){this.s=this.t=0},add:function(M){Xi(hL,M,this.t),Xi(this,hL.s,this.s),this.s?this.t+=hL.t:this.s=hL.t},valueOf:function(){return this.s}};var hL=new Ri,fL=1e-6,mL=Math.PI,vL=mL/2,BL=mL/4,bL=2*mL,PL=180/mL,ZL=mL/180,GL=Math.abs,WL=Math.atan,RL=Math.atan2,XL=Math.cos,_L=Math.exp,HL=Math.log,FL=Math.sin,VL=Math.sqrt,JL=Math.tan,qL={Feature:function(M,N){Fi(M.geometry,N)},FeatureCollection:function(M,N){for(var D=M.features,t=-1,i=D.length;++t<i;)Fi(D[t].geometry,N)}},KL={Sphere:function(M,N){N.sphere()},Point:function(M,N){M=M.coordinates,N.point(M[0],M[1],M[2])},MultiPoint:function(M,N){for(var D=M.coordinates,t=-1,i=D.length;++t<i;)M=D[t],N.point(M[0],M[1],M[2])},LineString:function(M,N){Vi(M.coordinates,N,0)},MultiLineString:function(M,N){for(var D=M.coordinates,t=-1,i=D.length;++t<i;)Vi(D[t],N,0)},Polygon:function(M,N){Ji(M.coordinates,N)},MultiPolygon:function(M,N){for(var D=M.coordinates,t=-1,i=D.length;++t<i;)Ji(D[t],N)},GeometryCollection:function(M,N){for(var D=M.geometries,t=-1,i=D.length;++t<i;)Fi(D[t],N)}},$L=function(M,N){M&&qL.hasOwnProperty(M.type)?qL[M.type](M,N):Fi(M,N)},MI=(UL(),UL(),UL(),function(M,N){function D(D,t){return D=M(D,t),N(D[0],D[1])}return M.invert&&N.invert&&(D.invert=function(D,t){return(D=N.invert(D,t))&&M.invert(D[0],D[1])}),D});ie.invert=ie;var NI=function(M){function N(N){return N=M(N[0]*ZL,N[1]*ZL),N[0]*=PL,N[1]*=PL,N}return M=ee(M[0]*ZL,M[1]*ZL,M.length>2?M[2]*ZL:0),N.invert=function(N){return N=M.invert(N[0]*ZL,N[1]*ZL),N[0]*=PL,N[1]*=PL,N},N},DI=function(){var M,N=[];return{point:function(N,D){M.push([N,D])},lineStart:function(){N.push(M=[])},lineEnd:Hi,rejoin:function(){N.length>1&&N.push(N.pop().concat(N.shift()))},result:function(){var D=N;return N=[],M=null,D}}},tI=function(M,N,D,t,i,e){var j,T=M[0],g=M[1],s=0,u=1,z=N[0]-T,A=N[1]-g;if(j=D-T,z||!(j>0)){if(j/=z,z<0){if(j<s)return;j<u&&(u=j)}else if(z>0){if(j>u)return;j>s&&(s=j)}if(j=i-T,z||!(j<0)){if(j/=z,z<0){if(j>u)return;j>s&&(s=j)}else if(z>0){if(j<s)return;j<u&&(u=j)}if(j=t-g,A||!(j>0)){if(j/=A,A<0){if(j<s)return;j<u&&(u=j)}else if(A>0){if(j>u)return;j>s&&(s=j)}if(j=e-g,A||!(j<0)){if(j/=A,A<0){if(j>u)return;j>s&&(s=j)}else if(A>0){if(j<s)return;j<u&&(u=j)}return s>0&&(M[0]=T+s*z,M[1]=g+s*A),u<1&&(N[0]=T+u*z,N[1]=g+u*A),!0}}}}},iI=function(M,N){return GL(M[0]-N[0])<fL&&GL(M[1]-N[1])<fL},eI=function(M,N,D,t,i){var e,j,T=[],g=[];if(M.forEach((function(M){if(!((N=M.length-1)<=0)){var N,D,t=M[0],j=M[N];if(iI(t,j)){for(i.lineStart(),e=0;e<N;++e)i.point((t=M[e])[0],t[1]);i.lineEnd()}else T.push(D=new ue(t,M,null,!0)),g.push(D.o=new ue(t,null,D,!1)),T.push(D=new ue(j,M,null,!1)),g.push(D.o=new ue(j,null,D,!0))}})),T.length){for(g.sort(N),ze(T),ze(g),e=0,j=g.length;e<j;++e)g[e].e=D=!D;for(var s,u,z=T[0];;){for(var A=z,L=!0;A.v;)if((A=A.n)===z)return;s=A.z,i.lineStart();do{if(A.v=A.o.v=!0,A.e){if(L)for(e=0,j=s.length;e<j;++e)i.point((u=s[e])[0],u[1]);else t(A.x,A.n.x,1,i);A=A.n}else{if(L)for(s=A.p.z,e=s.length-1;e>=0;--e)i.point((u=s[e])[0],u[1]);else t(A.x,A.p.x,-1,i);A=A.p}s=(A=A.o).z,L=!L}while(!A.v);i.lineEnd()}}},jI=function(M,N){return M<N?-1:M>N?1:M>=N?0:NaN},TI=(function(M){1===M.length&&(M=function(M){return function(N,D){return jI(M(N),D)}}(M))}(jI),function(M){for(var N,D,t,i=M.length,e=-1,j=0;++e<i;)j+=M[e].length;for(D=new Array(j);--i>=0;)for(N=(t=M[i]).length;--N>=0;)D[--j]=t[N];return D}),gI=1e9,sI=-gI,uI=UL(),zI=(UL(),function(M){return M}),AI=(UL(),UL(),1/0),LI=AI,II=-AI,nI=II,rI={point:function(M,N){M<AI&&(AI=M),M>II&&(II=M),N<LI&&(LI=N),N>nI&&(nI=N)},lineStart:Hi,lineEnd:Hi,polygonStart:Hi,polygonEnd:Hi,result:function(){var M=[[AI,LI],[II,nI]];return II=nI=-(LI=AI=1/0),M}},wI=(UL(),function(M,N,D,t){return function(i,e){function j(N,D){var t=i(N,D);M(N=t[0],D=t[1])&&e.point(N,D)}function T(M,N){var D=i(M,N);r.point(D[0],D[1])}function g(){o.point=T,r.lineStart()}function s(){o.point=j,r.lineEnd()}function u(M,N){n.push([M,N]);var D=i(M,N);y.point(D[0],D[1])}function z(){y.lineStart(),n=[]}function A(){u(n[0][0],n[0][1]),y.lineEnd();var M,N,D,t,i=y.clean(),j=c.result(),T=j.length;if(n.pop(),L.push(n),n=null,T)if(1&i){if(D=j[0],(N=D.length-1)>0){for(a||(e.polygonStart(),a=!0),e.lineStart(),M=0;M<N;++M)e.point((t=D[M])[0],t[1]);e.lineEnd()}}else T>1&&2&i&&j.push(j.pop().concat(j.shift())),I.push(j.filter(Le))}var L,I,n,r=N(e),w=i.invert(t[0],t[1]),c=DI(),y=N(c),a=!1,o={point:j,lineStart:g,lineEnd:s,polygonStart:function(){o.point=u,o.lineStart=z,o.lineEnd=A,I=[],L=[]},polygonEnd:function(){o.point=j,o.lineStart=g,o.lineEnd=s,I=TI(I);var M=function(M,N){var D=N[0],t=N[1],i=[FL(D),-XL(D),0],e=0,j=0;uI.reset();for(var T=0,g=M.length;T<g;++T)if(u=(s=M[T]).length)for(var s,u,z=s[u-1],A=z[0],L=z[1]/2+BL,I=FL(L),n=XL(L),r=0;r<u;++r,A=c,I=a,n=o,z=w){var w=s[r],c=w[0],y=w[1]/2+BL,a=FL(y),o=XL(y),E=c-A,O=E>=0?1:-1,x=O*E,C=x>mL,S=I*a;if(uI.add(RL(S*O*FL(x),n*o+S*XL(x))),e+=C?E+O*bL:E,C^A>=D^c>=D){var l=Me(Ki(z),Ki(w));te(l);var k=Me(i,l);te(k);var Q=(C^E>=0?-1:1)*_i(k[2]);(t>Q||t===Q&&(l[0]||l[1]))&&(j+=C^E>=0?1:-1)}}return(e<-fL||e<fL&&uI<-fL)^1&j}(L,w);I.length?(a||(e.polygonStart(),a=!0),eI(I,Ie,M,D,e)):M&&(a||(e.polygonStart(),a=!0),e.lineStart(),D(null,null,1,e),e.lineEnd()),a&&(e.polygonEnd(),a=!1),I=L=null},sphere:function(){e.polygonStart(),e.lineStart(),D(null,null,1,e),e.lineEnd(),e.polygonEnd()}};return o}}),cI=wI((function(){return!0}),(function(M){var N,D=NaN,t=NaN,i=NaN;return{lineStart:function(){M.lineStart(),N=1},point:function(e,j){var T=e>0?mL:-mL,g=GL(e-D);GL(g-mL)<fL?(M.point(D,t=(t+j)/2>0?vL:-vL),M.point(i,t),M.lineEnd(),M.lineStart(),M.point(T,t),M.point(e,t),N=0):i!==T&&g>=mL&&(GL(D-i)<fL&&(D-=i*fL),GL(e-T)<fL&&(e-=T*fL),t=function(M,N,D,t){var i,e,j=FL(M-D);return GL(j)>fL?WL((FL(N)*(e=XL(t))*FL(D)-FL(t)*(i=XL(N))*FL(M))/(i*e*j)):(N+t)/2}(D,t,e,j),M.point(i,t),M.lineEnd(),M.lineStart(),M.point(T,t),N=0),M.point(D=e,t=j),i=T},lineEnd:function(){M.lineEnd(),D=t=NaN},clean:function(){return 2-N}}}),(function(M,N,D,t){var i;if(null==M)i=D*vL,t.point(-mL,i),t.point(0,i),t.point(mL,i),t.point(mL,0),t.point(mL,-i),t.point(0,-i),t.point(-mL,-i),t.point(-mL,0),t.point(-mL,i);else if(GL(M[0]-N[0])>fL){var e=M[0]<N[0]?mL:-mL;i=D*e/2,t.point(-e,i),t.point(0,i),t.point(e,i)}else t.point(N[0],N[1])}),[-mL,-vL]),yI=function(M,N){function D(M,N){return XL(M)*XL(N)>e}function t(M,N,D){var t=[1,0,0],i=Me(Ki(M),Ki(N)),j=$i(i,i),T=i[0],g=j-T*T;if(!g)return!D&&M;var s=e*j/g,u=-e*T/g,z=Me(t,i),A=De(t,s);Ne(A,De(i,u));var L=z,I=$i(A,L),n=$i(L,L),r=I*I-n*($i(A,A)-1);if(!(r<0)){var w=VL(r),c=De(L,(-I-w)/n);if(Ne(c,A),c=qi(c),!D)return c;var y,a=M[0],o=N[0],E=M[1],O=N[1];o<a&&(y=a,a=o,o=y);var x=o-a,C=GL(x-mL)<fL;if(!C&&O<E&&(y=E,E=O,O=y),C||x<fL?C?E+O>0^c[1]<(GL(c[0]-a)<fL?E:O):E<=c[1]&&c[1]<=O:x>mL^(a<=c[0]&&c[0]<=o)){var S=De(L,(-I+w)/n);return Ne(S,A),[c,qi(S)]}}}function i(N,D){var t=j?M:mL-M,i=0;return N<-t?i|=1:N>t&&(i|=2),D<-t?i|=4:D>t&&(i|=8),i}var e=XL(M),j=e>0,T=GL(e)>fL;return wI(D,(function(M){var N,e,g,s,u;return{lineStart:function(){s=g=!1,u=1},point:function(z,A){var L,I=[z,A],n=D(z,A),r=j?n?0:i(z,A):n?i(z+(z<0?mL:-mL),A):0;if(!N&&(s=g=n)&&M.lineStart(),n!==g&&(!(L=t(N,I))||iI(N,L)||iI(I,L))&&(I[0]+=fL,I[1]+=fL,n=D(I[0],I[1])),n!==g)u=0,n?(M.lineStart(),L=t(I,N),M.point(L[0],L[1])):(L=t(N,I),M.point(L[0],L[1]),M.lineEnd()),N=L;else if(T&&N&&j^n){var w;r&e||!(w=t(I,N,!0))||(u=0,j?(M.lineStart(),M.point(w[0][0],w[0][1]),M.point(w[1][0],w[1][1]),M.lineEnd()):(M.point(w[1][0],w[1][1]),M.lineEnd(),M.lineStart(),M.point(w[0][0],w[0][1])))}!n||N&&iI(N,I)||M.point(I[0],I[1]),N=I,g=n,e=r},lineEnd:function(){g&&M.lineEnd(),N=null},clean:function(){return u|(s&&g)<<1}}}),(function(D,t,i,e){!function(M,N,D,t,i,e){if(D){var j=XL(N),T=FL(N),g=t*D;null==i?(i=N+t*bL,e=N-g/2):(i=se(j,i),e=se(j,e),(t>0?i<e:i>e)&&(i+=t*bL));for(var s,u=i;t>0?u>e:u<e;u-=g)s=qi([j,-T*XL(u),-T*FL(u)]),M.point(s[0],s[1])}}(e,M,N,i,D,t)}),j?[0,-M]:[-mL,M-mL])};re.prototype={constructor:re,point:function(M,N){this.stream.point(M,N)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var aI=16,oI=XL(30*ZL),EI=function(M,N){return+N?function(M,N){function D(t,i,e,j,T,g,s,u,z,A,L,I,n,r){var w=s-t,c=u-i,y=w*w+c*c;if(y>4*N&&n--){var a=j+A,o=T+L,E=g+I,O=VL(a*a+o*o+E*E),x=_i(E/=O),C=GL(GL(E)-1)<fL||GL(e-z)<fL?(e+z)/2:RL(o,a),S=M(C,x),l=S[0],k=S[1],Q=l-t,d=k-i,Y=c*Q-w*d;(Y*Y/y>N||GL((w*Q+c*d)/y-.5)>.3||j*A+T*L+g*I<oI)&&(D(t,i,e,j,T,g,l,k,C,a/=O,o/=O,E,n,r),r.point(l,k),D(l,k,C,a,o,E,s,u,z,A,L,I,n,r))}}return function(N){function t(D,t){D=M(D,t),N.point(D[0],D[1])}function i(){w=NaN,E.point=e,N.lineStart()}function e(t,i){var e=Ki([t,i]),j=M(t,i);D(w,c,r,y,a,o,w=j[0],c=j[1],r=t,y=e[0],a=e[1],o=e[2],aI,N),N.point(w,c)}function j(){E.point=t,N.lineEnd()}function T(){i(),E.point=g,E.lineEnd=s}function g(M,N){e(u=M,N),z=w,A=c,L=y,I=a,n=o,E.point=e}function s(){D(w,c,r,y,a,o,z,A,u,L,I,n,aI,N),E.lineEnd=j,j()}var u,z,A,L,I,n,r,w,c,y,a,o,E={point:t,lineStart:i,lineEnd:j,polygonStart:function(){N.polygonStart(),E.lineStart=T},polygonEnd:function(){N.polygonEnd(),E.lineStart=i}};return E}}(M,N):function(M){return ne({point:function(N,D){N=M(N,D),this.stream.point(N[0],N[1])}})}(M)},OI=ne({point:function(M,N){this.stream.point(M*ZL,N*ZL)}});ye.invert=function(M,N){return[M,2*WL(_L(N))-vL]},ae.invert=function(M,N){return[-N,2*WL(_L(M))-vL]};var xI=function(){var M=function(M){function N(){var N=mL*T(),j=e(NI(e.rotate()).invert([0,0]));return s(null==u?[[j[0]-N,j[1]-N],[j[0]+N,j[1]+N]]:M===ye?[[Math.max(j[0]-N,u),D],[Math.min(j[0]+N,t),i]]:[[u,Math.max(j[1]-N,D)],[t,Math.min(j[1]+N,i)]])}var D,t,i,e=ce(M),j=e.center,T=e.scale,g=e.translate,s=e.clipExtent,u=null;return e.scale=function(M){return arguments.length?(T(M),N()):T()},e.translate=function(M){return arguments.length?(g(M),N()):g()},e.center=function(M){return arguments.length?(j(M),N()):j()},e.clipExtent=function(M){return arguments.length?(null==M?u=D=t=i=null:(u=+M[0][0],D=+M[0][1],t=+M[1][0],i=+M[1][1]),N()):null==u?null:[[u,D],[t,i]]},N()}(ae),N=M.center,D=M.rotate;return M.center=function(M){return arguments.length?N([-M[1],M[0]]):(M=N(),[M[1],-M[0]])},M.rotate=function(M){return arguments.length?D([M[0],M[1],M.length>2?M[2]+90:90]):(M=D(),[M[0],M[1],M[2]-90])},D([0,0,90]).scale(159.155)};M.projection=xj,M.random=Ag,M.clusters=Lg,M.helpers=Be,M.invariant=Pe,M.meta=be,M.isolines=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.zProperty||"elevation",i=D.commonProperties||{},e=D.breaksProperties||[];if(F(M,"Point","Input must contain Points"),!N)throw new Error("breaks is required");if(!Array.isArray(N))throw new Error("breaks must be an Array");if(!x(i))throw new Error("commonProperties must be an Object");if(!Array.isArray(e))throw new Error("breaksProperties must be an Array");var j=tM(M,{zProperty:t,flip:!0});return s(function(M,N,D){var t=G(D),i=t[2]-t[0],e=t[3]-t[1],j=t[0],T=t[1],g=N[0].length-1,s=N.length-1,u=i/g,z=e/s,A=function(M){M[0]=M[0]*u+j,M[1]=M[1]*z+T};return M.forEach((function(M){l(M,A)})),M}(function(M,N,D,t,i){for(var e=[],j=1;j<N.length;j++){var T=+N[j],g=Object.assign({},t,i[j]);g[D]=T;var s=u(K(M,T),g);e.push(s)}return e}(j,N,t,i,e),j,M))},M.convex=QM,M.pointsWithinPolygon=pM,M.concave=function(M,D){if(D=D||{},!x(D))throw new Error("options is invalid");if(!M)throw new Error("points is required");var t=D.maxEdge||1/0;if(!O(t))throw new Error("maxEdge is invalid");var i=UM(function(M){var N=[],D={};return Y(M,(function(M){if(M.geometry){var t=M.geometry.coordinates.join("-");D.hasOwnProperty(t)||(N.push(M),D[t]=!0)}})),s(N)}(M));if(i.features=i.features.filter((function(M){var N=M.geometry.coordinates[0][0],i=M.geometry.coordinates[0][1],e=M.geometry.coordinates[0][2],j=vM(N,i,D),T=vM(i,e,D),g=vM(N,e,D);return j<=t&&T<=t&&g<=t})),i.features.length<1)return null;var e=$M(i,D);return 1===e.coordinates.length&&(e.coordinates=e.coordinates[0],e.type="Polygon"),N(e)},M.collect=function(M,N,D,t){var i=Re(6),e=N.features.map((function(M){return{minX:M.geometry.coordinates[0],minY:M.geometry.coordinates[1],maxX:M.geometry.coordinates[0],maxY:M.geometry.coordinates[1],property:M.properties[D]}}));return i.load(e),M.features.forEach((function(M){M.properties||(M.properties={});var N=G(M),D=[];i.search({minX:N[0],minY:N[1],maxX:N[2],maxY:N[3]}).forEach((function(N){dM([N.minX,N.minY],M)&&D.push(N.property)})),M.properties[t]=D})),M},M.flip=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.mutate;if(!M)throw new Error("geojson is required");return!1!==D&&void 0!==D||(M=BM(M)),l(M,(function(M){var N=M[0],D=M[1];M[0]=D,M[1]=N})),M},M.simplify=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=void 0!==N.tolerance?N.tolerance:1,t=N.highQuality||!1,i=N.mutate||!1;if(!M)throw new Error("geojson is required");if(D&&D<0)throw new Error("invalid tolerance");return!0!==i&&(M=BM(M)),h(M,(function(M){!function(M,N,D){var t=M.type;if("Point"===t||"MultiPoint"===t)return M;MN(M,!0);var i=M.coordinates;switch(t){case"LineString":M.coordinates=jN(i,N,D);break;case"MultiLineString":M.coordinates=i.map((function(M){return jN(M,N,D)}));break;case"Polygon":M.coordinates=TN(i,N,D);break;case"MultiPolygon":M.coordinates=i.map((function(M){return TN(M,N,D)}))}}(M,D,t)})),M},M.bezierSpline=gN,M.tag=function(M,N,D,t){return M=BM(M),N=BM(N),Y(M,(function(M){M.properties||(M.properties={}),Y(N,(function(N){void 0===M.properties[t]&&dM(M,N)&&(M.properties[t]=N.properties[D])}))})),M},M.sample=function(M,N){if(!M)throw new Error("featurecollection is required");if(null===N||void 0===N)throw new Error("num is required");if("number"!=typeof N)throw new Error("num must be a number");return s(function(M,N){for(var D,t,i=M.slice(0),e=M.length,j=e-N;e-- >j;)t=Math.floor((e+1)*Math.random()),D=i[t],i[t]=i[e],i[e]=D;return i.slice(j)}(M.features,N))},M.envelope=uN,M.square=zN,M.circle=LN,M.midpoint=function(M,N){return AN(M,vM(M,N)/2,IN(M,N))},M.center=nN,M.centerOfMass=wN,M.centroid=rN,M.combine=function(M){function D(M,N,D){D?t[N].coordinates=t[N].coordinates.concat(M.geometry.coordinates):t[N].coordinates.push(M.geometry.coordinates),t[N].properties.push(M.properties)}var t={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}},i=Object.keys(t).reduce((function(M,N){return M[N.replace("Multi","")]=N,M}),{});return Y(M,(function(M){M.geometry&&(t[M.geometry.type]?D(M,M.geometry.type,!0):i[M.geometry.type]&&D(M,i[M.geometry.type],!1))})),s(Object.keys(t).filter((function(M){return t[M].coordinates.length})).sort().map((function(M){return N({type:M,coordinates:t[M].coordinates},{collectedProperties:t[M].properties})})))},M.distance=vM,M.explode=cN,M.bbox=G,M.tesselate=function(M){if(!M.geometry||"Polygon"!==M.geometry.type&&"MultiPolygon"!==M.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var N={type:"FeatureCollection",features:[]};return"Polygon"===M.geometry.type?N.features=fN(M.geometry.coordinates):M.geometry.coordinates.forEach((function(M){N.features=N.features.concat(fN(M))})),N},M.bboxPolygon=sN,M.booleanPointInPolygon=dM,M.nearestPoint=mN,M.nearestPointOnLine=iD,M.nearestPointToLine=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.units,i=D.properties||{};if(!M)throw new Error("points is required");if(!(M=function(M){var N=[];switch(M.geometry?M.geometry.type:M.type){case"GeometryCollection":return h(M,(function(M){"Point"===M.type&&N.push({type:"Feature",properties:{},geometry:M})})),{type:"FeatureCollection",features:N};case"FeatureCollection":return M.features=M.features.filter((function(M){return"Point"===M.geometry.type})),M;default:throw new Error("points must be a Point Collection")}}(M)).features.length)throw new Error("points must contain features");if(!N)throw new Error("line is required");if("LineString"!==q(N))throw new Error("line must be a LineString");var e=1/0,j=null;return Y(M,(function(M){var D=LD(M,N,{units:t});D<e&&(e=D,j=M)})),j&&(j.properties=Object.assign({dist:e},j.properties,i)),j},M.planepoint=function(M,N){var D=W(M),t=V(N).coordinates[0];if(t.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var i=N.properties||{},e=i.a,j=i.b,T=i.c,g=D[0],s=D[1],u=t[0][0],z=t[0][1],A=void 0!==e?e:t[0][2],L=t[1][0],I=t[1][1],n=void 0!==j?j:t[1][2],r=t[2][0],w=t[2][1],c=void 0!==T?T:t[2][2];return(c*(g-u)*(s-I)+A*(g-L)*(s-w)+n*(g-r)*(s-z)-n*(g-u)*(s-w)-c*(g-L)*(s-z)-A*(g-r)*(s-I))/((g-u)*(s-I)+(g-L)*(s-w)+(g-r)*(s-z)-(g-u)*(s-w)-(g-L)*(s-z)-(g-r)*(s-I))},M.tin=UM,M.bearing=IN,M.destination=AN,M.kinks=function(M){var N,D,i={type:"FeatureCollection",features:[]};if("LineString"===(D="Feature"===M.type?M.geometry:M).type)N=[D.coordinates];else if("MultiLineString"===D.type)N=D.coordinates;else if("MultiPolygon"===D.type)N=[].concat.apply([],D.coordinates);else{if("Polygon"!==D.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");N=D.coordinates}return N.forEach((function(M){N.forEach((function(N){for(var D=0;D<M.length-1;D++)for(var e=D;e<N.length-1;e++){if(M===N){if(1===Math.abs(D-e))continue;if(0===D&&e===M.length-2&&M[D][0]===M[M.length-1][0]&&M[D][1]===M[M.length-1][1])continue}var j=function(M,N,D,t,i,e,j,T){var g,s,u,z,A,L={x:null,y:null,onLine1:!1,onLine2:!1};return 0==(g=(T-e)*(D-M)-(j-i)*(t-N))?null!==L.x&&null!==L.y&&L:(s=N-e,u=M-i,z=(j-i)*s-(T-e)*u,A=(D-M)*s-(t-N)*u,s=z/g,u=A/g,L.x=M+s*(D-M),L.y=N+s*(t-N),s>=0&&s<=1&&(L.onLine1=!0),u>=0&&u<=1&&(L.onLine2=!0),!(!L.onLine1||!L.onLine2)&&[L.x,L.y])}(M[D][0],M[D][1],M[D+1][0],M[D+1][1],N[e][0],N[e][1],N[e+1][0],N[e+1][1]);j&&i.features.push(t([j[0],j[1]]))}}))})),i},M.pointOnFeature=nD,M.area=wD,M.along=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var i;if("Feature"===M.type)i=M.geometry.coordinates;else{if("LineString"!==M.type)throw new Error("input must be a LineString Feature or Geometry");i=M.coordinates}if(!O(N))throw new Error("distance must be a number");for(var e=0,j=0;j<i.length&&!(N>=e&&j===i.length-1);j++){if(e>=N){var T=N-e;if(T){var g=IN(i[j],i[j-1])-180;return AN(i[j],T,g,D)}return t(i[j])}e+=vM(i[j],i[j+1],D)}return t(i[i.length-1])},M.length=ED,M.lineSlice=function(M,N,D){var t=R(D);if("LineString"!==q(D))throw new Error("line must be a LineString");for(var i,e=iD(D,M),j=iD(D,N),g=[(i=e.properties.index<=j.properties.index?[e,j]:[j,e])[0].geometry.coordinates],s=i[0].properties.index+1;s<i[1].properties.index+1;s++)g.push(t[s]);return g.push(i[1].geometry.coordinates),T(g,D.properties)},M.lineSliceAlong=OD,M.pointGrid=kD,M.truncate=QD,M.flatten=function(M){if(!M)throw new Error("geojson is required");var N=[];return m(M,(function(M){N.push(M)})),s(N)},M.lineIntersect=DD,M.lineChunk=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.units,i=D.reverse;if(!M)throw new Error("geojson is required");if(N<=0)throw new Error("segmentLength must be greater than 0");var e=[];return m(M,(function(M){i&&(M.geometry.coordinates=M.geometry.coordinates.reverse()),function(M,N,D,t){var i=ED(M,{units:D});if(i<=N)return t(M);var e=i/N;Number.isInteger(e)||(e=Math.floor(e)+1);for(var j=0;j<e;j++){var T=OD(M,N*j,N*(j+1),{units:D});t(T,j)}}(M,N,t,(function(M){e.push(M)}))})),s(e)},M.unkinkPolygon=function(M){var N=[];return m(M,(function(M){"Polygon"===M.geometry.type&&Y(lj(M),(function(D){N.push(e(D.geometry.coordinates,M.properties))}))})),s(N)},M.greatCircle=function(M,N,D){if("object"!=typeof(D=D||{}))throw new Error("options is invalid");var t=D.properties,i=D.npoints,e=D.offset;return M=W(M),N=W(N),t=t||{},i=i||100,e=e||10,new fj({x:M[0],y:M[1]},{x:N[0],y:N[1]},t).Arc(i,{offset:e}).json()},M.lineSegment=ND,M.lineSplit=function(M,N){if(!M)throw new Error("line is required");if(!N)throw new Error("splitter is required");var D=q(M),t=q(N);if("LineString"!==D)throw new Error("line must be LineString");if("FeatureCollection"===t)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===t)throw new Error("splitter cannot be a GeometryCollection");var i=QD(N,{precision:7});switch(t){case"Point":return hD(M,i);case"MultiPoint":return UD(M,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return UD(M,DD(M,i))}},M.lineArc=vD,M.polygonToLine=bD,M.lineToPolygon=ZD,M.bboxClip=function(M,N){var D=function(M){return M.geometry?M.geometry.type:M.type}(M),t=R(M),i=M.properties;switch(D){case"LineString":case"MultiLineString":var j=[];return"LineString"===D&&(t=[t]),t.forEach((function(M){mj(M,N,j)})),1===j.length?T(j[0],i):u(j,i);case"Polygon":return e(HD(t,N),i);case"MultiPolygon":return A(t.map((function(M){return HD(M,N)})),i);default:throw new Error("geometry "+D+" not supported")}},M.lineOverlap=KD,M.sector=function(M,N,D,t,i){if(i=i||{},!x(i))throw new Error("options is invalid");if(!M)throw new Error("center is required");if(void 0===D||null===D)throw new Error("bearing1 is required");if(void 0===t||null===t)throw new Error("bearing2 is required");if(!N)throw new Error("radius is required");if("object"!=typeof i)throw new Error("options must be an object");if(Mt(D)===Mt(t))return LN(M,N,i);var j=R(M),T=[[j]];return l(vD(M,N,D,t,i),(function(M){T[0].push(M)})),T[0].push(j),e(T)},M.rhumbBearing=eD,M.rhumbDistance=TD,M.rhumbDestination=Nt,M.polygonTangents=function(M,N){var D,i,e,j=R(M),T=R(N);switch(q(N)){case"Polygon":D=T[0][0],i=T[0][0],e=tt(T[0][0],T[0][T[0].length-1],j);var g=Dt(T[0],j,e,void 0,D,i);D=g[0],i=g[1];break;case"MultiPolygon":D=T[0][0][0],i=T[0][0][0],e=tt(T[0][0][0],T[0][0][T[0][0].length-1],j),T.forEach((function(M){var N=Dt(M[0],j,e,void 0,D,i);D=N[0],i=N[1]}))}return s([t(D),t(i)])},M.rewind=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.reverse||!1,t=N.mutate||!1;if(!M)throw new Error("<geojson> is required");if("boolean"!=typeof D)throw new Error("<reverse> must be a boolean");if("boolean"!=typeof t)throw new Error("<mutate> must be a boolean");!1===t&&(M=BM(M));var i=[];switch(M.type){case"GeometryCollection":return h(M,(function(M){et(M,D)})),M;case"FeatureCollection":return Y(M,(function(M){Y(et(M,D),(function(M){i.push(M)}))})),s(i)}return et(M,D)},M.isobands=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.zProperty||"elevation",i=D.commonProperties||{},j=D.breaksProperties||[];if(F(M,"Point","Input must contain Points"),!N)throw new Error("breaks is required");if(!Array.isArray(N))throw new Error("breaks is not an Array");if(!x(i))throw new Error("commonProperties is not an Object");if(!Array.isArray(j))throw new Error("breaksProperties is not an Array");var T=gt(M,{zProperty:t,flip:!0}),g=function(M,N,D){for(var t=[],i=1;i<N.length;i++){var j=+N[i-1],T=+N[i],g=st(M,j,T-j),s=function(M){var N=[],D=[];M.forEach((function(M){var t=wD(e([M]));D.push(t),N.push({ring:M,area:t})})),D.sort((function(M,N){return N-M}));var t=[];return D.forEach((function(M){for(var D=0;D<N.length;D++)if(N[D].area===M){t.push(N[D].ring),N.splice(D,1);break}})),t}(g),u=function(M){for(var N=M.map((function(M){return{lrCoordinates:M,grouped:!1}})),D=[];!function(M){for(var N=0;N<M.length;N++)if(!1===M[N].grouped)return!1;return!0}(N);)for(var t=0;t<N.length;t++)if(!N[t].grouped){var i=[];i.push(N[t].lrCoordinates),N[t].grouped=!0;for(var j=e([N[t].lrCoordinates]),T=t+1;T<N.length;T++)if(!N[T].grouped){var g=e([N[T].lrCoordinates]);(function(M,N){for(var D=cN(M),t=0;t<D.features.length;t++)if(!dM(D.features[t],N))return!1;return!0})(g,j)&&(i.push(N[T].lrCoordinates),N[T].grouped=!0)}D.push(i)}return D}(s),z={};z.groupedRings=u,z[D]=j+"-"+T,t.push(z)}return t}(T,N,t);return s((g=function(M,N,D){var t=G(D),i=t[2]-t[0],e=t[3]-t[1],j=t[0],T=t[1],g=N[0].length-1,s=N.length-1,u=i/g,z=e/s,A=function(M){M[0]=M[0]*u+j,M[1]=M[1]*z+T};return M.forEach((function(M){M.groupedRings.forEach((function(M){M.forEach((function(M){M.forEach(A)}))}))})),M}(g,T,M)).map((function(M,N){if(j[N]&&!x(j[N]))throw new Error("Each mappedProperty is required to be an Object");var D=Object.assign({},i,j[N]);return D[t]=M[t],A(M.groupedRings,D)})))},M.transformRotate=At,M.transformScale=Lt,M.transformTranslate=function(M,N,D,t){if(t=t||{},!x(t))throw new Error("options is invalid");var i=t.units,e=t.zTranslation,j=t.mutate;if(!M)throw new Error("geojson is required");if(void 0===N||null===N||isNaN(N))throw new Error("distance is required");if(e&&"number"!=typeof e&&isNaN(e))throw new Error("zTranslation is not a number");if(e=void 0!==e?e:0,0===N&&0===e)return M;if(void 0===D||null===D||isNaN(D))throw new Error("direction is required");return N<0&&(N=-N,D=-D),!1!==j&&void 0!==j||(M=BM(M)),l(M,(function(M){var t=R(Nt(M,N,D,{units:i}));M[0]=t[0],M[1]=t[1],e&&3===M.length&&(M[2]+=e)})),M},M.lineOffset=function(M,N,D){if(D=D||{},!x(D))throw new Error("options is invalid");var t=D.units;if(!M)throw new Error("geojson is required");if(void 0===N||null===N||isNaN(N))throw new Error("distance is required");var i=q(M),e=M.properties;switch(i){case"LineString":return ct(M,N,t);case"MultiLineString":var j=[];return m(M,(function(M){j.push(ct(M,N,t).geometry.coordinates)})),u(j,e);default:throw new Error("geometry "+i+" is not supported")}},M.polygonize=function(M){var N=fT.fromGeoJson(M);N.deleteDangles(),N.deleteCutEdges();var D=[],t=[];return N.getEdgeRings().filter((function(M){return M.isValid()})).forEach((function(M){M.isHole()?D.push(M):t.push(M)})),D.forEach((function(M){UT.findEdgeRingContaining(M,t)&&t.push(M)})),s(t.map((function(M){return M.toPolygon()})))},M.booleanDisjoint=function(M,N){var D;return m(M,(function(M){m(N,(function(N){if(!1===D)return!1;D=function(M,N){switch(M.type){case"Point":switch(N.type){case"Point":return!function(M,N){return M[0]===N[0]&&M[1]===N[1]}(M.coordinates,N.coordinates);case"LineString":return!ot(N,M);case"Polygon":return!dM(M,N)}break;case"LineString":switch(N.type){case"Point":return!ot(M,N);case"LineString":return!function(M,N){return DD(M,N).features.length>0}(M,N);case"Polygon":return!Et(N,M)}break;case"Polygon":switch(N.type){case"Point":return!dM(N,M);case"LineString":return!Et(M,N);case"Polygon":return!function(M,N){for(var D=0;D<M.coordinates[0].length;D++)if(dM(M.coordinates[0][D],N))return!0;for(var t=0;t<N.coordinates[0].length;t++)if(dM(N.coordinates[0][t],M))return!0;return!1}(N,M)}}}(M.geometry,N.geometry)}))})),D},M.booleanContains=function(M,N){var D=q(M),t=q(N),i=V(M),e=V(N),j=R(M),T=R(N);switch(D){case"Point":switch(t){case"Point":return xt(j,T);default:throw new Error("feature2 "+t+" geometry not supported")}case"MultiPoint":switch(t){case"Point":return function(M,N){var D,t=!1;for(D=0;D<M.coordinates.length;D++)if(xt(M.coordinates[D],N.coordinates)){t=!0;break}return t}(i,e);case"MultiPoint":return function(M,N){for(var D=0;D<N.coordinates.length;D++){for(var t=!1,i=0;i<M.coordinates.length;i++)if(xt(N.coordinates[D],M.coordinates[i])){t=!0;break}if(!t)return!1}return!0}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"LineString":switch(t){case"Point":return xD(e,i,{ignoreEndVertices:!0});case"LineString":return function(M,N){for(var D=!1,t=0;t<N.coordinates.length;t++)if(xD({type:"Point",coordinates:N.coordinates[t]},M,{ignoreEndVertices:!0})&&(D=!0),!xD({type:"Point",coordinates:N.coordinates[t]},M,{ignoreEndVertices:!1}))return!1;return D}(i,e);case"MultiPoint":return function(M,N){for(var D=!1,t=0;t<N.coordinates.length;t++)if(xD(N.coordinates[t],M,{ignoreEndVertices:!0})&&(D=!0),!xD(N.coordinates[t],M))return!1;return!!D}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"Polygon":switch(t){case"Point":return dM(e,i,{ignoreBoundary:!0});case"LineString":return function(M,N){var D=!1,t=0,i=G(M),e=G(N);if(!Ot(i,e))return!1;for(;t<N.coordinates.length-1;t++){var j=function(M,N){return[(M[0]+N[0])/2,(M[1]+N[1])/2]}(N.coordinates[t],N.coordinates[t+1]);if(dM({type:"Point",coordinates:j},M,{ignoreBoundary:!0})){D=!0;break}}return D}(i,e);case"Polygon":return function(M,N){var D=G(M),t=G(N);if(!Ot(D,t))return!1;for(var i=0;i<N.coordinates[0].length;i++)if(!dM(N.coordinates[0][i],M))return!1;return!0}(i,e);case"MultiPoint":return function(M,N){for(var D=0;D<N.coordinates.length;D++)if(!dM(N.coordinates[D],M,{ignoreBoundary:!0}))return!1;return!0}(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}default:throw new Error("feature1 "+D+" geometry not supported")}},M.booleanCrosses=function(M,N){var D=q(M),t=q(N),i=V(M),e=V(N);switch(D){case"MultiPoint":switch(t){case"LineString":return Ct(i,e);case"Polygon":return lt(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"LineString":switch(t){case"MultiPoint":return Ct(e,i);case"LineString":return function(M,N){if(DD(M,N).features.length>0)for(var D=0;D<M.coordinates.length-1;D++)for(var t=0;t<N.coordinates.length-1;t++){var i=!0;if(0!==t&&t!==N.coordinates.length-2||(i=!1),kt(M.coordinates[D],M.coordinates[D+1],N.coordinates[t],i))return!0}return!1}(i,e);case"Polygon":return St(i,e);default:throw new Error("feature2 "+t+" geometry not supported")}case"Polygon":switch(t){case"MultiPoint":return lt(e,i);case"LineString":return St(e,i);default:throw new Error("feature2 "+t+" geometry not supported")}default:throw new Error("feature1 "+D+" geometry not supported")}},M.booleanClockwise=it,M.booleanOverlap=pt,M.booleanPointOnLine=xD,M.booleanEqual=function(M,N){if(!M)throw new Error("feature1 is required");if(!N)throw new Error("feature2 is required");return q(M)===q(N)&&new PT({precision:6}).compare(MN(M),MN(N))},M.booleanWithin=CD,M.clone=BM,M.cleanCoords=MN,M.clustersDbscan=function(M,N,D){if("object"!=typeof(D=D||{}))throw new Error("options is invalid");var t=D.minPoints,i=D.units;if(F(M,"Point","Input must contain Points"),null===N||void 0===N)throw new Error("maxDistance is required");if(!(Math.sign(N)>0))throw new Error("Invalid maxDistance");if(!(void 0===t||null===t||Math.sign(t)>0))throw new Error("Invalid minPoints");M=BM(M),t=t||3;var e=new XT.DBSCAN,j=-1;return e.run(U(M),o(N,i),t,vM).forEach((function(N){j++,N.forEach((function(N){var D=M.features[N];D.properties||(D.properties={}),D.properties.cluster=j,D.properties.dbscan="core"}))})),e.noise.forEach((function(N){var D=M.features[N];D.properties||(D.properties={}),D.properties.cluster?D.properties.dbscan="edge":D.properties.dbscan="noise"})),M},M.clustersKmeans=function(M,N){if("object"!=typeof(N=N||{}))throw new Error("options is invalid");var D=N.numberOfClusters,t=N.mutate;F(M,"Point","Input must contain Points");var i=M.features.length;(D=D||Math.round(Math.sqrt(i/2)))>i&&(D=i),!1!==t&&void 0!==t||(M=BM(M));var e=U(M),j=e.slice(0,D),T=$T(e,D,j),g={};return T.centroids.forEach((function(M,N){g[N]=M})),Y(M,(function(M,N){var D=T.idxs[N];M.properties.cluster=D,M.properties.centroid=g[D]})),M},M.pointToLineDistance=LD,M.booleanParallel=function(M,N){if(!M)throw new Error("line1 is required");if(!N)throw new Error("line2 is required");if("LineString"!==ht(M,"line1"))throw new Error("line1 must be a LineString");if("LineString"!==ht(N,"line2"))throw new Error("line2 must be a LineString");for(var D=ND(MN(M)).features,t=ND(MN(N)).features,i=0;i<D.length;i++){var e=D[i].geometry.coordinates;if(!t[i])break;if(!function(M,N){var D=c(eD(M[0],M[1])),t=c(eD(N[0],N[1]));return D===t}(e,t[i].geometry.coordinates))return!1}return!0},M.shortestPath=function(M,D,i){if(i=i||{},!x(i))throw new Error("options is invalid");var e=i.resolution,j=i.minDistance,g=i.obstacles||s([]);if(!M)throw new Error("start is required");if(!D)throw new Error("end is required");if(e&&!O(e)||e<=0)throw new Error("options.resolution must be a number, greater than 0");if(j)throw new Error("options.minDistance is not yet implemented");var u=W(M),z=W(D);switch(M=t(u),D=t(z),q(g)){case"FeatureCollection":if(0===g.features.length)return T([u,z]);break;case"Polygon":g=s([N(V(g))]);break;default:throw new Error("invalid obstacles")}var A=g;A.features.push(M),A.features.push(D);var L=G(Lt(sN(G(A)),1.15));e||(e=vM([L[0],L[1]],[L[2],L[1]],i)/100),A.features.pop(),A.features.pop();for(var I=L[0],n=L[1],r=L[2],w=L[3],c=e/vM([I,n],[r,n],i)*(r-I),y=e/vM([I,n],[I,w],i)*(w-n),a=r-I,o=w-n,E=(a-Math.floor(a/c)*c)/2,C=[],S=[],l=[],k=[],Q=1/0,d=1/0,Y=w-(o-Math.floor(o/y)*y)/2,p=0;Y>=n;){for(var U=[],h=[],f=I+E,m=0;f<=r;){var v=t([f,Y]),B=function(M,N){for(var D=0;D<N.features.length;D++)if(dM(M,N.features[D]))return!0;return!1}(v,g);U.push(B?0:1),h.push(f+"|"+Y);var b=vM(v,M);!B&&b<Q&&(Q=b,l={x:m,y:p});var P=vM(v,D);!B&&P<d&&(d=P,k={x:m,y:p}),f+=c,m++}S.push(U),C.push(h),Y-=y,p++}var Z=new mt(S,{diagonal:!0}),R=Z.grid[l.y][l.x],X=Z.grid[k.y][k.x],_=[u];return Mg.search(Z,R,X).forEach((function(M){var N=C[M.x][M.y].split("|");_.push([+N[0],+N[1]])})),_.push(z),MN(T(_))},M.voronoi=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.bbox||[-180,-85,180,85];if(!M)throw new Error("points is required");if(!Array.isArray(D))throw new Error("bbox is invalid");return F(M,"Point","points"),s(zg().x((function(M){return M.geometry.coordinates[0]})).y((function(M){return M.geometry.coordinates[1]})).extent([[D[0],D[1]],[D[2],D[3]]]).polygons(M.features).map(ui))},M.ellipse=zi,M.centerMean=Li,M.centerMedian=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.counter||10;if(!O(D))throw new Error("counter must be a number");var t=N.weight,i=Li(M,{weight:N.weight}),e=s([]);return Y(M,(function(M){e.features.push(rN(M,{weight:M.properties[t]}))})),e.properties={tolerance:N.tolerance,medianCandidates:[]},Ii(i.geometry.coordinates,[0,0],e,D)},M.standardDeviationalEllipse=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.steps||64,t=N.weight,i=N.properties||{};if(!O(D))throw new Error("steps must be a number");if(!x(i))throw new Error("properties must be a number");var e=U(M).length,j=Li(M,{weight:t}),T=0,g=0,u=0;Y(M,(function(M){var N=M.properties[t]||1,D=ni(R(M),R(j));T+=Math.pow(D.x,2)*N,g+=Math.pow(D.y,2)*N,u+=D.x*D.y*N}));var z=T-g,A=Math.sqrt(Math.pow(z,2)+4*Math.pow(u,2)),L=2*u,I=Math.atan((z+A)/L),n=180*I/Math.PI,r=0,w=0,c=0;Y(M,(function(M){var N=M.properties[t]||1,D=ni(R(M),R(j));r+=Math.pow(D.x*Math.cos(I)-D.y*Math.sin(I),2)*N,w+=Math.pow(D.x*Math.sin(I)+D.y*Math.cos(I),2)*N,c+=N}));var y=Math.sqrt(2*r/c),a=Math.sqrt(2*w/c),o=zi(j,y,a,{units:"degrees",angle:n,steps:D,properties:i}),E=pM(M,s([o])),C={meanCenterCoordinates:R(j),semiMajorAxis:y,semiMinorAxis:a,numberOfFeatures:e,angle:n,percentageWithinEllipse:100*U(E).length/e};return o.properties.standardDeviationalEllipse=C,o},M.difference=function(M,D){var t=V(M),i=V(D),e=M.properties||{};if(t=Wi(t),i=Wi(i),!t)return null;if(!i)return N(t,e);var j=new ou,T=j.read(t),g=j.read(i),s=OL.difference(T,g);return s.isEmpty()?null:N((new Eu).write(s),e)},M.buffer=function(M,N,D){var t=(D=D||{}).units,i=D.steps||64;if(!M)throw new Error("geojson is required");if("object"!=typeof D)throw new Error("options must be an object");if("number"!=typeof i)throw new Error("steps must be an number");if(void 0===N)throw new Error("radius is required");if(i<=0)throw new Error("steps must be greater than 0");i=i||64,t=t||"kilometers";var e=[];switch(M.type){case"GeometryCollection":return h(M,(function(M){var D=oe(M,N,t,i);D&&e.push(D)})),s(e);case"FeatureCollection":return Y(M,(function(M){var D=oe(M,N,t,i);D&&Y(D,(function(M){M&&e.push(M)}))})),s(e)}return oe(M,N,t,i)},M.union=Se,M.intersect=le,M.dissolve=function(M,N){if(N=N||{},!x(N))throw new Error("options is invalid");var D=N.propertyName;F(M,"Polygon","dissolve");var t=BM(M),i=t.features,e=[];i.forEach((function(M,N){M.properties.origIndexPosition=N}));var j=KN();for(var g in j.load(t),i){var s=i[g],u=!1;if(j.search(s).features.forEach((function(M){s=i[g];var N=M.properties.origIndexPosition;if(e.length>0&&0!==N)if(N>e[e.length-1])N-=e.length;else{var t=ke(N,e);0!==t&&(N-=t)}if(N!==+g){var z=i[N];z&&s&&(void 0!==D&&z.properties[D]!==s.properties[D]||pt(s,z)&&function(M,N){var D=T(U(M)),t=T(U(N));return DD(D,t).features.length>0}(s,z)&&(i[g]=Se(s,z),e.push(M.properties.origIndexPosition),e.sort((function(M,N){return M-N})),j.remove(M),i.splice(N,1),s.properties.origIndexPosition=g,j.remove(s,(function(M,N){return M.properties.origIndexPosition===N.properties.origIndexPosition})),u=!0))}})),u){if(!s)continue;s.properties.origIndexPosition=g,j.insert(s),g--}}return i.forEach((function(M){delete M.properties.origIndexPosition,delete M.bbox})),t},M.hexGrid=Qe,M.mask=function(M,N){var D=function(M){return e(M&&M.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]])}(N),t=function(M){var N=[],D=[];return m(M,(function(M){var t=M.geometry.coordinates,i=t[0],j=t.slice(1);N.push(e([i])),j.forEach((function(M){D.push(e([M]))}))})),[s(N),s(D)]}(M),i=t[0],j=t[1];return function(M,N,D){var t=[];return t.push(M.geometry.coordinates[0]),m(N,(function(M){t.push(M.geometry.coordinates[0])})),m(D,(function(M){t.push(M.geometry.coordinates[0])})),e(t)}(D,i=de(i),j=de(j))},M.squareGrid=pe,M.triangleGrid=Ue,M.interpolate=function(M,N,D){if("object"!=typeof(D=D||{}))throw new Error("options is invalid");var t=D.gridType,i=D.property,e=D.weight;if(!M)throw new Error("points is required");if(F(M,"Point","input must contain Points"),!N)throw new Error("cellSize is required");if(void 0!==e&&"number"!=typeof e)throw new Error("weight must be a number");i=i||"elevation",t=t||"square",e=e||1;var j,T=G(M);switch(t){case"point":case"points":j=kD(T,N,D);break;case"square":case"squares":j=pe(T,N,D);break;case"hex":case"hexes":j=Qe(T,N,D);break;case"triangle":case"triangles":j=Ue(T,N,D);break;default:throw new Error("invalid gridType")}var g=[];return Y(j,(function(N){var j=0,T=0;Y(M,(function(M){var g,s=vM("point"===t?N:rN(N),M,D);if(void 0!==i&&(g=M.properties[i]),void 0===g&&(g=M.geometry.coordinates[2]),void 0===g)throw new Error("zValue is missing");0===s&&(j=g);var u=1/Math.pow(s,e);T+=u,j+=u*g}));var s=BM(N);s.properties[i]=j/T,g.push(s)})),s(g)},M.pointOnSurface=nD,M.polygonToLineString=bD,M.lineStringToPolygon=ZD,M.inside=dM,M.within=pM,M.bezier=gN,M.nearest=mN,M.pointOnLine=iD,M.lineDistance=ED,M.radians2degrees=y,M.degrees2radians=a,M.distanceToDegrees=w,M.distanceToRadians=r,M.radiansToDistance=n,M.bearingToAngle=c,M.convertDistance=o,M.toMercator=gD,M.toWgs84=sD,M.randomPosition=ri,M.randomPoint=wi,M.randomPolygon=ci,M.randomLineString=yi,M.getCluster=oi,M.clusterEach=Ei,M.clusterReduce=Oi,M.createBins=xi,M.applyFilter=Ci,M.propertiesContainsFilter=Si,M.filterProperties=li,M.earthRadius=he,M.factors=fe,M.unitsFactors=me,M.areaFactors=ve,M.feature=N,M.geometry=D,M.point=t,M.points=i,M.polygon=e,M.polygons=j,M.lineString=T,M.lineStrings=g,M.featureCollection=s,M.multiLineString=u,M.multiPoint=z,M.multiPolygon=A,M.geometryCollection=L,M.round=I,M.radiansToLength=n,M.lengthToRadians=r,M.lengthToDegrees=w,M.bearingToAzimuth=c,M.radiansToDegrees=y,M.degreesToRadians=a,M.convertLength=o,M.convertArea=E,M.isNumber=O,M.isObject=x,M.validateBBox=C,M.validateId=S,M.getCoord=W,M.getCoords=R,M.containsNumber=X,M.geojsonType=_,M.featureOf=H,M.collectionOf=F,M.getGeom=V,M.getGeomType=J,M.getType=q,M.coordEach=l,M.coordReduce=k,M.propEach=Q,M.propReduce=d,M.featureEach=Y,M.featureReduce=p,M.coordAll=U,M.geomEach=h,M.geomReduce=f,M.flattenEach=m,M.flattenReduce=v,M.segmentEach=B,M.segmentReduce=b,M.lineEach=P,M.lineReduce=Z,Object.defineProperty(M,"__esModule",{value:!0})}))},5962:function(M,N){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTU0cHgiIGhlaWdodD0iMTU0cHgiIHZpZXdCb3g9IjAgMCAxNTQgMTU0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPGcgaWQ9Im1hcmNhZG9yZXMtLy1wY180My1zZWxtayIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTc3LDEzOS43ODkxIEM4OS41NTgsMTM5Ljc4OTEgOTkuNzM3LDE0Mi45NzExIDk5LjczNywxNDYuODk0MSBDOTkuNzM3LDE1MC44MTkxIDg5LjU1OCwxNTQuMDAwMSA3NywxNTQuMDAwMSBDNjQuNDQyLDE1NC4wMDAxIDU0LjI2MywxNTAuODE5MSA1NC4yNjMsMTQ2Ljg5NDEgQzU0LjI2MywxNDIuOTcxMSA2NC40NDIsMTM5Ljc4OTEgNzcsMTM5Ljc4OTEiIGlkPSJzb21icmEtMiIgZmlsbC1vcGFjaXR5PSIwLjQiIGZpbGw9IiM1MjVDNjUiPjwvcGF0aD4KICAgICAgICA8cGF0aCBkPSJNNzcsMTQ1LjQ3MzYgQzgzLjI3OCwxNDUuNDczNiA4OC4zNjgsMTQ2Ljc0NTYgODguMzY4LDE0OC4zMTU2IEM4OC4zNjgsMTQ5Ljg4NTYgODMuMjc4LDE1MS4xNTg2IDc3LDE1MS4xNTg2IEM3MC43MjIsMTUxLjE1ODYgNjUuNjMyLDE0OS44ODU2IDY1LjYzMiwxNDguMzE1NiBDNjUuNjMyLDE0Ni43NDU2IDcwLjcyMiwxNDUuNDczNiA3NywxNDUuNDczNiIgaWQ9InNvbWJyYS0xIiBmaWxsLW9wYWNpdHk9IjAuNCIgZmlsbD0iIzUyNUM2NSI+PC9wYXRoPgogICAgICAgIDxwYXRoIGQ9Ik03Ny4xMjIsMTQ5Ljk1IEw3NywxNDkuOTUgTDc2Ljg3OCwxNDkuOTUgQzczLjg4NywxNDkuOTUgNzEuMDY5LDE0OC42NDIgNjkuMTQ2LDE0Ni4zNjIgTDU1LjM0LDEzMCBMMzUsMTMwIEMyNi43MjksMTMwIDIwLDEyMy4yNzEgMjAsMTE1IEwyMCwzMSBDMjAsMjIuNzI5IDI2LjcyOSwxNiAzNSwxNiBMMTE5LDE2IEMxMjcuMjcxLDE2IDEzNCwyMi43MjkgMTM0LDMxIEwxMzQsMTE1IEMxMzQsMTIzLjI3MSAxMjcuMjcxLDEzMCAxMTksMTMwIEw5OC42NiwxMzAgTDg0Ljg1MywxNDYuMzYyIEM4Mi45MzEsMTQ4LjY0MiA4MC4xMTMsMTQ5Ljk1IDc3LjEyMiwxNDkuOTUiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgPHBhdGggZD0iTTExOSwxOSBMMzUsMTkgQzI4LjM3MywxOSAyMywyNC4zNzMgMjMsMzEgTDIzLDExNSBDMjMsMTIxLjYyNyAyOC4zNzMsMTI3IDM1LDEyNyBMNTYuNzM0LDEyNyBMNzEuNDM5LDE0NC40MjggQzcyLjg3NCwxNDYuMTI5IDc0LjkzNywxNDYuOTg0IDc3LDE0Ni45NDkwOTEgQzc5LjA2MywxNDYuOTg0IDgxLjEyNiwxNDYuMTI5IDgyLjU2MSwxNDQuNDI4IEw5Ny4yNjYsMTI3IEwxMTksMTI3IEMxMjUuNjI3LDEyNyAxMzEsMTIxLjYyNyAxMzEsMTE1IEwxMzEsMzEgQzEzMSwyNC4zNzMgMTI1LjYyNywxOSAxMTksMTkiIGlkPSJtYXJjYWRvci1pbmRpY2UiIGZpbGw9IiM4RUJBRTUiPjwvcGF0aD4KICAgICAgICA8ZyBpZD0ibWFyY2Fkb3Jlcy0vLXBjXzQzLW1rIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgLTQuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMzQsMTE5IEwxMzQsMzUgQzEzNCwyNi43MTYxNDU4IDEyNy4yODM4NTQsMjAgMTE5LDIwIEwzNSwyMCBDMjYuNzE2MTQ1OCwyMCAyMCwyNi43MTYxNDU4IDIwLDM1IEwyMCwxMTkgQzIwLDEyNy4yODM4NTQgMjYuNzE2MTQ1OCwxMzQgMzUsMTM0IEwxMTksMTM0IEMxMjcuMjgzODU0LDEzNCAxMzQsMTI3LjI4Mzg1NCAxMzQsMTE5IFoiIGlkPSJib3JkZS1yZXNwZXRvIiBmaWxsLW9wYWNpdHk9IjAiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPGcgaWQ9InBvaS0vLXBjXzQzIj4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTksMTMxIEwzNSwxMzEgQzI4LjM3MywxMzEgMjMsMTI1LjYyNyAyMywxMTkgTDIzLDM1IEMyMywyOC4zNzMgMjguMzczLDIzIDM1LDIzIEwxMTksMjMgQzEyNS42MjcsMjMgMTMxLDI4LjM3MyAxMzEsMzUgTDEzMSwxMTkgQzEzMSwxMjUuNjI3IDEyNS42MjcsMTMxIDExOSwxMzEiIGlkPSJGaWxsLTMiIGZpbGw9IiM4RUJBRTUiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik01OS4wMjk2LDUzLjkxMTYgQzU4LjQzNzYsNDcuOTI2NiA1My45MTQ2LDQ0LjA0NDYgNDcuODgyNiw0NC4wNDQ2IEM0MS43MTY2LDQ0LjA0NDYgMzYuMzI3Niw0OC42MTQ2IDM2LjMyNzYsNTUuMDA3NiBDMzYuMzI3Niw2Ny4xMTQ2IDUzLjA0NTYsNjMuMDAzNiA1My4wNDU2LDcwLjEzMDYgQzUzLjA0NTYsNzMuMTkwNiA1MC43MTY2LDc0LjY1MTYgNDcuOTI5Niw3NC42NTE2IEM0NC41NDg2LDc0LjY1MTYgNDIuOTk1Niw3Mi40MTI2IDQyLjM1NjYsNjkuMzk4NiBMMzUuMjMwNiw3MC40NDk2IEMzNi4zMjc2LDc3LjM5MzYgNDEuMjE0Niw4MC42ODE2IDQ3Ljk3NDYsODAuNjgxNiBDNTYuNzQ1Niw4MC42ODE2IDYwLjAzNTYsNzQuMTk1NiA2MC4wMzU2LDY5Ljg1NTYgQzYwLjAzNTYsNTYuNjA1NiA0My4zMTY2LDYxLjE3NTYgNDMuMzE2Niw1NC4xODY2IEM0My4zMTY2LDUxLjc2NzYgNDUuMzI1Niw1MC4wNzQ2IDQ3LjY1NTYsNTAuMDc0NiBDNTAuNTMyNiw1MC4wNzQ2IDUxLjkwMzYsNTIuNTg4NiA1Mi41ODk2LDU1LjA1NDYgTDU5LjAyOTYsNTMuOTExNiBaIE02Ni4wMTU2LDQ0LjU5MjYgTDY2LjAxNTYsODAuMTMzNiBMNzMuMTQzNiw4MC4xMzM2IEw3My4xNDM2LDY2LjUyMjYgTDc3LjkzOTYsNjYuNTIyNiBDODguMjE3Niw2Ni41MjI2IDkxLjQxNTYsNjEuMTc1NiA5MS40MTU2LDU1Ljc4NDYgQzkxLjQxNTYsNTAuNjY4NiA4Ny45ODg2LDQ0LjU5MjYgNzkuNzIwNiw0NC41OTI2IEw2Ni4wMTU2LDQ0LjU5MjYgWiBNNzMuMTQzNiw2MC40ODk2IEw3My4xNDM2LDUwLjYyMTYgTDc0LjYwNDYsNTAuNjIxNiBDNzguNDg2Niw1MC42MjE2IDg0LjEwNzYsNDkuOTgzNiA4NC4xMDc2LDU1LjU1NTYgQzg0LjEwNzYsNjEuMTMwNiA3OC40ODY2LDYwLjQ4OTYgNzQuNjA0Niw2MC40ODk2IEw3My4xNDM2LDYwLjQ4OTYgWiBNMTExLjE0OTYsNDQuNTkyNiBMMTAxLjU1NDYsNDQuNTkyNiBMOTEuNTk3Niw4MC4xMzM2IEw5OC44NjA2LDgwLjEzMzYgTDEwMS4xODk2LDcxLjIyNTYgTDExMS42OTY2LDcxLjIyNTYgTDExNC4wMjY2LDgwLjEzMzYgTDEyMS4yODk2LDgwLjEzMzYgTDExMS4xNDk2LDQ0LjU5MjYgWiBNMTEwLjI4MDYsNjUuNjA2NiBMMTAyLjYwNTYsNjUuNjA2NiBMMTA2LjM1MjYsNTAuNzE1NiBMMTEwLjI4MDYsNjUuNjA2NiBaIE0xMjUuNDg4NiwxMDEuMDgxNiBDMTA5Ljk1MTYsMTAxLjA4MTYgMTA3LjU5NzYsOTIuMzM1NiA5Mi44NDQ2LDkyLjMzNTYgQzc4LjA5MDYsOTIuMzM1NiA3NS43NDg2LDEwMS4wODc2IDYwLjIwODYsMTAxLjA4NzYgQzQ0LjY2OTYsMTAxLjA4NzYgNDIuMzE4Niw5Mi4zMzU2IDI3LjU2NDYsOTIuMzM1NiBMMjcuNTY0Niw4NS45NTM2IEM0NS45Mzk2LDg1Ljk1MzYgNDQuODk3Niw5NC43MDk2IDYwLjIwODYsOTQuNzA5NiBDNzUuNTE4Niw5NC43MDk2IDc0LjQ3MTYsODUuOTUzNiA5Mi44NDQ2LDg1Ljk1MzYgQzExMS4yMTk2LDg1Ljk1MzYgMTEwLjE4MjYsOTQuNzE2NiAxMjUuNDg4Niw5NC43MTY2IEwxMjUuNDg4NiwxMDEuMDgxNiBaIE0xMjUuNDg4NiwxMTQuMzM0NiBDMTA5Ljk1MTYsMTE0LjMzNDYgMTA3LjU5NzYsMTA1LjU5NDYgOTIuODQ0NiwxMDUuNTk0NiBDNzguMDkwNiwxMDUuNTk0NiA3NS43NDg2LDExNC4zNDY2IDYwLjIwODYsMTE0LjM0NjYgQzQ0LjY2OTYsMTE0LjM0NjYgNDIuMzE4NiwxMDUuNTk0NiAyNy41NjQ2LDEwNS41OTQ2IEwyNy41NjQ2LDk5LjIxMDYgQzQ1LjkzOTYsOTkuMjEwNiA0NC44OTc2LDEwNy45Njg2IDYwLjIwODYsMTA3Ljk2ODYgQzc1LjUxODYsMTA3Ljk2ODYgNzQuNDcxNiw5OS4yMTA2IDkyLjg0NDYsOTkuMjEwNiBDMTExLjIxOTYsOTkuMjEwNiAxMTAuMTgyNiwxMDcuOTcxNiAxMjUuNDg4NiwxMDcuOTcxNiBMMTI1LjQ4ODYsMTE0LjMzNDYgWiIgaWQ9IkZpbGwtMSIgZmlsbD0iIzM4MkYyRCI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="},"598a":function(M,N,D){(function(M,N){N(D("c1df"))})(0,(function(M){"use strict";
110
110
  //! moment.js locale configuration