maplestory-openapi
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("axios"),require("dayjs"),require("xml2js")):"function"==typeof define&&define.amd?define(["exports","axios","dayjs","xml2js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["maplestory-openapi"]={},t.axios,t.dayjs,t.xml2js)}(this,(function(t,e,a,i){"use strict";function s(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=s(e),o=s(a),n=s(i),c=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,{exports:{}});!function(t,e){var a,i;t.exports=(a={year:0,month:1,day:2,hour:3,minute:4,second:5},i={},function(t,e,s){var r,o=function(t,e,a){void 0===a&&(a={});var s=new Date(t),r=function(t,e){void 0===e&&(e={});var a=e.timeZoneName||"short",s=t+"|"+a,r=i[s];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),i[s]=r),r}(e,a);return r.formatToParts(s)},n=function(t,e){for(var i=o(t,e),r=[],n=0;n<i.length;n+=1){var c=i[n],l=c.type,h=c.value,m=a[l];m>=0&&(r[m]=parseInt(h,10))}var d=r[3],p=24===d?0:d,u=r[0]+"-"+r[1]+"-"+r[2]+" "+p+":"+r[4]+":"+r[5]+":000",_=+t;return(s.utc(u).valueOf()-(_-=_%1e3))/6e4},c=e.prototype;c.tz=function(t,e){void 0===t&&(t=r);var a=this.utcOffset(),i=this.toDate(),o=i.toLocaleString("en-US",{timeZone:t}),n=Math.round((i-new Date(o))/1e3/60),c=s(o,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-n,!0);if(e){var l=c.utcOffset();c=c.add(a-l,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||s.tz.guess(),a=o(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return a&&a.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var a=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(a,t,e).tz(this.$x.$timezone,!0)},s.tz=function(t,e,a){var i=a&&e,o=a||e||r,c=n(+s(),o);if("string"!=typeof t)return s(t).tz(o);var l=function(t,e,a){var i=t-60*e*1e3,s=n(i,a);if(e===s)return[i,e];var r=n(i-=60*(s-e)*1e3,a);return s===r?[i,s]:[t-60*Math.min(s,r)*1e3,Math.max(s,r)]}(s.utc(t,i).valueOf(),c,o),h=l[0],m=l[1],d=s(h).utcOffset(m);return d.$x.$timezone=o,d},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(t){r=t}})}(c);var l=c.exports,h={exports:{}};!function(t,e){var a,i,s;t.exports=(a="minute",i=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g,function(t,e,r){var o=e.prototype;r.utc=function(t){return new e({date:t,utc:!0,args:arguments})},o.utc=function(t){var e=r(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),a):e},o.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var n=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),n.call(this,t)};var c=o.init;o.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(t,e){var r=this.$utils().u;if(r(t))return this.$u?0:r(this.$offset)?l.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(i);if(!e)return null;var a=(""+e[0]).match(s)||["-",0,0],r=a[0],o=60*+a[1]+ +a[2];return 0===o?0:"+"===r?o:-o}(t),null===t))return this;var o=Math.abs(t)<=16?60*t:t,n=this;if(e)return n.$offset=o,n.$u=0===t,n;if(0!==t){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(n=this.local().add(o+c,a)).$offset=o,n.$x.$localOffset=c}else n=this.utc();return n};var h=o.format;o.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,e)},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var m=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var d=o.diff;o.diff=function(t,e,a){if(t&&this.$u===t.$u)return d.call(this,t,e,a);var i=this.local(),s=r(t).local();return d.call(i,s,e,a)}})}(h);var m,d=h.exports;class p{date;ranking;characterName;worldName;className;subClassName;trophyGrade;trophyScore;constructor(t){const{date:e,ranking:a,character_name:i,world_name:s,class_name:r,sub_class_name:o,trophy_grade:n,trophy_score:c}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=s,this.className=r,this.subClassName=o,this.trophyGrade=n,this.trophyScore=c}}class u{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new p(t)))}}class _{abilityNo;abilityGrade;abilityValue;constructor(t){const{ability_no:e,ability_grade:a,ability_value:i}=t;this.abilityNo=e,this.abilityGrade=a,this.abilityValue=i}}class f{date;abilityGrade;abilityInfo;remainFame;constructor(t){const{date:e,ability_grade:a,ability_info:i,remain_fame:s}=t;this.date=new Date(e),this.abilityGrade=a,this.abilityInfo=i.map((t=>new _(t))),this.remainFame=s}}class g{colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:a,saturation:i,value:s}=t;this.colorRange=e,this.hue=a,this.saturation=i,this.value=s}}class w{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class y{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:a,cash_item_name:i,cash_item_icon:s,cash_item_description:r,cash_item_option:o,date_expire:n,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=a,this.cashItemName=i,this.cashItemIcon=s,this.cashItemDescription=r,this.cashItemOption=o.map((t=>new w(t))),this.dateExpire=new Date(n),this.dateOptionExpire=new Date(c),this.cashItemLabel=l,this.cashItemColoringPrism=new g(h)}}class D{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:a,mix_color:i,mix_rate:s}=t;this.faceName=e,this.baseColor=a,this.mixColor=i,this.mixRate=s}}class k{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:a,mix_color:i,mix_rate:s}=t;this.hairName=e,this.baseColor=a,this.mixColor=i,this.mixRate=s}}class b{date;androidName;androidNickname;androidIcon;androidDescription;androidHair;androidFace;androidSkinName;androidCashItemEquipment;androidEarSensorClipFlag;constructor(t){const{date:e,android_name:a,android_nickname:i,android_icon:s,android_description:r,android_hair:o,android_face:n,android_skin_name:c,android_cash_item_equipment:l,android_ear_sensor_clip_flag:h}=t;this.date=new Date(e),this.androidName=a,this.androidNickname=i,this.androidIcon=s,this.androidDescription=r,this.androidHair=new k(o),this.androidFace=new D(n),this.androidSkinName=c,this.androidCashItemEquipment=l.map((t=>new y(t))),this.androidEarSensorClipFlag=h}}class x{date;characterName;worldName;characterGender;characterClass;characterClassLevel;characterLevel;characterExp;characterExpRate;characterGuildName;characterImage;constructor(t){const{date:e,character_name:a,world_name:i,character_gender:s,character_class:r,character_class_level:o,character_level:n,character_exp:c,character_exp_rate:l,character_guild_name:h,character_image:m}=t;this.date=new Date(e),this.characterName=a,this.worldName=i,this.characterGender=s,this.characterClass=r,this.characterClassLevel=o,this.characterLevel=n,this.characterExp=c,this.characterExpRate=l,this.characterGuildName=h,this.characterImage=m}}class E{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:a,mix_color:i,mix_rate:s}=t;this.faceName=e,this.baseColor=a,this.mixColor=i,this.mixRate=s}}class C{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:a,mix_color:i,mix_rate:s}=t;this.hairName=e,this.baseColor=a,this.mixColor=i,this.mixRate=s}}class v{date;characterGender;characterClass;characterHair;characterFace;characterSkinName;additionalCharacterHair;additionalCharacterFace;additionalCharacterSkinName;constructor(t){const{date:e,character_gender:a,character_class:i,character_hair:s,character_face:r,character_skin_name:o,additional_character_hair:n,additional_character_face:c,additional_character_skin_name:l}=t;this.date=new Date(e),this.characterGender=a,this.characterClass=i,this.characterHair=new C(s),this.characterFace=new E(r),this.characterSkinName=o,this.additionalCharacterHair=new C(n),this.additionalCharacterFace=new E(c),this.additionalCharacterSkinName=l}}class S{colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:a,saturation:i,value:s}=t;this.colorRange=e,this.hue=a,this.saturation=i,this.value=s}}class P{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class O{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;basePresetItemDisableFlag;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:a,cash_item_name:i,cash_item_icon:s,cash_item_description:r,cash_item_option:o,date_expire:n,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h,base_preset_item_disable_flag:m}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=a,this.cashItemName=i,this.cashItemIcon=s,this.cashItemDescription=r,this.cashItemOption=o.map((t=>new P(t))),this.dateExpire=n,this.dateOptionExpire=c,this.cashItemLabel=l,this.cashItemColoringPrism=new S(h),this.basePresetItemDisableFlag=m}}class I{date;characterGender;characterClass;presetNo;cashItemEquipmentPreset1;cashItemEquipmentPreset2;cashItemEquipmentPreset3;additionalCashItemEquipmentPreset1;additionalCashItemEquipmentPreset2;additionalCashItemEquipmentPreset3;constructor(t){const{date:e,character_gender:a,character_class:i,preset_no:s,cash_item_equipment_preset_1:r,cash_item_equipment_preset_2:o,cash_item_equipment_preset_3:n,additional_cash_item_equipment_preset_1:c,additional_cash_item_equipment_preset_2:l,additional_cash_item_equipment_preset_3:h}=t;this.date=new Date(e),this.characterGender=a,this.characterClass=i,this.presetNo=s,this.cashItemEquipmentPreset1=r.map((t=>new O(t))),this.cashItemEquipmentPreset2=o.map((t=>new O(t))),this.cashItemEquipmentPreset3=n.map((t=>new O(t))),this.additionalCashItemEquipmentPreset1=c.map((t=>new O(t))),this.additionalCashItemEquipmentPreset2=l.map((t=>new O(t))),this.additionalCashItemEquipmentPreset3=h.map((t=>new O(t)))}}class N{date;characterClass;worldName;dojangBestFloor;dateDojangRecord;dojangBestTime;constructor(t){const{date:e,character_class:a,world_name:i,dojang_best_floor:s,date_dojang_record:r,dojang_best_time:o}=t;this.date=new Date(e),this.characterClass=a,this.worldName=i,this.dojangBestFloor=s,this.dateDojangRecord=new Date(r),this.dojangBestTime=o}}class L{ocid;constructor(t){const{ocid:e}=t;this.ocid=e}}class R{hexaSkillId;constructor(t){const{hexa_skill_id:e}=t;this.hexaSkillId=e}}class A{hexaCoreName;hexaCoreLevel;hexaCoreType;linkedSkill;constructor(t){const{hexa_core_name:e,hexa_core_level:a,hexa_core_type:i,linked_skill:s}=t;this.hexaCoreName=e,this.hexaCoreLevel=a,this.hexaCoreType=i,this.linkedSkill=s.map((t=>new R(t)))}}class q{date;characterHexaCoreEquipment;constructor(t){const{date:e,character_hexa_core_equipment:a}=t;this.date=new Date(e),this.characterHexaCoreEquipment=a.map((t=>new A(t)))}}class U{slotId;mainStatName;subStatName1;subStatName2;mainStatLevel;subStatLevel1;subStatLevel2;statGrade;constructor(t){const{slot_id:e,main_stat_name:a,sub_stat_name_1:i,sub_stat_name_2:s,main_stat_level:r,sub_stat_level_1:o,sub_stat_level_2:n,stat_grade:c}=t;this.slotId=e,this.mainStatName=a,this.subStatName1=i,this.subStatName2=s,this.mainStatLevel=r,this.subStatLevel1=o,this.subStatLevel2=n,this.statGrade=c}}class H{date;characterClass;characterHexaStatCore;presetHexaStatCore;constructor(t){const{date:e,character_class:a,character_hexa_stat_core:i,preset_hexa_stat_core:s}=t;this.date=new Date(e),this.characterClass=a,this.characterHexaStatCore=i.map((t=>new U(t))),this.presetHexaStatCore=s.map((t=>new U(t)))}}class M{statType;statPoint;statLevel;statIncrease;constructor(t){const{stat_type:e,stat_point:a,stat_level:i,stat_increase:s}=t;this.statType=e,this.statPoint=a,this.statLevel=i,this.statIncrease=s}}class T{date;characterClass;usePresetNo;useAvailableHyperStat;hyperStatPreset1;hyperStatPreset1RemainPoint;hyperStatPreset2;hyperStatPreset2RemainPoint;hyperStatPreset3;hyperStatPreset3RemainPoint;constructor(t){const{date:e,character_class:a,use_preset_no:i,use_available_hyper_stat:s,hyper_stat_preset_1:r,hyper_stat_preset_1_remain_point:o,hyper_stat_preset_2:n,hyper_stat_preset_2_remain_point:c,hyper_stat_preset_3:l,hyper_stat_preset_3_remain_point:h}=t;this.date=new Date(e),this.characterClass=a,this.usePresetNo=i,this.useAvailableHyperStat=s,this.hyperStatPreset1=r.map((t=>new M(t))),this.hyperStatPreset1RemainPoint=o,this.hyperStatPreset2=n.map((t=>new M(t))),this.hyperStatPreset2RemainPoint=c,this.hyperStatPreset3=l.map((t=>new M(t))),this.hyperStatPreset3RemainPoint=h}}class G{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;damage;allStat;equipmentLevelDecrease;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c,armor:l,speed:h,jump:m,boss_damage:d,damage:p,all_stat:u,equipment_level_decrease:_}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c,this.armor=l,this.speed=h,this.jump=m,this.bossDamage=d,this.damage=p,this.allStat=u,this.equipmentLevelDecrease=_}}class ${str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;maxHpRate;maxMpRate;baseEquipmentLevel;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c,armor:l,speed:h,jump:m,boss_damage:d,ignore_monster_armor:p,all_stat:u,max_hp_rate:_,max_mp_rate:f,base_equipment_level:g}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c,this.armor=l,this.speed=h,this.jump=m,this.bossDamage=d,this.ignoreMonsterArmor=p,this.allStat=u,this.maxHpRate=_,this.maxMpRate=f,this.baseEquipmentLevel=g}}class B{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c,armor:l,speed:h,jump:m}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c,this.armor=l,this.speed=h,this.jump=m}}class j{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c}}class F{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c,armor:l,speed:h,jump:m}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c,this.armor=l,this.speed=h,this.jump=m}}class Y{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;damage;equipmentLevelDecrease;maxHpRate;maxMpRate;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c,armor:l,speed:h,jump:m,boss_damage:d,ignore_monster_armor:p,all_stat:u,damage:_,equipment_level_decrease:f,max_hp_rate:g,max_mp_rate:w}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c,this.armor=l,this.speed=h,this.jump=m,this.bossDamage=d,this.ignoreMonsterArmor=p,this.allStat=u,this.damage=_,this.equipmentLevelDecrease=f,this.maxHpRate=g,this.maxMpRate=w}}class z{itemEquipmentPart;equipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;gender;itemTotalOption;itemBaseOption;potentialOptionGrade;additionalPotentialOptionGrade;potentialOption1;potentialOption2;potentialOption3;additionalPotentialOption1;additionalPotentialOption2;additionalPotentialOption3;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,equipment_slot:a,item_name:i,item_icon:s,item_description:r,item_shape_name:o,item_shape_icon:n,gender:c,item_total_option:l,item_base_option:h,potential_option_grade:m,additional_potential_option_grade:d,potential_option_1:p,potential_option_2:u,potential_option_3:_,additional_potential_option_1:f,additional_potential_option_2:g,additional_potential_option_3:w,equipment_level_increase:y,item_exceptional_option:D,item_add_option:k,growth_exp:b,growth_level:x,scroll_upgrade:E,cuttable_count:C,golden_hammer_flag:v,scroll_resilience_count:S,scroll_upgradeable_count:P,soul_name:O,soul_option:I,item_etc_option:N,starforce:L,starforce_scroll_flag:R,item_starforce_option:A,special_ring_level:q,date_expire:U}=t;this.itemEquipmentPart=e,this.equipmentSlot=a,this.itemName=i,this.itemIcon=s,this.itemDescription=r,this.itemShapeName=o,this.itemShapeIcon=n,this.gender=c,this.itemTotalOption=new Y(l),this.itemBaseOption=new $(h),this.potentialOptionGrade=m,this.additionalPotentialOptionGrade=d,this.potentialOption1=p,this.potentialOption2=u,this.potentialOption3=_,this.additionalPotentialOption1=f,this.additionalPotentialOption2=g,this.additionalPotentialOption3=w,this.equipmentLevelIncrease=y,this.itemExceptionalOption=new j(D),this.itemAddOption=new G(k),this.growthExp=b,this.growthLevel=x,this.scrollUpgrade=E,this.cuttableCount=C,this.goldenHammerFlag=v,this.scrollResilienceCount=S,this.scrollUpgradeableCount=P,this.soulName=O,this.soulOption=I,this.itemEtcOption=new B(N),this.starforce=L,this.starforceScrollFlag=R,this.itemStarforceOption=new F(A),this.specialRingLevel=q,this.dateExpire=new Date(U)}}class V{titleName;titleIcon;titleDescription;dateExpire;dateOptionExpire;constructor(t){const{title_name:e,title_icon:a,title_description:i,date_expire:s,date_option_expire:r}=t;this.titleName=e,this.titleIcon=a,this.titleDescription=i,this.dateExpire=new Date(s),this.dateOptionExpire=r?new Date(r):void 0}}class Z{date;characterGender;characterClass;itemEquipment;title;dragonEquipment;mechanicEquipment;constructor(t){const{date:e,character_gender:a,character_class:i,item_equipment:s,title:r,dragon_equipment:o,mechanic_equipment:n}=t;this.date=new Date(e),this.characterGender=a,this.characterClass=i,this.itemEquipment=s.map((t=>new z(t))),this.title=new V(r),this.dragonEquipment=o?o.map((t=>new z(t))):void 0,this.mechanicEquipment=n?n.map((t=>new z(t))):void 0}}class K{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:s,skill_icon:r}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=s,this.skillIcon=r}}class Q{date;characterClass;characterLinkSkill;characterOwnedLinkSkill;constructor(t){const{date:e,character_class:a,character_link_skill:i,character_owned_link_skill:s}=t;this.date=new Date(e),this.characterClass=a,this.characterLinkSkill=new K(i),this.characterOwnedLinkSkill=new K(s)}}class X{skill1;skill1Icon;skill2;skill2Icon;constructor(t){const{skill_1:e,skill_1_icon:a,skill_2:i,skill_2_icon:s}=t;this.skill1=e,this.skill1Icon=a,this.skill2=i,this.skill2Icon=s}}class W{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class J{itemName;itemIcon;itemDescription;itemOption;scrollUpgrade;scrollUpgradeable;constructor(t){const{item_name:e,item_icon:a,item_description:i,item_option:s,scroll_upgrade:r,scroll_upgradeable:o}=t;this.itemName=e,this.itemIcon=a,this.itemDescription=i,this.itemOption=s.map((t=>new W(t))),this.scrollUpgrade=r,this.scrollUpgradeable=o}}class tt{date;pet1Name;pet1Nickname;pet1Icon;pet1Description;pet1Equipment;pet1AutoSkill;pet1PetType;pet1Skill;pet1DateExpire;pet2Name;pet2Nickname;pet2Icon;pet2Description;pet2Equipment;pet2AutoSkill;pet2PetType;pet2Skill;pet2DateExpire;pet3Name;pet3Nickname;pet3Icon;pet3Description;pet3Equipment;pet3AutoSkill;pet3PetType;pet3Skill;pet3DateExpire;constructor(t){const{date:e,pet_1_name:a,pet_1_nickname:i,pet_1_icon:s,pet_1_description:r,pet_1_equipment:o,pet_1_auto_skill:n,pet_1_pet_type:c,pet_1_skill:l,pet_1_date_expire:h,pet_2_name:m,pet_2_nickname:d,pet_2_icon:p,pet_2_description:u,pet_2_equipment:_,pet_2_auto_skill:f,pet_2_pet_type:g,pet_2_skill:w,pet_2_date_expire:y,pet_3_name:D,pet_3_nickname:k,pet_3_icon:b,pet_3_description:x,pet_3_equipment:E,pet_3_auto_skill:C,pet_3_pet_type:v,pet_3_skill:S,pet_3_date_expire:P}=t;this.date=new Date(e),this.pet1Name=a,this.pet1Nickname=i,this.pet1Icon=s,this.pet1Description=r,this.pet1Equipment=new J(o),this.pet1AutoSkill=new X(n),this.pet1PetType=c,this.pet1Skill=l,this.pet1DateExpire=new Date(h),this.pet2Name=m,this.pet2Nickname=d,this.pet2Icon=p,this.pet2Description=u,this.pet2Equipment=new J(_),this.pet2AutoSkill=new X(f),this.pet2PetType=g,this.pet2Skill=w,this.pet2DateExpire=new Date(y),this.pet3Name=D,this.pet3Nickname=k,this.pet3Icon=b,this.pet3Description=x,this.pet3Equipment=new J(E),this.pet3AutoSkill=new X(C),this.pet3PetType=v,this.pet3Skill=S,this.pet3DateExpire=new Date(P)}}class et{date;popularity;constructor(t){const{date:e,popularity:a}=t;this.date=new Date(e),this.popularity=a}}class at{date;charismaLevel;sensibilityLevel;insightLevel;willingnessLevel;handicraftLevel;charmLevel;constructor(t){const{date:e,charisma_level:a,sensibility_level:i,insight_level:s,willingness_level:r,handicraft_level:o,charm_level:n}=t;this.date=new Date(e),this.charismaLevel=a,this.sensibilityLevel=i,this.insightLevel=s,this.willingnessLevel=r,this.handicraftLevel=o,this.charmLevel=n}}class it{setCount;setOption;constructor(t){const{set_count:e,set_option:a}=t;this.setCount=e,this.setOption=a}}class st{setName;totalSetCount;setEffectInfo;constructor(t){const{set_name:e,total_set_count:a,set_effect_info:i}=t;this.setName=e,this.totalSetCount=a,this.setEffectInfo=i.map((t=>new it(t)))}}class rt{date;setEffect;constructor(t){const{date:e,set_effect:a}=t;this.date=new Date(e),this.setEffect=a.map((t=>new st(t)))}}class ot{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:s,skill_icon:r}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=s,this.skillIcon=r}}class nt{date;characterClass;characterSkillGrade;characterSkill;constructor(t){const{date:e,character_class:a,character_skill_grade:i,character_skill:s}=t;this.date=new Date(e),this.characterClass=a,this.characterSkillGrade=i,this.characterSkill=s.map((t=>new ot(t)))}}class ct{date;characterClass;finalStat;remainAP;constructor(t){const{date:e,character_class:a,final_stat:i,remain_ap:s}=t;this.date=new Date(e),this.characterClass=a,this.finalStat=i.map((t=>({statName:t.stat_name,statValue:t.stat_value}))),this.remainAP=s}}class lt{symbolName;symbolIcon;symbolDescription;symbolForce;symbolLevel;symbolStr;symbolDex;symbolInt;symbolLuk;symbolHp;symbolGrowthCount;symbolRequireGrowthCount;constructor(t){const{symbol_name:e,symbol_icon:a,symbol_description:i,symbol_force:s,symbol_level:r,symbol_str:o,symbol_dex:n,symbol_int:c,symbol_luk:l,symbol_hp:h,symbol_growth_count:m,symbol_require_growth_count:d}=t;this.symbolName=e,this.symbolIcon=a,this.symbolDescription=i,this.symbolForce=s,this.symbolLevel=r,this.symbolStr=o,this.symbolDex=n,this.symbolInt=c,this.symbolLuk=l,this.symbolHp=h,this.symbolGrowthCount=m,this.symbolRequireGrowthCount=d}}class ht{date;characterClass;symbol;constructor(t){const{date:e,character_class:a,symbol:i}=t;this.date=new Date(e),this.characterClass=a,this.symbol=i.map((t=>new lt(t)))}}class mt{slotId;slotLevel;vCoreName;vCoreType;vCoreLevel;vCoreSkill1;vCoreSkill2;vCoreSkill3;constructor(t){const{slot_id:e,slot_level:a,v_core_name:i,v_core_type:s,v_core_level:r,v_core_skill_1:o,v_core_skill_2:n,v_core_skill_3:c}=t;this.slotId=e,this.slotLevel=a,this.vCoreName=i,this.vCoreType=s,this.vCoreLevel=r,this.vCoreSkill1=o,this.vCoreSkill2=n,this.vCoreSkill3=c}}class dt{date;characterClass;characterVCoreEquipment;characterVMatrixRemainSlotUpgradePoint;constructor(t){const{date:e,character_class:a,character_v_core_equipment:i,character_v_matrix_remain_slot_upgrade_point:s}=t;this.date=new Date(e),this.characterClass=a,this.characterVCoreEquipment=i.map((t=>new mt(t))),this.characterVMatrixRemainSlotUpgradePoint=s}}t.PotentialOptionGrade=void 0,(m=t.PotentialOptionGrade||(t.PotentialOptionGrade={}))[m.RARE=0]="RARE",m[m.EPIC=1]="EPIC",m[m.UNIQUE=2]="UNIQUE",m[m.LEGENDARY=3]="LEGENDARY";const pt=e=>{const a={"레어":t.PotentialOptionGrade.RARE,"에픽":t.PotentialOptionGrade.EPIC,"유니크":t.PotentialOptionGrade.UNIQUE,"레전드리":t.PotentialOptionGrade.LEGENDARY}[e];if(!a)throw new TypeError("No enum constant for string: "+e);return a};class ut{value;grade;constructor(t){const{value:e,grade:a}=t;this.value=e,this.grade=a}get gradeEnum(){return pt(this.grade)}}class _t{id;characterName;worldName;dateCreate;cubeType;itemUpgradeResult;miracleTimeFlag;itemEquipmentPart;itemLevel;targetItem;potentialOptionGrade;additionalPotentialOptionGrade;upgradeGuarantee;upgradeGuaranteeCount;beforePotentialOption;beforeAdditionalPotentialOption;afterPotentialOption;afterAdditionalPotentialOption;constructor(t){const{id:e,character_name:a,world_name:i,date_create:s,cube_type:r,item_upgrade_result:o,miracle_time_flag:n,item_equipment_part:c,item_level:l,target_item:h,potential_option_grade:m,additional_potential_option_grade:d,upgrade_guarantee:p,upgrade_guarantee_count:u,before_potential_option:_,before_additional_potential_option:f,after_potential_option:g,after_additional_potential_option:w}=t;this.id=e,this.characterName=a,this.worldName=i,this.dateCreate=new Date(s),this.cubeType=r,this.itemUpgradeResult=o,this.miracleTimeFlag=n,this.itemEquipmentPart=c,this.itemLevel=l,this.targetItem=h,this.potentialOptionGrade=m,this.additionalPotentialOptionGrade=d,this.upgradeGuarantee=p,this.upgradeGuaranteeCount=u,this.beforePotentialOption=_.map((t=>new ut(t))),this.beforeAdditionalPotentialOption=f.map((t=>new ut(t))),this.afterPotentialOption=g.map((t=>new ut(t))),this.afterAdditionalPotentialOption=w.map((t=>new ut(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return pt(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return pt(this.additionalPotentialOptionGrade)}}class ft{count;cubeHistory;nextCursor;constructor(t){const{count:e,cube_history:a,next_cursor:i}=t;this.count=e,this.cubeHistory=a.map((t=>new _t(t))),this.nextCursor=i}}class gt{date;ranking;characterName;worldName;className;subClassName;characterLevel;dojangFloor;dojangTimeRecord;constructor(t){const{date:e,ranking:a,character_name:i,world_name:s,class_name:r,sub_class_name:o,character_level:n,dojang_floor:c,dojang_time_record:l}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=s,this.className=r,this.subClassName=o,this.characterLevel=n,this.dojangFloor=c,this.dojangTimeRecord=l}}class wt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new gt(t)))}}class yt{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:s,skill_icon:r}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=s,this.skillIcon=r}}class Dt{date;worldName;guildName;guildLevel;guildFame;guildPoint;guildMasterName;guildMemberCount;guildMember;guildSkill;guildNoblessSkill;guildMark;guildMarkCustom;constructor(t){const{date:e,world_name:a,guild_name:i,guild_level:s,guild_fame:r,guild_point:o,guild_master_name:n,guild_member_count:c,guild_member:l,guild_skill:h,guild_nobless_skill:m,guild_mark:d,guild_mark_custom:p}=t;this.date=new Date(e),this.worldName=a,this.guildName=i,this.guildLevel=s,this.guildFame=r,this.guildPoint=o,this.guildMasterName=n,this.guildMemberCount=c,this.guildMember=l,this.guildSkill=h.map((t=>new yt(t))),this.guildNoblessSkill=m.map((t=>new yt(t))),this.guildMark=d,this.guildMarkCustom=p}}class kt{oguildId;constructor(t){const{oguild_id:e}=t;this.oguildId=e}}class bt{date;ranking;guildName;worldName;guildLevel;guildMasterName;guildMark;guildPoint;constructor(t){const{date:e,ranking:a,guild_name:i,world_name:s,guild_level:r,guild_master_name:o,guild_mark:n,guild_point:c}=t;this.date=new Date(e),this.ranking=a,this.guildName=i,this.worldName=s,this.guildLevel=r,this.guildMasterName=o,this.guildMark=n,this.guildPoint=c}}class xt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new bt(t)))}}class Et{serviceCode;startDateTime;endDateTime;strObstacleContents;constructor(t){const e=t["soap:Envelope"]["soap:Body"][0].GetInspectionInfoResponse[0].GetInspectionInfoResult[0]["diffgr:diffgram"][0].NewDataSet[0].InspectionInfo[0];this.serviceCode=Number(e.serviceCode[0]),this.startDateTime=new Date(e.startDateTime[0]),this.endDateTime=new Date(e.endDateTime[0]),this.strObstacleContents=e.strObstacleContents[0]}}class Ct{date;ranking;characterName;worldName;className;subClassName;characterLevel;characterExp;characterPopularity;characterGuildName;constructor(t){const{date:e,ranking:a,character_name:i,world_name:s,class_name:r,sub_class_name:o,character_level:n,character_exp:c,character_popularity:l,character_guildname:h}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=s,this.className=r,this.subClassName=o,this.characterLevel=n,this.characterExp=c,this.characterPopularity=l,this.characterGuildName=h}}class vt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new Ct(t)))}}class St{date;ranking;characterName;worldName;className;subClassName;characterLevel;theSeedFloor;theSeedTimeRecord;constructor(t){const{date:e,ranking:a,character_name:i,world_name:s,class_name:r,sub_class_name:o,character_level:n,theseed_floor:c,theseed_time_record:l}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=s,this.className=r,this.subClassName=o,this.characterLevel=n,this.theSeedFloor=c,this.theSeedTimeRecord=l}}class Pt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new St(t)))}}class Ot{date;unionLevel;unionGrade;constructor(t){const{date:e,union_level:a,union_grade:i}=t;this.date=new Date(e),this.unionLevel=a,this.unionGrade=i}}class It{x;y;constructor(t){const{x:e,y:a}=t;this.x=e,this.y=a}}class Nt{x;y;constructor(t){const{x:e,y:a}=t;this.x=e,this.y=a}}class Lt{blockType;blockClass;blockLevel;blockControlPoint;blockPosition;constructor(t){const{block_type:e,block_class:a,block_level:i,block_control_point:s,block_position:r}=t;this.blockType=e,this.blockClass=a,this.blockLevel=i,this.blockControlPoint=new Nt(s),this.blockPosition=r.map((t=>new It(t)))}}class Rt{statFieldId;statFieldEffect;constructor(t){const{stat_field_id:e,stat_field_effect:a}=t;this.statFieldId=e,this.statFieldEffect=a}}class At{date;unionRaiderStat;unionOccupiedStat;unionInnerStat;unionBlock;constructor(t){const{date:e,union_raider_stat:a,union_occupied_stat:i,union_inner_stat:s,union_block:r}=t;this.date=new Date(e),this.unionRaiderStat=a,this.unionOccupiedStat=i,this.unionInnerStat=s.map((t=>new Rt(t))),this.unionBlock=r.map((t=>new Lt(t)))}}class qt{date;ranking;characterName;worldName;className;subClassName;unionLevel;unionPower;constructor(t){const{date:e,ranking:a,character_name:i,world_name:s,class_name:r,sub_class_name:o,union_level:n,union_power:c}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=s,this.className=r,this.subClassName=o,this.unionLevel=n,this.unionPower=c}}class Ut{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new qt(t)))}}class Ht extends Error{name="MapleStoryApiError";errorCode;message;constructor(t){const{name:e,message:a}=t.error;super(a),this.errorCode=Tt[e],this.message=a}}var Mt;t.MapleStoryApiErrorCode=void 0,(Mt=t.MapleStoryApiErrorCode||(t.MapleStoryApiErrorCode={}))[Mt.OPENAPI00001=0]="OPENAPI00001",Mt[Mt.OPENAPI00002=1]="OPENAPI00002",Mt[Mt.OPENAPI00003=2]="OPENAPI00003",Mt[Mt.OPENAPI00004=3]="OPENAPI00004",Mt[Mt.OPENAPI00005=4]="OPENAPI00005",Mt[Mt.OPENAPI00006=5]="OPENAPI00006",Mt[Mt.OPENAPI00007=6]="OPENAPI00007";const Tt={OPENAPI00001:t.MapleStoryApiErrorCode.OPENAPI00001,OPENAPI00002:t.MapleStoryApiErrorCode.OPENAPI00002,OPENAPI00003:t.MapleStoryApiErrorCode.OPENAPI00003,OPENAPI00004:t.MapleStoryApiErrorCode.OPENAPI00004,OPENAPI00005:t.MapleStoryApiErrorCode.OPENAPI00005,OPENAPI00006:t.MapleStoryApiErrorCode.OPENAPI00006,OPENAPI00007:t.MapleStoryApiErrorCode.OPENAPI00007};o.default.extend(l),o.default.extend(d);class Gt{apiKey;static BASE_URL="https://open.api.nexon.com/";static kstOffset=540;timeout;constructor(t){this.apiKey=t,this.timeout=5e3}async getCharacter(t){try{const e="maplestory/v1/id",a=await r.default.get(e,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:{character_name:t}});return new L(a.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterBasic(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/basic",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new x(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterPopularity(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/popularity",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new et(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterStat(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/stat",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new ct(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterHyperStat(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/hyper-stat",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new T(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterPropensity(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/propensity",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new at(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterAbility(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/ability",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new f(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterItemEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/item-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Z(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterCashItemEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/cashitem-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new I(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterSymbolEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/symbol-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new ht(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterSetEffect(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/set-effect",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new rt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterBeautyEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/beauty-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new v(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterAndroidEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/android-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new b(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterPetEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/pet-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new tt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterSkill(t,a,i=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const s={ocid:t,character_skill_grade:"0",date:Gt.toDateString({year:2023,month:12,day:21},i)};try{const t="maplestory/v1/character/skill",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:s});return new nt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterLinkSkill(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/link-skill",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Q(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterVMatrix(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/vmatrix",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new dt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterHexaMatrix(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/hexamatrix",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new q(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterHexaMatrixStat(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/hexamatrix-stat",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new H(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterDojang(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/dojang",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new N(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getUnionInfo(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/user/union",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Ot(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getUnionRaiderInfo(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/user/union-raider",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new At(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getGuild(t,a){try{const e="maplestory/v1/guild/id",i=await r.default.get(e,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:{guild_name:t,world_name:a}});return new kt(i.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getGuildBasic(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={oguild_id:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/guild/basic",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Dt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCubeHistory(t,a){const i={count:t};"string"==typeof a?i.cursor=a:"object"==typeof a&&(i.date=Gt.toDateString({year:2022,month:11,day:25},a??Gt.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));try{const t="maplestory/v1/history/cube",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new ft(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getOverallRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a)};if(t){const{worldName:e,worldType:a,characterClass:s,ocid:r,page:o}=t;i.world_name=e,i.world_type=a,i.class=s,i.ocid=r,i.page=o}try{const t="maplestory/v1/ranking/overall",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new vt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getUnionRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a)};if(t){const{worldName:e,ocid:a,page:s}=t;i.world_name=e,i.ocid=a,i.page=s}try{const t="maplestory/v1/ranking/union",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Ut(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getGuildRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a),ranking_type:0};if(t){const{worldName:e,rankingType:a,ocid:s,page:r}=t;i.world_name=e,i.ranking_type=a,i.ocid=s,i.page=r}try{const t="maplestory/v1/ranking/guild",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new xt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getDojangRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a),difficulty:0};if(t){const{worldName:e,difficulty:a,characterClass:s,ocid:r,page:o}=t;i.world_name=e,i.difficulty=a,i.class=s,i.ocid=r,i.page=o}try{const t="maplestory/v1/ranking/dojang",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new wt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getSeedRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a)};if(t){const{worldName:e,ocid:a,page:s}=t;i.world_name=e,i.ocid=a,i.page=s}try{const t="maplestory/v1/ranking/theseed",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Pt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getAchievementRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a)};if(t){const{ocid:e,page:a}=t;i.ocid=e,i.page=a}try{const t="maplestory/v1/ranking/achievement",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new u(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getInspectionInfo(){const t=(new n.default.Builder).buildObject({"soap:Envelope":{$:{"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:soap":"http://schemas.xmlsoap.org/soap/envelope/"},"soap:Body":{GetInspectionInfo:{$:{xmlns:"https://api.maplestory.nexon.com/soap/"}}}}}),e=await r.default.post("soap/maplestory.asmx",t,{baseURL:"https://api.maplestory.nexon.com/",timeout:this.timeout,headers:{SOAPAction:"https://api.maplestory.nexon.com/soap/GetInspectionInfo","Content-Type":"text/xml; charset=utf-8"}}),a=await n.default.parseStringPromise(e.data);return new Et(a)}buildHeaders(){return{"x-nxopen-api-key":this.apiKey}}static getProperDefaultDateOptions(t){const{hour:e,minute:a,dateOffset:i}=t,s=o.default().utcOffset(Gt.kstOffset),r=o.default().utcOffset(Gt.kstOffset).hour(e).minute(a);let n;return n=s.isAfter(r)?s:s.subtract(1,"day"),n=n.subtract(i??0,"day"),{year:n.year(),month:n.month()+1,day:n.date()}}static toDateString(t,e){const{year:a,month:i,day:s}=t,{year:r,month:n,day:c}=e;if(r<a||r===a&&n<i||r===a&&n===i&&c<s)throw new Error(`You can only retrieve data after ${o.default(`${a}-${i}-${s}`).format("YYYY-MM-DD")}.`);return o.default(`${r}-${n}-${c}`).utcOffset(Gt.kstOffset).format("YYYY-MM-DD")}}t.AchievementRankingDto=p,t.AchievementRankingResponseDto=u,t.CharacterAbilityDto=f,t.CharacterAbilityInfoDto=_,t.CharacterAndroidCashItemEquipmentColoringPrismDto=g,t.CharacterAndroidCashItemEquipmentDto=y,t.CharacterAndroidCashItemEquipmentOptionDto=w,t.CharacterAndroidEquipmentDto=b,t.CharacterAndroidEquipmentFaceDto=D,t.CharacterAndroidEquipmentHairDto=k,t.CharacterBasicDto=x,t.CharacterBeautyEquipmentDto=v,t.CharacterBeautyEquipmentFaceDto=E,t.CharacterBeautyEquipmentHairDto=C,t.CharacterCashItemEquipmentColoringPrismDto=S,t.CharacterCashItemEquipmentDto=I,t.CharacterCashItemEquipmentOptionDto=P,t.CharacterCashItemEquipmentPresetDto=O,t.CharacterDojangDto=N,t.CharacterDto=L,t.CharacterHexaMatrixDto=q,t.CharacterHexaMatrixEquipmentDto=A,t.CharacterHexaMatrixEquipmentLinkedSkillDto=R,t.CharacterHexaMatrixStatCoreDto=U,t.CharacterHexaMatrixStatDto=H,t.CharacterHyperStatDto=T,t.CharacterHyperStatInfoDto=M,t.CharacterItemEquipmentAddOptionDto=G,t.CharacterItemEquipmentBaseOptionDto=$,t.CharacterItemEquipmentDto=Z,t.CharacterItemEquipmentEtcOptionDto=B,t.CharacterItemEquipmentExceptionalOptionDto=j,t.CharacterItemEquipmentInfoDto=z,t.CharacterItemEquipmentStarforceOptionDto=F,t.CharacterItemEquipmentTitleDto=V,t.CharacterItemEquipmentTotalOptionDto=Y,t.CharacterLinkSkillDto=Q,t.CharacterLinkSkillInfoDto=K,t.CharacterPetEquipmentAutoSkillDto=X,t.CharacterPetEquipmentDto=tt,t.CharacterPetEquipmentItemDto=J,t.CharacterPetEquipmentItemOptionDto=W,t.CharacterPopularityDto=et,t.CharacterPropensityDto=at,t.CharacterSetEffectDto=rt,t.CharacterSetEffectInfoDto=st,t.CharacterSetEffectOptionInfoDto=it,t.CharacterSkillDto=nt,t.CharacterSkillInfoDto=ot,t.CharacterStatDto=ct,t.CharacterSymbolEquipmentDto=ht,t.CharacterSymbolEquipmentInfoDto=lt,t.CharacterVMatrixCodeEquipmentDto=mt,t.CharacterVMatrixDto=dt,t.CubeHistoryDto=_t,t.CubeHistoryResponseDto=ft,t.CubeResultOptionDto=ut,t.DojangRankingDto=gt,t.DojangRankingResponseDto=wt,t.GuildBasicDto=Dt,t.GuildDto=kt,t.GuildRankingDto=bt,t.GuildRankingResponseDto=xt,t.GuildSkillDto=yt,t.InspectionInfoDto=Et,t.MapleStoryApi=Gt,t.MapleStoryApiError=Ht,t.OverallRankingDto=Ct,t.OverallRankingResponseDto=vt,t.TheSeedRankingDto=St,t.TheSeedRankingResponseDto=Pt,t.UnionDto=Ot,t.UnionRaiderBlockControlPointDto=Nt,t.UnionRaiderBlockDto=Lt,t.UnionRaiderBlockPositionDto=It,t.UnionRaiderDto=At,t.UnionRaiderInnerStatDto=Rt,t.UnionRankingDto=qt,t.UnionRankingResponseDto=Ut,t.potentialOptionGradeFromString=pt})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("axios"),require("dayjs"),require("xml2js")):"function"==typeof define&&define.amd?define(["exports","axios","dayjs","xml2js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["maplestory-openapi"]={},t.axios,t.dayjs,t.xml2js)}(this,(function(t,e,a,i){"use strict";function s(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=s(e),o=s(a),n=s(i),c=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,{exports:{}});!function(t,e){var a,i;t.exports=(a={year:0,month:1,day:2,hour:3,minute:4,second:5},i={},function(t,e,s){var r,o=function(t,e,a){void 0===a&&(a={});var s=new Date(t),r=function(t,e){void 0===e&&(e={});var a=e.timeZoneName||"short",s=t+"|"+a,r=i[s];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),i[s]=r),r}(e,a);return r.formatToParts(s)},n=function(t,e){for(var i=o(t,e),r=[],n=0;n<i.length;n+=1){var c=i[n],l=c.type,h=c.value,m=a[l];m>=0&&(r[m]=parseInt(h,10))}var d=r[3],p=24===d?0:d,u=r[0]+"-"+r[1]+"-"+r[2]+" "+p+":"+r[4]+":"+r[5]+":000",_=+t;return(s.utc(u).valueOf()-(_-=_%1e3))/6e4},c=e.prototype;c.tz=function(t,e){void 0===t&&(t=r);var a=this.utcOffset(),i=this.toDate(),o=i.toLocaleString("en-US",{timeZone:t}),n=Math.round((i-new Date(o))/1e3/60),c=s(o,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-n,!0);if(e){var l=c.utcOffset();c=c.add(a-l,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||s.tz.guess(),a=o(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return a&&a.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var a=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(a,t,e).tz(this.$x.$timezone,!0)},s.tz=function(t,e,a){var i=a&&e,o=a||e||r,c=n(+s(),o);if("string"!=typeof t)return s(t).tz(o);var l=function(t,e,a){var i=t-60*e*1e3,s=n(i,a);if(e===s)return[i,e];var r=n(i-=60*(s-e)*1e3,a);return s===r?[i,s]:[t-60*Math.min(s,r)*1e3,Math.max(s,r)]}(s.utc(t,i).valueOf(),c,o),h=l[0],m=l[1],d=s(h).utcOffset(m);return d.$x.$timezone=o,d},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(t){r=t}})}(c);var l=c.exports,h={exports:{}};!function(t,e){var a,i,s;t.exports=(a="minute",i=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g,function(t,e,r){var o=e.prototype;r.utc=function(t){return new e({date:t,utc:!0,args:arguments})},o.utc=function(t){var e=r(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),a):e},o.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var n=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),n.call(this,t)};var c=o.init;o.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(t,e){var r=this.$utils().u;if(r(t))return this.$u?0:r(this.$offset)?l.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(i);if(!e)return null;var a=(""+e[0]).match(s)||["-",0,0],r=a[0],o=60*+a[1]+ +a[2];return 0===o?0:"+"===r?o:-o}(t),null===t))return this;var o=Math.abs(t)<=16?60*t:t,n=this;if(e)return n.$offset=o,n.$u=0===t,n;if(0!==t){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(n=this.local().add(o+c,a)).$offset=o,n.$x.$localOffset=c}else n=this.utc();return n};var h=o.format;o.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,e)},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var m=o.toDate;o.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var d=o.diff;o.diff=function(t,e,a){if(t&&this.$u===t.$u)return d.call(this,t,e,a);var i=this.local(),s=r(t).local();return d.call(i,s,e,a)}})}(h);var m,d=h.exports;class p{date;ranking;characterName;worldName;className;subClassName;trophyGrade;trophyScore;constructor(t){const{date:e,ranking:a,character_name:i,world_name:s,class_name:r,sub_class_name:o,trophy_grade:n,trophy_score:c}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=s,this.className=r,this.subClassName=o,this.trophyGrade=n,this.trophyScore=c}}class u{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new p(t)))}}class _{abilityNo;abilityGrade;abilityValue;constructor(t){const{ability_no:e,ability_grade:a,ability_value:i}=t;this.abilityNo=e,this.abilityGrade=a,this.abilityValue=i}}class f{date;abilityGrade;abilityInfo;remainFame;constructor(t){const{date:e,ability_grade:a,ability_info:i,remain_fame:s}=t;this.date=new Date(e),this.abilityGrade=a,this.abilityInfo=i.map((t=>new _(t))),this.remainFame=s}}class g{colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:a,saturation:i,value:s}=t;this.colorRange=e,this.hue=a,this.saturation=i,this.value=s}}class w{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class y{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:a,cash_item_name:i,cash_item_icon:s,cash_item_description:r,cash_item_option:o,date_expire:n,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=a,this.cashItemName=i,this.cashItemIcon=s,this.cashItemDescription=r,this.cashItemOption=o.map((t=>new w(t))),this.dateExpire=new Date(n),this.dateOptionExpire=new Date(c),this.cashItemLabel=l,this.cashItemColoringPrism=new g(h)}}class D{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:a,mix_color:i,mix_rate:s}=t;this.faceName=e,this.baseColor=a,this.mixColor=i,this.mixRate=s}}class k{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:a,mix_color:i,mix_rate:s}=t;this.hairName=e,this.baseColor=a,this.mixColor=i,this.mixRate=s}}class b{date;androidName;androidNickname;androidIcon;androidDescription;androidHair;androidFace;androidSkinName;androidCashItemEquipment;androidEarSensorClipFlag;constructor(t){const{date:e,android_name:a,android_nickname:i,android_icon:s,android_description:r,android_hair:o,android_face:n,android_skin_name:c,android_cash_item_equipment:l,android_ear_sensor_clip_flag:h}=t;this.date=new Date(e),this.androidName=a,this.androidNickname=i,this.androidIcon=s,this.androidDescription=r,this.androidHair=new k(o),this.androidFace=new D(n),this.androidSkinName=c,this.androidCashItemEquipment=l.map((t=>new y(t))),this.androidEarSensorClipFlag=h}}class x{date;characterName;worldName;characterGender;characterClass;characterClassLevel;characterLevel;characterExp;characterExpRate;characterGuildName;characterImage;constructor(t){const{date:e,character_name:a,world_name:i,character_gender:s,character_class:r,character_class_level:o,character_level:n,character_exp:c,character_exp_rate:l,character_guild_name:h,character_image:m}=t;this.date=new Date(e),this.characterName=a,this.worldName=i,this.characterGender=s,this.characterClass=r,this.characterClassLevel=o,this.characterLevel=n,this.characterExp=c,this.characterExpRate=l,this.characterGuildName=h,this.characterImage=m}}class E{faceName;baseColor;mixColor;mixRate;constructor(t){const{face_name:e,base_color:a,mix_color:i,mix_rate:s}=t;this.faceName=e,this.baseColor=a,this.mixColor=i,this.mixRate=s}}class C{hairName;baseColor;mixColor;mixRate;constructor(t){const{hair_name:e,base_color:a,mix_color:i,mix_rate:s}=t;this.hairName=e,this.baseColor=a,this.mixColor=i,this.mixRate=s}}class v{date;characterGender;characterClass;characterHair;characterFace;characterSkinName;additionalCharacterHair;additionalCharacterFace;additionalCharacterSkinName;constructor(t){const{date:e,character_gender:a,character_class:i,character_hair:s,character_face:r,character_skin_name:o,additional_character_hair:n,additional_character_face:c,additional_character_skin_name:l}=t;this.date=new Date(e),this.characterGender=a,this.characterClass=i,this.characterHair=new C(s),this.characterFace=new E(r),this.characterSkinName=o,this.additionalCharacterHair=new C(n),this.additionalCharacterFace=new E(c),this.additionalCharacterSkinName=l}}class S{colorRange;hue;saturation;value;constructor(t){const{color_range:e,hue:a,saturation:i,value:s}=t;this.colorRange=e,this.hue=a,this.saturation=i,this.value=s}}class P{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class O{cashItemEquipmentPart;cashItemEquipmentSlot;cashItemName;cashItemIcon;cashItemDescription;cashItemOption;dateExpire;dateOptionExpire;cashItemLabel;cashItemColoringPrism;basePresetItemDisableFlag;constructor(t){const{cash_item_equipment_part:e,cash_item_equipment_slot:a,cash_item_name:i,cash_item_icon:s,cash_item_description:r,cash_item_option:o,date_expire:n,date_option_expire:c,cash_item_label:l,cash_item_coloring_prism:h,base_preset_item_disable_flag:m}=t;this.cashItemEquipmentPart=e,this.cashItemEquipmentSlot=a,this.cashItemName=i,this.cashItemIcon=s,this.cashItemDescription=r,this.cashItemOption=o.map((t=>new P(t))),this.dateExpire=n,this.dateOptionExpire=c,this.cashItemLabel=l,this.cashItemColoringPrism=new S(h),this.basePresetItemDisableFlag=m}}class I{date;characterGender;characterClass;presetNo;cashItemEquipmentPreset1;cashItemEquipmentPreset2;cashItemEquipmentPreset3;additionalCashItemEquipmentPreset1;additionalCashItemEquipmentPreset2;additionalCashItemEquipmentPreset3;constructor(t){const{date:e,character_gender:a,character_class:i,preset_no:s,cash_item_equipment_preset_1:r,cash_item_equipment_preset_2:o,cash_item_equipment_preset_3:n,additional_cash_item_equipment_preset_1:c,additional_cash_item_equipment_preset_2:l,additional_cash_item_equipment_preset_3:h}=t;this.date=new Date(e),this.characterGender=a,this.characterClass=i,this.presetNo=s,this.cashItemEquipmentPreset1=r.map((t=>new O(t))),this.cashItemEquipmentPreset2=o.map((t=>new O(t))),this.cashItemEquipmentPreset3=n.map((t=>new O(t))),this.additionalCashItemEquipmentPreset1=c.map((t=>new O(t))),this.additionalCashItemEquipmentPreset2=l.map((t=>new O(t))),this.additionalCashItemEquipmentPreset3=h.map((t=>new O(t)))}}class N{date;characterClass;worldName;dojangBestFloor;dateDojangRecord;dojangBestTime;constructor(t){const{date:e,character_class:a,world_name:i,dojang_best_floor:s,date_dojang_record:r,dojang_best_time:o}=t;this.date=new Date(e),this.characterClass=a,this.worldName=i,this.dojangBestFloor=s,this.dateDojangRecord=new Date(r),this.dojangBestTime=o}}class L{ocid;constructor(t){const{ocid:e}=t;this.ocid=e}}class R{hexaSkillId;constructor(t){const{hexa_skill_id:e}=t;this.hexaSkillId=e}}class A{hexaCoreName;hexaCoreLevel;hexaCoreType;linkedSkill;constructor(t){const{hexa_core_name:e,hexa_core_level:a,hexa_core_type:i,linked_skill:s}=t;this.hexaCoreName=e,this.hexaCoreLevel=a,this.hexaCoreType=i,this.linkedSkill=s.map((t=>new R(t)))}}class q{date;characterHexaCoreEquipment;constructor(t){const{date:e,character_hexa_core_equipment:a}=t;this.date=new Date(e),this.characterHexaCoreEquipment=a.map((t=>new A(t)))}}class U{slotId;mainStatName;subStatName1;subStatName2;mainStatLevel;subStatLevel1;subStatLevel2;statGrade;constructor(t){const{slot_id:e,main_stat_name:a,sub_stat_name_1:i,sub_stat_name_2:s,main_stat_level:r,sub_stat_level_1:o,sub_stat_level_2:n,stat_grade:c}=t;this.slotId=e,this.mainStatName=a,this.subStatName1=i,this.subStatName2=s,this.mainStatLevel=r,this.subStatLevel1=o,this.subStatLevel2=n,this.statGrade=c}}class H{date;characterClass;characterHexaStatCore;presetHexaStatCore;constructor(t){const{date:e,character_class:a,character_hexa_stat_core:i,preset_hexa_stat_core:s}=t;this.date=new Date(e),this.characterClass=a,this.characterHexaStatCore=i.map((t=>new U(t))),this.presetHexaStatCore=s.map((t=>new U(t)))}}class M{statType;statPoint;statLevel;statIncrease;constructor(t){const{stat_type:e,stat_point:a,stat_level:i,stat_increase:s}=t;this.statType=e,this.statPoint=a,this.statLevel=i,this.statIncrease=s}}class T{date;characterClass;usePresetNo;useAvailableHyperStat;hyperStatPreset1;hyperStatPreset1RemainPoint;hyperStatPreset2;hyperStatPreset2RemainPoint;hyperStatPreset3;hyperStatPreset3RemainPoint;constructor(t){const{date:e,character_class:a,use_preset_no:i,use_available_hyper_stat:s,hyper_stat_preset_1:r,hyper_stat_preset_1_remain_point:o,hyper_stat_preset_2:n,hyper_stat_preset_2_remain_point:c,hyper_stat_preset_3:l,hyper_stat_preset_3_remain_point:h}=t;this.date=new Date(e),this.characterClass=a,this.usePresetNo=i,this.useAvailableHyperStat=s,this.hyperStatPreset1=r.map((t=>new M(t))),this.hyperStatPreset1RemainPoint=o,this.hyperStatPreset2=n.map((t=>new M(t))),this.hyperStatPreset2RemainPoint=c,this.hyperStatPreset3=l.map((t=>new M(t))),this.hyperStatPreset3RemainPoint=h}}class G{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;damage;allStat;equipmentLevelDecrease;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c,armor:l,speed:h,jump:m,boss_damage:d,damage:p,all_stat:u,equipment_level_decrease:_}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c,this.armor=l,this.speed=h,this.jump=m,this.bossDamage=d,this.damage=p,this.allStat=u,this.equipmentLevelDecrease=_}}class ${str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;maxHpRate;maxMpRate;baseEquipmentLevel;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c,armor:l,speed:h,jump:m,boss_damage:d,ignore_monster_armor:p,all_stat:u,max_hp_rate:_,max_mp_rate:f,base_equipment_level:g}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c,this.armor=l,this.speed=h,this.jump=m,this.bossDamage=d,this.ignoreMonsterArmor=p,this.allStat=u,this.maxHpRate=_,this.maxMpRate=f,this.baseEquipmentLevel=g}}class B{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c,armor:l,speed:h,jump:m}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c,this.armor=l,this.speed=h,this.jump=m}}class j{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c}}class F{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c,armor:l,speed:h,jump:m}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c,this.armor=l,this.speed=h,this.jump=m}}class Y{str;dex;int;luk;maxHp;maxMp;attackPower;magicPower;armor;speed;jump;bossDamage;ignoreMonsterArmor;allStat;damage;equipmentLevelDecrease;maxHpRate;maxMpRate;constructor(t){const{str:e,dex:a,int:i,luk:s,max_hp:r,max_mp:o,attack_power:n,magic_power:c,armor:l,speed:h,jump:m,boss_damage:d,ignore_monster_armor:p,all_stat:u,damage:_,equipment_level_decrease:f,max_hp_rate:g,max_mp_rate:w}=t;this.str=e,this.dex=a,this.int=i,this.luk=s,this.maxHp=r,this.maxMp=o,this.attackPower=n,this.magicPower=c,this.armor=l,this.speed=h,this.jump=m,this.bossDamage=d,this.ignoreMonsterArmor=p,this.allStat=u,this.damage=_,this.equipmentLevelDecrease=f,this.maxHpRate=g,this.maxMpRate=w}}class z{itemEquipmentPart;equipmentSlot;itemName;itemIcon;itemDescription;itemShapeName;itemShapeIcon;gender;itemTotalOption;itemBaseOption;potentialOptionGrade;additionalPotentialOptionGrade;potentialOption1;potentialOption2;potentialOption3;additionalPotentialOption1;additionalPotentialOption2;additionalPotentialOption3;equipmentLevelIncrease;itemExceptionalOption;itemAddOption;growthExp;growthLevel;scrollUpgrade;cuttableCount;goldenHammerFlag;scrollResilienceCount;scrollUpgradeableCount;soulName;soulOption;itemEtcOption;starforce;starforceScrollFlag;itemStarforceOption;specialRingLevel;dateExpire;constructor(t){const{item_equipment_part:e,equipment_slot:a,item_name:i,item_icon:s,item_description:r,item_shape_name:o,item_shape_icon:n,gender:c,item_total_option:l,item_base_option:h,potential_option_grade:m,additional_potential_option_grade:d,potential_option_1:p,potential_option_2:u,potential_option_3:_,additional_potential_option_1:f,additional_potential_option_2:g,additional_potential_option_3:w,equipment_level_increase:y,item_exceptional_option:D,item_add_option:k,growth_exp:b,growth_level:x,scroll_upgrade:E,cuttable_count:C,golden_hammer_flag:v,scroll_resilience_count:S,scroll_upgradeable_count:P,soul_name:O,soul_option:I,item_etc_option:N,starforce:L,starforce_scroll_flag:R,item_starforce_option:A,special_ring_level:q,date_expire:U}=t;this.itemEquipmentPart=e,this.equipmentSlot=a,this.itemName=i,this.itemIcon=s,this.itemDescription=r,this.itemShapeName=o,this.itemShapeIcon=n,this.gender=c,this.itemTotalOption=new Y(l),this.itemBaseOption=new $(h),this.potentialOptionGrade=m,this.additionalPotentialOptionGrade=d,this.potentialOption1=p,this.potentialOption2=u,this.potentialOption3=_,this.additionalPotentialOption1=f,this.additionalPotentialOption2=g,this.additionalPotentialOption3=w,this.equipmentLevelIncrease=y,this.itemExceptionalOption=new j(D),this.itemAddOption=new G(k),this.growthExp=b,this.growthLevel=x,this.scrollUpgrade=E,this.cuttableCount=C,this.goldenHammerFlag=v,this.scrollResilienceCount=S,this.scrollUpgradeableCount=P,this.soulName=O,this.soulOption=I,this.itemEtcOption=new B(N),this.starforce=L,this.starforceScrollFlag=R,this.itemStarforceOption=new F(A),this.specialRingLevel=q,this.dateExpire=new Date(U)}}class V{titleName;titleIcon;titleDescription;dateExpire;dateOptionExpire;constructor(t){const{title_name:e,title_icon:a,title_description:i,date_expire:s,date_option_expire:r}=t;this.titleName=e,this.titleIcon=a,this.titleDescription=i,this.dateExpire=new Date(s),this.dateOptionExpire=r?new Date(r):void 0}}class Z{date;characterGender;characterClass;itemEquipment;title;dragonEquipment;mechanicEquipment;constructor(t){const{date:e,character_gender:a,character_class:i,item_equipment:s,title:r,dragon_equipment:o,mechanic_equipment:n}=t;this.date=new Date(e),this.characterGender=a,this.characterClass=i,this.itemEquipment=s.map((t=>new z(t))),this.title=new V(r),this.dragonEquipment=o?o.map((t=>new z(t))):void 0,this.mechanicEquipment=n?n.map((t=>new z(t))):void 0}}class K{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:s,skill_icon:r}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=s,this.skillIcon=r}}class Q{date;characterClass;characterLinkSkill;characterOwnedLinkSkill;constructor(t){const{date:e,character_class:a,character_link_skill:i,character_owned_link_skill:s}=t;this.date=new Date(e),this.characterClass=a,this.characterLinkSkill=new K(i),this.characterOwnedLinkSkill=new K(s)}}class X{skill1;skill1Icon;skill2;skill2Icon;constructor(t){const{skill_1:e,skill_1_icon:a,skill_2:i,skill_2_icon:s}=t;this.skill1=e,this.skill1Icon=a,this.skill2=i,this.skill2Icon=s}}class W{optionType;optionValue;constructor(t){const{option_type:e,option_value:a}=t;this.optionType=e,this.optionValue=a}}class J{itemName;itemIcon;itemDescription;itemOption;scrollUpgrade;scrollUpgradeable;constructor(t){const{item_name:e,item_icon:a,item_description:i,item_option:s,scroll_upgrade:r,scroll_upgradeable:o}=t;this.itemName=e,this.itemIcon=a,this.itemDescription=i,this.itemOption=s.map((t=>new W(t))),this.scrollUpgrade=r,this.scrollUpgradeable=o}}class tt{date;pet1Name;pet1Nickname;pet1Icon;pet1Description;pet1Equipment;pet1AutoSkill;pet1PetType;pet1Skill;pet1DateExpire;pet2Name;pet2Nickname;pet2Icon;pet2Description;pet2Equipment;pet2AutoSkill;pet2PetType;pet2Skill;pet2DateExpire;pet3Name;pet3Nickname;pet3Icon;pet3Description;pet3Equipment;pet3AutoSkill;pet3PetType;pet3Skill;pet3DateExpire;constructor(t){const{date:e,pet_1_name:a,pet_1_nickname:i,pet_1_icon:s,pet_1_description:r,pet_1_equipment:o,pet_1_auto_skill:n,pet_1_pet_type:c,pet_1_skill:l,pet_1_date_expire:h,pet_2_name:m,pet_2_nickname:d,pet_2_icon:p,pet_2_description:u,pet_2_equipment:_,pet_2_auto_skill:f,pet_2_pet_type:g,pet_2_skill:w,pet_2_date_expire:y,pet_3_name:D,pet_3_nickname:k,pet_3_icon:b,pet_3_description:x,pet_3_equipment:E,pet_3_auto_skill:C,pet_3_pet_type:v,pet_3_skill:S,pet_3_date_expire:P}=t;this.date=new Date(e),this.pet1Name=a,this.pet1Nickname=i,this.pet1Icon=s,this.pet1Description=r,this.pet1Equipment=new J(o),this.pet1AutoSkill=new X(n),this.pet1PetType=c,this.pet1Skill=l,this.pet1DateExpire=new Date(h),this.pet2Name=m,this.pet2Nickname=d,this.pet2Icon=p,this.pet2Description=u,this.pet2Equipment=new J(_),this.pet2AutoSkill=new X(f),this.pet2PetType=g,this.pet2Skill=w,this.pet2DateExpire=new Date(y),this.pet3Name=D,this.pet3Nickname=k,this.pet3Icon=b,this.pet3Description=x,this.pet3Equipment=new J(E),this.pet3AutoSkill=new X(C),this.pet3PetType=v,this.pet3Skill=S,this.pet3DateExpire=new Date(P)}}class et{date;popularity;constructor(t){const{date:e,popularity:a}=t;this.date=new Date(e),this.popularity=a}}class at{date;charismaLevel;sensibilityLevel;insightLevel;willingnessLevel;handicraftLevel;charmLevel;constructor(t){const{date:e,charisma_level:a,sensibility_level:i,insight_level:s,willingness_level:r,handicraft_level:o,charm_level:n}=t;this.date=new Date(e),this.charismaLevel=a,this.sensibilityLevel=i,this.insightLevel=s,this.willingnessLevel=r,this.handicraftLevel=o,this.charmLevel=n}}class it{setCount;setOption;constructor(t){const{set_count:e,set_option:a}=t;this.setCount=e,this.setOption=a}}class st{setName;totalSetCount;setEffectInfo;constructor(t){const{set_name:e,total_set_count:a,set_effect_info:i}=t;this.setName=e,this.totalSetCount=a,this.setEffectInfo=i.map((t=>new it(t)))}}class rt{date;setEffect;constructor(t){const{date:e,set_effect:a}=t;this.date=new Date(e),this.setEffect=a.map((t=>new st(t)))}}class ot{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:s,skill_icon:r}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=s,this.skillIcon=r}}class nt{date;characterClass;characterSkillGrade;characterSkill;constructor(t){const{date:e,character_class:a,character_skill_grade:i,character_skill:s}=t;this.date=new Date(e),this.characterClass=a,this.characterSkillGrade=i,this.characterSkill=s.map((t=>new ot(t)))}}class ct{date;characterClass;finalStat;remainAP;constructor(t){const{date:e,character_class:a,final_stat:i,remain_ap:s}=t;this.date=new Date(e),this.characterClass=a,this.finalStat=i.map((t=>({statName:t.stat_name,statValue:t.stat_value}))),this.remainAP=s}}class lt{symbolName;symbolIcon;symbolDescription;symbolForce;symbolLevel;symbolStr;symbolDex;symbolInt;symbolLuk;symbolHp;symbolGrowthCount;symbolRequireGrowthCount;constructor(t){const{symbol_name:e,symbol_icon:a,symbol_description:i,symbol_force:s,symbol_level:r,symbol_str:o,symbol_dex:n,symbol_int:c,symbol_luk:l,symbol_hp:h,symbol_growth_count:m,symbol_require_growth_count:d}=t;this.symbolName=e,this.symbolIcon=a,this.symbolDescription=i,this.symbolForce=s,this.symbolLevel=r,this.symbolStr=o,this.symbolDex=n,this.symbolInt=c,this.symbolLuk=l,this.symbolHp=h,this.symbolGrowthCount=m,this.symbolRequireGrowthCount=d}}class ht{date;characterClass;symbol;constructor(t){const{date:e,character_class:a,symbol:i}=t;this.date=new Date(e),this.characterClass=a,this.symbol=i.map((t=>new lt(t)))}}class mt{slotId;slotLevel;vCoreName;vCoreType;vCoreLevel;vCoreSkill1;vCoreSkill2;vCoreSkill3;constructor(t){const{slot_id:e,slot_level:a,v_core_name:i,v_core_type:s,v_core_level:r,v_core_skill_1:o,v_core_skill_2:n,v_core_skill_3:c}=t;this.slotId=e,this.slotLevel=a,this.vCoreName=i,this.vCoreType=s,this.vCoreLevel=r,this.vCoreSkill1=o,this.vCoreSkill2=n,this.vCoreSkill3=c}}class dt{date;characterClass;characterVCoreEquipment;characterVMatrixRemainSlotUpgradePoint;constructor(t){const{date:e,character_class:a,character_v_core_equipment:i,character_v_matrix_remain_slot_upgrade_point:s}=t;this.date=new Date(e),this.characterClass=a,this.characterVCoreEquipment=i.map((t=>new mt(t))),this.characterVMatrixRemainSlotUpgradePoint=s}}t.PotentialOptionGrade=void 0,(m=t.PotentialOptionGrade||(t.PotentialOptionGrade={}))[m.RARE=0]="RARE",m[m.EPIC=1]="EPIC",m[m.UNIQUE=2]="UNIQUE",m[m.LEGENDARY=3]="LEGENDARY";const pt=e=>{const a={"레어":t.PotentialOptionGrade.RARE,"에픽":t.PotentialOptionGrade.EPIC,"유니크":t.PotentialOptionGrade.UNIQUE,"레전드리":t.PotentialOptionGrade.LEGENDARY}[e];if(!a)throw new TypeError("No enum constant for string: "+e);return a};class ut{value;grade;constructor(t){const{value:e,grade:a}=t;this.value=e,this.grade=a}get gradeEnum(){return pt(this.grade)}}class _t{id;characterName;worldName;dateCreate;cubeType;itemUpgradeResult;miracleTimeFlag;itemEquipmentPart;itemLevel;targetItem;potentialOptionGrade;additionalPotentialOptionGrade;upgradeGuarantee;upgradeGuaranteeCount;beforePotentialOption;beforeAdditionalPotentialOption;afterPotentialOption;afterAdditionalPotentialOption;constructor(t){const{id:e,character_name:a,world_name:i,date_create:s,cube_type:r,item_upgrade_result:o,miracle_time_flag:n,item_equipment_part:c,item_level:l,target_item:h,potential_option_grade:m,additional_potential_option_grade:d,upgrade_guarantee:p,upgrade_guarantee_count:u,before_potential_option:_,before_additional_potential_option:f,after_potential_option:g,after_additional_potential_option:w}=t;this.id=e,this.characterName=a,this.worldName=i,this.dateCreate=new Date(s),this.cubeType=r,this.itemUpgradeResult=o,this.miracleTimeFlag=n,this.itemEquipmentPart=c,this.itemLevel=l,this.targetItem=h,this.potentialOptionGrade=m,this.additionalPotentialOptionGrade=d,this.upgradeGuarantee=p,this.upgradeGuaranteeCount=u,this.beforePotentialOption=_.map((t=>new ut(t))),this.beforeAdditionalPotentialOption=f.map((t=>new ut(t))),this.afterPotentialOption=g.map((t=>new ut(t))),this.afterAdditionalPotentialOption=w.map((t=>new ut(t)))}get isItemUpgrade(){return"성공"===this.itemUpgradeResult}get isMiracleTimeFlag(){return"이벤트 적용되지 않음"!==this.miracleTimeFlag}get potentialOptionGradeEnum(){return pt(this.potentialOptionGrade)}get additionalPotentialOptionGradeEnum(){return pt(this.additionalPotentialOptionGrade)}}class ft{count;cubeHistory;nextCursor;constructor(t){const{count:e,cube_history:a,next_cursor:i}=t;this.count=e,this.cubeHistory=a.map((t=>new _t(t))),this.nextCursor=i}}class gt{date;ranking;characterName;worldName;className;subClassName;characterLevel;dojangFloor;dojangTimeRecord;constructor(t){const{date:e,ranking:a,character_name:i,world_name:s,class_name:r,sub_class_name:o,character_level:n,dojang_floor:c,dojang_time_record:l}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=s,this.className=r,this.subClassName=o,this.characterLevel=n,this.dojangFloor=c,this.dojangTimeRecord=l}}class wt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new gt(t)))}}class yt{skillName;skillDescription;skillLevel;skillEffect;skillIcon;constructor(t){const{skill_name:e,skill_description:a,skill_level:i,skill_effect:s,skill_icon:r}=t;this.skillName=e,this.skillDescription=a,this.skillLevel=i,this.skillEffect=s,this.skillIcon=r}}class Dt{date;worldName;guildName;guildLevel;guildFame;guildPoint;guildMasterName;guildMemberCount;guildMember;guildSkill;guildNoblessSkill;guildMark;guildMarkCustom;constructor(t){const{date:e,world_name:a,guild_name:i,guild_level:s,guild_fame:r,guild_point:o,guild_master_name:n,guild_member_count:c,guild_member:l,guild_skill:h,guild_nobless_skill:m,guild_mark:d,guild_mark_custom:p}=t;this.date=new Date(e),this.worldName=a,this.guildName=i,this.guildLevel=s,this.guildFame=r,this.guildPoint=o,this.guildMasterName=n,this.guildMemberCount=c,this.guildMember=l,this.guildSkill=h.map((t=>new yt(t))),this.guildNoblessSkill=m.map((t=>new yt(t))),this.guildMark=d,this.guildMarkCustom=p}}class kt{oguildId;constructor(t){const{oguild_id:e}=t;this.oguildId=e}}class bt{date;ranking;guildName;worldName;guildLevel;guildMasterName;guildMark;guildPoint;constructor(t){const{date:e,ranking:a,guild_name:i,world_name:s,guild_level:r,guild_master_name:o,guild_mark:n,guild_point:c}=t;this.date=new Date(e),this.ranking=a,this.guildName=i,this.worldName=s,this.guildLevel=r,this.guildMasterName=o,this.guildMark=n,this.guildPoint=c}}class xt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new bt(t)))}}class Et{serviceCode;startDateTime;endDateTime;strObstacleContents;constructor(t){const e=t["soap:Envelope"]["soap:Body"][0].GetInspectionInfoResponse[0].GetInspectionInfoResult[0]["diffgr:diffgram"][0].NewDataSet[0].InspectionInfo[0];this.serviceCode=Number(e.serviceCode[0]),this.startDateTime=new Date(e.startDateTime[0]),this.endDateTime=new Date(e.endDateTime[0]),this.strObstacleContents=e.strObstacleContents[0]}}class Ct{date;ranking;characterName;worldName;className;subClassName;characterLevel;characterExp;characterPopularity;characterGuildName;constructor(t){const{date:e,ranking:a,character_name:i,world_name:s,class_name:r,sub_class_name:o,character_level:n,character_exp:c,character_popularity:l,character_guildname:h}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=s,this.className=r,this.subClassName=o,this.characterLevel=n,this.characterExp=c,this.characterPopularity=l,this.characterGuildName=h}}class vt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new Ct(t)))}}class St{date;ranking;characterName;worldName;className;subClassName;characterLevel;theSeedFloor;theSeedTimeRecord;constructor(t){const{date:e,ranking:a,character_name:i,world_name:s,class_name:r,sub_class_name:o,character_level:n,theseed_floor:c,theseed_time_record:l}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=s,this.className=r,this.subClassName=o,this.characterLevel=n,this.theSeedFloor=c,this.theSeedTimeRecord=l}}class Pt{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new St(t)))}}class Ot{date;unionLevel;unionGrade;constructor(t){const{date:e,union_level:a,union_grade:i}=t;this.date=new Date(e),this.unionLevel=a,this.unionGrade=i}}class It{x;y;constructor(t){const{x:e,y:a}=t;this.x=e,this.y=a}}class Nt{x;y;constructor(t){const{x:e,y:a}=t;this.x=e,this.y=a}}class Lt{blockType;blockClass;blockLevel;blockControlPoint;blockPosition;constructor(t){const{block_type:e,block_class:a,block_level:i,block_control_point:s,block_position:r}=t;this.blockType=e,this.blockClass=a,this.blockLevel=i,this.blockControlPoint=new Nt(s),this.blockPosition=r.map((t=>new It(t)))}}class Rt{statFieldId;statFieldEffect;constructor(t){const{stat_field_id:e,stat_field_effect:a}=t;this.statFieldId=e,this.statFieldEffect=a}}class At{date;unionRaiderStat;unionOccupiedStat;unionInnerStat;unionBlock;constructor(t){const{date:e,union_raider_stat:a,union_occupied_stat:i,union_inner_stat:s,union_block:r}=t;this.date=new Date(e),this.unionRaiderStat=a,this.unionOccupiedStat=i,this.unionInnerStat=s.map((t=>new Rt(t))),this.unionBlock=r.map((t=>new Lt(t)))}}class qt{date;ranking;characterName;worldName;className;subClassName;unionLevel;unionPower;constructor(t){const{date:e,ranking:a,character_name:i,world_name:s,class_name:r,sub_class_name:o,union_level:n,union_power:c}=t;this.date=new Date(e),this.ranking=a,this.characterName=i,this.worldName=s,this.className=r,this.subClassName=o,this.unionLevel=n,this.unionPower=c}}class Ut{ranking;constructor(t){const{ranking:e}=t;this.ranking=e.map((t=>new qt(t)))}}class Ht extends Error{name="MapleStoryApiError";errorCode;message;constructor(t){const{name:e,message:a}=t.error;super(a),this.errorCode=Tt[e],this.message=a}}var Mt;t.MapleStoryApiErrorCode=void 0,(Mt=t.MapleStoryApiErrorCode||(t.MapleStoryApiErrorCode={}))[Mt.OPENAPI00001=0]="OPENAPI00001",Mt[Mt.OPENAPI00002=1]="OPENAPI00002",Mt[Mt.OPENAPI00003=2]="OPENAPI00003",Mt[Mt.OPENAPI00004=3]="OPENAPI00004",Mt[Mt.OPENAPI00005=4]="OPENAPI00005",Mt[Mt.OPENAPI00006=5]="OPENAPI00006",Mt[Mt.OPENAPI00007=6]="OPENAPI00007";const Tt={OPENAPI00001:t.MapleStoryApiErrorCode.OPENAPI00001,OPENAPI00002:t.MapleStoryApiErrorCode.OPENAPI00002,OPENAPI00003:t.MapleStoryApiErrorCode.OPENAPI00003,OPENAPI00004:t.MapleStoryApiErrorCode.OPENAPI00004,OPENAPI00005:t.MapleStoryApiErrorCode.OPENAPI00005,OPENAPI00006:t.MapleStoryApiErrorCode.OPENAPI00006,OPENAPI00007:t.MapleStoryApiErrorCode.OPENAPI00007};o.default.extend(l),o.default.extend(d);class Gt{apiKey;static BASE_URL="https://open.api.nexon.com/";static kstOffset=540;timeout;constructor(t){this.apiKey=t,this.timeout=5e3}async getCharacter(t){try{const e="maplestory/v1/id",a=await r.default.get(e,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:{character_name:t}});return new L(a.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterBasic(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/basic",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new x(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterPopularity(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/popularity",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new et(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterStat(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/stat",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new ct(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterHyperStat(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/hyper-stat",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new T(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterPropensity(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/propensity",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new at(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterAbility(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/ability",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new f(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterItemEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/item-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Z(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterCashItemEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/cashitem-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new I(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterSymbolEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/symbol-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new ht(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterSetEffect(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/set-effect",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new rt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterBeautyEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/beauty-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new v(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterAndroidEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/android-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new b(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterPetEquipment(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/pet-equipment",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new tt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterSkill(t,a,i=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const s={ocid:t,character_skill_grade:a,date:Gt.toDateString({year:2023,month:12,day:21},i)};try{const t="maplestory/v1/character/skill",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:s});return new nt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterLinkSkill(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/link-skill",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Q(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterVMatrix(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/vmatrix",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new dt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterHexaMatrix(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/hexamatrix",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new q(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterHexaMatrixStat(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/hexamatrix-stat",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new H(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCharacterDojang(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/character/dojang",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new N(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getUnionInfo(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/user/union",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Ot(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getUnionRaiderInfo(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={ocid:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/user/union-raider",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new At(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getGuild(t,a){try{const e="maplestory/v1/guild/id",i=await r.default.get(e,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:{guild_name:t,world_name:a}});return new kt(i.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getGuildBasic(t,a=Gt.getProperDefaultDateOptions({hour:1,minute:0,dateOffset:1})){const i={oguild_id:t,date:Gt.toDateString({year:2023,month:12,day:21},a)};try{const t="maplestory/v1/guild/basic",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Dt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getCubeHistory(t,a){const i={count:t};"string"==typeof a?i.cursor=a:"object"==typeof a&&(i.date=Gt.toDateString({year:2022,month:11,day:25},a??Gt.getProperDefaultDateOptions({hour:4,minute:0,dateOffset:1})));try{const t="maplestory/v1/history/cube",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new ft(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getOverallRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a)};if(t){const{worldName:e,worldType:a,characterClass:s,ocid:r,page:o}=t;i.world_name=e,i.world_type=a,i.class=s,i.ocid=r,i.page=o}try{const t="maplestory/v1/ranking/overall",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new vt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getUnionRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a)};if(t){const{worldName:e,ocid:a,page:s}=t;i.world_name=e,i.ocid=a,i.page=s}try{const t="maplestory/v1/ranking/union",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Ut(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getGuildRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a),ranking_type:0};if(t){const{worldName:e,rankingType:a,ocid:s,page:r}=t;i.world_name=e,i.ranking_type=a,i.ocid=s,i.page=r}try{const t="maplestory/v1/ranking/guild",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new xt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getDojangRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a),difficulty:0};if(t){const{worldName:e,difficulty:a,characterClass:s,ocid:r,page:o}=t;i.world_name=e,i.difficulty=a,i.class=s,i.ocid=r,i.page=o}try{const t="maplestory/v1/ranking/dojang",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new wt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getSeedRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a)};if(t){const{worldName:e,ocid:a,page:s}=t;i.world_name=e,i.ocid=a,i.page=s}try{const t="maplestory/v1/ranking/theseed",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new Pt(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getAchievementRanking(t,a=Gt.getProperDefaultDateOptions({hour:8,minute:30,dateOffset:0})){const i={date:Gt.toDateString({year:2023,month:12,day:22},a)};if(t){const{ocid:e,page:a}=t;i.ocid=e,i.page=a}try{const t="maplestory/v1/ranking/achievement",e=await r.default.get(t,{baseURL:Gt.BASE_URL,timeout:this.timeout,headers:this.buildHeaders(),params:i});return new u(e.data)}catch(t){if(t instanceof e.AxiosError){const e=t.response.data;throw new Ht(e)}throw t}}async getInspectionInfo(){const t=(new n.default.Builder).buildObject({"soap:Envelope":{$:{"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:soap":"http://schemas.xmlsoap.org/soap/envelope/"},"soap:Body":{GetInspectionInfo:{$:{xmlns:"https://api.maplestory.nexon.com/soap/"}}}}}),e=await r.default.post("soap/maplestory.asmx",t,{baseURL:"https://api.maplestory.nexon.com/",timeout:this.timeout,headers:{SOAPAction:"https://api.maplestory.nexon.com/soap/GetInspectionInfo","Content-Type":"text/xml; charset=utf-8"}}),a=await n.default.parseStringPromise(e.data);return new Et(a)}buildHeaders(){return{"x-nxopen-api-key":this.apiKey}}static getProperDefaultDateOptions(t){const{hour:e,minute:a,dateOffset:i}=t,s=o.default().utcOffset(Gt.kstOffset),r=o.default().utcOffset(Gt.kstOffset).hour(e).minute(a);let n;return n=s.isAfter(r)?s:s.subtract(1,"day"),n=n.subtract(i??0,"day"),{year:n.year(),month:n.month()+1,day:n.date()}}static toDateString(t,e){const{year:a,month:i,day:s}=t,{year:r,month:n,day:c}=e;if(r<a||r===a&&n<i||r===a&&n===i&&c<s)throw new Error(`You can only retrieve data after ${o.default(`${a}-${i}-${s}`).format("YYYY-MM-DD")}.`);return o.default(`${r}-${n}-${c}`).utcOffset(Gt.kstOffset).format("YYYY-MM-DD")}}t.AchievementRankingDto=p,t.AchievementRankingResponseDto=u,t.CharacterAbilityDto=f,t.CharacterAbilityInfoDto=_,t.CharacterAndroidCashItemEquipmentColoringPrismDto=g,t.CharacterAndroidCashItemEquipmentDto=y,t.CharacterAndroidCashItemEquipmentOptionDto=w,t.CharacterAndroidEquipmentDto=b,t.CharacterAndroidEquipmentFaceDto=D,t.CharacterAndroidEquipmentHairDto=k,t.CharacterBasicDto=x,t.CharacterBeautyEquipmentDto=v,t.CharacterBeautyEquipmentFaceDto=E,t.CharacterBeautyEquipmentHairDto=C,t.CharacterCashItemEquipmentColoringPrismDto=S,t.CharacterCashItemEquipmentDto=I,t.CharacterCashItemEquipmentOptionDto=P,t.CharacterCashItemEquipmentPresetDto=O,t.CharacterDojangDto=N,t.CharacterDto=L,t.CharacterHexaMatrixDto=q,t.CharacterHexaMatrixEquipmentDto=A,t.CharacterHexaMatrixEquipmentLinkedSkillDto=R,t.CharacterHexaMatrixStatCoreDto=U,t.CharacterHexaMatrixStatDto=H,t.CharacterHyperStatDto=T,t.CharacterHyperStatInfoDto=M,t.CharacterItemEquipmentAddOptionDto=G,t.CharacterItemEquipmentBaseOptionDto=$,t.CharacterItemEquipmentDto=Z,t.CharacterItemEquipmentEtcOptionDto=B,t.CharacterItemEquipmentExceptionalOptionDto=j,t.CharacterItemEquipmentInfoDto=z,t.CharacterItemEquipmentStarforceOptionDto=F,t.CharacterItemEquipmentTitleDto=V,t.CharacterItemEquipmentTotalOptionDto=Y,t.CharacterLinkSkillDto=Q,t.CharacterLinkSkillInfoDto=K,t.CharacterPetEquipmentAutoSkillDto=X,t.CharacterPetEquipmentDto=tt,t.CharacterPetEquipmentItemDto=J,t.CharacterPetEquipmentItemOptionDto=W,t.CharacterPopularityDto=et,t.CharacterPropensityDto=at,t.CharacterSetEffectDto=rt,t.CharacterSetEffectInfoDto=st,t.CharacterSetEffectOptionInfoDto=it,t.CharacterSkillDto=nt,t.CharacterSkillInfoDto=ot,t.CharacterStatDto=ct,t.CharacterSymbolEquipmentDto=ht,t.CharacterSymbolEquipmentInfoDto=lt,t.CharacterVMatrixCodeEquipmentDto=mt,t.CharacterVMatrixDto=dt,t.CubeHistoryDto=_t,t.CubeHistoryResponseDto=ft,t.CubeResultOptionDto=ut,t.DojangRankingDto=gt,t.DojangRankingResponseDto=wt,t.GuildBasicDto=Dt,t.GuildDto=kt,t.GuildRankingDto=bt,t.GuildRankingResponseDto=xt,t.GuildSkillDto=yt,t.InspectionInfoDto=Et,t.MapleStoryApi=Gt,t.MapleStoryApiError=Ht,t.OverallRankingDto=Ct,t.OverallRankingResponseDto=vt,t.TheSeedRankingDto=St,t.TheSeedRankingResponseDto=Pt,t.UnionDto=Ot,t.UnionRaiderBlockControlPointDto=Nt,t.UnionRaiderBlockDto=Lt,t.UnionRaiderBlockPositionDto=It,t.UnionRaiderDto=At,t.UnionRaiderInnerStatDto=Rt,t.UnionRankingDto=qt,t.UnionRankingResponseDto=Ut,t.potentialOptionGradeFromString=pt})); |
{ | ||
"name": "maplestory-openapi", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "This JavaScript library enables the use of the MapleStory OpenAPI of Nexon.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -16,3 +16,3 @@ # MapleStory OpenAPI JavaScript Library | ||
```bash | ||
npm install maplestory-openapi@2.2.0 # Replace with the latest version | ||
npm install maplestory-openapi@2.2.1 # Replace with the latest version | ||
``` | ||
@@ -19,0 +19,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
474021