UNPKG

@flumens/bigu

Version:

British Isles GridRef Utils

8 lines 46.5 kB
/*! * * @flumens/bigu 0.4.0 * British Isles GridRef Utils * */ !function(S,N){for(var t in N)S[t]=N[t]}(exports,function(S){function N(e){if(t[e])return t[e].exports;var r=t[e]={exports:{},id:e,loaded:!1};return S[e].call(r.exports,r,r.exports,N),r.loaded=!0,r.exports}var t={};return N.m=S,N.c=t,N.p="",N(0)}([function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(1),a=e(r),s=t(3),T=e(s),n=t(15),o=e(n),h=t(16),i=e(h),d=t(8),u=e(d),M=t(12),f=e(M),l=t(14),c=e(l),O=t(6),H=e(O),g=t(5),p=e(g),J=t(4),L=e(J),_=t(9),U=e(_),P=t(13),Y=e(P),R=t(10),G=e(R),K=t(7),D=e(K);t(17);var E={scriptVersions:{},GridRefParser:a.default,GridRefParserCI:T.default,GridRefParserGB:o.default,GridRefParserIR:i.default,LatLng:c.default,CILatLng:u.default,IELatLng:f.default,MappingUtils:H.default,NationalGridCoords:p.default,OSCIRef:L.default,OSGB36LatLng:U.default,OSIRef:Y.default,OSRef:G.default,WGS84LatLng:D.default};E.scriptVersions.gridref="001",E.scriptVersions.grParser="002",E.latlng_to_grid_coords=function(S,N){if(N>=-8.74&&S>49.88){var t=new E.WGS84LatLng(S,N).to_OSGB1936_latlng().to_os_coords();if(t.x>=0&&E.MappingUtils.is_gb_hectad(E.MappingUtils.gb_coords_to_hectad(t.x,t.y)))return t}if(N<-5.3&&S>51.34&&N>-11&&S<55.73){var e=new E.WGS84LatLng(S,N).to_IE_latlng().to_os_coords();return e.x<0||e.y<0?null:e}var r=new E.WGS84LatLng(S,N).to_CI_latlng().to_os_coords();return r.x>=5e5&&r.x<6e5&&r.y>=54e5&&r.y<56e5?r:null},"undefined"!=typeof S&&S.exports&&(S.exports=E),N.default=E},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(2),a=e(r),s=t(3),T=e(s),n=t(15),o=e(n),h=t(16),i=e(h);a.default.factory=function(S){var N,t=S.replace(/\s+/g,"").toUpperCase();if(!t)return!1;if(/^[A-Z]{1,2}\d{2}(?:[A-Z]|[NS][EW]|(?:\d{2}){0,4})?$/.test(t))return N=/^.\d/.test(t)?new i.default:"W"===t.charAt(0)?new T.default:new o.default,N.parse_well_formed(t),!(!N.length||N.error)&&N;if(N=new o.default,N.parse(t),N.length&&!N.error)return N;if("W"===t.charAt(0)){if(N=new T.default,N.parse(t),N.length&&!N.error)return N}else if(N=new i.default,N.parse(t),N.length&&!N.error)return N;return!1},N.default=a.default},function(S,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var t=function(){};t.tetradOffsets={E:[0,8e3],J:[2e3,8e3],P:[4e3,8e3],U:[6e3,8e3],Z:[8e3,8e3],D:[0,6e3],I:[2e3,6e3],N:[4e3,6e3],T:[6e3,6e3],Y:[8e3,6e3],C:[0,4e3],H:[2e3,4e3],M:[4e3,4e3],S:[6e3,4e3],X:[8e3,4e3],B:[0,2e3],G:[2e3,2e3],L:[4e3,2e3],R:[6e3,2e3],W:[8e3,2e3],A:[0,0],F:[2e3,0],K:[4e3,0],Q:[6e3,0],V:[8e3,0]},t.quadrantOffsets={NW:[0,5e3],NE:[5e3,5e3],SW:[0,0],SE:[5e3,0]},t.letterMapping={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,J:8,K:9,L:10,M:11,N:12,O:13,P:14,Q:15,R:16,S:17,T:18,U:19,V:20,W:21,X:22,Y:23,Z:24},t.tetradLetters="ABCDEFGHIJKLMNPQRSTUVWXYZ",t.prototype.preciseGridRef="",t.prototype.length=0,t.prototype.hectad="",t.prototype.tetrad="",t.prototype.tetradLetter="",t.prototype.quadrant="",t.prototype.quadrantCode="",t.prototype.set_tetrad=function(){if(this.tetradLetter=t.tetradLetters.substr(5*(Math.floor(this.osRef.x%1e4/1e3)>>1)+(Math.floor(this.osRef.y%1e4/1e3)>>1),1),!this.tetradLetter)throw new Error("Failed to get tetrad letter when processing '"+this.preciseGridRef+"', easting="+this.osRef.x+" northing="+this.osRef.y);this.tetrad=this.hectad+this.tetradLetter},t.get_normalized_precision=function(S,N){return S>2e3?1e4:S>1e3?2e3:S>100?1e3:S>10?100:S>1?10:N?N:1},N.default=t},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(2),a=e(r),s=t(4),T=e(s),n=function(){};n.prototype=new a.default,n.prototype.constructor=n,n.prototype.country="CI",n.prototype.NationalRef=T.default,n.prototype.parse=function(S){var N,t=S.replace(/[\[\]\s\t\.\/-]+/g,"").toUpperCase(),e="";/[ABCDEFGHIJKLMNPQRSTUVWXYZ]$/.test(t)&&(a.default.quadrantOffsets.hasOwnProperty(t.substr(t.length-2))?(this.quadrantCode=t.substr(t.length-2),t=t.substr(0,t.length-2)):(e=t.substr(t.length-1),t=t.substr(0,t.length-1))),/^(W[AV](?:\d\d){1,5})$/.test(t)?(N=n.gridref_string_to_e_n_l(t))?(this.length=N.length,this.osRef=new T.default(N.e,N.n),this.hectad=this.osRef.to_gridref(1e4),1e4===this.length&&(e||this.quadrantCode)?e?(this.preciseGridRef=t+e,this.tetrad=this.hectad+e,this.tetradLetter=e,this.length=2e3,this.osRef.x+=a.default.tetradOffsets[e][0],this.osRef.y+=a.default.tetradOffsets[e][1]):(this.preciseGridRef=t+this.quadrantCode,this.tetradLetter="",this.tetrad="",this.quadrant=this.preciseGridRef,this.length=5e3,this.osRef.x+=a.default.quadrantOffsets[this.quadrantCode][0],this.osRef.y+=a.default.quadrantOffsets[this.quadrantCode][1]):(this.preciseGridRef=t,this.length<=1e3&&this.set_tetrad())):(this.error=!0,this.errorMessage="Grid reference format not understood (odd length)."):(this.error=!0,this.errorMessage="Channel Island grid reference format not understood. ('"+S+"')")},n.prototype.parse_well_formed=n.prototype.parse,n.gridref_string_to_e_n_l=function(S){var N,t,e,r,a=S.substr(0,2);if("WA"===a)N=55e5;else{if("WV"!==a)return Logger("Bad Channel Island grid letters: '"+a+"'"),!1;N=54e5}var s=S.substr(2);switch(s.length){case 2:t=1e4*s.charAt(0),e=1e4*s.charAt(1),r=1e4;break;case 4:t=1e3*s.substr(0,2),e=1e3*s.substr(2),r=1e3;break;case 6:t=100*s.substr(0,3),e=100*s.substr(3),r=100;break;case 8:t=10*s.substr(0,4),e=10*s.substr(4),r=10;break;case 10:t=parseInt(s.substr(0,5),10),e=parseInt(s.substr(5),10),r=1;break;default:return Logger("Bad length for Channel Island grid ref '"+S+"'"),!1}return{e:t+5e5,n:e+N,length:r}},N.default=n},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(5),a=e(r),s=t(7),T=e(s),n=t(14),o=e(n),h=t(11),i=function(S,N){this.x=S,this.y=N};i.prototype=new a.default,i.prototype.constructor=i,i.prototype.country="CI",i.prototype.to_latLng=function(){var S=6378388,N=6356911.946,t=5e5,e=0,r=.9996,a=.0067226700223333,s=-.0523598775598,n=0*h.deg2rad,o=S*r,d=N*r,u=(o-d)/(o+d),M=this.x-t,f=i.initialLat(this.y,e,o,n,u,d),l=o/Math.sqrt(1-a*(Math.sin(f)*Math.sin(f))),c=l*(1-a)/(1-a*Math.sin(f)*Math.sin(f)),O=l/c-1,H=Math.tan(f)*Math.tan(f),g=Math.pow(Math.tan(f),4),p=Math.pow(Math.tan(f),6),J=Math.pow(Math.cos(f),-1),L=Math.tan(f)/(2*c*l),_=Math.tan(f)/(24*c*(l*l*l))*(5+3*H+O-9*O*H),U=Math.tan(f)/(720*c*Math.pow(l,5))*(61+90*H+45*g),P=f-M*M*L+Math.pow(M,4)*_-Math.pow(M,6)*U,Y=Math.pow(Math.cos(f),-1)/l,R=J/(6*(l*l*l))*(l/c+2*H),G=J/(120*Math.pow(l,5))*(5+28*H+24*g),K=J/(5040*Math.pow(l,7))*(61+662*H+1320*g+720*p),D=s+M*Y-M*M*M*R+Math.pow(M,5)*G-Math.pow(M,7)*K,E=i.convert_to_wgs(P,D);return new T.default(E.lat*h.rad2deg,E.lng*h.rad2deg)},i.convert_to_wgs=function(S,N){var t=6378137,e=.00669438037928458,r=6378388,a=.0067226700223333,s=10;return o.default.transform(S,N,r,a,s,t,e,-83.901,-98.127,-118.635,0,0,0,0)},i.initialLat=function(S,N,t,e,r,a){for(var s=(S-N)/t+e,T=i.marc(a,r,e,s),n=(S-N-T)/t+s,o=0;Math.abs(S-N-T)>1e-5&&o<20;)o+=1,n=(S-N-T)/t+s,T=i.marc(a,r,e,n),s=n;return n},i.marc=function(S,N,t,e){return S*((1+N+5/4*(N*N)+5/4*(N*N*N))*(e-t)-(3*N+3*(N*N)+21/8*(N*N*N))*Math.sin(e-t)*Math.cos(e+t)+(15/8*(N*N)+15/8*(N*N*N))*Math.sin(2*(e-t))*Math.cos(2*(e+t))-35/24*(N*N*N)*Math.sin(3*(e-t))*Math.cos(3*(e+t)))},i.prototype.to_gridref=function(S){return this.y>=55e5?a.default._e_n_to_gr("WA",this.x-5e5,this.y-55e5,S?S:1):this.y<55e5?a.default._e_n_to_gr("WV",this.x-5e5,this.y-54e5,S?S:1):null},N.default=i},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(6),a=e(r),s=function(){};s._e_n_to_gr=function(S,N,t,e){var r="00000"+Math.floor(N),s="00000"+Math.floor(t);if(2e3===e)return S+r.charAt(r.length-5)+s.charAt(s.length-5)+a.default.calculate_tetrad(N,t);if(1e5===e)return S;5e3===e&&(e=1e4);var T=Math.round(Math.log10(e));return S+(T?r.slice(-5,-T)+s.slice(-5,-T):r.slice(-5)+s.slice(-5))},s.prototype.toString=function(){return this.x+","+this.y},N.default=s},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(5),a=e(r),s=function(){};s.tetradLetters="ABCDEFGHIJKLMNPQRSTUVWXYZ",s.tetradLettersRowFirst="AFKQVBGLRWCHMSXDINTYEJPUZ",s.irishGrid={0:["V","Q","L","F","A"],1:["W","R","M","G","B"],2:["X","S","N","H","C"],3:["Y","T","O","J","D"]},s.calculate_tetrad=function(S,N){return S>=0&&N>=0?s.tetradLetters.charAt(5*Math.floor(S%1e4/2e3)+Math.floor(N%1e4/2e3)):""},s.irish_coords_to_hectad=function(S,N){var t=Math.floor(S/1e5),e=Math.floor(N/1e5);return s.irishGrid[t]&&s.irishGrid[t][e]?s.irishGrid[t][e]+Math.floor(S%1e5/1e4)+Math.floor(N%1e5/1e4):""},s.split_ie_coords=function(S,N){var t=Math.floor(S/1e5),e=Math.floor(N/1e5);return s.irishGrid[t]&&s.irishGrid[t][e]?{letter:s.irishGrid[t][e],e:Math.floor(S%1e5),n:Math.floor(N%1e5)}:null},s.gb_coords_to_hectad=function(S,N){var t=S/1e5|0,e=N/1e5|0,r="";r=e<5?t<5?"S":"T":e<10?t<5?"N":"O":t<5?"H":"J";var a=65+5*(4-e%5)+t%5;return a>=73&&a++,r+String.fromCharCode(a)+((S-1e5*t)/1e4|0)+((N-1e5*e)/1e4|0)},s.split_gb_coords=function(S,N){var t,e=Math.floor(S/1e5),r=Math.floor(N/1e5);t=r<5?e<5?"S":"T":r<10?e<5?"N":"O":e<5?"H":"J";var a=65+5*(4-r%5)+e%5;a>=73&&a++;var s=String.fromCharCode(a),T=Math.floor(S-1e5*e),n=Math.floor(N-1e5*r);return{letter:t+s,e:T,n:n}},s.ci_coords_to_hectad=function(S,N){return N>55e5?"WA"+S.toString().substring(1,2)+N.toString().substring(2,3):N<55e5?"WV"+S.toString().substring(1,2)+N.toString().substring(2,3):null},s.ci_coords_to_grid_square=function(S,N,t){return N>55e5?{hectad:"WA"+S.toString().substring(1,2)+N.toString().substring(2,3),monad:"WA"+S.toString().substring(1,3)+N.toString().substring(2,4),gridref:a.default._e_n_to_gr("WA",S-5e5,N-55e5,t?t:1)}:N<55e5?{hectad:"WV"+S.toString().substring(1,2)+N.toString().substring(2,3),monad:"WV"+S.toString().substring(1,3)+N.toString().substring(2,4),gridref:a.default._e_n_to_gr("WV",S-5e5,N-54e5,t?t:1)}:null},s.split_ci_coords=function(S,N){return N>55e5?{letter:"WA",e:parseInt(S.toString().substring(1,6),10),n:parseInt(N.toString().substring(2,7),10)}:N<55e5?{letter:"WV",e:parseInt(S.toString().substring(1,6),10),n:parseInt(N.toString().substring(2,7),10)}:null},s.is_gb_hectad=function(S){return s.gbHectads.indexOf(S)!==-1},s.gbHectads="SV80SV81SV90SV91SW32SW33SW42SW43SW44SW52SW53SW54SW61SW62SW63SW64SW65SW71SW72SW73SW74SW75SW76SW81SW82SW83SW84SW85SW86SW87SW95SW96SW97SS10SS11SS20SS21SS30SW83SW84SW85SW93SW94SW95SW96SW97SW98SX03SX04SX05SX06SX07SX08SX09SX14SX15SX16SX17SX18SX19SX25SX26SX27SX28SX29SX35SX36SX37SX38SX39SX44SX45SX46SX47SS70SS80SS81SS90SS91ST00ST01ST10ST11ST20ST21ST30SX37SX44SX45SX46SX47SX48SX54SX55SX56SX57SX58SX63SX64SX65SX66SX67SX68SX69SX73SX74SX75SX76SX77SX78SX79SX83SX84SX85SX86SX87SX88SX89SX94SX95SX96SX97SX98SX99SY07SY08SY09SY18SY19SY28SY29SY38SY39SS14SS20SS21SS22SS30SS31SS32SS40SS41SS42SS43SS44SS50SS51SS52SS53SS54SS60SS61SS62SS63SS64SS70SS71SS72SS73SS74SS75SS80SS81SS82SS83SS91SS92ST01ST02SX28SX29SX37SX38SX39SX48SX49SX58SX59SX68SX69SX79SS73SS74SS82SS83SS84SS92SS93SS94ST01ST02ST03ST04ST11ST12ST13ST14ST20ST21ST22ST23ST24ST25ST30ST31ST32ST33ST34ST40ST41ST42ST50ST51ST52ST61ST62ST71ST72ST24ST25ST26ST32ST33ST34ST35ST36ST37ST42ST43ST44ST45ST46ST47ST52ST53ST54ST55ST56ST57ST62ST63ST64ST65ST66ST67ST72ST73ST74ST75ST76ST77ST83ST84ST85ST86SP00SP10ST76ST77ST85ST86ST87ST88ST89ST96ST97ST98ST99SU06SU07SU08SU09SU16SU17SU18SU19SU26SU27SU28SU29SU36SU37ST73ST74ST75ST76ST82ST83ST84ST85ST86ST91ST92ST93ST94ST95ST96SU01SU02SU03SU04SU05SU06SU11SU12SU13SU14SU15SU16SU21SU22SU23SU24SU25SU26SU31SU32SU34SU35SU36ST20ST30ST40ST50ST51ST60ST61ST70ST71ST72ST73ST80ST81ST82ST83ST90ST91ST92SU00SU01SU02SU10SU11SY39SY48SY49SY58SY59SY66SY67SY68SY69SY77SY78SY79SY87SY88SY89SY97SY98SY99SZ07SZ08SZ09SZ28SZ38SZ39SZ47SZ48SZ49SZ57SZ58SZ59SZ68SZ69SU00SU01SU02SU10SU11SU12SU20SU21SU22SU23SU30SU31SU32SU33SU40SU41SU42SU43SU50SU51SU52SU60SU61SU62SU70SU71SU72SZ08SZ09SZ19SZ29SZ38SZ39SZ49SZ59SZ69SZ79SU23SU24SU25SU33SU34SU35SU36SU42SU43SU44SU45SU46SU52SU53SU54SU55SU56SU62SU63SU64SU65SU66SU72SU73SU74SU75SU76SU82SU83SU84SU85SU86SU70SU71SU72SU80SU81SU82SU83SU90SU91SU92SU93SZ79SZ89SZ99TQ00TQ01TQ02TQ03TQ10TQ11TQ12TQ13TQ20TQ21TQ22TQ23TQ30TQ31TQ32TQ20TQ21TQ22TQ23TQ30TQ31TQ32TQ33TQ40TQ41TQ42TQ43TQ44TQ50TQ51TQ52TQ53TQ54TQ60TQ61TQ62TQ63TQ70TQ71TQ72TQ80TQ81TQ82TQ91TQ92TV49TV59TV69TQ65TQ72TQ73TQ74TQ75TQ76TQ77TQ82TQ83TQ84TQ85TQ86TQ87TQ91TQ92TQ93TQ94TQ95TQ96TQ97TR01TR02TR03TR04TR05TR06TR07TR12TR13TR14TR15TR16TR23TR24TR25TR26TR27TR33TR34TR35TR36TR37TR46TR47TQ35TQ36TQ37TQ38TQ43TQ44TQ45TQ46TQ47TQ48TQ53TQ54TQ55TQ56TQ57TQ58TQ63TQ64TQ65TQ66TQ67TQ72TQ73TQ74TQ75TQ76TQ77TQ78TQ87TQ88TQ97SU83SU84SU85SU86SU93SU94SU95SU96SU97TQ03TQ04TQ05TQ06TQ07TQ13TQ14TQ15TQ16TQ17TQ23TQ24TQ25TQ26TQ27TQ33TQ34TQ35TQ36TQ37TQ38TQ43TQ44TQ45TL30TL40TL50TL60TL70TL80TL90TM00TQ38TQ39TQ47TQ48TQ49TQ57TQ58TQ59TQ67TQ68TQ69TQ77TQ78TQ79TQ88TQ89TQ98TQ99TR08TR09TR19TL30TL31TL34TL40TL41TL42TL43TL44TL50TL51TL52TL53TL54TL60TL61TL62TL63TL64TL70TL71TL72TL73TL74TL80TL81TL82TL83TL84TL90TL91TL92TL93TM01TM02TM03TM11TM12TM13TM21TM22TM23TQ49SP81SP90SP91TL00TL01TL02TL10TL11TL12TL13TL20TL21TL22TL23TL24TL30TL31TL32TL33TL34TL41TL42TL43TL44TL51TL52TQ09TQ19TQ29TQ39TL20TL30TQ06TQ07TQ08TQ09TQ16TQ17TQ18TQ19TQ27TQ28TQ29TQ37TQ38TQ39SP20SP30SP40SP41SP50SU19SU26SU27SU28SU29SU36SU37SU38SU39SU46SU47SU48SU49SU56SU57SU58SU59SU66SU67SU68SU69SU76SU77SU78SU86SU87SU88SU96SU97SU98SP10SP20SP21SP22SP23SP30SP31SP32SP33SP34SP40SP41SP42SP43SP44SP45SP50SP51SP52SP53SP54SP60SP61SP62SP63SP70SU29SU39SU49SU57SU58SU59SU67SU68SU69SU77SU78SU79SP51SP53SP60SP61SP62SP63SP64SP70SP71SP72SP73SP74SP80SP81SP82SP83SP84SP85SP90SP91SP92SP93SP94SP95SU78SU79SU88SU89SU97SU98SU99TL00TL01TQ07TQ08TQ09TG40TG50TM03TM04TM05TM06TM07TM13TM14TM15TM16TM17TM23TM24TM25TM26TM27TM28TM33TM34TM35TM36TM37TM38TM39TM44TM45TM46TM47TM48TM49TM57TM58TM59TL64TL65TL66TL67TL68TL74TL75TL76TL77TL78TL83TL84TL85TL86TL87TL88TL93TL94TL95TL96TL97TL98TM03TM04TM05TM06TM07TM08TG00TG01TG02TG03TG04TG10TG11TG12TG13TG14TG20TG21TG22TG23TG24TG30TG31TG32TG33TG40TG41TG42TG50TG51TM07TM08TM09TM17TM18TM19TM27TM28TM29TM38TM39TM49TM59TF40TF41TF42TF50TF51TF52TF53TF60TF61TF62TF63TF64TF70TF71TF72TF73TF74TF80TF81TF82TF83TF84TF90TF91TF92TF93TF94TG00TG01TG02TG03TG04TL49TL59TL68TL69TL78TL79TL87TL88TL89TL98TL99TM07TM08TM09TF20TF30TF31TF40TF41TF50TL15TL19TL23TL24TL25TL26TL28TL29TL33TL34TL35TL36TL37TL38TL39TL44TL45TL46TL47TL48TL49TL54TL55TL56TL57TL58TL59TL63TL64TL65TL66TL67TL68TL69TL75TL76SP91SP92SP93SP94SP95SP96TL01TL02TL03TL04TL05TL06TL07TL11TL12TL13TL14TL15TL16TL23TL24TL25TL06TL07TL08TL09TL15TL16TL17TL18TL19TL25TL26TL27TL28TL29TL36TL37TL38TL39SK90SP43SP44SP45SP46SP53SP54SP55SP56SP57SP58SP63SP64SP65SP66SP67SP68SP73SP74SP75SP76SP77SP78SP79SP84SP85SP86SP87SP88SP89SP95SP96SP97SP98SP99TF00TF10TF20TL06TL07TL08TL09TL18TL19TL29SO70SO71SO80SO81SO82SO83SO90SO91SO92SO93SO94SP00SP01SP02SP03SP04SP10SP11SP12SP13SP14SP15SP20SP21SP22SP23SP24SP25ST99SU09SU19SU29SO50SO51SO60SO61SO62SO63SO70SO71SO72SO73SO80SO81SO82SO83SO90ST57ST58ST59ST66ST67ST68ST69ST76ST77ST78ST79ST87ST88ST89ST98ST99SO10SO11SO20SO21SO22SO23SO30SO31SO32SO40SO41SO42SO50SO51ST18ST19ST27ST28ST29ST37ST38ST39ST47ST48ST49ST58ST59SO22SO23SO24SO25SO26SO32SO33SO34SO35SO36SO37SO41SO42SO43SO44SO45SO46SO47SO51SO52SO53SO54SO55SO56SO57SO61SO62SO63SO64SO65SO66SO73SO74SO75SO76SO56SO64SO65SO66SO67SO72SO73SO74SO75SO76SO77SO78SO82SO83SO84SO85SO86SO87SO88SO93SO94SO95SO96SO97SO98SO99SP03SP04SP05SP06SP07SP08SP13SP14SP16SP17SP18SK10SK20SK30SP04SP05SP06SP07SP08SP09SP14SP15SP16SP17SP18SP19SP22SP23SP24SP25SP26SP27SP28SP29SP33SP34SP35SP36SP37SP38SP39SP44SP45SP46SP47SP48SP49SP55SP56SP57SP58SJ63SJ70SJ71SJ72SJ73SJ74SJ75SJ80SJ81SJ82SJ83SJ84SJ85SJ86SJ90SJ91SJ92SJ93SJ94SJ95SJ96SK00SK01SK02SK03SK04SK05SK06SK10SK11SK12SK13SK14SK15SK16SK20SK21SK22SO77SO78SO79SO88SO89SO98SO99SP08SP09SP19SP29SJ20SJ21SJ22SJ23SJ30SJ31SJ32SJ33SJ34SJ40SJ41SJ42SJ43SJ50SJ51SJ52SJ53SJ54SJ60SJ61SJ62SJ63SJ64SJ70SJ71SJ72SJ73SJ74SJ80SO17SO18SO27SO28SO29SO37SO38SO39SO46SO47SO48SO49SO56SO57SO58SO59SO66SO67SO68SO69SO77SO78SO79SO88SO89SN50SN60SN61SN70SN71SN80SN81SN90SO00SO01SO10SO11SS38SS39SS48SS49SS58SS59SS68SS69SS77SS78SS79SS87SS88SS89SS96SS97SS98SS99ST06ST07ST08ST09ST16ST17ST18ST19ST26ST27ST28SN70SN71SN74SN80SN81SN82SN83SN84SN85SN86SN90SN91SN92SN93SN94SN95SN96SO00SO01SO02SO03SO04SO05SO06SO10SO11SO12SO13SO14SO21SO22SO23SO24SN86SN87SN96SN97SO04SO05SO06SO07SO08SO13SO14SO15SO16SO17SO18SO24SO25SO26SO27SO36SO37SN01SN02SN10SN11SN12SN20SN21SN22SN23SN24SN30SN31SN32SN33SN34SN40SN41SN42SN43SN44SN50SN51SN52SN53SN54SN60SN61SN62SN63SN64SN65SN71SN72SN73SN74SN75SN81SN82SN83SN84SS39SS49SS59SM50SM62SM70SM71SM72SM73SM80SM81SM82SM83SM84SM90SM91SM92SM93SM94SN00SN01SN02SN03SN04SN10SN11SN12SN13SN14SN22SN23SN24SR89SR99SS09SS19SN14SN15SN24SN25SN33SN34SN35SN36SN44SN45SN46SN54SN55SN56SN57SN58SN64SN65SN66SN67SN68SN69SN74SN75SN76SN77SN78SN79SN84SN85SN86SN87SN88SN89SH70SH71SH80SH81SH90SH91SH92SJ00SJ01SJ02SJ03SJ10SJ11SJ12SJ20SJ21SJ22SJ31SN69SN78SN79SN87SN88SN89SN97SN98SN99SO07SO08SO09SO18SO19SO28SO29SO39SH50SH51SH52SH53SH54SH60SH61SH62SH63SH64SH70SH71SH72SH73SH74SH80SH81SH82SH83SH84SH91SH92SH93SH94SH95SJ03SJ04SJ05SJ13SJ14SN59SN69SN79SH12SH13SH22SH23SH24SH32SH33SH34SH43SH44SH45SH46SH53SH54SH55SH56SH57SH64SH65SH66SH67SH74SH75SH76SH77SH78SH84SH85SH86SH87SH88SH74SH75SH76SH77SH84SH85SH86SH87SH88SH94SH95SH96SH97SH98SJ02SJ03SJ04SJ05SJ06SJ07SJ08SJ12SJ13SJ14SJ15SJ16SJ17SJ22SJ23SJ24SJ25SJ26SJ33SJ34SJ35SJ43SJ44SJ45SJ53SJ54SH97SH98SJ06SJ07SJ08SJ15SJ16SJ17SJ18SJ25SJ26SJ27SJ35SJ36SJ37SH27SH28SH29SH36SH37SH38SH39SH46SH47SH48SH49SH56SH57SH58SH59SH67SH68SK81SK82SK83SK84SK85SK86SK87SK90SK91SK92SK93SK94SK95SK96SK97TF00TF01TF02TF03TF04TF05TF06TF07TF10TF11TF12TF13TF14TF15TF16TF17TF20TF21TF22TF23TF24TF25TF30TF31TF32TF33TF34TF41TF42TF43TF44TF52SE60SE70SE71SE80SE81SE82SE90SE91SE92SK78SK79SK87SK88SK89SK97SK98SK99TA00TA01TA02TA10TA11TA12TA20TA21TA30TA31TA40TF07TF08TF09TF15TF16TF17TF18TF19TF24TF25TF26TF27TF28TF29TF33TF34TF35TF36TF37TF38TF39TF43TF44TF45TF46TF47TF48TF49TF54TF55TF56TF57TF58SK20SK21SK30SK31SK32SK40SK41SK42SK43SK50SK51SK52SK60SK61SK62SK70SK71SK72SK73SK74SK80SK81SK82SK83SK84SK90SK91SP39SP48SP49SP57SP58SP59SP68SP69SP78SP79SP89SP99TF00TF01SE60SE70SK42SK43SK44SK45SK46SK52SK53SK54SK55SK56SK57SK58SK59SK62SK63SK64SK65SK66SK67SK68SK69SK72SK73SK74SK75SK76SK77SK78SK79SK84SK85SK86SK87SK88SK89SK97SJ98SJ99SK03SK06SK07SK08SK09SK11SK12SK13SK14SK15SK16SK17SK18SK19SK21SK22SK23SK24SK25SK26SK27SK28SK31SK32SK33SK34SK35SK36SK37SK38SK42SK43SK44SK45SK46SK47SK48SK53SK56SK57SD90SE00SE10SJ18SJ19SJ27SJ28SJ29SJ35SJ36SJ37SJ38SJ39SJ44SJ45SJ46SJ47SJ48SJ54SJ55SJ56SJ57SJ58SJ63SJ64SJ65SJ66SJ67SJ68SJ69SJ74SJ75SJ76SJ77SJ78SJ79SJ85SJ86SJ87SJ88SJ89SJ96SJ97SJ98SJ99SK06SK07SK08SK09SK19SD20SD21SD22SD30SD31SD32SD40SD41SD42SD50SD51SD52SD53SD60SD61SD62SD63SD70SD71SD72SD73SD74SD80SD81SD82SD83SD84SD90SD91SD92SD93SD94SJ29SJ38SJ39SJ48SJ49SJ58SJ59SJ68SJ69SJ79SJ88SJ89SJ99SD22SD23SD32SD33SD34SD35SD36SD42SD43SD44SD45SD46SD47SD52SD53SD54SD55SD56SD57SD63SD64SD65SD66SD67SD68SD73SD78SE53SE54SE62SE63SE64SE65SE72SE73SE74SE75SE76SE82SE83SE84SE85SE86SE87SE92SE93SE94SE95SE96SE97SE98TA02TA03TA04TA05TA06TA07TA08TA12TA13TA14TA15TA16TA17TA18TA21TA22TA23TA24TA26TA27TA31TA32TA33TA41TA42NZ30NZ31NZ40NZ41NZ42NZ50NZ51NZ52NZ60NZ61NZ62NZ70NZ71NZ72NZ80NZ81NZ90NZ91SE37SE38SE39SE46SE47SE48SE49SE55SE56SE57SE58SE59SE64SE65SE66SE67SE68SE69SE75SE76SE77SE78SE79SE86SE87SE88SE89SE97SE98SE99TA08TA09TA18SD84SD90SD91SD92SD93SD94SD95SE00SE01SE02SE03SE04SE10SE11SE12SE13SE14SE20SE21SE22SE23SE30SE31SE32SE33SE40SE41SE42SE50SE51SE52SE60SE61SE62SE70SE71SE72SE81SE82SK18SK19SK28SK29SK38SK39SK47SK48SK49SK57SK58SK59SK69SD54SD55SD64SD65SD66SD67SD68SD73SD74SD75SD76SD77SD78SD84SD85SD86SD87SD88SD94SD95SD96SD97SD98SE04SE05SE06SE07SE13SE14SE15SE16SE17SE23SE24SE25SE26SE27SE32SE33SE34SE35SE36SE37SE42SE43SE44SE45SE46SE52SE53SE54SE55SE56SE62SE63SE64SE65SE72NY72NY80NY81NY82NY90NY91NY92NZ00NZ01NZ02NZ10NZ11NZ20NZ21NZ30NZ31SD68SD69SD78SD79SD88SD89SD97SD98SD99SE07SE08SE09SE17SE18SE19SE27SE28SE29SE36SE37SE38SE39SE46SE47NY73NY74NY82NY83NY84NY92NY93NY94NY95NZ01NZ02NZ03NZ04NZ05NZ11NZ12NZ13NZ14NZ15NZ16NZ20NZ21NZ22NZ23NZ24NZ25NZ26NZ30NZ31NZ32NZ33NZ34NZ35NZ36NZ41NZ42NZ43NZ44NZ45NZ46NZ52NZ53NT60NT70NT80NT90NU00NU10NU20NY58NY59NY64NY65NY66NY67NY68NY69NY74NY75NY76NY77NY78NY79NY84NY85NY86NY87NY88NY89NY94NY95NY96NY97NY98NY99NZ04NZ05NZ06NZ07NZ08NZ09NZ15NZ16NZ17NZ18NZ19NZ26NZ27NZ28NZ29NZ36NZ37NZ38NZ39NT70NT71NT73NT80NT81NT82NT83NT84NT90NT91NT92NT93NT94NT95NU00NU01NU02NU03NU04NU05NU10NU11NU12NU13NU14NU20NU21NU22NU23NZ09NZ19NY20NY21NY30NY31NY40NY41NY42NY50NY51NY52NY53NY60NY61NY62NY63NY70NY71NY72NY73NY80NY81NY82NY83SD16SD17SD18SD19SD26SD27SD28SD29SD36SD37SD38SD39SD46SD47SD48SD49SD57SD58SD59SD67SD68SD69SD78SD79SD89NX90NX91NX92NX93NY00NY01NY02NY03NY04NY05NY10NY11NY12NY13NY14NY15NY16NY20NY21NY22NY23NY24NY25NY26NY31NY32NY33NY34NY35NY36NY37NY41NY42NY43NY44NY45NY46NY47NY48NY52NY53NY54NY55NY56NY57NY58NY62NY63NY64NY65NY66NY67NY68NY73NY74NY75NY84SD08SD09SD17SD18SD19SD28SD29NX30NX40SC16SC17SC26SC27SC28SC36SC37SC38SC39SC47SC48SC49NS60NS61NS70NS71NS72NS80NS81NS90NT00NT01NT10NT11NT20NT21NT30NX69NX78NX79NX88NX89NX96NX97NX98NX99NY05NY06NY07NY08NY09NY16NY17NY18NY19NY26NY27NY28NY29NY36NY37NY38NY39NY47NY48NY49NS50NS60NX36NX37NX38NX45NX46NX47NX48NX49NX54NX55NX56NX57NX58NX59NX64NX65NX66NX67NX68NX69NX74NX75NX76NX77NX78NX79NX84NX85NX86NX87NX88NX95NX96NX97NX98NY05NY06NW95NW96NW97NX03NX04NX05NX06NX07NX13NX14NX15NX16NX17NX24NX25NX26NX27NX33NX34NX35NX36NX37NX43NX44NX45NX46NS00NS10NS14NS15NS16NS20NS21NS23NS24NS25NS26NS30NS31NS32NS33NS34NS35NS36NS40NS41NS42NS43NS44NS45NS50NS51NS52NS53NS54NS55NS60NS61NS62NS63NS64NS71NS72NS73NX07NX08NX09NX17NX18NX19NX27NX28NX29NX37NX38NX39NX48NX49NX59NS16NS17NS26NS27NS35NS36NS37NS44NS45NS46NS47NS54NS55NS56NS64NS65NS66NS53NS54NS55NS56NS57NS63NS64NS65NS66NS67NS71NS72NS73NS74NS75NS76NS77NS80NS81NS82NS83NS84NS85NS86NS87NS90NS91NS92NS93NS94NS95NS96NT00NT01NT02NT03NT04NT05NT14NT01NT02NT03NT04NT05NT11NT12NT13NT14NT15NT21NT22NT23NT24NT25NT32NT33NT34NT10NT11NT20NT21NT22NT23NT30NT31NT32NT33NT34NT41NT42NT43NT44NT53NT20NT30NT31NT40NT41NT42NT43NT44NT50NT51NT52NT53NT54NT60NT61NT62NT63NT64NT70NT71NT72NT73NT74NT81NT82NT83NY39NY47NY48NY49NY58NY59NY69NT44NT45NT46NT53NT54NT55NT56NT63NT64NT65NT66NT73NT74NT75NT76NT77NT83NT84NT85NT86NT87NT94NT95NT96NT36NT37NT45NT46NT47NT48NT55NT56NT57NT58NT65NT66NT67NT68NT76NT77NS95NS96NT05NT06NT15NT16NT17NT24NT25NT26NT27NT34NT35NT36NT37NT43NT44NT45NT46NS86NS87NS95NS96NS97NS98NT06NT07NT08NT16NT17NO00NO01NO10NO11NO20NO21NO22NO30NO31NO32NO40NO41NO42NO50NO51NO52NO60NO61NS99NT08NT09NT18NT19NT28NT29NT39NT49NT59NT69NN30NN31NN40NN41NS38NS39NS47NS48NS49NS57NS58NS59NS67NS68NS69NS77NS78NS79NS86NS87NS88NS89NS97NS98NN21NN22NN30NN31NN32NN40NN41NN42NN50NN51NN52NN60NN61NN70NN71NN80NN81NN90NN91NO00NS49NS59NS69NS79NS88NS89NS98NS99NT08NT09NN22NN23NN32NN33NN34NN35NN42NN43NN44NN45NN46NN47NN51NN52NN53NN54NN55NN56NN57NN61NN62NN63NN64NN65NN66NN67NN71NN72NN73NN74NN75NN76NN77NN81NN82NN83NN84NN85NN86NN90NN91NN92NN93NN94NN95NN96NO00NO01NO02NO03NO04NO11NO12NO13NO21NN56NN57NN66NN67NN68NN76NN77NN78NN86NN87NN88NN94NN95NN96NN97NN98NO02NO03NO04NO05NO06NO07NO08NO11NO12NO13NO14NO15NO16NO17NO21NO22NO23NO24NO25NO32NO33NO34NO15NO16NO17NO23NO24NO25NO26NO27NO28NO32NO33NO34NO35NO36NO37NO38NO42NO43NO44NO45NO46NO47NO48NO53NO54NO55NO56NO57NO58NO63NO64NO65NO66NO67NO74NO75NO76NJ60NJ70NJ80NJ90NO57NO58NO66NO67NO68NO69NO76NO77NO78NO79NO86NO87NO88NO89NO99NH90NJ00NJ10NJ11NJ20NJ21NJ30NJ31NJ32NJ40NJ41NJ42NJ50NJ51NJ52NJ60NJ61NJ62NJ70NJ71NJ72NJ80NJ81NJ82NJ90NJ91NJ92NK02NN98NN99NO07NO08NO09NO17NO18NO19NO27NO28NO29NO37NO38NO39NO48NO49NO58NO59NO68NO69NO79NO89NJ31NJ32NJ33NJ34NJ42NJ43NJ44NJ52NJ53NJ54NJ55NJ62NJ63NJ64NJ65NJ72NJ73NJ74NJ75NJ76NJ82NJ83NJ84NJ85NJ86NJ92NJ93NJ94NJ95NJ96NK02NK03NK04NK05NK06NK13NK14NK15NH90NJ00NJ01NJ10NJ11NJ12NJ13NJ14NJ21NJ22NJ23NJ24NJ25NJ32NJ33NJ34NJ35NJ36NJ42NJ43NJ44NJ45NJ46NJ54NJ55NJ56NJ64NJ65NJ66NJ74NJ75NJ76NJ86NN99NH72NH81NH82NH91NH92NH93NH94NH95NH96NJ00NJ01NJ02NJ03NJ04NJ05NJ06NJ11NJ12NJ13NJ14NJ15NJ16NJ17NJ23NJ24NJ25NJ26NJ27NJ34NJ35NJ36NJ45NH01NH02NH10NH11NH12NH13NH14NH20NH21NH22NH23NH24NH30NH31NH32NH33NH34NH40NH41NH42NH43NH44NH50NH51NH52NH53NH54NH60NH61NH62NH63NH64NH70NH71NH72NH73NH74NH75NH80NH81NH82NH83NH84NH85NH90NH91NH92NH93NH94NH95NH96NJ00NJ01NN39NN46NN47NN48NN49NN56NN57NN58NN59NN67NN68NN69NN77NN78NN79NN88NN89NN98NN99NG60NG70NG71NG72NG80NG81NG82NG90NG91NH00NH01NH10NH20NH30NM46NM47NM54NM55NM56NM57NM64NM65NM66NM67NM68NM69NM74NM75NM76NM77NM78NM79NM84NM85NM86NM87NM88NM89NM95NM96NM97NM98NM99NN05NN06NN07NN08NN09NN16NN17NN18NN19NN26NN27NN28NN29NN35NN36NN37NN38NN39NN46NN47NN48NN49NN57NN58NN59NM70NM71NM72NM73NM80NM81NM82NM83NM84NM90NM91NM92NM93NM94NM95NN00NN01NN02NN03NN04NN05NN10NN11NN12NN13NN14NN15NN16NN20NN21NN22NN23NN24NN25NN26NN30NN33NN34NN35NN36NN44NN45NN46NR79NR88NR89NR96NR97NR98NR99NS06NS07NS08NS09NS16NS17NS18NS19NS28NS29NN20NN21NN30NN31NS28NS29NS37NS38NS39NS46NS47NS48NS56NS57NR82NR83NR84NR92NR93NR94NR95NR96NR97NS01NS02NS03NS04NS05NS06NS07NS15NS16NR50NR51NR60NR61NR62NR63NR64NR65NR67NR68NR70NR71NR72NR73NR74NR75NR76NR77NR78NR79NR83NR84NR85NR86NR87NR88NR89NR95NR96NM40NM60NM61NM70NM71NR15NR16NR24NR25NR26NR27NR34NR35NR36NR37NR38NR39NR44NR45NR46NR47NR48NR49NR56NR57NR58NR59NR67NR68NR69NR79NL93NL94NM04NM05NM15NM16NM21NM22NM23NM24NM25NM26NM31NM32NM33NM34NM35NM41NM42NM43NM44NM45NM51NM52NM53NM54NM55NM61NM62NM63NM64NM72NM73NG13NG14NG15NG20NG23NG24NG25NG26NG30NG31NG32NG33NG34NG35NG36NG37NG38NG40NG41NG42NG43NG44NG45NG46NG47NG50NG51NG52NG53NG54NG55NG56NG60NG61NG62NG63NG64NG65NG66NG71NG72NG82NM19NM29NM37NM38NM39NM47NM48NM49NM59NB90NB91NC00NC01NC10NC11NC20NC21NG63NG64NG65NG72NG73NG74NG75NG76NG77NG78NG79NG82NG83NG84NG85NG86NG87NG88NG89NG91NG92NG93NG94NG95NG96NG97NG98NG99NH00NH01NH02NH03NH04NH05NH06NH07NH08NH09NH10NH11NH15NH16NH17NH18NH19NH27NH28NH29NC10NC20NC21NC30NC31NC40NH02NH03NH04NH05NH06NH07NH12NH13NH14NH15NH16NH17NH19NH23NH24NH25NH26NH27NH28NH29NH34NH35NH36NH37NH38NH39NH44NH45NH46NH47NH48NH49NH54NH55NH56NH57NH58NH59NH64NH65NH66NH67NH68NH69NH75NH76NH77NH78NH86NH87NH88NH97NH98NC22NC30NC31NC32NC33NC40NC41NC42NC43NC50NC51NC52NC60NC61NC62NC63NC70NC71NC72NC73NC74NC80NC81NC82NC83NC84NC90NC91NC92NC93ND01ND02NH49NH59NH68NH69NH78NH79NH88NH89NC01NC02NC03NC10NC11NC12NC13NC14NC15NC16NC20NC21NC22NC23NC24NC25NC26NC27NC31NC32NC33NC34NC35NC36NC37NC42NC43NC44NC45NC46NC52NC53NC54NC55NC56NC62NC63NC64NC65NC66NC73NC74NC75NC76NC83NC84NC85NC86NC93NC94NC95NC96NC92NC93NC94NC95NC96ND01ND02ND03ND04ND05ND06ND07ND12ND13ND14ND15ND16ND17ND23ND24ND25ND26ND27ND33ND34ND35ND36ND37ND47HW63HW83HX62NA00NA10NA64NA74NA81NA90NA91NA92NA93NB00NB01NB02NB03NB10NB11NB12NB13NB14NB20NB21NB22NB23NB24NB30NB31NB32NB33NB34NB35NB40NB41NB42NB43NB44NB45NB46NB52NB53NB54NB55NB56NF09NF19NF56NF58NF60NF61NF66NF67NF68NF70NF71NF72NF73NF74NF75NF76NF77NF80NF81NF82NF83NF84NF85NF86NF87NF88NF89NF95NF96NF97NF98NF99NG07NG08NG09NG18NG19NG29NG49NL57NL58NL68NL69NL79HY10HY20HY21HY22HY23HY30HY31HY32HY33HY34HY35HY40HY41HY42HY43HY44HY45HY50HY51HY52HY53HY54HY55HY60HY61HY62HY63HY64HY73HY74HY75ND19ND28ND29ND38ND39ND47ND48ND49ND59HP40HP50HP51HP60HP61HT93HT94HU14HU15HU16HU24HU25HU26HU27HU28HU30HU31HU32HU33HU34HU35HU36HU37HU38HU39HU40HU41HU42HU43HU44HU45HU46HU47HU48HU49HU53HU54HU55HU56HU57HU58HU59HU66HU67HU68HU69HZ16HZ17HZ26HZ27",N.default=s},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(8),a=e(r),s=t(12),T=e(s),n=t(14),o=e(n),h=t(9),i=e(h),d=t(11),u=function(S,N){this.lat=S,this.lng=N};u.prototype.to_OSGB1936_latlng=function(){var S=this.lat*d.deg2rad,N=this.lng*d.deg2rad,t=6378137,e=.00669438037928458,r=0,a=6377563.396,s=.0066705397616,T=-446.448,n=125.157,o=-542.06,h=-.1502,u=-.247,M=-.8421,f=20.4894,l=1e-6*f,c=t/Math.sqrt(1-e*Math.sin(S)*Math.sin(S)),O=(c+r)*Math.cos(S)*Math.cos(N),H=(c+r)*Math.cos(S)*Math.sin(N),g=((1-e)*c+r)*Math.sin(S),p=h/3600*d.deg2rad,J=u/3600*d.deg2rad,L=M/3600*d.deg2rad,_=O+O*l-H*L+g*J+T,U=O*L+H+H*l-g*p+n,P=-1*O*J+H*p+g+g*l+o,Y=Math.atan(U/_),R=Math.sqrt(_*_+U*U),G=Math.atan(P/(R*(1-s)));c=a/Math.sqrt(1-s*(Math.sin(G)*Math.sin(G)));for(var K=1,D=0;K>.001;)D=Math.atan((P+s*c*Math.sin(G))/R),K=Math.abs(D-G),G=D;return G*=d.rad2deg,Y*=d.rad2deg,new i.default(G,Y)},u.prototype.to_IE_latlng=function(){var S=this.lat*d.deg2rad,N=this.lng*d.deg2rad,t=6377340.189,e=.00667054015,r=6378137,a=.00669438037928458,s=0,n=o.default.transform(S,N,r,a,s,t,e,-482.53,130.596,-564.557,1.042,.214,.631,8.15);return new T.default(n.lat*d.rad2deg,n.lng*d.rad2deg)},u.prototype.to_CI_latlng=function(){var S=this.lat*d.deg2rad,N=this.lng*d.deg2rad,t=6378388,e=.0067226700223333,r=6378137,s=.00669438037928458,T=0,n=o.default.transform(S,N,r,s,T,t,e,83.901,98.127,118.635,0,0,0,0);return new a.default(n.lat*d.rad2deg,n.lng*d.rad2deg)},N.default=u},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(4),a=e(r),s=t(9),T=e(s),n=t(11),o=function(S,N){this.lat=S,this.lng=N};o.prototype.to_os_coords=function(){var S=this.lat*n.deg2rad,N=this.lng*n.deg2rad,t=6378388,e=6356911.946,r=5e5,s=0,o=.9996,h=.0067226700223333,i=-.0523598775598,d=0,u=t*o,M=e*o,f=Math.sin(S)*Math.sin(S),l=u/Math.sqrt(1-h*f),c=l*(1-h)/(1-h*f),O=l/c-1,H=N-i,g=l*Math.cos(S),p=Math.pow(Math.cos(S),3),J=Math.tan(S)*Math.tan(S),L=l/6*p*(l/c-J),_=Math.pow(Math.cos(S),5),U=Math.pow(Math.tan(S),4),P=l/120*_*(5-18*J+U+14*O-58*J*O),Y=r+H*g+Math.pow(H,3)*L+Math.pow(H,5)*P,R=(u-M)/(u+M),G=T.default._Marc(M,R,d,S),K=G+s,D=l/2*Math.sin(S)*Math.cos(S),E=l/24*Math.sin(S)*Math.pow(Math.cos(S),3)*(5-Math.pow(Math.tan(S),2)+9*O),X=l/720*Math.sin(S)*_*(61-58*J+U),Q=K+H*H*D+Math.pow(H,4)*E+Math.pow(H,6)*X;return new a.default(Math.round(Y),Math.round(Q))},N.default=o},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(7),a=e(r),s=t(10),T=e(s),n=t(11),o=function(S,N){this.lat=S,this.lng=N};o.prototype.to_WGS84=function(){var S=6377563.396,N=.00667054007,t=this.lat*n.deg2rad,e=Math.sin(t),r=this.lng*n.deg2rad,s=S/Math.sqrt(1-N*(e*e)),T=s*Math.cos(t)*Math.cos(r),o=s*Math.cos(t)*Math.sin(r),h=(1-N)*s*e,i=446.448,d=-124.157,u=542.06,M=-204894e-10,f=7.28190110241429e-7,l=119748977294801e-20,c=408261589226812e-20,O=i+T*(1+M)+-f*o+l*h,H=d+c*T+o*(1+M)+-f*h,g=u+-l*T+f*o+h*(1+M);S=6378137,N=.00669438003;for(var p=Math.sqrt(O*O+H*H),J=Math.atan(g/(p*(1-N))),L=1;L<10;++L){var _=Math.sin(J);J=Math.atan((g+N*(S/Math.sqrt(1-N*(_*_)))*_)/p)}return new a.default(n.rad2deg*J,n.rad2deg*Math.atan(H/O))},o._Marc=function(S,N,t,e){return S*((1+N+5/4*(N*N)+5/4*(N*N*N))*(e-t)-(3*N+3*(N*N)+21/8*(N*N*N))*Math.sin(e-t)*Math.cos(e+t)+(15/8*(N*N)+15/8*(N*N*N))*Math.sin(2*(e-t))*Math.cos(2*(e+t))-35/24*(N*N*N)*Math.sin(3*(e-t))*Math.cos(3*(e+t)))},o.prototype.to_os_coords=function(){var S=this.lat*n.deg2rad,N=this.lng*n.deg2rad,t=6377563.396,e=6356256.91,r=4e5,a=-1e5,s=.9996012717,h=.0066705397616,i=-.03490658503988659,d=.8552113334772214,u=t*s,M=e*s,f=Math.sin(S)*Math.sin(S),l=u/Math.sqrt(1-h*f),c=l*(1-h)/(1-h*f),O=l/c-1,H=N-i,g=l*Math.cos(S),p=Math.pow(Math.cos(S),3),J=Math.tan(S)*Math.tan(S),L=l/6*p*(l/c-J),_=Math.pow(Math.cos(S),5),U=Math.pow(Math.tan(S),4),P=l/120*_*(5-18*J+U+14*O-58*J*O),Y=r+H*g+Math.pow(H,3)*L+Math.pow(H,5)*P,R=(u-M)/(u+M),G=o._Marc(M,R,d,S),K=G+a,D=l/2*Math.sin(S)*Math.cos(S),E=l/24*Math.sin(S)*Math.pow(Math.cos(S),3)*(5-Math.pow(Math.tan(S),2)+9*O),X=l/720*Math.sin(S)*_*(61-58*J+U),Q=K+H*H*D+Math.pow(H,4)*E+Math.pow(H,6)*X;return new T.default(Math.round(Y),Math.round(Q))},o._Marc=function(S,N,t,e){return S*((1+N+5/4*(N*N)+5/4*(N*N*N))*(e-t)-(3*N+3*(N*N)+21/8*(N*N*N))*Math.sin(e-t)*Math.cos(e+t)+(15/8*(N*N)+15/8*(N*N*N))*Math.sin(2*(e-t))*Math.cos(2*(e+t))-35/24*(N*N*N)*Math.sin(3*(e-t))*Math.cos(3*(e+t)))},o.prototype.to_os_coords=function(){var S=this.lat*n.deg2rad,N=this.lng*n.deg2rad,t=6377563.396,e=6356256.91,r=4e5,a=-1e5,s=.9996012717,h=.0066705397616,i=-.03490658503988659,d=.8552113334772214,u=t*s,M=e*s,f=Math.sin(S)*Math.sin(S),l=u/Math.sqrt(1-h*f),c=l*(1-h)/(1-h*f),O=l/c-1,H=N-i,g=l*Math.cos(S),p=Math.pow(Math.cos(S),3),J=Math.tan(S)*Math.tan(S),L=l/6*p*(l/c-J),_=Math.pow(Math.cos(S),5),U=Math.pow(Math.tan(S),4),P=l/120*_*(5-18*J+U+14*O-58*J*O),Y=r+H*g+Math.pow(H,3)*L+Math.pow(H,5)*P,R=(u-M)/(u+M),G=o._Marc(M,R,d,S),K=G+a,D=l/2*Math.sin(S)*Math.cos(S),E=l/24*Math.sin(S)*Math.pow(Math.cos(S),3)*(5-Math.pow(Math.tan(S),2)+9*O),X=l/720*Math.sin(S)*_*(61-58*J+U),Q=K+H*H*D+Math.pow(H,4)*E+Math.pow(H,6)*X; return new T.default(Math.round(Y),Math.round(Q))},N.default=o},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(5),a=e(r),s=t(9),T=e(s),n=t(6),o=e(n),h=t(11),i=function(S,N){this.x=S,this.y=N};i.prototype=new a.default,i.prototype.constructor=i,i.prototype.country="GB",i.prototype.to_gridref=function(S){var N=this.x/1e5|0,t=this.y/1e5|0,e="";e=t<5?N<5?"S":"T":t<10?N<5?"N":"O":N<5?"H":"J";var r="",s=65+5*(4-t%5)+N%5;return s>=73&&s++,r=String.fromCharCode(s),a.default._e_n_to_gr(e+r,this.x-1e5*N,this.y-1e5*t,S?S:1)},i.prototype.is_gb_hectad=function(){return o.default.gbHectads.indexOf(o.default.gb_coords_to_hectad(this.x,this.y))!==-1},i.prototype.to_latLng=function(){var S,N=4e5,t=.85521133347722,e=-.034906585039887,r=6377563.396,a=.00667054007,s=0,n=0,o=this.x,i=this.y,d=.0016732203289875,u=(i+1e5)/(.9996012717*r)+t;do S=i+1e5-6353722.489*(1.0016767257674*(u-t)-.00502807228247412*Math.sin(u-t)*Math.cos(u+t)+(1.875*d*d+1.875*d*d*d)*Math.sin(2*(u-t))*Math.cos(2*(u+t))-35/24*d*d*d*Math.sin(3*(u-t))*Math.cos(3*(u+t))),u+=S/6375020.48098897;while(S>=.001);var M=Math.sin(u)*Math.sin(u),f=Math.tan(u)*Math.tan(u),l=1/Math.cos(u),c=.9996012717*r*Math.pow(1-a*M,-.5),O=.9996012717*r*(1-a)*Math.pow(1-a*M,-1.5),H=c/O-1,g=Math.tan(u)/(2*O*c),p=Math.tan(u)/(24*O*Math.pow(c,3))*(5+3*f+H-9*f*H),J=Math.tan(u)/(720*O*Math.pow(c,5))*(61+90*f+45*f*f),L=l/c,_=l/(6*c*c*c)*(c/O+2*f),U=l/(120*Math.pow(c,5))*(5+28*f+24*f*f),P=l/(5040*Math.pow(c,7))*(61+662*f+1320*f*f+720*f*f*f);return s=u-g*Math.pow(o-N,2)+p*Math.pow(o-N,4)-J*Math.pow(o-N,6),n=e+L*(o-N)-_*Math.pow(o-N,3)+U*Math.pow(o-N,5)-P*Math.pow(o-N,7),new T.default(h.rad2deg*s,h.rad2deg*n).to_WGS84()},N.default=i},function(S,N){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var t=Math.PI/180,e=180/Math.PI;N.deg2rad=t,N.rad2deg=e},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(9),a=e(r),s=t(7),T=e(s),n=t(13),o=e(n),h=t(14),i=e(h),d=t(11),u=function(S,N){this.lat=S,this.lng=N};u.prototype.to_os_coords=function(){var S=this.lat*d.deg2rad,N=this.lng*d.deg2rad,t=6377340.189,e=6356034.447,r=2e5,s=25e4,T=1.000035,n=.00667054015,h=-.13962634015954636,i=.9337511498169663,u=t*T,M=e*T,f=Math.sin(S)*Math.sin(S),l=u/Math.sqrt(1-n*f),c=l*(1-n)/(1-n*f),O=l/c-1,H=N-h,g=l*Math.cos(S),p=Math.pow(Math.cos(S),3),J=Math.tan(S)*Math.tan(S),L=l/6*p*(l/c-J),_=Math.pow(Math.cos(S),5),U=Math.pow(Math.tan(S),4),P=l/120*_*(5-18*J+U+14*O-58*J*O),Y=r+H*g+Math.pow(H,3)*L+Math.pow(H,5)*P,R=(u-M)/(u+M),G=a.default._Marc(M,R,i,S),K=G+s,D=l/2*Math.sin(S)*Math.cos(S),E=l/24*Math.sin(S)*Math.pow(Math.cos(S),3)*(5-Math.pow(Math.tan(S),2)+9*O),X=l/720*Math.sin(S)*_*(61-58*J+U),Q=K+H*H*D+Math.pow(H,4)*E+Math.pow(H,6)*X;return new o.default(Math.round(Y),Math.round(Q))},u.prototype.IE_to_WGS84=function(){var S=6377340.189,N=.00667054015,t=6378137,e=.00669438037928458,r=i.default.transform(this.lat*d.deg2rad,this.lng*d.deg2rad,S,N,0,t,e,482.53,-130.596,564.557,-1.042,-.214,-.631,-8.15);return new T.default(r.lat*d.rad2deg,r.lng*d.rad2deg)},N.default=u},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(5),a=e(r),s=t(6),T=e(s),n=t(12),o=e(n),h=t(11),i=function(S,N){this.x=S,this.y=N};i.prototype=new a.default,i.prototype.constructor=i,i.prototype.country="IE",i.prototype.to_latLng=function(){var S=1.000035,N=-8,t=6377340.189,e=.0066705402933363,r=.0016732203841521,a=5929615.3530033,s=this.x-2e5,T=this.y-25e4,n=.0067153352074207,i=a+T/S,d=i/(t*(1-e/4-3*e*e/64-5*e*e*e/256)),u=d+(3*r/2-27*r*r*r/32)*Math.sin(2*d)+(21*r*r/16-55*r*r*r*r/32)*Math.sin(4*d)+151*r*r*r/96*Math.sin(6*d),M=t/Math.sqrt(1-e*Math.sin(u)*Math.sin(u)),f=Math.tan(u)*Math.tan(u),l=n*Math.cos(u)*Math.cos(u),c=t*(1-e)/Math.pow(1-e*Math.sin(u)*Math.sin(u),1.5),O=s/(M*S),H=u-M*Math.tan(u)/c*(O*O/2-(5+3*f+10*l-4*l*l-9*n)*O*O*O*O/24+(61+90*f+298*l+45*f*f-252*n-3*l*l)*O*O*O*O*O*O/720);H*=h.rad2deg;var g=(O-(1+2*f+l)*O*O*O/6+(5-2*l+28*f-3*l*l+8*n+24*f*f)*O*O*O*O*O/120)/Math.cos(u);return g=N+g*h.rad2deg,new o.default(H,g).IE_to_WGS84()},i.prototype.to_gridref=function(S){var N=Math.floor(this.x/1e5),t=Math.floor(this.y/1e5);return T.default.irishGrid[N]&&T.default.irishGrid[N][t]?a.default._e_n_to_gr(T.default.irishGrid[N][t],this.x-1e5*N,this.y-1e5*t,S?S:1):null},N.default=i},function(S,N,t){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var e=t(11),r=function(S,N){this.lat=S,this.lng=N};r.transform=function(S,N,t,a,s,T,n,o,h,i,d,u,M,f){var l=1e-6*f,c=t/Math.sqrt(1-a*(Math.sin(S)*Math.sin(S))),O=(c+s)*Math.cos(S)*Math.cos(N),H=(c+s)*Math.cos(S)*Math.sin(N),g=((1-a)*c+s)*Math.sin(S),p=d/3600*e.deg2rad,J=u/3600*e.deg2rad,L=M/3600*e.deg2rad,_=O+O*l-H*L+g*J+o,U=O*L+H+H*l-g*p+h,P=-1*O*J+H*p+g+g*l+i;N=Math.atan(U/_);var Y=Math.sqrt(_*_+U*U);S=Math.atan(P/(Y*(1-n))),c=T/Math.sqrt(1-n*(Math.sin(S)*Math.sin(S)));for(var R=1,G=0;R>.001;)G=Math.atan((P+n*c*Math.sin(S))/Y),R=Math.abs(G-S),S=G;return new r(S,N)},N.default=r},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(2),a=e(r),s=t(10),T=e(s),n=function(){};n.prototype=new a.default,n.prototype.constructor=n,n.prototype.country="GB",n.prototype.NationalRef=T.default,n.prototype.parse_well_formed=function(S){S.length>=5&&/^[A-Z]/.test(S.charAt(4))&&(a.default.quadrantOffsets.hasOwnProperty(S.substr(S.length-2))?this.quadrantCode=S.substr(S.length-2):this.tetradLetter=S.charAt(4),S=S.substr(0,4)),this.parse_wellformed_gb_gr_string_no_tetrads(S),this.tetradLetter||this.quadrantCode?this.tetradLetter?(this.preciseGridRef=this.tetrad=this.hectad+this.tetradLetter,this.length=2e3,this.osRef.x+=a.default.tetradOffsets[this.tetradLetter][0],this.osRef.y+=a.default.tetradOffsets[this.tetradLetter][1]):(this.preciseGridRef=this.quadrant=S+this.quadrantCode,this.length=5e3,this.osRef.x+=a.default.quadrantOffsets[this.quadrantCode][0],this.osRef.y+=a.default.quadrantOffsets[this.quadrantCode][1]):(this.preciseGridRef=S,this.length<=1e3&&this.set_tetrad())},n.prototype.parse=function(S){var N,t=S.replace(/[\[\]\s\t\.-]+/g,"").toUpperCase(),e="";if(/[ABCDEFGHIJKLMNPQRSTUVWXYZ]$/.test(t)&&(a.default.quadrantOffsets.hasOwnProperty(t.substr(t.length-2))?(this.quadrantCode=t.substr(t.length-2),t=t.substr(0,t.length-2)):(e=t.substr(t.length-1),t=t.substr(0,t.length-1))),t===parseInt(t,10).toString()?t=t.substr(0,2)+"/"+t.substr(2):t.length>3&&"/"===t.charAt(2)&&/^[A-Z]{2}$/.test(t.substr(0,2))&&(t=t.replace("/","")),"VC"===t.substr(0,2))this.error=!0,this.errorMessage="Misplaced vice-county code in grid-reference field. ('"+t+"')",this.osRef=null,this.length=0;else if(null!==(N=t.match(/^([A-Z]{2}(?:\d\d){1,5})$/)))t=N[0],this.parse_wellformed_gb_gr_string_no_tetrads(t),this.length>0?1e4===this.length&&(e||this.quadrantCode)?e?(this.preciseGridRef=t+e,this.tetradLetter=e,this.tetrad=this.hectad+e,this.length=2e3,this.osRef.x+=a.default.tetradKmOffsets[e][0],this.osRef.y+=a.default.tetradKmOffsets[e][1]):(this.preciseGridRef=t+this.quadrantCode,this.tetradLetter="",this.tetrad="",this.quadrant=this.preciseGridRef,this.length=5e3,this.osRef.x+=a.default.quadrantOffsets[this.quadrantCode][0],this.osRef.y+=a.default.quadrantOffsets[this.quadrantCode][1]):(this.preciseGridRef=t,this.length<=1e3&&this.set_tetrad()):(this.error=!0,this.errorMessage="GB grid reference format not understood (strange length).");else if(/^([\d]{2})\/((?:\d\d){1,5})$/.test(t)){switch(this.parse_gr_string_without_tetrads(t),this.length){case 1e4:t=this.osRef.to_gridref(1e4),this.hectad=t,e?(t+=e,this.tetradLetter=e,this.tetrad=this.hectad+e,this.length=2e3,this.osRef.x+=a.default.tetradOffsets[e][0],this.osRef.y+=a.default.tetradOffsets[e][1]):this.quadrantCode&&(t+=this.quadrantCode,this.quadrant=t,this.length=5e3,this.osRef.x+=a.default.quadrantOffsets[this.quadrantCode][0],this.osRef.y+=a.default.quadrantOffsets[this.quadrantCode][1]);break;case 1e3:case 100:case 10:case 1:t=this.osRef.to_gridref(this.length),this.hectad=this.osRef.to_gridref(1e4),this.set_tetrad();break;default:this.error=!0,this.errorMessage="Bad grid square dimension ("+this.length+" m).",this.osRef=null,this.length=0}this.preciseGridRef=t}else this.osRef=null,this.length=0,this.error=!0,this.errorMessage="Grid reference format not understood. ('"+S+"')"},n.prototype.parse_gr_string_without_tetrads=function(S){var N,t,e,r;if(null!==(N=S.match(/^(\d{2})\/((?:\d\d){1,5})$/))){switch(N[1]){case"57":t=3e5,e=1e6;break;case"67":t=4e5,e=1e6;break;case"58":t=3e5,e=11e5;break;case"68":t=4e5,e=11e5;break;case"69":t=4e5,e=12e5;break;default:t=1e5*S.charAt(0),e=1e5*S.charAt(1)}r=N[2]}else{if(!a.default.letterMapping.hasOwnProperty(S.charAt(0))||!a.default.letterMapping.hasOwnProperty(S.charAt(1)))return this.length=0,void(this.osRef=null);var s=a.default.letterMapping[S.charAt(0)],n=a.default.letterMapping[S.charAt(1)];r=S.substr(2),t=s%5*5e5+n%5*1e5-1e6,e=5e5*-Math.floor(s/5)-1e5*Math.floor(n/5)+19e5}switch(r.length){case 2:this.osRef=new T.default(t+1e4*r.charAt(0),e+1e4*r.charAt(1)),this.length=1e4;break;case 4:this.osRef=new T.default(t+1e3*Math.floor(r/100),e+r%100*1e3),this.length=1e3;break;case 6:this.osRef=new T.default(t+100*Math.floor(r/1e3),e+r%1e3*100),this.length=100;break;case 8:this.osRef=new T.default(t+10*Math.floor(r/1e4),e+r%1e4*10),this.length=10;break;case 10:this.osRef=new T.default(t+Math.floor(r/1e5),e+r%1e5),this.length=1;break;default:Logger("Bad grid ref length, ref="+S),this.osRef=null,this.length=0}},n.prototype.parse_wellformed_gb_gr_string_no_tetrads=function(S){var N,t,e,r,s;switch(N=a.default.letterMapping[S.charAt(0)],t=a.default.letterMapping[S.charAt(1)],e=S.substr(2),r=N%5*5e5+t%5*1e5-1e6,s=5e5*-Math.floor(N/5)-1e5*Math.floor(t/5)+19e5,e.length){case 2:this.osRef=new T.default(r+1e4*e.charAt(0),s+1e4*e.charAt(1)),this.length=1e4,this.hectad=S;break;case 4:this.osRef=new T.default(r+1e3*Math.floor(e/100),s+e%100*1e3),this.length=1e3,this.hectad=S.substr(0,3)+S.substr(4,1);break;case 6:this.osRef=new T.default(r+100*Math.floor(e/1e3),s+e%1e3*100),this.length=100,this.hectad=S.substr(0,3)+S.substr(5,1);break;case 8:this.osRef=new T.default(r+10*Math.floor(e/1e4),s+e%1e4*10),this.length=10,this.hectad=S.substr(0,3)+S.substr(6,1);break;case 10:this.osRef=new T.default(r+Math.floor(e/1e5),s+e%1e5),this.length=1,this.hectad=S.substr(0,3)+S.substr(7,1);break;default:throw this.osRef=null,new Error("Bad grid ref length when parsing supposedly well-formed ref, ref='"+S+"'")}},N.default=n},function(S,N,t){"use strict";function e(S){return S&&S.__esModule?S:{default:S}}Object.defineProperty(N,"__esModule",{value:!0});var r=t(2),a=e(r),s=t(13),T=e(s),n=function(){};n.prototype=new a.default,n.prototype.constructor=n,n.prototype.country="IE",n.prototype.NationalRef=T.default,n.gridLetter={A:[0,4],B:[1,4],C:[2,4],D:[3,4],F:[0,3],G:[1,3],H:[2,3],J:[3,3],L:[0,2],M:[1,2],N:[2,2],O:[3,2],Q:[0,1],R:[1,1],S:[2,1],T:[3,1],V:[0,0],W:[1,0],X:[2,0],Y:[3,0]},n.prototype.parse=function(S){var N=S.replace(/[\[\]\s\t\.-]+/g,"").toUpperCase();/[ABCDEFGHIJKLMNPQRSTUVWXYZ]$/.test(N)&&(a.default.quadrantOffsets.hasOwnProperty(N.substr(N.length-2))?(this.quadrantCode=N.substr(N.length-2),N=N.substr(0,N.length-2)):(this.tetradLetter=N.substr(N.length-1),N=N.substr(0,N.length-1))),this.parse_gr_string_without_tetrads(N),this.length>0?this.tetradLetter||this.quadrantCode?this.tetradLetter?(this.preciseGridRef=this.hectad+this.tetradLetter,this.tetrad=this.preciseGridRef,this.length=2e3,this.osRef.x+=a.default.tetradOffsets[this.tetradLetter][0],this.osRef.y+=a.default.tetradOffsets[this.tetradLetter][1]):(this.preciseGridRef=this.hectad+this.quadrantCode,this.quadrant=this.preciseGridRef,this.length=5e3,this.osRef.x+=a.default.quadrantOffsets[this.quadrantCode][0],this.osRef.y+=a.default.quadrantOffsets[this.quadrantCode][1]):(this.preciseGridRef=N,this.length<=1e3&&this.set_tetrad()):(this.error=!0,this.errorMessage="Irish grid reference format not understood. ('"+S+"')")},n.prototype.parse_well_formed=n.prototype.parse,n._IE_GRID_LETTERS="VQLFAWRMGBXSNHCYTOJD",n.prototype.parse_gr_string_without_tetrads=function(S){var N,t,e,r;if(/^\d{2}\/(?:\d\d){1,5}$/.test(S)){if(N=parseInt(S.charAt(0),10),t=parseInt(S.charAt(1),10),N>3||t>4)return Logger("bad grid square, ref='"+S+"' (Ireland)"),this.length=0,!1;e=S.substr(3),r=n._IE_GRID_LETTERS.charAt(5*N+t),N*=1e5,t*=1e5}else{if(S=S.replace("/",""),!/^[ABCDFGHJLMNOQRSTVWXY](?:\d\d){1,5}$/.test(S))return this.length=0,this.osRef=null,!1;if(!S)return Logger("Bad (empty) Irish grid ref"),this.length=0,this.osRef=null,!1;r=S.charAt(0);var a=n._IE_GRID_LETTERS.indexOf(r);if(a===-1)return Logger("Bad grid ref grid-letter, ref='"+S+"' (Ireland)"),this.length=0,this.osRef=null,!1;N=1e5*Math.floor(a/5),t=a%5*1e5,e=S.substr(1)}switch(e.length){case 2:this.osRef=new T.default(N+1e4*e.charAt(0),t+1e4*e.charAt(1)),this.length=1e4,this.hectad=r+e;break;case 4:this.osRef=new T.default(N+1e3*Math.floor(e/100),t+e%100*1e3),this.length=1e3,this.hectad=r+e.charAt(0)+e.charAt(2);break;case 6:this.osRef=new T.default(N+100*Math.floor(e/1e3),t+e%1e3*100),this.length=100,this.hectad=r+e.charAt(0)+e.charAt(3);break;case 8:this.osRef=new T.default(N+10*Math.floor(e/1e4),t+e%1e4*10),this.length=10,this.hectad=r+e.charAt(0)+e.charAt(4);break;case 10:this.osRef=new T.default(N+Math.floor(e/1e5),t+e%1e5),this.length=1,this.hectad=r+e.charAt(0)+e.charAt(5);break;default:return Logger("Bad grid ref length, ref='"+S+"' (Ireland)"),this.length=0,this.osRef=null,!1}return!0},N.default=n},function(S,N){"use strict";"asinh"in Math||(Math.asinh=function(S){return Math.log(S+Math.sqrt(S*S+1))}),"trunc"in Math||(Math.trunc=function(S){return S<0?Math.ceil(S):Math.floor(S)}),"log10"in Math||(Math.log10=function(S){return Math.log(S)*Math.LOG10E})}]));