@pillowfication/eorzea-weather
Version:
Weather forecast for Eorzea.
2 lines (1 loc) • 19.6 kB
JavaScript
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a((e=e||self).EorzeaWeather={})}(this,function(e){"use strict";var a="blizzards",n="clearSkies",r="clouds",o="dustStorms",s="fairSkies",t="fog",c="gales",E="gloom",w="heatWaves",h="rain",_="showers",N="snow",A="thunder",i="thunderstorms",l="umbralStatic",O="umbralWind",u="wind",S=Object.freeze({__proto__:null,WEATHER_BLIZZARDS:a,WEATHER_CLEAR_SKIES:n,WEATHER_CLOUDS:r,WEATHER_DUST_STORMS:o,WEATHER_FAIR_SKIES:s,WEATHER_FOG:t,WEATHER_GALES:c,WEATHER_GLOOM:E,WEATHER_HEAT_WAVES:w,WEATHER_RAIN:h,WEATHER_SHOWERS:_,WEATHER_SNOW:N,WEATHER_THUNDER:A,WEATHER_THUNDERSTORMS:i,WEATHER_UMBRAL_STATIC:l,WEATHER_UMBRAL_WIND:O,WEATHER_WIND:u}),R="eureka",T="gyrAbania",d="ishgardAndSurroundingAreas",H="laNoscea",L="norvrandt",z="others",g="thanalan",Z="theBlackShroud",D="theFarEast",I=Object.freeze({__proto__:null,REGION_EUREKA:R,REGION_GYR_ABANIA:T,REGION_ISHGARD_AND_SURROUNDING_AREAS:d,REGION_LA_NOSCEA:H,REGION_NORVRANDT:L,REGION_OTHERS:z,REGION_THANALAN:g,REGION_THE_BLACK_SHROUD:Z,REGION_THE_FAR_EAST:D}),m="amhAraeng",f="azysLla",W="centralShroud",k="centralThanalan",y="coerthasCentralHighlands",v="coerthasWesternHighlands",G="eastShroud",C="easternLaNoscea",U="easternThanalan",p="eulmore",M="eurekaAnemos",b="eurekaHydatos",P="eurekaPagos",F="eurekaPyros",B="gridania",K="idyllshire",j="ilMheg",Y="ishgard",V="kholusia",x="kugane",X="lakeland",J="limsaLominsa",$="lowerLaNoscea",q="middleLaNoscea",Q="mist",ee="morDhona",ae="northShroud",ne="northernThanalan",re="outerLaNoscea",oe="rhalgrsReach",se="shirogane",te="southShroud",ce="southernThanalan",Ee="theAzimSteppe",we="theBozjanSouthernFront",he="theChurningMists",_e="theCrystarium",Ne="theDiadem",Ae="theDravanianForelands",ie="theDravanianHinterlands",le="theFringes",Oe="theGoblet",ue="theLavenderBeds",Se="theLochs",Re="thePeaks",Te="theRaktikaGreatwood",de="theRubySea",He="theSeaOfClouds",Le="theTempest",ze="uldah",ge="upperLaNoscea",Ze="westernLaNoscea",De="westernThanalan",Ie="wolvesDenPier",me="yanxia",fe=Object.freeze({__proto__:null,ZONE_AMH_ARAENG:m,ZONE_AZYS_LLA:f,ZONE_CENTRAL_SHROUD:W,ZONE_CENTRAL_THANALAN:k,ZONE_COERTHAS_CENTRAL_HIGHLANDS:y,ZONE_COERTHAS_WESTERN_HIGHLANDS:v,ZONE_EAST_SHROUD:G,ZONE_EASTERN_LA_NOSCEA:C,ZONE_EASTERN_THANALAN:U,ZONE_EULMORE:p,ZONE_EUREKA_ANEMOS:M,ZONE_EUREKA_HYDATOS:b,ZONE_EUREKA_PAGOS:P,ZONE_EUREKA_PYROS:F,ZONE_GRIDANIA:B,ZONE_IDYLLSHIRE:K,ZONE_IL_MHEG:j,ZONE_ISHGARD:Y,ZONE_KHOLUSIA:V,ZONE_KUGANE:x,ZONE_LAKELAND:X,ZONE_LIMSA_LOMINSA:J,ZONE_LOWER_LA_NOSCEA:$,ZONE_MIDDLE_LA_NOSCEA:q,ZONE_MIST:Q,ZONE_MOR_DHONA:ee,ZONE_NORTH_SHROUD:ae,ZONE_NORTHERN_THANALAN:ne,ZONE_OUTER_LA_NOSCEA:re,ZONE_RHALGRS_REACH:oe,ZONE_SHIROGANE:se,ZONE_SOUTH_SHROUD:te,ZONE_SOUTHERN_THANALAN:ce,ZONE_THE_AZIM_STEPPE:Ee,ZONE_THE_BOZJAN_SOUTHERN_FRONT:we,ZONE_THE_CHURNING_MISTS:he,ZONE_THE_CRYSTARIUM:_e,ZONE_THE_DIADEM:Ne,ZONE_THE_DRAVANIAN_FORELANDS:Ae,ZONE_THE_DRAVANIAN_HINTERLANDS:ie,ZONE_THE_FRINGES:le,ZONE_THE_GOBLET:Oe,ZONE_THE_LAVENDER_BEDS:ue,ZONE_THE_LOCHS:Se,ZONE_THE_PEAKS:Re,ZONE_THE_RAKTIKA_GREATWOOD:Te,ZONE_THE_RUBY_SEA:de,ZONE_THE_SEA_OF_CLOUDS:He,ZONE_THE_TEMPEST:Le,ZONE_ULDAH:ze,ZONE_UPPER_LA_NOSCEA:ge,ZONE_WESTERN_LA_NOSCEA:Ze,ZONE_WESTERN_THANALAN:De,ZONE_WOLVES_DEN_PIER:Ie,ZONE_YANXIA:me});function We(e,a){for(var n=0;n<a.length;n++){var r=a[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ke(e,a){(null==a||a>e.length)&&(a=e.length);for(var n=0,r=new Array(a);n<a;n++)r[n]=e[n];return r}function ye(e,a){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,a){if(e){if("string"==typeof e)return ke(e,a);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ke(e,a):void 0}}(e))||a&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,t=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return t=e.done,e},e:function(e){c=!0,s=e},f:function(){try{t||null==n.return||n.return()}finally{if(c)throw s}}}}function ve(e){var a=Math.floor(e/1e3),n=a/175,r=100*(a/4200<<32>>>0)+(8+n-n%8)%24,o=(r<<11^r)>>>0;return((o>>>8^o)>>>0)%100}var Ge=[{c:45,w:s},{c:60,w:r},{c:70,w:o},{c:80,w:w},{c:100,w:n}],Ce=[{c:35,w:s},{c:70,w:r},{c:100,w:A}],Ue=[{c:5,w:A},{c:20,w:h},{c:30,w:t},{c:40,w:r},{c:55,w:s},{c:85,w:n},{c:100,w:s}],pe=[{c:15,w:o},{c:55,w:n},{c:75,w:s},{c:85,w:r},{c:95,w:t},{c:100,w:h}],Me=[{c:20,w:a},{c:60,w:N},{c:70,w:s},{c:75,w:n},{c:90,w:r},{c:100,w:t}],be=[{c:20,w:a},{c:60,w:N},{c:70,w:s},{c:75,w:n},{c:90,w:r},{c:100,w:t}],Pe=[{c:5,w:A},{c:20,w:h},{c:30,w:t},{c:40,w:r},{c:55,w:s},{c:85,w:n},{c:100,w:s}],Fe=[{c:5,w:t},{c:50,w:n},{c:80,w:s},{c:90,w:r},{c:95,w:h},{c:100,w:_}],Be=[{c:40,w:n},{c:60,w:s},{c:70,w:r},{c:80,w:t},{c:85,w:h},{c:100,w:_}],Ke=[{c:10,w:c},{c:20,w:h},{c:30,w:t},{c:45,w:r},{c:85,w:s},{c:100,w:n}],je=[{c:30,w:s},{c:60,w:c},{c:90,w:_},{c:100,w:N}],Ye=[{c:12,w:s},{c:34,w:_},{c:56,w:E},{c:78,w:i},{c:100,w:N}],Ve=[{c:10,w:s},{c:28,w:t},{c:46,w:w},{c:64,w:N},{c:82,w:A},{c:100,w:a}],xe=[{c:10,w:s},{c:28,w:w},{c:46,w:A},{c:64,w:a},{c:82,w:O},{c:100,w:N}],Xe=[{c:5,w:h},{c:20,w:h},{c:30,w:t},{c:40,w:r},{c:55,w:s},{c:85,w:n},{c:100,w:s}],Je=[{c:10,w:r},{c:20,w:t},{c:30,w:h},{c:40,w:_},{c:70,w:n},{c:100,w:s}],$e=[{c:10,w:h},{c:20,w:t},{c:35,w:r},{c:45,w:i},{c:60,w:n},{c:100,w:s}],qe=[{c:60,w:N},{c:70,w:s},{c:75,w:n},{c:90,w:r},{c:100,w:t}],Qe=[{c:10,w:c},{c:20,w:h},{c:30,w:t},{c:45,w:r},{c:85,w:s},{c:100,w:n}],ea=[{c:10,w:h},{c:20,w:t},{c:40,w:r},{c:80,w:s},{c:100,w:n}],aa=[{c:20,w:n},{c:60,w:s},{c:75,w:r},{c:85,w:t},{c:95,w:h},{c:100,w:i}],na=[{c:20,w:r},{c:50,w:n},{c:80,w:s},{c:90,w:t},{c:100,w:h}],ra=[{c:20,w:r},{c:50,w:n},{c:70,w:s},{c:80,w:u},{c:90,w:t},{c:100,w:h}],oa=[{c:20,w:r},{c:50,w:n},{c:70,w:s},{c:80,w:u},{c:90,w:t},{c:100,w:h}],sa=[{c:20,w:r},{c:50,w:n},{c:70,w:s},{c:80,w:s},{c:90,w:t},{c:100,w:h}],ta=[{c:15,w:r},{c:30,w:t},{c:60,w:E},{c:75,w:n},{c:100,w:s}],ca=[{c:5,w:t},{c:10,w:_},{c:25,w:h},{c:30,w:t},{c:40,w:r},{c:70,w:s},{c:100,w:n}],Ea=[{c:5,w:n},{c:20,w:s},{c:50,w:r},{c:100,w:t}],wa=[{c:30,w:n},{c:50,w:s},{c:70,w:r},{c:85,w:t},{c:100,w:h}],ha=[{c:15,w:n},{c:60,w:s},{c:80,w:r},{c:90,w:t},{c:100,w:A}],_a=[{c:10,w:h},{c:20,w:t},{c:40,w:r},{c:80,w:s},{c:100,w:n}],Na=[{c:5,w:t},{c:10,w:i},{c:25,w:A},{c:30,w:t},{c:40,w:r},{c:70,w:s},{c:100,w:n}],Aa=[{c:20,w:w},{c:60,w:n},{c:80,w:s},{c:90,w:r},{c:100,w:t}],ia=[{c:5,w:c},{c:10,w:u},{c:17,w:h},{c:25,w:t},{c:35,w:r},{c:75,w:s},{c:100,w:n}],la=[{c:53,w:s},{c:65,w:h},{c:77,w:u},{c:89,w:A},{c:100,w:o}],Oa=[{c:10,w:r},{c:20,w:c},{c:40,w:l},{c:70,w:n},{c:100,w:s}],ua=[{c:20,w:n},{c:60,w:s},{c:75,w:r},{c:85,w:t},{c:95,w:h},{c:100,w:i}],Sa=[{c:30,w:s},{c:60,w:t},{c:90,w:u},{c:100,w:O}],Ra=[{c:10,w:r},{c:20,w:t},{c:30,w:A},{c:40,w:o},{c:70,w:n},{c:100,w:s}],Ta=[{c:10,w:r},{c:20,w:t},{c:30,w:h},{c:40,w:_},{c:70,w:n},{c:100,w:s}],da=[{c:15,w:n},{c:60,w:s},{c:80,w:r},{c:90,w:t},{c:100,w:A}],Ha=[{c:40,w:n},{c:60,w:s},{c:85,w:r},{c:95,w:t},{c:100,w:h}],La=[{c:5,w:r},{c:20,w:h},{c:30,w:t},{c:40,w:r},{c:55,w:s},{c:85,w:n},{c:100,w:s}],za=[{c:20,w:n},{c:60,w:s},{c:80,w:r},{c:90,w:t},{c:100,w:i}],ga=[{c:10,w:n},{c:60,w:s},{c:75,w:r},{c:85,w:t},{c:95,w:u},{c:100,w:o}],Za=[{c:10,w:t},{c:20,w:h},{c:30,w:O},{c:45,w:n},{c:85,w:s},{c:100,w:r}],Da=[{c:10,w:A},{c:20,w:u},{c:35,w:r},{c:75,w:s},{c:100,w:n}],Ia=[{c:30,w:n},{c:60,w:s},{c:70,w:r},{c:80,w:t},{c:90,w:u},{c:100,w:O}],ma=[{c:20,w:r},{c:80,w:s},{c:100,w:n}],fa=[{c:40,w:n},{c:60,w:s},{c:85,w:r},{c:95,w:t},{c:100,w:h}],Wa=[{c:30,w:n},{c:50,w:s},{c:70,w:r},{c:80,w:t},{c:90,w:A},{c:100,w:i}],ka=[{c:10,w:t},{c:40,w:n},{c:60,w:s},{c:80,w:r},{c:90,w:u},{c:100,w:c}],ya=[{c:40,w:n},{c:60,w:s},{c:85,w:r},{c:95,w:t},{c:100,w:h}],va=[{c:20,w:r},{c:50,w:n},{c:80,w:s},{c:90,w:t},{c:100,w:i}],Ga=[{c:5,w:_},{c:15,w:h},{c:25,w:t},{c:40,w:r},{c:80,w:s},{c:100,w:n}],Ca=Object.freeze({__proto__:null,amhAraeng:Ge,azysLla:Ce,centralShroud:Ue,centralThanalan:pe,coerthasCentralHighlands:Me,coerthasWesternHighlands:be,eastShroud:Pe,easternLaNoscea:Fe,easternThanalan:Be,eulmore:Ke,eurekaAnemos:je,eurekaHydatos:Ye,eurekaPagos:Ve,eurekaPyros:xe,gridania:Xe,idyllshire:Je,ilMheg:$e,ishgard:qe,kholusia:Qe,kugane:ea,lakeland:aa,limsaLominsa:na,lowerLaNoscea:ra,middleLaNoscea:oa,mist:sa,morDhona:ta,northShroud:ca,northernThanalan:Ea,outerLaNoscea:wa,rhalgrsReach:ha,shirogane:_a,southShroud:Na,southernThanalan:Aa,theAzimSteppe:ia,theBozjanSouthernFront:la,theChurningMists:Oa,theCrystarium:ua,theDiadem:Sa,theDravanianForelands:Ra,theDravanianHinterlands:Ta,theFringes:da,theGoblet:Ha,theLavenderBeds:La,theLochs:za,thePeaks:ga,theRaktikaGreatwood:Za,theRubySea:Da,theSeaOfClouds:Ia,theTempest:ma,uldah:fa,upperLaNoscea:Wa,westernLaNoscea:ka,westernThanalan:ya,wolvesDenPier:va,yanxia:Ga}),Ua=Object.freeze({__proto__:null,en:{"weathers.blizzards":"Blizzards","weathers.clearSkies":"Clear Skies","weathers.clouds":"Clouds","weathers.dustStorms":"Dust Storms","weathers.fairSkies":"Fair Skies","weathers.fog":"Fog","weathers.gales":"Gales","weathers.gloom":"Gloom","weathers.heatWaves":"Heat Waves","weathers.rain":"Rain","weathers.showers":"Showers","weathers.snow":"Snow","weathers.thunder":"Thunder","weathers.thunderstorms":"Thunderstorms","weathers.umbralStatic":"Umbral Static","weathers.umbralWind":"Umbral Wind","weathers.wind":"Wind","regions.eureka":"Eureka","regions.gyrAbania":"Gyr Abania","regions.ishgardAndSurroundingAreas":"Ishgard and Surrounding Areas","regions.laNoscea":"La Noscea","regions.norvrandt":"Norvrandt","regions.others":"Others","regions.thanalan":"Thanalan","regions.theBlackShroud":"The Black Shroud","regions.theFarEast":"The Far East","zones.amhAraeng":"Amh Araeng","zones.azysLla":"Azys Lla","zones.centralShroud":"Central Shroud","zones.centralThanalan":"Central Thanalan","zones.coerthasCentralHighlands":"Coerthas Central Highlands","zones.coerthasWesternHighlands":"Coerthas Western Highlands","zones.eastShroud":"East Shroud","zones.easternLaNoscea":"Eastern La Noscea","zones.easternThanalan":"Eastern Thanalan","zones.eulmore":"Eulmore","zones.eurekaAnemos":"Eureka Anemos","zones.eurekaHydatos":"Eureka Hydatos","zones.eurekaPagos":"Eureka Pagos","zones.eurekaPyros":"Eureka Pyros","zones.gridania":"Gridania","zones.idyllshire":"Idyllshire","zones.ilMheg":"Il Mheg","zones.ishgard":"Ishgard","zones.kholusia":"Kholusia","zones.kugane":"Kugane","zones.lakeland":"Lakeland","zones.limsaLominsa":"Limsa Lominsa","zones.lowerLaNoscea":"Lower La Noscea","zones.middleLaNoscea":"Middle La Noscea","zones.mist":"Mist","zones.morDhona":"Mor Dhona","zones.northShroud":"North Shroud","zones.northernThanalan":"Northern Thanalan","zones.outerLaNoscea":"Outer La Noscea","zones.rhalgrsReach":"Rhalgr's Reach","zones.shirogane":"Shirogane","zones.southShroud":"South Shroud","zones.southernThanalan":"Southern Thanalan","zones.theAzimSteppe":"The Azim Steppe","zones.theBozjanSouthernFront":"The Bozjan Southern Front","zones.theChurningMists":"The Churning Mists","zones.theCrystarium":"The Crystarium","zones.theDiadem":"The Diadem","zones.theDravanianForelands":"The Dravanian Forelands","zones.theDravanianHinterlands":"The Dravanian Hinterlands","zones.theFringes":"The Fringes","zones.theGoblet":"The Goblet","zones.theLavenderBeds":"The Lavender Beds","zones.theLochs":"The Lochs","zones.thePeaks":"The Peaks","zones.theRaktikaGreatwood":"The Rak'tika Greatwood","zones.theRubySea":"The Ruby Sea","zones.theSeaOfClouds":"The Sea of Clouds","zones.theTempest":"The Tempest","zones.uldah":"Ul'dah","zones.upperLaNoscea":"Upper La Noscea","zones.westernLaNoscea":"Western La Noscea","zones.westernThanalan":"Western Thanalan","zones.wolvesDenPier":"Wolves' Den Pier","zones.yanxia":"Yanxia"},ja:{"weathers.blizzards":"吹雪","weathers.clearSkies":"快晴","weathers.clouds":"曇り","weathers.dustStorms":"砂塵","weathers.fairSkies":"晴れ","weathers.fog":"霧","weathers.gales":"暴風","weathers.gloom":"妖霧","weathers.heatWaves":"灼熱波","weathers.rain":"雨","weathers.showers":"暴雨","weathers.snow":"雪","weathers.thunder":"雷","weathers.thunderstorms":"雷雨","weathers.umbralStatic":"放電","weathers.umbralWind":"霊風","weathers.wind":"風","regions.eureka":"Eureka","regions.gyrAbania":"Gyr Abania","regions.ishgardAndSurroundingAreas":"Ishgard and Surrounding Areas","regions.laNoscea":"La Noscea","regions.norvrandt":"Norvrandt","regions.others":"Others","regions.thanalan":"Thanalan","regions.theBlackShroud":"The Black Shroud","regions.theFarEast":"The Far East","zones.amhAraeng":"アム・アレーン","zones.azysLla":"アジス・ラー","zones.centralShroud":"黒衣森:中央森林","zones.centralThanalan":"中央ザナラーン","zones.coerthasCentralHighlands":"クルザス中央高地","zones.coerthasWesternHighlands":"クルザス西部高地","zones.eastShroud":"黒衣森:東部森林","zones.easternLaNoscea":"東ラノシア","zones.easternThanalan":"東ザナラーン","zones.eulmore":"ユールモア","zones.eurekaAnemos":"エウレカ:アネモス帯","zones.eurekaHydatos":"エウレカ:ヒュダトス帯","zones.eurekaPagos":"エウレカ:パゴス帯","zones.eurekaPyros":"エウレカ:ピューロス帯","zones.gridania":"グリダニア","zones.idyllshire":"イデルシャイア","zones.ilMheg":"妖精郷イル・メグ","zones.ishgard":"イシュガルド","zones.kholusia":"コルシア島","zones.kugane":"クガネ","zones.lakeland":"レイクランド","zones.limsaLominsa":"リムサ・ロミンサ","zones.lowerLaNoscea":"低地ラノシア","zones.middleLaNoscea":"中央ラノシア","zones.mist":"ミスト・ヴィレッジ","zones.morDhona":"モードゥナ","zones.northernThanalan":"北ザナラーン","zones.northShroud":"黒衣森:北部森林","zones.outerLaNoscea":"外地ラノシア","zones.rhalgrsReach":"ラールガーズリーチ","zones.shirogane":"シロガネ","zones.southShroud":"黒衣森:南部森林","zones.southernThanalan":"南ザナラーン","zones.theAzimSteppe":"アジムステップ","zones.theBozjanSouthernFront":"The Bozjan Southern Front","zones.theChurningMists":"ドラヴァニア雲海","zones.theCrystarium":"クリスタリウム","zones.theDiadem":"ディアデム諸島","zones.theDravanianForelands":"高地ドラヴァニア","zones.theDravanianHinterlands":"低地ドラヴァニア","zones.theFringes":"ギラバニア辺境地帯","zones.theGoblet":"ゴブレットビュート","zones.theLavenderBeds":"ラベンダーベッド","zones.theLochs":"ギラバニア湖畔地帯","zones.thePeaks":"ギラバニア山岳地帯","zones.theRaktikaGreatwood":"ラケティカ大森林","zones.theRubySea":"紅玉海","zones.theSeaOfClouds":"アバラシア雲海","zones.theTempest":"テンペスト","zones.uldah":"ウルダハ","zones.upperLaNoscea":"高地ラノシア","zones.westernLaNoscea":"西ラノシア","zones.westernThanalan":"西ザナラーン","zones.wolvesDenPier":"ウルヴズジェイル係船場","zones.yanxia":"ヤンサ"}}),pa="en";function Ma(e){return e.replace(/[A-Z]/g,function(e){return"_".concat(e)}).toUpperCase()}var ba=function(){function o(){var e=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).locale,a=void 0===e?pa:e;!function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this,o),this.locale=a}var e,a,n;return e=o,n=[{key:"validateRegion",value:function(e){if(!e||!I["REGION_".concat(Ma(e))])throw new TypeError("'".concat(e,"' is undefined region ID."))}},{key:"validateZone",value:function(e){if(!e||!fe["ZONE_".concat(Ma(e))])throw new TypeError("'".concat(e,"' is undefined zone ID."))}},{key:"translateWeather",value:function(e,a){return Ua[a]["weathers.".concat(e)]}},{key:"translateRegion",value:function(e,a){return Ua[a]["regions.".concat(e)]}},{key:"translateZone",value:function(e,a){return Ua[a]["zones.".concat(e)]}}],(a=[{key:"getWeather",value:function(e,a){var n=1<arguments.length&&void 0!==a?a:Date.now();o.validateZone(e);var r=this._getWeather(e,n);return this.translateWeather(r)}},{key:"_getWeather",value:function(e,a){var n,r=1<arguments.length&&void 0!==a?a:Date.now(),o=ve(r),s=ye(Ca[e]);try{for(s.s();!(n=s.n()).done;){var t=n.value,c=t.c,E=t.w;if(o<c)return E}}catch(e){s.e(e)}finally{s.f()}}},{key:"getWeatherChance",value:function(e){var a=0<arguments.length&&void 0!==e?e:Date.now();return ve(a)}},{key:"translateWeather",value:function(e){return Ua[this.locale]["weathers.".concat(e)]}},{key:"translateRegion",value:function(e){return Ua[this.locale]["regions.".concat(e)]}},{key:"translateZone",value:function(e){return Ua[this.locale]["zones.".concat(e)]}}])&&We(e.prototype,a),n&&We(e,n),o}(),Pa=[M,P,F,b],Fa=[oe,le,Re,Se],Ba=[Y,y,v,He,f,K,Ae,ie,he],Ka=[J,q,$,C,Ze,ge,re,Ie],ja=[_e,p,X,V,m,j,Te,Le],Ya=[ee,Q,ue,Oe,se,Ne,we],Va=[ze,De,k,U,ce,ne],xa=[B,W,G,te,ae],Xa=[x,de,me,Ee],Ja=Object.freeze({__proto__:null,eureka:Pa,gyrAbania:Fa,ishgardAndSurroundingAreas:Ba,laNoscea:Ka,norvrandt:ja,others:Ya,thanalan:Va,theBlackShroud:xa,theFarEast:Xa});ba.WEATHER_BLIZZARDS=a,ba.WEATHER_CLEAR_SKIES=n,ba.WEATHER_CLOUDS=r,ba.WEATHER_DUST_STORMS=o,ba.WEATHER_FAIR_SKIES=s,ba.WEATHER_FOG=t,ba.WEATHER_GALES=c,ba.WEATHER_GLOOM=E,ba.WEATHER_HEAT_WAVES=w,ba.WEATHER_RAIN=h,ba.WEATHER_SHOWERS=_,ba.WEATHER_SNOW=N,ba.WEATHER_THUNDER=A,ba.WEATHER_THUNDERSTORMS=i,ba.WEATHER_UMBRAL_STATIC=l,ba.WEATHER_UMBRAL_WIND=O,ba.WEATHER_WIND=u,ba.REGION_EUREKA=R,ba.REGION_GYR_ABANIA=T,ba.REGION_ISHGARD_AND_SURROUNDING_AREAS=d,ba.REGION_LA_NOSCEA=H,ba.REGION_NORVRANDT=L,ba.REGION_OTHERS=z,ba.REGION_THANALAN=g,ba.REGION_THE_BLACK_SHROUD=Z,ba.REGION_THE_FAR_EAST=D,ba.ZONE_AMH_ARAENG=m,ba.ZONE_AZYS_LLA=f,ba.ZONE_CENTRAL_SHROUD=W,ba.ZONE_CENTRAL_THANALAN=k,ba.ZONE_COERTHAS_CENTRAL_HIGHLANDS=y,ba.ZONE_COERTHAS_WESTERN_HIGHLANDS=v,ba.ZONE_EAST_SHROUD=G,ba.ZONE_EASTERN_LA_NOSCEA=C,ba.ZONE_EASTERN_THANALAN=U,ba.ZONE_EULMORE=p,ba.ZONE_EUREKA_ANEMOS=M,ba.ZONE_EUREKA_HYDATOS=b,ba.ZONE_EUREKA_PAGOS=P,ba.ZONE_EUREKA_PYROS=F,ba.ZONE_GRIDANIA=B,ba.ZONE_IDYLLSHIRE=K,ba.ZONE_IL_MHEG=j,ba.ZONE_ISHGARD=Y,ba.ZONE_KHOLUSIA=V,ba.ZONE_KUGANE=x,ba.ZONE_LAKELAND=X,ba.ZONE_LIMSA_LOMINSA=J,ba.ZONE_LOWER_LA_NOSCEA=$,ba.ZONE_MIDDLE_LA_NOSCEA=q,ba.ZONE_MIST=Q,ba.ZONE_MOR_DHONA=ee,ba.ZONE_NORTH_SHROUD=ae,ba.ZONE_NORTHERN_THANALAN=ne,ba.ZONE_OUTER_LA_NOSCEA=re,ba.ZONE_RHALGRS_REACH=oe,ba.ZONE_SHIROGANE=se,ba.ZONE_SOUTH_SHROUD=te,ba.ZONE_SOUTHERN_THANALAN=ce,ba.ZONE_THE_AZIM_STEPPE=Ee,ba.ZONE_THE_CHURNING_MISTS=he,ba.ZONE_THE_CRYSTARIUM=_e,ba.ZONE_THE_DIADEM=Ne,ba.ZONE_THE_DRAVANIAN_FORELANDS=Ae,ba.ZONE_THE_DRAVANIAN_HINTERLANDS=ie,ba.ZONE_THE_FRINGES=le,ba.ZONE_THE_GOBLET=Oe,ba.ZONE_THE_LAVENDER_BEDS=ue,ba.ZONE_THE_LOCHS=Se,ba.ZONE_THE_PEAKS=Re,ba.ZONE_THE_RAKTIKA_GREATWOOD=Te,ba.ZONE_THE_RUBY_SEA=de,ba.ZONE_THE_SEA_OF_CLOUDS=He,ba.ZONE_THE_TEMPEST=Le,ba.ZONE_ULDAH=ze,ba.ZONE_UPPER_LA_NOSCEA=ge,ba.ZONE_WESTERN_LA_NOSCEA=Ze,ba.ZONE_WESTERN_THANALAN=De,ba.ZONE_WOLVES_DEN_PIER=Ie,ba.ZONE_YANXIA=me,e.REGIONS=I,e.WEATHERS=S,e.ZONES=fe,e.chances=Ca,e.default=ba,e.regions=Ja,Object.defineProperty(e,"__esModule",{value:!0})});