diff --git a/README.md b/README.md index a6dd6c9..a490649 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Discord: https://discord.gg/ZVJEkjUTkx - Player specific outfit locations (Restricted via CitizenID) - Makeup Secondary Color - QBCore Theme -- Clothing Blacklist support +- Component & Props Blacklist support ## New Preview (with Tattoos) @@ -99,62 +99,80 @@ Here is how the JSON file would look like, for such configuration: ```json { "male": { - "masks": [ - { - "drawable": 10 - }, - { - "drawable": 11 - }, - { - "drawable": 12 - }, - { - "drawable": 13 - }, - { - "drawable": 14, - "textures": [5, 7, 10, 11, 12, 13] - } - ], - "upperBody": [], - "lowerBody": [], - "bags": [], - "shoes": [], - "scarfAndChains": [], - "shirts": [], - "bodyArmor": [], - "decals": [], - "jackets": [ - { - "drawable": 10 - }, - { - "drawable": 11, - "textures": [1, 2, 3] - }, - { - "drawable": 12 - }, - { - "drawable": 13 - }, - { - "drawable": 18 - } - ] + "components": { + "masks": [ + { + "drawable": 10 + }, + { + "drawable": 11 + }, + { + "drawable": 12 + }, + { + "drawable": 13 + }, + { + "drawable": 14, + "textures": [ 5, 7, 10, 11, 12, 13 ] + } + ], + "upperBody": [], + "lowerBody": [], + "bags": [], + "shoes": [], + "scarfAndChains": [], + "shirts": [], + "bodyArmor": [], + "decals": [], + "jackets": [ + { + "drawable": 10 + }, + { + "drawable": 11, + "textures": [ 1, 2, 3 ] + }, + { + "drawable": 12 + }, + { + "drawable": 13 + }, + { + "drawable": 18 + } + ] + }, + "props": { + "hats": [], + "glasses": [], + "ear": [], + "watches": [], + "bracelets": [] + } }, "female": { - "masks": [], - "upperBody": [], - "lowerBody": [], - "bags": [], - "shoes": [], - "scarfAndChains": [], - "shirts": [], - "bodyArmor": [], - "decals": [], - "jackets": [] + "components": { + "masks": [], + "upperBody": [], + "lowerBody": [], + "bags": [], + "shoes": [], + "scarfAndChains": [], + "shirts": [], + "bodyArmor": [], + "decals": [], + "jackets": [] + }, + "props": { + "hats": [], + "glasses": [], + "ear": [], + "watches": [], + "bracelets": [] + } } } ``` diff --git a/blacklist.json b/blacklist.json index 7040a08..cd813fd 100644 --- a/blacklist.json +++ b/blacklist.json @@ -1,26 +1,44 @@ { "male": { - "masks": [], - "upperBody": [], - "lowerBody": [], - "bags": [], - "shoes": [], - "scarfAndChains": [], - "shirts": [], - "bodyArmor": [], - "decals": [], - "jackets": [] + "components": { + "masks": [], + "upperBody": [], + "lowerBody": [], + "bags": [], + "shoes": [], + "scarfAndChains": [], + "shirts": [], + "bodyArmor": [], + "decals": [], + "jackets": [] + }, + "props": { + "hats": [], + "glasses": [], + "ear": [], + "watches": [], + "bracelets": [] + } }, "female": { - "masks": [], - "upperBody": [], - "lowerBody": [], - "bags": [], - "shoes": [], - "scarfAndChains": [], - "shirts": [], - "bodyArmor": [], - "decals": [], - "jackets": [] + "components": { + "masks": [], + "upperBody": [], + "lowerBody": [], + "bags": [], + "shoes": [], + "scarfAndChains": [], + "shirts": [], + "bodyArmor": [], + "decals": [], + "jackets": [] + }, + "props": { + "hats": [], + "glasses": [], + "ear": [], + "watches": [], + "bracelets": [] + } } } diff --git a/game/dist/index.js b/game/dist/index.js index bebedad..d33bfbc 100644 --- a/game/dist/index.js +++ b/game/dist/index.js @@ -1 +1 @@ -(()=>{var F=e=>new Promise(a=>setTimeout(a,e)),H=e=>{let a=GetEntityModel(e),o=GetHashKey("mp_m_freemode_01"),r=GetHashKey("mp_f_freemode_01");return a===o||a===r},g=e=>{let a=GetEntityModel(e),o=GetHashKey("mp_m_freemode_01");return a===o};function h(e){return{x:e[0],y:e[1],z:e[2]}}var se=()=>{let e=PlayerPedId(),a=GetEntityHealth(e),o=GetPedArmour(e);return[a,o]},ce=(e,a)=>{let o=PlayerPedId();SetEntityHealth(o,e),SetPedArmour(o,a)};var O=[0,1,2,3,4,5,6,7,8,9,10,11],D=[0,1,2,6,7],S=["noseWidth","nosePeakHigh","nosePeakSize","noseBoneHigh","nosePeakLowering","noseBoneTwist","eyeBrownHigh","eyeBrownForward","cheeksBoneHigh","cheeksBoneWidth","cheeksWidth","eyesOpening","lipsThickness","jawBoneWidth","jawBoneBackSize","chinBoneLowering","chinBoneLenght","chinBoneSize","chinHole","neckThickness"],k=["blemishes","beard","eyebrows","ageing","makeUp","blush","complexion","sunDamage","lipstick","moleAndFreckles","chestHair","bodyBlemishes"],de=["Green","Emerald","Light Blue","Ocean Blue","Light Brown","Dark Brown","Hazel","Dark Gray","Light Gray","Pink","Yellow","Purple","Blackout","Shades of Gray","Tequila Sunrise","Atomic","Warp","ECola","Space Ranger","Ying Yang","Bullseye","Lizard","Dragon","Extra Terrestrial","Goat","Smiley","Possessed","Demon","Infected","Alien","Undead","Zombie"];var _e={ped:!0,headBlend:!0,faceFeatures:!0,headOverlays:!0,components:!0,props:!0,tattoos:!0},j={head:{animations:{on:{dict:"mp_masks@standard_car@ds@",anim:"put_on_mask",move:51,duration:600},off:{dict:"missheist_agency2ahelmet",anim:"take_off_helmet_stand",move:51,duration:1200}},props:{male:[[1,0]],female:[[1,0]]}},body:{animations:{on:{dict:"clothingtie",anim:"try_tie_negative_a",move:51,duration:1200},off:{dict:"clothingtie",anim:"try_tie_negative_a",move:51,duration:1200}},props:{male:[[11,252],[3,15],[8,15],[10,0],[5,0]],female:[[11,15],[8,14],[3,15],[10,0],[5,0]]}},bottom:{animations:{on:{dict:"re@construction",anim:"out_of_breath",move:51,duration:1300},off:{dict:"re@construction",anim:"out_of_breath",move:51,duration:1300}},props:{male:[[4,61],[6,34]],female:[[4,15],[6,35]]}}};function ye(){RegisterNuiCallbackType("appearance_get_locales"),RegisterNuiCallbackType("appearance_get_settings_and_data"),RegisterNuiCallbackType("appearance_set_camera"),RegisterNuiCallbackType("appearance_turn_around"),RegisterNuiCallbackType("appearance_rotate_camera"),RegisterNuiCallbackType("appearance_change_model"),RegisterNuiCallbackType("appearance_change_head_blend"),RegisterNuiCallbackType("appearance_change_face_feature"),RegisterNuiCallbackType("appearance_change_hair"),RegisterNuiCallbackType("appearance_change_head_overlay"),RegisterNuiCallbackType("appearance_change_eye_color"),RegisterNuiCallbackType("appearance_change_component"),RegisterNuiCallbackType("appearance_change_prop"),RegisterNuiCallbackType("appearance_apply_tattoo"),RegisterNuiCallbackType("appearance_preview_tattoo"),RegisterNuiCallbackType("appearance_delete_tattoo"),RegisterNuiCallbackType("appearance_wear_clothes"),RegisterNuiCallbackType("appearance_remove_clothes"),RegisterNuiCallbackType("appearance_save"),RegisterNuiCallbackType("appearance_exit"),RegisterNuiCallbackType("rotate_left"),RegisterNuiCallbackType("rotate_right"),on("__cfx_nui:appearance_get_locales",(e,a)=>{let o=LoadResourceFile(GetCurrentResourceName(),`locales/${GetConvar("fivem-appearance:locale","en")}.json`);a(o)}),on("__cfx_nui:appearance_get_settings_and_data",(e,a)=>{let o=ue(),r=$(),t=Y();a({config:o,appearanceData:r,appearanceSettings:t})}),on("__cfx_nui:appearance_set_camera",(e,a)=>{a({}),ee(e)}),on("__cfx_nui:appearance_turn_around",(e,a)=>{a({}),B(PlayerPedId(),180)}),on("__cfx_nui:appearance_rotate_camera",(e,a)=>{a({}),me(e)}),on("__cfx_nui:appearance_change_model",async(e,a)=>{await L(e);let o=PlayerPedId();SetEntityHeading(PlayerPedId(),Z),SetEntityInvincible(o,!0),TaskStandStill(o,-1);let r=x(o),t=Y();a({appearanceSettings:t,appearanceData:r})}),on("__cfx_nui:appearance_change_component",(e,a)=>{let o=PlayerPedId();z(o,e),a(Q(o,e.component_id))}),on("__cfx_nui:appearance_change_prop",(e,a)=>{let o=PlayerPedId();V(o,e),a(X(o,e.prop_id))}),on("__cfx_nui:appearance_change_head_blend",(e,a)=>{a({}),M(PlayerPedId(),e)}),on("__cfx_nui:appearance_change_face_feature",(e,a)=>{a({}),G(PlayerPedId(),e)}),on("__cfx_nui:appearance_change_head_overlay",(e,a)=>{a({}),N(PlayerPedId(),e)}),on("__cfx_nui:appearance_change_hair",(e,a)=>{let o=PlayerPedId();T(o,e),a(pe(o,e))}),on("__cfx_nui:appearance_change_eye_color",(e,a)=>{a({}),A(PlayerPedId(),e)}),on("__cfx_nui:appearance_apply_tattoo",(e,a)=>{a({}),fe(PlayerPedId(),e)}),on("__cfx_nui:appearance_preview_tattoo",(e,a)=>{a({});let{data:o,tattoo:r}=e;he(PlayerPedId(),o,r)}),on("__cfx_nui:appearance_delete_tattoo",(e,a)=>{a({}),ge(PlayerPedId(),e)}),on("__cfx_nui:appearance_wear_clothes",(e,a)=>{a({});let{data:o,key:r}=e;Pe(o,r)}),on("__cfx_nui:appearance_remove_clothes",(e,a)=>{a({}),ve(e)}),on("__cfx_nui:appearance_save",(e,a)=>{a({}),J(e)}),on("__cfx_nui:appearance_exit",(e,a)=>{a({}),J()}),on("__cfx_nui:rotate_left",(e,a)=>{a({}),B(PlayerPedId(),10)}),on("__cfx_nui:rotate_right",(e,a)=>{a({}),B(PlayerPedId(),-10)})}var Ie=global.exports,Ce={default:{coords:{x:0,y:2.2,z:.2},point:{x:0,y:0,z:-.05}},head:{coords:{x:0,y:.9,z:.65},point:{x:0,y:0,z:.6}},body:{coords:{x:0,y:1.2,z:.2},point:{x:0,y:0,z:.2}},bottom:{coords:{x:0,y:.98,z:-.7},point:{x:0,y:0,z:-.9}}},Ee={default:{x:1.5,y:-1},head:{x:.7,y:-.45},body:{x:1.2,y:-.45},bottom:{x:.7,y:-.45}},U,oe,I,E,Z,m,w,b,C,He={};function xe(){let e={hair:[],makeUp:[]};for(let a=0;aQ(e,y)),t=D.map(y=>X(e,y)),i={shapeFirst:{min:0,max:45},shapeSecond:{min:0,max:45},skinFirst:{min:0,max:45},skinSecond:{min:0,max:45},shapeMix:{min:0,max:1,factor:.1},skinMix:{min:0,max:1,factor:.1}},l=S.reduce((y,p)=>({...y,[p]:{min:-1,max:1,factor:.1}}),{}),n=xe(),s={beard:n.hair,eyebrows:n.hair,chestHair:n.hair,makeUp:n.makeUp,blush:n.makeUp,lipstick:n.makeUp},c=k.reduce((y,p,f)=>{let P={style:{min:0,max:GetPedHeadOverlayNum(f)-1},opacity:{min:0,max:1,factor:.1}};return s[p]&&Object.assign(P,{color:{items:s[p]}}),{...y,[p]:P}},{}),d={style:{min:0,max:GetNumberOfPedDrawableVariations(e,2)-1},color:{items:n.hair},highlight:{items:n.hair},texture:{min:0,max:GetNumberOfPedTextureVariations(e,2,GetPedDrawableVariation(e,2))-1}};return{ped:a,components:r,props:t,headBlend:i,faceFeatures:l,headOverlays:c,hair:d,eyeColor:{min:0,max:30},tattoos:o}}function ue(){return oe}function ee(e){if(C)return;e!=="current"&&(w=e);let{coords:a,point:o}=Ce[w],r=b?-1:1;if(m){let t=h(GetOffsetFromEntityInWorldCoords(PlayerPedId(),a.x*r,a.y*r,a.z)),i=h(GetOffsetFromEntityInWorldCoords(PlayerPedId(),o.x,o.y,o.z)),l=CreateCameraWithParams("DEFAULT_SCRIPTED_CAMERA",t.x,t.y,t.z,0,0,0,50,!1,0);PointCamAtCoord(l,i.x,i.y,i.z),SetCamActiveWithInterp(l,m,1e3,1,1),C=!0;let n=setInterval(()=>{!IsCamInterpolating(m)&&IsCamActive(l)&&(DestroyCam(m,!1),m=l,C=!1,clearInterval(n))},500)}else{let t=h(GetOffsetFromEntityInWorldCoords(PlayerPedId(),a.x,a.y,a.z)),i=h(GetOffsetFromEntityInWorldCoords(PlayerPedId(),o.x,o.y,o.z));m=CreateCameraWithParams("DEFAULT_SCRIPTED_CAMERA",t.x,t.y,t.z,0,0,0,50,!1,0),PointCamAtCoord(m,i.x,i.y,i.z),SetCamActive(m,!0)}}async function me(e){if(C)return;let{coords:a,point:o}=Ce[w],r=Ee[w],t,i=b?-1:1;e==="left"?t=1:e==="right"&&(t=-1);let l=h(GetOffsetFromEntityInWorldCoords(PlayerPedId(),(a.x+r.x)*t*i,(a.y+r.y)*i,a.z)),n=h(GetOffsetFromEntityInWorldCoords(PlayerPedId(),o.x,o.y,o.z)),s=CreateCameraWithParams("DEFAULT_SCRIPTED_CAMERA",l.x,l.y,l.z,0,0,0,50,!1,0);PointCamAtCoord(s,n.x,n.y,n.z),SetCamActiveWithInterp(s,m,1e3,1,1),C=!0;let c=setInterval(()=>{!IsCamInterpolating(m)&&IsCamActive(s)&&(DestroyCam(m,!1),m=s,C=!1,clearInterval(c))},500)}function B(e,a){b=!b;let o=OpenSequenceTask()??0;o!==0&&(TaskGoStraightToCoord(0,E.x,E.y,E.z,8,-1,GetEntityHeading(e)-a,.1),TaskStandStill(0,-1),CloseSequenceTask(o),ClearPedTasks(e),TaskPerformSequence(e,o),ClearSequenceTask(o))}async function Pe(e,a){let{animations:o,props:r}=j[a],{dict:t,anim:i,move:l,duration:n}=o.on,{male:s,female:c}=r,{components:d}=e,u=PlayerPedId(),y=g(u);for(RequestAnimDict(t);!HasAnimDictLoaded(t);)await F(0);if(y)for(let p=0;pHe,R=(e,a)=>{He=a;let o=g(e);ClearPedDecorations(e);for(let r in a)for(let t=0;t{let o=g(e);ClearPedDecorations(e);for(let r in a)for(let t=0;t{let o=g(e);ClearPedDecorations(e);for(let r in a)for(let t=0;t{let r=g(e),{collection:t,hashFemale:i,hashMale:l}=o,n=r?l:i;ClearPedDecorations(e),AddPedDecorationFromHashes(e,GetHashKey(t),GetHashKey(n));for(let s in a)for(let c=0;c({...e,[GetHashKey(a)]:a}),{});function Se(e){return Be[GetEntityModel(e)]}function ke(e){let a=[];return O.forEach(o=>{a.push({component_id:o,drawable:GetPedDrawableVariation(e,o),texture:GetPedTextureVariation(e,o)})}),a}function Me(e){let a=[];return D.forEach(o=>{a.push({prop_id:o,drawable:GetPedPropIndex(e,o),texture:GetPedPropTextureIndex(e,o)})}),a}function Ge(e){let a=new ArrayBuffer(80);global.Citizen.invokeNative(De,e,new Uint32Array(a));let{0:o,2:r,6:t,8:i}=new Uint32Array(a),{0:l,2:n}=new Float32Array(a,48),s=parseFloat(l.toFixed(1)),c=parseFloat(n.toFixed(1));return{shapeFirst:o,shapeSecond:r,skinFirst:t,skinSecond:i,shapeMix:s,skinMix:c}}function Ne(e){return S.reduce((o,r,t)=>{let i=parseFloat(GetPedFaceFeature(e,t).toFixed(1));return{...o,[r]:i}},{})}function Te(e){return k.reduce((o,r,t)=>{let[,i,,l,n,s]=GetPedHeadOverlayData(e,t),c=i!==255,d=c?i:0,u=c?parseFloat(s.toFixed(1)):0,y;return r==="makeUp"?y={style:d,opacity:u,color:l,secondColor:n}:y={style:d,opacity:u,color:l},{...o,[r]:y}},{})}function Ae(e){return{style:GetPedDrawableVariation(e,2),color:GetPedHairColor(e),highlight:GetPedHairHighlightColor(e),texture:GetPedTextureVariation(e,2)}}function x(e){let a=GetPedEyeColor(e);return{model:Se(e)||"mp_m_freemode_01",headBlend:Ge(e),faceFeatures:Ne(e),headOverlays:Te(e),components:ke(e),props:Me(e),hair:Ae(e),eyeColor:a{let t=a[o];SetPedFaceFeature(e,r,t)})}function N(e,a){!a||k.forEach((o,r)=>{let t=a[o];if(SetPedHeadOverlay(e,r,t.style,t.opacity),t.color||t.color===0){let l=1;var i=t.color;({blush:!0,lipstick:!0,makeUp:!0})[o]&&(l=2),o==="makeUp"&&(i=t.secondColor),SetPedHeadOverlayColor(e,r,l,t.color,i)}})}function T(e,a){if(!a)return;let{style:o,color:r,highlight:t,texture:i}=a;SetPedComponentVariation(e,2,o,i,2),SetPedHairColor(e,r,t)}function A(e,a){!a||SetPedEyeColor(e,a)}function z(e,a){if(!a)return;let{component_id:o,drawable:r,texture:t}=a;({0:!0,2:!0})[o]&&H(e)||SetPedComponentVariation(e,o,r,t,0)}function ne(e,a){!a||a.forEach(o=>z(e,o))}function V(e,a){if(!a)return;let{prop_id:o,drawable:r,texture:t}=a;r===-1?ClearPedProp(e,o):SetPedPropIndex(e,o,r,t,!1)}function le(e,a){!a||a.forEach(o=>V(e,o))}async function ie(e){if(!e)return;let{model:a,components:o,props:r,headBlend:t,faceFeatures:i,headOverlays:l,hair:n,eyeColor:s,tattoos:c}=e;await L(a);let d=PlayerPedId();ne(d,o),le(d,r),t&&M(d,t),i&&G(d,i),l&&N(d,l),n&&T(d,n),s&&A(d,s),c&&R(d,c)}function Le(e,a){if(!a)return;let{components:o,props:r,headBlend:t,faceFeatures:i,headOverlays:l,hair:n,eyeColor:s,tattoos:c}=a;ne(e,o),le(e,r),t&&M(e,t),i&&G(e,i),l&&N(e,l),n&&T(e,n),s&&A(e,s),c&&R(e,c)}function ze(){be.loadModule(),_("getPedModel",Se),_("getPedComponents",ke),_("getPedProps",Me),_("getPedHeadBlend",Ge),_("getPedFaceFeatures",Ne),_("getPedHeadOverlays",Te),_("getPedHair",Ae),_("getPedTattoos",te),_("getPedAppearance",x),_("setPlayerModel",L),_("setPedHeadBlend",M),_("setPedFaceFeatures",G),_("setPedHeadOverlays",N),_("setPedHair",T),_("setPedEyeColor",A),_("setPedComponent",z),_("setPedComponents",ne),_("setPedProp",V),_("setPedProps",le),_("setPedTattoos",R),_("setPlayerAppearance",ie),_("setPedAppearance",Le)}ze();})(); +(()=>{var b=e=>new Promise(a=>setTimeout(a,e)),C=e=>{let a=GetEntityModel(e),t=GetHashKey("mp_m_freemode_01"),o=GetHashKey("mp_f_freemode_01");return a===t||a===o},f=e=>{let a=GetEntityModel(e),t=GetHashKey("mp_m_freemode_01");return a===t};function g(e){return{x:e[0],y:e[1],z:e[2]}}var le=()=>{let e=PlayerPedId(),a=GetEntityHealth(e),t=GetPedArmour(e);return[a,t]},se=(e,a)=>{let t=PlayerPedId();SetEntityHealth(t,e),SetPedArmour(t,a)};var O=[0,1,2,3,4,5,6,7,8,9,10,11],D=[0,1,2,6,7],F=["noseWidth","nosePeakHigh","nosePeakSize","noseBoneHigh","nosePeakLowering","noseBoneTwist","eyeBrownHigh","eyeBrownForward","cheeksBoneHigh","cheeksBoneWidth","cheeksWidth","eyesOpening","lipsThickness","jawBoneWidth","jawBoneBackSize","chinBoneLowering","chinBoneLenght","chinBoneSize","chinHole","neckThickness"],S=["blemishes","beard","eyebrows","ageing","makeUp","blush","complexion","sunDamage","lipstick","moleAndFreckles","chestHair","bodyBlemishes"],ce=["Green","Emerald","Light Blue","Ocean Blue","Light Brown","Dark Brown","Hazel","Dark Gray","Light Gray","Pink","Yellow","Purple","Blackout","Shades of Gray","Tequila Sunrise","Atomic","Warp","ECola","Space Ranger","Ying Yang","Bullseye","Lizard","Dragon","Extra Terrestrial","Goat","Smiley","Possessed","Demon","Infected","Alien","Undead","Zombie"];var de={ped:!0,headBlend:!0,faceFeatures:!0,headOverlays:!0,components:!0,props:!0,tattoos:!0},j={head:{animations:{on:{dict:"mp_masks@standard_car@ds@",anim:"put_on_mask",move:51,duration:600},off:{dict:"missheist_agency2ahelmet",anim:"take_off_helmet_stand",move:51,duration:1200}},props:{male:[[1,0]],female:[[1,0]]}},body:{animations:{on:{dict:"clothingtie",anim:"try_tie_negative_a",move:51,duration:1200},off:{dict:"clothingtie",anim:"try_tie_negative_a",move:51,duration:1200}},props:{male:[[11,252],[3,15],[8,15],[10,0],[5,0]],female:[[11,15],[8,14],[3,15],[10,0],[5,0]]}},bottom:{animations:{on:{dict:"re@construction",anim:"out_of_breath",move:51,duration:1300},off:{dict:"re@construction",anim:"out_of_breath",move:51,duration:1300}},props:{male:[[4,61],[6,34]],female:[[4,15],[6,35]]}}};function _e(){RegisterNuiCallbackType("appearance_get_locales"),RegisterNuiCallbackType("appearance_get_settings_and_data"),RegisterNuiCallbackType("appearance_set_camera"),RegisterNuiCallbackType("appearance_turn_around"),RegisterNuiCallbackType("appearance_rotate_camera"),RegisterNuiCallbackType("appearance_change_model"),RegisterNuiCallbackType("appearance_change_head_blend"),RegisterNuiCallbackType("appearance_change_face_feature"),RegisterNuiCallbackType("appearance_change_hair"),RegisterNuiCallbackType("appearance_change_head_overlay"),RegisterNuiCallbackType("appearance_change_eye_color"),RegisterNuiCallbackType("appearance_change_component"),RegisterNuiCallbackType("appearance_change_prop"),RegisterNuiCallbackType("appearance_apply_tattoo"),RegisterNuiCallbackType("appearance_preview_tattoo"),RegisterNuiCallbackType("appearance_delete_tattoo"),RegisterNuiCallbackType("appearance_wear_clothes"),RegisterNuiCallbackType("appearance_remove_clothes"),RegisterNuiCallbackType("appearance_save"),RegisterNuiCallbackType("appearance_exit"),RegisterNuiCallbackType("rotate_left"),RegisterNuiCallbackType("rotate_right"),on("__cfx_nui:appearance_get_locales",(e,a)=>{let t=LoadResourceFile(GetCurrentResourceName(),`locales/${GetConvar("fivem-appearance:locale","en")}.json`);a(t)}),on("__cfx_nui:appearance_get_settings_and_data",(e,a)=>{let t=ue(),o=$(),r=Y();a({config:t,appearanceData:o,appearanceSettings:r})}),on("__cfx_nui:appearance_set_camera",(e,a)=>{a({}),ee(e)}),on("__cfx_nui:appearance_turn_around",(e,a)=>{a({}),B(PlayerPedId(),180)}),on("__cfx_nui:appearance_rotate_camera",(e,a)=>{a({}),pe(e)}),on("__cfx_nui:appearance_change_model",async(e,a)=>{await L(e);let t=PlayerPedId();SetEntityHeading(PlayerPedId(),Z),SetEntityInvincible(t,!0),TaskStandStill(t,-1);let o=H(t),r=Y();a({appearanceSettings:r,appearanceData:o})}),on("__cfx_nui:appearance_change_component",(e,a)=>{let t=PlayerPedId();z(t,e),a(Q(t,e.component_id))}),on("__cfx_nui:appearance_change_prop",(e,a)=>{let t=PlayerPedId();V(t,e),a(X(t,e.prop_id))}),on("__cfx_nui:appearance_change_head_blend",(e,a)=>{a({}),M(PlayerPedId(),e)}),on("__cfx_nui:appearance_change_face_feature",(e,a)=>{a({}),k(PlayerPedId(),e)}),on("__cfx_nui:appearance_change_head_overlay",(e,a)=>{a({}),G(PlayerPedId(),e)}),on("__cfx_nui:appearance_change_hair",(e,a)=>{let t=PlayerPedId();N(t,e),a(ye(t,e))}),on("__cfx_nui:appearance_change_eye_color",(e,a)=>{a({}),T(PlayerPedId(),e)}),on("__cfx_nui:appearance_apply_tattoo",(e,a)=>{a({}),ve(PlayerPedId(),e)}),on("__cfx_nui:appearance_preview_tattoo",(e,a)=>{a({});let{data:t,tattoo:o}=e;ge(PlayerPedId(),t,o)}),on("__cfx_nui:appearance_delete_tattoo",(e,a)=>{a({}),fe(PlayerPedId(),e)}),on("__cfx_nui:appearance_wear_clothes",(e,a)=>{a({});let{data:t,key:o}=e;me(t,o)}),on("__cfx_nui:appearance_remove_clothes",(e,a)=>{a({}),Pe(e)}),on("__cfx_nui:appearance_save",(e,a)=>{a({}),J(e)}),on("__cfx_nui:appearance_exit",(e,a)=>{a({}),J()}),on("__cfx_nui:rotate_left",(e,a)=>{a({}),B(PlayerPedId(),10)}),on("__cfx_nui:rotate_right",(e,a)=>{a({}),B(PlayerPedId(),-10)})}var Ie=global.exports,he={default:{coords:{x:0,y:2.2,z:.2},point:{x:0,y:0,z:-.05}},head:{coords:{x:0,y:.9,z:.65},point:{x:0,y:0,z:.6}},body:{coords:{x:0,y:1.2,z:.2},point:{x:0,y:0,z:.2}},bottom:{coords:{x:0,y:.98,z:-.7},point:{x:0,y:0,z:-.9}}},we={default:{x:1.5,y:-1},head:{x:.7,y:-.45},body:{x:1.2,y:-.45},bottom:{x:.7,y:-.45}},U,ae,A,I,Z,m,w,x,h,Ce={};function He(){let e={hair:[],makeUp:[]};for(let a=0;aQ(e,y)),r=D.map(y=>X(e,y)),n={shapeFirst:{min:0,max:45},shapeSecond:{min:0,max:45},skinFirst:{min:0,max:45},skinSecond:{min:0,max:45},shapeMix:{min:0,max:1,factor:.1},skinMix:{min:0,max:1,factor:.1}},l=F.reduce((y,u)=>({...y,[u]:{min:-1,max:1,factor:.1}}),{}),i=He(),s={beard:i.hair,eyebrows:i.hair,chestHair:i.hair,makeUp:i.makeUp,blush:i.makeUp,lipstick:i.makeUp},c=S.reduce((y,u,v)=>{let P={style:{min:0,max:GetPedHeadOverlayNum(v)-1},opacity:{min:0,max:1,factor:.1}};return s[u]&&Object.assign(P,{color:{items:s[u]}}),{...y,[u]:P}},{}),d={style:{min:0,max:GetNumberOfPedDrawableVariations(e,2)-1},color:{items:i.hair},highlight:{items:i.hair},texture:{min:0,max:GetNumberOfPedTextureVariations(e,2,GetPedDrawableVariation(e,2))-1}};return{ped:a,components:o,props:r,headBlend:n,faceFeatures:l,headOverlays:c,hair:d,eyeColor:{min:0,max:30},tattoos:t}}function ue(){return ae}function ee(e){if(h)return;e!=="current"&&(w=e);let{coords:a,point:t}=he[w],o=x?-1:1;if(m){let r=g(GetOffsetFromEntityInWorldCoords(PlayerPedId(),a.x*o,a.y*o,a.z)),n=g(GetOffsetFromEntityInWorldCoords(PlayerPedId(),t.x,t.y,t.z)),l=CreateCameraWithParams("DEFAULT_SCRIPTED_CAMERA",r.x,r.y,r.z,0,0,0,50,!1,0);PointCamAtCoord(l,n.x,n.y,n.z),SetCamActiveWithInterp(l,m,1e3,1,1),h=!0;let i=setInterval(()=>{!IsCamInterpolating(m)&&IsCamActive(l)&&(DestroyCam(m,!1),m=l,h=!1,clearInterval(i))},500)}else{let r=g(GetOffsetFromEntityInWorldCoords(PlayerPedId(),a.x,a.y,a.z)),n=g(GetOffsetFromEntityInWorldCoords(PlayerPedId(),t.x,t.y,t.z));m=CreateCameraWithParams("DEFAULT_SCRIPTED_CAMERA",r.x,r.y,r.z,0,0,0,50,!1,0),PointCamAtCoord(m,n.x,n.y,n.z),SetCamActive(m,!0)}}async function pe(e){if(h)return;let{coords:a,point:t}=he[w],o=we[w],r,n=x?-1:1;e==="left"?r=1:e==="right"&&(r=-1);let l=g(GetOffsetFromEntityInWorldCoords(PlayerPedId(),(a.x+o.x)*r*n,(a.y+o.y)*n,a.z)),i=g(GetOffsetFromEntityInWorldCoords(PlayerPedId(),t.x,t.y,t.z)),s=CreateCameraWithParams("DEFAULT_SCRIPTED_CAMERA",l.x,l.y,l.z,0,0,0,50,!1,0);PointCamAtCoord(s,i.x,i.y,i.z),SetCamActiveWithInterp(s,m,1e3,1,1),h=!0;let c=setInterval(()=>{!IsCamInterpolating(m)&&IsCamActive(s)&&(DestroyCam(m,!1),m=s,h=!1,clearInterval(c))},500)}function B(e,a){x=!x;let t=OpenSequenceTask()??0;t!==0&&(TaskGoStraightToCoord(0,I.x,I.y,I.z,8,-1,GetEntityHeading(e)-a,.1),TaskStandStill(0,-1),CloseSequenceTask(t),ClearPedTasks(e),TaskPerformSequence(e,t),ClearSequenceTask(t))}async function me(e,a){let{animations:t,props:o}=j[a],{dict:r,anim:n,move:l,duration:i}=t.on,{male:s,female:c}=o,{components:d}=e,p=PlayerPedId(),y=f(p);for(RequestAnimDict(r);!HasAnimDictLoaded(r);)await b(0);if(y)for(let u=0;uCe,R=(e,a)=>{Ce=a;let t=f(e);ClearPedDecorations(e);for(let o in a)for(let r=0;r{let t=f(e);ClearPedDecorations(e);for(let o in a)for(let r=0;r{let t=f(e);ClearPedDecorations(e);for(let o in a)for(let r=0;r{let o=f(e),{collection:r,hashFemale:n,hashMale:l}=t,i=o?l:n;ClearPedDecorations(e),AddPedDecorationFromHashes(e,GetHashKey(r),GetHashKey(i));for(let s in a)for(let c=0;c({...e,[GetHashKey(a)]:a}),{});function Se(e){return ze[GetEntityModel(e)]}function Me(e){let a=[];return O.forEach(t=>{a.push({component_id:t,drawable:GetPedDrawableVariation(e,t),texture:GetPedTextureVariation(e,t)})}),a}function ke(e){let a=[];return D.forEach(t=>{a.push({prop_id:t,drawable:GetPedPropIndex(e,t),texture:GetPedPropTextureIndex(e,t)})}),a}function Ge(e){let a=new ArrayBuffer(80);global.Citizen.invokeNative(Le,e,new Uint32Array(a));let{0:t,2:o,6:r,8:n}=new Uint32Array(a),{0:l,2:i}=new Float32Array(a,48),s=parseFloat(l.toFixed(1)),c=parseFloat(i.toFixed(1));return{shapeFirst:t,shapeSecond:o,skinFirst:r,skinSecond:n,shapeMix:s,skinMix:c}}function Ne(e){return F.reduce((t,o,r)=>{let n=parseFloat(GetPedFaceFeature(e,r).toFixed(1));return{...t,[o]:n}},{})}function Te(e){return S.reduce((t,o,r)=>{let[,n,,l,i,s]=GetPedHeadOverlayData(e,r),c=n!==255,d=c?n:0,p=c?parseFloat(s.toFixed(1)):0,y;return o==="makeUp"?y={style:d,opacity:p,color:l,secondColor:i}:y={style:d,opacity:p,color:l},{...t,[o]:y}},{})}function Ae(e){return{style:GetPedDrawableVariation(e,2),color:GetPedHairColor(e),highlight:GetPedHairHighlightColor(e),texture:GetPedTextureVariation(e,2)}}function H(e){let a=GetPedEyeColor(e);return{model:Se(e)||"mp_m_freemode_01",headBlend:Ge(e),faceFeatures:Ne(e),headOverlays:Te(e),components:Me(e),props:ke(e),hair:Ae(e),eyeColor:a{let r=a[t];SetPedFaceFeature(e,o,r)})}function G(e,a){!a||S.forEach((t,o)=>{let r=a[t];if(SetPedHeadOverlay(e,o,r.style,r.opacity),r.color||r.color===0){let l=1;var n=r.color;({blush:!0,lipstick:!0,makeUp:!0})[t]&&(l=2),t==="makeUp"&&(n=r.secondColor),SetPedHeadOverlayColor(e,o,l,r.color,n)}})}function N(e,a){if(!a)return;let{style:t,color:o,highlight:r,texture:n}=a;SetPedComponentVariation(e,2,t,n,2),SetPedHairColor(e,o,r)}function T(e,a){!a||SetPedEyeColor(e,a)}function z(e,a){if(!a)return;let{component_id:t,drawable:o,texture:r}=a;({0:!0,2:!0})[t]&&C(e)||SetPedComponentVariation(e,t,o,r,0)}function ne(e,a){!a||a.forEach(t=>z(e,t))}function V(e,a){if(!a)return;let{prop_id:t,drawable:o,texture:r}=a;o===-1?ClearPedProp(e,t):SetPedPropIndex(e,t,o,r,!1)}function ie(e,a){!a||a.forEach(t=>V(e,t))}async function re(e){if(!e)return;let{model:a,components:t,props:o,headBlend:r,faceFeatures:n,headOverlays:l,hair:i,eyeColor:s,tattoos:c}=e;await L(a);let d=PlayerPedId();ne(d,t),ie(d,o),r&&M(d,r),n&&k(d,n),l&&G(d,l),i&&N(d,i),s&&T(d,s),c&&R(d,c)}function Ve(e,a){if(!a)return;let{components:t,props:o,headBlend:r,faceFeatures:n,headOverlays:l,hair:i,eyeColor:s,tattoos:c}=a;ne(e,t),ie(e,o),r&&M(e,r),n&&k(e,n),l&&G(e,l),i&&N(e,i),s&&T(e,s),c&&R(e,c)}function Ue(){be.loadModule(),_("getPedModel",Se),_("getPedComponents",Me),_("getPedProps",ke),_("getPedHeadBlend",Ge),_("getPedFaceFeatures",Ne),_("getPedHeadOverlays",Te),_("getPedHair",Ae),_("getPedTattoos",te),_("getPedAppearance",H),_("setPlayerModel",L),_("setPedHeadBlend",M),_("setPedFaceFeatures",k),_("setPedHeadOverlays",G),_("setPedHair",N),_("setPedEyeColor",T),_("setPedComponent",z),_("setPedComponents",ne),_("setPedProp",V),_("setPedProps",ie),_("setPedTattoos",R),_("setPlayerAppearance",re),_("setPedAppearance",Ve)}Ue();})(); diff --git a/web/dist/assets/index.53e698fe.js b/web/dist/assets/index.586d4178.js similarity index 70% rename from web/dist/assets/index.53e698fe.js rename to web/dist/assets/index.586d4178.js index 26caf45..23030f8 100644 --- a/web/dist/assets/index.53e698fe.js +++ b/web/dist/assets/index.586d4178.js @@ -1,4 +1,4 @@ -var U0=Object.defineProperty,W0=Object.defineProperties;var G0=Object.getOwnPropertyDescriptors;var oc=Object.getOwnPropertySymbols;var Q0=Object.prototype.hasOwnProperty,Y0=Object.prototype.propertyIsEnumerable;var ac=(e,t,n)=>t in e?U0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))Q0.call(t,n)&&ac(e,n,t[n]);if(oc)for(var n of oc(t))Y0.call(t,n)&&ac(e,n,t[n]);return e},R=(e,t)=>W0(e,G0(t));function K0(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const X0=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}};X0();var E={exports:{}},se={};/** +var U0=Object.defineProperty,W0=Object.defineProperties;var G0=Object.getOwnPropertyDescriptors;var oc=Object.getOwnPropertySymbols;var Q0=Object.prototype.hasOwnProperty,Y0=Object.prototype.propertyIsEnumerable;var ac=(e,t,n)=>t in e?U0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))Q0.call(t,n)&&ac(e,n,t[n]);if(oc)for(var n of oc(t))Y0.call(t,n)&&ac(e,n,t[n]);return e},R=(e,t)=>W0(e,G0(t));function K0(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const X0=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}};X0();var b={exports:{}},ue={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var U0=Object.defineProperty,W0=Object.defineProperties;var G0=Object.getOwnProp * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var _i=Symbol.for("react.element"),Z0=Symbol.for("react.portal"),q0=Symbol.for("react.fragment"),J0=Symbol.for("react.strict_mode"),em=Symbol.for("react.profiler"),tm=Symbol.for("react.provider"),nm=Symbol.for("react.context"),rm=Symbol.for("react.forward_ref"),im=Symbol.for("react.suspense"),om=Symbol.for("react.memo"),am=Symbol.for("react.lazy"),lc=Symbol.iterator;function lm(e){return e===null||typeof e!="object"?null:(e=lc&&e[lc]||e["@@iterator"],typeof e=="function"?e:null)}var dd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pd=Object.assign,hd={};function Vr(e,t,n){this.props=e,this.context=t,this.refs=hd,this.updater=n||dd}Vr.prototype.isReactComponent={};Vr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Vr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function md(){}md.prototype=Vr.prototype;function Gu(e,t,n){this.props=e,this.context=t,this.refs=hd,this.updater=n||dd}var Qu=Gu.prototype=new md;Qu.constructor=Gu;pd(Qu,Vr.prototype);Qu.isPureReactComponent=!0;var uc=Array.isArray,vd=Object.prototype.hasOwnProperty,Yu={current:null},gd={key:!0,ref:!0,__self:!0,__source:!0};function yd(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)vd.call(t,r)&&!gd.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,O=F[ae];if(0>>1;aei(Q,U))Ci(ee,Q)?(F[ae]=ee,F[C]=U,ae=C):(F[ae]=Q,F[N]=U,ae=N);else if(Ci(ee,U))F[ae]=ee,F[C]=U,ae=C;else break e}}return $}function i(F,$){var U=F.sortIndex-$.sortIndex;return U!==0?U:F.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],s=[],c=1,d=null,h=3,g=!1,v=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(F){for(var $=n(s);$!==null;){if($.callback===null)r(s);else if($.startTime<=F)r(s),$.sortIndex=$.expirationTime,t(u,$);else break;$=n(s)}}function k(F){if(w=!1,m(F),!v)if(n(u)!==null)v=!0,te(x);else{var $=n(s);$!==null&&q(k,$.startTime-F)}}function x(F,$){v=!1,w&&(w=!1,p(A),A=-1),g=!0;var U=h;try{for(m($),d=n(u);d!==null&&(!(d.expirationTime>$)||F&&!W());){var ae=d.callback;if(typeof ae=="function"){d.callback=null,h=d.priorityLevel;var O=ae(d.expirationTime<=$);$=e.unstable_now(),typeof O=="function"?d.callback=O:d===n(u)&&r(u),m($)}else r(u);d=n(u)}if(d!==null)var T=!0;else{var N=n(s);N!==null&&q(k,N.startTime-$),T=!1}return T}finally{d=null,h=U,g=!1}}var P=!1,b=null,A=-1,j=5,D=-1;function W(){return!(e.unstable_now()-DF||125ae?(F.sortIndex=U,t(s,F),n(u)===null&&F===n(s)&&(w?(p(A),A=-1):w=!0,q(k,U-ae))):(F.sortIndex=O,t(u,F),v||g||(v=!0,te(x))),F},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(F){var $=h;return function(){var U=h;h=$;try{return F.apply(this,arguments)}finally{h=U}}}})(wd);xd.exports=wd;/** + */(function(e){function t(F,$){var U=F.length;F.push($);e:for(;0>>1,O=F[ae];if(0>>1;aei(Q,U))Ci(ee,Q)?(F[ae]=ee,F[C]=U,ae=C):(F[ae]=Q,F[N]=U,ae=N);else if(Ci(ee,U))F[ae]=ee,F[C]=U,ae=C;else break e}}return $}function i(F,$){var U=F.sortIndex-$.sortIndex;return U!==0?U:F.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,h=3,g=!1,v=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(F){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=F)r(u),$.sortIndex=$.expirationTime,t(s,$);else break;$=n(u)}}function k(F){if(w=!1,m(F),!v)if(n(s)!==null)v=!0,te(x);else{var $=n(u);$!==null&&q(k,$.startTime-F)}}function x(F,$){v=!1,w&&(w=!1,p(A),A=-1),g=!0;var U=h;try{for(m($),d=n(s);d!==null&&(!(d.expirationTime>$)||F&&!W());){var ae=d.callback;if(typeof ae=="function"){d.callback=null,h=d.priorityLevel;var O=ae(d.expirationTime<=$);$=e.unstable_now(),typeof O=="function"?d.callback=O:d===n(s)&&r(s),m($)}else r(s);d=n(s)}if(d!==null)var T=!0;else{var N=n(u);N!==null&&q(k,N.startTime-$),T=!1}return T}finally{d=null,h=U,g=!1}}var P=!1,E=null,A=-1,j=5,D=-1;function W(){return!(e.unstable_now()-DF||125ae?(F.sortIndex=U,t(u,F),n(s)===null&&F===n(u)&&(w?(p(A),A=-1):w=!0,q(k,U-ae))):(F.sortIndex=O,t(s,F),v||g||(v=!0,te(x))),F},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(F){var $=h;return function(){var U=h;h=$;try{return F.apply(this,arguments)}finally{h=U}}}})(wd);xd.exports=wd;/** * @license React * react-dom.production.min.js * @@ -22,14 +22,14 @@ var U0=Object.defineProperty,W0=Object.defineProperties;var G0=Object.getOwnProp * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Sd=E.exports,St=xd.exports;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function ut(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ze[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zu=/[\-:]([a-z])/g;function qu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zu,qu);Ze[t]=new ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zu,qu);Ze[t]=new ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zu,qu);Ze[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ju(e,t,n,r){var i=Ze.hasOwnProperty(t)?Ze[t]:null;(i!==null?i.type!==0:r||!(2t}return!1}function st(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new st(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ze[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zs=/[\-:]([a-z])/g;function qs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zs,qs);Ze[t]=new st(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zs,qs);Ze[t]=new st(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zs,qs);Ze[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});function Js(e,t,n,r){var i=Ze.hasOwnProperty(t)?Ze[t]:null;(i!==null?i.type!==0:r||!(2l||i[a]!==o[l]){var u=` -`+i[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{qa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qr(e):""}function vm(e){switch(e.tag){case 5:return Qr(e.type);case 16:return Qr("Lazy");case 13:return Qr("Suspense");case 19:return Qr("SuspenseList");case 0:case 2:case 15:return e=Ja(e.type,!1),e;case 11:return e=Ja(e.type.render,!1),e;case 1:return e=Ja(e.type,!0),e;default:return""}}function jl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case nr:return"Fragment";case tr:return"Portal";case Nl:return"Profiler";case es:return"StrictMode";case $l:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ed:return(e.displayName||"Context")+".Consumer";case Cd:return(e._context.displayName||"Context")+".Provider";case ts:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ns:return t=e.displayName||null,t!==null?t:jl(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return jl(e(t))}catch{}}return null}function gm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jl(t);case 8:return t===es?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Od(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ym(e){var t=Od(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bi(e){e._valueTracker||(e._valueTracker=ym(e))}function Pd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Od(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fo(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function Hl(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function pc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Fn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ad(e,t){t=t.checked,t!=null&&Ju(e,"checked",t,!1)}function Ul(e,t){Ad(e,t);var n=Fn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wl(e,t.type,Fn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wl(e,t,n){(t!=="number"||Fo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yr=Array.isArray;function mr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xm=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){xm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function Id(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function Td(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Id(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var wm=Ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Yl(e,t){if(t){if(wm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function Kl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xl=null;function rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zl=null,vr=null,gr=null;function gc(e){if(e=Mi(e)){if(typeof Zl!="function")throw Error(V(280));var t=e.stateNode;t&&(t=ya(t),Zl(e.stateNode,e.type,t))}}function Md(e){vr?gr?gr.push(e):gr=[e]:vr=e}function Rd(){if(vr){var e=vr,t=gr;if(gr=vr=null,gc(e),t)for(e=0;e>>=0,e===0?32:31-(_m(e)/Im|0)|0}var Hi=64,Ui=4194304;function Kr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function To(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=Kr(l):(o&=a,o!==0&&(r=Kr(o)))}else a=n&~i,a!==0?r=Kr(a):o!==0&&(r=Kr(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$t(t),e[t]=n}function Lm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Jr),Oc=String.fromCharCode(32),Pc=!1;function tp(e,t){switch(e){case"keyup":return c1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function np(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rr=!1;function d1(e,t){switch(e){case"compositionend":return np(t);case"keypress":return t.which!==32?null:(Pc=!0,Oc);case"textInput":return e=t.data,e===Oc&&Pc?null:e;default:return null}}function p1(e,t){if(rr)return e==="compositionend"||!fs&&tp(e,t)?(e=Jd(),ho=us=xn=null,rr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_c(n)}}function ap(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ap(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lp(){for(var e=window,t=Fo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fo(e.document)}return t}function ds(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function k1(e){var t=lp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ap(n.ownerDocument.documentElement,n)){if(r!==null&&ds(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Ic(n,o);var a=Ic(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ir=null,ru=null,ti=null,iu=!1;function Tc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;iu||ir==null||ir!==Fo(r)||(r=ir,"selectionStart"in r&&ds(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&vi(ti,r)||(ti=r,r=Lo(ru,"onSelect"),0lr||(e.current=cu[lr],cu[lr]=null,lr--)}function Ee(e,t){lr++,cu[lr]=e.current,e.current=t}var Vn={},it=Tn(Vn),pt=Tn(!1),Hn=Vn;function Cr(e,t){var n=e.type.contextTypes;if(!n)return Vn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ht(e){return e=e.childContextTypes,e!=null}function Do(){Oe(pt),Oe(it)}function $c(e,t,n){if(it.current!==Vn)throw Error(V(168));Ee(it,t),Ee(pt,n)}function vp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(V(108,gm(e)||"Unknown",i));return Ve({},n,r)}function No(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vn,Hn=it.current,Ee(it,e),Ee(pt,pt.current),!0}function Bc(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=vp(e,t,Hn),r.__reactInternalMemoizedMergedChildContext=e,Oe(pt),Oe(it),Ee(it,e)):Oe(pt),Ee(pt,n)}var tn=null,xa=!1,pl=!1;function gp(e){tn===null?tn=[e]:tn.push(e)}function M1(e){xa=!0,gp(e)}function Mn(){if(!pl&&tn!==null){pl=!0;var e=0,t=we;try{var n=tn;for(we=1;e>=a,i-=a,rn=1<<32-$t(t)+i|n<A?(j=b,b=null):j=b.sibling;var D=h(p,b,m[A],k);if(D===null){b===null&&(b=j);break}e&&b&&D.alternate===null&&t(p,b),f=o(D,f,A),P===null?x=D:P.sibling=D,P=D,b=j}if(A===m.length)return n(p,b),Pe&&Ln(p,A),x;if(b===null){for(;AA?(j=b,b=null):j=b.sibling;var W=h(p,b,D.value,k);if(W===null){b===null&&(b=j);break}e&&b&&W.alternate===null&&t(p,b),f=o(W,f,A),P===null?x=W:P.sibling=W,P=W,b=j}if(D.done)return n(p,b),Pe&&Ln(p,A),x;if(b===null){for(;!D.done;A++,D=m.next())D=d(p,D.value,k),D!==null&&(f=o(D,f,A),P===null?x=D:P.sibling=D,P=D);return Pe&&Ln(p,A),x}for(b=r(p,b);!D.done;A++,D=m.next())D=g(b,p,A,D.value,k),D!==null&&(e&&D.alternate!==null&&b.delete(D.key===null?A:D.key),f=o(D,f,A),P===null?x=D:P.sibling=D,P=D);return e&&b.forEach(function(G){return t(p,G)}),Pe&&Ln(p,A),x}function S(p,f,m,k){if(typeof m=="object"&&m!==null&&m.type===nr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case $i:e:{for(var x=m.key,P=f;P!==null;){if(P.key===x){if(x=m.type,x===nr){if(P.tag===7){n(p,P.sibling),f=i(P,m.props.children),f.return=p,p=f;break e}}else if(P.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===mn&&Yc(x)===P.type){n(p,P.sibling),f=i(P,m.props),f.ref=Br(p,P,m),f.return=p,p=f;break e}n(p,P);break}else t(p,P);P=P.sibling}m.type===nr?(f=Bn(m.props.children,p.mode,k,m.key),f.return=p,p=f):(k=So(m.type,m.key,m.props,null,p.mode,k),k.ref=Br(p,f,m),k.return=p,p=k)}return a(p);case tr:e:{for(P=m.key;f!==null;){if(f.key===P)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(p,f.sibling),f=i(f,m.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=wl(m,p.mode,k),f.return=p,p=f}return a(p);case mn:return P=m._init,S(p,f,P(m._payload),k)}if(Yr(m))return v(p,f,m,k);if(Rr(m))return w(p,f,m,k);Xi(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(p,f.sibling),f=i(f,m),f.return=p,p=f):(n(p,f),f=xl(m,p.mode,k),f.return=p,p=f),a(p)):n(p,f)}return S}var br=Cp(!0),Ep=Cp(!1),Ri={},Xt=Tn(Ri),wi=Tn(Ri),Si=Tn(Ri);function Nn(e){if(e===Ri)throw Error(V(174));return e}function ws(e,t){switch(Ee(Si,t),Ee(wi,e),Ee(Xt,Ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ql(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ql(t,e)}Oe(Xt),Ee(Xt,t)}function Or(){Oe(Xt),Oe(wi),Oe(Si)}function bp(e){Nn(Si.current);var t=Nn(Xt.current),n=Ql(t,e.type);t!==n&&(Ee(wi,e),Ee(Xt,n))}function Ss(e){wi.current===e&&(Oe(Xt),Oe(wi))}var Ae=Tn(0);function Wo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hl=[];function ks(){for(var e=0;en?n:4,e(!0);var r=ml.transition;ml.transition={};try{e(!1),t()}finally{we=n,ml.transition=r}}function $p(){return _t().memoizedState}function D1(e,t,n){var r=On(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bp(e)?jp(t,n):(Hp(e,t,n),n=at(),e=Ft(e,r,n),e!==null&&Up(e,t,r))}function N1(e,t,n){var r=On(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bp(e))jp(t,i);else{Hp(e,t,i);var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,jt(l,a))return}catch{}finally{}n=at(),e=Ft(e,r,n),e!==null&&Up(e,t,r)}}function Bp(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function jp(e,t){ni=Go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hp(e,t,n){lh(e)?(e=t.interleaved,e===null?(n.next=n,Dt===null?Dt=[t]:Dt.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function Up(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,os(e,n)}}var Qo={readContext:Vt,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},$1={readContext:Vt,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:Xc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yo(4194308,4,Rp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ut();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=D1.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:Kc,useDebugValue:Ps,useDeferredValue:function(e){return Ut().memoizedState=e},useTransition:function(){var e=Kc(!1),t=e[0];return e=z1.bind(null,e[1]),Ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,i=Ut();if(Pe){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),je===null)throw Error(V(349));(Wn&30)!==0||Ap(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Xc(Vp.bind(null,r,o,e),[e]),r.flags|=2048,Ei(9,Fp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ut(),t=je.identifierPrefix;if(Pe){var n=on,r=rn;n=(r&~(1<<32-$t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ki++,0l||i[a]!==o[l]){var s=` +`+i[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{qa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qr(e):""}function vm(e){switch(e.tag){case 5:return Qr(e.type);case 16:return Qr("Lazy");case 13:return Qr("Suspense");case 19:return Qr("SuspenseList");case 0:case 2:case 15:return e=Ja(e.type,!1),e;case 11:return e=Ja(e.type.render,!1),e;case 1:return e=Ja(e.type,!0),e;default:return""}}function jl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case nr:return"Fragment";case tr:return"Portal";case Nl:return"Profiler";case eu:return"StrictMode";case $l:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bd:return(e.displayName||"Context")+".Consumer";case Cd:return(e._context.displayName||"Context")+".Provider";case tu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nu:return t=e.displayName||null,t!==null?t:jl(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return jl(e(t))}catch{}}return null}function gm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jl(t);case 8:return t===eu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Od(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ym(e){var t=Od(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bi(e){e._valueTracker||(e._valueTracker=ym(e))}function Pd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Od(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fo(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function Hl(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function pc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Fn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ad(e,t){t=t.checked,t!=null&&Js(e,"checked",t,!1)}function Ul(e,t){Ad(e,t);var n=Fn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wl(e,t.type,Fn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wl(e,t,n){(t!=="number"||Fo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yr=Array.isArray;function mr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xm=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){xm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function Id(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function Td(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Id(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var wm=Ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Yl(e,t){if(t){if(wm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function Kl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xl=null;function ru(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zl=null,vr=null,gr=null;function gc(e){if(e=Mi(e)){if(typeof Zl!="function")throw Error(V(280));var t=e.stateNode;t&&(t=ya(t),Zl(e.stateNode,e.type,t))}}function Md(e){vr?gr?gr.push(e):gr=[e]:vr=e}function Rd(){if(vr){var e=vr,t=gr;if(gr=vr=null,gc(e),t)for(e=0;e>>=0,e===0?32:31-(_m(e)/Im|0)|0}var Hi=64,Ui=4194304;function Kr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function To(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=Kr(l):(o&=a,o!==0&&(r=Kr(o)))}else a=n&~i,a!==0?r=Kr(a):o!==0&&(r=Kr(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$t(t),e[t]=n}function Lm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Jr),Oc=String.fromCharCode(32),Pc=!1;function tp(e,t){switch(e){case"keyup":return c1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function np(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rr=!1;function d1(e,t){switch(e){case"compositionend":return np(t);case"keypress":return t.which!==32?null:(Pc=!0,Oc);case"textInput":return e=t.data,e===Oc&&Pc?null:e;default:return null}}function p1(e,t){if(rr)return e==="compositionend"||!fu&&tp(e,t)?(e=Jd(),ho=su=xn=null,rr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_c(n)}}function ap(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ap(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lp(){for(var e=window,t=Fo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fo(e.document)}return t}function du(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function k1(e){var t=lp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ap(n.ownerDocument.documentElement,n)){if(r!==null&&du(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Ic(n,o);var a=Ic(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ir=null,rs=null,ti=null,is=!1;function Tc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;is||ir==null||ir!==Fo(r)||(r=ir,"selectionStart"in r&&du(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&vi(ti,r)||(ti=r,r=Lo(rs,"onSelect"),0lr||(e.current=cs[lr],cs[lr]=null,lr--)}function be(e,t){lr++,cs[lr]=e.current,e.current=t}var Vn={},it=Tn(Vn),pt=Tn(!1),Hn=Vn;function Cr(e,t){var n=e.type.contextTypes;if(!n)return Vn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ht(e){return e=e.childContextTypes,e!=null}function Do(){Oe(pt),Oe(it)}function $c(e,t,n){if(it.current!==Vn)throw Error(V(168));be(it,t),be(pt,n)}function vp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(V(108,gm(e)||"Unknown",i));return Ve({},n,r)}function No(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vn,Hn=it.current,be(it,e),be(pt,pt.current),!0}function Bc(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=vp(e,t,Hn),r.__reactInternalMemoizedMergedChildContext=e,Oe(pt),Oe(it),be(it,e)):Oe(pt),be(pt,n)}var tn=null,xa=!1,pl=!1;function gp(e){tn===null?tn=[e]:tn.push(e)}function M1(e){xa=!0,gp(e)}function Mn(){if(!pl&&tn!==null){pl=!0;var e=0,t=we;try{var n=tn;for(we=1;e>=a,i-=a,rn=1<<32-$t(t)+i|n<A?(j=E,E=null):j=E.sibling;var D=h(p,E,m[A],k);if(D===null){E===null&&(E=j);break}e&&E&&D.alternate===null&&t(p,E),f=o(D,f,A),P===null?x=D:P.sibling=D,P=D,E=j}if(A===m.length)return n(p,E),Pe&&Ln(p,A),x;if(E===null){for(;AA?(j=E,E=null):j=E.sibling;var W=h(p,E,D.value,k);if(W===null){E===null&&(E=j);break}e&&E&&W.alternate===null&&t(p,E),f=o(W,f,A),P===null?x=W:P.sibling=W,P=W,E=j}if(D.done)return n(p,E),Pe&&Ln(p,A),x;if(E===null){for(;!D.done;A++,D=m.next())D=d(p,D.value,k),D!==null&&(f=o(D,f,A),P===null?x=D:P.sibling=D,P=D);return Pe&&Ln(p,A),x}for(E=r(p,E);!D.done;A++,D=m.next())D=g(E,p,A,D.value,k),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?A:D.key),f=o(D,f,A),P===null?x=D:P.sibling=D,P=D);return e&&E.forEach(function(G){return t(p,G)}),Pe&&Ln(p,A),x}function S(p,f,m,k){if(typeof m=="object"&&m!==null&&m.type===nr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case $i:e:{for(var x=m.key,P=f;P!==null;){if(P.key===x){if(x=m.type,x===nr){if(P.tag===7){n(p,P.sibling),f=i(P,m.props.children),f.return=p,p=f;break e}}else if(P.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===mn&&Yc(x)===P.type){n(p,P.sibling),f=i(P,m.props),f.ref=Br(p,P,m),f.return=p,p=f;break e}n(p,P);break}else t(p,P);P=P.sibling}m.type===nr?(f=Bn(m.props.children,p.mode,k,m.key),f.return=p,p=f):(k=So(m.type,m.key,m.props,null,p.mode,k),k.ref=Br(p,f,m),k.return=p,p=k)}return a(p);case tr:e:{for(P=m.key;f!==null;){if(f.key===P)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(p,f.sibling),f=i(f,m.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=wl(m,p.mode,k),f.return=p,p=f}return a(p);case mn:return P=m._init,S(p,f,P(m._payload),k)}if(Yr(m))return v(p,f,m,k);if(Rr(m))return w(p,f,m,k);Xi(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(p,f.sibling),f=i(f,m),f.return=p,p=f):(n(p,f),f=xl(m,p.mode,k),f.return=p,p=f),a(p)):n(p,f)}return S}var Er=Cp(!0),bp=Cp(!1),Ri={},Xt=Tn(Ri),wi=Tn(Ri),Si=Tn(Ri);function Nn(e){if(e===Ri)throw Error(V(174));return e}function wu(e,t){switch(be(Si,t),be(wi,e),be(Xt,Ri),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ql(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ql(t,e)}Oe(Xt),be(Xt,t)}function Or(){Oe(Xt),Oe(wi),Oe(Si)}function Ep(e){Nn(Si.current);var t=Nn(Xt.current),n=Ql(t,e.type);t!==n&&(be(wi,e),be(Xt,n))}function Su(e){wi.current===e&&(Oe(Xt),Oe(wi))}var Ae=Tn(0);function Wo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hl=[];function ku(){for(var e=0;en?n:4,e(!0);var r=ml.transition;ml.transition={};try{e(!1),t()}finally{we=n,ml.transition=r}}function $p(){return _t().memoizedState}function D1(e,t,n){var r=On(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bp(e)?jp(t,n):(Hp(e,t,n),n=at(),e=Ft(e,r,n),e!==null&&Up(e,t,r))}function N1(e,t,n){var r=On(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bp(e))jp(t,i);else{Hp(e,t,i);var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,jt(l,a))return}catch{}finally{}n=at(),e=Ft(e,r,n),e!==null&&Up(e,t,r)}}function Bp(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function jp(e,t){ni=Go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hp(e,t,n){lh(e)?(e=t.interleaved,e===null?(n.next=n,Dt===null?Dt=[t]:Dt.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function Up(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ou(e,n)}}var Qo={readContext:Vt,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},$1={readContext:Vt,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:Xc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yo(4194308,4,Rp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ut();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=D1.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:Kc,useDebugValue:Pu,useDeferredValue:function(e){return Ut().memoizedState=e},useTransition:function(){var e=Kc(!1),t=e[0];return e=z1.bind(null,e[1]),Ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,i=Ut();if(Pe){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),je===null)throw Error(V(349));(Wn&30)!==0||Ap(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Xc(Vp.bind(null,r,o,e),[e]),r.flags|=2048,bi(9,Fp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ut(),t=je.identifierPrefix;if(Pe){var n=on,r=rn;n=(r&~(1<<32-$t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ki++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Qt]=t,e[xi]=r,Qp(e,t,!1,!1),t.stateNode=e;e:{switch(a=Kl(n,r),n){case"dialog":be("cancel",e),be("close",e),i=r;break;case"iframe":case"object":case"embed":be("load",e),i=r;break;case"video":case"audio":for(i=0;iPr&&(t.flags|=128,r=!0,jr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Wo(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Pe)return tt(t),null}else 2*Me()-o.renderingStartTime>Pr&&n!==1073741824&&(t.flags|=128,r=!0,jr(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Me(),t.sibling=null,n=Ae.current,Ee(Ae,r?n&1|2:n&1),t):(tt(t),null);case 22:case 23:return Ts(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(gt&1073741824)!==0&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}var W1=cn.ReactCurrentOwner,dt=!1;function ot(e,t,n,r){t.child=e===null?Ep(t,null,n,r):br(t,e.child,n,r)}function ef(e,t,n,r,i){n=n.render;var o=t.ref;return xr(t,i),r=Es(e,t,n,r,o,i),n=bs(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sn(e,t,i)):(Pe&&n&&gs(t),t.flags|=1,ot(e,t,r,i),t.child)}function tf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Rs(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Xp(e,t,o,r,i)):(e=So(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:vi,n(a,r)&&e.ref===t.ref)return sn(e,t,i)}return t.flags|=1,e=_n(o,r),e.ref=t.ref,e.return=t,t.child=e}function Xp(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(vi(o,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(dt=!0);else return t.lanes=e.lanes,sn(e,t,i)}return yu(e,t,n,r,i)}function Zp(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(dr,gt),gt|=n;else if((n&1073741824)!==0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ee(dr,gt),gt|=r;else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(dr,gt),gt|=e,null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ee(dr,gt),gt|=r;return ot(e,t,i,n),t.child}function qp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function yu(e,t,n,r,i){var o=ht(n)?Hn:it.current;return o=Cr(t,o),xr(t,i),n=Es(e,t,n,r,o,i),r=bs(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sn(e,t,i)):(Pe&&r&&gs(t),t.flags|=1,ot(e,t,n,i),t.child)}function nf(e,t,n,r,i){if(ht(n)){var o=!0;No(t)}else o=!1;if(xr(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),wp(t,n,r),pu(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;typeof s=="object"&&s!==null?s=Vt(s):(s=ht(n)?Hn:it.current,s=Cr(t,s));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||u!==s)&&Wc(t,a,r,s),vn=!1;var h=t.memoizedState;a.state=h,jo(t,r,a,i),u=t.memoizedState,l!==r||h!==u||pt.current||vn?(typeof c=="function"&&(du(t,n,c,r),u=t.memoizedState),(l=vn||Uc(t,n,l,r,h,u,s))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,yp(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Mt(t.type,l),a.props=s,d=t.pendingProps,h=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=Vt(u):(u=ht(n)?Hn:it.current,u=Cr(t,u));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||h!==u)&&Wc(t,a,r,u),vn=!1,h=t.memoizedState,a.state=h,jo(t,r,a,i);var v=t.memoizedState;l!==d||h!==v||pt.current||vn?(typeof g=="function"&&(du(t,n,g,r),v=t.memoizedState),(s=vn||Uc(t,n,s,r,h,v,u)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=u,r=s):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return xu(e,t,n,r,o,i)}function xu(e,t,n,r,i,o){qp(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Bc(t,n,!1),sn(e,t,o);r=t.stateNode,W1.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=br(t,e.child,null,o),t.child=br(t,null,l,o)):ot(e,t,l,o),t.memoizedState=r.state,i&&Bc(t,n,!0),t.child}function Jp(e){var t=e.stateNode;t.pendingContext?$c(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$c(e,t.context,!1),ws(e,t.containerInfo)}function rf(e,t,n,r,i){return Er(),xs(i),t.flags|=256,ot(e,t,n,r),t.child}var Zi={dehydrated:null,treeContext:null,retryLane:0};function qi(e){return{baseLanes:e,cachePool:null,transitions:null}}function of(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function eh(e,t,n){var r=t.pendingProps,i=Ae.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ee(Ae,i&1),e===null)return mu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=i):o=qo(i,r,0,null),e=Bn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=qi(n),t.memoizedState=Zi,e):wu(t,i));if(i=e.memoizedState,i!==null){if(l=i.dehydrated,l!==null){if(a)return t.flags&256?(t.flags&=-257,Ji(e,t,n,Error(V(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=qo({mode:"visible",children:r.children},i,0,null),o=Bn(o,i,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&br(t,e.child,null,n),t.child.memoizedState=qi(n),t.memoizedState=Zi,o);if((t.mode&1)===0)t=Ji(e,t,n,null);else if(l.data==="$!")t=Ji(e,t,n,Error(V(419)));else if(r=(n&e.childLanes)!==0,dt||r){if(r=je,r!==null){switch(n&-n){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}r=(o&(r.suspendedLanes|n))!==0?0:o,r!==0&&r!==i.retryLane&&(i.retryLane=r,Ft(e,r,-1))}Ms(),t=Ji(e,t,n,Error(V(421)))}else l.data==="$?"?(t.flags|=128,t.child=e.child,t=rv.bind(null,e),l._reactRetry=t,t=null):(n=i.treeContext,ft=nn(l.nextSibling),xt=t,Pe=!0,Lt=null,n!==null&&(bt[Ot++]=rn,bt[Ot++]=on,bt[Ot++]=Un,rn=n.id,on=n.overflow,Un=t),t=wu(t,t.pendingProps.children),t.flags|=4096);return t}return o?(r=lf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?qi(n):of(i,n),o.childLanes=e.childLanes&~n,t.memoizedState=Zi,r):(n=af(e,t,r.children,n),t.memoizedState=null,n)}return o?(r=lf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?qi(n):of(i,n),o.childLanes=e.childLanes&~n,t.memoizedState=Zi,r):(n=af(e,t,r.children,n),t.memoizedState=null,n)}function wu(e,t){return t=qo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function af(e,t,n,r){var i=e.child;return e=i.sibling,n=_n(i,{mode:"visible",children:n}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function lf(e,t,n,r,i){var o=t.mode;e=e.child;var a=e.sibling,l={mode:"hidden",children:n};return(o&1)===0&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=_n(e,l),n.subtreeFlags=e.subtreeFlags&14680064),a!==null?r=_n(a,r):(r=Bn(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ji(e,t,n,r){return r!==null&&xs(r),br(t,e.child,null,n),e=wu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fu(e.return,t,n)}function yl(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function th(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ot(e,t,r.children,n),r=Ae.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uf(e,n,t);else if(e.tag===19)uf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(Ae,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Wo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),yl(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}yl(t,!0,n,null,o);break;case"together":yl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=_n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function G1(e,t,n){switch(t.tag){case 3:Jp(t),Er();break;case 5:bp(t);break;case 1:ht(t.type)&&No(t);break;case 4:ws(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ee($o,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Ae,Ae.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?eh(e,t,n):(Ee(Ae,Ae.current&1),e=sn(e,t,n),e!==null?e.sibling:null);Ee(Ae,Ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return th(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ee(Ae,Ae.current),r)break;return null;case 22:case 23:return t.lanes=0,Zp(e,t,n)}return sn(e,t,n)}function Q1(e,t){switch(ys(t),t.tag){case 1:return ht(t.type)&&Do(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Or(),Oe(pt),Oe(it),ks(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ss(t),null;case 13:if(Oe(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));Er()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(Ae),null;case 4:return Or(),null;case 10:return ms(t.type._context),null;case 22:case 23:return Ts(),null;case 24:return null;default:return null}}var eo=!1,rt=!1,Y1=typeof WeakSet=="function"?WeakSet:Set,H=null;function fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Su(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var sf=!1;function K1(e,t){if(ou=Mo,e=lp(),ds(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,s=0,c=0,d=e,h=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(l=a+i),d!==o||r!==0&&d.nodeType!==3||(u=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++s===i&&(l=a),h===o&&++c===r&&(u=a),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(au={focusedElem:e,selectionRange:n},Mo=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,S=v.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Mt(t.type,w),S);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;if(m.nodeType===1)m.textContent="";else if(m.nodeType===9){var k=m.body;k!=null&&(k.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(x){Ie(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return v=sf,sf=!1,v}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Su(t,n,o)}i=i.next}while(i!==r)}}function ka(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ku(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function nh(e){var t=e.alternate;t!==null&&(e.alternate=null,nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[xi],delete t[su],delete t[I1],delete t[T1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rh(e){return e.tag===5||e.tag===3||e.tag===4}function cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zo));else if(r!==4&&(e=e.child,e!==null))for(Cu(e,t,n),e=e.sibling;e!==null;)Cu(e,t,n),e=e.sibling}function Eu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}var Ge=null,Rt=!1;function pn(e,t,n){for(n=n.child;n!==null;)ih(e,t,n),n=n.sibling}function ih(e,t,n){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(ha,n)}catch{}switch(n.tag){case 5:rt||fr(n,t);case 6:var r=Ge,i=Rt;Ge=null,pn(e,t,n),Ge=r,Rt=i,Ge!==null&&(Rt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(Rt?(e=Ge,n=n.stateNode,e.nodeType===8?dl(e.parentNode,n):e.nodeType===1&&dl(e,n),hi(e)):dl(Ge,n.stateNode));break;case 4:r=Ge,i=Rt,Ge=n.stateNode.containerInfo,Rt=!0,pn(e,t,n),Ge=r,Rt=i;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&((o&2)!==0||(o&4)!==0)&&Su(n,t,a),i=i.next}while(i!==r)}pn(e,t,n);break;case 1:if(!rt&&(fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ie(n,t,l)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,pn(e,t,n),rt=r):pn(e,t,n);break;default:pn(e,t,n)}}function ff(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Y1),t.forEach(function(r){var i=iv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Z1(r/1960))-r,10e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,Xo=0,(he&6)!==0)throw Error(V(331));var i=he;for(he|=4,H=e.current;H!==null;){var o=H,a=o.child;if((H.flags&16)!==0){var l=o.deletions;if(l!==null){for(var u=0;uMe()-_s?$n(e,0):Vs|=n),mt(e,t)}function ph(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ui,Ui<<=1,(Ui&130023424)===0&&(Ui=4194304)));var n=at();e=Ea(e,t),e!==null&&(Ii(e,t,n),mt(e,n))}function rv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ph(e,n)}function iv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(V(314))}r!==null&&r.delete(t),ph(e,n)}var hh;hh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)dt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return dt=!1,G1(e,t,n);dt=(e.flags&131072)!==0}else dt=!1,Pe&&(t.flags&1048576)!==0&&Sp(t,Uo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=Cr(t,it.current);xr(t,n),i=Es(null,t,r,e,i,n);var o=bs();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(r)?(o=!0,No(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,vs(t),i.updater=wa,t.stateNode=i,i._reactInternals=t,pu(t,r,e,n),t=xu(null,t,r,!0,o,n)):(t.tag=0,Pe&&o&&gs(t),ot(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=av(r),e=Mt(r,e),i){case 0:t=yu(null,t,r,e,n);break e;case 1:t=nf(null,t,r,e,n);break e;case 11:t=ef(null,t,r,e,n);break e;case 14:t=tf(null,t,r,Mt(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),yu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),nf(e,t,r,i,n);case 3:e:{if(Jp(t),e===null)throw Error(V(387));r=t.pendingProps,o=t.memoizedState,i=o.element,yp(e,t),jo(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Error(V(423)),t=rf(e,t,r,n,i);break e}else if(r!==i){i=Error(V(424)),t=rf(e,t,r,n,i);break e}else for(ft=nn(t.stateNode.containerInfo.firstChild),xt=t,Pe=!0,Lt=null,n=Ep(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Er(),r===i){t=sn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return bp(t),e===null&&mu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,lu(r,i)?a=null:o!==null&&lu(r,o)&&(t.flags|=32),qp(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&mu(t),null;case 13:return eh(e,t,n);case 4:return ws(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=br(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),ef(e,t,r,i,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Ee($o,r._currentValue),r._currentValue=a,o!==null)if(jt(o.value,a)){if(o.children===i.children&&!pt.current){t=sn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=an(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),fu(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),fu(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}ot(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,xr(t,n),i=Vt(i),r=r(i),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,i=Mt(r,t.pendingProps),i=Mt(r.type,i),tf(e,t,r,i,n);case 15:return Xp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ht(r)?(e=!0,No(t)):e=!1,xr(t,n),wp(t,r,i),pu(t,r,i,n),xu(null,t,r,!0,e,n);case 19:return th(e,t,n);case 22:return Zp(e,t,n)}throw Error(V(156,t.tag))};function mh(e,t){return jd(e,t)}function ov(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,r){return new ov(e,t,n,r)}function Rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function av(e){if(typeof e=="function")return Rs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ts)return 11;if(e===ns)return 14}return 2}function _n(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function So(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Rs(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case nr:return Bn(n.children,i,o,t);case es:a=8,i|=8;break;case Nl:return e=Pt(12,n,t,i|2),e.elementType=Nl,e.lanes=o,e;case $l:return e=Pt(13,n,t,i),e.elementType=$l,e.lanes=o,e;case Bl:return e=Pt(19,n,t,i),e.elementType=Bl,e.lanes=o,e;case bd:return qo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Cd:a=10;break e;case Ed:a=9;break e;case ts:a=11;break e;case ns:a=14;break e;case mn:a=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=Pt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Bn(e,t,n,r){return e=Pt(7,e,r,t),e.lanes=n,e}function qo(e,t,n,r){return e=Pt(22,e,r,t),e.elementType=bd,e.lanes=n,e.stateNode={},e}function xl(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function wl(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tl(0),this.expirationTimes=tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ls(e,t,n,r,i,o,a,l,u){return e=new lv(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Pt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vs(o),e}function uv(e,t,n){var r=3<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Qt]=t,e[xi]=r,Qp(e,t,!1,!1),t.stateNode=e;e:{switch(a=Kl(n,r),n){case"dialog":Ee("cancel",e),Ee("close",e),i=r;break;case"iframe":case"object":case"embed":Ee("load",e),i=r;break;case"video":case"audio":for(i=0;iPr&&(t.flags|=128,r=!0,jr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Wo(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Pe)return tt(t),null}else 2*Me()-o.renderingStartTime>Pr&&n!==1073741824&&(t.flags|=128,r=!0,jr(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Me(),t.sibling=null,n=Ae.current,be(Ae,r?n&1|2:n&1),t):(tt(t),null);case 22:case 23:return Tu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(gt&1073741824)!==0&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}var W1=cn.ReactCurrentOwner,dt=!1;function ot(e,t,n,r){t.child=e===null?bp(t,null,n,r):Er(t,e.child,n,r)}function ef(e,t,n,r,i){n=n.render;var o=t.ref;return xr(t,i),r=bu(e,t,n,r,o,i),n=Eu(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,un(e,t,i)):(Pe&&n&&gu(t),t.flags|=1,ot(e,t,r,i),t.child)}function tf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ru(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Xp(e,t,o,r,i)):(e=So(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:vi,n(a,r)&&e.ref===t.ref)return un(e,t,i)}return t.flags|=1,e=_n(o,r),e.ref=t.ref,e.return=t,t.child=e}function Xp(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(vi(o,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(dt=!0);else return t.lanes=e.lanes,un(e,t,i)}return ys(e,t,n,r,i)}function Zp(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},be(dr,gt),gt|=n;else if((n&1073741824)!==0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,be(dr,gt),gt|=r;else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,be(dr,gt),gt|=e,null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,be(dr,gt),gt|=r;return ot(e,t,i,n),t.child}function qp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ys(e,t,n,r,i){var o=ht(n)?Hn:it.current;return o=Cr(t,o),xr(t,i),n=bu(e,t,n,r,o,i),r=Eu(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,un(e,t,i)):(Pe&&r&&gu(t),t.flags|=1,ot(e,t,n,i),t.child)}function nf(e,t,n,r,i){if(ht(n)){var o=!0;No(t)}else o=!1;if(xr(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),wp(t,n,r),ps(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Vt(u):(u=ht(n)?Hn:it.current,u=Cr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&Wc(t,a,r,u),vn=!1;var h=t.memoizedState;a.state=h,jo(t,r,a,i),s=t.memoizedState,l!==r||h!==s||pt.current||vn?(typeof c=="function"&&(ds(t,n,c,r),s=t.memoizedState),(l=vn||Uc(t,n,l,r,h,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,yp(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Mt(t.type,l),a.props=u,d=t.pendingProps,h=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Vt(s):(s=ht(n)?Hn:it.current,s=Cr(t,s));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||h!==s)&&Wc(t,a,r,s),vn=!1,h=t.memoizedState,a.state=h,jo(t,r,a,i);var v=t.memoizedState;l!==d||h!==v||pt.current||vn?(typeof g=="function"&&(ds(t,n,g,r),v=t.memoizedState),(u=vn||Uc(t,n,u,r,h,v,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return xs(e,t,n,r,o,i)}function xs(e,t,n,r,i,o){qp(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Bc(t,n,!1),un(e,t,o);r=t.stateNode,W1.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Er(t,e.child,null,o),t.child=Er(t,null,l,o)):ot(e,t,l,o),t.memoizedState=r.state,i&&Bc(t,n,!0),t.child}function Jp(e){var t=e.stateNode;t.pendingContext?$c(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$c(e,t.context,!1),wu(e,t.containerInfo)}function rf(e,t,n,r,i){return br(),xu(i),t.flags|=256,ot(e,t,n,r),t.child}var Zi={dehydrated:null,treeContext:null,retryLane:0};function qi(e){return{baseLanes:e,cachePool:null,transitions:null}}function of(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function eh(e,t,n){var r=t.pendingProps,i=Ae.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),be(Ae,i&1),e===null)return ms(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=i):o=qo(i,r,0,null),e=Bn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=qi(n),t.memoizedState=Zi,e):ws(t,i));if(i=e.memoizedState,i!==null){if(l=i.dehydrated,l!==null){if(a)return t.flags&256?(t.flags&=-257,Ji(e,t,n,Error(V(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=qo({mode:"visible",children:r.children},i,0,null),o=Bn(o,i,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&Er(t,e.child,null,n),t.child.memoizedState=qi(n),t.memoizedState=Zi,o);if((t.mode&1)===0)t=Ji(e,t,n,null);else if(l.data==="$!")t=Ji(e,t,n,Error(V(419)));else if(r=(n&e.childLanes)!==0,dt||r){if(r=je,r!==null){switch(n&-n){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}r=(o&(r.suspendedLanes|n))!==0?0:o,r!==0&&r!==i.retryLane&&(i.retryLane=r,Ft(e,r,-1))}Mu(),t=Ji(e,t,n,Error(V(421)))}else l.data==="$?"?(t.flags|=128,t.child=e.child,t=rv.bind(null,e),l._reactRetry=t,t=null):(n=i.treeContext,ft=nn(l.nextSibling),xt=t,Pe=!0,Lt=null,n!==null&&(Et[Ot++]=rn,Et[Ot++]=on,Et[Ot++]=Un,rn=n.id,on=n.overflow,Un=t),t=ws(t,t.pendingProps.children),t.flags|=4096);return t}return o?(r=lf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?qi(n):of(i,n),o.childLanes=e.childLanes&~n,t.memoizedState=Zi,r):(n=af(e,t,r.children,n),t.memoizedState=null,n)}return o?(r=lf(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?qi(n):of(i,n),o.childLanes=e.childLanes&~n,t.memoizedState=Zi,r):(n=af(e,t,r.children,n),t.memoizedState=null,n)}function ws(e,t){return t=qo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function af(e,t,n,r){var i=e.child;return e=i.sibling,n=_n(i,{mode:"visible",children:n}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function lf(e,t,n,r,i){var o=t.mode;e=e.child;var a=e.sibling,l={mode:"hidden",children:n};return(o&1)===0&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=_n(e,l),n.subtreeFlags=e.subtreeFlags&14680064),a!==null?r=_n(a,r):(r=Bn(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ji(e,t,n,r){return r!==null&&xu(r),Er(t,e.child,null,n),e=ws(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fs(e.return,t,n)}function yl(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function th(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ot(e,t,r.children,n),r=Ae.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sf(e,n,t);else if(e.tag===19)sf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(be(Ae,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Wo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),yl(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}yl(t,!0,n,null,o);break;case"together":yl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=_n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function G1(e,t,n){switch(t.tag){case 3:Jp(t),br();break;case 5:Ep(t);break;case 1:ht(t.type)&&No(t);break;case 4:wu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;be($o,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(be(Ae,Ae.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?eh(e,t,n):(be(Ae,Ae.current&1),e=un(e,t,n),e!==null?e.sibling:null);be(Ae,Ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return th(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),be(Ae,Ae.current),r)break;return null;case 22:case 23:return t.lanes=0,Zp(e,t,n)}return un(e,t,n)}function Q1(e,t){switch(yu(t),t.tag){case 1:return ht(t.type)&&Do(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Or(),Oe(pt),Oe(it),ku(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Su(t),null;case 13:if(Oe(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(Ae),null;case 4:return Or(),null;case 10:return mu(t.type._context),null;case 22:case 23:return Tu(),null;case 24:return null;default:return null}}var eo=!1,rt=!1,Y1=typeof WeakSet=="function"?WeakSet:Set,H=null;function fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Ss(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var uf=!1;function K1(e,t){if(os=Mo,e=lp(),du(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(l=a+i),d!==o||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++u===i&&(l=a),h===o&&++c===r&&(s=a),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(as={focusedElem:e,selectionRange:n},Mo=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,S=v.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Mt(t.type,w),S);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;if(m.nodeType===1)m.textContent="";else if(m.nodeType===9){var k=m.body;k!=null&&(k.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(x){Ie(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return v=uf,uf=!1,v}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ss(t,n,o)}i=i.next}while(i!==r)}}function ka(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ks(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function nh(e){var t=e.alternate;t!==null&&(e.alternate=null,nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[xi],delete t[us],delete t[I1],delete t[T1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rh(e){return e.tag===5||e.tag===3||e.tag===4}function cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zo));else if(r!==4&&(e=e.child,e!==null))for(Cs(e,t,n),e=e.sibling;e!==null;)Cs(e,t,n),e=e.sibling}function bs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bs(e,t,n),e=e.sibling;e!==null;)bs(e,t,n),e=e.sibling}var Ge=null,Rt=!1;function pn(e,t,n){for(n=n.child;n!==null;)ih(e,t,n),n=n.sibling}function ih(e,t,n){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(ha,n)}catch{}switch(n.tag){case 5:rt||fr(n,t);case 6:var r=Ge,i=Rt;Ge=null,pn(e,t,n),Ge=r,Rt=i,Ge!==null&&(Rt?(e=Ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ge.removeChild(n.stateNode));break;case 18:Ge!==null&&(Rt?(e=Ge,n=n.stateNode,e.nodeType===8?dl(e.parentNode,n):e.nodeType===1&&dl(e,n),hi(e)):dl(Ge,n.stateNode));break;case 4:r=Ge,i=Rt,Ge=n.stateNode.containerInfo,Rt=!0,pn(e,t,n),Ge=r,Rt=i;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&((o&2)!==0||(o&4)!==0)&&Ss(n,t,a),i=i.next}while(i!==r)}pn(e,t,n);break;case 1:if(!rt&&(fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ie(n,t,l)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,pn(e,t,n),rt=r):pn(e,t,n);break;default:pn(e,t,n)}}function ff(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Y1),t.forEach(function(r){var i=iv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Z1(r/1960))-r,10e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,Xo=0,(he&6)!==0)throw Error(V(331));var i=he;for(he|=4,H=e.current;H!==null;){var o=H,a=o.child;if((H.flags&16)!==0){var l=o.deletions;if(l!==null){for(var s=0;sMe()-_u?$n(e,0):Vu|=n),mt(e,t)}function ph(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ui,Ui<<=1,(Ui&130023424)===0&&(Ui=4194304)));var n=at();e=ba(e,t),e!==null&&(Ii(e,t,n),mt(e,n))}function rv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ph(e,n)}function iv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(V(314))}r!==null&&r.delete(t),ph(e,n)}var hh;hh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)dt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return dt=!1,G1(e,t,n);dt=(e.flags&131072)!==0}else dt=!1,Pe&&(t.flags&1048576)!==0&&Sp(t,Uo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=Cr(t,it.current);xr(t,n),i=bu(null,t,r,e,i,n);var o=Eu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(r)?(o=!0,No(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,vu(t),i.updater=wa,t.stateNode=i,i._reactInternals=t,ps(t,r,e,n),t=xs(null,t,r,!0,o,n)):(t.tag=0,Pe&&o&&gu(t),ot(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=av(r),e=Mt(r,e),i){case 0:t=ys(null,t,r,e,n);break e;case 1:t=nf(null,t,r,e,n);break e;case 11:t=ef(null,t,r,e,n);break e;case 14:t=tf(null,t,r,Mt(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),ys(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),nf(e,t,r,i,n);case 3:e:{if(Jp(t),e===null)throw Error(V(387));r=t.pendingProps,o=t.memoizedState,i=o.element,yp(e,t),jo(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Error(V(423)),t=rf(e,t,r,n,i);break e}else if(r!==i){i=Error(V(424)),t=rf(e,t,r,n,i);break e}else for(ft=nn(t.stateNode.containerInfo.firstChild),xt=t,Pe=!0,Lt=null,n=bp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(br(),r===i){t=un(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return Ep(t),e===null&&ms(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ls(r,i)?a=null:o!==null&&ls(r,o)&&(t.flags|=32),qp(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&ms(t),null;case 13:return eh(e,t,n);case 4:return wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Er(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),ef(e,t,r,i,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,be($o,r._currentValue),r._currentValue=a,o!==null)if(jt(o.value,a)){if(o.children===i.children&&!pt.current){t=un(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=an(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),fs(o.return,n,t),l.lanes|=n;break}s=s.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),fs(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}ot(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,xr(t,n),i=Vt(i),r=r(i),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,i=Mt(r,t.pendingProps),i=Mt(r.type,i),tf(e,t,r,i,n);case 15:return Xp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ht(r)?(e=!0,No(t)):e=!1,xr(t,n),wp(t,r,i),ps(t,r,i,n),xs(null,t,r,!0,e,n);case 19:return th(e,t,n);case 22:return Zp(e,t,n)}throw Error(V(156,t.tag))};function mh(e,t){return jd(e,t)}function ov(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,r){return new ov(e,t,n,r)}function Ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function av(e){if(typeof e=="function")return Ru(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tu)return 11;if(e===nu)return 14}return 2}function _n(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function So(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Ru(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case nr:return Bn(n.children,i,o,t);case eu:a=8,i|=8;break;case Nl:return e=Pt(12,n,t,i|2),e.elementType=Nl,e.lanes=o,e;case $l:return e=Pt(13,n,t,i),e.elementType=$l,e.lanes=o,e;case Bl:return e=Pt(19,n,t,i),e.elementType=Bl,e.lanes=o,e;case Ed:return qo(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Cd:a=10;break e;case bd:a=9;break e;case tu:a=11;break e;case nu:a=14;break e;case mn:a=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=Pt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Bn(e,t,n,r){return e=Pt(7,e,r,t),e.lanes=n,e}function qo(e,t,n,r){return e=Pt(22,e,r,t),e.elementType=Ed,e.lanes=n,e.stateNode={},e}function xl(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function wl(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tl(0),this.expirationTimes=tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,i,o,a,l,s){return e=new lv(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Pt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vu(o),e}function sv(e,t,n){var r=3{const[t,n]=E.exports.useState(wv),r=E.exports.useCallback(a=>{n(l=>R(I({},l),{display:I({},a)}))},[n]),i=E.exports.useCallback(a=>{n(l=>R(I({},l),{locales:a}))},[n]),o={display:t.display,setDisplay:r,locales:t.locales,setLocales:i};return y(kh.Provider,{value:o,children:e})};function fn(){return E.exports.useContext(kh)}var _a={exports:{}},Se={};/** @license React v16.13.1 + */var hv=b.exports,mv=Symbol.for("react.element"),vv=Symbol.for("react.fragment"),gv=Object.prototype.hasOwnProperty,yv=hv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xv={key:!0,ref:!0,__self:!0,__source:!0};function Sh(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)gv.call(t,r)&&!xv.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:mv,type:e,key:o,ref:a,props:i,_owner:yv.current}}Va.Fragment=vv;Va.jsx=Sh;Va.jsxs=Sh;Fa.exports=Va;const y=Fa.exports.jsx,z=Fa.exports.jsxs,ea=Fa.exports.Fragment,wv={display:{appearance:!1}},kh=b.exports.createContext({}),Sv=({children:e})=>{const[t,n]=b.exports.useState(wv),r=b.exports.useCallback(a=>{n(l=>R(I({},l),{display:I({},a)}))},[n]),i=b.exports.useCallback(a=>{n(l=>R(I({},l),{locales:a}))},[n]),o={display:t.display,setDisplay:r,locales:t.locales,setLocales:i};return y(kh.Provider,{value:o,children:e})};function fn(){return b.exports.useContext(kh)}var _a={exports:{}},Se={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ue=typeof Symbol=="function"&&Symbol.for,$s=Ue?Symbol.for("react.element"):60103,Bs=Ue?Symbol.for("react.portal"):60106,Ia=Ue?Symbol.for("react.fragment"):60107,Ta=Ue?Symbol.for("react.strict_mode"):60108,Ma=Ue?Symbol.for("react.profiler"):60114,Ra=Ue?Symbol.for("react.provider"):60109,La=Ue?Symbol.for("react.context"):60110,js=Ue?Symbol.for("react.async_mode"):60111,za=Ue?Symbol.for("react.concurrent_mode"):60111,Da=Ue?Symbol.for("react.forward_ref"):60112,Na=Ue?Symbol.for("react.suspense"):60113,kv=Ue?Symbol.for("react.suspense_list"):60120,$a=Ue?Symbol.for("react.memo"):60115,Ba=Ue?Symbol.for("react.lazy"):60116,Cv=Ue?Symbol.for("react.block"):60121,Ev=Ue?Symbol.for("react.fundamental"):60117,bv=Ue?Symbol.for("react.responder"):60118,Ov=Ue?Symbol.for("react.scope"):60119;function Et(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $s:switch(e=e.type,e){case js:case za:case Ia:case Ma:case Ta:case Na:return e;default:switch(e=e&&e.$$typeof,e){case La:case Da:case Ba:case $a:case Ra:return e;default:return t}}case Bs:return t}}}function Ch(e){return Et(e)===za}Se.AsyncMode=js;Se.ConcurrentMode=za;Se.ContextConsumer=La;Se.ContextProvider=Ra;Se.Element=$s;Se.ForwardRef=Da;Se.Fragment=Ia;Se.Lazy=Ba;Se.Memo=$a;Se.Portal=Bs;Se.Profiler=Ma;Se.StrictMode=Ta;Se.Suspense=Na;Se.isAsyncMode=function(e){return Ch(e)||Et(e)===js};Se.isConcurrentMode=Ch;Se.isContextConsumer=function(e){return Et(e)===La};Se.isContextProvider=function(e){return Et(e)===Ra};Se.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$s};Se.isForwardRef=function(e){return Et(e)===Da};Se.isFragment=function(e){return Et(e)===Ia};Se.isLazy=function(e){return Et(e)===Ba};Se.isMemo=function(e){return Et(e)===$a};Se.isPortal=function(e){return Et(e)===Bs};Se.isProfiler=function(e){return Et(e)===Ma};Se.isStrictMode=function(e){return Et(e)===Ta};Se.isSuspense=function(e){return Et(e)===Na};Se.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ia||e===za||e===Ma||e===Ta||e===Na||e===kv||typeof e=="object"&&e!==null&&(e.$$typeof===Ba||e.$$typeof===$a||e.$$typeof===Ra||e.$$typeof===La||e.$$typeof===Da||e.$$typeof===Ev||e.$$typeof===bv||e.$$typeof===Ov||e.$$typeof===Cv)};Se.typeOf=Et;_a.exports=Se;function Pv(e){function t(O,T,N,Q,C){for(var ee=0,M=0,me=0,fe=0,de,J,Te=0,ze=0,le,_=le=de=0,B=0,L=0,ue=0,ke=0,We=N.length,Je=We-1,De,Z="",xe="",It="",Ce="",dn;Bde)&&(ke=(Z=Z.replace(" ",":")).length),0Q&&(Q=(T=T.trim()).charCodeAt(0)),Q){case 38:return T.replace(p,"$1"+O.trim());case 58:return O.trim()+T.replace(p,"$1"+O.trim());default:if(0<1*N&&0M.charCodeAt(8))break;case 115:C=C.replace(M,"-webkit-"+M)+";"+C;break;case 207:case 102:C=C.replace(M,"-webkit-"+(102N.charCodeAt(0)&&(N=N.trim()),ae=N,N=[ae],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Nv=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;n>=a;)(a<<=1)<0&&Li(16,""+n);this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var l=o;l=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],o=this.indexOfGroup(n),a=o+i,l=o;lde)&&(ke=(Z=Z.replace(" ",":")).length),0Q&&(Q=(T=T.trim()).charCodeAt(0)),Q){case 38:return T.replace(p,"$1"+O.trim());case 58:return O.trim()+T.replace(p,"$1"+O.trim());default:if(0<1*N&&0M.charCodeAt(8))break;case 115:C=C.replace(M,"-webkit-"+M)+";"+C;break;case 207:case 102:C=C.replace(M,"-webkit-"+(102N.charCodeAt(0)&&(N=N.trim()),ae=N,N=[ae],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Nv=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;n>=a;)(a<<=1)<0&&Li(16,""+n);this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var l=o;l=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],o=this.indexOfGroup(n),a=o+i,l=o;l=ai&&(ai=t+1),ko.set(e,t),na.set(t,e)},jv="style["+Ar+'][data-styled-version="5.3.5"]',Hv=new RegExp("^"+Ar+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Uv=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;s--){var c=u[s];if(c&&c.nodeType===1&&c.hasAttribute(Ar))return c}}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(Ar,"active"),r.setAttribute("data-styled-version","5.3.5");var a=Gv();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Qv=function(){function e(n){var r=this.element=Ah(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,a=0,l=o.length;a=0){var i=document.createTextNode(r),o=this.nodes[n];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(d+=h+",")}),o+=""+s+c+'{content:"'+d+`"}/*!sc*/ -`}}}return o}(this)},e}(),Zv=/(a)(d)/gi,Of=function(e){return String.fromCharCode(e+(e>25?39:97))};function Vu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Of(t%52)+n;return(Of(t%52)+n).replace(Zv,"$1-$2")}var pr=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Fh=function(e){return pr(5381,e)};function Vh(e){for(var t=0;t>>0);if(!n.hasNameForId(i,l)){var u=r(a,"."+l,void 0,i);n.insertRules(i,l,u)}o.push(l),this.staticRulesId=l}else{for(var s=this.rules.length,c=pr(this.baseHash,r.hash),d="",h=0;h>>0);if(!n.hasNameForId(i,S)){var p=r(d,"."+S,void 0,i);n.insertRules(i,S,p)}o.push(S)}}return o.join(" ")},e}(),eg=/^\s*\/\/.*$/gm,tg=[":","[",".","#"];function ng(e){var t,n,r,i,o=e===void 0?Pn:e,a=o.options,l=a===void 0?Pn:a,u=o.plugins,s=u===void 0?ta:u,c=new Pv(l),d=[],h=function(w){function S(p){if(p)try{w(p+"}")}catch{}}return function(p,f,m,k,x,P,b,A,j,D){switch(p){case 1:if(j===0&&f.charCodeAt(0)===64)return w(f+";"),"";break;case 2:if(A===0)return f+"/*|*/";break;case 3:switch(A){case 102:case 112:return w(m[0]+f),"";default:return f+(D===0?"/*|*/":"")}case-2:f.split("/*|*/}").forEach(S)}}}(function(w){d.push(w)}),g=function(w,S,p){return S===0&&tg.indexOf(p[n.length])!==-1||p.match(i)?w:"."+t};function v(w,S,p,f){f===void 0&&(f="&");var m=w.replace(eg,""),k=S&&p?p+" "+S+" { "+m+" }":m;return t=f,n=S,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),c(p||!S?"":S,k)}return c.use([].concat(s,[function(w,S,p){w===2&&p.length&&p[0].lastIndexOf(n)>0&&(p[0]=p[0].replace(r,g))},h,function(w){if(w===-2){var S=d;return d=[],S}}])),v.hash=s.length?s.reduce(function(w,S){return S.name||Li(15),pr(w,S.name)},5381).toString():"",v}var _h=Ke.createContext();_h.Consumer;var Ih=Ke.createContext(),rg=(Ih.Consumer,new ra),_u=ng();function Th(){return E.exports.useContext(_h)||rg}function Mh(){return E.exports.useContext(Ih)||_u}var ig=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=_u);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.toString=function(){return Li(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=_u),this.name+t.hash},e}(),og=/([A-Z])/,ag=/([A-Z])/g,lg=/^ms-/,ug=function(e){return"-"+e.toLowerCase()};function Pf(e){return og.test(e)?e.replace(ag,ug).replace(lg,"-ms-"):e}var Af=function(e){return e==null||e===!1||e===""};function Yn(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,l=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,cg=/(^-|-$)/g;function Sl(e){return e.replace(sg,"-").replace(cg,"")}var Lh=function(e){return Vu(Fh(e)>>>0)};function io(e){return typeof e=="string"&&!0}var Iu=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},fg=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function dg(e,t,n){var r=e[n];Iu(t)&&Iu(r)?zh(r,t):e[n]=t}function zh(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(D[A]=P[A]);return D}(t,["componentId"]),x=m&&m+"-"+(io(f)?f:Sl(Ef(f)));return Dh(f,Yt({},k,{attrs:h,componentId:x}),n)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(f){this._foldedDefaultProps=r?zh({},e.defaultProps,f):f}}),v.toString=function(){return"."+v.styledComponentId},i&&Lv(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Tu=function(e){return function t(n,r,i){if(i===void 0&&(i=Pn),!_a.exports.isValidElementType(r))return Li(1,String(r));var o=function(){return n(r,i,zi.apply(void 0,arguments))};return o.withConfig=function(a){return t(n,r,Yt({},i,{},a))},o.attrs=function(a){return t(n,r,Yt({},i,{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},o}(Dh,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Tu[e]=Tu(e)});var pg=function(){function e(n,r){this.rules=n,this.componentId=r,this.isStatic=Vh(n),ra.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(n,r,i,o){var a=o(Yn(this.rules,r,i,o).join(""),""),l=this.componentId+n;i.insertRules(l,l,a)},t.removeStyles=function(n,r){r.clearRules(this.componentId+n)},t.renderStyles=function(n,r,i,o){n>2&&ra.registerId(this.componentId+n),this.removeStyles(n,i),this.createStyles(n,r,i,o)},e}();function hg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0;u--){var c=s[u];if(c&&c.nodeType===1&&c.hasAttribute(Ar))return c}}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(Ar,"active"),r.setAttribute("data-styled-version","5.3.5");var a=Gv();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Qv=function(){function e(n){var r=this.element=Ah(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,a=0,l=o.length;a=0){var i=document.createTextNode(r),o=this.nodes[n];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(d+=h+",")}),o+=""+u+c+'{content:"'+d+`"}/*!sc*/ +`}}}return o}(this)},e}(),Zv=/(a)(d)/gi,Of=function(e){return String.fromCharCode(e+(e>25?39:97))};function Vs(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Of(t%52)+n;return(Of(t%52)+n).replace(Zv,"$1-$2")}var pr=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Fh=function(e){return pr(5381,e)};function Vh(e){for(var t=0;t>>0);if(!n.hasNameForId(i,l)){var s=r(a,"."+l,void 0,i);n.insertRules(i,l,s)}o.push(l),this.staticRulesId=l}else{for(var u=this.rules.length,c=pr(this.baseHash,r.hash),d="",h=0;h>>0);if(!n.hasNameForId(i,S)){var p=r(d,"."+S,void 0,i);n.insertRules(i,S,p)}o.push(S)}}return o.join(" ")},e}(),eg=/^\s*\/\/.*$/gm,tg=[":","[",".","#"];function ng(e){var t,n,r,i,o=e===void 0?Pn:e,a=o.options,l=a===void 0?Pn:a,s=o.plugins,u=s===void 0?ta:s,c=new Pv(l),d=[],h=function(w){function S(p){if(p)try{w(p+"}")}catch{}}return function(p,f,m,k,x,P,E,A,j,D){switch(p){case 1:if(j===0&&f.charCodeAt(0)===64)return w(f+";"),"";break;case 2:if(A===0)return f+"/*|*/";break;case 3:switch(A){case 102:case 112:return w(m[0]+f),"";default:return f+(D===0?"/*|*/":"")}case-2:f.split("/*|*/}").forEach(S)}}}(function(w){d.push(w)}),g=function(w,S,p){return S===0&&tg.indexOf(p[n.length])!==-1||p.match(i)?w:"."+t};function v(w,S,p,f){f===void 0&&(f="&");var m=w.replace(eg,""),k=S&&p?p+" "+S+" { "+m+" }":m;return t=f,n=S,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),c(p||!S?"":S,k)}return c.use([].concat(u,[function(w,S,p){w===2&&p.length&&p[0].lastIndexOf(n)>0&&(p[0]=p[0].replace(r,g))},h,function(w){if(w===-2){var S=d;return d=[],S}}])),v.hash=u.length?u.reduce(function(w,S){return S.name||Li(15),pr(w,S.name)},5381).toString():"",v}var _h=Ke.createContext();_h.Consumer;var Ih=Ke.createContext(),rg=(Ih.Consumer,new ra),_s=ng();function Th(){return b.exports.useContext(_h)||rg}function Mh(){return b.exports.useContext(Ih)||_s}var ig=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=_s);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.toString=function(){return Li(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=_s),this.name+t.hash},e}(),og=/([A-Z])/,ag=/([A-Z])/g,lg=/^ms-/,sg=function(e){return"-"+e.toLowerCase()};function Pf(e){return og.test(e)?e.replace(ag,sg).replace(lg,"-ms-"):e}var Af=function(e){return e==null||e===!1||e===""};function Yn(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,l=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,cg=/(^-|-$)/g;function Sl(e){return e.replace(ug,"-").replace(cg,"")}var Lh=function(e){return Vs(Fh(e)>>>0)};function io(e){return typeof e=="string"&&!0}var Is=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},fg=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function dg(e,t,n){var r=e[n];Is(t)&&Is(r)?zh(r,t):e[n]=t}function zh(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(D[A]=P[A]);return D}(t,["componentId"]),x=m&&m+"-"+(io(f)?f:Sl(bf(f)));return Dh(f,Yt({},k,{attrs:h,componentId:x}),n)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(f){this._foldedDefaultProps=r?zh({},e.defaultProps,f):f}}),v.toString=function(){return"."+v.styledComponentId},i&&Lv(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Ts=function(e){return function t(n,r,i){if(i===void 0&&(i=Pn),!_a.exports.isValidElementType(r))return Li(1,String(r));var o=function(){return n(r,i,zi.apply(void 0,arguments))};return o.withConfig=function(a){return t(n,r,Yt({},i,{},a))},o.attrs=function(a){return t(n,r,Yt({},i,{attrs:Array.prototype.concat(i.attrs,a).filter(Boolean)}))},o}(Dh,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Ts[e]=Ts(e)});var pg=function(){function e(n,r){this.rules=n,this.componentId=r,this.isStatic=Vh(n),ra.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(n,r,i,o){var a=o(Yn(this.rules,r,i,o).join(""),""),l=this.componentId+n;i.insertRules(l,l,a)},t.removeStyles=function(n,r){r.clearRules(this.componentId+n)},t.renderStyles=function(n,r,i,o){n>2&&ra.registerId(this.componentId+n),this.removeStyles(n,i),this.createStyles(n,r,i,o)},e}();function hg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0)&&(n[i]=e[i]);return n}const oe={arr:Array.isArray,obj:e=>Object.prototype.toString.call(e)==="[object Object]",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0,nul:e=>e===null,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(oe.str(e)||oe.num(e))return e===t;if(oe.obj(e)&&oe.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return oe.und(n)?e===t:!0}};function vg(e,t){return t===void 0&&(t=!0),n=>(oe.arr(n)?n:Object.keys(n)).reduce((r,i)=>{const o=t?i[0].toLowerCase()+i.substring(1):i;return r[o]=e(o),r},e)}function Nh(){const e=E.exports.useState(!1),t=e[1];return E.exports.useCallback(()=>t(r=>!r),[])}function Rn(e,t){return oe.und(e)||oe.nul(e)?t:e}function hr(e){return oe.und(e)?[]:oe.arr(e)?e:[e]}function yt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;roe.und(t[i])?Y({},r,{[i]:e[i]}):r,{});return Y({to:t},n)}function yg(e,t){return t&&(oe.fun(t)?t(e):oe.obj(t)&&(t.current=e)),e}class zt{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(t){this.children.length===0&&this.attach(),this.children.push(t)}removeChild(t){const n=this.children.indexOf(t);this.children.splice(n,1),this.children.length===0&&this.detach()}}class Mu extends zt{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach(t=>t instanceof zt&&t.addChild(this)),this.detach=()=>this.payload.forEach(t=>t instanceof zt&&t.removeChild(this))}}class $h extends zt{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach(t=>t instanceof zt&&t.addChild(this)),this.detach=()=>Object.values(this.payload).forEach(t=>t instanceof zt&&t.removeChild(this))}getValue(t){t===void 0&&(t=!1);const n={};for(const r in this.payload){const i=this.payload[r];t&&!(i instanceof zt)||(n[r]=i instanceof zt?i[t?"getAnimatedValue":"getValue"]():i)}return n}getAnimatedValue(){return this.getValue(!0)}}let Ys;function xg(e,t){Ys={fn:e,transform:t}}let Bh;function wg(e){Bh=e}let jh=e=>typeof window!="undefined"?window.requestAnimationFrame(e):-1,ia;function Sg(e){ia=e}let Hh=()=>Date.now(),kg=e=>e.current,Uh;function Cg(e){Uh=e}class Eg extends $h{constructor(t,n){super(),this.update=void 0,this.payload=t.style?Y({},t,{style:Uh(t.style)}):t,this.update=n,this.attach()}}const bg=e=>oe.fun(e)&&!(e.prototype instanceof Ke.Component),Og=e=>E.exports.forwardRef((n,r)=>{const i=Nh(),o=E.exports.useRef(!0),a=E.exports.useRef(null),l=E.exports.useRef(null),u=E.exports.useCallback(h=>{const g=a.current,v=()=>{let w=!1;l.current&&(w=Ys.fn(l.current,a.current.getAnimatedValue())),(!l.current||w===!1)&&i()};a.current=new Eg(h,v),g&&g.detach()},[]);E.exports.useEffect(()=>()=>{o.current=!1,a.current&&a.current.detach()},[]),E.exports.useImperativeHandle(r,()=>kg(l)),u(n);const s=a.current.getValue();s.scrollTop,s.scrollLeft;const c=Bt(s,["scrollTop","scrollLeft"]),d=bg(e)?void 0:h=>l.current=yg(h,r);return y(e,R(I({},c),{ref:d}))});let li=!1;const jn=new Set,Wh=()=>{if(!li)return!1;let e=Hh();for(let t of jn){let n=!1;for(let r=0;r=u.startTime+i.duration;else if(i.decay)d=s+g/(1-.998)*(1-Math.exp(-(1-.998)*(e-u.startTime))),o=Math.abs(u.lastPosition-d)<.1,o&&(c=d);else{a=u.lastTime!==void 0?u.lastTime:e,g=u.lastVelocity!==void 0?u.lastVelocity:i.initialVelocity,e>a+64&&(a=e);let v=Math.floor(e-a);for(let f=0;fc:d{jn.has(e)||jn.add(e),li||(li=!0,jh(Wh))},Ag=e=>{jn.has(e)&&jn.delete(e)};function oa(e,t,n){if(typeof e=="function")return e;if(Array.isArray(e))return oa({range:e,output:t,extrapolate:n});if(ia&&typeof e.output[0]=="string")return ia(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(s=>s);return s=>{const c=Vg(s,o);return Fg(s,o[c],o[c+1],i[c],i[c+1],u,a,l,r.map)}}function Fg(e,t,n,r,i,o,a,l,u){let s=u?u(e):e;if(sn){if(l==="identity")return s;l==="clamp"&&(s=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?s=-s:n===1/0?s=s-t:s=(s-t)/(n-t),s=o(s),r===-1/0?s=-s:i===1/0?s=s+r:s=s*(i-r)+r,s)}function Vg(e,t){for(var n=1;n=e);++n);return n-1}class Pi extends Mu{constructor(t,n,r,i){super(),this.calc=void 0,this.payload=t instanceof Mu&&!(t instanceof Pi)?t.getPayload():Array.isArray(t)?t:[t],this.calc=oa(n,r,i)}getValue(){return this.calc(...this.payload.map(t=>t.getValue()))}updateConfig(t,n,r){this.calc=oa(t,n,r)}interpolate(t,n,r){return new Pi(this,t,n,r)}}function Gh(e,t){"update"in e?t.add(e):e.getChildren().forEach(n=>Gh(n,t))}class Ru extends zt{constructor(t){var n;super(),n=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(r,i){i===void 0&&(i=!0),n.value=r,i&&n.flush()},this.value=t,this.startPosition=t,this.lastPosition=t}flush(){this.animatedStyles.size===0&&Gh(this,this.animatedStyles),this.animatedStyles.forEach(t=>t.update())}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(t,n,r){return new Pi(this,t,n,r)}}class _g extends Mu{constructor(t){super(),this.payload=t.map(n=>new Ru(n))}setValue(t,n){n===void 0&&(n=!0),Array.isArray(t)?t.length===this.payload.length&&t.forEach((r,i)=>this.payload[i].setValue(r,n)):this.payload.forEach(r=>r.setValue(t,n))}getValue(){return this.payload.map(t=>t.getValue())}interpolate(t,n){return new Pi(this,t,n)}}let Ig=0;class Qh{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=Ig++}update(t){if(!t)return this;const n=Cl(t),r=n.delay,i=r===void 0?0:r,o=n.to,a=Bt(n,["delay","to"]);if(oe.arr(o)||oe.fun(o))this.queue.push(Y({},a,{delay:i,to:o}));else if(o){let l={};Object.entries(o).forEach(u=>{let s=u[0],c=u[1];const d=Y({to:{[s]:c},delay:yt(i,s)},a),h=l[d.delay]&&l[d.delay].to;l[d.delay]=Y({},l[d.delay],d,{to:Y({},h,d.to)})}),this.queue=Object.values(l)}return this.queue=this.queue.sort((l,u)=>l.delay-u.delay),this.diff(a),this}start(t){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(i=>{let o=i.from,a=o===void 0?{}:o,l=i.to,u=l===void 0?{}:l;oe.obj(a)&&(this.merged=Y({},a,this.merged)),oe.obj(u)&&(this.merged=Y({},this.merged,u))});const n=this.local=++this.guid,r=this.localQueue=this.queue;this.queue=[],r.forEach((i,o)=>{let a=i.delay,l=Bt(i,["delay"]);const u=c=>{o===r.length-1&&n===this.guid&&c&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),t&&t()};let s=oe.arr(l.to)||oe.fun(l.to);a?setTimeout(()=>{n===this.guid&&(s?this.runAsync(l,u):this.diff(l).start(u))},a):s?this.runAsync(l,u):this.diff(l).start(u)})}else oe.fun(t)&&this.listeners.push(t),this.props.onStart&&this.props.onStart(),Pg(this);return this}stop(t){return this.listeners.forEach(n=>n(t)),this.listeners=[],this}pause(t){return this.stop(!0),t&&Ag(this),this}runAsync(t,n){var r=this;t.delay;let i=Bt(t,["delay"]);const o=this.local;let a=Promise.resolve(void 0);if(oe.arr(i.to))for(let l=0;l{if(o===this.guid)return new Promise(c=>this.diff(s).start(c))})}else if(oe.fun(i.to)){let l=0,u;a=a.then(()=>i.to(s=>{const c=Y({},i,Cl(s));if(oe.arr(c.config)&&(c.config=c.config[l]),l++,o===this.guid)return u=new Promise(d=>this.diff(c).start(d))},function(s){return s===void 0&&(s=!0),r.stop(s)}).then(()=>u))}a.then(n)}diff(t){this.props=Y({},this.props,t);let n=this.props,r=n.from,i=r===void 0?{}:r,o=n.to,a=o===void 0?{}:o,l=n.config,u=l===void 0?{}:l,s=n.reverse,c=n.attach,d=n.reset,h=n.immediate;if(s){var g=[a,i];i=g[0],a=g[1]}this.merged=Y({},i,this.merged,a),this.hasChanged=!1;let v=c&&c(this);if(this.animations=Object.entries(this.merged).reduce((w,S)=>{let p=S[0],f=S[1],m=w[p]||{};const k=oe.num(f),x=oe.str(f)&&!f.startsWith("#")&&!/\d/.test(f)&&!Bh[f],P=oe.arr(f),b=!k&&!P&&!x;let A=oe.und(i[p])?f:i[p],j=k||P||x?f:1,D=yt(u,p);v&&(j=v.animations[p].parent);let W=m.parent,G=m.interpolation,ie=hr(v?j.getPayload():j),ce,ne=f;b&&(ne=ia({range:[0,1],output:[f,f]})(1));let te=G&&G.getValue();const F=!oe.und(W)&&m.animatedValues.some(O=>!O.done),$=!oe.equ(ne,te),U=!oe.equ(ne,m.previous),ae=!oe.equ(D,m.config);if(d||U&&$||ae){if(k||x)W=G=m.parent||new Ru(A);else if(P)W=G=m.parent||new _g(A);else if(b){let O=m.interpolation&&m.interpolation.calc(m.parent.value);O=O!==void 0&&!d?O:A,m.parent?(W=m.parent,W.setValue(0,!1)):W=new Ru(0);const T={output:[O,f]};m.interpolation?(G=m.interpolation,m.interpolation.updateConfig(T)):G=W.interpolate(T)}return ie=hr(v?j.getPayload():j),ce=hr(W.getPayload()),d&&!b&&W.setValue(A,!1),this.hasChanged=!0,ce.forEach(O=>{O.startPosition=O.value,O.lastPosition=O.value,O.lastVelocity=F?O.lastVelocity:void 0,O.lastTime=F?O.lastTime:void 0,O.startTime=Hh(),O.done=!1,O.animatedStyles.clear()}),yt(h,p)&&W.setValue(b?j:f,!1),Y({},w,{[p]:Y({},m,{name:p,parent:W,interpolation:G,animatedValues:ce,toValues:ie,previous:ne,config:D,fromValues:hr(W.getValue()),immediate:yt(h,p),initialVelocity:Rn(D.velocity,0),clamp:Rn(D.clamp,!1),precision:Rn(D.precision,.01),tension:Rn(D.tension,170),friction:Rn(D.friction,26),mass:Rn(D.mass,1),duration:D.duration,easing:Rn(D.easing,O=>O),decay:D.decay})})}else return $?w:(b&&(W.setValue(1,!1),G.updateConfig({output:[ne,ne]})),W.done=!0,this.hasChanged=!0,Y({},w,{[p]:Y({},w[p],{previous:ne})}))},this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let w in this.animations)this.interpolations[w]=this.animations[w].interpolation,this.values[w]=this.animations[w].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}const Tg=(e,t)=>{const n=E.exports.useRef(!1),r=E.exports.useRef(),i=oe.fun(t),o=E.exports.useMemo(()=>{r.current&&(r.current.map(d=>d.destroy()),r.current=void 0);let c;return[new Array(e).fill().map((d,h)=>{const g=new Qh,v=i?yt(t,h,g):t[h];return h===0&&(c=v.ref),g.update(v),c||g.start(),g}),c]},[e]),a=o[0],l=o[1];r.current=a,E.exports.useImperativeHandle(l,()=>({start:()=>Promise.all(r.current.map(c=>new Promise(d=>c.start(d)))),stop:c=>r.current.forEach(d=>d.stop(c)),get controllers(){return r.current}}));const u=E.exports.useMemo(()=>c=>r.current.map((d,h)=>{d.update(i?yt(c,h,d):c[h]),l||d.start()}),[e]);E.exports.useEffect(()=>{n.current?i||u(t):l||r.current.forEach(c=>c.start())}),E.exports.useEffect(()=>(n.current=!0,()=>r.current.forEach(c=>c.destroy())),[]);const s=r.current.map(c=>c.getValues());return i?[s,u,c=>r.current.forEach(d=>d.pause(c))]:s},Mg=e=>{const t=oe.fun(e),n=Tg(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};let Rg=0;const Co="enter",El="leave",bl="update",Lg=(e,t)=>(typeof t=="function"?e.map(t):hr(t)).map(String),Lu=e=>{let t=e.items,n=e.keys,r=n===void 0?o=>o:n,i=Bt(e,["items","keys"]);return t=hr(t!==void 0?t:null),Y({items:t,keys:Lg(t,r)},i)};function Ol(e,t,n){const r=Y({items:e,keys:t||(f=>f)},n),i=Lu(r),o=i.lazy,a=o===void 0?!1:o;i.unique;const l=i.reset,u=l===void 0?!1:l;i.enter,i.leave,i.update;const s=i.onDestroyed;i.keys,i.items;const c=i.onFrame,d=i.onRest,h=i.onStart,g=i.ref,v=Bt(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),w=Nh(),S=E.exports.useRef(!1),p=E.exports.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!S.current&&new Map,forceUpdate:w});return E.exports.useImperativeHandle(r.ref,()=>({start:()=>Promise.all(Array.from(p.current.instances).map(f=>{let m=f[1];return new Promise(k=>m.start(k))})),stop:f=>Array.from(p.current.instances).forEach(m=>m[1].stop(f)),get controllers(){return Array.from(p.current.instances).map(f=>f[1])}})),p.current=zg(p.current,r),p.current.changed&&p.current.transitions.forEach(f=>{const m=f.slot,k=f.from,x=f.to,P=f.config,b=f.trail,A=f.key,j=f.item;p.current.instances.has(A)||p.current.instances.set(A,new Qh);const D=p.current.instances.get(A),W=Y({},v,{to:x,from:k,config:P,ref:g,onRest:G=>{p.current.mounted&&(f.destroyed&&(!g&&!a&&Vf(p,A),s&&s(j)),!Array.from(p.current.instances).some(ne=>!ne[1].idle)&&(g||a)&&p.current.deleted.length>0&&Vf(p),d&&d(j,m,G))},onStart:h&&(()=>h(j,m)),onFrame:c&&(G=>c(j,m,G)),delay:b,reset:u&&m===Co});D.update(W),p.current.paused||D.start()}),E.exports.useEffect(()=>(p.current.mounted=S.current=!0,()=>{p.current.mounted=S.current=!1,Array.from(p.current.instances).map(f=>f[1].destroy()),p.current.instances.clear()}),[]),p.current.transitions.map(f=>{let m=f.item,k=f.slot,x=f.key;return{item:m,key:x,state:k,props:p.current.instances.get(x).getValues()}})}function Vf(e,t){const n=e.current.deleted;for(let r of n){let i=r.key;const o=a=>a.key!==i;(oe.und(t)||t===i)&&(e.current.instances.delete(i),e.current.transitions=e.current.transitions.filter(o),e.current.deleted=e.current.deleted.filter(o))}e.current.forceUpdate()}function zg(e,t){let n=e.first,r=e.prevProps,i=Bt(e,["first","prevProps"]),o=Lu(t),a=o.items,l=o.keys,u=o.initial,s=o.from,c=o.enter,d=o.leave,h=o.update,g=o.trail,v=g===void 0?0:g,w=o.unique,S=o.config,p=o.order,f=p===void 0?[Co,El,bl]:p,m=Lu(r),k=m.keys,x=m.items,P=Y({},i.current),b=[...i.deleted],A=Object.keys(P),j=new Set(A),D=new Set(l),W=l.filter(te=>!j.has(te)),G=i.transitions.filter(te=>!te.destroyed&&!D.has(te.originalKey)).map(te=>te.originalKey),ie=l.filter(te=>j.has(te)),ce=-v;for(;f.length;)switch(f.shift()){case Co:{W.forEach((q,F)=>{w&&b.find(O=>O.originalKey===q)&&(b=b.filter(O=>O.originalKey!==q));const $=l.indexOf(q),U=a[$],ae=n&&u!==void 0?"initial":Co;P[q]={slot:ae,originalKey:q,key:w?String(q):Rg++,item:U,trail:ce=ce+v,config:yt(S,U,ae),from:yt(n&&u!==void 0?u||{}:s,U),to:yt(c,U)}});break}case El:{G.forEach(q=>{const F=k.indexOf(q),$=x[F],U=El;b.unshift(Y({},P[q],{slot:U,destroyed:!0,left:k[Math.max(0,F-1)],right:k[Math.min(k.length,F+1)],trail:ce=ce+v,config:yt(S,$,U),to:yt(d,$)})),delete P[q]});break}case bl:{ie.forEach(q=>{const F=l.indexOf(q),$=a[F],U=bl;P[q]=Y({},P[q],{item:$,slot:U,trail:ce=ce+v,config:yt(S,$,U),to:yt(h,$)})});break}}let ne=l.map(te=>P[te]);return b.forEach(te=>{let q=te.left;te.right;let F=Bt(te,["left","right"]),$;($=ne.findIndex(U=>U.originalKey===q))!==-1&&($+=1),$=Math.max(0,$),ne=[...ne.slice(0,$),F,...ne.slice($)]}),Y({},i,{changed:W.length||G.length||ie.length,first:n&&W.length===0,transitions:ne,current:P,deleted:b,prevProps:t})}class Dg extends $h{constructor(t){t===void 0&&(t={}),super(),t.transform&&!(t.transform instanceof zt)&&(t=Ys.transform(t)),this.payload=t}}const aa={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Nt="[-+]?\\d*\\.?\\d+",la=Nt+"%";function ja(){for(var e=arguments.length,t=new Array(e),n=0;n>>0===e&&e>=0&&e<=4294967295?e:null:(t=Wg.exec(e))?parseInt(t[1]+"ff",16)>>>0:aa.hasOwnProperty(e)?aa[e]:(t=Ng.exec(e))?(Jn(t[1])<<24|Jn(t[2])<<16|Jn(t[3])<<8|255)>>>0:(t=$g.exec(e))?(Jn(t[1])<<24|Jn(t[2])<<16|Jn(t[3])<<8|Tf(t[4]))>>>0:(t=Hg.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Gg.exec(e))?parseInt(t[1],16)>>>0:(t=Ug.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Bg.exec(e))?(_f(If(t[1]),oo(t[2]),oo(t[3]))|255)>>>0:(t=jg.exec(e))?(_f(If(t[1]),oo(t[2]),oo(t[3]))|Tf(t[4]))>>>0:null}function Pl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _f(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Pl(i,r,e+1/3),a=Pl(i,r,e),l=Pl(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function Jn(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function If(e){return(parseFloat(e)%360+360)%360/360}function Tf(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function oo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Mf(e){let t=Qg(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}const ao=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Yg=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Kg=new RegExp(`(${Object.keys(aa).join("|")})`,"g"),Xg=e=>{const t=e.output.map(i=>i.replace(Yg,Mf)).map(i=>i.replace(Kg,Mf)),n=t[0].match(ao).map(()=>[]);t.forEach(i=>{i.match(ao).forEach((o,a)=>n[a].push(+o))});const r=t[0].match(ao).map((i,o)=>oa(Y({},e,{output:n[o]})));return i=>{let o=0;return t[0].replace(ao,()=>r[o++](i)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(a,l,u,s,c)=>`rgba(${Math.round(l)}, ${Math.round(u)}, ${Math.round(s)}, ${c})`)}};let ui={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Zg=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),qg=["Webkit","Ms","Moz","O"];ui=Object.keys(ui).reduce((e,t)=>(qg.forEach(n=>e[Zg(n,t)]=e[t]),e),ui);function Jg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":!n&&typeof t=="number"&&t!==0&&!(ui.hasOwnProperty(e)&&ui[e])?t+"px":(""+t).trim()}const Rf={};Cg(e=>new Dg(e));Sg(Xg);wg(aa);xg((e,t)=>{if(e.nodeType&&e.setAttribute!==void 0){const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,u=Bt(t,["style","children","scrollTop","scrollLeft"]),s=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter";a!==void 0&&(e.scrollTop=a),l!==void 0&&(e.scrollLeft=l),o!==void 0&&(e.textContent=o);for(let c in i)if(!!i.hasOwnProperty(c)){var n=c.indexOf("--")===0,r=Jg(c,i[c],n);c==="float"&&(c="cssFloat"),n?e.style.setProperty(c,r):e.style[c]=r}for(let c in u){const d=s?c:Rf[c]||(Rf[c]=c.replace(/([A-Z])/g,h=>"-"+h.toLowerCase()));typeof e.getAttribute(d)!="undefined"&&e.setAttribute(d,u[c])}return}else return!1},e=>e);const ey=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ty=vg(Og,!1),Eo=ty(ey),ua={};async function ny(e,t={}){const n=`https://${GetParentResourceName()}/${e}`;return(await fetch(n,{method:"post",headers:{"Content-type":"application/json; charset=UTF-8"},body:JSON.stringify(t)})).json()}function ry(e,t){if(ua[e]){console.log(`[Nui] Event ${e} is already declared.`);return}ua[e]=t}function iy(e,t){window.dispatchEvent(new MessageEvent("message",{data:{type:e,payload:t}}))}const ve={post:ny,onEvent:ry,emitEvent:iy},oy=()=>(window.addEventListener("message",e=>{!ua[e.data.type]||ua[e.data.type](e.data.payload)}),window.addEventListener("keydown",e=>{e.key==="d"?ve.post("rotate_right"):e.key==="a"&&ve.post("rotate_left")}),null),Lf={model:"mp_m_freemode_01",tattoos:{},components:[{component_id:0,drawable:15,texture:0},{component_id:1,drawable:15,texture:0},{component_id:2,drawable:15,texture:0},{component_id:3,drawable:15,texture:0},{component_id:4,drawable:15,texture:0},{component_id:5,drawable:15,texture:0},{component_id:6,drawable:15,texture:0},{component_id:7,drawable:15,texture:0},{component_id:8,drawable:15,texture:0},{component_id:9,drawable:15,texture:0},{component_id:10,drawable:15,texture:0},{component_id:11,drawable:15,texture:0}],props:[{prop_id:0,drawable:-1,texture:0},{prop_id:1,drawable:-1,texture:0},{prop_id:2,drawable:-1,texture:0},{prop_id:6,drawable:-1,texture:0},{prop_id:7,drawable:-1,texture:0}],headBlend:{shapeFirst:0,shapeSecond:0,shapeMix:0,skinFirst:0,skinSecond:0,skinMix:0},faceFeatures:{noseWidth:0,nosePeakHigh:0,nosePeakSize:0,noseBoneHigh:0,nosePeakLowering:0,noseBoneTwist:0,eyeBrownHigh:0,eyeBrownForward:0,cheeksBoneHigh:0,cheeksBoneWidth:0,cheeksWidth:0,eyesOpening:0,lipsThickness:0,jawBoneWidth:0,jawBoneBackSize:0,chinBoneLowering:0,chinBoneLenght:0,chinBoneSize:0,chinHole:0,neckThickness:0},headOverlays:{blemishes:{style:0,opacity:0},beard:{style:0,opacity:0,color:0},eyebrows:{style:0,opacity:0,color:0},ageing:{style:0,opacity:0},makeUp:{style:0,opacity:0,color:0,secondColor:0},blush:{style:0,opacity:0,color:0},complexion:{style:0,opacity:0},sunDamage:{style:0,opacity:0},lipstick:{style:0,opacity:0,color:0},moleAndFreckles:{style:0,opacity:0},chestHair:{style:0,opacity:0,color:0},bodyBlemishes:{style:0,opacity:0}},hair:{style:0,color:0,highlight:0,texture:0},eyeColor:0},ay={ped:{model:{items:["mp_m_freemode_01","mp_f_freemode_01","player_zero"]}},tattoos:{items:{}},components:[{component_id:0,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:1,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:2,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:3,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:4,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:5,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:6,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:7,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:8,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:9,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:10,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:11,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}}],props:[{prop_id:0,drawable:{min:-1,max:255},texture:{min:0,max:255}},{prop_id:1,drawable:{min:-1,max:255},texture:{min:0,max:255}},{prop_id:2,drawable:{min:-1,max:255},texture:{min:0,max:255}},{prop_id:6,drawable:{min:-1,max:255},texture:{min:0,max:255}},{prop_id:7,drawable:{min:-1,max:255},texture:{min:0,max:255}}],headBlend:{shapeFirst:{min:0,max:45},shapeSecond:{min:0,max:45},skinFirst:{min:0,max:45},skinSecond:{min:0,max:45},shapeMix:{min:0,max:10,factor:.1},skinMix:{min:0,max:10,factor:.1}},faceFeatures:{noseWidth:{min:-10,max:10,factor:.1},nosePeakHigh:{min:-10,max:10,factor:.1},nosePeakSize:{min:-10,max:10,factor:.1},noseBoneHigh:{min:-10,max:10,factor:.1},nosePeakLowering:{min:-10,max:10,factor:.1},noseBoneTwist:{min:-10,max:10,factor:.1},eyeBrownHigh:{min:-10,max:10,factor:.1},eyeBrownForward:{min:-10,max:10,factor:.1},cheeksBoneHigh:{min:-10,max:10,factor:.1},cheeksBoneWidth:{min:-10,max:10,factor:.1},cheeksWidth:{min:-10,max:10,factor:.1},eyesOpening:{min:-10,max:10,factor:.1},lipsThickness:{min:-10,max:10,factor:.1},jawBoneWidth:{min:-10,max:10,factor:.1},jawBoneBackSize:{min:-10,max:10,factor:.1},chinBoneLowering:{min:-10,max:10,factor:.1},chinBoneLenght:{min:-10,max:10,factor:.1},chinBoneSize:{min:-10,max:10,factor:.1},chinHole:{min:-10,max:10,factor:.1},neckThickness:{min:-10,max:10,factor:.1}},headOverlays:{blemishes:{style:{min:0,max:23},opacity:{min:0,max:10,factor:.1}},beard:{style:{min:0,max:28},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},eyebrows:{style:{min:0,max:33},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},ageing:{style:{min:0,max:14},opacity:{min:0,max:10,factor:.1}},makeUp:{style:{min:0,max:74},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},blush:{style:{min:0,max:6},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},complexion:{style:{min:0,max:11},opacity:{min:0,max:10,factor:.1}},sunDamage:{style:{min:0,max:10},opacity:{min:0,max:10,factor:.1}},lipstick:{style:{min:0,max:9},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},moleAndFreckles:{style:{min:0,max:17},opacity:{min:0,max:10,factor:.1}},chestHair:{style:{min:0,max:16},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},bodyBlemishes:{style:{min:0,max:11},opacity:{min:0,max:10,factor:.1}}},hair:{style:{min:0,max:255},color:{items:[[255,0,0],[0,255,0],[0,0,255]]},highlight:{items:[[255,0,0],[0,255,0],[0,0,255]]},texture:{min:0,max:255}},eyeColor:{min:0,max:30}},Al={head:!1,body:!1,bottom:!1},Fl={left:!1,right:!1},ly={head:!1,body:!1,bottom:!1};var Yh={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zf=Ke.createContext&&Ke.createContext(Yh),An=globalThis&&globalThis.__assign||function(){return An=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0)&&(n[i]=e[i]);return n}const oe={arr:Array.isArray,obj:e=>Object.prototype.toString.call(e)==="[object Object]",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0,nul:e=>e===null,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(oe.str(e)||oe.num(e))return e===t;if(oe.obj(e)&&oe.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return oe.und(n)?e===t:!0}};function vg(e,t){return t===void 0&&(t=!0),n=>(oe.arr(n)?n:Object.keys(n)).reduce((r,i)=>{const o=t?i[0].toLowerCase()+i.substring(1):i;return r[o]=e(o),r},e)}function Nh(){const e=b.exports.useState(!1),t=e[1];return b.exports.useCallback(()=>t(r=>!r),[])}function Rn(e,t){return oe.und(e)||oe.nul(e)?t:e}function hr(e){return oe.und(e)?[]:oe.arr(e)?e:[e]}function yt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;roe.und(t[i])?Y({},r,{[i]:e[i]}):r,{});return Y({to:t},n)}function yg(e,t){return t&&(oe.fun(t)?t(e):oe.obj(t)&&(t.current=e)),e}class zt{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(t){this.children.length===0&&this.attach(),this.children.push(t)}removeChild(t){const n=this.children.indexOf(t);this.children.splice(n,1),this.children.length===0&&this.detach()}}class Ms extends zt{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach(t=>t instanceof zt&&t.addChild(this)),this.detach=()=>this.payload.forEach(t=>t instanceof zt&&t.removeChild(this))}}class $h extends zt{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach(t=>t instanceof zt&&t.addChild(this)),this.detach=()=>Object.values(this.payload).forEach(t=>t instanceof zt&&t.removeChild(this))}getValue(t){t===void 0&&(t=!1);const n={};for(const r in this.payload){const i=this.payload[r];t&&!(i instanceof zt)||(n[r]=i instanceof zt?i[t?"getAnimatedValue":"getValue"]():i)}return n}getAnimatedValue(){return this.getValue(!0)}}let Yu;function xg(e,t){Yu={fn:e,transform:t}}let Bh;function wg(e){Bh=e}let jh=e=>typeof window!="undefined"?window.requestAnimationFrame(e):-1,ia;function Sg(e){ia=e}let Hh=()=>Date.now(),kg=e=>e.current,Uh;function Cg(e){Uh=e}class bg extends $h{constructor(t,n){super(),this.update=void 0,this.payload=t.style?Y({},t,{style:Uh(t.style)}):t,this.update=n,this.attach()}}const Eg=e=>oe.fun(e)&&!(e.prototype instanceof Ke.Component),Og=e=>b.exports.forwardRef((n,r)=>{const i=Nh(),o=b.exports.useRef(!0),a=b.exports.useRef(null),l=b.exports.useRef(null),s=b.exports.useCallback(h=>{const g=a.current,v=()=>{let w=!1;l.current&&(w=Yu.fn(l.current,a.current.getAnimatedValue())),(!l.current||w===!1)&&i()};a.current=new bg(h,v),g&&g.detach()},[]);b.exports.useEffect(()=>()=>{o.current=!1,a.current&&a.current.detach()},[]),b.exports.useImperativeHandle(r,()=>kg(l)),s(n);const u=a.current.getValue();u.scrollTop,u.scrollLeft;const c=Bt(u,["scrollTop","scrollLeft"]),d=Eg(e)?void 0:h=>l.current=yg(h,r);return y(e,R(I({},c),{ref:d}))});let li=!1;const jn=new Set,Wh=()=>{if(!li)return!1;let e=Hh();for(let t of jn){let n=!1;for(let r=0;r=s.startTime+i.duration;else if(i.decay)d=u+g/(1-.998)*(1-Math.exp(-(1-.998)*(e-s.startTime))),o=Math.abs(s.lastPosition-d)<.1,o&&(c=d);else{a=s.lastTime!==void 0?s.lastTime:e,g=s.lastVelocity!==void 0?s.lastVelocity:i.initialVelocity,e>a+64&&(a=e);let v=Math.floor(e-a);for(let f=0;fc:d{jn.has(e)||jn.add(e),li||(li=!0,jh(Wh))},Ag=e=>{jn.has(e)&&jn.delete(e)};function oa(e,t,n){if(typeof e=="function")return e;if(Array.isArray(e))return oa({range:e,output:t,extrapolate:n});if(ia&&typeof e.output[0]=="string")return ia(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(u=>u);return u=>{const c=Vg(u,o);return Fg(u,o[c],o[c+1],i[c],i[c+1],s,a,l,r.map)}}function Fg(e,t,n,r,i,o,a,l,s){let u=s?s(e):e;if(un){if(l==="identity")return u;l==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function Vg(e,t){for(var n=1;n=e);++n);return n-1}class Pi extends Ms{constructor(t,n,r,i){super(),this.calc=void 0,this.payload=t instanceof Ms&&!(t instanceof Pi)?t.getPayload():Array.isArray(t)?t:[t],this.calc=oa(n,r,i)}getValue(){return this.calc(...this.payload.map(t=>t.getValue()))}updateConfig(t,n,r){this.calc=oa(t,n,r)}interpolate(t,n,r){return new Pi(this,t,n,r)}}function Gh(e,t){"update"in e?t.add(e):e.getChildren().forEach(n=>Gh(n,t))}class Rs extends zt{constructor(t){var n;super(),n=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(r,i){i===void 0&&(i=!0),n.value=r,i&&n.flush()},this.value=t,this.startPosition=t,this.lastPosition=t}flush(){this.animatedStyles.size===0&&Gh(this,this.animatedStyles),this.animatedStyles.forEach(t=>t.update())}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(t,n,r){return new Pi(this,t,n,r)}}class _g extends Ms{constructor(t){super(),this.payload=t.map(n=>new Rs(n))}setValue(t,n){n===void 0&&(n=!0),Array.isArray(t)?t.length===this.payload.length&&t.forEach((r,i)=>this.payload[i].setValue(r,n)):this.payload.forEach(r=>r.setValue(t,n))}getValue(){return this.payload.map(t=>t.getValue())}interpolate(t,n){return new Pi(this,t,n)}}let Ig=0;class Qh{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=Ig++}update(t){if(!t)return this;const n=Cl(t),r=n.delay,i=r===void 0?0:r,o=n.to,a=Bt(n,["delay","to"]);if(oe.arr(o)||oe.fun(o))this.queue.push(Y({},a,{delay:i,to:o}));else if(o){let l={};Object.entries(o).forEach(s=>{let u=s[0],c=s[1];const d=Y({to:{[u]:c},delay:yt(i,u)},a),h=l[d.delay]&&l[d.delay].to;l[d.delay]=Y({},l[d.delay],d,{to:Y({},h,d.to)})}),this.queue=Object.values(l)}return this.queue=this.queue.sort((l,s)=>l.delay-s.delay),this.diff(a),this}start(t){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(i=>{let o=i.from,a=o===void 0?{}:o,l=i.to,s=l===void 0?{}:l;oe.obj(a)&&(this.merged=Y({},a,this.merged)),oe.obj(s)&&(this.merged=Y({},this.merged,s))});const n=this.local=++this.guid,r=this.localQueue=this.queue;this.queue=[],r.forEach((i,o)=>{let a=i.delay,l=Bt(i,["delay"]);const s=c=>{o===r.length-1&&n===this.guid&&c&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),t&&t()};let u=oe.arr(l.to)||oe.fun(l.to);a?setTimeout(()=>{n===this.guid&&(u?this.runAsync(l,s):this.diff(l).start(s))},a):u?this.runAsync(l,s):this.diff(l).start(s)})}else oe.fun(t)&&this.listeners.push(t),this.props.onStart&&this.props.onStart(),Pg(this);return this}stop(t){return this.listeners.forEach(n=>n(t)),this.listeners=[],this}pause(t){return this.stop(!0),t&&Ag(this),this}runAsync(t,n){var r=this;t.delay;let i=Bt(t,["delay"]);const o=this.local;let a=Promise.resolve(void 0);if(oe.arr(i.to))for(let l=0;l{if(o===this.guid)return new Promise(c=>this.diff(u).start(c))})}else if(oe.fun(i.to)){let l=0,s;a=a.then(()=>i.to(u=>{const c=Y({},i,Cl(u));if(oe.arr(c.config)&&(c.config=c.config[l]),l++,o===this.guid)return s=new Promise(d=>this.diff(c).start(d))},function(u){return u===void 0&&(u=!0),r.stop(u)}).then(()=>s))}a.then(n)}diff(t){this.props=Y({},this.props,t);let n=this.props,r=n.from,i=r===void 0?{}:r,o=n.to,a=o===void 0?{}:o,l=n.config,s=l===void 0?{}:l,u=n.reverse,c=n.attach,d=n.reset,h=n.immediate;if(u){var g=[a,i];i=g[0],a=g[1]}this.merged=Y({},i,this.merged,a),this.hasChanged=!1;let v=c&&c(this);if(this.animations=Object.entries(this.merged).reduce((w,S)=>{let p=S[0],f=S[1],m=w[p]||{};const k=oe.num(f),x=oe.str(f)&&!f.startsWith("#")&&!/\d/.test(f)&&!Bh[f],P=oe.arr(f),E=!k&&!P&&!x;let A=oe.und(i[p])?f:i[p],j=k||P||x?f:1,D=yt(s,p);v&&(j=v.animations[p].parent);let W=m.parent,G=m.interpolation,ie=hr(v?j.getPayload():j),ce,ne=f;E&&(ne=ia({range:[0,1],output:[f,f]})(1));let te=G&&G.getValue();const F=!oe.und(W)&&m.animatedValues.some(O=>!O.done),$=!oe.equ(ne,te),U=!oe.equ(ne,m.previous),ae=!oe.equ(D,m.config);if(d||U&&$||ae){if(k||x)W=G=m.parent||new Rs(A);else if(P)W=G=m.parent||new _g(A);else if(E){let O=m.interpolation&&m.interpolation.calc(m.parent.value);O=O!==void 0&&!d?O:A,m.parent?(W=m.parent,W.setValue(0,!1)):W=new Rs(0);const T={output:[O,f]};m.interpolation?(G=m.interpolation,m.interpolation.updateConfig(T)):G=W.interpolate(T)}return ie=hr(v?j.getPayload():j),ce=hr(W.getPayload()),d&&!E&&W.setValue(A,!1),this.hasChanged=!0,ce.forEach(O=>{O.startPosition=O.value,O.lastPosition=O.value,O.lastVelocity=F?O.lastVelocity:void 0,O.lastTime=F?O.lastTime:void 0,O.startTime=Hh(),O.done=!1,O.animatedStyles.clear()}),yt(h,p)&&W.setValue(E?j:f,!1),Y({},w,{[p]:Y({},m,{name:p,parent:W,interpolation:G,animatedValues:ce,toValues:ie,previous:ne,config:D,fromValues:hr(W.getValue()),immediate:yt(h,p),initialVelocity:Rn(D.velocity,0),clamp:Rn(D.clamp,!1),precision:Rn(D.precision,.01),tension:Rn(D.tension,170),friction:Rn(D.friction,26),mass:Rn(D.mass,1),duration:D.duration,easing:Rn(D.easing,O=>O),decay:D.decay})})}else return $?w:(E&&(W.setValue(1,!1),G.updateConfig({output:[ne,ne]})),W.done=!0,this.hasChanged=!0,Y({},w,{[p]:Y({},w[p],{previous:ne})}))},this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let w in this.animations)this.interpolations[w]=this.animations[w].interpolation,this.values[w]=this.animations[w].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}const Tg=(e,t)=>{const n=b.exports.useRef(!1),r=b.exports.useRef(),i=oe.fun(t),o=b.exports.useMemo(()=>{r.current&&(r.current.map(d=>d.destroy()),r.current=void 0);let c;return[new Array(e).fill().map((d,h)=>{const g=new Qh,v=i?yt(t,h,g):t[h];return h===0&&(c=v.ref),g.update(v),c||g.start(),g}),c]},[e]),a=o[0],l=o[1];r.current=a,b.exports.useImperativeHandle(l,()=>({start:()=>Promise.all(r.current.map(c=>new Promise(d=>c.start(d)))),stop:c=>r.current.forEach(d=>d.stop(c)),get controllers(){return r.current}}));const s=b.exports.useMemo(()=>c=>r.current.map((d,h)=>{d.update(i?yt(c,h,d):c[h]),l||d.start()}),[e]);b.exports.useEffect(()=>{n.current?i||s(t):l||r.current.forEach(c=>c.start())}),b.exports.useEffect(()=>(n.current=!0,()=>r.current.forEach(c=>c.destroy())),[]);const u=r.current.map(c=>c.getValues());return i?[u,s,c=>r.current.forEach(d=>d.pause(c))]:u},Mg=e=>{const t=oe.fun(e),n=Tg(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};let Rg=0;const Co="enter",bl="leave",El="update",Lg=(e,t)=>(typeof t=="function"?e.map(t):hr(t)).map(String),Ls=e=>{let t=e.items,n=e.keys,r=n===void 0?o=>o:n,i=Bt(e,["items","keys"]);return t=hr(t!==void 0?t:null),Y({items:t,keys:Lg(t,r)},i)};function Ol(e,t,n){const r=Y({items:e,keys:t||(f=>f)},n),i=Ls(r),o=i.lazy,a=o===void 0?!1:o;i.unique;const l=i.reset,s=l===void 0?!1:l;i.enter,i.leave,i.update;const u=i.onDestroyed;i.keys,i.items;const c=i.onFrame,d=i.onRest,h=i.onStart,g=i.ref,v=Bt(i,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),w=Nh(),S=b.exports.useRef(!1),p=b.exports.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!S.current&&new Map,forceUpdate:w});return b.exports.useImperativeHandle(r.ref,()=>({start:()=>Promise.all(Array.from(p.current.instances).map(f=>{let m=f[1];return new Promise(k=>m.start(k))})),stop:f=>Array.from(p.current.instances).forEach(m=>m[1].stop(f)),get controllers(){return Array.from(p.current.instances).map(f=>f[1])}})),p.current=zg(p.current,r),p.current.changed&&p.current.transitions.forEach(f=>{const m=f.slot,k=f.from,x=f.to,P=f.config,E=f.trail,A=f.key,j=f.item;p.current.instances.has(A)||p.current.instances.set(A,new Qh);const D=p.current.instances.get(A),W=Y({},v,{to:x,from:k,config:P,ref:g,onRest:G=>{p.current.mounted&&(f.destroyed&&(!g&&!a&&Vf(p,A),u&&u(j)),!Array.from(p.current.instances).some(ne=>!ne[1].idle)&&(g||a)&&p.current.deleted.length>0&&Vf(p),d&&d(j,m,G))},onStart:h&&(()=>h(j,m)),onFrame:c&&(G=>c(j,m,G)),delay:E,reset:s&&m===Co});D.update(W),p.current.paused||D.start()}),b.exports.useEffect(()=>(p.current.mounted=S.current=!0,()=>{p.current.mounted=S.current=!1,Array.from(p.current.instances).map(f=>f[1].destroy()),p.current.instances.clear()}),[]),p.current.transitions.map(f=>{let m=f.item,k=f.slot,x=f.key;return{item:m,key:x,state:k,props:p.current.instances.get(x).getValues()}})}function Vf(e,t){const n=e.current.deleted;for(let r of n){let i=r.key;const o=a=>a.key!==i;(oe.und(t)||t===i)&&(e.current.instances.delete(i),e.current.transitions=e.current.transitions.filter(o),e.current.deleted=e.current.deleted.filter(o))}e.current.forceUpdate()}function zg(e,t){let n=e.first,r=e.prevProps,i=Bt(e,["first","prevProps"]),o=Ls(t),a=o.items,l=o.keys,s=o.initial,u=o.from,c=o.enter,d=o.leave,h=o.update,g=o.trail,v=g===void 0?0:g,w=o.unique,S=o.config,p=o.order,f=p===void 0?[Co,bl,El]:p,m=Ls(r),k=m.keys,x=m.items,P=Y({},i.current),E=[...i.deleted],A=Object.keys(P),j=new Set(A),D=new Set(l),W=l.filter(te=>!j.has(te)),G=i.transitions.filter(te=>!te.destroyed&&!D.has(te.originalKey)).map(te=>te.originalKey),ie=l.filter(te=>j.has(te)),ce=-v;for(;f.length;)switch(f.shift()){case Co:{W.forEach((q,F)=>{w&&E.find(O=>O.originalKey===q)&&(E=E.filter(O=>O.originalKey!==q));const $=l.indexOf(q),U=a[$],ae=n&&s!==void 0?"initial":Co;P[q]={slot:ae,originalKey:q,key:w?String(q):Rg++,item:U,trail:ce=ce+v,config:yt(S,U,ae),from:yt(n&&s!==void 0?s||{}:u,U),to:yt(c,U)}});break}case bl:{G.forEach(q=>{const F=k.indexOf(q),$=x[F],U=bl;E.unshift(Y({},P[q],{slot:U,destroyed:!0,left:k[Math.max(0,F-1)],right:k[Math.min(k.length,F+1)],trail:ce=ce+v,config:yt(S,$,U),to:yt(d,$)})),delete P[q]});break}case El:{ie.forEach(q=>{const F=l.indexOf(q),$=a[F],U=El;P[q]=Y({},P[q],{item:$,slot:U,trail:ce=ce+v,config:yt(S,$,U),to:yt(h,$)})});break}}let ne=l.map(te=>P[te]);return E.forEach(te=>{let q=te.left;te.right;let F=Bt(te,["left","right"]),$;($=ne.findIndex(U=>U.originalKey===q))!==-1&&($+=1),$=Math.max(0,$),ne=[...ne.slice(0,$),F,...ne.slice($)]}),Y({},i,{changed:W.length||G.length||ie.length,first:n&&W.length===0,transitions:ne,current:P,deleted:E,prevProps:t})}class Dg extends $h{constructor(t){t===void 0&&(t={}),super(),t.transform&&!(t.transform instanceof zt)&&(t=Yu.transform(t)),this.payload=t}}const aa={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Nt="[-+]?\\d*\\.?\\d+",la=Nt+"%";function ja(){for(var e=arguments.length,t=new Array(e),n=0;n>>0===e&&e>=0&&e<=4294967295?e:null:(t=Wg.exec(e))?parseInt(t[1]+"ff",16)>>>0:aa.hasOwnProperty(e)?aa[e]:(t=Ng.exec(e))?(Jn(t[1])<<24|Jn(t[2])<<16|Jn(t[3])<<8|255)>>>0:(t=$g.exec(e))?(Jn(t[1])<<24|Jn(t[2])<<16|Jn(t[3])<<8|Tf(t[4]))>>>0:(t=Hg.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Gg.exec(e))?parseInt(t[1],16)>>>0:(t=Ug.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Bg.exec(e))?(_f(If(t[1]),oo(t[2]),oo(t[3]))|255)>>>0:(t=jg.exec(e))?(_f(If(t[1]),oo(t[2]),oo(t[3]))|Tf(t[4]))>>>0:null}function Pl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _f(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Pl(i,r,e+1/3),a=Pl(i,r,e),l=Pl(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function Jn(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function If(e){return(parseFloat(e)%360+360)%360/360}function Tf(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function oo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Mf(e){let t=Qg(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}const ao=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Yg=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Kg=new RegExp(`(${Object.keys(aa).join("|")})`,"g"),Xg=e=>{const t=e.output.map(i=>i.replace(Yg,Mf)).map(i=>i.replace(Kg,Mf)),n=t[0].match(ao).map(()=>[]);t.forEach(i=>{i.match(ao).forEach((o,a)=>n[a].push(+o))});const r=t[0].match(ao).map((i,o)=>oa(Y({},e,{output:n[o]})));return i=>{let o=0;return t[0].replace(ao,()=>r[o++](i)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(a,l,s,u,c)=>`rgba(${Math.round(l)}, ${Math.round(s)}, ${Math.round(u)}, ${c})`)}};let si={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Zg=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),qg=["Webkit","Ms","Moz","O"];si=Object.keys(si).reduce((e,t)=>(qg.forEach(n=>e[Zg(n,t)]=e[t]),e),si);function Jg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":!n&&typeof t=="number"&&t!==0&&!(si.hasOwnProperty(e)&&si[e])?t+"px":(""+t).trim()}const Rf={};Cg(e=>new Dg(e));Sg(Xg);wg(aa);xg((e,t)=>{if(e.nodeType&&e.setAttribute!==void 0){const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,s=Bt(t,["style","children","scrollTop","scrollLeft"]),u=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter";a!==void 0&&(e.scrollTop=a),l!==void 0&&(e.scrollLeft=l),o!==void 0&&(e.textContent=o);for(let c in i)if(!!i.hasOwnProperty(c)){var n=c.indexOf("--")===0,r=Jg(c,i[c],n);c==="float"&&(c="cssFloat"),n?e.style.setProperty(c,r):e.style[c]=r}for(let c in s){const d=u?c:Rf[c]||(Rf[c]=c.replace(/([A-Z])/g,h=>"-"+h.toLowerCase()));typeof e.getAttribute(d)!="undefined"&&e.setAttribute(d,s[c])}return}else return!1},e=>e);const ey=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ty=vg(Og,!1),bo=ty(ey),sa={};async function ny(e,t={}){const n=`https://${GetParentResourceName()}/${e}`;return(await fetch(n,{method:"post",headers:{"Content-type":"application/json; charset=UTF-8"},body:JSON.stringify(t)})).json()}function ry(e,t){if(sa[e]){console.log(`[Nui] Event ${e} is already declared.`);return}sa[e]=t}function iy(e,t){window.dispatchEvent(new MessageEvent("message",{data:{type:e,payload:t}}))}const ve={post:ny,onEvent:ry,emitEvent:iy},oy=()=>(window.addEventListener("message",e=>{!sa[e.data.type]||sa[e.data.type](e.data.payload)}),window.addEventListener("keydown",e=>{e.key==="d"?ve.post("rotate_right"):e.key==="a"&&ve.post("rotate_left")}),null),Lf={model:"mp_m_freemode_01",tattoos:{},components:[{component_id:0,drawable:15,texture:0},{component_id:1,drawable:15,texture:0},{component_id:2,drawable:15,texture:0},{component_id:3,drawable:15,texture:0},{component_id:4,drawable:15,texture:0},{component_id:5,drawable:15,texture:0},{component_id:6,drawable:15,texture:0},{component_id:7,drawable:15,texture:0},{component_id:8,drawable:15,texture:0},{component_id:9,drawable:15,texture:0},{component_id:10,drawable:15,texture:0},{component_id:11,drawable:15,texture:0}],props:[{prop_id:0,drawable:-1,texture:0},{prop_id:1,drawable:-1,texture:0},{prop_id:2,drawable:-1,texture:0},{prop_id:6,drawable:-1,texture:0},{prop_id:7,drawable:-1,texture:0}],headBlend:{shapeFirst:0,shapeSecond:0,shapeMix:0,skinFirst:0,skinSecond:0,skinMix:0},faceFeatures:{noseWidth:0,nosePeakHigh:0,nosePeakSize:0,noseBoneHigh:0,nosePeakLowering:0,noseBoneTwist:0,eyeBrownHigh:0,eyeBrownForward:0,cheeksBoneHigh:0,cheeksBoneWidth:0,cheeksWidth:0,eyesOpening:0,lipsThickness:0,jawBoneWidth:0,jawBoneBackSize:0,chinBoneLowering:0,chinBoneLenght:0,chinBoneSize:0,chinHole:0,neckThickness:0},headOverlays:{blemishes:{style:0,opacity:0},beard:{style:0,opacity:0,color:0},eyebrows:{style:0,opacity:0,color:0},ageing:{style:0,opacity:0},makeUp:{style:0,opacity:0,color:0,secondColor:0},blush:{style:0,opacity:0,color:0},complexion:{style:0,opacity:0},sunDamage:{style:0,opacity:0},lipstick:{style:0,opacity:0,color:0},moleAndFreckles:{style:0,opacity:0},chestHair:{style:0,opacity:0,color:0},bodyBlemishes:{style:0,opacity:0}},hair:{style:0,color:0,highlight:0,texture:0},eyeColor:0},ay={ped:{model:{items:["mp_m_freemode_01","mp_f_freemode_01","player_zero"]}},tattoos:{items:{}},components:[{component_id:0,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:1,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:2,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:3,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:4,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:5,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:6,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:7,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:8,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:9,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:10,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{component_id:11,drawable:{min:0,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}}],props:[{prop_id:0,drawable:{min:-1,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{prop_id:1,drawable:{min:-1,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{prop_id:2,drawable:{min:-1,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{prop_id:6,drawable:{min:-1,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}},{prop_id:7,drawable:{min:-1,max:255},texture:{min:0,max:255},blacklist:{drawables:[],textures:[]}}],headBlend:{shapeFirst:{min:0,max:45},shapeSecond:{min:0,max:45},skinFirst:{min:0,max:45},skinSecond:{min:0,max:45},shapeMix:{min:0,max:10,factor:.1},skinMix:{min:0,max:10,factor:.1}},faceFeatures:{noseWidth:{min:-10,max:10,factor:.1},nosePeakHigh:{min:-10,max:10,factor:.1},nosePeakSize:{min:-10,max:10,factor:.1},noseBoneHigh:{min:-10,max:10,factor:.1},nosePeakLowering:{min:-10,max:10,factor:.1},noseBoneTwist:{min:-10,max:10,factor:.1},eyeBrownHigh:{min:-10,max:10,factor:.1},eyeBrownForward:{min:-10,max:10,factor:.1},cheeksBoneHigh:{min:-10,max:10,factor:.1},cheeksBoneWidth:{min:-10,max:10,factor:.1},cheeksWidth:{min:-10,max:10,factor:.1},eyesOpening:{min:-10,max:10,factor:.1},lipsThickness:{min:-10,max:10,factor:.1},jawBoneWidth:{min:-10,max:10,factor:.1},jawBoneBackSize:{min:-10,max:10,factor:.1},chinBoneLowering:{min:-10,max:10,factor:.1},chinBoneLenght:{min:-10,max:10,factor:.1},chinBoneSize:{min:-10,max:10,factor:.1},chinHole:{min:-10,max:10,factor:.1},neckThickness:{min:-10,max:10,factor:.1}},headOverlays:{blemishes:{style:{min:0,max:23},opacity:{min:0,max:10,factor:.1}},beard:{style:{min:0,max:28},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},eyebrows:{style:{min:0,max:33},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},ageing:{style:{min:0,max:14},opacity:{min:0,max:10,factor:.1}},makeUp:{style:{min:0,max:74},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},blush:{style:{min:0,max:6},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},complexion:{style:{min:0,max:11},opacity:{min:0,max:10,factor:.1}},sunDamage:{style:{min:0,max:10},opacity:{min:0,max:10,factor:.1}},lipstick:{style:{min:0,max:9},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},moleAndFreckles:{style:{min:0,max:17},opacity:{min:0,max:10,factor:.1}},chestHair:{style:{min:0,max:16},opacity:{min:0,max:10,factor:.1},color:{items:[[255,0,0],[0,255,0],[0,0,255]]}},bodyBlemishes:{style:{min:0,max:11},opacity:{min:0,max:10,factor:.1}}},hair:{style:{min:0,max:255},color:{items:[[255,0,0],[0,255,0],[0,0,255]]},highlight:{items:[[255,0,0],[0,255,0],[0,0,255]]},texture:{min:0,max:255}},eyeColor:{min:0,max:30}},Al={head:!1,body:!1,bottom:!1},Fl={left:!1,right:!1},ly={head:!1,body:!1,bottom:!1};var Yh={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zf=Ke.createContext&&Ke.createContext(Yh),An=globalThis&&globalThis.__assign||function(){return An=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[r,i]=E.exports.useState(!1),[o,a]=E.exports.useState(0),l=E.exports.useRef(null),u=Mg({height:r?o:0,opacity:r?1:0});return E.exports.useEffect(()=>{l.current&&a(l.current.offsetHeight)},[l,a]),E.exports.useEffect(()=>{l.current&&a(l.current.offsetHeight)},[l,a,n]),z(hy,{children:[z(my,{active:r,onClick:()=>i(s=>!s),children:[y("span",{children:t}),r?y(py,{size:30}):y(cy,{size:30})]}),y(Eo.div,{style:R(I({},u),{overflow:"hidden"}),children:y(vy,{ref:l,children:e})})]})},gy=_e.div` +`,Zn=({children:e,title:t,deps:n=[]})=>{const[r,i]=b.exports.useState(!1),[o,a]=b.exports.useState(0),l=b.exports.useRef(null),s=Mg({height:r?o:0,opacity:r?1:0});return b.exports.useEffect(()=>{l.current&&a(l.current.offsetHeight)},[l,a]),b.exports.useEffect(()=>{l.current&&a(l.current.offsetHeight)},[l,a,n]),z(hy,{children:[z(my,{active:r,onClick:()=>i(u=>!u),children:[y("span",{children:t}),r?y(py,{size:30}):y(cy,{size:30})]}),y(bo.div,{style:R(I({},s),{overflow:"hidden"}),children:y(vy,{ref:l,children:e})})]})},gy=_e.div` margin-top: 0.5rem; display: flex; @@ -149,11 +149,11 @@ Error generating stack: `+o.message+` margin-top: 10px; } } -`,re=({children:e,title:t})=>z(gy,{children:[t&&y("span",{children:t}),y(yy,{children:e})]});function xy(e){if(e.sheet)return e.sheet;for(var t=0;t0?st(Tr,--vt):0,Fr--,Re===10&&(Fr=1,Ua--),Re}function wt(){return Re=vt2||Fi(Re)>3?"":" "}function _y(e,t){for(;--t&&wt()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Di(e,bo()+(t<6&&Zt()==32&&wt()==32))}function Du(e){for(;wt();)switch(Re){case e:return vt;case 34:case 39:e!==34&&e!==39&&Du(Re);break;case 40:e===41&&Du(e);break;case 92:wt();break}return vt}function Iy(e,t){for(;wt()&&e+Re!==47+10;)if(e+Re===42+42&&Zt()===47)break;return"/*"+Di(t,vt-1)+"*"+Ha(e===47?e:wt())}function Ty(e){for(;!Fi(Zt());)wt();return Di(e,vt)}function My(e){return t0(Po("",null,null,null,[""],e=e0(e),0,[0],e))}function Po(e,t,n,r,i,o,a,l,u){for(var s=0,c=0,d=a,h=0,g=0,v=0,w=1,S=1,p=1,f=0,m="",k=i,x=o,P=r,b=m;S;)switch(v=f,f=wt()){case 40:if(v!=108&&b.charCodeAt(d-1)==58){zu(b+=ye(Oo(f),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:b+=Oo(f);break;case 9:case 10:case 13:case 32:b+=Vy(v);break;case 92:b+=_y(bo()-1,7);continue;case 47:switch(Zt()){case 42:case 47:lo(Ry(Iy(wt(),bo()),t,n),u);break;default:b+="/"}break;case 123*w:l[s++]=Wt(b)*p;case 125*w:case 59:case 0:switch(f){case 0:case 125:S=0;case 59+c:g>0&&Wt(b)-d&&lo(g>32?Nf(b+";",r,n,d-1):Nf(ye(b," ","")+";",r,n,d-2),u);break;case 59:b+=";";default:if(lo(P=Df(b,t,n,s,c,i,l,m,k=[],x=[],d),o),f===123)if(c===0)Po(b,t,P,P,k,o,d,l,x);else switch(h){case 100:case 109:case 115:Po(e,P,P,r&&lo(Df(e,P,P,0,0,i,l,m,i,k=[],d),x),i,x,d,l,r?k:x);break;default:Po(b,P,P,P,[""],x,0,l,x)}}s=c=g=0,w=p=1,m=b="",d=a;break;case 58:d=1+Wt(b),g=v;default:if(w<1){if(f==123)--w;else if(f==125&&w++==0&&Fy()==125)continue}switch(b+=Ha(f),f*w){case 38:p=c>0?1:(b+="\f",-1);break;case 44:l[s++]=(Wt(b)-1)*p,p=1;break;case 64:Zt()===45&&(b+=Oo(wt())),h=Zt(),c=d=Wt(m=b+=Ty(bo())),f++;break;case 45:v===45&&Wt(b)==2&&(w=0)}}return o}function Df(e,t,n,r,i,o,a,l,u,s,c){for(var d=i-1,h=i===0?o:[""],g=Zs(h),v=0,w=0,S=0;v0?h[p]+" "+f:ye(f,/&\f/g,h[p])))&&(u[S++]=m);return Wa(e,t,n,i===0?Ks:l,u,s,c)}function Ry(e,t,n){return Wa(e,t,n,Xh,Ha(Ay()),Ai(e,2,-2),0)}function Nf(e,t,n,r){return Wa(e,t,n,Xs,Ai(e,0,r),Ai(e,r+1,-1),r)}function n0(e,t){switch(by(e,t)){case 5103:return ge+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ge+e+sa+e+nt+e+e;case 6828:case 4268:return ge+e+nt+e+e;case 6165:return ge+e+nt+"flex-"+e+e;case 5187:return ge+e+ye(e,/(\w+).+(:[^]+)/,ge+"box-$1$2"+nt+"flex-$1$2")+e;case 5443:return ge+e+nt+"flex-item-"+ye(e,/flex-|-self/,"")+e;case 4675:return ge+e+nt+"flex-line-pack"+ye(e,/align-content|flex-|-self/,"")+e;case 5548:return ge+e+nt+ye(e,"shrink","negative")+e;case 5292:return ge+e+nt+ye(e,"basis","preferred-size")+e;case 6060:return ge+"box-"+ye(e,"-grow","")+ge+e+nt+ye(e,"grow","positive")+e;case 4554:return ge+ye(e,/([^-])(transform)/g,"$1"+ge+"$2")+e;case 6187:return ye(ye(ye(e,/(zoom-|grab)/,ge+"$1"),/(image-set)/,ge+"$1"),e,"")+e;case 5495:case 3959:return ye(e,/(image-set\([^]*)/,ge+"$1$`$1");case 4968:return ye(ye(e,/(.+:)(flex-)?(.*)/,ge+"box-pack:$3"+nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ge+e+e;case 4095:case 3583:case 4068:case 2532:return ye(e,/(.+)-inline(.+)/,ge+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wt(e)-1-t>6)switch(st(e,t+1)){case 109:if(st(e,t+4)!==45)break;case 102:return ye(e,/(.+:)(.+)-([^]+)/,"$1"+ge+"$2-$3$1"+sa+(st(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zu(e,"stretch")?n0(ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(st(e,t+1)!==115)break;case 6444:switch(st(e,Wt(e)-3-(~zu(e,"!important")&&10))){case 107:return ye(e,":",":"+ge)+e;case 101:return ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ge+(st(e,14)===45?"inline-":"")+"box$3$1"+ge+"$2$3$1"+nt+"$2box$3")+e}break;case 5936:switch(st(e,t+11)){case 114:return ge+e+nt+ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ge+e+nt+ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ge+e+nt+ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ge+e+nt+e+e}return e}function Sr(e,t){for(var n="",r=Zs(e),i=0;i-1&&!e.return)switch(e.type){case Xs:e.return=n0(e.value,e.length);break;case Zh:return Sr([Ur(e,{value:ye(e.value,"@","@"+ge)})],r);case Ks:if(e.length)return Py(e.props,function(i){switch(Oy(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sr([Ur(e,{props:[ye(i,/:(read-\w+)/,":"+sa+"$1")]})],r);case"::placeholder":return Sr([Ur(e,{props:[ye(i,/:(plac\w+)/,":"+ge+"input-$1")]}),Ur(e,{props:[ye(i,/:(plac\w+)/,":"+sa+"$1")]}),Ur(e,{props:[ye(i,/:(plac\w+)/,nt+"input-$1")]})],r)}return""})}}var $y=function(t,n,r){for(var i=0,o=0;i=o,o=Zt(),i===38&&o===12&&(n[r]=1),!Fi(o);)wt();return Di(t,vt)},By=function(t,n){var r=-1,i=44;do switch(Fi(i)){case 0:i===38&&Zt()===12&&(n[r]=1),t[r]+=$y(vt-1,n,r);break;case 2:t[r]+=Oo(i);break;case 4:if(i===44){t[++r]=Zt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ha(i)}while(i=wt());return t},jy=function(t,n){return t0(By(e0(t),n))},$f=new WeakMap,Hy=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!$f.get(r))&&!i){$f.set(t,!0);for(var o=[],a=jy(n,o),l=r.props,u=0,s=0;u=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ky=/[A-Z]|^ms/g,Xy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,o0=function(t){return t.charCodeAt(1)===45},Bf=function(t){return t!=null&&typeof t!="boolean"},Vl=bh(function(e){return o0(e)?e:e.replace(Ky,"-$&").toLowerCase()}),jf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Xy,function(r,i,o){return Gt={name:i,styles:o,next:Gt},i})}return Eh[t]!==1&&!o0(t)&&typeof n=="number"&&n!==0?n+"px":n};function Vi(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Gt={name:n.name,styles:n.styles,next:Gt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Gt={name:r.name,styles:r.styles,next:Gt},r=r.next;var i=n.styles+";";return i}return Zy(e,t,n)}case"function":{if(e!==void 0){var o=Gt,a=n(e);return Gt=o,Vi(e,t,a)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function Zy(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function $u(e){return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}var c0={},f0={exports:{}},u2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",s2=u2,c2=s2;function d0(){}function p0(){}p0.resetWarningCache=d0;var f2=function(){function e(r,i,o,a,l,u){if(u!==c2){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:p0,resetWarningCache:d0};return n.PropTypes=n,n};f0.exports=f2();Object.defineProperty(c0,"__esModule",{value:!0});var _l=Object.assign||function(e){for(var t=1;t=0||!Object.prototype.hasOwnProperty.call(e,r)||(n[r]=e[r]);return n}function h2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function v2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Wf={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},g2=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],y2=function(t){return g2.forEach(function(n){return delete t[n]}),t},Gf=function(t,n){n.style.fontSize=t.fontSize,n.style.fontFamily=t.fontFamily,n.style.fontWeight=t.fontWeight,n.style.fontStyle=t.fontStyle,n.style.letterSpacing=t.letterSpacing,n.style.textTransform=t.textTransform},v0=typeof window!="undefined"&&window.navigator?/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent):!1,Qf=function(){return v0?"_"+Math.random().toString(36).substr(2,12):void 0},nc=function(e){v2(t,e),Uf(t,null,[{key:"getDerivedStateFromProps",value:function(r,i){var o=r.id;return o!==i.prevId?{inputId:o||Qf(),prevId:o}:null}}]);function t(n){h2(this,t);var r=m2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.inputRef=function(i){r.input=i,typeof r.props.inputRef=="function"&&r.props.inputRef(i)},r.placeHolderSizerRef=function(i){r.placeHolderSizer=i},r.sizerRef=function(i){r.sizer=i},r.state={inputWidth:n.minWidth,inputId:n.id||Qf(),prevId:n.id},r}return Uf(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(r,i){i.inputWidth!==this.state.inputWidth&&typeof this.props.onAutosize=="function"&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(!(!this.mounted||!window.getComputedStyle)){var r=this.input&&window.getComputedStyle(this.input);!r||(Gf(r,this.sizer),this.placeHolderSizer&&Gf(r,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(!(!this.mounted||!this.sizer||typeof this.sizer.scrollWidth=="undefined")){var r=void 0;this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?r=Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:r=this.sizer.scrollWidth+2;var i=this.props.type==="number"&&this.props.extraWidth===void 0?16:parseInt(this.props.extraWidth)||0;r+=i,r-1}function y0(e){return rc(e)?window.pageYOffset:e.scrollTop}function da(e,t){if(rc(e)){window.scrollTo(0,t);return}e.scrollTop=t}function O2(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/,i=document.documentElement;if(t.position==="fixed")return i;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return i}function P2(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function uo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:fa,i=y0(e),o=t-i,a=10,l=0;function u(){l+=a;var s=P2(l,i,o,n);da(e,s),ln.bottom?da(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=w)return{placement:"bottom",maxHeight:t};if(D>=w&&!a)return o&&uo(s,W,ie),{placement:"bottom",maxHeight:t};if(!a&&D>=r||a&&A>=r){o&&uo(s,W,ie);var ce=a?A-x:D-x;return{placement:"bottom",maxHeight:ce}}if(i==="auto"||a){var ne=t,te=a?b:j;return te>=r&&(ne=Math.min(te-x-u.controlHeight,t)),{placement:"top",maxHeight:ne}}if(i==="bottom")return o&&da(s,W),{placement:"bottom",maxHeight:t};break;case"top":if(b>=w)return{placement:"top",maxHeight:t};if(j>=w&&!a)return o&&uo(s,G,ie),{placement:"top",maxHeight:t};if(!a&&j>=r||a&&b>=r){var q=t;return(!a&&j>=r||a&&b>=r)&&(q=a?b-P:j-P),o&&uo(s,G,ie),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function M2(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ju=function(t){return t==="auto"?"bottom":t},R2=function(t){var n,r=t.placement,i=t.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return n={label:"menu"},qt(n,M2(r),"100%"),qt(n,"backgroundColor",l.neutral0),qt(n,"borderRadius",o),qt(n,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),qt(n,"marginBottom",a.menuGutter),qt(n,"marginTop",a.menuGutter),qt(n,"position","absolute"),qt(n,"width","100%"),qt(n,"zIndex",1),n},w0=E.exports.createContext({getPortalPlacement:null}),S0=function(e){Ya(n,e);var t=Ka(n);function n(){var r;Ga(this,n);for(var i=arguments.length,o=new Array(i),a=0;az(gy,{children:[t&&y("span",{children:t}),y(yy,{children:e})]});function xy(e){if(e.sheet)return e.sheet;for(var t=0;t0?ut(Tr,--vt):0,Fr--,Re===10&&(Fr=1,Ua--),Re}function wt(){return Re=vt2||Fi(Re)>3?"":" "}function _y(e,t){for(;--t&&wt()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Di(e,Eo()+(t<6&&Zt()==32&&wt()==32))}function Ds(e){for(;wt();)switch(Re){case e:return vt;case 34:case 39:e!==34&&e!==39&&Ds(Re);break;case 40:e===41&&Ds(e);break;case 92:wt();break}return vt}function Iy(e,t){for(;wt()&&e+Re!==47+10;)if(e+Re===42+42&&Zt()===47)break;return"/*"+Di(t,vt-1)+"*"+Ha(e===47?e:wt())}function Ty(e){for(;!Fi(Zt());)wt();return Di(e,vt)}function My(e){return t0(Po("",null,null,null,[""],e=e0(e),0,[0],e))}function Po(e,t,n,r,i,o,a,l,s){for(var u=0,c=0,d=a,h=0,g=0,v=0,w=1,S=1,p=1,f=0,m="",k=i,x=o,P=r,E=m;S;)switch(v=f,f=wt()){case 40:if(v!=108&&E.charCodeAt(d-1)==58){zs(E+=ye(Oo(f),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:E+=Oo(f);break;case 9:case 10:case 13:case 32:E+=Vy(v);break;case 92:E+=_y(Eo()-1,7);continue;case 47:switch(Zt()){case 42:case 47:lo(Ry(Iy(wt(),Eo()),t,n),s);break;default:E+="/"}break;case 123*w:l[u++]=Wt(E)*p;case 125*w:case 59:case 0:switch(f){case 0:case 125:S=0;case 59+c:g>0&&Wt(E)-d&&lo(g>32?Nf(E+";",r,n,d-1):Nf(ye(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(lo(P=Df(E,t,n,u,c,i,l,m,k=[],x=[],d),o),f===123)if(c===0)Po(E,t,P,P,k,o,d,l,x);else switch(h){case 100:case 109:case 115:Po(e,P,P,r&&lo(Df(e,P,P,0,0,i,l,m,i,k=[],d),x),i,x,d,l,r?k:x);break;default:Po(E,P,P,P,[""],x,0,l,x)}}u=c=g=0,w=p=1,m=E="",d=a;break;case 58:d=1+Wt(E),g=v;default:if(w<1){if(f==123)--w;else if(f==125&&w++==0&&Fy()==125)continue}switch(E+=Ha(f),f*w){case 38:p=c>0?1:(E+="\f",-1);break;case 44:l[u++]=(Wt(E)-1)*p,p=1;break;case 64:Zt()===45&&(E+=Oo(wt())),h=Zt(),c=d=Wt(m=E+=Ty(Eo())),f++;break;case 45:v===45&&Wt(E)==2&&(w=0)}}return o}function Df(e,t,n,r,i,o,a,l,s,u,c){for(var d=i-1,h=i===0?o:[""],g=Zu(h),v=0,w=0,S=0;v0?h[p]+" "+f:ye(f,/&\f/g,h[p])))&&(s[S++]=m);return Wa(e,t,n,i===0?Ku:l,s,u,c)}function Ry(e,t,n){return Wa(e,t,n,Xh,Ha(Ay()),Ai(e,2,-2),0)}function Nf(e,t,n,r){return Wa(e,t,n,Xu,Ai(e,0,r),Ai(e,r+1,-1),r)}function n0(e,t){switch(Ey(e,t)){case 5103:return ge+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ge+e+ua+e+nt+e+e;case 6828:case 4268:return ge+e+nt+e+e;case 6165:return ge+e+nt+"flex-"+e+e;case 5187:return ge+e+ye(e,/(\w+).+(:[^]+)/,ge+"box-$1$2"+nt+"flex-$1$2")+e;case 5443:return ge+e+nt+"flex-item-"+ye(e,/flex-|-self/,"")+e;case 4675:return ge+e+nt+"flex-line-pack"+ye(e,/align-content|flex-|-self/,"")+e;case 5548:return ge+e+nt+ye(e,"shrink","negative")+e;case 5292:return ge+e+nt+ye(e,"basis","preferred-size")+e;case 6060:return ge+"box-"+ye(e,"-grow","")+ge+e+nt+ye(e,"grow","positive")+e;case 4554:return ge+ye(e,/([^-])(transform)/g,"$1"+ge+"$2")+e;case 6187:return ye(ye(ye(e,/(zoom-|grab)/,ge+"$1"),/(image-set)/,ge+"$1"),e,"")+e;case 5495:case 3959:return ye(e,/(image-set\([^]*)/,ge+"$1$`$1");case 4968:return ye(ye(e,/(.+:)(flex-)?(.*)/,ge+"box-pack:$3"+nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ge+e+e;case 4095:case 3583:case 4068:case 2532:return ye(e,/(.+)-inline(.+)/,ge+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wt(e)-1-t>6)switch(ut(e,t+1)){case 109:if(ut(e,t+4)!==45)break;case 102:return ye(e,/(.+:)(.+)-([^]+)/,"$1"+ge+"$2-$3$1"+ua+(ut(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zs(e,"stretch")?n0(ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ut(e,t+1)!==115)break;case 6444:switch(ut(e,Wt(e)-3-(~zs(e,"!important")&&10))){case 107:return ye(e,":",":"+ge)+e;case 101:return ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ge+(ut(e,14)===45?"inline-":"")+"box$3$1"+ge+"$2$3$1"+nt+"$2box$3")+e}break;case 5936:switch(ut(e,t+11)){case 114:return ge+e+nt+ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ge+e+nt+ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ge+e+nt+ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ge+e+nt+e+e}return e}function Sr(e,t){for(var n="",r=Zu(e),i=0;i-1&&!e.return)switch(e.type){case Xu:e.return=n0(e.value,e.length);break;case Zh:return Sr([Ur(e,{value:ye(e.value,"@","@"+ge)})],r);case Ku:if(e.length)return Py(e.props,function(i){switch(Oy(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sr([Ur(e,{props:[ye(i,/:(read-\w+)/,":"+ua+"$1")]})],r);case"::placeholder":return Sr([Ur(e,{props:[ye(i,/:(plac\w+)/,":"+ge+"input-$1")]}),Ur(e,{props:[ye(i,/:(plac\w+)/,":"+ua+"$1")]}),Ur(e,{props:[ye(i,/:(plac\w+)/,nt+"input-$1")]})],r)}return""})}}var $y=function(t,n,r){for(var i=0,o=0;i=o,o=Zt(),i===38&&o===12&&(n[r]=1),!Fi(o);)wt();return Di(t,vt)},By=function(t,n){var r=-1,i=44;do switch(Fi(i)){case 0:i===38&&Zt()===12&&(n[r]=1),t[r]+=$y(vt-1,n,r);break;case 2:t[r]+=Oo(i);break;case 4:if(i===44){t[++r]=Zt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ha(i)}while(i=wt());return t},jy=function(t,n){return t0(By(e0(t),n))},$f=new WeakMap,Hy=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!$f.get(r))&&!i){$f.set(t,!0);for(var o=[],a=jy(n,o),l=r.props,s=0,u=0;s=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ky=/[A-Z]|^ms/g,Xy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,o0=function(t){return t.charCodeAt(1)===45},Bf=function(t){return t!=null&&typeof t!="boolean"},Vl=Eh(function(e){return o0(e)?e:e.replace(Ky,"-$&").toLowerCase()}),jf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Xy,function(r,i,o){return Gt={name:i,styles:o,next:Gt},i})}return bh[t]!==1&&!o0(t)&&typeof n=="number"&&n!==0?n+"px":n};function Vi(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Gt={name:n.name,styles:n.styles,next:Gt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Gt={name:r.name,styles:r.styles,next:Gt},r=r.next;var i=n.styles+";";return i}return Zy(e,t,n)}case"function":{if(e!==void 0){var o=Gt,a=n(e);return Gt=o,Vi(e,t,a)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function Zy(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function $s(e){return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(e)}var c0={},f0={exports:{}},s2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",u2=s2,c2=u2;function d0(){}function p0(){}p0.resetWarningCache=d0;var f2=function(){function e(r,i,o,a,l,s){if(s!==c2){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:p0,resetWarningCache:d0};return n.PropTypes=n,n};f0.exports=f2();Object.defineProperty(c0,"__esModule",{value:!0});var _l=Object.assign||function(e){for(var t=1;t=0||!Object.prototype.hasOwnProperty.call(e,r)||(n[r]=e[r]);return n}function h2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function v2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Wf={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},g2=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],y2=function(t){return g2.forEach(function(n){return delete t[n]}),t},Gf=function(t,n){n.style.fontSize=t.fontSize,n.style.fontFamily=t.fontFamily,n.style.fontWeight=t.fontWeight,n.style.fontStyle=t.fontStyle,n.style.letterSpacing=t.letterSpacing,n.style.textTransform=t.textTransform},v0=typeof window!="undefined"&&window.navigator?/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent):!1,Qf=function(){return v0?"_"+Math.random().toString(36).substr(2,12):void 0},nc=function(e){v2(t,e),Uf(t,null,[{key:"getDerivedStateFromProps",value:function(r,i){var o=r.id;return o!==i.prevId?{inputId:o||Qf(),prevId:o}:null}}]);function t(n){h2(this,t);var r=m2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return r.inputRef=function(i){r.input=i,typeof r.props.inputRef=="function"&&r.props.inputRef(i)},r.placeHolderSizerRef=function(i){r.placeHolderSizer=i},r.sizerRef=function(i){r.sizer=i},r.state={inputWidth:n.minWidth,inputId:n.id||Qf(),prevId:n.id},r}return Uf(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(r,i){i.inputWidth!==this.state.inputWidth&&typeof this.props.onAutosize=="function"&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(!(!this.mounted||!window.getComputedStyle)){var r=this.input&&window.getComputedStyle(this.input);!r||(Gf(r,this.sizer),this.placeHolderSizer&&Gf(r,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(!(!this.mounted||!this.sizer||typeof this.sizer.scrollWidth=="undefined")){var r=void 0;this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?r=Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:r=this.sizer.scrollWidth+2;var i=this.props.type==="number"&&this.props.extraWidth===void 0?16:parseInt(this.props.extraWidth)||0;r+=i,r-1}function y0(e){return rc(e)?window.pageYOffset:e.scrollTop}function da(e,t){if(rc(e)){window.scrollTo(0,t);return}e.scrollTop=t}function O2(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/,i=document.documentElement;if(t.position==="fixed")return i;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return i}function P2(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function so(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:fa,i=y0(e),o=t-i,a=10,l=0;function s(){l+=a;var u=P2(l,i,o,n);da(e,u),ln.bottom?da(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=w)return{placement:"bottom",maxHeight:t};if(D>=w&&!a)return o&&so(u,W,ie),{placement:"bottom",maxHeight:t};if(!a&&D>=r||a&&A>=r){o&&so(u,W,ie);var ce=a?A-x:D-x;return{placement:"bottom",maxHeight:ce}}if(i==="auto"||a){var ne=t,te=a?E:j;return te>=r&&(ne=Math.min(te-x-s.controlHeight,t)),{placement:"top",maxHeight:ne}}if(i==="bottom")return o&&da(u,W),{placement:"bottom",maxHeight:t};break;case"top":if(E>=w)return{placement:"top",maxHeight:t};if(j>=w&&!a)return o&&so(u,G,ie),{placement:"top",maxHeight:t};if(!a&&j>=r||a&&E>=r){var q=t;return(!a&&j>=r||a&&E>=r)&&(q=a?E-P:j-P),o&&so(u,G,ie),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function M2(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var js=function(t){return t==="auto"?"bottom":t},R2=function(t){var n,r=t.placement,i=t.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return n={label:"menu"},qt(n,M2(r),"100%"),qt(n,"backgroundColor",l.neutral0),qt(n,"borderRadius",o),qt(n,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),qt(n,"marginBottom",a.menuGutter),qt(n,"marginTop",a.menuGutter),qt(n,"position","absolute"),qt(n,"width","100%"),qt(n,"zIndex",1),n},w0=b.exports.createContext({getPortalPlacement:null}),S0=function(e){Ya(n,e);var t=Ka(n);function n(){var r;Ga(this,n);for(var i=arguments.length,o=new Array(i),a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}};function jx(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Mr(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return X("input",Y({ref:t},n,{css:tc({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var Hx=function(t){t.preventDefault(),t.stopPropagation()};function Ux(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=E.exports.useRef(!1),l=E.exports.useRef(!1),u=E.exports.useRef(0),s=E.exports.useRef(null),c=E.exports.useCallback(function(S,p){if(s.current!==null){var f=s.current,m=f.scrollTop,k=f.scrollHeight,x=f.clientHeight,P=s.current,b=p>0,A=k-x-m,j=!1;A>p&&a.current&&(r&&r(S),a.current=!1),b&&l.current&&(o&&o(S),l.current=!1),b&&p>A?(n&&!a.current&&n(S),P.scrollTop=k,j=!0,a.current=!0):!b&&-p>m&&(i&&!l.current&&i(S),P.scrollTop=0,j=!0,l.current=!0),j&&Hx(S)}},[]),d=E.exports.useCallback(function(S){c(S,S.deltaY)},[c]),h=E.exports.useCallback(function(S){u.current=S.changedTouches[0].clientY},[]),g=E.exports.useCallback(function(S){var p=u.current-S.changedTouches[0].clientY;c(S,p)},[c]),v=E.exports.useCallback(function(S){if(!!S){var p=I2?{passive:!1}:!1;typeof S.addEventListener=="function"&&S.addEventListener("wheel",d,p),typeof S.addEventListener=="function"&&S.addEventListener("touchstart",h,p),typeof S.addEventListener=="function"&&S.addEventListener("touchmove",g,p)}},[g,h,d]),w=E.exports.useCallback(function(S){!S||(typeof S.removeEventListener=="function"&&S.removeEventListener("wheel",d,!1),typeof S.removeEventListener=="function"&&S.removeEventListener("touchstart",h,!1),typeof S.removeEventListener=="function"&&S.removeEventListener("touchmove",g,!1))},[g,h,d]);return E.exports.useEffect(function(){if(!!t){var S=s.current;return v(S),function(){w(S)}}},[t,v,w]),function(S){s.current=S}}var td=["boxSizing","height","overflow","paddingRight","position"],nd={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function rd(e){e.preventDefault()}function id(e){e.stopPropagation()}function od(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ad(){return"ontouchstart"in window||navigator.maxTouchPoints}var ld=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Gr=0,er={capture:!1,passive:!1};function Wx(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=E.exports.useRef({}),o=E.exports.useRef(null),a=E.exports.useCallback(function(u){if(!!ld){var s=document.body,c=s&&s.style;if(r&&td.forEach(function(v){var w=c&&c[v];i.current[v]=w}),r&&Gr<1){var d=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,g=window.innerWidth-h+d||0;Object.keys(nd).forEach(function(v){var w=nd[v];c&&(c[v]=w)}),c&&(c.paddingRight="".concat(g,"px"))}s&&ad()&&(s.addEventListener("touchmove",rd,er),u&&(u.addEventListener("touchstart",od,er),u.addEventListener("touchmove",id,er))),Gr+=1}},[]),l=E.exports.useCallback(function(u){if(!!ld){var s=document.body,c=s&&s.style;Gr=Math.max(Gr-1,0),r&&Gr<1&&td.forEach(function(d){var h=i.current[d];c&&(c[d]=h)}),s&&ad()&&(s.removeEventListener("touchmove",rd,er),u&&(u.removeEventListener("touchstart",od,er),u.removeEventListener("touchmove",id,er)))}},[]);return E.exports.useEffect(function(){if(!!t){var u=o.current;return a(u),function(){l(u)}}},[t,a,l]),function(u){o.current=u}}var Gx=function(){return document.activeElement&&document.activeElement.blur()},Qx={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Yx(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,u=e.onTopLeave,s=Ux({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:l,onTopLeave:u}),c=Wx({isEnabled:n}),d=function(g){s(g),c(g)};return X(Ke.Fragment,null,n&&X("div",{onClick:Gx,css:Qx}),t(d))}var Kx=function(t){return t.label},Xx=function(t){return t.label},Zx=function(t){return t.value},qx=function(t){return!!t.isDisabled},Jx={clearIndicator:q2,container:H2,control:ix,dropdownIndicator:X2,group:ax,groupHeading:ux,indicatorsContainer:Q2,indicatorSeparator:ex,input:cx,loadingIndicator:rx,loadingMessage:$2,menu:R2,menuList:z2,menuPortal:B2,multiValue:px,multiValueLabel:hx,multiValueRemove:mx,noOptionsMessage:N2,option:xx,placeholder:Sx,singleValue:Cx,valueContainer:W2},ew={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},tw=4,M0=4,nw=38,rw=M0*2,iw={baseUnit:M0,controlHeight:nw,menuGutter:rw},Ll={borderRadius:tw,colors:ew,spacing:iw},ow={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Zf(),captureMenuScroll:!Zf(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Bx(),formatGroupLabel:Kx,getOptionLabel:Xx,getOptionValue:Zx,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:qx,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!V2(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function ud(e,t,n,r){var i=D0(e,t,n),o=N0(e,t,n),a=z0(e,t),l=pa(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:l,index:r}}function R0(e,t){return e.options.map(function(n,r){if(n.options){var i=n.options.map(function(a,l){return ud(e,a,t,l)}).filter(function(a){return sd(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=ud(e,n,t,r);return sd(e,o)?o:void 0}).filter(function(n){return!!n})}function L0(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,_0(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function aw(e,t){return L0(R0(e,t))}function sd(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,l=t.value;return(!B0(e)||!o)&&$0(e,{label:a,value:l,data:i},r)}function lw(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var z0=function(t,n){return t.getOptionLabel(n)},pa=function(t,n){return t.getOptionValue(n)};function D0(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function N0(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=pa(e,t);return n.some(function(i){return pa(e,i)===r})}function $0(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var B0=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},sw=1,j0=function(e){Ya(n,e);var t=Ka(n);function n(r){var i;return Ga(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(o){i.controlRef=o},i.focusedOptionRef=null,i.getFocusedOptionRef=function(o){i.focusedOptionRef=o},i.menuListRef=null,i.getMenuListRef=function(o){i.menuListRef=o},i.inputRef=null,i.getInputRef=function(o){i.inputRef=o},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(o,a){var l=i.props,u=l.onChange,s=l.name;a.name=s,i.ariaOnChange(o,a),u(o,a)},i.setValue=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set-value",l=arguments.length>2?arguments[2]:void 0,u=i.props,s=u.closeMenuOnSelect,c=u.isMulti;i.onInputChange("",{action:"set-value"}),s&&(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(o,{action:a,option:l})},i.selectOption=function(o){var a=i.props,l=a.blurInputOnSelect,u=a.isMulti,s=a.name,c=i.state.selectValue,d=u&&i.isOptionSelected(o,c),h=i.isOptionDisabled(o,c);if(d){var g=i.getOptionValue(o);i.setValue(c.filter(function(v){return i.getOptionValue(v)!==g}),"deselect-option",o)}else if(!h)u?i.setValue([].concat(_0(c),[o]),"select-option",o):i.setValue(o,"select-option");else{i.ariaOnChange(o,{action:"select-option",name:s});return}l&&i.blurInput()},i.removeValue=function(o){var a=i.props.isMulti,l=i.state.selectValue,u=i.getOptionValue(o),s=l.filter(function(d){return i.getOptionValue(d)!==u}),c=a?s:s[0]||null;i.onChange(c,{action:"remove-value",removedValue:o}),i.focusInput()},i.clearValue=function(){var o=i.state.selectValue;i.onChange(i.props.isMulti?[]:null,{action:"clear",removedValues:o})},i.popValue=function(){var o=i.props.isMulti,a=i.state.selectValue,l=a[a.length-1],u=a.slice(0,a.length-1),s=o?u:u[0]||null;i.onChange(s,{action:"pop-value",removedValue:l})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var o=arguments.length,a=new Array(o),l=0;lc||s>c}},i.onTouchEnd=function(o){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(o.target)&&i.menuListRef&&!i.menuListRef.contains(o.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(o){i.userIsDragging||i.onControlMouseDown(o)},i.onClearIndicatorTouchEnd=function(o){i.userIsDragging||i.onClearIndicatorMouseDown(o)},i.onDropdownIndicatorTouchEnd=function(o){i.userIsDragging||i.onDropdownIndicatorMouseDown(o)},i.handleInputChange=function(o){var a=o.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(a,{action:"input-change"}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(o){i.props.onFocus&&i.props.onFocus(o),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(o){if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(o),i.onInputChange("",{action:"input-blur"}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(o){i.blockOptionHover||i.state.focusedOption===o||i.setState({focusedOption:o})},i.shouldHideSelectedOptions=function(){return B0(i.props)},i.onKeyDown=function(o){var a=i.props,l=a.isMulti,u=a.backspaceRemovesValue,s=a.escapeClearsValue,c=a.inputValue,d=a.isClearable,h=a.isDisabled,g=a.menuIsOpen,v=a.onKeyDown,w=a.tabSelectsValue,S=a.openMenuOnFocus,p=i.state,f=p.focusedOption,m=p.focusedValue,k=p.selectValue;if(!h&&!(typeof v=="function"&&(v(o),o.defaultPrevented))){switch(i.blockOptionHover=!0,o.key){case"ArrowLeft":if(!l||c)return;i.focusValue("previous");break;case"ArrowRight":if(!l||c)return;i.focusValue("next");break;case"Delete":case"Backspace":if(c)return;if(m)i.removeValue(m);else{if(!u)return;l?i.popValue():d&&i.clearValue()}break;case"Tab":if(i.isComposing||o.shiftKey||!g||!w||!f||S&&i.isOptionSelected(f,k))return;i.selectOption(f);break;case"Enter":if(o.keyCode===229)break;if(g){if(!f||i.isComposing)return;i.selectOption(f);break}return;case"Escape":g?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close"}),i.onMenuClose()):d&&s&&i.clearValue();break;case" ":if(c)return;if(!g){i.openMenu("first");break}if(!f)return;i.selectOption(f);break;case"ArrowUp":g?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":g?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!g)return;i.focusOption("pageup");break;case"PageDown":if(!g)return;i.focusOption("pagedown");break;case"Home":if(!g)return;i.focusOption("first");break;case"End":if(!g)return;i.focusOption("last");break;default:return}o.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++sw),i.state.selectValue=Xf(r.value),i}return Qa(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,l=o.menuIsOpen,u=this.state.isFocused;(u&&!a&&i.isDisabled||u&&l&&!i.menuIsOpen)&&this.focusInput(),u&&a&&!i.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(A2(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){!this.inputRef||this.inputRef.focus()}},{key:"blurInput",value:function(){!this.inputRef||this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,l=a.selectValue,u=a.isFocused,s=this.buildFocusableOptions(),c=i==="first"?0:s.length-1;if(!this.props.isMulti){var d=s.indexOf(l[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[c]},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,l=o.focusedValue;if(!!this.props.isMulti){this.setState({focusedOption:null});var u=a.indexOf(l);l||(u=-1);var s=a.length-1,c=-1;if(!!a.length){switch(i){case"previous":u===0?c=0:u===-1?c=s:c=u-1;break;case"next":u>-1&&u0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(!!l.length){var u=0,s=l.indexOf(a);a||(s=-1),i==="up"?u=s>0?s-1:l.length-1:i==="down"?u=(s+1)%l.length:i==="pageup"?(u=s-o,u<0&&(u=0)):i==="pagedown"?(u=s+o,u>l.length-1&&(u=l.length-1)):i==="last"&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ll):Ye(Ye({},Ll),this.props.theme):Ll}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,l=this.getValue,u=this.selectOption,s=this.setValue,c=this.props,d=c.isMulti,h=c.isRtl,g=c.options,v=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getValue:l,hasValue:v,isMulti:d,isRtl:h,options:g,selectOption:u,selectProps:c,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return D0(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return N0(this.props,i,o)}},{key:"filterOption",value:function(i,o){return $0(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,l=i.inputId,u=i.inputValue,s=i.tabIndex,c=i.form,d=this.getComponents(),h=d.Input,g=this.state.inputIsHidden,v=this.commonProps,w=l||this.getElementId("input"),S={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return a?y(h,I(R(I({},v),{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:o,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:u}),S)):y(jx,I({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:fa,onFocus:this.onInputFocus,readOnly:!0,disabled:o,tabIndex:s,form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,l=o.MultiValueContainer,u=o.MultiValueLabel,s=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,h=this.commonProps,g=this.props,v=g.controlShouldRenderValue,w=g.isDisabled,S=g.isMulti,p=g.inputValue,f=g.placeholder,m=this.state,k=m.selectValue,x=m.focusedValue,P=m.isFocused;if(!this.hasValue()||!v)return p?null:E.exports.createElement(d,R(I({},h),{key:"placeholder",isDisabled:w,isFocused:P}),f);if(S){var b=k.map(function(j,D){var W=j===x;return E.exports.createElement(a,R(I({},h),{components:{Container:l,Label:u,Remove:s},isFocused:W,isDisabled:w,key:"".concat(i.getOptionValue(j)).concat(D),index:D,removeProps:{onClick:function(){return i.removeValue(j)},onTouchEnd:function(){return i.removeValue(j)},onMouseDown:function(ie){ie.preventDefault(),ie.stopPropagation()}},data:j}),i.formatOptionLabel(j,"value"))});return b}if(p)return null;var A=k[0];return y(c,R(I({},h),{data:A,isDisabled:w,children:this.formatOptionLabel(A,"value")}))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,l=this.props,u=l.isDisabled,s=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||u||!this.hasValue()||s)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y(o,R(I({},a),{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,l=this.props,u=l.isDisabled,s=l.isLoading,c=this.state.isFocused;if(!o||!s)return null;var d={"aria-hidden":"true"};return y(o,R(I({},a),{innerProps:d,isDisabled:u,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var l=this.commonProps,u=this.props.isDisabled,s=this.state.isFocused;return y(a,R(I({},l),{isDisabled:u,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return y(o,R(I({},a),{innerProps:s,isDisabled:l,isFocused:u}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,l=o.GroupHeading,u=o.Menu,s=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,h=o.NoOptionsMessage,g=o.Option,v=this.commonProps,w=this.state.focusedOption,S=this.props,p=S.captureMenuScroll,f=S.inputValue,m=S.isLoading,k=S.loadingMessage,x=S.minMenuHeight,P=S.maxMenuHeight,b=S.menuIsOpen,A=S.menuPlacement,j=S.menuPosition,D=S.menuPortalTarget,W=S.menuShouldBlockScroll,G=S.menuShouldScrollIntoView,ie=S.noOptionsMessage,ce=S.onMenuScrollToTop,ne=S.onMenuScrollToBottom;if(!b)return null;var te=function(T,N){var Q=T.type,C=T.data,ee=T.isDisabled,M=T.isSelected,me=T.label,fe=T.value,de=w===C,J=ee?void 0:function(){return i.onOptionHover(C)},Te=ee?void 0:function(){return i.selectOption(C)},ze="".concat(i.getElementId("option"),"-").concat(N),le={id:ze,onClick:Te,onMouseMove:J,onMouseOver:J,tabIndex:-1};return E.exports.createElement(g,R(I({},v),{innerProps:le,data:C,isDisabled:ee,isSelected:M,key:ze,label:me,type:Q,value:fe,isFocused:de,innerRef:de?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(T.data,"menu"))},q;if(this.hasOptions())q=this.getCategorizedOptions().map(function(O){if(O.type==="group"){var T=O.data,N=O.options,Q=O.index,C="".concat(i.getElementId("group"),"-").concat(Q),ee="".concat(C,"-heading");return E.exports.createElement(a,R(I({},v),{key:C,data:T,options:N,Heading:l,headingProps:{id:ee,data:O.data},label:i.formatGroupLabel(O.data)}),O.options.map(function(M){return te(M,"".concat(Q,"-").concat(M.index))}))}else if(O.type==="option")return te(O,"".concat(O.index))});else if(m){var F=k({inputValue:f});if(F===null)return null;q=y(d,R(I({},v),{children:F}))}else{var $=ie({inputValue:f});if($===null)return null;q=y(h,R(I({},v),{children:$}))}var U={minMenuHeight:x,maxMenuHeight:P,menuPlacement:A,menuPosition:j,menuShouldScrollIntoView:G},ae=y(S0,R(I(I({},v),U),{children:function(O){var T=O.ref,N=O.placerProps,Q=N.placement,C=N.maxHeight;return y(u,R(I(I({},v),U),{innerRef:T,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:m,placement:Q,children:y(Yx,{captureEnabled:p,onTopArrive:ce,onBottomArrive:ne,lockEnabled:W,children:function(ee){return y(s,R(I({},v),{innerRef:function(me){i.getMenuListRef(me),ee(me)},isLoading:m,maxHeight:C,focusedOption:w,children:q}))}})}))}}));return D||j==="fixed"?y(c,R(I({},v),{appendTo:D,controlElement:this.controlRef,menuPlacement:A,menuPosition:j,children:ae})):ae}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,l=o.isDisabled,u=o.isMulti,s=o.name,c=this.state.selectValue;if(!(!s||l))if(u)if(a){var d=c.map(function(v){return i.getOptionValue(v)}).join(a);return y("input",{name:s,type:"hidden",value:d})}else{var h=c.length>0?c.map(function(v,w){return y("input",{name:s,type:"hidden",value:i.getOptionValue(v)},"i-".concat(w))}):y("input",{name:s,type:"hidden"});return y("div",{children:h})}else{var g=c[0]?this.getOptionValue(c[0]):"";return y("input",{name:s,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,l=o.focusedOption,u=o.focusedValue,s=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return y(zx,R(I({},i),{ariaSelection:a,focusedOption:l,focusedValue:u,isFocused:s,selectValue:c,focusableOptions:d}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,l=i.SelectContainer,u=i.ValueContainer,s=this.props,c=s.className,d=s.id,h=s.isDisabled,g=s.menuIsOpen,v=this.state.isFocused,w=this.commonProps=this.getCommonProps();return z(l,R(I({},w),{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:v,children:[this.renderLiveRegion(),z(o,R(I({},w),{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:v,menuIsOpen:g,children:[z(u,R(I({},w),{isDisabled:h,children:[this.renderPlaceholderOrValue(),this.renderInput()]})),z(a,R(I({},w),{isDisabled:h,children:[this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator()]}))]})),this.renderMenu(),this.renderFormField()]}))}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,l=o.clearFocusValueOnUpdate,u=o.inputIsHiddenAfterUpdate,s=i.options,c=i.value,d=i.menuIsOpen,h=i.inputValue,g={};if(a&&(c!==a.value||s!==a.options||d!==a.menuIsOpen||h!==a.inputValue)){var v=Xf(c),w=d?aw(i,v):[],S=l?lw(o,v):null,p=uw(o,w);g={selectValue:v,focusedOption:p,focusedValue:S,clearFocusValueOnUpdate:!1}}var f=u!=null&&i!==a?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{};return Ye(Ye(Ye({},g),f),{},{prevProps:i})}}]),n}(E.exports.Component);j0.defaultProps=ow;var cw={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},fw=function(t){var n,r;return r=n=function(i){Ya(a,i);var o=Ka(a);function a(){var l;Ga(this,a);for(var u=arguments.length,s=new Array(u),c=0;c1?c-1:0),h=1;he.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}};function jx(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Mr(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return X("input",Y({ref:t},n,{css:tc({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var Hx=function(t){t.preventDefault(),t.stopPropagation()};function Ux(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=b.exports.useRef(!1),l=b.exports.useRef(!1),s=b.exports.useRef(0),u=b.exports.useRef(null),c=b.exports.useCallback(function(S,p){if(u.current!==null){var f=u.current,m=f.scrollTop,k=f.scrollHeight,x=f.clientHeight,P=u.current,E=p>0,A=k-x-m,j=!1;A>p&&a.current&&(r&&r(S),a.current=!1),E&&l.current&&(o&&o(S),l.current=!1),E&&p>A?(n&&!a.current&&n(S),P.scrollTop=k,j=!0,a.current=!0):!E&&-p>m&&(i&&!l.current&&i(S),P.scrollTop=0,j=!0,l.current=!0),j&&Hx(S)}},[]),d=b.exports.useCallback(function(S){c(S,S.deltaY)},[c]),h=b.exports.useCallback(function(S){s.current=S.changedTouches[0].clientY},[]),g=b.exports.useCallback(function(S){var p=s.current-S.changedTouches[0].clientY;c(S,p)},[c]),v=b.exports.useCallback(function(S){if(!!S){var p=I2?{passive:!1}:!1;typeof S.addEventListener=="function"&&S.addEventListener("wheel",d,p),typeof S.addEventListener=="function"&&S.addEventListener("touchstart",h,p),typeof S.addEventListener=="function"&&S.addEventListener("touchmove",g,p)}},[g,h,d]),w=b.exports.useCallback(function(S){!S||(typeof S.removeEventListener=="function"&&S.removeEventListener("wheel",d,!1),typeof S.removeEventListener=="function"&&S.removeEventListener("touchstart",h,!1),typeof S.removeEventListener=="function"&&S.removeEventListener("touchmove",g,!1))},[g,h,d]);return b.exports.useEffect(function(){if(!!t){var S=u.current;return v(S),function(){w(S)}}},[t,v,w]),function(S){u.current=S}}var td=["boxSizing","height","overflow","paddingRight","position"],nd={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function rd(e){e.preventDefault()}function id(e){e.stopPropagation()}function od(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ad(){return"ontouchstart"in window||navigator.maxTouchPoints}var ld=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Gr=0,er={capture:!1,passive:!1};function Wx(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=b.exports.useRef({}),o=b.exports.useRef(null),a=b.exports.useCallback(function(s){if(!!ld){var u=document.body,c=u&&u.style;if(r&&td.forEach(function(v){var w=c&&c[v];i.current[v]=w}),r&&Gr<1){var d=parseInt(i.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,g=window.innerWidth-h+d||0;Object.keys(nd).forEach(function(v){var w=nd[v];c&&(c[v]=w)}),c&&(c.paddingRight="".concat(g,"px"))}u&&ad()&&(u.addEventListener("touchmove",rd,er),s&&(s.addEventListener("touchstart",od,er),s.addEventListener("touchmove",id,er))),Gr+=1}},[]),l=b.exports.useCallback(function(s){if(!!ld){var u=document.body,c=u&&u.style;Gr=Math.max(Gr-1,0),r&&Gr<1&&td.forEach(function(d){var h=i.current[d];c&&(c[d]=h)}),u&&ad()&&(u.removeEventListener("touchmove",rd,er),s&&(s.removeEventListener("touchstart",od,er),s.removeEventListener("touchmove",id,er)))}},[]);return b.exports.useEffect(function(){if(!!t){var s=o.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){o.current=s}}var Gx=function(){return document.activeElement&&document.activeElement.blur()},Qx={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Yx(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,u=Ux({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),c=Wx({isEnabled:n}),d=function(g){u(g),c(g)};return X(Ke.Fragment,null,n&&X("div",{onClick:Gx,css:Qx}),t(d))}var Kx=function(t){return t.label},Xx=function(t){return t.label},Zx=function(t){return t.value},qx=function(t){return!!t.isDisabled},Jx={clearIndicator:q2,container:H2,control:ix,dropdownIndicator:X2,group:ax,groupHeading:sx,indicatorsContainer:Q2,indicatorSeparator:ex,input:cx,loadingIndicator:rx,loadingMessage:$2,menu:R2,menuList:z2,menuPortal:B2,multiValue:px,multiValueLabel:hx,multiValueRemove:mx,noOptionsMessage:N2,option:xx,placeholder:Sx,singleValue:Cx,valueContainer:W2},ew={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},tw=4,M0=4,nw=38,rw=M0*2,iw={baseUnit:M0,controlHeight:nw,menuGutter:rw},Ll={borderRadius:tw,colors:ew,spacing:iw},ow={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Zf(),captureMenuScroll:!Zf(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Bx(),formatGroupLabel:Kx,getOptionLabel:Xx,getOptionValue:Zx,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:qx,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!V2(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function sd(e,t,n,r){var i=D0(e,t,n),o=N0(e,t,n),a=z0(e,t),l=pa(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:l,index:r}}function R0(e,t){return e.options.map(function(n,r){if(n.options){var i=n.options.map(function(a,l){return sd(e,a,t,l)}).filter(function(a){return ud(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=sd(e,n,t,r);return ud(e,o)?o:void 0}).filter(function(n){return!!n})}function L0(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,_0(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function aw(e,t){return L0(R0(e,t))}function ud(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,l=t.value;return(!B0(e)||!o)&&$0(e,{label:a,value:l,data:i},r)}function lw(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var z0=function(t,n){return t.getOptionLabel(n)},pa=function(t,n){return t.getOptionValue(n)};function D0(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function N0(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=pa(e,t);return n.some(function(i){return pa(e,i)===r})}function $0(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var B0=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},uw=1,j0=function(e){Ya(n,e);var t=Ka(n);function n(r){var i;return Ga(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(o){i.controlRef=o},i.focusedOptionRef=null,i.getFocusedOptionRef=function(o){i.focusedOptionRef=o},i.menuListRef=null,i.getMenuListRef=function(o){i.menuListRef=o},i.inputRef=null,i.getInputRef=function(o){i.inputRef=o},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(o,a){var l=i.props,s=l.onChange,u=l.name;a.name=u,i.ariaOnChange(o,a),s(o,a)},i.setValue=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set-value",l=arguments.length>2?arguments[2]:void 0,s=i.props,u=s.closeMenuOnSelect,c=s.isMulti;i.onInputChange("",{action:"set-value"}),u&&(i.setState({inputIsHiddenAfterUpdate:!c}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(o,{action:a,option:l})},i.selectOption=function(o){var a=i.props,l=a.blurInputOnSelect,s=a.isMulti,u=a.name,c=i.state.selectValue,d=s&&i.isOptionSelected(o,c),h=i.isOptionDisabled(o,c);if(d){var g=i.getOptionValue(o);i.setValue(c.filter(function(v){return i.getOptionValue(v)!==g}),"deselect-option",o)}else if(!h)s?i.setValue([].concat(_0(c),[o]),"select-option",o):i.setValue(o,"select-option");else{i.ariaOnChange(o,{action:"select-option",name:u});return}l&&i.blurInput()},i.removeValue=function(o){var a=i.props.isMulti,l=i.state.selectValue,s=i.getOptionValue(o),u=l.filter(function(d){return i.getOptionValue(d)!==s}),c=a?u:u[0]||null;i.onChange(c,{action:"remove-value",removedValue:o}),i.focusInput()},i.clearValue=function(){var o=i.state.selectValue;i.onChange(i.props.isMulti?[]:null,{action:"clear",removedValues:o})},i.popValue=function(){var o=i.props.isMulti,a=i.state.selectValue,l=a[a.length-1],s=a.slice(0,a.length-1),u=o?s:s[0]||null;i.onChange(u,{action:"pop-value",removedValue:l})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var o=arguments.length,a=new Array(o),l=0;lc||u>c}},i.onTouchEnd=function(o){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(o.target)&&i.menuListRef&&!i.menuListRef.contains(o.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(o){i.userIsDragging||i.onControlMouseDown(o)},i.onClearIndicatorTouchEnd=function(o){i.userIsDragging||i.onClearIndicatorMouseDown(o)},i.onDropdownIndicatorTouchEnd=function(o){i.userIsDragging||i.onDropdownIndicatorMouseDown(o)},i.handleInputChange=function(o){var a=o.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(a,{action:"input-change"}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(o){i.props.onFocus&&i.props.onFocus(o),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(o){if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(o),i.onInputChange("",{action:"input-blur"}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(o){i.blockOptionHover||i.state.focusedOption===o||i.setState({focusedOption:o})},i.shouldHideSelectedOptions=function(){return B0(i.props)},i.onKeyDown=function(o){var a=i.props,l=a.isMulti,s=a.backspaceRemovesValue,u=a.escapeClearsValue,c=a.inputValue,d=a.isClearable,h=a.isDisabled,g=a.menuIsOpen,v=a.onKeyDown,w=a.tabSelectsValue,S=a.openMenuOnFocus,p=i.state,f=p.focusedOption,m=p.focusedValue,k=p.selectValue;if(!h&&!(typeof v=="function"&&(v(o),o.defaultPrevented))){switch(i.blockOptionHover=!0,o.key){case"ArrowLeft":if(!l||c)return;i.focusValue("previous");break;case"ArrowRight":if(!l||c)return;i.focusValue("next");break;case"Delete":case"Backspace":if(c)return;if(m)i.removeValue(m);else{if(!s)return;l?i.popValue():d&&i.clearValue()}break;case"Tab":if(i.isComposing||o.shiftKey||!g||!w||!f||S&&i.isOptionSelected(f,k))return;i.selectOption(f);break;case"Enter":if(o.keyCode===229)break;if(g){if(!f||i.isComposing)return;i.selectOption(f);break}return;case"Escape":g?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close"}),i.onMenuClose()):d&&u&&i.clearValue();break;case" ":if(c)return;if(!g){i.openMenu("first");break}if(!f)return;i.selectOption(f);break;case"ArrowUp":g?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":g?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!g)return;i.focusOption("pageup");break;case"PageDown":if(!g)return;i.focusOption("pagedown");break;case"Home":if(!g)return;i.focusOption("first");break;case"End":if(!g)return;i.focusOption("last");break;default:return}o.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++uw),i.state.selectValue=Xf(r.value),i}return Qa(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,l=o.menuIsOpen,s=this.state.isFocused;(s&&!a&&i.isDisabled||s&&l&&!i.menuIsOpen)&&this.focusInput(),s&&a&&!i.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(A2(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){!this.inputRef||this.inputRef.focus()}},{key:"blurInput",value:function(){!this.inputRef||this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,l=a.selectValue,s=a.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(l[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c]},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,l=o.focusedValue;if(!!this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var u=a.length-1,c=-1;if(!!a.length){switch(i){case"previous":s===0?c=0:s===-1?c=u:c=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(!!l.length){var s=0,u=l.indexOf(a);a||(u=-1),i==="up"?s=u>0?u-1:l.length-1:i==="down"?s=(u+1)%l.length:i==="pageup"?(s=u-o,s<0&&(s=0)):i==="pagedown"?(s=u+o,s>l.length-1&&(s=l.length-1)):i==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ll):Ye(Ye({},Ll),this.props.theme):Ll}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,l=this.getValue,s=this.selectOption,u=this.setValue,c=this.props,d=c.isMulti,h=c.isRtl,g=c.options,v=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getValue:l,hasValue:v,isMulti:d,isRtl:h,options:g,selectOption:s,selectProps:c,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return D0(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return N0(this.props,i,o)}},{key:"filterOption",value:function(i,o){return $0(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,l=i.inputId,s=i.inputValue,u=i.tabIndex,c=i.form,d=this.getComponents(),h=d.Input,g=this.state.inputIsHidden,v=this.commonProps,w=l||this.getElementId("input"),S={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return a?y(h,I(R(I({},v),{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:o,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s}),S)):y(jx,I({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:fa,onFocus:this.onInputFocus,readOnly:!0,disabled:o,tabIndex:u,form:c,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,l=o.MultiValueContainer,s=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,h=this.commonProps,g=this.props,v=g.controlShouldRenderValue,w=g.isDisabled,S=g.isMulti,p=g.inputValue,f=g.placeholder,m=this.state,k=m.selectValue,x=m.focusedValue,P=m.isFocused;if(!this.hasValue()||!v)return p?null:b.exports.createElement(d,R(I({},h),{key:"placeholder",isDisabled:w,isFocused:P}),f);if(S){var E=k.map(function(j,D){var W=j===x;return b.exports.createElement(a,R(I({},h),{components:{Container:l,Label:s,Remove:u},isFocused:W,isDisabled:w,key:"".concat(i.getOptionValue(j)).concat(D),index:D,removeProps:{onClick:function(){return i.removeValue(j)},onTouchEnd:function(){return i.removeValue(j)},onMouseDown:function(ie){ie.preventDefault(),ie.stopPropagation()}},data:j}),i.formatOptionLabel(j,"value"))});return E}if(p)return null;var A=k[0];return y(c,R(I({},h),{data:A,isDisabled:w,children:this.formatOptionLabel(A,"value")}))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return y(o,R(I({},a),{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!o||!u)return null;var d={"aria-hidden":"true"};return y(o,R(I({},a),{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var l=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return y(a,R(I({},l),{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return y(o,R(I({},a),{innerProps:u,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,l=o.GroupHeading,s=o.Menu,u=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,h=o.NoOptionsMessage,g=o.Option,v=this.commonProps,w=this.state.focusedOption,S=this.props,p=S.captureMenuScroll,f=S.inputValue,m=S.isLoading,k=S.loadingMessage,x=S.minMenuHeight,P=S.maxMenuHeight,E=S.menuIsOpen,A=S.menuPlacement,j=S.menuPosition,D=S.menuPortalTarget,W=S.menuShouldBlockScroll,G=S.menuShouldScrollIntoView,ie=S.noOptionsMessage,ce=S.onMenuScrollToTop,ne=S.onMenuScrollToBottom;if(!E)return null;var te=function(T,N){var Q=T.type,C=T.data,ee=T.isDisabled,M=T.isSelected,me=T.label,fe=T.value,de=w===C,J=ee?void 0:function(){return i.onOptionHover(C)},Te=ee?void 0:function(){return i.selectOption(C)},ze="".concat(i.getElementId("option"),"-").concat(N),le={id:ze,onClick:Te,onMouseMove:J,onMouseOver:J,tabIndex:-1};return b.exports.createElement(g,R(I({},v),{innerProps:le,data:C,isDisabled:ee,isSelected:M,key:ze,label:me,type:Q,value:fe,isFocused:de,innerRef:de?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(T.data,"menu"))},q;if(this.hasOptions())q=this.getCategorizedOptions().map(function(O){if(O.type==="group"){var T=O.data,N=O.options,Q=O.index,C="".concat(i.getElementId("group"),"-").concat(Q),ee="".concat(C,"-heading");return b.exports.createElement(a,R(I({},v),{key:C,data:T,options:N,Heading:l,headingProps:{id:ee,data:O.data},label:i.formatGroupLabel(O.data)}),O.options.map(function(M){return te(M,"".concat(Q,"-").concat(M.index))}))}else if(O.type==="option")return te(O,"".concat(O.index))});else if(m){var F=k({inputValue:f});if(F===null)return null;q=y(d,R(I({},v),{children:F}))}else{var $=ie({inputValue:f});if($===null)return null;q=y(h,R(I({},v),{children:$}))}var U={minMenuHeight:x,maxMenuHeight:P,menuPlacement:A,menuPosition:j,menuShouldScrollIntoView:G},ae=y(S0,R(I(I({},v),U),{children:function(O){var T=O.ref,N=O.placerProps,Q=N.placement,C=N.maxHeight;return y(s,R(I(I({},v),U),{innerRef:T,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:m,placement:Q,children:y(Yx,{captureEnabled:p,onTopArrive:ce,onBottomArrive:ne,lockEnabled:W,children:function(ee){return y(u,R(I({},v),{innerRef:function(me){i.getMenuListRef(me),ee(me)},isLoading:m,maxHeight:C,focusedOption:w,children:q}))}})}))}}));return D||j==="fixed"?y(c,R(I({},v),{appendTo:D,controlElement:this.controlRef,menuPlacement:A,menuPosition:j,children:ae})):ae}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,l=o.isDisabled,s=o.isMulti,u=o.name,c=this.state.selectValue;if(!(!u||l))if(s)if(a){var d=c.map(function(v){return i.getOptionValue(v)}).join(a);return y("input",{name:u,type:"hidden",value:d})}else{var h=c.length>0?c.map(function(v,w){return y("input",{name:u,type:"hidden",value:i.getOptionValue(v)},"i-".concat(w))}):y("input",{name:u,type:"hidden"});return y("div",{children:h})}else{var g=c[0]?this.getOptionValue(c[0]):"";return y("input",{name:u,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,l=o.focusedOption,s=o.focusedValue,u=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return y(zx,R(I({},i),{ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:d}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,l=i.SelectContainer,s=i.ValueContainer,u=this.props,c=u.className,d=u.id,h=u.isDisabled,g=u.menuIsOpen,v=this.state.isFocused,w=this.commonProps=this.getCommonProps();return z(l,R(I({},w),{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:v,children:[this.renderLiveRegion(),z(o,R(I({},w),{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:v,menuIsOpen:g,children:[z(s,R(I({},w),{isDisabled:h,children:[this.renderPlaceholderOrValue(),this.renderInput()]})),z(a,R(I({},w),{isDisabled:h,children:[this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator()]}))]})),this.renderMenu(),this.renderFormField()]}))}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,l=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,u=i.options,c=i.value,d=i.menuIsOpen,h=i.inputValue,g={};if(a&&(c!==a.value||u!==a.options||d!==a.menuIsOpen||h!==a.inputValue)){var v=Xf(c),w=d?aw(i,v):[],S=l?lw(o,v):null,p=sw(o,w);g={selectValue:v,focusedOption:p,focusedValue:S,clearFocusValueOnUpdate:!1}}var f=s!=null&&i!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{};return Ye(Ye(Ye({},g),f),{},{prevProps:i})}}]),n}(b.exports.Component);j0.defaultProps=ow;var cw={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},fw=function(t){var n,r;return r=n=function(i){Ya(a,i);var o=Ka(a);function a(){var l;Ga(this,a);for(var s=arguments.length,u=new Array(s),c=0;c1?c-1:0),h=1;hR(I({},e),{marginTop:"10px",background:"rgba(23, 23, 23, 0.8)",fontSize:"14px",color:"#fff",border:"none",outline:"none",boxShadow:"none"}),placeholder:e=>R(I({},e),{fontSize:"14px",color:"#fff"}),input:e=>R(I({},e),{fontSize:"14px",color:"#fff"}),singleValue:e=>R(I({},e),{fontSize:"14px",color:"#fff",border:"none",outline:"none"}),indicatorContainer:e=>R(I({},e),{borderColor:"#fff",color:"#fff"}),dropdownIndicator:e=>R(I({},e),{borderColor:"#fff",color:"#fff"}),menuPortal:e=>R(I({},e),{color:"#fff",zIndex:9999}),menu:e=>R(I({},e),{background:"rgba(23, 23, 23, 0.8)",position:"absolute",marginBottom:"10px",borderRadius:"4px"}),menuList:e=>R(I({},e),{background:"rgba(23, 23, 23, 0.8)",borderRadius:"4px","&::-webkit-scrollbar":{width:"10px"},"&::-webkit-scrollbar-track":{background:"none"},"&::-webkit-scrollbar-thumb":{borderRadius:"4px",background:"#fff"}}),option:(e,{isFocused:t})=>R(I({},e),{borderRadius:"4px",width:"97%",marginLeft:"auto",marginRight:"auto",background:t?"rgba(255, 255, 255, 0.1)":"none"})},mw=({title:e,items:t,defaultValue:n,clientValue:r,onChange:i})=>{const o=E.exports.useRef(null),a=(l,{action:u})=>{u==="select-option"&&i(l.value)};return z(pw,{children:[z("span",{children:[y("small",{children:e}),y("small",{children:r})]}),y(H0,{ref:o,styles:hw,options:t.map(l=>({value:l,label:l})),value:{value:n,label:n},onChange:a,menuPortalTarget:document.body})]})},vw=({settings:e,storedData:t,data:n,handleModelChange:r})=>{const{locales:i}=fn();return i?y(Zn,{title:i.ped.title,children:y(re,{children:y(mw,{title:i.ped.model,items:e.model.items,defaultValue:n,clientValue:t,onChange:o=>r(o)})})}):null},gw=_e.div` +`,hw={control:e=>R(I({},e),{marginTop:"10px",background:"rgba(23, 23, 23, 0.8)",fontSize:"14px",color:"#fff",border:"none",outline:"none",boxShadow:"none"}),placeholder:e=>R(I({},e),{fontSize:"14px",color:"#fff"}),input:e=>R(I({},e),{fontSize:"14px",color:"#fff"}),singleValue:e=>R(I({},e),{fontSize:"14px",color:"#fff",border:"none",outline:"none"}),indicatorContainer:e=>R(I({},e),{borderColor:"#fff",color:"#fff"}),dropdownIndicator:e=>R(I({},e),{borderColor:"#fff",color:"#fff"}),menuPortal:e=>R(I({},e),{color:"#fff",zIndex:9999}),menu:e=>R(I({},e),{background:"rgba(23, 23, 23, 0.8)",position:"absolute",marginBottom:"10px",borderRadius:"4px"}),menuList:e=>R(I({},e),{background:"rgba(23, 23, 23, 0.8)",borderRadius:"4px","&::-webkit-scrollbar":{width:"10px"},"&::-webkit-scrollbar-track":{background:"none"},"&::-webkit-scrollbar-thumb":{borderRadius:"4px",background:"#fff"}}),option:(e,{isFocused:t})=>R(I({},e),{borderRadius:"4px",width:"97%",marginLeft:"auto",marginRight:"auto",background:t?"rgba(255, 255, 255, 0.1)":"none"})},mw=({title:e,items:t,defaultValue:n,clientValue:r,onChange:i})=>{const o=b.exports.useRef(null),a=(l,{action:s})=>{s==="select-option"&&i(l.value)};return z(pw,{children:[z("span",{children:[y("small",{children:e}),y("small",{children:r})]}),y(H0,{ref:o,styles:hw,options:t.map(l=>({value:l,label:l})),value:{value:n,label:n},onChange:a,menuPortalTarget:document.body})]})},vw=({settings:e,storedData:t,data:n,handleModelChange:r})=>{const{locales:i}=fn();return i?y(Zn,{title:i.ped.title,children:y(re,{children:y(mw,{title:i.ped.model,items:e.model.items,defaultValue:n,clientValue:t,onChange:o=>r(o)})})}):null},gw=_e.div` min-width: 0; display: flex; @@ -241,7 +241,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } -`,K=({title:e,min:t=0,max:n=255,blacklisted:r=[],defaultValue:i,clientValue:o,onChange:a})=>{const l=E.exports.useRef(null),u=E.exports.useCallback(()=>{l.current&&l.current.focus()},[l]),s=function(v,w){for(var S=0;Sn&&(v=t),v},d=function(v,w,S){if(S===0){if(!s(v,w))return c(v);S=1}do v=c(v+S);while(s(v,w));return v},h=E.exports.useCallback((v,w)=>d(v,r,w),[t,n,r]),g=E.exports.useCallback((v,w)=>{let S;if(!v&&v!==0||Number.isNaN(v))return;typeof v=="string"?S=parseInt(v):S=v;const p=h(S,w);a(p)},[h,a]);return z(gw,{onClick:u,children:[z("span",{children:[y("small",{children:e}),z("small",{children:[o," / ",n]})]}),z("div",{children:[y("button",{type:"button",onClick:()=>g(i,-1),children:y(fy,{strokeWidth:5})}),y("input",{type:"number",ref:l,value:i,onChange:v=>g(v.target.value,0)}),y("button",{type:"button",onClick:()=>g(i,1),children:y(dy,{strokeWidth:5})})]})]})},yw=_e.div` +`,K=({title:e,min:t=0,max:n=255,blacklisted:r=[],defaultValue:i,clientValue:o,onChange:a})=>{const l=b.exports.useRef(null),s=b.exports.useCallback(()=>{l.current&&l.current.focus()},[l]),u=function(v,w){for(var S=0;Sn&&(v=t),v},d=function(v,w,S){if(S===0){if(!u(v,w))return c(v);S=1}do v=c(v+S);while(u(v,w));return v},h=b.exports.useCallback((v,w)=>d(v,r,w),[t,n,r]),g=b.exports.useCallback((v,w)=>{let S;if(!v&&v!==0||Number.isNaN(v))return;typeof v=="string"?S=parseInt(v):S=v;const p=h(S,w);a(p)},[h,a]);return z(gw,{onClick:s,children:[z("span",{children:[y("small",{children:e}),z("small",{children:[o," / ",n]})]}),z("div",{children:[y("button",{type:"button",onClick:()=>g(i,-1),children:y(fy,{strokeWidth:5})}),y("input",{type:"number",ref:l,value:i,onChange:v=>g(v.target.value,0)}),y("button",{type:"button",onClick:()=>g(i,1),children:y(dy,{strokeWidth:5})})]})]})},yw=_e.div` width: 100%; > span { @@ -287,7 +287,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho cursor: pointer; border-radius: 2px; } -`,pe=({min:e,max:t,factor:n=1,title:r,defaultValue:i=1,clientValue:o,onChange:a})=>{const l=E.exports.useRef(null),u=E.exports.useCallback(()=>{l.current&&l.current.focus()},[l]),s=E.exports.useCallback(c=>{const d=parseFloat(c.target.value);a(d)},[a]);return z(yw,{onClick:u,children:[z("span",{children:[z("small",{children:[r,": ",i]}),y("small",{children:o})]}),z("div",{children:[y("small",{children:e}),y("input",{type:"range",ref:l,value:i,min:e,max:t,step:n,onChange:s}),y("small",{children:t})]})]})},xw=({settings:e,storedData:t,data:n,handleHeadBlendChange:r})=>{const{locales:i}=fn();return i?z(Zn,{title:i.headBlend.title,children:[z(re,{title:i.headBlend.shape.title,children:[y(K,{title:i.headBlend.shape.firstOption,min:e.shapeFirst.min,max:e.shapeFirst.max,defaultValue:n.shapeFirst,clientValue:t.shapeFirst,onChange:o=>r("shapeFirst",o)}),y(K,{title:i.headBlend.shape.secondOption,min:e.shapeSecond.min,max:e.shapeSecond.max,defaultValue:n.shapeSecond,clientValue:t.shapeSecond,onChange:o=>r("shapeSecond",o)}),y(pe,{title:i.headBlend.shape.mix,min:e.shapeMix.min,max:e.shapeMix.max,factor:e.shapeMix.factor,defaultValue:n.shapeMix,clientValue:t.shapeMix,onChange:o=>r("shapeMix",o)})]}),z(re,{title:i.headBlend.skin.title,children:[y(K,{title:i.headBlend.skin.firstOption,min:e.skinFirst.min,max:e.skinFirst.max,defaultValue:n.skinFirst,clientValue:t.skinFirst,onChange:o=>r("skinFirst",o)}),y(K,{title:i.headBlend.skin.secondOption,min:e.skinSecond.min,max:e.skinSecond.max,defaultValue:n.skinSecond,clientValue:t.skinSecond,onChange:o=>r("skinSecond",o)}),y(pe,{title:i.headBlend.skin.mix,min:e.skinMix.min,max:e.skinMix.max,factor:e.skinMix.factor,defaultValue:n.skinMix,clientValue:t.skinMix,onChange:o=>r("skinMix",o)})]})]}):null},ww=({settings:e,storedData:t,data:n,handleFaceFeatureChange:r})=>{const{locales:i}=fn();return i?z(Zn,{title:i.faceFeatures.title,children:[z(re,{title:i.faceFeatures.nose.title,children:[y(pe,{title:i.faceFeatures.nose.width,min:e.noseWidth.min,max:e.noseWidth.max,factor:e.noseWidth.factor,defaultValue:n.noseWidth,clientValue:t.noseWidth,onChange:o=>r("noseWidth",o)}),y(pe,{title:i.faceFeatures.nose.height,min:e.nosePeakHigh.min,max:e.nosePeakHigh.max,factor:e.nosePeakHigh.factor,defaultValue:n.nosePeakHigh,clientValue:t.nosePeakHigh,onChange:o=>r("nosePeakHigh",o)}),y(pe,{title:i.faceFeatures.nose.size,min:e.nosePeakSize.min,max:e.nosePeakSize.max,factor:e.nosePeakSize.factor,defaultValue:n.nosePeakSize,clientValue:t.nosePeakSize,onChange:o=>r("nosePeakSize",o)}),y(pe,{title:i.faceFeatures.nose.boneHeight,min:e.noseBoneHigh.min,max:e.noseBoneHigh.max,factor:e.noseBoneHigh.factor,defaultValue:n.noseBoneHigh,clientValue:t.noseBoneHigh,onChange:o=>r("noseBoneHigh",o)}),y(pe,{title:i.faceFeatures.nose.peakHeight,min:e.nosePeakLowering.min,max:e.nosePeakLowering.max,factor:e.nosePeakLowering.factor,defaultValue:n.nosePeakLowering,clientValue:t.nosePeakLowering,onChange:o=>r("nosePeakLowering",o)}),y(pe,{title:i.faceFeatures.nose.boneTwist,min:e.noseBoneTwist.min,max:e.noseBoneTwist.max,factor:e.noseBoneTwist.factor,defaultValue:n.noseBoneTwist,clientValue:t.noseBoneTwist,onChange:o=>r("noseBoneTwist",o)})]}),z(re,{title:i.faceFeatures.eyebrows.title,children:[y(pe,{title:i.faceFeatures.eyebrows.height,min:e.eyeBrownHigh.min,max:e.eyeBrownHigh.max,factor:e.eyeBrownHigh.factor,defaultValue:n.eyeBrownHigh,clientValue:t.eyeBrownHigh,onChange:o=>r("eyeBrownHigh",o)}),y(pe,{title:i.faceFeatures.eyebrows.depth,min:e.eyeBrownForward.min,max:e.eyeBrownForward.max,factor:e.eyeBrownForward.factor,defaultValue:n.eyeBrownForward,clientValue:t.eyeBrownForward,onChange:o=>r("eyeBrownForward",o)})]}),z(re,{title:i.faceFeatures.cheeks.title,children:[y(pe,{title:i.faceFeatures.cheeks.boneHeight,min:e.cheeksBoneHigh.min,max:e.cheeksBoneHigh.max,factor:e.cheeksBoneHigh.factor,defaultValue:n.cheeksBoneHigh,clientValue:t.cheeksBoneHigh,onChange:o=>r("cheeksBoneHigh",o)}),y(pe,{title:i.faceFeatures.cheeks.boneWidth,min:e.cheeksBoneWidth.min,max:e.cheeksBoneWidth.max,factor:e.cheeksBoneWidth.factor,defaultValue:n.cheeksBoneWidth,clientValue:t.cheeksBoneWidth,onChange:o=>r("cheeksBoneWidth",o)}),y(pe,{title:i.faceFeatures.cheeks.width,min:e.cheeksWidth.min,max:e.cheeksWidth.max,factor:e.cheeksWidth.factor,defaultValue:n.cheeksWidth,clientValue:t.cheeksWidth,onChange:o=>r("cheeksWidth",o)})]}),z(re,{title:i.faceFeatures.eyesAndMouth.title,children:[y(pe,{title:i.faceFeatures.eyesAndMouth.eyesOpening,min:e.eyesOpening.min,max:e.eyesOpening.max,factor:e.eyesOpening.factor,defaultValue:n.eyesOpening,clientValue:t.eyesOpening,onChange:o=>r("eyesOpening",o)}),y(pe,{title:i.faceFeatures.eyesAndMouth.lipsThickness,min:e.lipsThickness.min,max:e.lipsThickness.max,factor:e.lipsThickness.factor,defaultValue:n.lipsThickness,clientValue:t.lipsThickness,onChange:o=>r("lipsThickness",o)})]}),z(re,{title:i.faceFeatures.jaw.title,children:[y(pe,{title:i.faceFeatures.jaw.width,min:e.jawBoneWidth.min,max:e.jawBoneWidth.max,factor:e.jawBoneWidth.factor,defaultValue:n.jawBoneWidth,clientValue:t.jawBoneWidth,onChange:o=>r("jawBoneWidth",o)}),y(pe,{title:i.faceFeatures.jaw.size,min:e.jawBoneBackSize.min,max:e.jawBoneBackSize.max,factor:e.jawBoneBackSize.factor,defaultValue:n.jawBoneBackSize,clientValue:t.jawBoneBackSize,onChange:o=>r("jawBoneBackSize",o)})]}),z(re,{title:i.faceFeatures.chin.title,children:[y(pe,{title:i.faceFeatures.chin.lowering,min:e.chinBoneLowering.min,max:e.chinBoneLowering.max,factor:e.chinBoneLowering.factor,defaultValue:n.chinBoneLowering,clientValue:t.chinBoneLowering,onChange:o=>r("chinBoneLowering",o)}),y(pe,{title:i.faceFeatures.chin.length,min:e.chinBoneLenght.min,max:e.chinBoneLenght.max,factor:e.chinBoneLenght.factor,defaultValue:n.chinBoneLenght,clientValue:t.chinBoneLenght,onChange:o=>r("chinBoneLenght",o)}),y(pe,{title:i.faceFeatures.chin.size,min:e.chinBoneSize.min,max:e.chinBoneSize.max,factor:e.chinBoneSize.factor,defaultValue:n.chinBoneSize,clientValue:t.chinBoneSize,onChange:o=>r("chinBoneSize",o)}),y(pe,{title:i.faceFeatures.chin.hole,min:e.chinHole.min,max:e.chinHole.max,factor:e.chinHole.factor,defaultValue:n.chinHole,clientValue:t.chinHole,onChange:o=>r("chinHole",o)})]}),y(re,{title:i.faceFeatures.neck.title,children:y(pe,{title:i.faceFeatures.neck.thickness,min:e.neckThickness.min,max:e.neckThickness.max,factor:e.neckThickness.factor,defaultValue:n.neckThickness,clientValue:t.neckThickness,onChange:o=>r("neckThickness",o)})})]}):null},Sw=_e.div` +`,pe=({min:e,max:t,factor:n=1,title:r,defaultValue:i=1,clientValue:o,onChange:a})=>{const l=b.exports.useRef(null),s=b.exports.useCallback(()=>{l.current&&l.current.focus()},[l]),u=b.exports.useCallback(c=>{const d=parseFloat(c.target.value);a(d)},[a]);return z(yw,{onClick:s,children:[z("span",{children:[z("small",{children:[r,": ",i]}),y("small",{children:o})]}),z("div",{children:[y("small",{children:e}),y("input",{type:"range",ref:l,value:i,min:e,max:t,step:n,onChange:u}),y("small",{children:t})]})]})},xw=({settings:e,storedData:t,data:n,handleHeadBlendChange:r})=>{const{locales:i}=fn();return i?z(Zn,{title:i.headBlend.title,children:[z(re,{title:i.headBlend.shape.title,children:[y(K,{title:i.headBlend.shape.firstOption,min:e.shapeFirst.min,max:e.shapeFirst.max,defaultValue:n.shapeFirst,clientValue:t.shapeFirst,onChange:o=>r("shapeFirst",o)}),y(K,{title:i.headBlend.shape.secondOption,min:e.shapeSecond.min,max:e.shapeSecond.max,defaultValue:n.shapeSecond,clientValue:t.shapeSecond,onChange:o=>r("shapeSecond",o)}),y(pe,{title:i.headBlend.shape.mix,min:e.shapeMix.min,max:e.shapeMix.max,factor:e.shapeMix.factor,defaultValue:n.shapeMix,clientValue:t.shapeMix,onChange:o=>r("shapeMix",o)})]}),z(re,{title:i.headBlend.skin.title,children:[y(K,{title:i.headBlend.skin.firstOption,min:e.skinFirst.min,max:e.skinFirst.max,defaultValue:n.skinFirst,clientValue:t.skinFirst,onChange:o=>r("skinFirst",o)}),y(K,{title:i.headBlend.skin.secondOption,min:e.skinSecond.min,max:e.skinSecond.max,defaultValue:n.skinSecond,clientValue:t.skinSecond,onChange:o=>r("skinSecond",o)}),y(pe,{title:i.headBlend.skin.mix,min:e.skinMix.min,max:e.skinMix.max,factor:e.skinMix.factor,defaultValue:n.skinMix,clientValue:t.skinMix,onChange:o=>r("skinMix",o)})]})]}):null},ww=({settings:e,storedData:t,data:n,handleFaceFeatureChange:r})=>{const{locales:i}=fn();return i?z(Zn,{title:i.faceFeatures.title,children:[z(re,{title:i.faceFeatures.nose.title,children:[y(pe,{title:i.faceFeatures.nose.width,min:e.noseWidth.min,max:e.noseWidth.max,factor:e.noseWidth.factor,defaultValue:n.noseWidth,clientValue:t.noseWidth,onChange:o=>r("noseWidth",o)}),y(pe,{title:i.faceFeatures.nose.height,min:e.nosePeakHigh.min,max:e.nosePeakHigh.max,factor:e.nosePeakHigh.factor,defaultValue:n.nosePeakHigh,clientValue:t.nosePeakHigh,onChange:o=>r("nosePeakHigh",o)}),y(pe,{title:i.faceFeatures.nose.size,min:e.nosePeakSize.min,max:e.nosePeakSize.max,factor:e.nosePeakSize.factor,defaultValue:n.nosePeakSize,clientValue:t.nosePeakSize,onChange:o=>r("nosePeakSize",o)}),y(pe,{title:i.faceFeatures.nose.boneHeight,min:e.noseBoneHigh.min,max:e.noseBoneHigh.max,factor:e.noseBoneHigh.factor,defaultValue:n.noseBoneHigh,clientValue:t.noseBoneHigh,onChange:o=>r("noseBoneHigh",o)}),y(pe,{title:i.faceFeatures.nose.peakHeight,min:e.nosePeakLowering.min,max:e.nosePeakLowering.max,factor:e.nosePeakLowering.factor,defaultValue:n.nosePeakLowering,clientValue:t.nosePeakLowering,onChange:o=>r("nosePeakLowering",o)}),y(pe,{title:i.faceFeatures.nose.boneTwist,min:e.noseBoneTwist.min,max:e.noseBoneTwist.max,factor:e.noseBoneTwist.factor,defaultValue:n.noseBoneTwist,clientValue:t.noseBoneTwist,onChange:o=>r("noseBoneTwist",o)})]}),z(re,{title:i.faceFeatures.eyebrows.title,children:[y(pe,{title:i.faceFeatures.eyebrows.height,min:e.eyeBrownHigh.min,max:e.eyeBrownHigh.max,factor:e.eyeBrownHigh.factor,defaultValue:n.eyeBrownHigh,clientValue:t.eyeBrownHigh,onChange:o=>r("eyeBrownHigh",o)}),y(pe,{title:i.faceFeatures.eyebrows.depth,min:e.eyeBrownForward.min,max:e.eyeBrownForward.max,factor:e.eyeBrownForward.factor,defaultValue:n.eyeBrownForward,clientValue:t.eyeBrownForward,onChange:o=>r("eyeBrownForward",o)})]}),z(re,{title:i.faceFeatures.cheeks.title,children:[y(pe,{title:i.faceFeatures.cheeks.boneHeight,min:e.cheeksBoneHigh.min,max:e.cheeksBoneHigh.max,factor:e.cheeksBoneHigh.factor,defaultValue:n.cheeksBoneHigh,clientValue:t.cheeksBoneHigh,onChange:o=>r("cheeksBoneHigh",o)}),y(pe,{title:i.faceFeatures.cheeks.boneWidth,min:e.cheeksBoneWidth.min,max:e.cheeksBoneWidth.max,factor:e.cheeksBoneWidth.factor,defaultValue:n.cheeksBoneWidth,clientValue:t.cheeksBoneWidth,onChange:o=>r("cheeksBoneWidth",o)}),y(pe,{title:i.faceFeatures.cheeks.width,min:e.cheeksWidth.min,max:e.cheeksWidth.max,factor:e.cheeksWidth.factor,defaultValue:n.cheeksWidth,clientValue:t.cheeksWidth,onChange:o=>r("cheeksWidth",o)})]}),z(re,{title:i.faceFeatures.eyesAndMouth.title,children:[y(pe,{title:i.faceFeatures.eyesAndMouth.eyesOpening,min:e.eyesOpening.min,max:e.eyesOpening.max,factor:e.eyesOpening.factor,defaultValue:n.eyesOpening,clientValue:t.eyesOpening,onChange:o=>r("eyesOpening",o)}),y(pe,{title:i.faceFeatures.eyesAndMouth.lipsThickness,min:e.lipsThickness.min,max:e.lipsThickness.max,factor:e.lipsThickness.factor,defaultValue:n.lipsThickness,clientValue:t.lipsThickness,onChange:o=>r("lipsThickness",o)})]}),z(re,{title:i.faceFeatures.jaw.title,children:[y(pe,{title:i.faceFeatures.jaw.width,min:e.jawBoneWidth.min,max:e.jawBoneWidth.max,factor:e.jawBoneWidth.factor,defaultValue:n.jawBoneWidth,clientValue:t.jawBoneWidth,onChange:o=>r("jawBoneWidth",o)}),y(pe,{title:i.faceFeatures.jaw.size,min:e.jawBoneBackSize.min,max:e.jawBoneBackSize.max,factor:e.jawBoneBackSize.factor,defaultValue:n.jawBoneBackSize,clientValue:t.jawBoneBackSize,onChange:o=>r("jawBoneBackSize",o)})]}),z(re,{title:i.faceFeatures.chin.title,children:[y(pe,{title:i.faceFeatures.chin.lowering,min:e.chinBoneLowering.min,max:e.chinBoneLowering.max,factor:e.chinBoneLowering.factor,defaultValue:n.chinBoneLowering,clientValue:t.chinBoneLowering,onChange:o=>r("chinBoneLowering",o)}),y(pe,{title:i.faceFeatures.chin.length,min:e.chinBoneLenght.min,max:e.chinBoneLenght.max,factor:e.chinBoneLenght.factor,defaultValue:n.chinBoneLenght,clientValue:t.chinBoneLenght,onChange:o=>r("chinBoneLenght",o)}),y(pe,{title:i.faceFeatures.chin.size,min:e.chinBoneSize.min,max:e.chinBoneSize.max,factor:e.chinBoneSize.factor,defaultValue:n.chinBoneSize,clientValue:t.chinBoneSize,onChange:o=>r("chinBoneSize",o)}),y(pe,{title:i.faceFeatures.chin.hole,min:e.chinHole.min,max:e.chinHole.max,factor:e.chinHole.factor,defaultValue:n.chinHole,clientValue:t.chinHole,onChange:o=>r("chinHole",o)})]}),y(re,{title:i.faceFeatures.neck.title,children:y(pe,{title:i.faceFeatures.neck.thickness,min:e.neckThickness.min,max:e.neckThickness.max,factor:e.neckThickness.factor,defaultValue:n.neckThickness,clientValue:t.neckThickness,onChange:o=>r("neckThickness",o)})})]}):null},Sw=_e.div` width: 100%; > span { @@ -325,7 +325,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${({selected:e})=>e&&zi` border: 2px solid rgba(255, 255, 255, 1); `} -`,Jt=({title:e,colors:t=[],defaultValue:n,clientValue:r,onChange:i})=>{const o=E.exports.useCallback(a=>{i(a)},[i]);return z(Sw,{children:[z("span",{children:[y("small",{children:`${e}: ${n}`}),y("small",{children:r})]}),y("div",{children:t.map((a,l)=>y(kw,{style:{backgroundColor:`rgb(${a[0]}, ${a[1]}, ${a[2]})`},selected:n===l,onClick:()=>o(l)},l))})]})},Cw=({settings:e,storedData:t,data:n,isPedFreemodeModel:r,handleHairChange:i,handleHeadOverlayChange:o,handleEyeColorChange:a,handleChangeFade:l})=>{var d,h,g,v,w,S,p,f,m,k;const{locales:u}=fn();if(!u)return null;const s=E.exports.useCallback(()=>{var P;const x=(P=e==null?void 0:e.fade)==null?void 0:P.findIndex(b=>{var A;return b.name===((A=n.fade)==null?void 0:A.name)});return x>=0?x:0},[(d=n.fade)==null?void 0:d.name])(),c=E.exports.useCallback(()=>{var P;const x=(P=e==null?void 0:e.fade)==null?void 0:P.findIndex(b=>{var A;return b.name===((A=t.fade)==null?void 0:A.name)});return x>=0?x:0},[(h=t.fade)==null?void 0:h.name])();return z(Zn,{title:u.headOverlays.title,deps:[e],children:[z(re,{title:u.headOverlays.hair.title,children:[y(K,{title:u.headOverlays.hair.style,min:e.hair.style.min,max:e.hair.style.max,defaultValue:n.hair.style,clientValue:t.hair.style,onChange:x=>i("style",x)}),y(K,{title:u.headOverlays.hair.texture,min:e.hair.texture.min,max:e.hair.texture.max,defaultValue:n.hair.texture,clientValue:t.hair.texture,onChange:x=>i("texture",x)}),r&&z(ea,{children:[y(K,{title:u.headOverlays.hair.fade,min:0,max:((g=e==null?void 0:e.fade)==null?void 0:g.length)-1,defaultValue:s,clientValue:c,onChange:x=>l(x)}),y(Jt,{title:u.headOverlays.hair.color,colors:e.hair.color.items,defaultValue:n.hair.color,clientValue:t.hair.color,onChange:x=>i("color",x)}),y(Jt,{title:u.headOverlays.hair.highlight,colors:e.hair.highlight.items,defaultValue:n.hair.highlight,onChange:x=>i("highlight",x)})]})]}),r&&z(ea,{children:[z(re,{title:u.headOverlays.eyebrows,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.eyebrows.opacity.min,max:e.headOverlays.eyebrows.opacity.max,factor:e.headOverlays.eyebrows.opacity.factor,defaultValue:n.headOverlays.eyebrows.opacity,clientValue:t.headOverlays.eyebrows.opacity,onChange:x=>o("eyebrows","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.eyebrows.style.min,max:e.headOverlays.eyebrows.style.max,defaultValue:n.headOverlays.eyebrows.style,clientValue:t.headOverlays.eyebrows.style,onChange:x=>o("eyebrows","style",x)}),y(Jt,{title:u.headOverlays.color,colors:(v=e.headOverlays.eyebrows.color)==null?void 0:v.items,defaultValue:n.headOverlays.eyebrows.color,clientValue:t.headOverlays.eyebrows.color,onChange:x=>o("eyebrows","color",x)})]}),y(re,{title:u.headOverlays.eyeColor,children:y(K,{title:u.headOverlays.style,min:e.eyeColor.min,max:e.eyeColor.max,defaultValue:n.eyeColor,clientValue:t.eyeColor,onChange:x=>a(x)})}),z(re,{title:u.headOverlays.makeUp,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.makeUp.opacity.min,max:e.headOverlays.makeUp.opacity.max,factor:e.headOverlays.makeUp.opacity.factor,defaultValue:n.headOverlays.makeUp.opacity,clientValue:t.headOverlays.makeUp.opacity,onChange:x=>o("makeUp","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.makeUp.style.min,max:e.headOverlays.makeUp.style.max,defaultValue:n.headOverlays.makeUp.style,clientValue:t.headOverlays.makeUp.style,onChange:x=>o("makeUp","style",x)}),y(Jt,{title:u.headOverlays.color,colors:(w=e.headOverlays.makeUp.color)==null?void 0:w.items,defaultValue:n.headOverlays.makeUp.color,clientValue:t.headOverlays.makeUp.color,onChange:x=>o("makeUp","color",x)}),y(Jt,{title:u.headOverlays.secondColor,colors:(S=e.headOverlays.makeUp.color)==null?void 0:S.items,defaultValue:n.headOverlays.makeUp.secondColor,clientValue:t.headOverlays.makeUp.secondColor,onChange:x=>o("makeUp","secondColor",x)})]}),z(re,{title:u.headOverlays.blush,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.blush.opacity.min,max:e.headOverlays.blush.opacity.max,factor:e.headOverlays.blush.opacity.factor,defaultValue:n.headOverlays.blush.opacity,clientValue:t.headOverlays.blush.opacity,onChange:x=>o("blush","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.blush.style.min,max:e.headOverlays.blush.style.max,defaultValue:n.headOverlays.blush.style,clientValue:t.headOverlays.blush.style,onChange:x=>o("blush","style",x)}),y(Jt,{title:u.headOverlays.color,colors:(p=e.headOverlays.blush.color)==null?void 0:p.items,defaultValue:n.headOverlays.blush.color,clientValue:t.headOverlays.blush.color,onChange:x=>o("blush","color",x)})]}),z(re,{title:u.headOverlays.lipstick,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.lipstick.opacity.min,max:e.headOverlays.lipstick.opacity.max,factor:e.headOverlays.lipstick.opacity.factor,defaultValue:n.headOverlays.lipstick.opacity,clientValue:t.headOverlays.lipstick.opacity,onChange:x=>o("lipstick","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.lipstick.style.min,max:e.headOverlays.lipstick.style.max,defaultValue:n.headOverlays.lipstick.style,clientValue:t.headOverlays.lipstick.style,onChange:x=>o("lipstick","style",x)}),y(Jt,{title:u.headOverlays.color,colors:(f=e.headOverlays.lipstick.color)==null?void 0:f.items,defaultValue:n.headOverlays.lipstick.color,clientValue:t.headOverlays.lipstick.color,onChange:x=>o("lipstick","color",x)})]}),z(re,{title:u.headOverlays.beard,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.beard.opacity.min,max:e.headOverlays.beard.opacity.max,factor:e.headOverlays.beard.opacity.factor,defaultValue:n.headOverlays.beard.opacity,clientValue:t.headOverlays.beard.opacity,onChange:x=>o("beard","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.beard.style.min,max:e.headOverlays.beard.style.max,defaultValue:n.headOverlays.beard.style,clientValue:t.headOverlays.beard.style,onChange:x=>o("beard","style",x)}),y(Jt,{title:u.headOverlays.color,colors:(m=e.headOverlays.beard.color)==null?void 0:m.items,defaultValue:n.headOverlays.beard.color,clientValue:t.headOverlays.beard.color,onChange:x=>o("beard","color",x)})]}),z(re,{title:u.headOverlays.blemishes,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.blemishes.opacity.min,max:e.headOverlays.blemishes.opacity.max,factor:e.headOverlays.blemishes.opacity.factor,defaultValue:n.headOverlays.blemishes.opacity,clientValue:t.headOverlays.blemishes.opacity,onChange:x=>o("blemishes","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.blemishes.style.min,max:e.headOverlays.blemishes.style.max,defaultValue:n.headOverlays.blemishes.style,clientValue:t.headOverlays.blemishes.style,onChange:x=>o("blemishes","style",x)})]}),z(re,{title:u.headOverlays.ageing,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.ageing.opacity.min,max:e.headOverlays.ageing.opacity.max,factor:e.headOverlays.ageing.opacity.factor,defaultValue:n.headOverlays.ageing.opacity,clientValue:t.headOverlays.ageing.opacity,onChange:x=>o("ageing","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.ageing.style.min,max:e.headOverlays.ageing.style.max,defaultValue:n.headOverlays.ageing.style,clientValue:t.headOverlays.ageing.style,onChange:x=>o("ageing","style",x)})]}),z(re,{title:u.headOverlays.complexion,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.complexion.opacity.min,max:e.headOverlays.complexion.opacity.max,factor:e.headOverlays.complexion.opacity.factor,defaultValue:n.headOverlays.complexion.opacity,clientValue:t.headOverlays.complexion.opacity,onChange:x=>o("complexion","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.complexion.style.min,max:e.headOverlays.complexion.style.max,defaultValue:n.headOverlays.complexion.style,clientValue:t.headOverlays.complexion.style,onChange:x=>o("complexion","style",x)})]}),z(re,{title:u.headOverlays.sunDamage,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.sunDamage.opacity.min,max:e.headOverlays.sunDamage.opacity.max,factor:e.headOverlays.sunDamage.opacity.factor,defaultValue:n.headOverlays.sunDamage.opacity,clientValue:t.headOverlays.sunDamage.opacity,onChange:x=>o("sunDamage","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.sunDamage.style.min,max:e.headOverlays.sunDamage.style.max,defaultValue:n.headOverlays.sunDamage.style,clientValue:t.headOverlays.sunDamage.style,onChange:x=>o("sunDamage","style",x)})]}),z(re,{title:u.headOverlays.moleAndFreckles,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.moleAndFreckles.opacity.min,max:e.headOverlays.moleAndFreckles.opacity.max,factor:e.headOverlays.moleAndFreckles.opacity.factor,defaultValue:n.headOverlays.moleAndFreckles.opacity,clientValue:t.headOverlays.moleAndFreckles.opacity,onChange:x=>o("moleAndFreckles","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.moleAndFreckles.style.min,max:e.headOverlays.moleAndFreckles.style.max,defaultValue:n.headOverlays.moleAndFreckles.style,clientValue:t.headOverlays.moleAndFreckles.style,onChange:x=>o("moleAndFreckles","style",x)})]}),z(re,{title:u.headOverlays.chestHair,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.chestHair.opacity.min,max:e.headOverlays.chestHair.opacity.max,factor:e.headOverlays.chestHair.opacity.factor,defaultValue:n.headOverlays.chestHair.opacity,clientValue:t.headOverlays.chestHair.opacity,onChange:x=>o("chestHair","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.chestHair.style.min,max:e.headOverlays.chestHair.style.max,defaultValue:n.headOverlays.chestHair.style,clientValue:t.headOverlays.chestHair.style,onChange:x=>o("chestHair","style",x)}),y(Jt,{title:u.headOverlays.color,colors:(k=e.headOverlays.chestHair.color)==null?void 0:k.items,defaultValue:n.headOverlays.chestHair.color,clientValue:t.headOverlays.chestHair.color,onChange:x=>o("chestHair","color",x)})]}),z(re,{title:u.headOverlays.bodyBlemishes,children:[y(pe,{title:u.headOverlays.opacity,min:e.headOverlays.bodyBlemishes.opacity.min,max:e.headOverlays.bodyBlemishes.opacity.max,factor:e.headOverlays.bodyBlemishes.opacity.factor,defaultValue:n.headOverlays.bodyBlemishes.opacity,clientValue:t.headOverlays.bodyBlemishes.opacity,onChange:x=>o("bodyBlemishes","opacity",x)}),y(K,{title:u.headOverlays.style,min:e.headOverlays.bodyBlemishes.style.min,max:e.headOverlays.bodyBlemishes.style.max,defaultValue:n.headOverlays.bodyBlemishes.style,clientValue:t.headOverlays.bodyBlemishes.style,onChange:x=>o("bodyBlemishes","style",x)})]})]})]})},Ew=_e.div` +`,Jt=({title:e,colors:t=[],defaultValue:n,clientValue:r,onChange:i})=>{const o=b.exports.useCallback(a=>{i(a)},[i]);return z(Sw,{children:[z("span",{children:[y("small",{children:`${e}: ${n}`}),y("small",{children:r})]}),y("div",{children:t.map((a,l)=>y(kw,{style:{backgroundColor:`rgb(${a[0]}, ${a[1]}, ${a[2]})`},selected:n===l,onClick:()=>o(l)},l))})]})},Cw=({settings:e,storedData:t,data:n,isPedFreemodeModel:r,handleHairChange:i,handleHeadOverlayChange:o,handleEyeColorChange:a,handleChangeFade:l})=>{var d,h,g,v,w,S,p,f,m,k;const{locales:s}=fn();if(!s)return null;const u=b.exports.useCallback(()=>{var P;const x=(P=e==null?void 0:e.fade)==null?void 0:P.findIndex(E=>{var A;return E.name===((A=n.fade)==null?void 0:A.name)});return x>=0?x:0},[(d=n.fade)==null?void 0:d.name])(),c=b.exports.useCallback(()=>{var P;const x=(P=e==null?void 0:e.fade)==null?void 0:P.findIndex(E=>{var A;return E.name===((A=t.fade)==null?void 0:A.name)});return x>=0?x:0},[(h=t.fade)==null?void 0:h.name])();return z(Zn,{title:s.headOverlays.title,deps:[e],children:[z(re,{title:s.headOverlays.hair.title,children:[y(K,{title:s.headOverlays.hair.style,min:e.hair.style.min,max:e.hair.style.max,defaultValue:n.hair.style,clientValue:t.hair.style,onChange:x=>i("style",x)}),y(K,{title:s.headOverlays.hair.texture,min:e.hair.texture.min,max:e.hair.texture.max,defaultValue:n.hair.texture,clientValue:t.hair.texture,onChange:x=>i("texture",x)}),r&&z(ea,{children:[y(K,{title:s.headOverlays.hair.fade,min:0,max:((g=e==null?void 0:e.fade)==null?void 0:g.length)-1,defaultValue:u,clientValue:c,onChange:x=>l(x)}),y(Jt,{title:s.headOverlays.hair.color,colors:e.hair.color.items,defaultValue:n.hair.color,clientValue:t.hair.color,onChange:x=>i("color",x)}),y(Jt,{title:s.headOverlays.hair.highlight,colors:e.hair.highlight.items,defaultValue:n.hair.highlight,onChange:x=>i("highlight",x)})]})]}),r&&z(ea,{children:[z(re,{title:s.headOverlays.eyebrows,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.eyebrows.opacity.min,max:e.headOverlays.eyebrows.opacity.max,factor:e.headOverlays.eyebrows.opacity.factor,defaultValue:n.headOverlays.eyebrows.opacity,clientValue:t.headOverlays.eyebrows.opacity,onChange:x=>o("eyebrows","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.eyebrows.style.min,max:e.headOverlays.eyebrows.style.max,defaultValue:n.headOverlays.eyebrows.style,clientValue:t.headOverlays.eyebrows.style,onChange:x=>o("eyebrows","style",x)}),y(Jt,{title:s.headOverlays.color,colors:(v=e.headOverlays.eyebrows.color)==null?void 0:v.items,defaultValue:n.headOverlays.eyebrows.color,clientValue:t.headOverlays.eyebrows.color,onChange:x=>o("eyebrows","color",x)})]}),y(re,{title:s.headOverlays.eyeColor,children:y(K,{title:s.headOverlays.style,min:e.eyeColor.min,max:e.eyeColor.max,defaultValue:n.eyeColor,clientValue:t.eyeColor,onChange:x=>a(x)})}),z(re,{title:s.headOverlays.makeUp,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.makeUp.opacity.min,max:e.headOverlays.makeUp.opacity.max,factor:e.headOverlays.makeUp.opacity.factor,defaultValue:n.headOverlays.makeUp.opacity,clientValue:t.headOverlays.makeUp.opacity,onChange:x=>o("makeUp","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.makeUp.style.min,max:e.headOverlays.makeUp.style.max,defaultValue:n.headOverlays.makeUp.style,clientValue:t.headOverlays.makeUp.style,onChange:x=>o("makeUp","style",x)}),y(Jt,{title:s.headOverlays.color,colors:(w=e.headOverlays.makeUp.color)==null?void 0:w.items,defaultValue:n.headOverlays.makeUp.color,clientValue:t.headOverlays.makeUp.color,onChange:x=>o("makeUp","color",x)}),y(Jt,{title:s.headOverlays.secondColor,colors:(S=e.headOverlays.makeUp.color)==null?void 0:S.items,defaultValue:n.headOverlays.makeUp.secondColor,clientValue:t.headOverlays.makeUp.secondColor,onChange:x=>o("makeUp","secondColor",x)})]}),z(re,{title:s.headOverlays.blush,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.blush.opacity.min,max:e.headOverlays.blush.opacity.max,factor:e.headOverlays.blush.opacity.factor,defaultValue:n.headOverlays.blush.opacity,clientValue:t.headOverlays.blush.opacity,onChange:x=>o("blush","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.blush.style.min,max:e.headOverlays.blush.style.max,defaultValue:n.headOverlays.blush.style,clientValue:t.headOverlays.blush.style,onChange:x=>o("blush","style",x)}),y(Jt,{title:s.headOverlays.color,colors:(p=e.headOverlays.blush.color)==null?void 0:p.items,defaultValue:n.headOverlays.blush.color,clientValue:t.headOverlays.blush.color,onChange:x=>o("blush","color",x)})]}),z(re,{title:s.headOverlays.lipstick,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.lipstick.opacity.min,max:e.headOverlays.lipstick.opacity.max,factor:e.headOverlays.lipstick.opacity.factor,defaultValue:n.headOverlays.lipstick.opacity,clientValue:t.headOverlays.lipstick.opacity,onChange:x=>o("lipstick","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.lipstick.style.min,max:e.headOverlays.lipstick.style.max,defaultValue:n.headOverlays.lipstick.style,clientValue:t.headOverlays.lipstick.style,onChange:x=>o("lipstick","style",x)}),y(Jt,{title:s.headOverlays.color,colors:(f=e.headOverlays.lipstick.color)==null?void 0:f.items,defaultValue:n.headOverlays.lipstick.color,clientValue:t.headOverlays.lipstick.color,onChange:x=>o("lipstick","color",x)})]}),z(re,{title:s.headOverlays.beard,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.beard.opacity.min,max:e.headOverlays.beard.opacity.max,factor:e.headOverlays.beard.opacity.factor,defaultValue:n.headOverlays.beard.opacity,clientValue:t.headOverlays.beard.opacity,onChange:x=>o("beard","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.beard.style.min,max:e.headOverlays.beard.style.max,defaultValue:n.headOverlays.beard.style,clientValue:t.headOverlays.beard.style,onChange:x=>o("beard","style",x)}),y(Jt,{title:s.headOverlays.color,colors:(m=e.headOverlays.beard.color)==null?void 0:m.items,defaultValue:n.headOverlays.beard.color,clientValue:t.headOverlays.beard.color,onChange:x=>o("beard","color",x)})]}),z(re,{title:s.headOverlays.blemishes,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.blemishes.opacity.min,max:e.headOverlays.blemishes.opacity.max,factor:e.headOverlays.blemishes.opacity.factor,defaultValue:n.headOverlays.blemishes.opacity,clientValue:t.headOverlays.blemishes.opacity,onChange:x=>o("blemishes","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.blemishes.style.min,max:e.headOverlays.blemishes.style.max,defaultValue:n.headOverlays.blemishes.style,clientValue:t.headOverlays.blemishes.style,onChange:x=>o("blemishes","style",x)})]}),z(re,{title:s.headOverlays.ageing,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.ageing.opacity.min,max:e.headOverlays.ageing.opacity.max,factor:e.headOverlays.ageing.opacity.factor,defaultValue:n.headOverlays.ageing.opacity,clientValue:t.headOverlays.ageing.opacity,onChange:x=>o("ageing","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.ageing.style.min,max:e.headOverlays.ageing.style.max,defaultValue:n.headOverlays.ageing.style,clientValue:t.headOverlays.ageing.style,onChange:x=>o("ageing","style",x)})]}),z(re,{title:s.headOverlays.complexion,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.complexion.opacity.min,max:e.headOverlays.complexion.opacity.max,factor:e.headOverlays.complexion.opacity.factor,defaultValue:n.headOverlays.complexion.opacity,clientValue:t.headOverlays.complexion.opacity,onChange:x=>o("complexion","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.complexion.style.min,max:e.headOverlays.complexion.style.max,defaultValue:n.headOverlays.complexion.style,clientValue:t.headOverlays.complexion.style,onChange:x=>o("complexion","style",x)})]}),z(re,{title:s.headOverlays.sunDamage,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.sunDamage.opacity.min,max:e.headOverlays.sunDamage.opacity.max,factor:e.headOverlays.sunDamage.opacity.factor,defaultValue:n.headOverlays.sunDamage.opacity,clientValue:t.headOverlays.sunDamage.opacity,onChange:x=>o("sunDamage","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.sunDamage.style.min,max:e.headOverlays.sunDamage.style.max,defaultValue:n.headOverlays.sunDamage.style,clientValue:t.headOverlays.sunDamage.style,onChange:x=>o("sunDamage","style",x)})]}),z(re,{title:s.headOverlays.moleAndFreckles,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.moleAndFreckles.opacity.min,max:e.headOverlays.moleAndFreckles.opacity.max,factor:e.headOverlays.moleAndFreckles.opacity.factor,defaultValue:n.headOverlays.moleAndFreckles.opacity,clientValue:t.headOverlays.moleAndFreckles.opacity,onChange:x=>o("moleAndFreckles","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.moleAndFreckles.style.min,max:e.headOverlays.moleAndFreckles.style.max,defaultValue:n.headOverlays.moleAndFreckles.style,clientValue:t.headOverlays.moleAndFreckles.style,onChange:x=>o("moleAndFreckles","style",x)})]}),z(re,{title:s.headOverlays.chestHair,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.chestHair.opacity.min,max:e.headOverlays.chestHair.opacity.max,factor:e.headOverlays.chestHair.opacity.factor,defaultValue:n.headOverlays.chestHair.opacity,clientValue:t.headOverlays.chestHair.opacity,onChange:x=>o("chestHair","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.chestHair.style.min,max:e.headOverlays.chestHair.style.max,defaultValue:n.headOverlays.chestHair.style,clientValue:t.headOverlays.chestHair.style,onChange:x=>o("chestHair","style",x)}),y(Jt,{title:s.headOverlays.color,colors:(k=e.headOverlays.chestHair.color)==null?void 0:k.items,defaultValue:n.headOverlays.chestHair.color,clientValue:t.headOverlays.chestHair.color,onChange:x=>o("chestHair","color",x)})]}),z(re,{title:s.headOverlays.bodyBlemishes,children:[y(pe,{title:s.headOverlays.opacity,min:e.headOverlays.bodyBlemishes.opacity.min,max:e.headOverlays.bodyBlemishes.opacity.max,factor:e.headOverlays.bodyBlemishes.opacity.factor,defaultValue:n.headOverlays.bodyBlemishes.opacity,clientValue:t.headOverlays.bodyBlemishes.opacity,onChange:x=>o("bodyBlemishes","opacity",x)}),y(K,{title:s.headOverlays.style,min:e.headOverlays.bodyBlemishes.style.min,max:e.headOverlays.bodyBlemishes.style.max,defaultValue:n.headOverlays.bodyBlemishes.style,clientValue:t.headOverlays.bodyBlemishes.style,onChange:x=>o("bodyBlemishes","style",x)})]})]})]})},bw=_e.div` height: 100vh; width: 100vw; @@ -333,7 +333,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho align-items: flex-start; justify-content: flex-start; overflow: hidden; -`,bw=_e.div` +`,Ew=_e.div` height: 100%; width: 20%; max-width: 400px; @@ -375,7 +375,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin-left: 10px; } } -`,Ow=({settings:e,data:t,storedData:n,handleComponentDrawableChange:r,handleComponentTextureChange:i})=>{const{locales:o}=fn(),a=e.reduce((s,{component_id:c,drawable:d,texture:h,blacklist:g})=>R(I({},s),{[c]:{drawable:d,texture:h,blacklist:g}}),{}),l=t.reduce((s,{component_id:c,drawable:d,texture:h})=>R(I({},s),{[c]:{drawable:d,texture:h}}),{}),u=n.reduce((s,{component_id:c,drawable:d,texture:h})=>R(I({},s),{[c]:{drawable:d,texture:h}}),{});return o?z(Zn,{title:o.components.title,children:[y(re,{title:o.components.mask,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[1].drawable.min,max:a[1].drawable.max,blacklisted:a[1].blacklist.drawables,defaultValue:l[1].drawable,clientValue:u[1].drawable,onChange:s=>r(1,s)}),y(K,{title:o.components.texture,min:a[1].texture.min,max:a[1].texture.max,blacklisted:a[1].blacklist.textures,defaultValue:l[1].texture,clientValue:u[1].texture,onChange:s=>i(1,s)})]})}),y(re,{title:o.components.scarfAndChains,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[7].drawable.min,max:a[7].drawable.max,blacklisted:a[7].blacklist.drawables,defaultValue:l[7].drawable,clientValue:u[7].drawable,onChange:s=>r(7,s)}),y(K,{title:o.components.texture,min:a[7].texture.min,max:a[7].texture.max,blacklisted:a[7].blacklist.textures,defaultValue:l[7].texture,clientValue:u[7].texture,onChange:s=>i(7,s)})]})}),y(re,{title:o.components.jackets,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[11].drawable.min,max:a[11].drawable.max,blacklisted:a[11].blacklist.drawables,defaultValue:l[11].drawable,clientValue:u[11].drawable,onChange:s=>r(11,s)}),y(K,{title:o.components.texture,min:a[11].texture.min,max:a[11].texture.max,blacklisted:a[11].blacklist.textures,defaultValue:l[11].texture,clientValue:u[11].texture,onChange:s=>i(11,s)})]})}),y(re,{title:o.components.shirt,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[8].drawable.min,max:a[8].drawable.max,blacklisted:a[8].blacklist.drawables,defaultValue:l[8].drawable,clientValue:u[8].drawable,onChange:s=>r(8,s)}),y(K,{title:o.components.texture,min:a[8].texture.min,max:a[8].texture.max,blacklisted:a[8].blacklist.textures,defaultValue:l[8].texture,clientValue:u[8].texture,onChange:s=>i(8,s)})]})}),y(re,{title:o.components.bodyArmor,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[9].drawable.min,max:a[9].drawable.max,blacklisted:a[9].blacklist.drawables,defaultValue:l[9].drawable,clientValue:u[9].drawable,onChange:s=>r(9,s)}),y(K,{title:o.components.texture,min:a[9].texture.min,max:a[9].texture.max,blacklisted:a[9].blacklist.textures,defaultValue:l[9].texture,clientValue:u[9].texture,onChange:s=>i(9,s)})]})}),y(re,{title:o.components.bags,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[5].drawable.min,max:a[5].drawable.max,blacklisted:a[5].blacklist.drawables,defaultValue:l[5].drawable,clientValue:u[5].drawable,onChange:s=>r(5,s)}),y(K,{title:o.components.texture,min:a[5].texture.min,max:a[5].texture.max,blacklisted:a[5].blacklist.textures,defaultValue:l[5].texture,clientValue:u[5].texture,onChange:s=>i(5,s)})]})}),y(re,{title:o.components.upperBody,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[3].drawable.min,max:a[3].drawable.max,blacklisted:a[3].blacklist.drawables,defaultValue:l[3].drawable,clientValue:u[3].drawable,onChange:s=>r(3,s)}),y(K,{title:o.components.texture,min:a[3].texture.min,max:a[3].texture.max,blacklisted:a[3].blacklist.textures,defaultValue:l[3].texture,clientValue:u[3].texture,onChange:s=>i(3,s)})]})}),y(re,{title:o.components.lowerBody,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[4].drawable.min,max:a[4].drawable.max,blacklisted:a[4].blacklist.drawables,defaultValue:l[4].drawable,clientValue:u[4].drawable,onChange:s=>r(4,s)}),y(K,{title:o.components.texture,min:a[4].texture.min,max:a[4].texture.max,blacklisted:a[4].blacklist.textures,defaultValue:l[4].texture,clientValue:u[4].texture,onChange:s=>i(4,s)})]})}),y(re,{title:o.components.shoes,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[6].drawable.min,max:a[6].drawable.max,blacklisted:a[6].blacklist.drawables,defaultValue:l[6].drawable,clientValue:u[6].drawable,onChange:s=>r(6,s)}),y(K,{title:o.components.texture,min:a[6].texture.min,max:a[6].texture.max,blacklisted:a[6].blacklist.textures,defaultValue:l[6].texture,clientValue:u[6].texture,onChange:s=>i(6,s)})]})}),y(re,{title:o.components.decals,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[10].drawable.min,max:a[10].drawable.max,blacklisted:a[10].blacklist.drawables,defaultValue:l[10].drawable,clientValue:u[10].drawable,onChange:s=>r(10,s)}),y(K,{title:o.components.texture,min:a[10].texture.min,max:a[10].texture.max,blacklisted:a[10].blacklist.textures,defaultValue:l[10].texture,clientValue:u[10].texture,onChange:s=>i(10,s)})]})})]}):null},Pw=({settings:e,data:t,storedData:n,handlePropDrawableChange:r,handlePropTextureChange:i})=>{const{locales:o}=fn(),a=e.reduce((s,{prop_id:c,drawable:d,texture:h})=>R(I({},s),{[c]:{drawable:d,texture:h}}),{}),l=t.reduce((s,{prop_id:c,drawable:d,texture:h})=>R(I({},s),{[c]:{drawable:d,texture:h}}),{}),u=n.reduce((s,{prop_id:c,drawable:d,texture:h})=>R(I({},s),{[c]:{drawable:d,texture:h}}),{});return o?z(Zn,{title:o.props.title,children:[y(re,{title:o.props.hats,children:z(Qe,{children:[y(K,{title:o.props.drawable,min:a[0].drawable.min,max:a[0].drawable.max,defaultValue:l[0].drawable,clientValue:u[0].drawable,onChange:s=>r(0,s)}),y(K,{title:o.props.texture,min:a[0].texture.min,max:a[0].texture.max,defaultValue:l[0].texture,clientValue:u[0].texture,onChange:s=>i(0,s)})]})}),y(re,{title:o.props.glasses,children:z(Qe,{children:[y(K,{title:o.props.drawable,min:a[1].drawable.min,max:a[1].drawable.max,defaultValue:l[1].drawable,clientValue:u[1].drawable,onChange:s=>r(1,s)}),y(K,{title:o.props.texture,min:a[1].texture.min,max:a[1].texture.max,defaultValue:l[1].texture,clientValue:u[1].texture,onChange:s=>i(1,s)})]})}),y(re,{title:o.props.ear,children:z(Qe,{children:[y(K,{title:o.props.drawable,min:a[2].drawable.min,max:a[2].drawable.max,defaultValue:l[2].drawable,clientValue:u[2].drawable,onChange:s=>r(2,s)}),y(K,{title:o.props.texture,min:a[2].texture.min,max:a[2].texture.max,defaultValue:l[2].texture,clientValue:u[2].texture,onChange:s=>i(2,s)})]})}),y(re,{title:o.props.watches,children:z(Qe,{children:[y(K,{title:o.props.drawable,min:a[6].drawable.min,max:a[6].drawable.max,defaultValue:l[6].drawable,clientValue:u[6].drawable,onChange:s=>r(6,s)}),y(K,{title:o.props.texture,min:a[6].texture.min,max:a[6].texture.max,defaultValue:l[6].texture,clientValue:u[6].texture,onChange:s=>i(6,s)})]})}),y(re,{title:o.props.bracelets,children:z(Qe,{children:[y(K,{title:o.props.drawable,min:a[7].drawable.min,max:a[7].drawable.max,defaultValue:l[7].drawable,clientValue:u[7].drawable,onChange:s=>r(7,s)}),y(K,{title:o.props.texture,min:a[7].texture.min,max:a[7].texture.max,defaultValue:l[7].texture,clientValue:u[7].texture,onChange:s=>i(7,s)})]})})]}):null};function Aw(e){return qe({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M490 296.9C480.51 239.51 450.51 64 392.3 64c-14 0-26.49 5.93-37 14a58.21 58.21 0 0 1-70.58 0c-10.51-8-23-14-37-14-58.2 0-88.2 175.47-97.71 232.88C188.81 309.47 243.73 320 320 320s131.23-10.51 170-23.1zm142.9-37.18a16 16 0 0 0-19.75 1.5c-1 .9-101.27 90.78-293.16 90.78-190.82 0-292.22-89.94-293.24-90.84A16 16 0 0 0 1 278.53C1.73 280.55 78.32 480 320 480s318.27-199.45 319-201.47a16 16 0 0 0-6.09-18.81z"}}]})(e)}function Fw(e){return qe({tag:"svg",attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"}}]})(e)}function Vw(e){return qe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"}}]})(e)}function _w(e){return qe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"}}]})(e)}function Iw(e){return qe({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M192 160h32V32h-32c-35.35 0-64 28.65-64 64s28.65 64 64 64zM0 416c0 35.35 28.65 64 64 64h32V352H64c-35.35 0-64 28.65-64 64zm337.46-128c-34.91 0-76.16 13.12-104.73 32-24.79 16.38-44.52 32-104.73 32v128l57.53 15.97c26.21 7.28 53.01 13.12 80.31 15.05 32.69 2.31 65.6.67 97.58-6.2C472.9 481.3 512 429.22 512 384c0-64-84.18-96-174.54-96zM491.42 7.19C459.44.32 426.53-1.33 393.84.99c-27.3 1.93-54.1 7.77-80.31 15.04L256 32v128c60.2 0 79.94 15.62 104.73 32 28.57 18.88 69.82 32 104.73 32C555.82 224 640 192 640 128c0-45.22-39.1-97.3-148.58-120.81z"}}]})(e)}function Tw(e){return qe({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"}}]})(e)}function Mw(e){return qe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M214.66 311.01L288 256V96H128v176l-86.65 64.61c-39.4 29.56-53.86 84.42-29.21 127.06C30.39 495.25 63.27 512 96.08 512c20.03 0 40.25-6.25 57.52-19.2l21.86-16.39c-29.85-55.38-13.54-125.84 39.2-165.4zM288 32c0-11.05 3.07-21.3 8.02-30.38C293.4.92 290.85 0 288 0H160c-17.67 0-32 14.33-32 32v32h160V32zM480 0H352c-17.67 0-32 14.33-32 32v32h192V32c0-17.67-14.33-32-32-32zM320 272l-86.13 64.61c-39.4 29.56-53.86 84.42-29.21 127.06 18.25 31.58 50.61 48.33 83.42 48.33 20.03 0 40.25-6.25 57.52-19.2l115.2-86.4A127.997 127.997 0 0 0 512 304V96H320v176z"}}]})(e)}function Rw(e){return qe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"}}]})(e)}function Lw(e){return qe({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}function zw(e){return qe({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M631.2 96.5L436.5 0C416.4 27.8 371.9 47.2 320 47.2S223.6 27.8 203.5 0L8.8 96.5c-7.9 4-11.1 13.6-7.2 21.5l57.2 114.5c4 7.9 13.6 11.1 21.5 7.2l56.6-27.7c10.6-5.2 23 2.5 23 14.4V480c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V226.3c0-11.8 12.4-19.6 23-14.4l56.6 27.7c7.9 4 17.5.8 21.5-7.2L638.3 118c4-7.9.8-17.6-7.1-21.5z"}}]})(e)}function Dw(e){return qe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"}}]})(e)}function Nw(e){return qe({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"}}]})(e)}function $w(e){return qe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M133.3 33.41L77.89 47.25 34.6 148.3l33.29 22.2 27.46-54.9 17.05 4.9-15.07 150.1H245.2l9.2-87.9.9-8.1h4.5l-5.4-54.1 17.1-4.9 27.4 54.9 33.3-22.2-43.3-101.05-55.4-13.84c-5.5 3.87-12.2 6.21-19.5 7.95-9.4 2.21-20 3.24-30.6 3.24-10.6 0-21.2-1.03-30.6-3.24-7.3-1.74-14-4.07-19.5-7.95zM271.5 192.6l-1.5 14h178.8l-1.5-14zm-3.4 32l-26.7 254h62.7l46.5-216.9h17.6l46.5 216.9h62.7l-26.7-254z"}}]})(e)}const Bw=_e.div` +`,Ow=({settings:e,data:t,storedData:n,handleComponentDrawableChange:r,handleComponentTextureChange:i})=>{const{locales:o}=fn(),a=e.reduce((u,{component_id:c,drawable:d,texture:h,blacklist:g})=>R(I({},u),{[c]:{drawable:d,texture:h,blacklist:g}}),{}),l=t.reduce((u,{component_id:c,drawable:d,texture:h})=>R(I({},u),{[c]:{drawable:d,texture:h}}),{}),s=n.reduce((u,{component_id:c,drawable:d,texture:h})=>R(I({},u),{[c]:{drawable:d,texture:h}}),{});return o?z(Zn,{title:o.components.title,children:[y(re,{title:o.components.mask,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[1].drawable.min,max:a[1].drawable.max,blacklisted:a[1].blacklist.drawables,defaultValue:l[1].drawable,clientValue:s[1].drawable,onChange:u=>r(1,u)}),y(K,{title:o.components.texture,min:a[1].texture.min,max:a[1].texture.max,blacklisted:a[1].blacklist.textures,defaultValue:l[1].texture,clientValue:s[1].texture,onChange:u=>i(1,u)})]})}),y(re,{title:o.components.scarfAndChains,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[7].drawable.min,max:a[7].drawable.max,blacklisted:a[7].blacklist.drawables,defaultValue:l[7].drawable,clientValue:s[7].drawable,onChange:u=>r(7,u)}),y(K,{title:o.components.texture,min:a[7].texture.min,max:a[7].texture.max,blacklisted:a[7].blacklist.textures,defaultValue:l[7].texture,clientValue:s[7].texture,onChange:u=>i(7,u)})]})}),y(re,{title:o.components.jackets,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[11].drawable.min,max:a[11].drawable.max,blacklisted:a[11].blacklist.drawables,defaultValue:l[11].drawable,clientValue:s[11].drawable,onChange:u=>r(11,u)}),y(K,{title:o.components.texture,min:a[11].texture.min,max:a[11].texture.max,blacklisted:a[11].blacklist.textures,defaultValue:l[11].texture,clientValue:s[11].texture,onChange:u=>i(11,u)})]})}),y(re,{title:o.components.shirt,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[8].drawable.min,max:a[8].drawable.max,blacklisted:a[8].blacklist.drawables,defaultValue:l[8].drawable,clientValue:s[8].drawable,onChange:u=>r(8,u)}),y(K,{title:o.components.texture,min:a[8].texture.min,max:a[8].texture.max,blacklisted:a[8].blacklist.textures,defaultValue:l[8].texture,clientValue:s[8].texture,onChange:u=>i(8,u)})]})}),y(re,{title:o.components.bodyArmor,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[9].drawable.min,max:a[9].drawable.max,blacklisted:a[9].blacklist.drawables,defaultValue:l[9].drawable,clientValue:s[9].drawable,onChange:u=>r(9,u)}),y(K,{title:o.components.texture,min:a[9].texture.min,max:a[9].texture.max,blacklisted:a[9].blacklist.textures,defaultValue:l[9].texture,clientValue:s[9].texture,onChange:u=>i(9,u)})]})}),y(re,{title:o.components.bags,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[5].drawable.min,max:a[5].drawable.max,blacklisted:a[5].blacklist.drawables,defaultValue:l[5].drawable,clientValue:s[5].drawable,onChange:u=>r(5,u)}),y(K,{title:o.components.texture,min:a[5].texture.min,max:a[5].texture.max,blacklisted:a[5].blacklist.textures,defaultValue:l[5].texture,clientValue:s[5].texture,onChange:u=>i(5,u)})]})}),y(re,{title:o.components.upperBody,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[3].drawable.min,max:a[3].drawable.max,blacklisted:a[3].blacklist.drawables,defaultValue:l[3].drawable,clientValue:s[3].drawable,onChange:u=>r(3,u)}),y(K,{title:o.components.texture,min:a[3].texture.min,max:a[3].texture.max,blacklisted:a[3].blacklist.textures,defaultValue:l[3].texture,clientValue:s[3].texture,onChange:u=>i(3,u)})]})}),y(re,{title:o.components.lowerBody,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[4].drawable.min,max:a[4].drawable.max,blacklisted:a[4].blacklist.drawables,defaultValue:l[4].drawable,clientValue:s[4].drawable,onChange:u=>r(4,u)}),y(K,{title:o.components.texture,min:a[4].texture.min,max:a[4].texture.max,blacklisted:a[4].blacklist.textures,defaultValue:l[4].texture,clientValue:s[4].texture,onChange:u=>i(4,u)})]})}),y(re,{title:o.components.shoes,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[6].drawable.min,max:a[6].drawable.max,blacklisted:a[6].blacklist.drawables,defaultValue:l[6].drawable,clientValue:s[6].drawable,onChange:u=>r(6,u)}),y(K,{title:o.components.texture,min:a[6].texture.min,max:a[6].texture.max,blacklisted:a[6].blacklist.textures,defaultValue:l[6].texture,clientValue:s[6].texture,onChange:u=>i(6,u)})]})}),y(re,{title:o.components.decals,children:z(Qe,{children:[y(K,{title:o.components.drawable,min:a[10].drawable.min,max:a[10].drawable.max,blacklisted:a[10].blacklist.drawables,defaultValue:l[10].drawable,clientValue:s[10].drawable,onChange:u=>r(10,u)}),y(K,{title:o.components.texture,min:a[10].texture.min,max:a[10].texture.max,blacklisted:a[10].blacklist.textures,defaultValue:l[10].texture,clientValue:s[10].texture,onChange:u=>i(10,u)})]})})]}):null},Pw=({settings:e,data:t,storedData:n,handlePropDrawableChange:r,handlePropTextureChange:i})=>{const{locales:o}=fn(),a=e.reduce((u,{prop_id:c,drawable:d,texture:h,blacklist:g})=>R(I({},u),{[c]:{drawable:d,texture:h,blacklist:g}}),{}),l=t.reduce((u,{prop_id:c,drawable:d,texture:h})=>R(I({},u),{[c]:{drawable:d,texture:h}}),{}),s=n.reduce((u,{prop_id:c,drawable:d,texture:h})=>R(I({},u),{[c]:{drawable:d,texture:h}}),{});return o?z(Zn,{title:o.props.title,children:[y(re,{title:o.props.hats,children:z(Qe,{children:[y(K,{title:o.props.drawable,min:a[0].drawable.min,max:a[0].drawable.max,defaultValue:l[0].drawable,clientValue:s[0].drawable,blacklisted:a[0].blacklist.drawables,onChange:u=>r(0,u)}),y(K,{title:o.props.texture,min:a[0].texture.min,max:a[0].texture.max,defaultValue:l[0].texture,clientValue:s[0].texture,blacklisted:a[0].blacklist.textures,onChange:u=>i(0,u)})]})}),y(re,{title:o.props.glasses,children:z(Qe,{children:[y(K,{title:o.props.drawable,min:a[1].drawable.min,max:a[1].drawable.max,defaultValue:l[1].drawable,clientValue:s[1].drawable,blacklisted:a[1].blacklist.drawables,onChange:u=>r(1,u)}),y(K,{title:o.props.texture,min:a[1].texture.min,max:a[1].texture.max,defaultValue:l[1].texture,clientValue:s[1].texture,blacklisted:a[1].blacklist.textures,onChange:u=>i(1,u)})]})}),y(re,{title:o.props.ear,children:z(Qe,{children:[y(K,{title:o.props.drawable,min:a[2].drawable.min,max:a[2].drawable.max,defaultValue:l[2].drawable,clientValue:s[2].drawable,blacklisted:a[2].blacklist.drawables,onChange:u=>r(2,u)}),y(K,{title:o.props.texture,min:a[2].texture.min,max:a[2].texture.max,defaultValue:l[2].texture,clientValue:s[2].texture,blacklisted:a[2].blacklist.textures,onChange:u=>i(2,u)})]})}),y(re,{title:o.props.watches,children:z(Qe,{children:[y(K,{title:o.props.drawable,min:a[6].drawable.min,max:a[6].drawable.max,defaultValue:l[6].drawable,clientValue:s[6].drawable,blacklisted:a[6].blacklist.drawables,onChange:u=>r(6,u)}),y(K,{title:o.props.texture,min:a[6].texture.min,max:a[6].texture.max,defaultValue:l[6].texture,clientValue:s[6].texture,blacklisted:a[6].blacklist.textures,onChange:u=>i(6,u)})]})}),y(re,{title:o.props.bracelets,children:z(Qe,{children:[y(K,{title:o.props.drawable,min:a[7].drawable.min,max:a[7].drawable.max,defaultValue:l[7].drawable,clientValue:s[7].drawable,blacklisted:a[7].blacklist.drawables,onChange:u=>r(7,u)}),y(K,{title:o.props.texture,min:a[7].texture.min,max:a[7].texture.max,defaultValue:l[7].texture,clientValue:s[7].texture,blacklisted:a[7].blacklist.textures,onChange:u=>i(7,u)})]})})]}):null};function Aw(e){return qe({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M490 296.9C480.51 239.51 450.51 64 392.3 64c-14 0-26.49 5.93-37 14a58.21 58.21 0 0 1-70.58 0c-10.51-8-23-14-37-14-58.2 0-88.2 175.47-97.71 232.88C188.81 309.47 243.73 320 320 320s131.23-10.51 170-23.1zm142.9-37.18a16 16 0 0 0-19.75 1.5c-1 .9-101.27 90.78-293.16 90.78-190.82 0-292.22-89.94-293.24-90.84A16 16 0 0 0 1 278.53C1.73 280.55 78.32 480 320 480s318.27-199.45 319-201.47a16 16 0 0 0-6.09-18.81z"}}]})(e)}function Fw(e){return qe({tag:"svg",attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"}}]})(e)}function Vw(e){return qe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"}}]})(e)}function _w(e){return qe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"}}]})(e)}function Iw(e){return qe({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M192 160h32V32h-32c-35.35 0-64 28.65-64 64s28.65 64 64 64zM0 416c0 35.35 28.65 64 64 64h32V352H64c-35.35 0-64 28.65-64 64zm337.46-128c-34.91 0-76.16 13.12-104.73 32-24.79 16.38-44.52 32-104.73 32v128l57.53 15.97c26.21 7.28 53.01 13.12 80.31 15.05 32.69 2.31 65.6.67 97.58-6.2C472.9 481.3 512 429.22 512 384c0-64-84.18-96-174.54-96zM491.42 7.19C459.44.32 426.53-1.33 393.84.99c-27.3 1.93-54.1 7.77-80.31 15.04L256 32v128c60.2 0 79.94 15.62 104.73 32 28.57 18.88 69.82 32 104.73 32C555.82 224 640 192 640 128c0-45.22-39.1-97.3-148.58-120.81z"}}]})(e)}function Tw(e){return qe({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"}}]})(e)}function Mw(e){return qe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M214.66 311.01L288 256V96H128v176l-86.65 64.61c-39.4 29.56-53.86 84.42-29.21 127.06C30.39 495.25 63.27 512 96.08 512c20.03 0 40.25-6.25 57.52-19.2l21.86-16.39c-29.85-55.38-13.54-125.84 39.2-165.4zM288 32c0-11.05 3.07-21.3 8.02-30.38C293.4.92 290.85 0 288 0H160c-17.67 0-32 14.33-32 32v32h160V32zM480 0H352c-17.67 0-32 14.33-32 32v32h192V32c0-17.67-14.33-32-32-32zM320 272l-86.13 64.61c-39.4 29.56-53.86 84.42-29.21 127.06 18.25 31.58 50.61 48.33 83.42 48.33 20.03 0 40.25-6.25 57.52-19.2l115.2-86.4A127.997 127.997 0 0 0 512 304V96H320v176z"}}]})(e)}function Rw(e){return qe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"}}]})(e)}function Lw(e){return qe({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}function zw(e){return qe({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M631.2 96.5L436.5 0C416.4 27.8 371.9 47.2 320 47.2S223.6 27.8 203.5 0L8.8 96.5c-7.9 4-11.1 13.6-7.2 21.5l57.2 114.5c4 7.9 13.6 11.1 21.5 7.2l56.6-27.7c10.6-5.2 23 2.5 23 14.4V480c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V226.3c0-11.8 12.4-19.6 23-14.4l56.6 27.7c7.9 4 17.5.8 21.5-7.2L638.3 118c4-7.9.8-17.6-7.1-21.5z"}}]})(e)}function Dw(e){return qe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"}}]})(e)}function Nw(e){return qe({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"}}]})(e)}function $w(e){return qe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M133.3 33.41L77.89 47.25 34.6 148.3l33.29 22.2 27.46-54.9 17.05 4.9-15.07 150.1H245.2l9.2-87.9.9-8.1h4.5l-5.4-54.1 17.1-4.9 27.4 54.9 33.3-22.2-43.3-101.05-55.4-13.84c-5.5 3.87-12.2 6.21-19.5 7.95-9.4 2.21-20 3.24-30.6 3.24-10.6 0-21.2-1.03-30.6-3.24-7.3-1.74-14-4.07-19.5-7.95zM271.5 192.6l-1.5 14h178.8l-1.5-14zm-3.4 32l-26.7 254h62.7l46.5-216.9h17.6l46.5 216.9h62.7l-26.7-254z"}}]})(e)}const Bw=_e.div` height: 100vh; display: flex; @@ -502,7 +502,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin-left: 10px; } } -`,hn=({children:e,active:t,onClick:n})=>y(jw,{type:"button",active:t,onClick:n,children:e}),cd=({children:e,icon:t})=>{const[n,r]=E.exports.useState(!0),[i,o]=E.exports.useState(0),a=E.exports.useRef(null);E.exports.useEffect(()=>{a.current&&(o(a.current.offsetWidth),r(!1))},[a,o]);const l=E.exports.useCallback(()=>{r(!0)},[r]),u=E.exports.useCallback(()=>{r(!1)},[r]);return z(Hw,{width:n?i:0,onMouseEnter:l,onMouseLeave:u,children:[y(Uw,{children:t}),y(Ww,{ref:a,children:e})]})},Gw=({camera:e,rotate:t,clothes:n,handleSetClothes:r,handleSetCamera:i,handleTurnAround:o,handleRotateLeft:a,handleRotateRight:l,handleExit:u,handleSave:s})=>z(Bw,{children:[z(cd,{icon:y(Nw,{size:20}),children:[y(hn,{active:e.head,onClick:()=>i("head"),children:y(Tw,{size:20})}),y(hn,{active:e.body,onClick:()=>i("body"),children:y(Fw,{size:20})}),y(hn,{active:e.bottom,onClick:()=>i("bottom"),children:y(Iw,{size:20})})]}),z(cd,{icon:y($w,{size:20}),children:[y(hn,{active:n.head,onClick:()=>r("head"),children:y(Aw,{size:20})}),y(hn,{active:n.body,onClick:()=>r("body"),children:y(zw,{size:20})}),y(hn,{active:n.bottom,onClick:()=>r("bottom"),children:y(Mw,{size:20})})]}),y(zl,{onClick:o,children:y(Rw,{size:20})}),y(hn,{active:t.left,onClick:a,children:y(Vw,{size:20})}),y(hn,{active:t.right,onClick:l,children:y(Dw,{size:20})}),y(zl,{onClick:s,children:y(_w,{size:20})}),y(zl,{onClick:u,children:y(Lw,{size:20})})]}),Qw=_e.div` +`,hn=({children:e,active:t,onClick:n})=>y(jw,{type:"button",active:t,onClick:n,children:e}),cd=({children:e,icon:t})=>{const[n,r]=b.exports.useState(!0),[i,o]=b.exports.useState(0),a=b.exports.useRef(null);b.exports.useEffect(()=>{a.current&&(o(a.current.offsetWidth),r(!1))},[a,o]);const l=b.exports.useCallback(()=>{r(!0)},[r]),s=b.exports.useCallback(()=>{r(!1)},[r]);return z(Hw,{width:n?i:0,onMouseEnter:l,onMouseLeave:s,children:[y(Uw,{children:t}),y(Ww,{ref:a,children:e})]})},Gw=({camera:e,rotate:t,clothes:n,handleSetClothes:r,handleSetCamera:i,handleTurnAround:o,handleRotateLeft:a,handleRotateRight:l,handleExit:s,handleSave:u})=>z(Bw,{children:[z(cd,{icon:y(Nw,{size:20}),children:[y(hn,{active:e.head,onClick:()=>i("head"),children:y(Tw,{size:20})}),y(hn,{active:e.body,onClick:()=>i("body"),children:y(Fw,{size:20})}),y(hn,{active:e.bottom,onClick:()=>i("bottom"),children:y(Iw,{size:20})})]}),z(cd,{icon:y($w,{size:20}),children:[y(hn,{active:n.head,onClick:()=>r("head"),children:y(Aw,{size:20})}),y(hn,{active:n.body,onClick:()=>r("body"),children:y(zw,{size:20})}),y(hn,{active:n.bottom,onClick:()=>r("bottom"),children:y(Mw,{size:20})})]}),y(zl,{onClick:o,children:y(Rw,{size:20})}),y(hn,{active:t.left,onClick:a,children:y(Vw,{size:20})}),y(hn,{active:t.right,onClick:l,children:y(Dw,{size:20})}),y(zl,{onClick:u,children:y(_w,{size:20})}),y(zl,{onClick:s,children:y(Lw,{size:20})})]}),Qw=_e.div` width: 100vw; height: 100vh; @@ -579,7 +579,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho gap: 5px; font-weight: 200; cursor: pointer; -`,Wu=({children:e,onClick:t,margin:n,width:r})=>y(Kw,{onClick:t,margin:n,width:r,children:e}),Xw=_e.div` +`,Ws=({children:e,onClick:t,margin:n,width:r})=>y(Kw,{onClick:t,margin:n,width:r,children:e}),Xw=_e.div` min-width: 0; display: flex; @@ -592,4 +592,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: flex; justify-content: flex-end; } -`,Zw={control:e=>R(I({},e),{marginTop:"10px",background:"rgba(23, 23, 23, 0.8)",fontSize:"14px",color:"#fff",border:"none",outline:"none",boxShadow:"none"}),placeholder:e=>R(I({},e),{fontSize:"14px",color:"#fff"}),input:e=>R(I({},e),{fontSize:"14px",color:"#fff"}),singleValue:e=>R(I({},e),{fontSize:"14px",color:"#fff",border:"none",outline:"none"}),indicatorContainer:e=>R(I({},e),{borderColor:"#fff",color:"#fff"}),dropdownIndicator:e=>R(I({},e),{borderColor:"#fff",color:"#fff"}),menuPortal:e=>R(I({},e),{color:"#fff",zIndex:9999}),menu:e=>R(I({},e),{background:"rgba(23, 23, 23, 0.8)",position:"absolute",marginBottom:"10px",borderRadius:"4px"}),menuList:e=>R(I({},e),{background:"rgba(23, 23, 23, 0.8)",borderRadius:"4px","&::-webkit-scrollbar":{width:"10px"},"&::-webkit-scrollbar-track":{background:"none"},"&::-webkit-scrollbar-thumb":{borderRadius:"4px",background:"#fff"}}),option:(e,{isFocused:t})=>R(I({},e),{borderRadius:"4px",width:"97%",marginLeft:"auto",marginRight:"auto",background:t?"rgba(255, 255, 255, 0.1)":"none"})},qw=({items:e,tattoosApplied:t,handleApplyTattoo:n,handlePreviewTattoo:r,handleDeleteTattoo:i})=>{const o=E.exports.useRef(null),[a,l]=E.exports.useState(e[0]),{label:u}=a,{locales:s}=fn(),c=(g,{action:v})=>{v==="select-option"&&(r(g.value),l(g.value))},d=()=>{setTimeout(()=>{const g=document.getElementsByClassName("TattooDropdown"+e[0].zone+"__option--is-selected")[0];g&&g.scrollIntoView({behavior:"auto",block:"start",inline:"nearest"})},100)},h=E.exports.useCallback(()=>{if(!t)return!1;const{name:g}=a;for(let v=0;v({value:g,label:g.label})),value:{value:a,label:u},onChange:c,onMenuOpen:d,className:"TattooDropdown"+e[0].zone,classNamePrefix:"TattooDropdown"+e[0].zone,menuPortalTarget:document.body,menuShouldScrollIntoView:!0}),y("section",{children:h?y(Wu,{onClick:()=>i(a),children:s.tattoos.delete}):y(Wu,{onClick:()=>n(a),children:s.tattoos.apply})})]}):null},Jw=({settings:e,data:t,handleApplyTattoo:n,handlePreviewTattoo:r,handleDeleteTattoo:i,handleClearTattoos:o})=>{const{locales:a}=fn(),{items:l}=e,u=Object.keys(l);return a?z(Zn,{title:a.tattoos.title,children:[u.map(s=>{var c;return s!=="ZONE_HAIR"&&y(re,{title:a.tattoos.items[s],children:y(Qe,{children:y(qw,{handlePreviewTattoo:r,handleApplyTattoo:n,handleDeleteTattoo:i,items:l[s],tattoosApplied:(c=t[s])!=null?c:null})})},s)}),y(re,{children:y(Qe,{children:y(Wu,{onClick:()=>o(),width:"100%",children:a.tattoos.deleteAll})})})]}):null},eS=()=>{const[e,t]=E.exports.useState(),[n,r]=E.exports.useState(),[i,o]=E.exports.useState(),[a,l]=E.exports.useState(),[u,s]=E.exports.useState(Al),[c,d]=E.exports.useState(Fl),[h,g]=E.exports.useState(ly),[v,w]=E.exports.useState(!1),[S,p]=E.exports.useState(!1),{display:f,setDisplay:m,locales:k,setLocales:x}=fn(),P=Ol(f.appearance,null,{from:{transform:"translateX(-50px)",opacity:0},enter:{transform:"translateY(0)",opacity:1},leave:{transform:"translateX(-50px)",opacity:0}}),b=Ol(v,null,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}}),A=Ol(S,null,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}}),j=E.exports.useCallback(()=>{ve.post("appearance_turn_around")},[]),D=E.exports.useCallback(_=>{g(R(I({},h),{[_]:!h[_]})),h[_]?ve.post("appearance_wear_clothes",{data:n,key:_}):ve.post("appearance_remove_clothes",_)},[n,h,g]),W=E.exports.useCallback(_=>{s(R(I({},Al),{[_]:!u[_]})),d(Fl),u[_]?ve.post("appearance_set_camera","default"):ve.post("appearance_set_camera",_)},[u,s,d]),G=E.exports.useCallback(()=>{d({left:!c.left,right:!1}),c.left?ve.post("appearance_set_camera","current"):ve.post("appearance_rotate_camera","left")},[d,c]),ie=E.exports.useCallback(()=>{d({left:!1,right:!c.right}),c.right?ve.post("appearance_set_camera","current"):ve.post("appearance_rotate_camera","right")},[d,c]),ce=E.exports.useCallback(()=>{w(!0)},[w]),ne=E.exports.useCallback(()=>{p(!0)},[p]),te=E.exports.useCallback(async _=>{_&&await ve.post("appearance_save",n),w(!1)},[w,n]),q=E.exports.useCallback(async _=>{_&&await ve.post("appearance_exit"),p(!1)},[p]),F=E.exports.useCallback(async _=>{const{appearanceSettings:B,appearanceData:L}=await ve.post("appearance_change_model",_);l(B),r(L)},[r,l]),$=E.exports.useCallback((_,B)=>{if(!n)return;const L=R(I({},n.headBlend),{[_]:B}),ue=R(I({},n),{headBlend:L});r(ue),ve.post("appearance_change_head_blend",L)},[n,r]),U=E.exports.useCallback((_,B)=>{if(!n)return;const L=R(I({},n.faceFeatures),{[_]:B}),ue=R(I({},n),{faceFeatures:L});r(ue),ve.post("appearance_change_face_feature",L)},[n,r]),ae=E.exports.useCallback(async(_,B)=>{if(!n||!a)return;const L=R(I({},n.hair),{[_]:B}),ue=R(I({},n),{hair:L});r(ue);const ke=await ve.post("appearance_change_hair",L),We=R(I({},a),{hair:ke});l(We)},[n,r,a,l]),O=E.exports.useCallback(async _=>{if(!n||!a)return;const{tattoos:B}=n,L=I({},B),ue=a.tattoos.items.ZONE_HAIR[_];L[ue.zone]||(L[ue.zone]=[]),L[ue.zone]=[ue],await ve.post("appearance_apply_tattoo",L),r(R(I({},n),{tattoos:L}))},[a,n,r]),T=E.exports.useCallback((_,B,L)=>{if(!n)return;const ue=R(I({},n.headOverlays[_]),{[B]:L}),ke=R(I({},n),{headOverlays:R(I({},n.headOverlays),{[_]:ue})});r(ke),ve.post("appearance_change_head_overlay",R(I({},n.headOverlays),{[_]:ue}))},[n,r]),N=E.exports.useCallback(_=>{if(!n)return;const B=R(I({},n),{eyeColor:_});r(B),ve.post("appearance_change_eye_color",_)},[n,r]),Q=E.exports.useCallback(async(_,B)=>{if(!n||!a)return;const L=n.components.find(Ce=>Ce.component_id===_);if(!L)return;const ue=R(I({},L),{drawable:B,texture:0}),We=[...n.components.filter(Ce=>Ce.component_id!==_),ue],Je=R(I({},n),{components:We});r(Je);const De=await ve.post("appearance_change_component",ue),xe=[...a.components.filter(Ce=>Ce.component_id!==_),De],It=R(I({},a),{components:xe});l(It)},[n,r,a,l]),C=E.exports.useCallback(async(_,B)=>{if(!n||!a)return;const L=n.components.find(Ce=>Ce.component_id===_);if(!L)return;const ue=R(I({},L),{texture:B}),We=[...n.components.filter(Ce=>Ce.component_id!==_),ue],Je=R(I({},n),{components:We});r(Je);const De=await ve.post("appearance_change_component",ue),xe=[...a.components.filter(Ce=>Ce.component_id!==_),De],It=R(I({},a),{components:xe});l(It)},[n,r,a,l]),ee=E.exports.useCallback(async(_,B)=>{if(!n||!a)return;const L=n.props.find(Ce=>Ce.prop_id===_);if(!L)return;const ue=R(I({},L),{drawable:B,texture:0}),We=[...n.props.filter(Ce=>Ce.prop_id!==_),ue],Je=R(I({},n),{props:We});r(Je);const De=await ve.post("appearance_change_prop",ue),xe=[...a.props.filter(Ce=>Ce.prop_id!==_),De],It=R(I({},a),{props:xe});l(It)},[n,r,a,l]),M=E.exports.useCallback(async(_,B)=>{if(!n||!a)return;const L=n.props.find(Ce=>Ce.prop_id===_);if(!L)return;const ue=R(I({},L),{texture:B}),We=[...n.props.filter(Ce=>Ce.prop_id!==_),ue],Je=R(I({},n),{props:We});r(Je);const De=await ve.post("appearance_change_prop",ue),xe=[...a.props.filter(Ce=>Ce.prop_id!==_),De],It=R(I({},a),{props:xe});l(It)},[n,r,a,l]),me=E.exports.useMemo(()=>{if(!!n)return n.model==="mp_m_freemode_01"||n.model==="mp_f_freemode_01"},[n]),fe=E.exports.useMemo(()=>{if(!!n)return n.model==="mp_m_freemode_01"},[n]),de=_=>{for(const B in _.items)_.items[B]=_.items[B].filter(L=>{if(fe&&L.hashMale!=="")return L;if(!fe&&L.hashFemale!=="")return L});return _},J=E.exports.useCallback(async _=>{if(!n)return;const{tattoos:B}=n,L=I({},B);L[_.zone]||(L[_.zone]=[]),L[_.zone].push(_),await ve.post("appearance_apply_tattoo",L),r(R(I({},n),{tattoos:L}))},[n,r]),Te=E.exports.useCallback(_=>{if(!n)return;const{tattoos:B}=n;ve.post("appearance_preview_tattoo",{data:B,tattoo:_})},[n]),ze=E.exports.useCallback(async _=>{if(!n)return;const{tattoos:B}=n,L=B;L[_.zone]=L[_.zone].filter(ue=>ue.name!==_.name),await ve.post("appearance_delete_tattoo",L),r(R(I({},n),{tattoos:L}))},[n,r]),le=E.exports.useCallback(async()=>{if(!n)return;const{tattoos:_}=n,B=I({},_);for(var L in B)L!=="ZONE_HAIR"&&(B[L]=[]);await ve.post("appearance_delete_tattoo",B),r(R(I({},n),{tattoos:B}))},[n,r]);return E.exports.useEffect(()=>{ve.post("appearance_get_locales").then(_=>x(JSON.parse(_))),ve.onEvent("appearance_display",()=>{m({appearance:!0})}),ve.onEvent("appearance_hide",()=>{m({appearance:!1}),r(Lf),o(Lf),l(ay),s(Al),d(Fl)})},[]),E.exports.useEffect(()=>{f.appearance&&(async()=>{const{config:_,appearanceSettings:B,appearanceData:L}=await ve.post("appearance_get_settings_and_data");t(_),l(B),o(L),r(L)})()},[f.appearance]),!f.appearance||!e||!a||!n||!i||!k?null:z(ea,{children:[P.map(({item:_,key:B,props:L})=>{var ue,ke,We,Je;return _&&y(Eo.div,{style:L,children:z(Ew,{children:[z(bw,{children:[e.ped&&y(vw,{settings:a.ped,storedData:i.model,data:n.model,handleModelChange:F}),a&&z(ea,{children:[me&&e.headBlend&&y(xw,{settings:a.headBlend,storedData:i.headBlend,data:n.headBlend,handleHeadBlendChange:$}),me&&e.faceFeatures&&y(ww,{settings:a.faceFeatures,storedData:i.faceFeatures,data:n.faceFeatures,handleFaceFeatureChange:U}),e.headOverlays&&y(Cw,{settings:{hair:a.hair,headOverlays:a.headOverlays,eyeColor:a.eyeColor,fade:a.tattoos.items.ZONE_HAIR},storedData:{hair:i.hair,headOverlays:i.headOverlays,eyeColor:i.eyeColor,fade:((ke=(ue=i.tattoos)==null?void 0:ue.ZONE_HAIR)==null?void 0:ke.length)>0?i.tattoos.ZONE_HAIR[0]:null},data:{hair:n.hair,headOverlays:n.headOverlays,eyeColor:n.eyeColor,fade:((Je=(We=n.tattoos)==null?void 0:We.ZONE_HAIR)==null?void 0:Je.length)>0?n.tattoos.ZONE_HAIR[0]:null},isPedFreemodeModel:me,handleHairChange:ae,handleHeadOverlayChange:T,handleEyeColorChange:N,handleChangeFade:O})]}),e.components&&y(Ow,{settings:a.components,data:n.components,storedData:i.components,handleComponentDrawableChange:Q,handleComponentTextureChange:C}),e.props&&y(Pw,{settings:a.props,data:n.props,storedData:i.props,handlePropDrawableChange:ee,handlePropTextureChange:M}),me&&e.tattoos&&y(Jw,{settings:de(a.tattoos),data:n.tattoos,handleApplyTattoo:J,handlePreviewTattoo:Te,handleDeleteTattoo:ze,handleClearTattoos:le})]}),y(Gw,{camera:u,rotate:c,clothes:h,handleSetClothes:D,handleSetCamera:W,handleTurnAround:j,handleRotateLeft:G,handleRotateRight:ie,handleSave:ce,handleExit:ne})]})},B)}),b.map(({item:_,key:B,props:L})=>_&&y(Eo.div,{style:L,children:y(fd,{title:k.modal.save.title,description:k.modal.save.description,accept:k.modal.accept,decline:k.modal.decline,handleAccept:()=>te(!0),handleDecline:()=>te(!1)})},B)),A.map(({item:_,key:B,props:L})=>_&&y(Eo.div,{style:L,children:y(fd,{title:k.modal.exit.title,description:k.modal.exit.description,accept:k.modal.accept,decline:k.modal.decline,handleAccept:()=>q(!0),handleDecline:()=>q(!1)})},B))]})},tS=()=>z(Sv,{children:[y(eS,{}),y(mg,{})]}),nS=document.getElementById("root"),rS=wh(nS);rS.render(z(Ke.StrictMode,{children:[y(tS,{}),y(oy,{})]})); +`,Zw={control:e=>R(I({},e),{marginTop:"10px",background:"rgba(23, 23, 23, 0.8)",fontSize:"14px",color:"#fff",border:"none",outline:"none",boxShadow:"none"}),placeholder:e=>R(I({},e),{fontSize:"14px",color:"#fff"}),input:e=>R(I({},e),{fontSize:"14px",color:"#fff"}),singleValue:e=>R(I({},e),{fontSize:"14px",color:"#fff",border:"none",outline:"none"}),indicatorContainer:e=>R(I({},e),{borderColor:"#fff",color:"#fff"}),dropdownIndicator:e=>R(I({},e),{borderColor:"#fff",color:"#fff"}),menuPortal:e=>R(I({},e),{color:"#fff",zIndex:9999}),menu:e=>R(I({},e),{background:"rgba(23, 23, 23, 0.8)",position:"absolute",marginBottom:"10px",borderRadius:"4px"}),menuList:e=>R(I({},e),{background:"rgba(23, 23, 23, 0.8)",borderRadius:"4px","&::-webkit-scrollbar":{width:"10px"},"&::-webkit-scrollbar-track":{background:"none"},"&::-webkit-scrollbar-thumb":{borderRadius:"4px",background:"#fff"}}),option:(e,{isFocused:t})=>R(I({},e),{borderRadius:"4px",width:"97%",marginLeft:"auto",marginRight:"auto",background:t?"rgba(255, 255, 255, 0.1)":"none"})},qw=({items:e,tattoosApplied:t,handleApplyTattoo:n,handlePreviewTattoo:r,handleDeleteTattoo:i})=>{const o=b.exports.useRef(null),[a,l]=b.exports.useState(e[0]),{label:s}=a,{locales:u}=fn(),c=(g,{action:v})=>{v==="select-option"&&(r(g.value),l(g.value))},d=()=>{setTimeout(()=>{const g=document.getElementsByClassName("TattooDropdown"+e[0].zone+"__option--is-selected")[0];g&&g.scrollIntoView({behavior:"auto",block:"start",inline:"nearest"})},100)},h=b.exports.useCallback(()=>{if(!t)return!1;const{name:g}=a;for(let v=0;v({value:g,label:g.label})),value:{value:a,label:s},onChange:c,onMenuOpen:d,className:"TattooDropdown"+e[0].zone,classNamePrefix:"TattooDropdown"+e[0].zone,menuPortalTarget:document.body,menuShouldScrollIntoView:!0}),y("section",{children:h?y(Ws,{onClick:()=>i(a),children:u.tattoos.delete}):y(Ws,{onClick:()=>n(a),children:u.tattoos.apply})})]}):null},Jw=({settings:e,data:t,handleApplyTattoo:n,handlePreviewTattoo:r,handleDeleteTattoo:i,handleClearTattoos:o})=>{const{locales:a}=fn(),{items:l}=e,s=Object.keys(l);return a?z(Zn,{title:a.tattoos.title,children:[s.map(u=>{var c;return u!=="ZONE_HAIR"&&y(re,{title:a.tattoos.items[u],children:y(Qe,{children:y(qw,{handlePreviewTattoo:r,handleApplyTattoo:n,handleDeleteTattoo:i,items:l[u],tattoosApplied:(c=t[u])!=null?c:null})})},u)}),y(re,{children:y(Qe,{children:y(Ws,{onClick:()=>o(),width:"100%",children:a.tattoos.deleteAll})})})]}):null},eS=()=>{const[e,t]=b.exports.useState(),[n,r]=b.exports.useState(),[i,o]=b.exports.useState(),[a,l]=b.exports.useState(),[s,u]=b.exports.useState(Al),[c,d]=b.exports.useState(Fl),[h,g]=b.exports.useState(ly),[v,w]=b.exports.useState(!1),[S,p]=b.exports.useState(!1),{display:f,setDisplay:m,locales:k,setLocales:x}=fn(),P=Ol(f.appearance,null,{from:{transform:"translateX(-50px)",opacity:0},enter:{transform:"translateY(0)",opacity:1},leave:{transform:"translateX(-50px)",opacity:0}}),E=Ol(v,null,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}}),A=Ol(S,null,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}}),j=b.exports.useCallback(()=>{ve.post("appearance_turn_around")},[]),D=b.exports.useCallback(_=>{g(R(I({},h),{[_]:!h[_]})),h[_]?ve.post("appearance_wear_clothes",{data:n,key:_}):ve.post("appearance_remove_clothes",_)},[n,h,g]),W=b.exports.useCallback(_=>{u(R(I({},Al),{[_]:!s[_]})),d(Fl),s[_]?ve.post("appearance_set_camera","default"):ve.post("appearance_set_camera",_)},[s,u,d]),G=b.exports.useCallback(()=>{d({left:!c.left,right:!1}),c.left?ve.post("appearance_set_camera","current"):ve.post("appearance_rotate_camera","left")},[d,c]),ie=b.exports.useCallback(()=>{d({left:!1,right:!c.right}),c.right?ve.post("appearance_set_camera","current"):ve.post("appearance_rotate_camera","right")},[d,c]),ce=b.exports.useCallback(()=>{w(!0)},[w]),ne=b.exports.useCallback(()=>{p(!0)},[p]),te=b.exports.useCallback(async _=>{_&&await ve.post("appearance_save",n),w(!1)},[w,n]),q=b.exports.useCallback(async _=>{_&&await ve.post("appearance_exit"),p(!1)},[p]),F=b.exports.useCallback(async _=>{const{appearanceSettings:B,appearanceData:L}=await ve.post("appearance_change_model",_);l(B),r(L)},[r,l]),$=b.exports.useCallback((_,B)=>{if(!n)return;const L=R(I({},n.headBlend),{[_]:B}),se=R(I({},n),{headBlend:L});r(se),ve.post("appearance_change_head_blend",L)},[n,r]),U=b.exports.useCallback((_,B)=>{if(!n)return;const L=R(I({},n.faceFeatures),{[_]:B}),se=R(I({},n),{faceFeatures:L});r(se),ve.post("appearance_change_face_feature",L)},[n,r]),ae=b.exports.useCallback(async(_,B)=>{if(!n||!a)return;const L=R(I({},n.hair),{[_]:B}),se=R(I({},n),{hair:L});r(se);const ke=await ve.post("appearance_change_hair",L),We=R(I({},a),{hair:ke});l(We)},[n,r,a,l]),O=b.exports.useCallback(async _=>{if(!n||!a)return;const{tattoos:B}=n,L=I({},B),se=a.tattoos.items.ZONE_HAIR[_];L[se.zone]||(L[se.zone]=[]),L[se.zone]=[se],await ve.post("appearance_apply_tattoo",L),r(R(I({},n),{tattoos:L}))},[a,n,r]),T=b.exports.useCallback((_,B,L)=>{if(!n)return;const se=R(I({},n.headOverlays[_]),{[B]:L}),ke=R(I({},n),{headOverlays:R(I({},n.headOverlays),{[_]:se})});r(ke),ve.post("appearance_change_head_overlay",R(I({},n.headOverlays),{[_]:se}))},[n,r]),N=b.exports.useCallback(_=>{if(!n)return;const B=R(I({},n),{eyeColor:_});r(B),ve.post("appearance_change_eye_color",_)},[n,r]),Q=b.exports.useCallback(async(_,B)=>{if(!n||!a)return;const L=n.components.find(Ce=>Ce.component_id===_);if(!L)return;const se=R(I({},L),{drawable:B,texture:0}),We=[...n.components.filter(Ce=>Ce.component_id!==_),se],Je=R(I({},n),{components:We});r(Je);const De=await ve.post("appearance_change_component",se),xe=[...a.components.filter(Ce=>Ce.component_id!==_),De],It=R(I({},a),{components:xe});l(It)},[n,r,a,l]),C=b.exports.useCallback(async(_,B)=>{if(!n||!a)return;const L=n.components.find(Ce=>Ce.component_id===_);if(!L)return;const se=R(I({},L),{texture:B}),We=[...n.components.filter(Ce=>Ce.component_id!==_),se],Je=R(I({},n),{components:We});r(Je);const De=await ve.post("appearance_change_component",se),xe=[...a.components.filter(Ce=>Ce.component_id!==_),De],It=R(I({},a),{components:xe});l(It)},[n,r,a,l]),ee=b.exports.useCallback(async(_,B)=>{if(!n||!a)return;const L=n.props.find(Ce=>Ce.prop_id===_);if(!L)return;const se=R(I({},L),{drawable:B,texture:0}),We=[...n.props.filter(Ce=>Ce.prop_id!==_),se],Je=R(I({},n),{props:We});r(Je);const De=await ve.post("appearance_change_prop",se),xe=[...a.props.filter(Ce=>Ce.prop_id!==_),De],It=R(I({},a),{props:xe});l(It)},[n,r,a,l]),M=b.exports.useCallback(async(_,B)=>{if(!n||!a)return;const L=n.props.find(Ce=>Ce.prop_id===_);if(!L)return;const se=R(I({},L),{texture:B}),We=[...n.props.filter(Ce=>Ce.prop_id!==_),se],Je=R(I({},n),{props:We});r(Je);const De=await ve.post("appearance_change_prop",se),xe=[...a.props.filter(Ce=>Ce.prop_id!==_),De],It=R(I({},a),{props:xe});l(It)},[n,r,a,l]),me=b.exports.useMemo(()=>{if(!!n)return n.model==="mp_m_freemode_01"||n.model==="mp_f_freemode_01"},[n]),fe=b.exports.useMemo(()=>{if(!!n)return n.model==="mp_m_freemode_01"},[n]),de=_=>{for(const B in _.items)_.items[B]=_.items[B].filter(L=>{if(fe&&L.hashMale!=="")return L;if(!fe&&L.hashFemale!=="")return L});return _},J=b.exports.useCallback(async _=>{if(!n)return;const{tattoos:B}=n,L=I({},B);L[_.zone]||(L[_.zone]=[]),L[_.zone].push(_),await ve.post("appearance_apply_tattoo",L),r(R(I({},n),{tattoos:L}))},[n,r]),Te=b.exports.useCallback(_=>{if(!n)return;const{tattoos:B}=n;ve.post("appearance_preview_tattoo",{data:B,tattoo:_})},[n]),ze=b.exports.useCallback(async _=>{if(!n)return;const{tattoos:B}=n,L=B;L[_.zone]=L[_.zone].filter(se=>se.name!==_.name),await ve.post("appearance_delete_tattoo",L),r(R(I({},n),{tattoos:L}))},[n,r]),le=b.exports.useCallback(async()=>{if(!n)return;const{tattoos:_}=n,B=I({},_);for(var L in B)L!=="ZONE_HAIR"&&(B[L]=[]);await ve.post("appearance_delete_tattoo",B),r(R(I({},n),{tattoos:B}))},[n,r]);return b.exports.useEffect(()=>{ve.post("appearance_get_locales").then(_=>x(JSON.parse(_))),ve.onEvent("appearance_display",()=>{m({appearance:!0})}),ve.onEvent("appearance_hide",()=>{m({appearance:!1}),r(Lf),o(Lf),l(ay),u(Al),d(Fl)})},[]),b.exports.useEffect(()=>{f.appearance&&(async()=>{const{config:_,appearanceSettings:B,appearanceData:L}=await ve.post("appearance_get_settings_and_data");t(_),l(B),o(L),r(L)})()},[f.appearance]),!f.appearance||!e||!a||!n||!i||!k?null:z(ea,{children:[P.map(({item:_,key:B,props:L})=>{var se,ke,We,Je;return _&&y(bo.div,{style:L,children:z(bw,{children:[z(Ew,{children:[e.ped&&y(vw,{settings:a.ped,storedData:i.model,data:n.model,handleModelChange:F}),a&&z(ea,{children:[me&&e.headBlend&&y(xw,{settings:a.headBlend,storedData:i.headBlend,data:n.headBlend,handleHeadBlendChange:$}),me&&e.faceFeatures&&y(ww,{settings:a.faceFeatures,storedData:i.faceFeatures,data:n.faceFeatures,handleFaceFeatureChange:U}),e.headOverlays&&y(Cw,{settings:{hair:a.hair,headOverlays:a.headOverlays,eyeColor:a.eyeColor,fade:a.tattoos.items.ZONE_HAIR},storedData:{hair:i.hair,headOverlays:i.headOverlays,eyeColor:i.eyeColor,fade:((ke=(se=i.tattoos)==null?void 0:se.ZONE_HAIR)==null?void 0:ke.length)>0?i.tattoos.ZONE_HAIR[0]:null},data:{hair:n.hair,headOverlays:n.headOverlays,eyeColor:n.eyeColor,fade:((Je=(We=n.tattoos)==null?void 0:We.ZONE_HAIR)==null?void 0:Je.length)>0?n.tattoos.ZONE_HAIR[0]:null},isPedFreemodeModel:me,handleHairChange:ae,handleHeadOverlayChange:T,handleEyeColorChange:N,handleChangeFade:O})]}),e.components&&y(Ow,{settings:a.components,data:n.components,storedData:i.components,handleComponentDrawableChange:Q,handleComponentTextureChange:C}),e.props&&y(Pw,{settings:a.props,data:n.props,storedData:i.props,handlePropDrawableChange:ee,handlePropTextureChange:M}),me&&e.tattoos&&y(Jw,{settings:de(a.tattoos),data:n.tattoos,handleApplyTattoo:J,handlePreviewTattoo:Te,handleDeleteTattoo:ze,handleClearTattoos:le})]}),y(Gw,{camera:s,rotate:c,clothes:h,handleSetClothes:D,handleSetCamera:W,handleTurnAround:j,handleRotateLeft:G,handleRotateRight:ie,handleSave:ce,handleExit:ne})]})},B)}),E.map(({item:_,key:B,props:L})=>_&&y(bo.div,{style:L,children:y(fd,{title:k.modal.save.title,description:k.modal.save.description,accept:k.modal.accept,decline:k.modal.decline,handleAccept:()=>te(!0),handleDecline:()=>te(!1)})},B)),A.map(({item:_,key:B,props:L})=>_&&y(bo.div,{style:L,children:y(fd,{title:k.modal.exit.title,description:k.modal.exit.description,accept:k.modal.accept,decline:k.modal.decline,handleAccept:()=>q(!0),handleDecline:()=>q(!1)})},B))]})},tS=()=>z(Sv,{children:[y(eS,{}),y(mg,{})]}),nS=document.getElementById("root"),rS=wh(nS);rS.render(z(Ke.StrictMode,{children:[y(tS,{}),y(oy,{})]})); diff --git a/web/dist/index.html b/web/dist/index.html index 10274cd..d59df12 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,7 +6,7 @@ UI - +