(()=>{"use strict";var e={d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{controls_type:()=>Pe,controls_typeLists:()=>Ye,lists_zip:()=>ve,lists_zip_container:()=>Xe,lists_zip_item:()=>ye,unpack_iterable_object:()=>be,variables_change:()=>fe,variables_get:()=>Ne,variables_global:()=>Fe,variables_set:()=>De});var i={};e.r(i),e.d(i,{base_setup:()=>Be,controls_delay:()=>Ge,controls_end_program:()=>Ue,controls_except:()=>et,controls_finally:()=>tt,controls_flow_statements:()=>Je,controls_for:()=>Qe,controls_forEach:()=>ke,controls_for_range:()=>ze,controls_if:()=>we,controls_if_else:()=>$e,controls_if_elseif:()=>je,controls_if_if:()=>qe,controls_lambda:()=>nt,controls_main:()=>Ve,controls_pass:()=>st,controls_range:()=>He,controls_repeat_ext:()=>it,controls_thread:()=>_t,controls_try:()=>Ze,controls_try_finally:()=>Ke,controls_whileUntil:()=>We,datetime_fromtimestamp:()=>lt,do_while:()=>ot,garbage_collection:()=>pt,gene_unique_identifier:()=>dt,get_mem_alloc:()=>at,get_mem_free:()=>ut,get_unique_identifier:()=>rt});var n={};e.r(n),e.d(n,{base_map:()=>vt,generate_cartesian_product:()=>yt,math_arithmetic:()=>mt,math_bit:()=>Ot,math_constant:()=>Mt,math_constant_mp:()=>ht,math_constrain:()=>Lt,math_dec:()=>ct,math_degree_to_radian:()=>xt,math_indexer_number:()=>Dt,math_map:()=>Nt,math_max_min:()=>Ct,math_number:()=>Tt,math_number_base_conversion:()=>St,math_radian_to_degree:()=>bt,math_random:()=>At,math_random_seed:()=>ft,math_round:()=>Ft,math_selfcalcu:()=>Et,math_to_int:()=>gt,math_trig:()=>Rt,text_to_number:()=>Pt,text_to_number_skulpt:()=>Yt,turn_to_int:()=>Xt});var s={};e.r(s),e.d(s,{ascii_to_char:()=>kt,char_to_ascii:()=>Wt,number_to_text:()=>Kt,os_system:()=>mi,text:()=>Bt,text_bytes:()=>Ut,text_capital:()=>ti,text_center:()=>ii,text_char:()=>wt,text_char_at:()=>zt,text_char_at2:()=>Qt,text_char_at3:()=>Ii,text_compareTo:()=>di,text_compare_to:()=>ei,text_create_with_container:()=>ui,text_create_with_item:()=>ri,text_encode:()=>Mi,text_equals_starts_ends:()=>Zt,text_eval:()=>hi,text_find:()=>ni,text_format:()=>ai,text_format_noreturn:()=>Ti,text_join:()=>Ht,text_join_seq:()=>si,text_length:()=>Jt,text_random_char:()=>qt,text_replace:()=>_i,text_split:()=>oi,text_strip:()=>pi,text_substring:()=>$t,text_substring2:()=>jt,text_substring3:()=>li,text_textarea:()=>Gt});var _={};e.r(_),e.d(_,{ENUMERATE:()=>Zi,content_in_lists:()=>tn,enumerate:()=>en,list_many_input:()=>Gi,list_tolist:()=>ki,list_tolist2:()=>$i,list_trig:()=>xi,lists_2d_get_col_row_data:()=>gi,lists_2d_get_data_with_col_row:()=>ci,lists_append_extend:()=>Di,lists_change_to:()=>Bi,lists_change_to_general:()=>wi,lists_clear:()=>vi,lists_create_with:()=>Ci,lists_create_with2:()=>Wi,lists_create_with_container:()=>Ai,lists_create_with_item:()=>Li,lists_create_with_noreturn:()=>Ui,lists_create_with_text:()=>Si,lists_create_with_text2:()=>Ki,lists_del_general:()=>Hi,lists_find:()=>bi,lists_getIndex3:()=>Ji,lists_getSublist3:()=>Qi,lists_get_index:()=>Oi,lists_get_random_item:()=>fi,lists_get_random_sublist:()=>Fi,lists_get_sublist:()=>Ri,lists_insert_value:()=>Pi,lists_insert_value2:()=>qi,lists_pop:()=>yi,lists_remove_at:()=>Xi,lists_remove_at2:()=>ji,lists_reverse:()=>Yi,lists_setIndex3:()=>zi,lists_set_index:()=>Ni,lists_sort:()=>Vi});var o={};e.r(o),e.d(o,{dicts_add_change_del:()=>En,dicts_add_or_change:()=>rn,dicts_clear:()=>In,dicts_create_with:()=>sn,dicts_create_with_container:()=>_n,dicts_create_with_item:()=>on,dicts_create_with_noreturn:()=>cn,dicts_deldict:()=>mn,dicts_delete:()=>ln,dicts_get:()=>an,dicts_get_default:()=>un,dicts_items:()=>Tn,dicts_keys:()=>pn,dicts_length:()=>hn,dicts_pop:()=>On,dicts_setdefault:()=>Rn,dicts_to_json:()=>Cn,dicts_to_json2:()=>Ln,dicts_to_to:()=>An,dicts_todict:()=>gn,dicts_update:()=>dn,dicts_values:()=>Mn,json_to_dicts:()=>Sn});var p={};e.r(p),e.d(p,{logic_boolean:()=>Yn,logic_compare:()=>Dn,logic_compare_continous:()=>fn,logic_is:()=>bn,logic_is_in:()=>yn,logic_negate:()=>Pn,logic_null:()=>vn,logic_operation:()=>Fn,logic_tobool:()=>xn,logic_true_or_false:()=>Xn});var a={};e.r(a),e.d(a,{sdcard_mount:()=>os,sdcard_use_spi_init:()=>_s,storage_can_write_ornot:()=>Kn,storage_change_dir:()=>ns,storage_close_file:()=>Qn,storage_delete_file:()=>qn,storage_file_seek:()=>Zn,storage_file_tell:()=>$n,storage_file_write:()=>wn,storage_fileopen:()=>Bn,storage_fileopen_new:()=>Gn,storage_fileopen_new_encoding:()=>Un,storage_get_a_line:()=>Wn,storage_get_contents:()=>kn,storage_get_contents_without_para:()=>Hn,storage_get_current_dir:()=>es,storage_get_file_size:()=>jn,storage_get_filename:()=>Jn,storage_is_file:()=>ss,storage_list_all_files:()=>zn,storage_make_dir:()=>ts,storage_open_file_with_os:()=>Vn,storage_rename:()=>is});var u={};e.r(u),e.d(u,{procedures_callnoreturn:()=>ls,procedures_callreturn:()=>ds,procedures_defnoreturn:()=>ps,procedures_defreturn:()=>as,procedures_ifreturn:()=>Is,procedures_mutatorarg:()=>rs,procedures_mutatorcontainer:()=>us,procedures_return:()=>Ts});var r={};e.r(r),e.d(r,{tuple_change_to:()=>Ls,tuple_create_llm_params:()=>ys,tuple_create_with:()=>hs,tuple_create_with_container:()=>ms,tuple_create_with_item:()=>Es,tuple_create_with_noreturn:()=>Fs,tuple_create_with_text2:()=>Os,tuple_create_with_text_return:()=>Rs,tuple_del:()=>Cs,tuple_find:()=>Ns,tuple_getIndex:()=>cs,tuple_getSublist:()=>fs,tuple_get_random_item:()=>Ys,tuple_get_sublist:()=>Ps,tuple_input:()=>Xs,tuple_join:()=>Ss,tuple_length:()=>gs,tuple_max:()=>As,tuple_totuple:()=>vs,tuple_trig:()=>Ds});var l={};e.r(l),e.d(l,{set_add_discard:()=>Ws,set_clear:()=>ws,set_create_with:()=>xs,set_create_with_container:()=>Vs,set_create_with_item:()=>Bs,set_create_with_text_return:()=>Qs,set_length:()=>Gs,set_operate:()=>Hs,set_operate_update:()=>ks,set_pop:()=>Us,set_sub:()=>Ks,set_toset:()=>zs,set_update:()=>Js});var d={};e.r(d),e.d(d,{html_content:()=>e_,html_content_more:()=>t_,html_document:()=>js,html_form:()=>n_,html_head_body:()=>Zs,html_style:()=>i_,html_style_color:()=>__,html_style_content:()=>s_,html_text:()=>o_,html_title:()=>$s});var I={};e.r(I),e.d(I,{attribute_access:()=>R_,function_call:()=>m_,function_call_container:()=>E_,function_call_item:()=>O_,raw_block:()=>u_,raw_empty:()=>l_,raw_expression:()=>r_,raw_table:()=>a_,text_comment:()=>d_,text_print_multiple:()=>T_,text_print_multiple_container:()=>M_,text_print_multiple_item:()=>h_,type_check:()=>I_});var T={};e.r(T),e.d(T,{controls_type:()=>A_,controls_typeLists:()=>L_,lists_zip:()=>N_,unpack_iterable_object:()=>D_,variables_change:()=>C_,variables_get:()=>c_,variables_global:()=>S_,variables_set:()=>g_});var M={};e.r(M),e.d(M,{Panic_with_status_code:()=>V_,base_setup:()=>F_,controls_delay:()=>x_,controls_flow_statements:()=>b_,controls_for:()=>v_,controls_forEach:()=>H_,controls_for_range:()=>X_,controls_if:()=>P_,controls_interrupts:()=>U_,controls_lambda:()=>W_,controls_main:()=>f_,controls_millis:()=>B_,controls_nointerrupts:()=>w_,controls_pass:()=>J_,controls_range:()=>k_,controls_repeat:()=>to,controls_repeat_ext:()=>q_,controls_thread:()=>Q_,controls_try_finally:()=>Y_,controls_whileUntil:()=>y_,datetime_fromtimestamp:()=>io,do_while:()=>z_,garbage_collection:()=>j_,gene_unique_identifier:()=>no,get_mem_alloc:()=>$_,get_mem_free:()=>Z_,get_unique_identifier:()=>eo,reset:()=>G_,time_sleep:()=>K_});var h={};e.r(h),e.d(h,{base_map:()=>Ao,generate_cartesian_product:()=>No,math_arithmetic:()=>ao,math_bit:()=>po,math_constant:()=>_o,math_constant_mp:()=>oo,math_constrain:()=>Eo,math_dec:()=>Io,math_degree_to_radian:()=>fo,math_indexer_number:()=>co,math_map:()=>mo,math_max_min:()=>Mo,math_number:()=>so,math_number_base_conversion:()=>Oo,math_radian_to_degree:()=>Do,math_random:()=>ho,math_random_seed:()=>Ro,math_round:()=>go,math_selfcalcu:()=>uo,math_single:()=>ro,math_to_int:()=>To,math_trig:()=>lo,text_to_number:()=>Co,text_to_number_skulpt:()=>So,turn_to_int:()=>Lo});var m={};e.r(m),e.d(m,{ascii_to_char:()=>yo,char_to_ascii:()=>bo,number_to_text:()=>xo,os_system:()=>op,text:()=>Fo,text_bytes:()=>Yo,text_capital:()=>Ko,text_center:()=>Jo,text_char:()=>vo,text_char_at:()=>Go,text_char_at2:()=>Bo,text_char_at3:()=>np,text_compareTo:()=>ip,text_compare_to:()=>Ho,text_encode:()=>sp,text_equals_starts_ends:()=>wo,text_eval:()=>_p,text_find:()=>Qo,text_format:()=>Zo,text_format_noreturn:()=>ep,text_join:()=>Xo,text_join_seq:()=>zo,text_length:()=>Vo,text_random_char:()=>Uo,text_replace:()=>qo,text_split:()=>jo,text_strip:()=>$o,text_substring:()=>Wo,text_substring2:()=>ko,text_substring3:()=>tp,text_textarea:()=>Po});var E={};e.r(E),e.d(E,{content_in_lists:()=>Gp,enumerate:()=>Bp,list_many_input:()=>Lp,list_tolist:()=>xp,list_tolist2:()=>Vp,list_trig:()=>Cp,lists_2d_get_col_row_data:()=>up,lists_2d_get_data_with_col_row:()=>ap,lists_append_extend:()=>Tp,lists_change_to:()=>Ap,lists_change_to_general:()=>Dp,lists_clear:()=>Op,lists_create_with:()=>rp,lists_create_with2:()=>Fp,lists_create_with_noreturn:()=>Np,lists_create_with_text:()=>lp,lists_create_with_text2:()=>Pp,lists_del_general:()=>fp,lists_find:()=>Rp,lists_getIndex3:()=>Yp,lists_getSublist3:()=>vp,lists_get_index:()=>dp,lists_get_random_item:()=>Mp,lists_get_random_sublist:()=>hp,lists_get_sublist:()=>pp,lists_insert_value:()=>mp,lists_insert_value2:()=>yp,lists_pop:()=>gp,lists_remove_at:()=>cp,lists_remove_at2:()=>bp,lists_reverse:()=>Ep,lists_setIndex3:()=>Xp,lists_set_index:()=>Ip,lists_sort:()=>Sp});var O={};e.r(O),e.d(O,{dicts_add_change_del:()=>Zp,dicts_add_or_change:()=>Wp,dicts_clear:()=>Qp,dicts_create_with:()=>Up,dicts_create_with_noreturn:()=>ia,dicts_deldict:()=>$p,dicts_delete:()=>Kp,dicts_get:()=>Hp,dicts_get_default:()=>kp,dicts_items:()=>zp,dicts_keys:()=>wp,dicts_length:()=>jp,dicts_pop:()=>ea,dicts_setdefault:()=>ta,dicts_to_json:()=>sa,dicts_to_json2:()=>pa,dicts_to_to:()=>oa,dicts_todict:()=>na,dicts_update:()=>Jp,dicts_values:()=>qp,json_to_dicts:()=>_a});var R={};e.r(R),e.d(R,{logic_boolean:()=>da,logic_compare:()=>aa,logic_compare_continous:()=>ua,logic_is:()=>ha,logic_is_in:()=>Ma,logic_negate:()=>la,logic_null:()=>Ia,logic_operation:()=>ra,logic_tobool:()=>ma,logic_true_or_false:()=>Ta});var c={};e.r(c),e.d(c,{sdcard_mount:()=>Ga,sdcard_use_spi_init:()=>Ba,storage_can_write_ornot:()=>La,storage_change_dir:()=>Xa,storage_close_file:()=>Da,storage_delete_file:()=>Fa,storage_file_seek:()=>va,storage_file_tell:()=>Ya,storage_file_write:()=>ga,storage_fileopen:()=>Oa,storage_fileopen_new:()=>Ra,storage_fileopen_new_encoding:()=>ca,storage_get_a_line:()=>Aa,storage_get_contents:()=>Sa,storage_get_contents_without_para:()=>Ca,storage_get_current_dir:()=>ya,storage_get_file_size:()=>Pa,storage_get_filename:()=>Na,storage_is_file:()=>Va,storage_list_all_files:()=>fa,storage_make_dir:()=>ba,storage_open_file_with_os:()=>Ea,storage_rename:()=>xa});var g={};e.r(g),e.d(g,{procedures_callnoreturn:()=>ka,procedures_callreturn:()=>Ha,procedures_defnoreturn:()=>wa,procedures_defreturn:()=>Ua,procedures_ifreturn:()=>Wa,procedures_return:()=>Ka});var C={};e.r(C),e.d(C,{tuple_change_to:()=>tu,tuple_create_llm_params:()=>ru,tuple_create_with:()=>Ja,tuple_create_with_noreturn:()=>_u,tuple_create_with_text2:()=>Qa,tuple_create_with_text_return:()=>za,tuple_del:()=>$a,tuple_find:()=>iu,tuple_getIndex:()=>qa,tuple_getSublist:()=>su,tuple_get_random_item:()=>pu,tuple_get_sublist:()=>ou,tuple_input:()=>uu,tuple_join:()=>Za,tuple_length:()=>ja,tuple_max:()=>eu,tuple_totuple:()=>au,tuple_trig:()=>nu});var S={};e.r(S),e.d(S,{set_add_discard:()=>mu,set_clear:()=>Tu,set_create_with:()=>lu,set_create_with_text_return:()=>Ru,set_length:()=>du,set_operate:()=>Mu,set_operate_update:()=>hu,set_pop:()=>Iu,set_sub:()=>Eu,set_toset:()=>cu,set_update:()=>Ou});var A={};e.r(A),e.d(A,{html_content:()=>Au,html_content_more:()=>Lu,html_document:()=>gu,html_form:()=>Du,html_head_body:()=>Su,html_style:()=>Nu,html_style_content:()=>fu,html_text:()=>Fu,html_title:()=>Cu});var L={};e.r(L),e.d(L,{attribute_access:()=>xu,function_call:()=>bu,raw_block:()=>Pu,raw_empty:()=>vu,raw_expression:()=>Yu,raw_table:()=>Xu,type_check:()=>yu});var N={};e.r(N),e.d(N,{PIN_init:()=>kr,actuator_extern_get_led_bright:()=>Zu,actuator_extern_get_led_state:()=>er,actuator_extern_led_bright:()=>$u,actuator_extern_led_brightness:()=>tr,actuator_ms32006_dcmotor:()=>rr,actuator_ms32006_init:()=>ur,actuator_ms32006_stepper:()=>lr,actuator_neopixel_init:()=>dr,actuator_neopixel_rgb:()=>Ir,actuator_neopixel_rgb_all:()=>Tr,actuator_neopixel_rgb_show_all_chase:()=>mr,actuator_neopixel_rgb_show_all_rainbow:()=>hr,actuator_neopixel_write:()=>Mr,actuator_use_uart_init:()=>Er,backstage_esp32_music_play_list:()=>Ku,esp32_music_get_tempo_extern:()=>Qu,esp32_music_pitch:()=>Hu,esp32_music_pitch_init:()=>wu,esp32_music_pitch_with_time:()=>ku,esp32_music_play_list:()=>Wu,esp32_music_reset_extern:()=>zu,esp32_music_set_tempo_extern:()=>Ju,esp32_music_stop:()=>qu,esp32_set_music_volume:()=>ju,mixbot_actuator_extern_get_addr:()=>wr,mixbot_actuator_extern_set_addr:()=>Hr,mixbot_addr_extern:()=>fr,parrot_PIN_init:()=>Qr,parrot_move_speed:()=>zr,pin_led_bright:()=>Wr,player_insert_music:()=>Sr,player_play_music:()=>Cr,player_set_mode:()=>gr,player_set_play:()=>Rr,player_set_volume:()=>cr,player_whether_stop:()=>Or,robot_led_extern:()=>vr,robot_led_extern_get_value:()=>Xr,robot_motor_extern:()=>Fr,robot_motor_extern_get_speed:()=>Pr,robot_servo_extern_absolute_run:()=>Vr,robot_servo_extern_get_status:()=>yr,robot_servo_extern_relative_continue:()=>Ur,robot_servo_extern_relative_origin:()=>Br,robot_servo_extern_relative_run:()=>Gr,robot_servo_extern_stop:()=>xr,robot_servo_extern_stop_mode:()=>br,robot_traffic_light_extern:()=>Yr,servo_PIN_init:()=>Kr,servo_get_angle:()=>pr,servo_get_speed:()=>ar,servo_init:()=>ir,servo_move:()=>nr,servo_move_angle:()=>Jr,servo_set_angle:()=>_r,servo_set_speed:()=>or,servo_speed_360:()=>sr,syn6288_builtin_voice:()=>Nr,syn6288_get_voice:()=>Lr,syn6288_set_voice:()=>Ar,syn6288_tts_play:()=>Dr});var D={};e.r(D),e.d(D,{actuator_dc_motor:()=>Dl,actuator_dc_motor_stop:()=>fl,actuator_get_led_bright:()=>el,actuator_get_led_state:()=>tl,actuator_led_bright:()=>Zr,actuator_led_brightness:()=>il,actuator_mixbot_buzzer_on_off:()=>Xl,actuator_mixgo_nova_mic_get:()=>Bl,actuator_mixgo_nova_mic_set:()=>Vl,actuator_mixgo_nova_onboard_music_pitch:()=>Wl,actuator_mixgo_nova_onboard_music_stop:()=>Kl,actuator_mixgo_nova_play_audio:()=>Hl,actuator_mixgo_nova_play_online_audio:()=>kl,actuator_mixgo_nova_record_audio:()=>wl,actuator_mixgo_nova_voice_get:()=>Ul,actuator_mixgo_nova_voice_set:()=>Gl,actuator_mixgo_zero_led_color:()=>nl,actuator_onboard_neopixel_rgb:()=>ul,actuator_onboard_neopixel_rgb_all:()=>rl,actuator_onboard_neopixel_rgb_show_all_chase:()=>dl,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>ll,actuator_onboard_neopixel_write:()=>Il,actuator_rm_onboard_neopixel_rgb:()=>Tl,actuator_rm_onboard_neopixel_rgb_all:()=>Ml,actuator_rm_onboard_neopixel_rgb_show_all_chase:()=>hl,actuator_stepper_keep:()=>Ll,actuator_stepper_stop:()=>Nl,analog_ble_keyboard_init:()=>od,analog_ble_keyboard_input:()=>ud,analog_ble_keyboard_mouse_init:()=>md,analog_ble_keyboard_mouse_input:()=>cd,analog_ble_keyboard_mouse_send_battery:()=>Rd,analog_ble_keyboard_mouse_str:()=>gd,analog_ble_keyboard_send_battery:()=>ld,analog_ble_keyboard_str:()=>rd,analog_ble_mouse_init:()=>dd,analog_ble_mouse_input:()=>Md,analog_ble_mouse_keyboard_input:()=>Cd,analog_ble_mouse_send_battery:()=>hd,analog_keyboard_input:()=>jl,analog_keyboard_str:()=>_d,analog_mouse_input:()=>nd,backstage_onboard_music_play_list:()=>Sl,bitbot_motor:()=>xl,bitbot_move:()=>yl,bitbot_stop:()=>bl,ble_keyboard_connect:()=>ad,ble_keyboard_get_mac:()=>pd,ble_keyboard_mouse_connect:()=>Od,ble_keyboard_mouse_get_mac:()=>Ed,ble_mouse_connect:()=>Td,ble_mouse_get_mac:()=>Id,cc_number:()=>al,educore_ble_keyboard_input:()=>vd,educore_ble_sensor_connected:()=>Yd,educore_ble_sensor_init:()=>Pd,educore_buzzer:()=>Sd,educore_buzzer_play_tone:()=>Ad,educore_buzzer_play_tone_time:()=>Ld,educore_buzzer_stop:()=>Nd,educore_neopixel_clear:()=>Fd,educore_neopixel_rgb:()=>fd,educore_rgb_light:()=>Dd,esp32_music_get_tempo:()=>El,esp32_music_reset:()=>Ol,esp32_music_set_tempo:()=>ml,esp32_onboard_music_pitch:()=>Rl,esp32_onboard_music_pitch_with_time:()=>cl,esp32_onboard_music_play_list:()=>Cl,esp32_onboard_music_stop:()=>gl,general_key:()=>Zl,general_key_tuple:()=>ed,generalkey_container:()=>td,generalkey_create_with_item:()=>id,get_keyboard_light:()=>Xd,get_power_output:()=>Ql,ledswitch:()=>$r,mixbot_motor:()=>vl,mixbot_motor_status:()=>Fl,mixbot_move:()=>Pl,mixbot_stop:()=>Yl,mouse_key:()=>sd,number:()=>jr,record_audio:()=>bd,rm_actuator_get_led_bright:()=>_l,rm_actuator_get_led_state:()=>ol,rm_actuator_led_bright:()=>sl,rm_actuator_led_brightness:()=>pl,rm_motor:()=>Al,set_all_power_output:()=>zl,set_microphone_amplification:()=>yd,set_music_volume:()=>xd,set_part_power_output:()=>ql,set_power_output:()=>Jl,special_key:()=>$l});var f={};e.r(f),e.d(f,{ai_sensor_20object:()=>mI,ai_sensor_ailocal_class:()=>oI,ai_sensor_ailocal_class_result:()=>pI,ai_sensor_ailocal_train:()=>_I,ai_sensor_asr_recognize:()=>dI,ai_sensor_audio_play:()=>uI,ai_sensor_audio_record:()=>aI,ai_sensor_barcode:()=>Wd,ai_sensor_circle:()=>jd,ai_sensor_classifier_faces:()=>hI,ai_sensor_color:()=>tI,ai_sensor_color_chases:()=>sI,ai_sensor_color_chases_result:()=>nI,ai_sensor_config:()=>Hd,ai_sensor_face:()=>MI,ai_sensor_find_20objects:()=>EI,ai_sensor_find_barcodes:()=>Kd,ai_sensor_find_circles:()=>$d,ai_sensor_find_colors:()=>iI,ai_sensor_find_licenseplates:()=>TI,ai_sensor_find_lines:()=>qd,ai_sensor_find_qrcodes:()=>wd,ai_sensor_find_rects:()=>eI,ai_sensor_find_tags:()=>Qd,ai_sensor_licenseplate:()=>II,ai_sensor_line:()=>zd,ai_sensor_qrcode:()=>Gd,ai_sensor_qrcode_lite:()=>Ud,ai_sensor_rect:()=>Zd,ai_sensor_rgb:()=>kd,ai_sensor_tag:()=>Jd,ai_sensor_use_uart_init:()=>Bd,ai_sensor_yolo_recognize:()=>rI,ai_sensor_yolo_recognize_result:()=>lI});var F={};e.r(F),e.d(F,{MICROPYTHON_AI_Speech_asr:()=>cI,MICROPYTHON_AI_Speech_unit:()=>RI,MICROPYTHON_AI_client:()=>OI});var P={};e.r(P),e.d(P,{AI_CAMERA_INIT:()=>jI,AI_CAMERA_INIT_FACERECOGNIZE:()=>eT,AI_CAMERA_INIT_SIMPLE:()=>LT,AI_STOP_ACQUISITION:()=>CT,CAMERA_LOOGOUT:()=>GI,CI130X_BROADCAST_SANT:()=>YI,CI130X_BROADCAST_SYSTEM_TIME:()=>XI,CI130X_GET_THE_RECOGNIZED_CMD_SANT:()=>PI,CI130X_GET_WHETHER_IDENTIFY_SANT:()=>FI,CI130X_IDENTIFY_AND_SAVE_SANT:()=>fI,CI130X_OPEN_AND_CLOSE:()=>NI,CI130X_PLAY_SYSTEM_CMD_SANT:()=>DI,CI130X_SET_SYSTEM_CMD_SANT:()=>vI,CONVERT_IMAGE_TO_JPG:()=>HI,CREATE_CAMERA:()=>yI,CREATE_CAMERA_SIMPLE:()=>AT,DELETE_FACE_ALL:()=>TT,DELETE_FACE_FROM_DATABASE:()=>IT,GET_CAT_FACE_DETECTION_NUM:()=>OT,GET_COLOR_DETECTION_NUM:()=>ET,GET_FACE_DETECTION_NAME:()=>gT,GET_FACE_DETECTION_NUM:()=>cT,GET_HOW_MUCH_RECOGNITION:()=>sT,GET_HUMAN_DETECTION_NUM:()=>RT,GET_IMAGE_AND_SAVE:()=>xI,GET_IMAGE_FROM_NET:()=>BI,GET_NO_CAT_OR_FACE_RECOGNITION:()=>oT,GET_NO_FACE_RECOGNITION_INFO:()=>uT,GET_NO_RECOGNITION:()=>_T,GET_NO_XY_RECOGNITION:()=>pT,GET_NO_XY_RECOGNITION_FACE:()=>aT,GET_PICTURE_DATA_EXACT:()=>UI,GET_PICTURE_DATA_WHS:()=>kI,GET_PICTURE_RECOGNITION_DATA:()=>mT,GET_PICTURE_WIDTH_HEIGHT_DEVICE:()=>wI,GET_QR_CODE_RECOGNITION_DATA:()=>hT,GET_SCREEN_IMAGE:()=>qI,GET_SCREEN_IMAGE_SIZE:()=>zI,MIXIO_REPORT_IMAGE_DATA:()=>ST,MODEL_INIT_HEIGHT:()=>ZI,MODEL_INIT_WIDTH:()=>$I,MODEL_LOGOUT:()=>tT,MODEL_RUN:()=>iT,MODEL_WHETHER_RUN_SUCCEED:()=>nT,OPEN_IMAGE:()=>VI,PRINT_FACE_DATABASE:()=>MT,REGISTER_NEW_FACE:()=>dT,REGISTER_NEW_FACE_SIMPLE:()=>DT,Register_color_recognition:()=>lT,Register_color_recognition_fixed:()=>rT,Register_color_recognition_fixed_SIMPLE:()=>NT,SCREEN_DISPLAY_IMAGE:()=>JI,SCREEN_DISPLAY_IMAGE_LOCATION:()=>QI,SCREEN_SHOW_CAM_GRAPH_SHOOT:()=>WI,SCREEN_SHOW_CAM_GRAPH_SHOOT_LOCATION:()=>KI,SHOOT_AND_SAVE_PICTURE:()=>bI,VOICE_RECOGNITION_CONTROL:()=>LI,yesorno:()=>AI});var Y={};e.r(Y),e.d(Y,{mpython_blynk_app_data:()=>HT,mpython_blynk_app_notify:()=>bT,mpython_blynk_email:()=>BT,mpython_blynk_get_timers:()=>GT,mpython_blynk_on_connected:()=>vT,mpython_blynk_on_disconnected:()=>YT,mpython_blynk_run:()=>yT,mpython_blynk_sensor_data_to_app:()=>wT,mpython_blynk_set_property:()=>VT,mpython_blynk_setup:()=>kT,mpython_blynk_stop_timers:()=>xT,mpython_blynk_sync_virtual:()=>PT,mpython_blynk_terminal_widget_vpin:()=>FT,mpython_blynktimer:()=>UT,mpython_blynktimer_run:()=>XT});var v={};e.r(v),e.d(v,{communicate_bluetooth_central_init:()=>LM,communicate_bluetooth_connect:()=>FM,communicate_bluetooth_disconnect:()=>PM,communicate_bluetooth_handle:()=>bM,communicate_bluetooth_is_connected:()=>vM,communicate_bluetooth_mac:()=>fM,communicate_bluetooth_peripheral_init:()=>NM,communicate_bluetooth_recv:()=>XM,communicate_bluetooth_recv_only:()=>yM,communicate_bluetooth_scan:()=>DM,communicate_bluetooth_send:()=>YM,communicate_espnow_init:()=>xM,communicate_espnow_init_new:()=>VM,communicate_i2c_available:()=>aM,communicate_i2c_init:()=>QT,communicate_i2c_master_read:()=>pM,communicate_i2c_onboard:()=>KT,communicate_i2c_read:()=>zT,communicate_i2c_scan:()=>jT,communicate_i2c_write:()=>qT,communicate_ir_recv_init:()=>hM,communicate_ir_send_init:()=>cM,communicate_ow_init:()=>rM,communicate_ow_read:()=>dM,communicate_ow_reset:()=>MM,communicate_ow_scan:()=>lM,communicate_ow_select:()=>TM,communicate_ow_write:()=>IM,communicate_spi_buffer:()=>eM,communicate_spi_init:()=>$T,communicate_spi_onboard:()=>JT,communicate_spi_read:()=>tM,communicate_spi_read_output:()=>iM,communicate_spi_readinto:()=>nM,communicate_spi_readinto_output:()=>sM,communicate_spi_set:()=>ZT,communicate_spi_write:()=>_M,communicate_spi_write_readinto:()=>oM,espnow_radio_channel:()=>kM,espnow_radio_channel_new:()=>KM,espnow_radio_on_off:()=>JM,espnow_radio_rec:()=>zM,espnow_radio_recv:()=>jM,espnow_radio_recv_certain_msg:()=>$M,espnow_radio_recv_certain_msg_new:()=>eh,espnow_radio_recv_msg:()=>qM,espnow_radio_recv_new:()=>ZM,espnow_radio_send:()=>QM,espnow_radio_txpower:()=>WM,i2c_available:()=>gh,i2c_init:()=>ah,i2c_master_reader2:()=>ch,i2c_read:()=>uh,i2c_scan:()=>lh,i2c_slave_onreceive:()=>uM,i2c_write:()=>rh,internal_variable:()=>mM,ir_recv_timeout:()=>RM,ir_transmit_busy:()=>AM,ir_transmit_conventional_data:()=>gM,ir_transmit_raw_code:()=>SM,ir_transmit_study_code:()=>CM,ir_whether_recv:()=>OM,lora_init:()=>th,lora_packet:()=>ih,lora_recv:()=>sh,lora_send:()=>nh,network_espnow_info:()=>GM,network_espnow_mac:()=>BM,network_espnow_recv:()=>UM,network_espnow_recv_handle:()=>HM,network_espnow_send:()=>wM,recv_fun:()=>EM,spi_buffer:()=>Th,spi_init:()=>dh,spi_read:()=>Mh,spi_read_output:()=>hh,spi_readinto:()=>mh,spi_readinto_output:()=>Eh,spi_set:()=>Ih,spi_write:()=>Oh,spi_write_readinto:()=>Rh,urequests_attribute:()=>oh,urequests_get:()=>_h,urequests_method:()=>ph});var X={};e.r(X),e.d(X,{display_animate:()=>em,display_blink_rate:()=>qh,display_circle:()=>tm,display_color_seclet:()=>Im,display_draw_4strings:()=>kh,display_fill:()=>Zh,display_get_screen_image:()=>zh,display_help:()=>nm,display_image_size:()=>Wh,display_lcd_use_i2c_init:()=>Om,display_line:()=>Jh,display_line_arbitrarily:()=>Qh,display_matrix_extern_bright_point:()=>bh,display_matrix_extern_bright_screen:()=>Vh,display_matrix_extern_clear:()=>Bh,display_matrix_extern_get_pixel:()=>yh,display_matrix_extern_get_screen_pixel:()=>xh,display_matrix_extern_image_builtins:()=>Gh,display_matrix_extern_scroll_string:()=>Fh,display_matrix_extern_scroll_string_delay:()=>Ph,display_matrix_extern_shift:()=>Xh,display_matrix_extern_show_frame_string:()=>Yh,display_matrix_extern_show_frame_string_delay:()=>vh,display_matrix_extern_show_image:()=>Dh,display_matrix_extern_show_image_or_string_delay:()=>fh,display_matrix_use_i2c_init:()=>Nh,display_oled_drawPixel:()=>_m,display_oled_showBitmap:()=>sm,display_oled_use_i2c_init:()=>Sm,display_onoff:()=>$h,display_rect:()=>Kh,display_rgb_color:()=>jh,display_tm1650_power:()=>pm,display_tm1650_set_brightness:()=>rm,display_tm1650_show_dot:()=>um,display_tm1650_show_num:()=>am,display_tm_use_i2c_init:()=>om,display_triangle:()=>im,display_use_i2c_init:()=>Hh,extern_oled_bright_point:()=>ym,extern_oled_clear:()=>bm,extern_oled_get_pixel:()=>Xm,extern_oled_hvline:()=>Vm,extern_oled_line:()=>Bm,extern_oled_scroll_string:()=>fm,extern_oled_scroll_string_delay:()=>Fm,extern_oled_shape_rect:()=>xm,extern_oled_shift:()=>vm,extern_oled_show_frame_string:()=>Pm,extern_oled_show_frame_string_delay:()=>Ym,extern_oled_show_image:()=>Am,extern_oled_show_image_or_string_delay:()=>Dm,extern_oled_show_image_xy:()=>Lm,extern_oled_show_string:()=>Nm,lcd_backlight:()=>gm,lcd_clear:()=>Cm,lcd_print_string:()=>cm,lcd_show_image_or_string_delay:()=>Rm,matrix_extern_image_arithmetic:()=>Uh,matrix_extern_image_invert:()=>wh,tft_fill:()=>mm,tft_line_arbitrarily:()=>Em,tft_scroll_string_delay:()=>Mm,tft_show_frame_string_delay:()=>hm,tft_show_image_or_string_delay:()=>Tm,tft_show_image_xy:()=>dm,tft_use_spi_init:()=>lm});var y={};e.r(y),e.d(y,{bitbot_display_bitmap_create:()=>vE,bitbot_display_image_create:()=>YE,display_available:()=>pE,display_bitmap_create:()=>qm,display_bright_point:()=>nE,display_bright_screen:()=>_E,display_clear:()=>oE,display_get_pixel:()=>iE,display_get_screen_pixel:()=>sE,display_image_builtins:()=>jm,display_image_builtins_all:()=>$m,display_image_create:()=>zm,display_scroll_string:()=>Hm,display_scroll_string_delay:()=>km,display_scroll_way:()=>Wm,display_shift:()=>tE,display_show_frame_string:()=>Jm,display_show_frame_string_delay:()=>Qm,display_show_image:()=>Um,display_show_image_or_string_delay:()=>wm,draw_pointer:()=>qE,image_arithmetic:()=>Zm,image_invert:()=>eE,mixbot_display_bitmap_create:()=>NE,mixbot_display_bright_screen:()=>FE,mixbot_display_get_ambientbright:()=>fE,mixbot_display_get_screen_pixel:()=>DE,mixbot_display_image_create:()=>LE,mixbot_display_rotate:()=>PE,mixgo_display_bitmap_create:()=>IE,mixgo_display_image_create_new:()=>dE,mixgome_display_bitmap_create:()=>uE,mixgome_display_font:()=>TE,mixgome_display_image_create:()=>aE,mixgomini_display_bitmap_create:()=>lE,mixgomini_display_image_create:()=>rE,mpython_display_hvline:()=>CE,mpython_display_line:()=>SE,mpython_display_shape_rect:()=>gE,mpython_pbm_image:()=>AE,nova_draw_pointer:()=>jE,onboard_oled_bright_point:()=>cE,onboard_oled_scroll_string_delay:()=>OE,onboard_oled_show_frame_string_delay:()=>RE,onboard_oled_show_image:()=>ME,onboard_oled_show_image_or_string_delay:()=>EE,onboard_oled_show_image_xy:()=>hE,onboard_oled_show_string:()=>mE,onboard_tft_bright_point:()=>wE,onboard_tft_bright_screen:()=>oO,onboard_tft_clear:()=>pO,onboard_tft_clock_clear:()=>QE,onboard_tft_clock_draw:()=>JE,onboard_tft_clock_get_rtctime:()=>WE,onboard_tft_clock_init:()=>kE,onboard_tft_clock_set_time:()=>KE,onboard_tft_display_hvline:()=>BE,onboard_tft_display_line:()=>GE,onboard_tft_display_shape_circle:()=>zE,onboard_tft_display_shape_rect:()=>VE,onboard_tft_fill:()=>HE,onboard_tft_get_pixel:()=>UE,onboard_tft_get_screen_pixel:()=>_O,onboard_tft_scroll_string:()=>iO,onboard_tft_scroll_string_delay:()=>Km,onboard_tft_shift:()=>sO,onboard_tft_show_frame_string:()=>nO,onboard_tft_show_frame_string_delay:()=>xE,onboard_tft_show_image:()=>tO,onboard_tft_show_image_or_string_delay:()=>bE,onboard_tft_show_image_xy:()=>XE,onboard_tft_show_image_xy_direct:()=>yE,onboard_tft_show_qrcode:()=>ZE,onboard_tft_show_qrcode_details:()=>eO,onboard_tft_show_texts:()=>$E});var b={};e.r(b),e.d(b,{factory_block:()=>AO,factory_block_return:()=>LO,factory_block_return_with_textarea:()=>DO,factory_block_with_textarea:()=>NO,factory_callMethod_noreturn:()=>CO,factory_callMethod_return:()=>SO,factory_create_with_container:()=>OO,factory_create_with_item:()=>RO,factory_declare:()=>gO,factory_from_import:()=>hO,factory_function_noreturn:()=>EO,factory_function_return:()=>cO,factory_import:()=>mO,folding_block:()=>fO});var x={};e.r(x),e.d(x,{controls_pin_attachInterrupt:()=>jO,inout_analog_atten:()=>BO,inout_analog_read:()=>VO,inout_analog_read_init:()=>WO,inout_analog_write:()=>yO,inout_analog_write_init:()=>kO,inout_analog_write_set:()=>bO,inout_analog_write_set_freq:()=>QO,inout_digital_init:()=>wO,inout_digital_read:()=>vO,inout_digital_write:()=>YO,inout_highlow:()=>PO,inout_pinMode:()=>JO,inout_pin_attachInterrupt:()=>UO,inout_pin_pressed:()=>GO,inout_pin_pressed_init:()=>KO,inout_pwm_analog_write:()=>XO,inout_pwm_analog_write_init:()=>HO,inout_pwm_analog_write_set_freq:()=>xO,pin_pressed:()=>qO,pin_pressed_init:()=>zO});var V={};e.r(V),e.d(V,{IOT_CONNECT_OLLAMA:()=>yR,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>gR,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>cR,IOT_EMQX_PING:()=>OR,IOT_FORMATTING:()=>mR,IOT_FORMAT_STRING:()=>ER,IOT_MIXIO_NTP:()=>RR,IOT_MIXIO_PUBLISH:()=>uR,IOT_MIXIO_PUBLISHEX:()=>rR,IOT_MIXIO_SUBSCRIBE:()=>lR,iot_checkonenet:()=>YR,iot_client_onboard:()=>SR,iot_connect_ollama:()=>XR,iot_connect_openai:()=>bR,iot_create_with_item:()=>pR,iot_http_client:()=>AR,iot_http_data:()=>LR,iot_mixio_check:()=>TR,iot_mixio_connect:()=>aR,iot_mixio_connect_only:()=>IR,iot_mixio_disconnect:()=>dR,iot_mixio_format_msg:()=>hR,iot_mixio_format_topic:()=>MR,iot_mixly_key:()=>CR,iot_mqtt_client:()=>NR,iot_mqtt_data:()=>DR,iot_onenet_check:()=>iR,iot_onenet_connect:()=>eR,iot_onenet_disconnect:()=>tR,iot_onenet_publish:()=>sR,iot_onenet_publish_dict:()=>nR,iot_onenetconnect:()=>FR,iot_onenetdisconnect:()=>PR,iot_publish:()=>vR,iot_publish_container:()=>_R,iot_publish_item:()=>oR,iot_tiny_web_db_count:()=>kR,iot_tiny_web_db_delete:()=>KR,iot_tiny_web_db_get:()=>HR,iot_tiny_web_db_init:()=>GR,iot_tiny_web_db_init_with_mqtt:()=>UR,iot_tiny_web_db_search:()=>WR,iot_tiny_web_db_update:()=>wR,iot_wifi_connect:()=>ZO,iot_wificonnect:()=>fR,ollama_empty_history:()=>BR,use_ollama_llm_to_chat:()=>xR,use_ollama_llm_to_chat_return:()=>VR});var B={};e.r(B),e.d(B,{educore_mqtt_connect:()=>Lc,educore_mqtt_connect_success:()=>Fc,educore_mqtt_subscribe_message:()=>Nc,educore_mqtt_topic_publish:()=>fc,educore_mqtt_topic_subscribe:()=>Dc,educore_wifi_connect:()=>Ac,network_ap_connect:()=>nc,network_connect:()=>$R,network_get_connect:()=>ec,network_get_wifi:()=>ic,network_init:()=>QR,network_is_active:()=>qR,network_open:()=>zR,network_scan:()=>jR,network_server:()=>sc,network_socket_accept:()=>uc,network_socket_bind:()=>oc,network_socket_close:()=>Mc,network_socket_connect:()=>pc,network_socket_init:()=>_c,network_socket_listen:()=>ac,network_socket_readline:()=>rc,network_socket_receive:()=>lc,network_socket_receive_from:()=>Ic,network_socket_send:()=>dc,network_socket_send_to:()=>Tc,network_stop:()=>tc,network_wifi_connect:()=>ZR,ntptime_address:()=>Rc,ntptime_time:()=>Oc,requests_attribute:()=>mc,requests_attribute2:()=>Sc,requests_get:()=>hc,requests_get2:()=>gc,requests_method:()=>Ec,requests_post:()=>Cc});var G={};e.r(G),e.d(G,{get_potential_num:()=>Yc,nova_g1_motor:()=>vc,nova_g1_spk_en:()=>yc,nova_g1_usb:()=>Xc});var U={};e.r(U),e.d(U,{pe_g1_battery_left:()=>Vc,pe_g1_dc_motor:()=>Bc,pe_g1_dc_motor_speed:()=>Gc,pe_g1_servo_get_angle:()=>Hc,pe_g1_servo_get_speed:()=>kc,pe_g1_servo_set_angle:()=>Uc,pe_g1_servo_set_speed:()=>wc,pe_g1_use_i2c_init:()=>xc});var w={};e.r(w),e.d(w,{CI130X_BROADCAST:()=>Mg,CI130X_GET_THE_RECOGNIZED_CMD:()=>Tg,CI130X_GET_WHETHER_IDENTIFY:()=>Ig,CI130X_IDENTIFY_AND_SAVE:()=>dg,CI130X_SET_SYSTEM_CMD:()=>hg,HCSR04:()=>sC,PS2_Button:()=>aC,PS2_Buttons:()=>rC,PS2_Buttons_new:()=>TC,PS2_State:()=>uC,PS2_init:()=>_C,PS2_init_new:()=>dC,PS2_stk:()=>lC,PS2_stk_new:()=>MC,PS2_vibration:()=>pC,PS2_vibration_new:()=>IC,camera_sensor_init:()=>WC,camera_sensor_result:()=>KC,column_tube_foot:()=>jC,define_keyboards:()=>$C,educore_body_sensor:()=>yC,educore_button_sensor_extern:()=>BC,educore_camera_sensor:()=>kC,educore_infrared_sensor:()=>VC,educore_soilhum_sensor:()=>bC,educore_temp_sensor:()=>HC,educore_temphum_sensor:()=>xC,educore_ultrasonic_sensor:()=>UC,esp32_s2_weather_init:()=>eC,esp32_s2_weather_rain:()=>iC,esp32_s2_weather_wd:()=>tC,esp32_s2_weather_ws:()=>nC,extern_rfid_read:()=>Gg,extern_rfid_readcontent:()=>wg,extern_rfid_readid:()=>Ug,extern_rfid_status:()=>Wg,extern_rfid_write:()=>Hg,extern_rfid_write_return:()=>kg,get_keboards_value:()=>ZC,gnss_get_data:()=>OC,gnss_have_data:()=>EC,init_init_rotary_encoder:()=>eS,init_matrix_keyboard:()=>zC,interaction_whether_to_interaction:()=>rg,interaction_whether_to_interaction_SANT:()=>lg,line_tube_foot:()=>qC,mixbot_sensor_extern_get_addr:()=>NC,mixbot_sensor_extern_set_addr:()=>DC,pm25_get_data:()=>mC,radar_set_DETECTION_THRESHOLD:()=>ag,radar_set_DETECTION_THRESHOLD_SANT:()=>ug,robot_button_extern_get_value:()=>cC,robot_color_extern_get_value:()=>LC,robot_infrared_extern_get_value:()=>CC,robot_infrared_extern_grey_get_value:()=>SC,robot_potentiometer_extern_get_value:()=>AC,robot_sonar_extern_get_value:()=>fC,robot_sonar_extern_led:()=>FC,robot_touch_extern_get_value:()=>gC,rotary_key:()=>tS,sensor_APDS9960_extern:()=>Eg,sensor_DS18X20:()=>_g,sensor_LTR308_extern:()=>Og,sensor_LTR390UV_extern:()=>gg,sensor_MAX30102_extern:()=>mg,sensor_QMC5883L_extern:()=>Fg,sensor_VL530LX_extern:()=>Cg,sensor_adxl345_get_acceleration:()=>jc,sensor_aht11_extern:()=>Ag,sensor_bmp:()=>ng,sensor_compass_reset:()=>Vg,sensor_dht11:()=>Zc,sensor_hp203_extern:()=>Lg,sensor_light_level:()=>$c,sensor_lm35:()=>og,sensor_ltr381_extern:()=>Rg,sensor_mixgo_extern_button_attachInterrupt:()=>zc,sensor_mixgo_extern_button_get_presses:()=>Qc,sensor_mixgo_extern_button_is_pressed:()=>Kc,sensor_mixgo_extern_button_was_pressed:()=>Jc,sensor_mixgo_extern_light:()=>eg,sensor_mixgo_extern_pin_near:()=>ig,sensor_mixgo_extern_sound:()=>tg,sensor_mixgoce_hot_wheel_degrees:()=>Zg,sensor_mixgoce_hot_wheel_is_touched:()=>$g,sensor_mpu9250_attachGestureInterrupt:()=>qc,sensor_mpu9250_calibrate_compass:()=>yg,sensor_mpu9250_field_strength:()=>xg,sensor_mpu9250_gesture:()=>Pg,sensor_mpu9250_get_acceleration:()=>Yg,sensor_mpu9250_get_gyro:()=>Xg,sensor_mpu9250_get_magnetic:()=>vg,sensor_mpu9250_temperature:()=>bg,sensor_ms5611_extern:()=>Dg,sensor_ms5611_extern_altitude:()=>fg,sensor_read_humiture:()=>GC,sensor_sht:()=>sg,sensor_shtc3_extern:()=>Sg,sensor_spl06_001_extern:()=>Ng,sensor_ucs12071_extern:()=>cg,sensor_use_i2c_init:()=>pg,sensor_use_spi_init:()=>Bg,sensor_use_uart_init:()=>hC,sensor_weather_solo_init:()=>PC,sensor_weather_solo_rain:()=>XC,sensor_weather_solo_wd:()=>YC,sensor_weather_solo_ws:()=>vC,sensor_weigh_init:()=>JC,tvoc_get_data:()=>RC,ultrasonic_sensor_read_distance:()=>wC,weather_data:()=>Kg,weather_have_data:()=>Jg,weather_set_label:()=>zg,weather_set_label_container:()=>qg,weather_set_label_item:()=>jg,weather_uart_mixio:()=>Qg,weigh_sensor_get_weight:()=>QC});var H={};e.r(H),e.d(H,{HCSR04:()=>ES,RTC_set_date:()=>mS,RTC_set_time:()=>hS,bitbot_als_num:()=>NA,dht11:()=>XA,educore_button_sensor:()=>HA,educore_button_was_pressed:()=>kA,educore_gyroscope_sensor:()=>GA,educore_gyroscope_sensor_read:()=>UA,educore_gyroscope_sensor_shake:()=>wA,educore_light_sensor:()=>BA,educore_rfid_sensor:()=>WA,educore_rfid_sensor_scan:()=>KA,educore_rfid_sensor_scan_data:()=>JA,educore_voice_sensor:()=>xA,number1:()=>RS,number2:()=>cS,number3:()=>gS,number4:()=>CS,number5:()=>SS,number6:()=>AS,number7:()=>LS,onboard_RTC_get_time:()=>XS,onboard_RTC_get_time_str:()=>GS,onboard_RTC_get_timestamp:()=>yS,onboard_RTC_get_timetuple_to_str:()=>US,onboard_RTC_set_datetime:()=>VS,onboard_RTC_settime_string:()=>xS,onboard_RTC_timestamp_totuple:()=>bS,rfid_readcontent:()=>QS,rfid_readid:()=>JS,rfid_status:()=>jS,rfid_write:()=>zS,rfid_write_return:()=>qS,sensor_LTR308:()=>wS,sensor_aht11:()=>kS,sensor_bitbot_ALS:()=>LA,sensor_button_get_presses:()=>FA,sensor_button_is_pressed:()=>DA,sensor_button_was_pressed:()=>fA,sensor_distance_hrsc04:()=>MS,sensor_eulerangles:()=>ZS,sensor_field_strength:()=>yA,sensor_get_acceleration:()=>$S,sensor_get_temperature:()=>WS,sensor_get_the_coprocessor_version:()=>QA,sensor_hp203:()=>KS,sensor_light:()=>vA,sensor_mixbot_get_gyro:()=>AA,sensor_mixbot_patrol_calibrate:()=>gA,sensor_mixbot_patrol_value:()=>CA,sensor_mixbot_temperature:()=>SA,sensor_mixgo_LTR308:()=>YS,sensor_mixgo_button_attachInterrupt:()=>oS,sensor_mixgo_button_get_presses:()=>_S,sensor_mixgo_button_is_pressed:()=>nS,sensor_mixgo_button_was_pressed:()=>sS,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>rA,sensor_mixgo_cc_mmc5603_get_angle:()=>uA,sensor_mixgo_cc_mmc5603_get_magnetic:()=>aA,sensor_mixgo_light:()=>OS,sensor_mixgo_nova_LTR308:()=>PS,sensor_mixgo_nova_pin_near:()=>FS,sensor_mixgo_pin_near:()=>fS,sensor_mixgo_pin_near_double:()=>DS,sensor_mixgo_pin_near_single:()=>NS,sensor_mixgo_pin_pressed:()=>lS,sensor_mixgo_sant_color:()=>vS,sensor_mixgo_touch_slide:()=>TS,sensor_mixgocar42_button_attachInterrupt:()=>rS,sensor_mixgocar42_button_get_presses:()=>uS,sensor_mixgocar42_button_is_pressed:()=>pS,sensor_mixgocar42_button_was_pressed:()=>aS,sensor_mixgocar_battery_left:()=>cA,sensor_mixgocar_pin_near:()=>OA,sensor_mixgocar_pin_near_line:()=>EA,sensor_mixgocar_pin_near_state_change:()=>RA,sensor_mixgoce_pin_pressed:()=>dS,sensor_mixgoce_temperature:()=>dA,sensor_mixgome_temperature:()=>lA,sensor_mpython_pin_pressed:()=>IS,sensor_mpython_qmi8658_get_gyro:()=>IA,sensor_mpython_qmi8658_temperature:()=>TA,sensor_onboard_compass_reset:()=>pA,sensor_onboard_mpu9250_calibrate_compass:()=>sA,sensor_onboard_mpu9250_field_strength:()=>oA,sensor_onboard_mpu9250_gesture:()=>eA,sensor_onboard_mpu9250_get_acceleration:()=>tA,sensor_onboard_mpu9250_get_gyro:()=>nA,sensor_onboard_mpu9250_get_magnetic:()=>iA,sensor_onboard_mpu9250_temperature:()=>_A,sensor_pin_near:()=>YA,sensor_pin_pressed:()=>PA,sensor_read:()=>VA,sensor_rm_acc:()=>mA,sensor_rm_battery_left:()=>hA,sensor_rm_pin_near_double:()=>MA,sensor_rtc_init:()=>BS,sensor_sound:()=>HS,sensor_temperature:()=>bA,simulated_light_sensor:()=>zA});var k={};e.r(k),e.d(k,{serial_any:()=>_L,serial_begin:()=>rL,serial_print:()=>eL,serial_print_byte:()=>ZA,serial_print_hex:()=>iL,serial_println:()=>tL,serial_read_from_ai:()=>OL,serial_readline:()=>oL,serial_readstr:()=>sL,serial_readstr_until:()=>pL,serial_receive_data_event:()=>nL,serial_send_to_ai:()=>EL,serial_softserial:()=>uL,serial_softserial_new:()=>aL,system_input:()=>lL,system_print:()=>dL,system_print_container:()=>hL,system_print_end:()=>TL,system_print_inline:()=>IL,system_print_item:()=>mL,system_print_many:()=>ML});var W={};e.r(W),e.d(W,{Panic_with_status_code:()=>CL,Timer_init:()=>xL,base_delay:()=>GL,controls_delay:()=>gL,controls_delay_new:()=>cL,controls_millis:()=>AL,controls_uname:()=>NL,raw_block:()=>LL,reset:()=>SL,set_system_timer:()=>YL,system_bitbot_shutdown:()=>bL,system_machine_reset:()=>yL,system_ticks_diff:()=>FL,system_timer:()=>fL,system_timer_init:()=>PL,system_wdt_feed:()=>XL,system_wdt_init:()=>vL,time_ticks_diff:()=>BL,timer:()=>DL,timer2:()=>VL});var K={};e.r(K),e.d(K,{Air_daily_content:()=>eN,Air_now_content:()=>JL,Geo_moon_content:()=>iN,Geo_sun_content:()=>tN,Life_suggestion_content:()=>zL,Location_search_content:()=>jL,Tide_daily_content:()=>qL,WEATHER_DAILY:()=>HL,WEATHER_HOUR:()=>kL,WEATHER_NOW:()=>wL,Weather_alarm_content:()=>QL,Weather_daily:()=>$L,Weather_daily_content:()=>ZL,Weather_now:()=>WL,Weather_now_content:()=>KL});var J={};e.r(J),e.d(J,{PIN_init:()=>sD,actuator_extern_get_led_bright:()=>SN,actuator_extern_get_led_state:()=>AN,actuator_extern_led_bright:()=>CN,actuator_extern_led_brightness:()=>LN,actuator_ms32006_dcmotor:()=>rN,actuator_ms32006_init:()=>uN,actuator_ms32006_stepper:()=>lN,actuator_neopixel_init:()=>NN,actuator_neopixel_rgb:()=>FN,actuator_neopixel_rgb_all:()=>DN,actuator_neopixel_rgb_show_all_chase:()=>PN,actuator_neopixel_rgb_show_all_rainbow:()=>YN,actuator_neopixel_write:()=>fN,actuator_use_uart_init:()=>vN,backstage_esp32_music_play_list:()=>RN,esp32_music_get_tempo_extern:()=>EN,esp32_music_pitch:()=>IN,esp32_music_pitch_init:()=>dN,esp32_music_pitch_with_time:()=>TN,esp32_music_play_list:()=>ON,esp32_music_reset_extern:()=>cN,esp32_music_set_tempo_extern:()=>mN,esp32_music_stop:()=>MN,esp32_set_music_volume:()=>hN,mixbot_actuator_extern_get_addr:()=>iD,mixbot_actuator_extern_set_addr:()=>nD,mixbot_addr_extern:()=>HN,parrot_PIN_init:()=>aD,parrot_move_speed:()=>uD,pin_led_bright:()=>_D,player_play_music:()=>VN,player_set_mode:()=>xN,player_set_play:()=>yN,player_set_volume:()=>bN,player_whether_stop:()=>XN,robot_led_extern:()=>JN,robot_led_extern_get_value:()=>QN,robot_motor_extern:()=>kN,robot_motor_extern_get_speed:()=>WN,robot_servo_extern_absolute_run:()=>$N,robot_servo_extern_get_status:()=>zN,robot_servo_extern_relative_continue:()=>tD,robot_servo_extern_relative_origin:()=>ZN,robot_servo_extern_relative_run:()=>eD,robot_servo_extern_stop:()=>jN,robot_servo_extern_stop_mode:()=>qN,robot_traffic_light_extern:()=>KN,servo_PIN_init:()=>oD,servo_get_angle:()=>pN,servo_get_speed:()=>aN,servo_init:()=>nN,servo_move:()=>gN,servo_move_angle:()=>pD,servo_set_angle:()=>_N,servo_set_speed:()=>oN,servo_speed_360:()=>sN,syn6288_builtin_voice:()=>UN,syn6288_get_voice:()=>GN,syn6288_set_voice:()=>BN,syn6288_tts_play:()=>wN});var Q={};e.r(Q),e.d(Q,{actuator_dc_motor:()=>VD,actuator_dc_motor_stop:()=>BD,actuator_get_led_bright:()=>cD,actuator_get_led_state:()=>gD,actuator_led_bright:()=>RD,actuator_led_brightness:()=>CD,actuator_mixbot_buzzer_on_off:()=>kD,actuator_mixgo_nova_mic_get:()=>zD,actuator_mixgo_nova_mic_set:()=>QD,actuator_mixgo_nova_onboard_music_pitch:()=>tf,actuator_mixgo_nova_onboard_music_stop:()=>nf,actuator_mixgo_nova_play_audio:()=>ZD,actuator_mixgo_nova_play_online_audio:()=>ef,actuator_mixgo_nova_record_audio:()=>$D,actuator_mixgo_nova_voice_get:()=>jD,actuator_mixgo_nova_voice_set:()=>qD,actuator_mixgo_zero_led_color:()=>SD,actuator_onboard_neopixel_rgb:()=>PD,actuator_onboard_neopixel_rgb_all:()=>YD,actuator_onboard_neopixel_rgb_show_all_chase:()=>vD,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>XD,actuator_onboard_neopixel_write:()=>FD,actuator_stepper_keep:()=>bD,actuator_stepper_stop:()=>xD,analog_ble_keyboard_init:()=>Mf,analog_ble_keyboard_input:()=>Ef,analog_ble_keyboard_mouse_init:()=>Lf,analog_ble_keyboard_mouse_input:()=>Ff,analog_ble_keyboard_mouse_send_battery:()=>ff,analog_ble_keyboard_mouse_str:()=>Pf,analog_ble_keyboard_send_battery:()=>Rf,analog_ble_keyboard_str:()=>Of,analog_ble_mouse_init:()=>cf,analog_ble_mouse_input:()=>Sf,analog_ble_mouse_keyboard_input:()=>Yf,analog_ble_mouse_send_battery:()=>Af,analog_keyboard_input:()=>af,analog_keyboard_str:()=>If,analog_mouse_input:()=>lf,backstage_onboard_music_play_list:()=>hD,bitbot_motor:()=>JD,bitbot_move:()=>WD,bitbot_stop:()=>KD,ble_keyboard_connect:()=>mf,ble_keyboard_get_mac:()=>hf,ble_keyboard_mouse_connect:()=>Df,ble_keyboard_mouse_get_mac:()=>Nf,ble_mouse_connect:()=>Cf,ble_mouse_get_mac:()=>gf,cc_number:()=>AD,educore_ble_keyboard_input:()=>wf,educore_ble_sensor_connected:()=>Uf,educore_ble_sensor_init:()=>Gf,educore_buzzer:()=>vf,educore_buzzer_play_tone:()=>Xf,educore_buzzer_play_tone_time:()=>yf,educore_buzzer_stop:()=>bf,educore_neopixel_clear:()=>Bf,educore_neopixel_rgb:()=>Vf,educore_rgb_light:()=>xf,esp32_music_get_tempo:()=>lD,esp32_music_reset:()=>mD,esp32_music_set_tempo:()=>rD,esp32_onboard_music_pitch:()=>dD,esp32_onboard_music_pitch_with_time:()=>ID,esp32_onboard_music_play_list:()=>MD,esp32_onboard_music_stop:()=>TD,general_key:()=>rf,general_key_tuple:()=>Tf,get_keyboard_light:()=>Hf,get_power_output:()=>_f,ledswitch:()=>OD,mixbot_motor:()=>HD,mixbot_motor_status:()=>GD,mixbot_move:()=>UD,mixbot_stop:()=>wD,mouse_key:()=>df,number:()=>ED,record_audio:()=>Wf,rm_actuator_get_led_bright:()=>ND,rm_actuator_get_led_state:()=>DD,rm_actuator_led_bright:()=>LD,rm_actuator_led_brightness:()=>fD,rm_motor:()=>yD,set_all_power_output:()=>of,set_microphone_amplification:()=>kf,set_music_volume:()=>Kf,set_part_power_output:()=>pf,set_power_output:()=>sf,special_key:()=>uf});var z={};e.r(z),e.d(z,{ai_sensor_20object:()=>AF,ai_sensor_ailocal_class:()=>TF,ai_sensor_ailocal_class_result:()=>MF,ai_sensor_ailocal_train:()=>IF,ai_sensor_asr_recognize:()=>RF,ai_sensor_audio_play:()=>mF,ai_sensor_audio_record:()=>hF,ai_sensor_barcode:()=>Zf,ai_sensor_circle:()=>_F,ai_sensor_classifier_faces:()=>SF,ai_sensor_color:()=>uF,ai_sensor_color_chases:()=>dF,ai_sensor_color_chases_result:()=>lF,ai_sensor_config:()=>zf,ai_sensor_face:()=>CF,ai_sensor_find_20objects:()=>LF,ai_sensor_find_barcodes:()=>eF,ai_sensor_find_circles:()=>oF,ai_sensor_find_colors:()=>rF,ai_sensor_find_licenseplates:()=>gF,ai_sensor_find_lines:()=>sF,ai_sensor_find_qrcodes:()=>$f,ai_sensor_find_rects:()=>aF,ai_sensor_find_tags:()=>iF,ai_sensor_licenseplate:()=>cF,ai_sensor_line:()=>nF,ai_sensor_qrcode:()=>jf,ai_sensor_qrcode_lite:()=>Qf,ai_sensor_rect:()=>pF,ai_sensor_rgb:()=>qf,ai_sensor_tag:()=>tF,ai_sensor_use_uart_init:()=>Jf,ai_sensor_yolo_recognize:()=>EF,ai_sensor_yolo_recognize_result:()=>OF});var q={};e.r(q),e.d(q,{AI_CAMERA_INIT:()=>ZF,AI_CAMERA_INIT_FACERECOGNIZE:()=>iP,AI_CAMERA_INIT_SIMPLE:()=>DP,AI_STOP_ACQUISITION:()=>AP,CAMERA_LOOGOUT:()=>wF,CI130X_BROADCAST_SANT:()=>vF,CI130X_BROADCAST_SYSTEM_TIME:()=>yF,CI130X_GET_THE_RECOGNIZED_CMD_SANT:()=>YF,CI130X_GET_WHETHER_IDENTIFY_SANT:()=>PF,CI130X_IDENTIFY_AND_SAVE_SANT:()=>FF,CI130X_OPEN_AND_CLOSE:()=>fF,CI130X_PLAY_SYSTEM_CMD_SANT:()=>bF,CI130X_SET_SYSTEM_CMD_SANT:()=>XF,CONVERT_IMAGE_TO_JPG:()=>WF,CREATE_CAMERA:()=>xF,CREATE_CAMERA_SIMPLE:()=>NP,DELETE_FACE_ALL:()=>MP,DELETE_FACE_FROM_DATABASE:()=>TP,GET_CAT_FACE_DETECTION_NUM:()=>RP,GET_COLOR_DETECTION_NUM:()=>OP,GET_FACE_DETECTION_NAME:()=>CP,GET_FACE_DETECTION_NUM:()=>gP,GET_HOW_MUCH_RECOGNITION:()=>oP,GET_HUMAN_DETECTION_NUM:()=>cP,GET_IMAGE_AND_SAVE:()=>BF,GET_IMAGE_FROM_NET:()=>UF,GET_NO_CAT_OR_FACE_RECOGNITION:()=>rP,GET_NO_FACE_RECOGNITION_INFO:()=>SP,GET_NO_RECOGNITION:()=>pP,GET_NO_XY_RECOGNITION:()=>aP,GET_NO_XY_RECOGNITION_FACE:()=>uP,GET_PICTURE_DATA_EXACT:()=>HF,GET_PICTURE_DATA_WHS:()=>KF,GET_PICTURE_RECOGNITION_DATA:()=>EP,GET_PICTURE_WIDTH_HEIGHT_DEVICE:()=>kF,GET_QR_CODE_RECOGNITION_DATA:()=>mP,GET_SCREEN_IMAGE:()=>jF,GET_SCREEN_IMAGE_SIZE:()=>$F,MIXIO_REPORT_IMAGE_DATA:()=>LP,MODEL_INIT_HEIGHT:()=>tP,MODEL_INIT_WIDTH:()=>eP,MODEL_LOGOUT:()=>nP,MODEL_RUN:()=>sP,MODEL_WHETHER_RUN_SUCCEED:()=>_P,OPEN_IMAGE:()=>GF,PRINT_FACE_DATABASE:()=>hP,REGISTER_NEW_FACE:()=>IP,REGISTER_NEW_FACE_SIMPLE:()=>FP,Register_color_recognition:()=>dP,Register_color_recognition_fixed:()=>lP,Register_color_recognition_fixed_SIMPLE:()=>fP,SCREEN_DISPLAY_IMAGE:()=>zF,SCREEN_DISPLAY_IMAGE_LOCATION:()=>qF,SCREEN_SHOW_CAM_GRAPH_SHOOT:()=>JF,SCREEN_SHOW_CAM_GRAPH_SHOOT_LOCATION:()=>QF,SHOOT_AND_SAVE_PICTURE:()=>VF,VOICE_RECOGNITION_CONTROL:()=>DF,yesorno:()=>NF});var j={};e.r(j),e.d(j,{MICROPYTHON_AI_Speech_asr:()=>vP,MICROPYTHON_AI_Speech_unit:()=>YP,MICROPYTHON_AI_client:()=>PP});var $={};e.r($),e.d($,{mpython_blynk_app_data:()=>WP,mpython_blynk_app_notify:()=>GP,mpython_blynk_email:()=>KP,mpython_blynk_get_timers:()=>wP,mpython_blynk_on_connected:()=>xP,mpython_blynk_on_disconnected:()=>bP,mpython_blynk_run:()=>BP,mpython_blynk_sensor_data_to_app:()=>kP,mpython_blynk_set_property:()=>JP,mpython_blynk_setup:()=>QP,mpython_blynk_stop_timers:()=>UP,mpython_blynk_sync_virtual:()=>yP,mpython_blynk_terminal_widget_vpin:()=>XP,mpython_blynktimer:()=>HP,mpython_blynktimer_run:()=>VP});var Z={};e.r(Z),e.d(Z,{communicate_bluetooth_central_init:()=>fY,communicate_bluetooth_connect:()=>YY,communicate_bluetooth_disconnect:()=>vY,communicate_bluetooth_handle:()=>BY,communicate_bluetooth_is_connected:()=>yY,communicate_bluetooth_mac:()=>XY,communicate_bluetooth_peripheral_init:()=>FY,communicate_bluetooth_recv:()=>VY,communicate_bluetooth_recv_only:()=>xY,communicate_bluetooth_scan:()=>PY,communicate_bluetooth_send:()=>bY,communicate_espnow_init:()=>GY,communicate_espnow_init_new:()=>UY,communicate_i2c_available:()=>iY,communicate_i2c_init:()=>jP,communicate_i2c_master_read:()=>tY,communicate_i2c_onboard:()=>zP,communicate_i2c_read:()=>$P,communicate_i2c_scan:()=>eY,communicate_i2c_write:()=>ZP,communicate_ir_recv_init:()=>OY,communicate_ir_send_init:()=>SY,communicate_ow_init:()=>IY,communicate_ow_read:()=>hY,communicate_ow_reset:()=>MY,communicate_ow_scan:()=>TY,communicate_ow_select:()=>EY,communicate_ow_write:()=>mY,communicate_spi_buffer:()=>oY,communicate_spi_init:()=>sY,communicate_spi_onboard:()=>qP,communicate_spi_read:()=>pY,communicate_spi_read_output:()=>aY,communicate_spi_readinto:()=>uY,communicate_spi_readinto_output:()=>rY,communicate_spi_set:()=>_Y,communicate_spi_write:()=>lY,communicate_spi_write_readinto:()=>dY,espnow_radio_channel:()=>JY,espnow_radio_channel_new:()=>zY,espnow_radio_on_off:()=>qY,espnow_radio_rec:()=>$Y,espnow_radio_recv:()=>ev,espnow_radio_recv_certain_msg:()=>tv,espnow_radio_recv_certain_msg_new:()=>nv,espnow_radio_recv_msg:()=>ZY,espnow_radio_recv_new:()=>iv,espnow_radio_send:()=>jY,espnow_radio_txpower:()=>QY,i2c_slave_onreceive:()=>nY,internal_variable:()=>RY,ir_recv_timeout:()=>CY,ir_transmit_busy:()=>DY,ir_transmit_conventional_data:()=>AY,ir_transmit_raw_code:()=>NY,ir_transmit_study_code:()=>LY,ir_whether_recv:()=>gY,lora_init:()=>sv,lora_packet:()=>_v,lora_recv:()=>pv,lora_send:()=>ov,network_espnow_info:()=>HY,network_espnow_mac:()=>wY,network_espnow_recv:()=>kY,network_espnow_recv_handle:()=>KY,network_espnow_send:()=>WY,recv_fun:()=>cY,urequests_attribute:()=>uv,urequests_get:()=>av,urequests_method:()=>rv});var ee={};e.r(ee),e.d(ee,{display_animate:()=>yv,display_circle:()=>bv,display_color_seclet:()=>Jv,display_draw_4strings:()=>Dv,display_fill:()=>Xv,display_lcd_use_i2c_init:()=>Zv,display_line:()=>Pv,display_line_arbitrarily:()=>fv,display_matrix_extern_bright_point:()=>cv,display_matrix_extern_bright_screen:()=>Cv,display_matrix_extern_clear:()=>Ev,display_matrix_extern_get_pixel:()=>Rv,display_matrix_extern_get_screen_pixel:()=>gv,display_matrix_extern_image_builtins:()=>Sv,display_matrix_extern_scroll_string:()=>hv,display_matrix_extern_scroll_string_delay:()=>mv,display_matrix_extern_shift:()=>Ov,display_matrix_extern_show_frame_string:()=>Tv,display_matrix_extern_show_frame_string_delay:()=>Mv,display_matrix_extern_show_image:()=>dv,display_matrix_extern_show_image_or_string_delay:()=>Iv,display_matrix_use_i2c_init:()=>lv,display_oled_drawPixel:()=>Bv,display_oled_showBitmap:()=>Vv,display_oled_use_i2c_init:()=>sX,display_onoff:()=>Yv,display_rect:()=>Fv,display_tm1650_power:()=>Uv,display_tm1650_set_brightness:()=>kv,display_tm1650_show_dot:()=>Hv,display_tm1650_show_num:()=>wv,display_tm_use_i2c_init:()=>Gv,display_triangle:()=>xv,display_use_i2c_init:()=>Nv,extern_oled_bright_point:()=>hX,extern_oled_clear:()=>IX,extern_oled_get_pixel:()=>MX,extern_oled_hvline:()=>EX,extern_oled_line:()=>OX,extern_oled_scroll_string:()=>lX,extern_oled_scroll_string_delay:()=>dX,extern_oled_shape_rect:()=>mX,extern_oled_shift:()=>TX,extern_oled_show_frame_string:()=>uX,extern_oled_show_frame_string_delay:()=>rX,extern_oled_show_image:()=>_X,extern_oled_show_image_or_string_delay:()=>aX,extern_oled_show_image_xy:()=>oX,extern_oled_show_string:()=>pX,image_shift:()=>vv,lcd_backlight:()=>iX,lcd_clear:()=>nX,lcd_print_string:()=>tX,lcd_show_image_or_string_delay:()=>eX,matrix_extern_image_arithmetic:()=>Av,matrix_extern_image_invert:()=>Lv,tft_fill:()=>jv,tft_line_arbitrarily:()=>$v,tft_scroll_string_delay:()=>qv,tft_show_frame_string_delay:()=>zv,tft_show_image_or_string_delay:()=>Qv,tft_show_image_xy:()=>Kv,tft_use_spi_init:()=>Wv});var te={};e.r(te),e.d(te,{bitbot_display_bitmap_create:()=>dy,bitbot_display_image_create:()=>ly,display_available:()=>vX,display_bitmap_create:()=>PX,display_bright_point:()=>VX,display_bright_screen:()=>GX,display_clear:()=>YX,display_get_pixel:()=>xX,display_get_screen_pixel:()=>BX,display_image_builtins:()=>DX,display_image_builtins_all:()=>fX,display_image_create:()=>FX,display_scroll_string:()=>SX,display_scroll_string_delay:()=>AX,display_scroll_way:()=>LX,display_shift:()=>bX,display_show_frame_string:()=>gX,display_show_frame_string_delay:()=>CX,display_show_image:()=>RX,display_show_image_or_string_delay:()=>cX,draw_pointer:()=>fy,image_arithmetic:()=>XX,image_invert:()=>yX,mixbot_display_bitmap_create:()=>oy,mixbot_display_bright_screen:()=>uy,mixbot_display_get_ambientbright:()=>ay,mixbot_display_get_screen_pixel:()=>py,mixbot_display_image_create:()=>_y,mixbot_display_rotate:()=>ry,mixgo_display_bitmap_create:()=>JX,mixgo_display_image_create_new:()=>KX,mixgome_display_bitmap_create:()=>wX,mixgome_display_font:()=>WX,mixgome_display_image_create:()=>UX,mixgomini_display_bitmap_create:()=>kX,mixgomini_display_image_create:()=>HX,mpython_display_hvline:()=>ny,mpython_display_line:()=>sy,mpython_display_shape_rect:()=>iy,mpython_pbm_image:()=>QX,nova_draw_pointer:()=>Fy,onboard_oled_bright_point:()=>ty,onboard_oled_scroll_string_delay:()=>ey,onboard_oled_show_frame_string_delay:()=>ZX,onboard_oled_show_image:()=>zX,onboard_oled_show_image_or_string_delay:()=>$X,onboard_oled_show_image_xy:()=>qX,onboard_oled_show_string:()=>jX,onboard_tft_bright_point:()=>cy,onboard_tft_bright_screen:()=>Vy,onboard_tft_clear:()=>By,onboard_tft_clock_clear:()=>Ny,onboard_tft_clock_draw:()=>Ly,onboard_tft_clock_get_rtctime:()=>Sy,onboard_tft_clock_init:()=>Cy,onboard_tft_clock_set_time:()=>Ay,onboard_tft_display_hvline:()=>Ey,onboard_tft_display_line:()=>Oy,onboard_tft_display_shape_circle:()=>Dy,onboard_tft_display_shape_rect:()=>my,onboard_tft_fill:()=>gy,onboard_tft_get_pixel:()=>Ry,onboard_tft_get_screen_pixel:()=>xy,onboard_tft_scroll_string_delay:()=>NX,onboard_tft_shift:()=>by,onboard_tft_show_frame_string:()=>yy,onboard_tft_show_frame_string_delay:()=>hy,onboard_tft_show_image:()=>Xy,onboard_tft_show_image_or_string_delay:()=>My,onboard_tft_show_image_xy:()=>Iy,onboard_tft_show_image_xy_direct:()=>Ty,onboard_tft_show_qrcode:()=>Yy,onboard_tft_show_qrcode_details:()=>vy,onboard_tft_show_texts:()=>Py});var ie={};e.r(ie),e.d(ie,{factory_block:()=>Jy,factory_block_return:()=>Qy,factory_block_return_with_textarea:()=>qy,factory_block_with_textarea:()=>zy,factory_callMethod_noreturn:()=>Wy,factory_callMethod_return:()=>Ky,factory_declare:()=>ky,factory_from_import:()=>Gy,factory_function_noreturn:()=>wy,factory_function_return:()=>Hy,factory_import:()=>Uy,folding_block:()=>jy});var ne={};e.r(ne),e.d(ne,{inout_analog_atten:()=>db,inout_analog_read:()=>_b,inout_analog_read_init:()=>lb,inout_analog_write:()=>ib,inout_analog_write_init:()=>rb,inout_analog_write_set:()=>nb,inout_digital_init:()=>ab,inout_digital_read:()=>eb,inout_digital_write:()=>Zy,inout_highlow:()=>$y,inout_pin_attachInterrupt:()=>pb,inout_pin_pressed:()=>ob,inout_pin_pressed_init:()=>Ib,inout_pwm_analog_write:()=>tb,inout_pwm_analog_write_init:()=>ub,inout_pwm_analog_write_set_freq:()=>sb});var se={};e.r(se),e.d(se,{IOT_CONNECT_OLLAMA:()=>wb,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>vb,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>Pb,IOT_EMQX_PING:()=>Xb,IOT_FORMATTING:()=>fb,IOT_FORMAT_STRING:()=>Fb,IOT_MIXIO_NTP:()=>yb,IOT_MIXIO_PUBLISH:()=>cb,IOT_MIXIO_PUBLISHEX:()=>gb,IOT_MIXIO_SUBSCRIBE:()=>Cb,iot_client_onboard:()=>bb,iot_connect_ollama:()=>Ub,iot_connect_openai:()=>Hb,iot_http_client:()=>xb,iot_http_data:()=>Vb,iot_mixio_check:()=>Lb,iot_mixio_connect:()=>Rb,iot_mixio_connect_only:()=>Ab,iot_mixio_disconnect:()=>Sb,iot_mixio_format_msg:()=>Db,iot_mixio_format_topic:()=>Nb,iot_mixly_key:()=>Yb,iot_mqtt_client:()=>Bb,iot_mqtt_data:()=>Gb,iot_onenet_check:()=>Eb,iot_onenet_connect:()=>Mb,iot_onenet_disconnect:()=>hb,iot_onenet_publish:()=>Ob,iot_onenet_publish_dict:()=>mb,iot_tiny_web_db_count:()=>jb,iot_tiny_web_db_delete:()=>Zb,iot_tiny_web_db_get:()=>qb,iot_tiny_web_db_init:()=>Jb,iot_tiny_web_db_init_with_mqtt:()=>Qb,iot_tiny_web_db_search:()=>$b,iot_tiny_web_db_update:()=>zb,iot_wifi_connect:()=>Tb,ollama_empty_history:()=>Kb,use_ollama_llm_to_chat:()=>kb,use_ollama_llm_to_chat_return:()=>Wb});var _e={};e.r(_e),e.d(_e,{educore_mqtt_connect:()=>Px,educore_mqtt_connect_success:()=>yx,educore_mqtt_subscribe_message:()=>Yx,educore_mqtt_topic_publish:()=>Xx,educore_mqtt_topic_subscribe:()=>vx,educore_wifi_connect:()=>Fx,network_ap_connect:()=>ax,network_connect:()=>tx,network_get_connect:()=>nx,network_get_wifi:()=>px,network_init:()=>ex,network_is_active:()=>ox,network_open:()=>_x,network_scan:()=>ux,network_server:()=>rx,network_socket_accept:()=>Mx,network_socket_bind:()=>dx,network_socket_close:()=>cx,network_socket_connect:()=>Ix,network_socket_init:()=>lx,network_socket_listen:()=>Tx,network_socket_readline:()=>hx,network_socket_receive:()=>mx,network_socket_receive_from:()=>Ox,network_socket_send:()=>Ex,network_socket_send_to:()=>Rx,network_stop:()=>sx,network_wifi_connect:()=>ix,ntptime_address:()=>Lx,ntptime_time:()=>Ax,requests_attribute:()=>Cx,requests_attribute2:()=>Dx,requests_get:()=>gx,requests_get2:()=>Nx,requests_method:()=>Sx,requests_post:()=>fx});var oe={};e.r(oe),e.d(oe,{get_potential_num:()=>bx,nova_g1_motor:()=>xx,nova_g1_spk_en:()=>Bx,nova_g1_usb:()=>Vx});var pe={};e.r(pe),e.d(pe,{pe_g1_battery_left:()=>Ux,pe_g1_dc_motor:()=>wx,pe_g1_dc_motor_speed:()=>Hx,pe_g1_servo_get_angle:()=>Kx,pe_g1_servo_get_speed:()=>Jx,pe_g1_servo_set_angle:()=>kx,pe_g1_servo_set_speed:()=>Wx,pe_g1_use_i2c_init:()=>Gx});var ae={};e.r(ae),e.d(ae,{CI130X_BROADCAST:()=>hV,CI130X_GET_THE_RECOGNIZED_CMD:()=>MV,CI130X_GET_WHETHER_IDENTIFY:()=>TV,CI130X_IDENTIFY_AND_SAVE:()=>IV,CI130X_SET_SYSTEM_CMD:()=>mV,HCSR04:()=>zV,PS2_Button:()=>$V,PS2_Buttons:()=>ZV,PS2_Buttons_new:()=>pB,PS2_State:()=>eB,PS2_init:()=>qV,PS2_init_new:()=>_B,PS2_stk:()=>tB,PS2_stk_new:()=>aB,PS2_vibration:()=>jV,PS2_vibration_new:()=>oB,RTC_get_time:()=>nB,RTC_set_date:()=>tV,RTC_set_datetime:()=>iB,RTC_set_time:()=>eV,camera_sensor_init:()=>BB,camera_sensor_result:()=>GB,column_tube_foot:()=>kB,define_keyboards:()=>WB,educore_body_sensor:()=>fB,educore_button_sensor_extern:()=>vB,educore_camera_sensor:()=>VB,educore_infrared_sensor:()=>YB,educore_soilhum_sensor:()=>FB,educore_temp_sensor:()=>xB,educore_temphum_sensor:()=>PB,educore_ultrasonic_sensor:()=>yB,esp32_s2_weather_init:()=>WV,esp32_s2_weather_rain:()=>JV,esp32_s2_weather_wd:()=>KV,esp32_s2_weather_ws:()=>QV,extern_rfid_read:()=>vV,extern_rfid_readcontent:()=>yV,extern_rfid_readid:()=>XV,extern_rfid_status:()=>VV,extern_rfid_write:()=>bV,extern_rfid_write_return:()=>xV,get_keboards_value:()=>JB,gnss_get_data:()=>lB,gnss_have_data:()=>dB,init_init_rotary_encoder:()=>QB,init_matrix_keyboard:()=>KB,interaction_whether_to_interaction:()=>lV,interaction_whether_to_interaction_SANT:()=>dV,line_tube_foot:()=>HB,mixbot_sensor_extern_get_addr:()=>gB,mixbot_sensor_extern_set_addr:()=>CB,pm25_get_data:()=>rB,radar_set_DETECTION_THRESHOLD:()=>uV,radar_set_DETECTION_THRESHOLD_SANT:()=>rV,robot_button_extern_get_value:()=>TB,robot_color_extern_get_value:()=>OB,robot_infrared_extern_get_value:()=>hB,robot_infrared_extern_grey_get_value:()=>mB,robot_potentiometer_extern_get_value:()=>EB,robot_sonar_extern_get_value:()=>RB,robot_sonar_extern_led:()=>cB,robot_touch_extern_get_value:()=>MB,rotary_key:()=>zB,sensor_APDS9960_extern:()=>OV,sensor_DS18X20:()=>DB,sensor_LTR308_extern:()=>RV,sensor_LTR390UV_extern:()=>NV,sensor_MAX30102_extern:()=>EV,sensor_QMC5883L_extern:()=>DV,sensor_VL530LX_extern:()=>PV,sensor_aht11_extern:()=>FV,sensor_bmp:()=>oV,sensor_dht11:()=>sB,sensor_distance_hrsc04:()=>Zx,sensor_hp203_extern:()=>cV,sensor_ltr381_extern:()=>AV,sensor_mixgo_extern_button_attachInterrupt:()=>jx,sensor_mixgo_extern_button_get_presses:()=>qx,sensor_mixgo_extern_button_is_pressed:()=>Qx,sensor_mixgo_extern_button_was_pressed:()=>zx,sensor_mixgo_extern_light:()=>iV,sensor_mixgo_extern_pin_near:()=>sV,sensor_mixgo_extern_sound:()=>nV,sensor_mixgoce_hot_wheel_degrees:()=>kV,sensor_mixgoce_hot_wheel_is_touched:()=>HV,sensor_mpu9250_attachGestureInterrupt:()=>$x,sensor_ms5611_extern:()=>CV,sensor_ms5611_extern_altitude:()=>SV,sensor_read_humiture:()=>XB,sensor_rtc_init:()=>_V,sensor_sht:()=>pV,sensor_shtc3_extern:()=>fV,sensor_spl06_001_extern:()=>gV,sensor_ucs12071_extern:()=>LV,sensor_use_i2c_init:()=>aV,sensor_use_spi_init:()=>YV,sensor_use_uart_init:()=>uB,sensor_weather_solo_init:()=>SB,sensor_weather_solo_rain:()=>NB,sensor_weather_solo_wd:()=>AB,sensor_weather_solo_ws:()=>LB,sensor_weigh_init:()=>UB,tvoc_get_data:()=>IB,ultrasonic_sensor_read_distance:()=>bB,weather_data:()=>BV,weather_have_data:()=>GV,weather_set_label:()=>wV,weather_uart_mixio:()=>UV,weigh_sensor_get_weight:()=>wB});var ue={};e.r(ue),e.d(ue,{HCSR04:()=>sG,bitbot_als_num:()=>LU,dht11:()=>XU,educore_button_sensor:()=>UU,educore_button_was_pressed:()=>wU,educore_gyroscope_sensor:()=>VU,educore_gyroscope_sensor_read:()=>BU,educore_gyroscope_sensor_shake:()=>GU,educore_light_sensor:()=>xU,educore_rfid_sensor:()=>HU,educore_rfid_sensor_scan:()=>kU,educore_rfid_sensor_scan_data:()=>WU,educore_voice_sensor:()=>yU,number1:()=>_G,number2:()=>oG,number3:()=>pG,number4:()=>aG,number5:()=>uG,number6:()=>rG,number7:()=>lG,onboard_RTC_get_time:()=>iU,onboard_RTC_get_time_str:()=>_U,onboard_RTC_get_timestamp:()=>nU,onboard_RTC_get_timetuple_to_str:()=>oU,onboard_RTC_set_datetime:()=>eU,onboard_RTC_settime_string:()=>tU,onboard_RTC_timestamp_totuple:()=>sU,rfid_readcontent:()=>NG,rfid_readid:()=>LG,rfid_status:()=>FG,rfid_write:()=>DG,rfid_write_return:()=>fG,sensor_LTR308:()=>cG,sensor_adxl345_get_acceleration:()=>BG,sensor_aht11:()=>SG,sensor_bitbot_ALS:()=>AU,sensor_button_get_presses:()=>fU,sensor_button_is_pressed:()=>NU,sensor_button_was_pressed:()=>DU,sensor_compass_reset:()=>WG,sensor_ds18x20:()=>OG,sensor_eulerangles:()=>YG,sensor_get_acceleration:()=>PG,sensor_get_temperature:()=>AG,sensor_get_the_coprocessor_version:()=>KU,sensor_hp203:()=>CG,sensor_light:()=>vU,sensor_lm35:()=>RG,sensor_mixbot_get_gyro:()=>SU,sensor_mixbot_patrol_calibrate:()=>cU,sensor_mixbot_patrol_value:()=>gU,sensor_mixbot_temperature:()=>CU,sensor_mixgo_LTR308:()=>hG,sensor_mixgo_button_attachInterrupt:()=>ZB,sensor_mixgo_button_get_presses:()=>$B,sensor_mixgo_button_is_pressed:()=>qB,sensor_mixgo_button_was_pressed:()=>jB,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>uU,sensor_mixgo_cc_mmc5603_get_angle:()=>aU,sensor_mixgo_cc_mmc5603_get_magnetic:()=>pU,sensor_mixgo_light:()=>YU,sensor_mixgo_nova_LTR308:()=>EG,sensor_mixgo_nova_pin_near:()=>MG,sensor_mixgo_pin_near:()=>TG,sensor_mixgo_pin_near_double:()=>IG,sensor_mixgo_pin_near_single:()=>dG,sensor_mixgo_pin_pressed:()=>xG,sensor_mixgo_sant_color:()=>mG,sensor_mixgo_touch_slide:()=>bG,sensor_mixgocar42_button_attachInterrupt:()=>nG,sensor_mixgocar42_button_get_presses:()=>iG,sensor_mixgocar42_button_is_pressed:()=>eG,sensor_mixgocar42_button_was_pressed:()=>tG,sensor_mixgocar_battery_left:()=>RU,sensor_mixgocar_pin_near:()=>EU,sensor_mixgocar_pin_near_line:()=>mU,sensor_mixgocar_pin_near_state_change:()=>OU,sensor_mixgoce_pin_pressed:()=>yG,sensor_mixgoce_temperature:()=>lU,sensor_mixgome_temperature:()=>rU,sensor_mpu9250_calibrate_compass:()=>wG,sensor_mpu9250_field_strength:()=>kG,sensor_mpu9250_gesture:()=>vG,sensor_mpu9250_get_acceleration:()=>XG,sensor_mpu9250_get_gyro:()=>UG,sensor_mpu9250_get_magnetic:()=>GG,sensor_mpu9250_temperature:()=>HG,sensor_mpython_pin_pressed:()=>VG,sensor_mpython_qmi8658_get_gyro:()=>dU,sensor_mpython_qmi8658_temperature:()=>IU,sensor_onboard_compass_reset:()=>ZG,sensor_onboard_mpu9250_calibrate_compass:()=>qG,sensor_onboard_mpu9250_field_strength:()=>$G,sensor_onboard_mpu9250_gesture:()=>KG,sensor_onboard_mpu9250_get_acceleration:()=>JG,sensor_onboard_mpu9250_get_gyro:()=>zG,sensor_onboard_mpu9250_get_magnetic:()=>QG,sensor_onboard_mpu9250_temperature:()=>jG,sensor_pin_near:()=>PU,sensor_pin_pressed:()=>FU,sensor_read:()=>bU,sensor_rm_acc:()=>hU,sensor_rm_battery_left:()=>MU,sensor_rm_pin_near_double:()=>TU,sensor_sound:()=>gG,simulated_light_sensor:()=>JU});var re={};e.r(re),e.d(re,{serial_any:()=>$U,serial_print:()=>QU,serial_print_byte:()=>zU,serial_print_hex:()=>jU,serial_println:()=>qU,serial_read_from_ai:()=>uw,serial_readline:()=>ew,serial_readstr:()=>ZU,serial_send_to_ai:()=>aw,serial_softserial:()=>tw,serial_softserial_new:()=>iw,system_input:()=>nw,system_print:()=>sw,system_print_end:()=>ow,system_print_inline:()=>_w,system_print_many:()=>pw});var le={};e.r(le),e.d(le,{Panic_with_status_code:()=>cw,Timer_init:()=>xw,base_delay:()=>Gw,controls_delay:()=>Lw,controls_delay_new:()=>Nw,controls_end_program:()=>Cw,controls_millis:()=>gw,controls_uname:()=>Aw,reset:()=>Sw,set_system_timer:()=>fw,system_bitbot_shutdown:()=>bw,system_device_name:()=>Ow,system_device_serial_number:()=>Rw,system_event_bus_source:()=>mw,system_event_bus_value:()=>Ew,system_machine_reset:()=>yw,system_on_event:()=>Tw,system_raise_event:()=>Iw,system_reset:()=>lw,system_run_in_background:()=>rw,system_ticks_diff:()=>Fw,system_timer:()=>Yw,system_timer_init:()=>Pw,system_timestamp:()=>Mw,system_value:()=>hw,system_wait:()=>dw,system_wdt_feed:()=>Xw,system_wdt_init:()=>vw,time_ticks_diff:()=>Bw,timer:()=>Dw,timer2:()=>Vw});var de={};e.r(de),e.d(de,{Air_daily_content:()=>Zw,Air_now_content:()=>Kw,Geo_moon_content:()=>tH,Geo_sun_content:()=>eH,Life_suggestion_content:()=>Qw,Location_search_content:()=>qw,Tide_daily_content:()=>zw,WEATHER_DAILY:()=>ww,WEATHER_HOUR:()=>Hw,WEATHER_NOW:()=>Uw,Weather_alarm_content:()=>Jw,Weather_daily:()=>jw,Weather_daily_content:()=>$w,Weather_now:()=>kw,Weather_now_content:()=>Ww});var Ie={};e.r(Ie),e.d(Ie,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>sH});var Te={};e.r(Te),e.d(Te,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>oH});var Me={};e.r(Me),e.d(Me,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>aH});var he={};e.r(he),e.d(he,{controls_pin_attachInterrupt:()=>DH,inout_analog_atten:()=>EH,inout_analog_write:()=>hH,inout_analog_write_init:()=>gH,inout_analog_write_set:()=>mH,inout_analog_write_set_freq:()=>SH,inout_digital_init:()=>cH,inout_digital_read:()=>MH,inout_digital_write:()=>TH,inout_highlow:()=>IH,inout_pinMode:()=>AH,inout_pin_attachInterrupt:()=>RH,inout_pin_pressed:()=>OH,inout_pin_pressed_init:()=>CH,pin_pressed:()=>NH,pin_pressed_init:()=>LH});var me={};e.r(me),e.d(me,{analog_input:()=>xH,analog_output:()=>BH,espnow_channel:()=>XH,haskylens_model:()=>yH,i2c_A_pin:()=>GH,i2c_B_pin:()=>UH,pins_analog:()=>KH,pins_analog_pin:()=>JH,pins_axis:()=>rk,pins_brightness:()=>lk,pins_builtinimg:()=>nk,pins_builtinimg_extern:()=>sk,pins_button:()=>qH,pins_buttonB:()=>jH,pins_dac:()=>QH,pins_dac_pin:()=>zH,pins_digital:()=>FH,pins_digital_dot:()=>Ok,pins_digital_pin:()=>PH,pins_exlcdh:()=>ak,pins_exlcdv:()=>uk,pins_imglist:()=>_k,pins_input_pin:()=>YH,pins_one_more:()=>Ek,pins_output_pin:()=>vH,pins_playlist:()=>ok,pins_playlist_extern:()=>pk,pins_pwm:()=>$H,pins_pwm_pin:()=>ZH,pins_radio_datarate:()=>mk,pins_radio_power:()=>hk,pins_serial:()=>ik,pins_tone_notes:()=>Mk,pins_touch:()=>tk,pins_touch_pin:()=>ek,pins_tts_bgmusic:()=>Tk,pins_tts_builtin_music:()=>Ik,pins_tts_voice:()=>dk,pwm_input:()=>bH,pwm_output:()=>VH,spi_A_pin:()=>wH,spi_B_pin:()=>HH,spi_C_pin:()=>kH,spi_D_pin:()=>WH,timer_id_pin:()=>Rk});var Ee={};e.r(Ee),e.d(Ee,{inout_analog_atten:()=>Fk,inout_analog_write:()=>Sk,inout_analog_write_init:()=>fk,inout_analog_write_set:()=>Ak,inout_digital_init:()=>Dk,inout_digital_read:()=>Ck,inout_digital_write:()=>gk,inout_highlow:()=>ck,inout_pin_attachInterrupt:()=>Nk,inout_pin_pressed:()=>Lk,inout_pin_pressed_init:()=>Pk});var Oe={};e.r(Oe),e.d(Oe,{analog_input:()=>Uk,analog_output:()=>Hk,espnow_channel:()=>Bk,haskylens_model:()=>Gk,i2c_A_pin:()=>kk,i2c_B_pin:()=>Wk,pins_analog:()=>jk,pins_analog_pin:()=>qk,pins_axis:()=>rW,pins_brightness:()=>IW,pins_builtinimg:()=>CW,pins_builtinimg_extern:()=>oW,pins_button:()=>vk,pins_buttonB:()=>Xk,pins_dac:()=>tW,pins_dac_pin:()=>eW,pins_digital:()=>Yk,pins_digital_dot:()=>cW,pins_digital_pin:()=>yk,pins_exlcdh:()=>lW,pins_exlcdv:()=>dW,pins_imglist:()=>pW,pins_input_pin:()=>bk,pins_interrupt:()=>sW,pins_one_more:()=>RW,pins_output_pin:()=>xk,pins_playlist:()=>aW,pins_playlist_extern:()=>uW,pins_pwm:()=>Zk,pins_pwm_input:()=>Vk,pins_pwm_pin:()=>$k,pins_radio_datarate:()=>OW,pins_radio_power:()=>EW,pins_serial:()=>_W,pins_tone_notes:()=>mW,pins_touch:()=>nW,pins_touch_pin:()=>iW,pins_tts_bgmusic:()=>hW,pins_tts_builtin_music:()=>MW,pins_tts_voice:()=>TW,pwm_output:()=>wk,spi_A_pin:()=>Kk,spi_B_pin:()=>Jk,spi_C_pin:()=>Qk,spi_D_pin:()=>zk,timer_id_pin:()=>gW});const Re=Blockly,ce=Mixly,ge={NAME_TYPE:"VARIABLE",allVariables:function(e){var t;if(e.getDescendants)t=e.getDescendants();else{if(!e.getAllBlocks)throw"Not Block or Workspace: "+e;t=e.getAllBlocks()}for(var i=Object.create(null),n=0;n1&&(o+=n)):i=o}else i="i";return i}},Ce=ge; /** * @license * Visual Blocks Editor * * Copyright 2012 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ class Se{constructor(e,t){if(this.variablePrefix_=t||"",this.reservedDict_=Object.create(null),e)for(var i=e.split(","),n=0;n0;s--)t.getInputTargetBlock("IF"+s)&&t.getInputTargetBlock("IF"+s).previousConnection?i[s]=t.getInputTargetBlock("IF"+s).previousConnection:i[s]=null,this.removeInput("IF"+s),t.getInputTargetBlock("DO"+s)&&t.getInputTargetBlock("DO"+s).previousConnection?n[s]=t.getInputTargetBlock("DO"+s).previousConnection:n[s]=null,this.removeInput("DO"+s);this.elseifCount_=parseInt(e.getAttribute("elseif"),10),this.elseCount_=parseInt(e.getAttribute("else"),10);for(s=1;s<=this.elseifCount_;s++)this.appendValueInput("IF"+s).setCheck([Boolean,Number]).appendField(Re.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+s).appendField(Re.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(Re.Msg.CONTROLS_IF_MSG_ELSE);for(s=i.length-2;s>0;s--)i[s]&&i[s].reconnect(this,"IF"+s);for(s=n.length-2;s>0;s--)n[s]&&n[s].reconnect(this,"DO"+s)},decompose:function(e){var t=e.newBlock("controls_if_if");t.initSvg();for(var i=t.getInput("STACK").connection,n=1;n<=this.elseifCount_;n++){var s=e.newBlock("controls_if_elseif");s.initSvg(),i.connect(s.previousConnection),i=s.nextConnection}if(this.elseCount_){var _=e.newBlock("controls_if_else");_.initSvg(),i.connect(_.previousConnection)}return t},compose:function(e){this.elseCount_&&this.removeInput("ELSE"),this.elseCount_=0;for(var t=this.elseifCount_;t>0;t--)this.removeInput("IF"+t),this.removeInput("DO"+t);this.elseifCount_=0;for(var i=e.getInputTargetBlock("STACK"),n=[null],s=[null],_=null;i;){switch(i.type){case"controls_if_elseif":this.elseifCount_++,n.push(i.valueConnection_),s.push(i.statementConnection_);break;case"controls_if_else":this.elseCount_++,_=i.statementConnection_;break;default:throw Error("Unknown block type: "+i.type)}i=i.nextConnection&&i.nextConnection.targetBlock()}this.updateShape_(),this.reconnectChildBlocks_(n,s,_)},saveConnections:function(e){for(var t=e.getInputTargetBlock("STACK"),i=1;t;){switch(t.type){case"controls_if_elseif":var n=this.getInput("IF"+i),s=this.getInput("DO"+i);t.valueConnection_=n&&n.connection.targetConnection,t.statementConnection_=s&&s.connection.targetConnection,i++;break;case"controls_if_else":s=this.getInput("ELSE");t.statementConnection_=s&&s.connection.targetConnection;break;default:throw"Unknown block type."}t=t.nextConnection&&t.nextConnection.targetBlock()}},rebuildShape_:function(){var e=[null],t=[null],i=null;this.getInput("ELSE")&&(i=this.getInput("ELSE").connection.targetConnection);for(var n=1;this.getInput("IF"+n);){var s=this.getInput("IF"+n),_=this.getInput("DO"+n);console.log(s.connection.targetConnection),e.push(s.connection.targetConnection),t.push(_.connection.targetConnection),n++}this.updateShape_(),this.reconnectChildBlocks_(e,t,i)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var e=1;this.getInput("IF"+e);)this.removeInput("IF"+e),this.removeInput("DO"+e),e++;for(e=1;e<=this.elseifCount_;e++)this.appendValueInput("IF"+e).setCheck([Number,Boolean]).appendField(Re.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+e).appendField(Re.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(Re.Msg.CONTROLS_IF_MSG_ELSE)},reconnectChildBlocks_:function(e,t,i){for(var n=1;n<=this.elseifCount_;n++)e[n]&&e[n].reconnect(this,"IF"+n),t[n]&&t[n].reconnect(this,"DO"+n);i&&i.reconnect(this,"ELSE")}},He={init:function(){this.setColour(xe),this.appendValueInput("FROM").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.PYTHON_RANGE).appendField(Re.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.PYTHON_RANGE_STEP),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Re.Msg.MIXLY_PYTHON_CONTROLS_RANGE_TOOLTIP)}},ke={init:function(){this.setColour(xe),this.appendValueInput("LIST").setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.CONTROLS_FOREACH_INPUT),this.appendValueInput("VAR").appendField(Re.Msg.CONTROLS_FOREACH_INPUT_ITEM),this.appendStatementInput("DO").appendField(Re.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip((function(){return Re.Msg.CONTROLS_FOR_TOOLTIP.replace("“%1”","")}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},We={init:function(){this.setColour(xe),this.appendValueInput("BOOL").setCheck([Boolean,Number]).appendField(Re.Msg.MIXLY_MICROBIT_JS_CURRENT).appendField(new Re.FieldDropdown(this.OPERATORS),"MODE"),this.appendStatementInput("DO").appendField(Re.Msg.LANG_CONTROLS_WHILEUNTIL_TITLE_REPEAT+Re.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE");return{WHILE:Re.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE,UNTIL:Re.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL}[t]}))}},Ke={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.MIXLY_PYTHON_TRY),this.appendStatementInput("try"),this.appendValueInput("IF1").appendField(Re.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO1").appendField(""),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new Re.icons.MutatorIcon(["controls_except","controls_finally"],this)),this.setTooltip(Re.Msg.MIXLY_MIXPY_CONTROL_TRY_TOOLTIP),this.elseifCount_=1,this.elseCount_=0},mutationToDom:function(){if(!this.elseifCount_&&!this.elseCount_)return null;var e=document.createElement("mutation");return this.elseifCount_&&e.setAttribute("elseif",this.elseifCount_),this.elseCount_&&e.setAttribute("else",1),e},domToMutation:function(e){var t=this,i=[],n=[];this.elseCount_&&this.removeInput("ELSE");for(var s=this.elseifCount_;s>0;s--)t.getInputTargetBlock("IF"+s)&&t.getInputTargetBlock("IF"+s).previousConnection?i[s]=t.getInputTargetBlock("IF"+s).previousConnection:i[s]=null,this.removeInput("IF"+s),t.getInputTargetBlock("DO"+s)&&t.getInputTargetBlock("DO"+s).previousConnection?n[s]=t.getInputTargetBlock("DO"+s).previousConnection:n[s]=null,this.removeInput("DO"+s);this.elseifCount_=parseInt(e.getAttribute("elseif"),10),this.elseCount_=parseInt(e.getAttribute("else"),10);for(s=1;s<=this.elseifCount_;s++)this.appendValueInput("IF"+s).setCheck([Boolean,Number]).appendField(Re.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO"+s).appendField("");this.elseCount_&&this.appendStatementInput("ELSE").appendField(Re.Msg.MIXLY_PYTHON_FINALLY);for(s=i.length-2;s>0;s--)i[s]&&i[s].reconnect(this,"IF"+s);for(s=n.length-2;s>0;s--)n[s]&&n[s].reconnect(this,"DO"+s)},decompose:function(e){var t=e.newBlock("controls_try");t.initSvg();for(var i=t.getInput("STACK").connection,n=1;n<=this.elseifCount_;n++){var s=e.newBlock("controls_except");s.initSvg(),i.connect(s.previousConnection),i=s.nextConnection}if(this.elseCount_){var _=e.newBlock("controls_finally");_.initSvg(),i.connect(_.previousConnection)}return t},compose:function(e){this.elseCount_&&this.removeInput("ELSE"),this.elseCount_=0;for(var t=this.elseifCount_;t>0;t--)this.removeInput("IF"+t),this.removeInput("DO"+t);this.elseifCount_=0;for(var i=e.getInputTargetBlock("STACK"),n=[null],s=[null],_=null;i;){switch(i.type){case"controls_except":this.elseifCount_++,n.push(i.valueConnection_),s.push(i.statementConnection_);break;case"controls_finally":this.elseCount_++,_=i.statementConnection_;break;default:throw Error("Unknown block type: "+i.type)}i=i.nextConnection&&i.nextConnection.targetBlock()}this.updateShape_(),this.reconnectChildBlocks_(n,s,_)},saveConnections:function(e){for(var t=e.getInputTargetBlock("STACK"),i=1;t;){switch(t.type){case"controls_except":var n=this.getInput("IF"+i),s=this.getInput("DO"+i);t.valueConnection_=n&&n.connection.targetConnection,t.statementConnection_=s&&s.connection.targetConnection,i++;break;case"controls_finally":s=this.getInput("ELSE");t.statementConnection_=s&&s.connection.targetConnection;break;default:throw"Unknown block type."}t=t.nextConnection&&t.nextConnection.targetBlock()}},rebuildShape_:function(){var e=[null],t=[null],i=null;this.getInput("ELSE")&&(i=this.getInput("ELSE").connection.targetConnection);for(var n=1;this.getInput("IF"+n);){var s=this.getInput("IF"+n),_=this.getInput("DO"+n);console.log(s.connection.targetConnection),e.push(s.connection.targetConnection),t.push(_.connection.targetConnection),n++}this.updateShape_(),this.reconnectChildBlocks_(e,t,i)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var e=1;this.getInput("IF"+e);)this.removeInput("IF"+e),this.removeInput("DO"+e),e++;for(e=1;e<=this.elseifCount_;e++)this.appendValueInput("IF"+e).setCheck([Number,Boolean]).appendField(Re.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO"+e).appendField("");this.elseCount_&&this.appendStatementInput("ELSE").appendField(Re.Msg.MIXLY_PYTHON_FINALLY)},reconnectChildBlocks_:function(e,t,i){for(var n=1;n<=this.elseifCount_;n++)e[n]&&e[n].reconnect(this,"IF"+n),t[n]&&t[n].reconnect(this,"DO"+n);i&&i.reconnect(this,"ELSE")}},Je={init:function(){this.setColour(xe);var e=new Re.FieldDropdown(this.OPERATORS);this.appendDummyInput().appendField(e,"FLOW").appendField(Re.Msg.LANG_CONTROLS_FLOW_STATEMENTS_INPUT_OFLOOP),this.setPreviousStatement(!0),this.setTooltip(Re.Msg.MIXLY_PYTHON_CONTROLS_FLOW_STATEMENTS_TOOLTIP);var t=this;this.setTooltip((function(){var e=t.getFieldValue("FLOW");return{BREAK:Re.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK,CONTINUE:Re.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE}[e]}))},onchange:function(){if(this.workspace){var e=!1,t=this;do{if("controls_repeat"==t.type||"controls_for"==t.type||"controls_forEach"==t.type||"controls_repeat_ext"==t.type||"controls_whileUntil"==t.type||"do_while"==t.type){e=!0;break}t=t.getSurroundParent()}while(t);e?this.setWarningText(null):this.setWarningText(Re.Msg.LANG_CONTROLS_FLOW_STATEMENTS_WARNING)}}},Qe={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.LANG_CONTROLS_FOR_INPUT_WITH).appendField(new Re.FieldTextInput("i"),"VAR"),this.appendValueInput("FROM").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_STEP),this.appendStatementInput("DO").appendField(Re.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){return Re.Msg.CONTROLS_FOR_TOOLTIP.replace("%1",e.getFieldValue("VAR"))}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},ze={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.LANG_CONTROLS_FOR_INPUT_WITH).appendField(new Re.FieldTextInput("i"),"VAR"),this.appendValueInput("FROM").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_STEP),this.appendStatementInput("DO").appendField(Re.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){return Re.Msg.MIXLY_PYTHON_CONTROLS_FOR_RANGE_TOOLTIP.replace("%1",e.getFieldValue("VAR"))}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}};We.OPERATORS=[[Re.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"WHILE"],[Re.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"UNTIL"]],Je.OPERATORS=[[Re.Msg.LANG_CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK,"BREAK"],[Re.Msg.LANG_CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE,"CONTINUE"]];const qe={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.CONTROLS_IF_IF_TITLE_IF),this.appendStatementInput("STACK"),this.setTooltip(Re.Msg.CONTROLS_IF_IF_TOOLTIP),this.contextMenu=!1}},je={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.CONTROLS_IF_ELSEIF_TOOLTIP),this.contextMenu=!1}},$e={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.CONTROLS_IF_ELSE_TITLE_ELSE),this.setPreviousStatement(!0),this.setTooltip(Re.Msg.CONTROLS_IF_ELSE_TOOLTIP),this.contextMenu=!1}},Ze={init:function(){this.setColour(xe),this.appendDummyInput().appendField("try"),this.appendStatementInput("STACK"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.contextMenu=!1}},et={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.MIXLY_PYTHON_EXCEPT),this.setPreviousStatement(!0),this.setNextStatement(!0),this.contextMenu=!1,this.setTooltip(Re.Msg.MIXLY_MIXPY_CONTROL_EXCEPT_TOOLTIP)}},tt={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.MIXLY_PYTHON_FINALLY),this.setPreviousStatement(!0),this.contextMenu=!1,this.setTooltip(Re.Msg.MIXLY_MIXPY_CONTROL_FINALLY_TOOLTIP)}},it={init:function(){this.jsonInit({message0:Re.Msg.CONTROLS_REPEAT_TITLE,args0:[{type:"input_value",name:"TIMES"}],previousStatement:null,nextStatement:null,colour:xe,tooltip:Re.Msg.CONTROLS_REPEAT_TOOLTIP,helpUrl:Re.Msg.CONTROLS_REPEAT_HELPURL}),this.appendStatementInput("DO")}},nt={init:function(){this.setColour(xe),this.appendValueInput("BOOL").appendField("lambda"),this.appendStatementInput("DO").appendField(Re.Msg.MIXLY_STAT),this.setOutput(!0)}},st={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.MIXLY_PYTHON_PASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_PYTHON_CONTROLS_PASS_TOOLTIP)}},_t={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.MIXLY_PYTHON_CONTROLS_THREAD_START),this.appendValueInput("callback").appendField(Re.Msg.MIXLY_PYTHON_CONTROLS_THREAD_USE),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_PYTHON_CONTROLS_THREAD_TOOLTIP)}},ot={init:function(){this.appendDummyInput().appendField(Re.Msg.CONTROLS_REPEAT_TITLE_REPEAT+Re.Msg.MIXLY_DO),this.appendStatementInput("input_data").setCheck(null),this.appendValueInput("select_data").setCheck(null).appendField(Re.Msg.CONTROLS_OPERATOR_UNTIL).appendField(new Re.FieldDropdown([[Re.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"true"],[Re.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"false"]]),"type"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setColour(xe),this.setTooltip("do-while loop"),this.setHelpUrl("")}},pt={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.MIXLY_OP_GARBAGE_COLLECT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},at={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET_MEM_ALLOC),this.setOutput(!0)}},ut={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET_MEM_FREE),this.setOutput(!0)}},rt={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET+Re.Msg.MIXLY_DEVICE+"ID"),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Re.Msg.PROCEDURES_DEFRETURN_RETURN+Re.Msg.MIXLY_GET_UNIQUE_IDEN)}},lt={init:function(){this.setColour(xe),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_RTC_TIMESTAMP),this.appendDummyInput().appendField(Re.Msg.MIXLY_TIMESTAMP_TO_DATA),this.setInputsInline(!0),this.setOutput(!0,Number)}},dt={init:function(){this.setColour(xe),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET_UNIQUE_IDEN),this.setOutput(!0)}},It=230;Re.FieldTextInput.math_number_validator=function(e){return String(e)},Re.FieldTextInput.math_number_validator_include_blank=function(e){if(""===e)return"";return/^-?(0X|0x|0O|0o|0B|0b)?[a-fA-F0-9]{1,}(\.[a-fA-F0-9]+)?$/.test(e)?String(e):null};const Tt={init:function(){this.setColour(It),this.appendDummyInput().appendField(new Re.FieldTextInput("0",Re.FieldTextInput.math_number_validator),"NUM"),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MATH_NUMBER_TOOLTIP)}},Mt={init:function(){this.setColour(It);this.appendDummyInput("").appendField(Re.Msg.MIXLY_PYTHON_MATH_CONSTANT).appendField(new Re.FieldDropdown([["π","pi"],["e","e"]]),"CONSTANT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("CONSTANT");return{pi:Re.Msg.MIXLY_PYTHON_MATH_CONSTANT_PI_TOOLTIP,e:Re.Msg.MIXLY_PYTHON_MATH_CONSTANT_E_TOOLTIP}[t]}))}},ht={init:function(){this.setColour(It);this.appendDummyInput("").appendField(Re.Msg.MIXLY_PYTHON_MATH_CONSTANT).appendField(new Re.FieldDropdown([["π","pi"],["e","e"]]),"CONSTANT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("CONSTANT");return{pi:Re.Msg.MIXLY_PYTHON_MATH_CONSTANT_PI_MP_TOOLTIP,e:Re.Msg.MIXLY_PYTHON_MATH_CONSTANT_E_MP_TOOLTIP}[t]}))}},mt={init:function(){this.setColour(It),this.setOutput(!0),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Re.FieldDropdown([["+","ADD"],["-","MINUS"],["×","MULTIPLY"],["÷","DIVIDE"],["%","QUYU"],["//","ZHENGCHU"],["**","POWER"]]),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{ADD:Re.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:Re.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:Re.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:Re.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,QUYU:Re.Msg.MATH_MODULO_TOOLTIP,ZHENGCHU:Re.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:Re.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[t]}))}},Et={init:function(){this.setColour(It),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Re.FieldDropdown([["+=","ADD"],["-=","MINUS"],["×=","MULTIPLY"],["÷=","DIVIDE"],["%=","QUYU"],["//=","ZHENGCHU"],["**=","POWER"]]),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{ADD:Re.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:Re.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:Re.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:Re.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,QUYU:Re.Msg.MATH_MODULO_TOOLTIP,ZHENGCHU:Re.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:Re.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[t]}))}},Ot={init:function(){this.setColour(It),this.setOutput(!0,Number),this.appendValueInput("A").setCheck(Number),this.appendValueInput("B").setCheck(Number).appendField(new Re.FieldDropdown([["&","&"],["|","|"],[">>",">>"],["<<","<<"]]),"OP"),this.setInputsInline(!0),this.setTooltip("位运算")}},Rt={init:function(){this.setColour(It),this.setOutput(!0,Number),this.appendValueInput("NUM").setCheck(Number).appendField(new Re.FieldDropdown([["sin","SIN"],["cos","COS"],["tan","TAN"],["asin","ASIN"],["acos","ACOS"],["atan","ATAN"],["-","-"],["ln","LN"],["log10","LOG10"],["e^","EXP"],["10^","POW10"]]),"OP");var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{SIN:Re.Msg.MATH_TRIG_TOOLTIP_SIN,COS:Re.Msg.MATH_TRIG_TOOLTIP_COS,TAN:Re.Msg.MATH_TRIG_TOOLTIP_TAN,ASIN:Re.Msg.MATH_TRIG_TOOLTIP_ASIN,ACOS:Re.Msg.MATH_TRIG_TOOLTIP_ACOS,ATAN:Re.Msg.MATH_TRIG_TOOLTIP_ATAN,LN:Re.Msg.MATH_SINGLE_TOOLTIP_LN}[t]}))}},ct={init:function(){var e=[[Re.Msg.MATH_BIN,"bin"],[Re.Msg.MATH_OCT,"oct"],[Re.Msg.MATH_HEX,"hex"]];this.setColour(It),this.setOutput(!0,String),this.appendValueInput("NUM").setCheck(Number).appendField(new Re.FieldDropdown(e),"OP");var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{bin:Re.Msg.MATH_DEC_TOOLTIP_BIN,oct:Re.Msg.MATH_DEC_TOOLTIP_OCT,hex:Re.Msg.MATH_DEC_TOOLTIP_HEX}[e]}))}},gt={init:function(){var e=[[Re.Msg.LANG_MATH_TO_ROUND,"round"],[Re.Msg.LANG_MATH_TO_CEIL,"ceil"],[Re.Msg.LANG_MATH_TO_FLOOR,"floor"],[Re.Msg.MATH_ABS,"fabs"],[Re.Msg.MATH_SQRT,"sqrt"]];this.setColour(It),this.appendValueInput("A").setCheck(Number).appendField(new Re.FieldDropdown(e),"OP"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{sqrt:Re.Msg.MATH_SINGLE_TOOLTIP_ROOT,fabs:Re.Msg.MATH_SINGLE_TOOLTIP_ABS,sq:Re.Msg.MATH_SINGLE_TOOLTIP_SQ,round:Re.Msg.MATH_SINGLE_TOOLTIP_ROUND,ceil:Re.Msg.MATH_SINGLE_TOOLTIP_CEIL,floor:Re.Msg.MATH_SINGLE_TOOLTIP_FLOOR}[e]}))}},Ct={init:function(){var e=[[Re.Msg.MIXLY_MAX,"max"],[Re.Msg.MIXLY_MIN,"min"]];this.setColour(It),this.appendValueInput("A").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(new Re.FieldDropdown(e),"OP").appendField("("),this.appendValueInput("B").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(","),this.appendDummyInput("").setAlign(Re.inputs.Align.RIGHT).appendField(")"),this.setInputsInline(!0),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{max:Re.Msg.MIXLY_TOOLTIP_MATH_MAX,min:Re.Msg.MIXLY_TOOLTIP_MATH_MIN}[e]}))}},St={init:function(){var e=[[Re.Msg.MATH_TWO,"two"],[Re.Msg.MATH_EIGHT,"eight"],[Re.Msg.MATH_TEN,"ten"],[Re.Msg.MATH_SIXTEEN,"sixteen"]];this.setColour(It),this.appendDummyInput("").appendField(Re.Msg.MATH_BA),this.appendValueInput("NUM").appendField(new Re.FieldDropdown(e),"OP").appendField(Re.Msg.MATH_JinZhi).setCheck(Number),this.appendDummyInput("").appendField(Re.Msg.MATH_ZHW).appendField(new Re.FieldDropdown(e),"OP2").appendField(Re.Msg.MATH_JinZhi),this.setFieldValue("ten","OP2"),this.setOutput(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP"),i={two:Re.Msg.MATH_Before_two,eight:Re.Msg.MATH_Before_eight,ten:Re.Msg.MATH_Before_ten,sixteen:Re.Msg.MATH_Before_sixteen},n=t.getFieldValue("OP2"),s={two:Re.Msg.MATH_Behind_two,eight:Re.Msg.MATH_Behind_eight,ten:Re.Msg.MATH_Behind_ten,sixteen:Re.Msg.MATH_Behind_sixteen};return i[e]+s[n]}))}},At={init:function(){var e=[[Re.Msg.LANG_MATH_INT,"int"],[Re.Msg.LANG_MATH_FLOAT,"float"]];this.setColour(It),this.setOutput(!0,Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_RANDOM).appendField(new Re.FieldDropdown(e),"TYPE"),this.appendValueInput("FROM").setCheck(Number).appendField(Re.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.LANG_MATH_RANDOM_INT_INPUT_TO),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TYPE"),i={int:Re.Msg.LANG_MATH_INT,float:Re.Msg.LANG_MATH_FLOAT_RANDOM};return Re.Msg.MATH_RANDOM_INT_TOOLTIP+i[e]}))}},Lt={init:function(){this.setColour(It),this.setOutput(!0,Number),this.appendValueInput("VALUE").setCheck(Number).appendField(Re.Msg.LANG_MATH_CONSTRAIN_INPUT_CONSTRAIN),this.appendValueInput("LOW").setCheck(Number).appendField(Re.Msg.LANG_MATH_CONSTRAIN_INPUT_LOW),this.appendValueInput("HIGH").setCheck(Number).appendField(Re.Msg.LANG_MATH_CONSTRAIN_INPUT_HIGH),this.setInputsInline(!0),this.setTooltip(Re.Msg.MATH_CONSTRAIN_TOOLTIP)}},Nt={init:function(){this.setColour(It),this.appendValueInput("NUM",Number).appendField(Re.Msg.MIXLY_MAP).setCheck(Number),this.appendValueInput("fromLow",Number).appendField(Re.Msg.MIXLY_MAP_FROM).setCheck(Number),this.appendValueInput("fromHigh",Number).appendField(",").setCheck(Number),this.appendValueInput("toLow",Number).appendField(Re.Msg.MIXLY_MAP_TO).setCheck(Number),this.appendValueInput("toHigh",Number).appendField(",").setCheck(Number),this.appendDummyInput("").appendField("]"),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_MATH_MAP)}},Dt={init:function(){this.setColour(It),this.appendDummyInput().appendField(new Re.FieldTextInput("0",Re.FieldTextInput.math_number_validator_include_blank),"NUM"),this.setOutput(!0),this.setTooltip(Re.Msg.MATH_NUMBER_TOOLTIP)}},ft={init:function(){this.setColour(It),this.appendValueInput("NUM").setCheck(Number).appendField(Re.Msg.LANG_MATH_RANDOM_SEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_MATH_RANDOM_SEED)}},Ft={init:function(){this.setColour(It),this.setOutput(!0,Number),this.appendValueInput("VALUE").setCheck(Number),this.appendValueInput("VAR").setCheck(Number).appendField(Re.Msg.MATH_ROUND).appendField(Re.Msg.TEXT_KEEP),this.appendDummyInput().appendField(Re.Msg.TEXT_DECIMAL),this.setInputsInline(!0),this.setTooltip(Re.Msg.MATH_ROUND_NEW_TOOLTIP)}},Pt={init:function(){var e=[[Re.Msg.MIXLY_TO_INT,"int"],[Re.Msg.MIXLY_TO_FLOAT,"float"],[Re.Msg.MIXLY_TO_BITES,"b"],[Re.Msg.LANG_MATH_BYTE+Re.Msg.MIXLY_TO_INT,"bti"]];this.setColour(It),this.appendValueInput("VAR").appendField(new Re.FieldDropdown(e),"TOWHAT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TOWHAT");return{int:Re.Msg.MIXLY_PYTHON_TOOLTIP_TOINT,float:Re.Msg.MIXLY_PYTHON_TOOLTIP_TOFLOAT,b:Re.Msg.MIXLY_TOOLTIP_TEXT_TOBYTE}[e]}))}},Yt={init:function(){var e=[[Re.Msg.MIXLY_TO_INT,"int"],[Re.Msg.MIXLY_TO_FLOAT,"float"]];this.setColour(It),this.appendValueInput("VAR").appendField(new Re.FieldDropdown(e),"TOWHAT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TOWHAT");return{int:Re.Msg.MIXLY_TOOLTIP_TEXT_TOINT,float:Re.Msg.MIXLY_TOOLTIP_TEXT_TOFLOAT}[e]}))}},vt=Nt,Xt={init:function(){this.setColour(It),this.appendValueInput("VAR").appendField(Re.Msg.LANG_MATH_BYTE+Re.Msg.MIXLY_TO_HEX),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_PYTHON_TOOLTIP_TOHEX)}},yt={init:function(){this.setColour(It),this.itemCount_=1,this.setMutator(new Re.icons.MutatorIcon(["lists_create_with_item"],this)),this.appendDummyInput("DUMMY").appendField(Re.Msg.MIXLY_PRODUCT+Re.Msg.MIXLY_GENERATE_CARTESIAN_PRODUCT),this.appendValueInput("REPEAT").appendField(Re.Msg.MIXLY_EVERY_PER_ELEPER_ELEMENT),this.appendDummyInput().appendField(Re.Msg.CONTROLS_REPEAT_TITLE_TIMES),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0),this.setTooltip(Re.Msg.LISTS_CREATE_WITH_PYTHON_TOOLTIP),this.updateShape_()},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("lists_create_with_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;n1&&"\\"===e.charAt(0)){var t=e.charAt(1);if("0"===t||"b"===t||"f"===t||"n"===t||"r"===t||"t"===t||"\\"===t||"'"===t)return String(e).substring(0,2);if("x"===t&&"0"===e.charAt(2)&&"B"===e.charAt(3))return String(e).substring(0,4)}return String(e).substring(0,1)};const wt={init:function(){this.setColour(Vt),this.appendDummyInput().appendField(this.newQuote_(!0)).appendField(new Re.FieldTextInput("",Re.FieldTextInput.char_validator),"TEXT").appendField(this.newQuote_(!1)),this.setOutput(!0,Number),this.setTooltip(Re.Msg.TEXT_CHAR_TOOLTIP)},newQuote_:function(e){if(1==e)var t="../../media/quote2.png";else t="../../media/quote3.png";return new Re.FieldImage(t,7,12,'"')}},Ht={init:function(){this.setColour(Vt),this.appendValueInput("A").setCheck([String,Number]),this.appendValueInput("B").setCheck([String,Number]).appendField(Re.Msg.MIXLY_TEXT_JOIN),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_TEXT_JOIN)}},kt={init:function(){this.setColour(Vt),this.appendValueInput("VAR").setCheck(Number).appendField(Re.Msg.MIXLY_TOCHAR),this.setOutput(!0,String),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_TEXT_TOCHAR)}},Wt={init:function(){this.setColour(Vt),this.appendValueInput("VAR").setCheck(String).appendField(Re.Msg.MIXLY_TOASCII),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_TEXT_TOASCII)}},Kt={init:function(){this.setColour(Vt),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_TOSTRING),this.setOutput(!0,String),this.setTooltip(Re.Msg.MIXLY_PYTHON_TOOLTIP_TOTEXT)}},Jt={init:function(){this.setColour(Vt),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_LENGTH),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_TEXT_LENGTH)}},Qt={init:function(){this.WHERE_OPTIONS=[[Re.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[Re.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[Re.Msg.TEXT_GET_INDEX_RANDOM+1+Re.Msg.TEXT_CHARAT2,"RANDOM"]],this.setHelpUrl(Re.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Vt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT").setCheck(Number),this.appendDummyInput().appendField(Re.Msg.LISTS_GET_INDEX_GET,"MODE"),Re.Msg.LISTS_GET_INDEX_TAIL&&this.appendDummyInput("TAIL").appendField(Re.Msg.LISTS_GET_INDEX_TAIL),this.setInputsInline(!0),this.setOutput(!0),this.updateAt_(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=e.getFieldValue("WHERE"),n="";switch(t+" "+i){case"GET FROM_START":case"GET FROM_END":n=Re.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM;break;case"GET RANDOM":n=Re.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM;break;case"GET_REMOVE FROM_START":case"GET_REMOVE FROM_END":n=Re.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM;break;case"GET_REMOVE RANDOM":n=Re.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM}return"FROM_START"!=i&&"FROM_END"!=i||(n+=" "+Re.Msg.LISTS_INDEX_FROM_START_TOOLTIP.replace("%1",Re.Msg.ONE_BASED_INDEXING?"#1":"#0")),n}));var t=this;this.setTooltip((function(){var e=t.getFieldValue("WHERE"),i={FROM_START:Re.Msg.LISTS_GET_INDEX_FROM_START,FROM_END:Re.Msg.LISTS_GET_INDEX_FROM_END,RANDOM:Re.Msg.TEXT_GET_INDEX_RANDOM};return Re.Msg.PROCEDURES_DEFRETURN_RETURN+Re.Msg.MIXLY_MICROBIT_TYPE_STRING+i[e]+"n"+Re.Msg.TEXT_CHARAT2}))},mutationToDom:function(){var e=document.createElement("mutation");e.setAttribute("statement",!this.outputConnection);var t=this.getInput("AT").type==Re.INPUT_VALUE;return e.setAttribute("at",t),e},domToMutation:function(e){var t="true"==e.getAttribute("statement");this.updateStatement_(t),e="false"!=e.getAttribute("at"),this.updateAt_(e)},updateStatement_:function(e){e!=!this.outputConnection&&(this.unplug(!0,!0),e?(this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)):(this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0)))},updateAt_:function(e){this.removeInput("AT"),this.removeInput("ORDINAL",!0),e?(this.appendValueInput("AT").setCheck(Number),Re.Msg.TEXT_CHARAT2&&this.appendDummyInput("ORDINAL").appendField(Re.Msg.TEXT_CHARAT2)):this.appendDummyInput("AT");var t=new Re.FieldDropdown(this.WHERE_OPTIONS,(function(t){var i="FROM_START"==t||"FROM_END"==t;if(i!=e){var n=this.sourceBlock_;return n.updateAt_(i),n.setFieldValue(t,"WHERE"),null}}));this.getInput("AT").appendField(t,"WHERE"),Re.Msg.LISTS_GET_INDEX_TAIL&&this.moveInputBefore("TAIL",null)}},zt={init:function(){this.setHelpUrl(Re.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Vt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT").setCheck(Number).appendField(Re.Msg.LISTS_GET_INDEX_GET+" "+Re.Msg.LISTS_GET_INDEX_FROM_START),this.appendDummyInput().appendField(Re.Msg.TEXT_CHARAT2),this.setOutput(!0),this.setTooltip(Re.Msg.PROCEDURES_DEFRETURN_RETURN+Re.Msg.MIXLY_MICROBIT_TYPE_STRING+Re.Msg.LISTS_GET_INDEX_FROM_START+"n"+Re.Msg.TEXT_CHARAT2)}},qt={init:function(){this.setHelpUrl(Re.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Vt),this.appendValueInput("VAR").setCheck(String),this.appendDummyInput().appendField(Re.Msg.TEXT_RANDOM_CHAR),this.setOutput(!0),this.setTooltip(Re.Msg.TEXT_RANDOM_CHAR_TOOLTIP)}},jt={init:function(){this.WHERE_OPTIONS_1=[[Re.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[Re.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[Re.Msg.LISTS_GET_SUBLIST_START_FIRST,"FIRST"]],this.WHERE_OPTIONS_2=[[Re.Msg.LISTS_GET_SUBLIST_END_FROM_START,"FROM_START"],[Re.Msg.LISTS_GET_SUBLIST_END_FROM_END,"FROM_END"],[Re.Msg.LISTS_GET_SUBLIST_END_LAST,"LAST"]],this.setHelpUrl(Re.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(Vt),this.appendValueInput("VAR").setCheck(String),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendDummyInput("AT1"),this.appendDummyInput("AT2"),this.setInputsInline(!0),this.setOutput(!0,"List"),this.updateAt_(1,!0),this.updateAt_(2,!0),this.setTooltip(Re.Msg._GET_TEXT_SUBLIST_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation"),t=this.getInput("AT1").type==Re.INPUT_VALUE;e.setAttribute("at1",t);var i=this.getInput("AT2").type==Re.INPUT_VALUE;return e.setAttribute("at2",i),e},domToMutation:function(e){var t="true"==e.getAttribute("at1"),i="true"==e.getAttribute("at2");this.updateAt_(1,t),this.updateAt_(2,i)},updateAt_:function(e,t){this.removeInput("AT"+e),this.removeInput("ORDINAL"+e,!0),t?(this.appendValueInput("AT"+e).setCheck(Number),Re.Msg.TEXT_CHARAT2&&this.appendDummyInput("ORDINAL"+e).appendField(Re.Msg.TEXT_CHARAT2)):this.appendDummyInput("AT"+e);var i=new Re.FieldDropdown(this["WHERE_OPTIONS_"+e],(function(i){var n="FROM_START"==i||"FROM_END"==i;if(n!=t){var s=this.sourceBlock_;return s.updateAt_(e,n),s.setFieldValue(i,"WHERE"+e),null}}));this.getInput("AT"+e).appendField(i,"WHERE"+e),1==e&&(this.moveInputBefore("AT1","AT2"),this.getInput("ORDINAL1")&&this.moveInputBefore("ORDINAL1","AT2"))}},$t={init:function(){this.setHelpUrl(Re.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(Vt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT1").appendField(Re.Msg.LISTS_GET_INDEX_GET+" "+Re.Msg.LISTS_GET_INDEX_FROM_START),this.appendValueInput("AT2").appendField(Re.Msg.LISTS_GET_SUBLIST_END_FROM_START),this.appendDummyInput().appendField(Re.Msg.TEXT_CHARAT2),this.setInputsInline(!0),this.setOutput(!0,["List",String]),this.setTooltip(Re.Msg._GET_TEXT_SUBLIST_TOOLTIP)}},Zt={init:function(){var e=[[Re.Msg.MIXLY_EQUALS,"==="],[Re.Msg.MIXLY_STARTSWITH,"startswith"],[Re.Msg.MIXLY_ENDSWITH,"endswith"]];this.setColour(Vt),this.appendValueInput("STR1").setCheck(String),this.appendValueInput("STR2").appendField(new Re.FieldDropdown(e),"DOWHAT").setCheck(String),this.setOutput(!0,[Boolean,Number]),this.setInputsInline(!0)}},ei={init:function(){this.setColour(Vt),this.appendValueInput("STR1").setCheck(String),this.appendValueInput("STR2").appendField(Re.Msg.MIXLY_COMPARETO).setCheck(String),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_COMPARETO_HELP)}},ti={init:function(){var e=[[Re.Msg.TEXT_UPPER,"upper"],[Re.Msg.TEXT_TITLE,"title"],[Re.Msg.TEXT_CAPITALIZE,"capitalize"],[Re.Msg.TEXT_SWAPCASE,"swapcase"],[Re.Msg.TEXT_LOWER,"lower"]];this.setColour(Vt),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new Re.FieldDropdown(e),"CAPITAL").setCheck(String),this.setOutput(!0,String);var t=this;this.setTooltip((function(){var e=t.getFieldValue("CAPITAL");return{upper:Re.Msg.MIXLY_MIXPY_TEXT_UPPER_TOOLTIP,title:Re.Msg.MIXLY_MIXPY_TEXT_TITLE_TOOLTIP,swapcase:Re.Msg.MIXLY_MIXPY_TEXT_SWAPCASE_TOOLTIP,capitalize:Re.Msg.MIXLY_MIXPY_TEXT_CAPITALIZE_TOOLTIP,lower:Re.Msg.MIXLY_MIXPY_TEXT_LOWER_TOOLTIP}[e]}))}},ii={init:function(){var e=[[Re.Msg.TEXT_LJUST,"ljust"],[Re.Msg.TEXT_CENTER,"center"],[Re.Msg.TEXT_RJUST,"rjust"]];this.setColour(Vt),this.appendValueInput("VAR").appendField(new Re.FieldDropdown(e),"CENTER").setCheck(String),this.appendValueInput("WID").appendField(Re.Msg.MIXLY_WIDTH).setCheck(Number),this.appendValueInput("Symbol").appendField(Re.Msg.MIXLY_RECT_Fill).setCheck(String),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Re.Msg.MIXLY_MIXPY_TEXT_CENTER_TOOLTIP)}},ni={init:function(){this.setColour(Vt),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).setCheck(String),this.appendValueInput("STR").appendField(Re.Msg.MIXLY_MID+Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER).setCheck(String),this.appendDummyInput().appendField(Re.Msg.MIXLY_LIST_INDEX),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Re.Msg.MIXLY_MIXPY_TEXT_FIND_TOOLTIP)}},si={init:function(){this.setColour(Vt),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_USE_STR).setCheck(String),this.appendValueInput("LIST").appendField(Re.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_SEQ).setCheck("List","Tuple","Set","Dict"),this.appendDummyInput().appendField(Re.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_GET_STR),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Re.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_TOOLTIP)}},_i={init:function(){this.setColour(Vt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("STR1").appendField(Re.Msg.MIXLY_MIXPY_REPLACE).setCheck(String),this.appendValueInput("STR2").appendField(Re.Msg.LISTS_SET_INDEX_INPUT_TO).setCheck(String),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Re.Msg.MIXLY_MIXPY_TEXT_REPLACE_TOOLTIP)}},oi={init:function(){this.setColour(Vt),this.appendValueInput("VAR"),this.appendValueInput("VAL").appendField(Re.Msg.LIST_SPLIT_AS),this.appendDummyInput("").appendField(Re.Msg.LIST_SPLIT),this.setOutput(!0,"List"),this.setTooltip(Re.Msg.MIXLY_MIXPY_TEXT_SPLIT_TOOLTIP),this.setInputsInline(!0)}},pi={init:function(){var e=[[Re.Msg.TEXT_TRIM_BOTH,"strip"],[Re.Msg.TEXT_TRIM_LEFT,"lstrip"],[Re.Msg.TEXT_TRIM_RIGHT,"rstrip"]];this.setColour(Vt),this.appendValueInput("VAR"),this.appendDummyInput("").appendField(Re.Msg.TEXT_STRIM),this.appendDummyInput("").appendField(new Re.FieldDropdown(e),"TOWHAT"),this.appendDummyInput("").appendField(Re.Msg.TEXT_BLANK),this.setOutput(!0,String),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TOWHAT");return{strip:Re.Msg.TEXT_TRIM_BOTH_TOOLTIP,lstrip:Re.Msg.TEXT_TRIM_LEFT_TOOLTIP,rstrip:Re.Msg.TEXT_TRIM_RIGHT_TOOLTIP}[e]}))}},ai={init:function(){this.setColour(Vt),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROPYTHON_FORMAT),this.appendDummyInput("").appendField(new Re.FieldTextInput("str"),"VAR"),this.itemCount_=1,this.updateShape_(),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setMutator(new Re.icons.MutatorIcon(["text_create_with_item"],this)),this.setOutput(!0),this.setTooltip(Re.Msg.MIXLY_MIXPY_TEXT_FORMAT_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("text_create_with_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;nt?e[t]:0==t?'"key"':'"key'+(t+1)+'"'),"KEY"+t).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},_n={init:function(){this.setColour(nn),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(Re.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},on={init:function(){this.setColour(nn),this.appendDummyInput().appendField(Re.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},pn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Re.Msg.DICT_KEYS),this.setTooltip(Re.Msg.DICTS_KEYS_TOOLTIP),this.setOutput(!0,"List")}},an={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(Re.Msg.DICTS_GET_IN),this.appendDummyInput("").appendField(Re.Msg.DICTS_ADD_VALUE),this.setOutput(!0),this.setTooltip(Re.Msg.DICTS_GET_TOOLTIP)}},un={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(Re.Msg.DICTS_GET_IN),this.appendDummyInput("").appendField(Re.Msg.DICTS_ADD_VALUE),this.appendValueInput("VAR").appendField(Re.Msg.DICTS_DEFAULT_VALUE),this.setOutput(!0),this.setTooltip(Re.Msg.DICTS_GET_DEFAULT_TOOLTIP)}},rn={init:function(){this.setColour(nn),this.appendValueInput("DICT"),this.appendValueInput("KEY").appendField(Re.Msg.DICTS_ADD),this.appendDummyInput(),this.appendValueInput("VAR").appendField(Re.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.DICTS_ADD_OR_CHANGE_TOOLTIP)}},ln={init:function(){this.setColour(nn),this.appendValueInput("DICT"),this.appendValueInput("KEY").appendField(Re.Msg.DICTS_DELETE_IN),this.appendDummyInput("").appendField(Re.Msg.DICTS_DELETE_VALUE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.DICTS_DELETE_TOOLTIP)}},dn={init:function(){this.setColour(nn),this.appendValueInput("DICT2").setCheck("Dict").appendField(Re.Msg.MAKE_DICT),this.appendValueInput("DICT").setCheck("Dict").appendField(Re.Msg.DICT_UPDATE),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MID),this.setTooltip(Re.Msg.DICTS_UPDATE_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},In={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Re.Msg.DICT_CLEAR),this.setTooltip(Re.Msg.DICTS_CLEAR_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Tn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Re.Msg.DICT_ITEMS),this.setTooltip(Re.Msg.DICTS_ITEMS_TOOLTIP),this.setOutput(!0,"List")}},Mn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Re.Msg.DICT_VALUES),this.setTooltip(Re.Msg.DICTS_VALUES_TOOLTIP),this.setOutput(!0,"List")}},hn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_LENGTH),this.setTooltip(Re.Msg.DICT_LENGTH_TOOLTIP),this.setOutput(!0,Number)}},mn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Re.Msg.DICT_DELDICT),this.setTooltip(Re.Msg.DICTS_DEL_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},En={init:function(){this.MODE=[[Re.Msg.DICTS_ADD_OR_CHANGE,"INSERT"],[Re.Msg.MIXLY_MICROBIT_JS_DELETE_VAR,"DELETE"]],this.setHelpUrl(Re.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("AT2"),this.appendValueInput("KEY"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).appendField(Re.Msg.DICTS_ADD_VALUE),this.updateAt_(!0),this.setInputsInline(!0),this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t="";switch(e.getFieldValue("WHERE")){case"INSERT":t=Re.Msg.DICTS_ADD_TOOLTIP;break;case"DELETE":t=Re.Msg.DICTS_DELETE_TOOLTIP}return t}))},mutationToDom:function(){var e=document.createElement("mutation"),t=this.getInput("AT2").type==Re.INPUT_VALUE;return e.setAttribute("at2",t),e},domToMutation:function(e){var t="true"==e.getAttribute("at2");this.updateAt_(t)},updateAt_:function(e){this.removeInput("AT2"),this.removeInput("ORDINAL",!0),e?this.appendValueInput("AT2").setCheck(Number):this.appendDummyInput("AT2");var t=new Re.FieldDropdown(this.MODE,(function(t){var i="INSERT"==t;if(i!=e){var n=this.sourceBlock_;return n.updateAt_(i),n.setFieldValue(t,"WHERE"),null}}));this.getInput("AT2").appendField(t,"WHERE")}},On={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Re.Msg.blockpy_DICT_POP),this.appendValueInput("KEY"),this.appendDummyInput("").appendField(Re.Msg.DICTS_ADD_VALUE),this.setTooltip(Re.Msg.DICT_POP_TOOLTIP),this.setInputsInline(!0),this.setOutput(!0)}},Rn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(Re.Msg.DICTS_SET_DEFAULT),this.appendDummyInput("").appendField(Re.Msg.DICTS_DEFAULT_VALUE),this.appendValueInput("VAR"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.DICTS_SETDEFAULT_TOOLTIP)}},cn={init:function(){this.setColour(nn),this.appendDummyInput("").appendField(new Re.FieldLabel(Re.Msg.MIXLY_MICROBIT_TYPE_DICT),"TIP").appendField(" "),this.itemCount_=3,this.updateShape_(),this.setOutput(!0,"Dict"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setMutator(new Re.icons.MutatorIcon(["dicts_create_with_item"],this)),this.setTooltip(Re.Msg.DICTS_CREATE_WITH_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("dicts_create_with_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;nt?e[t]:0==t?'"key"':'"key'+(t+1)+'"'),"KEY"+t).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},gn={init:function(){this.setColour(nn),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_TODICT),this.setOutput(!0),this.setTooltip(Re.Msg.MIXLY_PYTHON_TOOLTIP_TODICT)}},Cn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_TO_JSON),this.setTooltip(Re.Msg.MIXLY_TO_JSON_TOOLTIP),this.setOutput(!0)}},Sn={init:function(){this.setColour(nn),this.appendValueInput("VAR"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_CONVERT_TO_JSON),this.setTooltip(Re.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP),this.setOutput(!0)}},An={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("VAR1").appendField("key1"),this.appendValueInput("VAR2").appendField("index"),this.appendValueInput("VAR3").appendField("key2"),this.appendValueInput("VAR4").appendField("key3"),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP),this.setOutput(!0)}},Ln={init:function(){this.setColour(nn),this.appendValueInput("DICT"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_TO_JSON),this.setTooltip(Re.Msg.MIXLY_TO_JSON_TOOLTIP),this.setOutput(!0)}},Nn=210,Dn={init:function(){var e=Re.RTL?[["=","EQ"],["≠","NEQ"],[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["=","EQ"],["≠","NEQ"],["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]];this.setColour(Nn),this.setOutput(!0,Boolean),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Re.FieldDropdown(e),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{EQ:Re.Msg.LOGIC_COMPARE_TOOLTIP_EQ,NEQ:Re.Msg.LOGIC_COMPARE_TOOLTIP_NEQ,LT:Re.Msg.LOGIC_COMPARE_TOOLTIP_LT,LTE:Re.Msg.LOGIC_COMPARE_TOOLTIP_LTE,GT:Re.Msg.LOGIC_COMPARE_TOOLTIP_GT,GTE:Re.Msg.LOGIC_COMPARE_TOOLTIP_GTE}[e]})),this.prevBlocks_=[null,null]}},fn={init:function(){var e=Re.RTL?[[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]],t=Re.RTL?[[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]];this.setColour(Nn),this.setOutput(!0,Boolean),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Re.FieldDropdown(e),"OP1"),this.appendValueInput("C").appendField(new Re.FieldDropdown(t),"OP2"),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_PYTHON_LOGIC_COMPARE_CONTINOUS_TOOLTIP)}},Fn={init:function(){var e=[[Re.Msg.LOGIC_OPERATION_AND,"AND"],[Re.Msg.LOGIC_OPERATION_OR,"OR"],[Re.Msg.LOGIC_OPERATION_NOR,"NOR"],[Re.Msg.LOGIC_OPERATION_XOR,"XOR"]];this.setColour(Nn),this.setOutput(!0,Boolean),this.appendValueInput("A").setCheck([Boolean,Number]),this.appendValueInput("B").setCheck([Boolean,Number]).appendField(new Re.FieldDropdown(e),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{AND:Re.Msg.LOGIC_OPERATION_TOOLTIP_AND,OR:Re.Msg.LOGIC_OPERATION_TOOLTIP_OR,NOR:Re.Msg.LOGIC_OPERATION_TOOLTIP_NOR,XOR:Re.Msg.LOGIC_OPERATION_TOOLTIP_XOR}[e]}))}},Pn={init:function(){this.setColour(Nn),this.setOutput(!0,Boolean),this.appendValueInput("BOOL").setCheck([Number,Boolean]).appendField(Re.Msg.LOGIC_NEGATE_TITLE),this.setTooltip(Re.Msg.LOGIC_NEGATE_TOOLTIP)}},Yn={init:function(){var e=[[Re.Msg.LOGIC_BOOLEAN_TRUE,"TRUE"],[Re.Msg.LOGIC_BOOLEAN_FALSE,"FALSE"]];this.setColour(Nn),this.setOutput(!0,Boolean),this.appendDummyInput().appendField(new Re.FieldDropdown(e),"BOOL"),this.setTooltip(Re.Msg.LOGIC_BOOLEAN_TOOLTIP)}},vn={init:function(){this.setColour(Nn),this.setOutput(!0),this.appendDummyInput().appendField(Re.Msg.LOGIC_NULL),this.setTooltip(Re.Msg.LOGIC_NULL_TOOLTIP)}},Xn={init:function(){this.setColour(Nn),this.appendValueInput("A"),this.appendValueInput("B").appendField(Re.Msg.LOGIC_TERNARY_IF_TRUE),this.appendValueInput("C").appendField(Re.Msg.LOGIC_TERNARY_IF_FALSE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_LOGIT_TRUEORFALSE)}},yn={init:function(){var e=[[Re.Msg.TEXT_APPEND_TO,"in"],[Re.Msg.MIXLY_PYTHON_LOGIC_IS_NOT_IN,"not in"]];this.setColour(Nn),this.appendValueInput("A"),this.appendValueInput("B").setCheck([String,"List"]).appendField(new Re.FieldDropdown(e),"BOOL"),this.appendDummyInput("").appendField(Re.Msg.MICROBIT_LOGIC_IS_IN),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Re.Msg.IN)}},bn={init:function(){var e=[[Re.Msg.MIXLY_PYTHON_LOGIC_IS,"is"],[Re.Msg.MIXLY_PYTHON_LOGIC_IS_NOT,"is not"]];this.setColour(Nn),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Re.FieldDropdown(e),"BOOL"),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_PYTHON_LOGIC_IS_TOOLTIP)}},xn={init:function(){this.setColour(Nn),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_TOBOOL),this.setOutput(!0,Boolean),this.setTooltip(Re.Msg.MIXLY_PYTHON_TOOLTIP_TOBOOL)}},Vn={init:function(){this.setColour(0),this.appendValueInput("fn").setCheck(String).appendField(Re.Msg.MIXLY_PYTHON_STORAGE_OPEN_FILE_WITH_OS+"(For Windows)"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Bn={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"],[Re.Msg.MIXLY_ADD,"a"],[Re.Msg.MATH_BIN+Re.Msg.MIXLY_ADD,"ab"],[Re.Msg.MIXLY_R_W,"r+"],[Re.Msg.MATH_BIN+Re.Msg.MIXLY_R_W,"rb+"],[Re.Msg.MIXLY_W_R,"w+"],[Re.Msg.MATH_BIN+Re.Msg.MIXLY_W_R,"wb+"],[Re.Msg.MIXLY_A_R,"a+"],[Re.Msg.MATH_BIN+Re.Msg.MIXLY_A_R,"ab+"]]),"MODE"),this.appendValueInput("FILE").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_AS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=Re.Msg.MIXLY_USE,n=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=Re.Msg.MIXLY_BELONG;return i+{r:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[t]+_+n+s}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},Gn={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"]]),"MODE"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=Re.Msg.MIXLY_USE,n=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=Re.Msg.MIXLY_BELONG,o=Re.Msg.PY_STORAGE_FILE_OBJECT;return i+{r:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[t]+_+n+s+o}))}},Un={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE);this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"]]),"MODE"),this.appendDummyInput().appendField(Re.Msg.MIXPY_TEXT_ENCODE).appendField(new Re.FieldDropdown([["ANSI","ANSI"],["gbk","gbk"],["utf-8","utf-8"]]),"CODE"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=Re.Msg.MIXLY_USE,n=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=Re.Msg.MIXLY_BELONG,o=Re.Msg.PY_STORAGE_FILE_OBJECT;return i+{r:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[t]+_+n+s+o}))}},wn={init:function(){this.setColour(0),this.appendValueInput("data").setCheck(String).appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE),this.appendValueInput("FILE").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_WRITE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE+Re.Msg.MIXLY_MICROBIT_TYPE_STRING+Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_WRITE)}},Hn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.appendDummyInput().appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL,"read"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE,"readline"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES,"readlines"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String)}},kn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.appendDummyInput().appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_NO_MORE_THAN_SIZE,"read"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE,"readline"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES_NO_MORE_THAN_SIZE,"readlines"]]),"MODE"),this.appendValueInput("SIZE").setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE,n=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER;return i+{read:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_NO_MORE_THAN_SIZE,readline:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE,readlines:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES_NO_MORE_THAN_SIZE}[t]+"x"+n}))}},Wn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.setNextStatement(!0),this.appendValueInput("SIZE").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String),this.setTooltip(Re.Msg.MICROBIT_PYTHON_TYPE)}},Kn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Re.Msg.HTML_FILE),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Boolean),this.setTooltip(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT1)}},Jn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILENAME),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String),this.setTooltip(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILENAME)}},Qn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CLOSE_FILE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CLOSE_FILE)}},zn={init:function(){this.setColour(0),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_LIST_ALL_FILES),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,"List"),this.setTooltip(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_LIST_ALL_FILES)}};Re.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE;const qn={init:function(){this.setColour(0),this.appendDummyInput().appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE,"remove"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_DIRS,"removedirs"]]),"MODE"),this.appendValueInput("FILE").setCheck(String),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE)}},jn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILE_SIZE),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_SIZE),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILE_SIZE+Re.Msg.MIXLY_MICROBIT_PY_STORAGE_SIZE)}},$n={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_RETURN_FILE),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_PRESENT_LOCATION),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_TELL)}},Zn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_SET_FILE_POSITION),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CURRENT_POSITION),this.appendDummyInput().appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_START,"start"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_CURRENT,"current"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_END,"end"]]),"MODE"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_OFFSET),this.appendValueInput("SIZE").setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_SET_FILE_POSITION+Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CURRENT_POSITION,n=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER,s=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_OFFSET;return i+" "+{start:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_START,current:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_CURRENT,end:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_END}[t]+s+"x"+n}))}},es={init:function(){this.setColour(0),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_CURRENT_DIR),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,"List"),this.setTooltip(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_CURRENT_DIR)}},ts={init:function(){this.setColour(0),this.appendValueInput("PATH").setCheck(String).appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_PATH),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_SET),this.appendDummyInput().appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,"mkdir"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MAKEDIRS,"makedirs"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE");return Re.Msg.MIXLY_MICROBIT_PY_STORAGE_PATH+"x"+Re.Msg.MIXLY_ESP32_SET+{mkdir:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,makedirs:Re.Msg.MIXLY_MICROPYTHON_SOCKET_MAKEDIRS}[t]}))}},is={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_RENAME),this.appendValueInput("NEWFILE").setCheck(String).appendField(Re.Msg.MIXLY_AS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_RENAME)}},ns={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CHANGE_DIR),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_CHANGE_DIR)}},ss={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_OR_NOT),this.appendDummyInput().appendField(new Re.FieldDropdown([[Re.Msg.HTML_FILE,"isfile"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_DIR,"isdir"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Boolean);let e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE");return Re.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH+"x"+Re.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_OR_NOT+{isfile:Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,isdir:Re.Msg.MIXLY_MICROPYTHON_SOCKET_MAKEDIRS}[t]}))}},_s={init:function(){this.setColour(0),this.appendValueInput("SPISUB").appendField(Re.Msg.CONTROLS_FOR_INPUT_WITH+"SPI").setCheck("var"),this.appendValueInput("PINSUB").appendField("CS"),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_SETUP+Re.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(Re.Msg.MIXLY_SD_CARD),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},os={init:function(){this.setColour(0),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_SD_CARD),this.appendValueInput("DIR").setCheck(String).appendField(Re.Msg.MIXLY_SDCARD_MOUNT),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip()}},ps={init:function(){var e=Re.Procedures.findLegalName("",this),t=new Re.FieldTextInput(e,Re.Procedures.rename);t.setSpellcheck(!1),this.appendDummyInput().appendField(t,"NAME").appendField("","PARAMS"),this.setMutator(new Re.icons.MutatorIcon(["procedures_mutatorarg"],this)),(this.workspace.options.comments||this.workspace.options.parentWorkspace&&this.workspace.options.parentWorkspace.options.comments)&&Re.Msg.PROCEDURES_DEFNORETURN_COMMENT&&this.setCommentText(Re.Msg.PROCEDURES_DEFNORETURN_COMMENT),this.setStyle("procedure_blocks"),this.setTooltip(Re.Msg.PROCEDURES_DEFNORETURN_TOOLTIP),this.setHelpUrl(Re.Msg.PROCEDURES_DEFNORETURN_HELPURL),this.arguments_=[],this.argumentVarModels_=[],this.setStatements_(!0),this.statementConnection_=null},setStatements_:function(e){this.hasStatements_!==e&&(e?(this.appendStatementInput("STACK").appendField(Re.Msg.PROCEDURES_DEFNORETURN_DO),this.getInput("RETURN")&&this.moveInputBefore("STACK","RETURN")):this.removeInput("STACK",!0),this.hasStatements_=e)},updateParams_:function(){var e="";this.arguments_.length&&(e=Re.Msg.PROCEDURES_BEFORE_PARAMS+" "+this.arguments_.join(", ")),Re.Events.disable();try{this.setFieldValue(e,"PARAMS")}finally{Re.Events.enable()}},mutationToDom:function(e){var t=Re.utils.xml.createElement("mutation");e&&t.setAttribute("name",this.getFieldValue("NAME"));for(var i=0;i"),this.appendValueInput("style").appendField(Re.Msg.MIXLY_AIP_ATTR).setAlign(Re.inputs.Align.RIGHT),this.appendStatementInput("DO").appendField(""),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},i_={init:function(){this.setColour(qs),this.appendDummyInput().appendField(Re.Msg.HTML_STYLE),this.appendStatementInput("STYLE"),this.setOutput(!0)}},n_={init:function(){this.setColour(qs),this.appendDummyInput().appendField(Re.Msg.HTML_FORM_CONTENT).appendField(new Re.FieldDropdown([[Re.Msg.HTML_TEXT,"text"],[Re.Msg.HTML_EMAIL,"email"],[Re.Msg.HTML_NUMBER,"number"],[Re.Msg.HTML_PASSWORD,"password"],[Re.Msg.HTML_CHECKBOX,"checkbox"],[Re.Msg.HTML_RADIOBUTTON,"radiobutton"],[Re.Msg.HTML_BUTTON,"button"],[Re.Msg.HTML_COLOUR,"colour"],[Re.Msg.HTML_DATE,"date"],[Re.Msg.HTML_LOCALTIME,"local time"],[Re.Msg.HTML_FILE,"file"],[Re.Msg.HTML_HIDDEN,"hidden"],[Re.Msg.HTML_IMAGE,"image"],[Re.Msg.HTML_MONTH,"month"],[Re.Msg.HTML_RANGE,"range"],[Re.Msg.HTML_RESET,"reset"],[Re.Msg.HTML_SEARCH,"search"],[Re.Msg.HTML_SUBMIT,"submit"],[Re.Msg.HTML_TELEPHONENUMBER,"telephone number"],[Re.Msg.HTML_TIME,"time"],[Re.Msg.HTML_URL,"url"],[Re.Msg.HTML_WEEK,"week"]]),"LEVEL"),this.appendDummyInput().appendField(Re.Msg.HTML_NAME).appendField(new Re.FieldTextInput("car"),"NAME"),this.appendDummyInput().appendField(Re.Msg.HTML_VALUE).appendField(new Re.FieldTextInput("go"),"VALUE"),this.appendValueInput("style").appendField(Re.Msg.MIXLY_AIP_ATTR).setAlign(Re.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},s_={init:function(){this.setColour(qs),this.appendDummyInput().appendField(new Re.FieldTextInput("property"),"KEY").appendField(":").appendField(new Re.FieldTextInput("value"),"VALUE"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},__={init:function(){this.setColour(qs),this.appendDummyInput().appendField(new Re.FieldTextInput("property"),"KEY").appendField(":").appendField(new Re.FieldColour("#ff0000"),"RGB_LED_COLOR"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},o_={init:function(){this.setColour(qs),this.appendDummyInput().appendField(Re.Msg.HTML_TEXT).appendField(new Re.FieldTextInput("text"),"TEXT"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},p_=160,a_={init:function(){this.setColour(p_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Tabular Abstraction:"),this.appendDummyInput().appendField(new Re.FieldTable(""),"TEXT")}},u_={init:function(){this.setColour(p_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Code Block:"),this.appendDummyInput().appendField(new Re.FieldMultilineInput(""),"TEXT")}},r_={init:function(){this.setColour(p_),this.appendDummyInput().appendField("Code Expression:"),this.appendDummyInput().appendField(new Re.FieldMultilineInput(""),"TEXT"),this.setOutput(!0)}},l_={init:function(){this.setColour(p_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("VALUE").appendField(""),this.setInputsInline(!1)}},d_={init:function(){this.setColour(p_),this.appendDummyInput().appendTitle("Comment:").appendTitle(new Re.FieldTextInput(""),"TEXT"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip("This comment will be ignored by Python")}},I_={init:function(){this.setColour(p_),this.appendValueInput("VALUE").appendField(Re.Msg.TYPE_CHECK),this.setInputsInline(!1),this.setOutput(!0,"Type")}},T_={init:function(){this.setColour(p_),this.itemCount_=1,this.updateShape_(),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new Re.icons.MutatorIcon(["text_print_multiple_item"],this)),this.setTooltip(Re.Msg.TEXT_PRINT_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=Re.Block.obtain(e,"text_print_multiple_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;n= stop:"," yield start"," start -= abs(step)"])};if(e=function(e,t,i){return"("+e+" <= "+t+") and "+a()+"("+e+", "+t+", "+i+") or "+u()+"("+e+", "+t+", "+i+")"},Re.isNumber(n)&&Re.isNumber(s)&&Re.isNumber(_))n=parseFloat(n),s=parseFloat(s),_=Math.abs(parseFloat(_)),0==n%1&&0==s%1&&0==_%1?(n<=s?(s++,e=0==n&&1==_?s:n+", "+s,1!=_&&(e+=", "+_)):e=n+", "+--s+", -"+_,e="range("+e+")"):(e=n",GTE:">="};const ra=function(e,t){var i=this.getFieldValue("OP"),n="&&"==i?t.ORDER_LOGICAL_AND:t.ORDER_LOGICAL_OR,s=t.valueToCode(this,"A",n)||"False",_=t.valueToCode(this,"B",n)||"False";if("AND"==i)var o=s+" and "+_;else if("OR"==i)o=s+" or "+_;else if("NOR"==i)o="not("+s+"^"+_+")";else o=s+"^"+_;return[o,n]},la=function(e,t){var i=t.ORDER_UNARY_PREFIX;return["not "+(t.valueToCode(this,"BOOL",i)||"False"),i]},da=function(e,t){return["TRUE"==this.getFieldValue("BOOL")?"True":"False",t.ORDER_ATOMIC]},Ia=function(e,t){return["None",t.ORDER_ATOMIC]},Ta=function(e,t){var i=t.valueToCode(this,"A",t.ORDER_ATOMIC)||"False";return["("+(t.valueToCode(this,"B",t.ORDER_ATOMIC)||"False")+" if "+i+" else "+(t.valueToCode(this,"C",t.ORDER_ATOMIC)||"False")+")",t.ORDER_ATOMIC]},Ma=function(e,t){var i=t.valueToCode(this,"A",t.ORDER_ATOMIC)||"''",n=t.valueToCode(this,"B",t.ORDER_ATOMIC)||"''";return[i+" "+this.getFieldValue("BOOL")+" "+n,t.ORDER_ATOMIC]},ha=function(e,t){var i=t.valueToCode(this,"A",t.ORDER_ATOMIC)||"''",n=t.valueToCode(this,"B",t.ORDER_ATOMIC)||"''";return[i+" "+this.getFieldValue("BOOL")+" "+n,t.ORDER_ATOMIC]},ma=function(e,t){return["bool("+(t.valueToCode(this,"VAR",t.ORDER_ATOMIC)||"0")+")",t.ORDER_ATOMIC]},Ea=function(e,t){return t.definitions_.import_os="import os","os.startfile("+t.valueToCode(this,"fn",t.ORDER_ATOMIC)+")\n"},Oa=function(e,t){return t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+" = open("+t.valueToCode(this,"FILENAME",t.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')\n"},Ra=function(e,t){return["open("+t.valueToCode(this,"FILENAME",t.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')",t.ORDER_ATOMIC]},ca=function(e,t){return["open("+t.valueToCode(this,"FILENAME",t.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"', encoding=\""+this.getFieldValue("CODE")+'")',t.ORDER_ATOMIC]},ga=function(e,t){var i=t.valueToCode(this,"data",t.ORDER_ATOMIC);return t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".write("+i+")\n"},Ca=function(e,t){var i=this.getFieldValue("MODE");return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+"."+i+"()",t.ORDER_ATOMIC]},Sa=function(e,t){var i=this.getFieldValue("MODE");return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+"."+i+"("+t.valueToCode(this,"SIZE",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Aa=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".readline("+t.valueToCode(this,"SIZE",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},La=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".writable()",t.ORDER_ATOMIC]},Na=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".name()",t.ORDER_ATOMIC]},Da=function(e,t){return t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".close()\n"},fa=function(e,t){t.definitions_.import_os="import os";return["os.listdir()",t.ORDER_ATOMIC]},Fa=function(e,t){return t.definitions_.import_os="import os","os."+this.getFieldValue("MODE")+"("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+")\n"},Pa=function(e,t){return t.definitions_.import_os="import os",["os.path.getsize("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Ya=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".tell()",t.ORDER_ATOMIC]},va=function(e,t){var i=this.getFieldValue("MODE"),n=0;return n="start"==i?0:"current"==i?1:2,t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".seek("+t.valueToCode(this,"SIZE",t.ORDER_ATOMIC)+","+n+")\n"},Xa=function(e,t){return t.definitions_.import_os="import os","os.chdir("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+")\n"},ya=function(e,t){t.definitions_.import_os="import os";return["os.getcwd()",t.ORDER_ATOMIC]},ba=function(e,t){return t.definitions_.import_os="import os","os."+this.getFieldValue("MODE")+"("+t.valueToCode(this,"PATH",t.ORDER_ATOMIC)+")\n"},xa=function(e,t){return t.definitions_.import_os="import os","os.rename("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+","+t.valueToCode(this,"NEWFILE",t.ORDER_ATOMIC)+")\n"},Va=function(e,t){t.definitions_.import_os="import os";var i=t.valueToCode(this,"FILE",t.ORDER_ATOMIC);return["os."+this.getFieldValue("MODE")+"("+i+")",t.ORDER_ATOMIC]},Ba=function(e,t){return t.definitions_.import_os="import os",t.definitions_.import_sdcard="import sdcard",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+" = sdcard.SDCard("+t.valueToCode(this,"SPISUB",t.ORDER_ATOMIC)+","+t.valueToCode(this,"PINSUB",t.ORDER_ATOMIC)+")\n"},Ga=function(e,t){return t.definitions_.import_os="import os",t.definitions_.import_sdcard="import sdcard","os.mount("+t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+","+t.valueToCode(this,"DIR",t.ORDER_ATOMIC)+")\n"},Ua=function(e,t){var i=t.variableDB_.getName(this.getFieldValue("NAME"),Re.Procedures.NAME_TYPE),n=(this.getInput("STACK")&&t.statementToCode(this,"STACK"))??" pass\n";t.INFINITE_LOOP_TRAP&&(n=t.INFINITE_LOOP_TRAP.replace(/%1/g,"'"+this.id+"'")+n);var s=t.valueToCode(this,"RETURN",t.ORDER_NONE)||"";s&&(s=" return "+s+"\n");for(var _=[],o=0;o\n\n\n\t\n"+t.statementToCode(this,"HEAD")+"\n\n"+t.statementToCode(this,"BODY")+"\n\n'''",t.ORDER_ATOMIC]},Cu=function(e,t){var i=t.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"\n"+i+"\n"},Su=function(e,t){var i=t.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");if("head"==n)var s="<"+n+'>\n\t\n'+i+"\n";else s="<"+n+">\n"+i+"\n";return s},Au=function(e,t){var i=t.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"<"+n+">\n"+i+"\n"},Lu=function(e,t){var i=t.statementToCode(this,"DO"),n=t.valueToCode(this,"style"),s=this.getFieldValue("LEVEL");return"<"+s+" "+n+" >\n"+i+"\n"},Nu=function(e,t){return['style="'+t.statementToCode(this,"STYLE")+'"',t.ORDER_ATOMIC]},Du=function(e,t){return'"},fu=function(){return this.getFieldValue("KEY")+":"+this.getFieldValue("VALUE")+";"},Fu=function(){return this.getFieldValue("TEXT")+"\n"},Pu=function(e){return e.getFieldValue("TEXT")+"\n"},Yu=function(e,t){return[e.getFieldValue("TEXT"),t.ORDER_ATOMIC]},vu=function(e,t){return(t.valueToCode(e,"VALUE",t.ORDER_ATOMIC)||"")+"\n"},Xu=function(){return""},yu=function(e,t){return["type("+(t.valueToCode(e,"VALUE",t.ORDER_MEMBER)||"___")+")",t.ORDER_ATOMIC]},bu=function(e,t){for(var i=e.getFieldValue("NAME"),n=e.hasReturn_,s=new Array(e.itemCount_),_=0;_0?t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+"while True:\n"+a.join("")+u.join("\n"):t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+u.join("\n")},Gu.scrubNakedValue=function(e){return e+"\n"},Gu.quote_=function(e){var t="'";return-1!==e.indexOf("'")&&(-1===e.indexOf('"')?t='"':e=e.replace(/'/g,"\\'")),t+e+t},Gu.multiline_quote_=function(e){return"'''"+(e=e.replace(/'''/g,"\\'\\'\\'"))+"'''"},Gu.scrub_=function(e,t,i){var n="";if(!e.outputConnection||!e.outputConnection.targetConnection){(_=e.getCommentText())&&(_=Re.utils.string.wrap(_,Gu.COMMENT_WRAP-3),n+=Gu.prefixLines(_+"\n","# "));for(var s=0;s0?"int("+p+" + "+s+")":s<0?"int("+p+" - "+-s+")":"int("+p+")",n&&(p="-"+p)),p};const Uu="#74A55B",wu={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MIDI),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_SETUP).setCheck("var"),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Re.Msg.MIXLY_RGB_PIN_COUNT)}},Hu={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Re.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},ku={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Re.Msg.MIXLY_FREQUENCY),this.appendValueInput("time").setCheck(Number).appendField(Re.Msg.MIXLY_DURATION),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE2)}},Wu={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendValueInput("LIST").appendField(Re.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Ku={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendValueInput("LIST").appendField(Re.Msg.MIXLY_BACKSTAGE+Re.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_BACKSTAGE+Re.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Ju={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendValueInput("TICKS").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_SET_TEMPO).appendField(Re.Msg.MICROBIT_ACTUATOR_ticks),this.appendValueInput("BPM").setCheck(Number).appendField(Re.Msg.MIXLY_SPEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_SET_TEMPO)}},Qu={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Get_current_tempo),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_GET_TEMPO)}},zu={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Reset_music),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_RESET)}},qu={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},ju={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendValueInput("percent").appendField(Re.Msg.MIXLY_MUSIC_VOLUME_SET),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},$u={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.MIXLY_SETTING).appendField(Re.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("bright").appendField(Re.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_EXTERN_LED_SETONOFF)}},Zu={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Re.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_EXTERN_LED_GETONOFF)}},er={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Re.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_EXTERN_LED_GETONOFF)}},tr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.MIXLY_SETTING).appendField(Re.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("bright").appendField(Re.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_EXTERN_LED_SETBRIGHT)}},ir={init:function(){this.setColour(Uu),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_SETUP+Re.Msg.MIXLY_SERVO),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},nr={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_SERVO).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("DEGREE",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_DEGREE_0_180),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_SERVO_MOVE)}},sr={init:function(){this.setColour(Uu),this.appendValueInput("VAR").appendField("360°"+Re.Msg.MIXLY_SERVO),this.appendValueInput("SPEED",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_SETTING+Re.Msg.blockpy_turtle_rotate+Re.Msg.MIXLY_SPEED+" (-10~10)"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_SERVO_360_TOOLTIP)}},_r={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).appendField("180°"+Re.Msg.MIXLY_SERVO).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_SERVO_MOVE)}},or={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).appendField("360°"+Re.Msg.MIXLY_SERVO).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_SERVO_SPEED_TOOLIPS)}},pr={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).appendField("180°"+Re.Msg.MIXLY_SERVO).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET+Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},ar={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).appendField("360°"+Re.Msg.MIXLY_SERVO).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET+Re.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},ur={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("初始化").setCheck("var"),this.appendDummyInput().appendField("电机驱动"),this.appendDummyInput().appendField("地址").appendField(new Re.FieldDropdown([["A","ms32006.ADDRESS_A"],["B","ms32006.ADDRESS_B"]]),"mode"),this.appendValueInput("SUB1").setCheck("var").setAlign(Re.inputs.Align.RIGHT).appendField("通信"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("初始化MS32006电机驱动,使用I2C通信")}},rr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("直流电机").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Direction).appendField(new Re.FieldDropdown([[Re.Msg.CLOCKWISE,"ms32006.MOT_CW"],[Re.Msg.ANTI_CLOCKWISE,"ms32006.MOT_CCW"],[Re.Msg.MOTOR_N,"ms32006.MOT_N"],[Re.Msg.MOTOR_P,"ms32006.MOT_P"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_STEPPER_SET_SPEED),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("设置直流电机的状态及转速(0-100)")}},lr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("步进电机").setCheck("var"),this.appendDummyInput().appendField("选择").appendField(new Re.FieldDropdown([["A","ms32006.MOT_A"],["B","ms32006.MOT_B"]]),"mode"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Direction).appendField(new Re.FieldDropdown([[Re.Msg.CLOCKWISE,"ms32006.MOT_CW"],[Re.Msg.ANTI_CLOCKWISE,"ms32006.MOT_CCW"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField("转速"),this.appendValueInput("steps").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField("步数"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("设置步进电机的状态、转速、步数(0-2047)")}},dr={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_SETUP).setCheck("var"),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_PIN),this.appendValueInput("LEDCOUNT").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_COUNT),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Re.Msg.MIXLY_RGB_PIN_COUNT)}},Ir={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("_LED_").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Re.Msg.MIXLY_RGB_NUM_R_G_B_MP)}},Tr={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Re.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},Mr={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_RGB_WRITE),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_WRI)}},hr={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RAINBOW),this.appendValueInput("time").setCheck(Number).appendField(Re.Msg.MIXLY_DURATION).appendField(Re.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},mr={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(Re.Msg.PYTHON_RANGE_STEP).appendField(Re.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Er={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Re.Msg.CONTROLS_FOR_INPUT_WITH+"uart").appendField(new Re.FieldDropdown([["uart1","uart1"],["uart2","uart2"]]),"key"),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_SETUP+Re.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new Re.FieldDropdown([["SYN6288"+Re.Msg.MIXLY_AipSpeech_synthesis,"SYN6288"],["NS9300"+Re.Msg.MIXLY_MUSIC_PLAYER,"NS9300"]]),"key2"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},Or={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_GET+Re.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_WHETHER).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_STOPPED,"0"],[Re.Msg.MIXLY_PLAYING,"1"],[Re.Msg.MIXLY_PAUSED,"2"]]),"key"),this.setInputsInline(!0),this.setOutput(!0)}},Rr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_STAT).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MP3_PLAY,"1"],[Re.Msg.MIXLY_MP3_PAUSE,"2"],[Re.Msg.MIXLY_STOP,"3"],[Re.Msg.MIXLY_MP3_PREV,"4"],[Re.Msg.MIXLY_MP3_NEXT,"5"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},cr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendValueInput("volume").appendField(Re.Msg.MIXLY_MP3_VOL+Re.Msg.MIXLY_STAT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_PLAYER_SET_VOLUME_TOOLTIP)}},gr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MODE+Re.Msg.MIXLY_STAT).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MP3_LOOP_ALL,"0"],[Re.Msg.MIXLY_MP3_LOOP_ONE,"1"],[Re.Msg.MIXLY_PLAYER_DIRECTORY_LOOP,"2"],[Re.Msg.MIXLY_MP3_LOOP_RAM,"3"],[Re.Msg.MIXLY_PLAYER_SINGLE_STOP,"4"],[Re.Msg.MIXLY_PLAYER_SEQUENTIAL_PLAY,"5"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Cr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_JS_START_MELODY,"play"],[Re.Msg.MIXLY_PLAYER_INSERT_MUSIC,"insert"]]),"key"),this.appendValueInput("song"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_PLAYER_PLAY_MUSIC_TOOTIP)}},Sr={},Ar={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("VOICE").setCheck(Number).appendField(Re.Msg.MIXLY_SET_VOLUME),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_SET_VOLUME_TOOLTIP)}},Lr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET_VOLUME),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_SET_VOLUME_TOOLTIP)}},Nr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("VOICE").setCheck(Number).appendField(Re.Msg.MIXLY_PLAY_HINTS),this.appendDummyInput().appendField(Re.Msg.MIXLY_PROGRAM_BLOCK).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Re.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"mode"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_PLAY_HINTS_TOOLTIP)}},Dr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("data").setCheck(String).appendField(Re.Msg.MIXLY_AipSpeech_synthesis),this.appendValueInput("VOICE").setCheck(Number).appendField(Re.Msg.MIXLY_BACKGROUND_MUSIC),this.appendDummyInput().appendField(Re.Msg.MIXLY_PROGRAM_BLOCK).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Re.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"mode"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_PLAY_TTS_TOOLTIP)}},fr={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.extern_addr),"PIN"),this.setOutput(!0,Number)}},Fr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN+Re.Msg.MIXLY_MOTOR).appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},Pr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN+Re.Msg.MIXLY_MOTOR).appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_GET+Re.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},Yr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN+Re.Msg.MIXLY_TRAFFIC_LIGHT).appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.LISTS_SET_INDEX_SET).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_Turn_off_display,"0"],[Re.Msg.MIXLY_TRAFFIC_LIGHT_RED_ON,"1"],[Re.Msg.MIXLY_TRAFFIC_LIGHT_RED_BLINK,"2"],[Re.Msg.MIXLY_TRAFFIC_LIGHT_YELLOW_ON,"3"],[Re.Msg.MIXLY_TRAFFIC_LIGHT_YELLOW_BLINK,"4"],[Re.Msg.MIXLY_TRAFFIC_LIGHT_GREEN_ON,"5"],[Re.Msg.MIXLY_TRAFFIC_LIGHT_GREEN_BLINK,"6"]]),"light"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},vr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN).appendField(new Re.FieldDropdown([[Re.Msg.COLOUR_RGB_WHITE,"W"],[Re.Msg.COLOUR_RGB_RED,"R"],[Re.Msg.COLOUR_RGB_YELLOW,"Y"],[Re.Msg.COLOUR_RGB_GREEN,"G"],[Re.Msg.COLOUR_RGB_BLUE,"B"]]),"color").appendField("LED").appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendValueInput("value").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.BRIGHTNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Xr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN).appendField(new Re.FieldDropdown([[Re.Msg.COLOUR_RGB_WHITE,"W"],[Re.Msg.COLOUR_RGB_RED,"R"],[Re.Msg.COLOUR_RGB_YELLOW,"Y"],[Re.Msg.COLOUR_RGB_GREEN,"G"],[Re.Msg.COLOUR_RGB_BLUE,"B"]]),"color").appendField("LED").appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET+Re.Msg.BRIGHTNESS),this.setOutput(!0,Number),this.setInputsInline(!0)}},yr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN+Re.Msg.MIXLY_SERVO_MOTOR).appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"[0]"],[Re.Msg.MIXLY_SPEED,"[1]"],[Re.Msg.MATH_SINGLE_OP_ABSOLUTE+Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"[2]"],[Re.Msg.MIXLY_RELATIVE+Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"[3]"],[Re.Msg.MIXLY_MIXBOT_SERVO_BLOCK_OR_NOT,"[4]"],[Re.Msg.MIXLY_MIXBOT_SERVO_FINISH_OR_NOT,"[5]"],[Re.Msg.MIXLY_ALL,""]]),"status"),this.setOutput(!0,Number),this.setInputsInline(!0)}},br={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN+Re.Msg.MIXLY_SERVO_MOTOR).appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_SERVO_SET_STOP_MODE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_KEEP,"0"],[Re.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_COAST,"1"],[Re.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_BRAKE,"2"]]),"status"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},xr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN+Re.Msg.MIXLY_SERVO_MOTOR).appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Re.Msg.MIXLY_STOP),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Vr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN+Re.Msg.MIXLY_SERVO_MOTOR).appendField(Re.Msg.MATH_SINGLE_OP_ABSOLUTE+Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Re.Msg.MSG.run).appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MODE).setAlign(Re.inputs.Align.RIGHT).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_SPEED+Re.Msg.MIXLY_MODE,"0"],[Re.Msg.MIXLY_MICROBIT_JS_BLE_POWER+Re.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(Re.inputs.Align.RIGHT).appendField("%"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_SERVO_TURN_DIRECTION).setAlign(Re.inputs.Align.RIGHT).appendField(new Re.FieldDropdown([[Re.Msg.CLOCKWISE,"0"],[Re.Msg.MIXLY_MIXBOT_SERVO_NEAREST_PATH,"1"],[Re.Msg.ANTI_CLOCKWISE,"2"]]),"direction"),this.appendValueInput("angle").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MIXBOT_SERVO_ABSOLUTE_ANGLE_TOOLTIP)}},Br={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN+Re.Msg.MIXLY_SERVO_MOTOR).appendField(Re.Msg.MIXLY_RELATIVE+Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Re.Msg.MSG.run).appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_SERVO_RELATIVE_ORIGIN_PATH),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Gr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN+Re.Msg.MIXLY_SERVO_MOTOR).appendField(Re.Msg.MIXLY_RELATIVE+Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Re.Msg.MSG.run).appendField("("+Re.Msg.MIXLY_MIXBOT_SERVO_LIKE_ENCODING_MOTOR+")").appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MODE).setAlign(Re.inputs.Align.RIGHT).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_SPEED+Re.Msg.MIXLY_MODE,"0"],[Re.Msg.MIXLY_MICROBIT_JS_BLE_POWER+Re.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(Re.inputs.Align.RIGHT).appendField("%"),this.appendValueInput("angle").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MIXBOT_SERVO_RELATIVE_ANGLE_TOOLTIP)}},Ur={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.ME_GO_MOTOR_EXTERN+Re.Msg.MIXLY_SERVO_MOTOR).appendField(Re.Msg.MIXLY_RELATIVE+Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Re.Msg.MSG.run).appendField("("+Re.Msg.MIXLY_MIXBOT_SERVO_LIKE_ORDINARY_MOTOR+")").appendField(Re.Msg.PIN_NUMBERING).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LEFT,"0"],[Re.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MODE).setAlign(Re.inputs.Align.RIGHT).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_SPEED+Re.Msg.MIXLY_MODE,"0"],[Re.Msg.MIXLY_MICROBIT_JS_BLE_POWER+Re.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(Re.inputs.Align.RIGHT).appendField("%"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_SERVO_TURN_DIRECTION).setAlign(Re.inputs.Align.RIGHT).appendField(new Re.FieldDropdown([[Re.Msg.CLOCKWISE,"0"],[Re.Msg.ANTI_CLOCKWISE,"2"]]),"direction"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},wr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.MIXBOT).appendField(Re.Msg.ME_GO_MOTOR_EXTERN).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MOTOR,"ext_motor"],[Re.Msg.MIXLY_TRAFFIC_LIGHT,"ext_traffic"],[Re.Msg.COLOUR_RGB_WHITE+"LED","W_LED"],[Re.Msg.COLOUR_RGB_RED+"LED","R_LED"],[Re.Msg.COLOUR_RGB_YELLOW+"LED","Y_LED"],[Re.Msg.COLOUR_RGB_GREEN+"LED","G_LED"],[Re.Msg.COLOUR_RGB_BLUE+"LED","B_LED"],[Re.Msg.MIXLY_SERVO_MOTOR,"ext_servo"]]),"name"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_EXTERN_GET_ADDR),this.setOutput(!0),this.setInputsInline(!0)}},Hr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.MIXBOT).appendField(Re.Msg.ME_GO_MOTOR_EXTERN).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MOTOR,"ext_motor"],[Re.Msg.MIXLY_TRAFFIC_LIGHT,"ext_traffic"],[Re.Msg.COLOUR_RGB_WHITE+"LED","W_LED"],[Re.Msg.COLOUR_RGB_RED+"LED","R_LED"],[Re.Msg.COLOUR_RGB_YELLOW+"LED","Y_LED"],[Re.Msg.COLOUR_RGB_GREEN+"LED","G_LED"],[Re.Msg.COLOUR_RGB_BLUE+"LED","B_LED"],[Re.Msg.MIXLY_SERVO_MOTOR,"ext_servo"]]),"name"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_EXTERN_SET_ADDR),this.appendValueInput("old").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE),this.appendValueInput("new").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_UPDATE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},kr={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_SETUP+Re.Msg.MIXLY_AT).appendField(Re.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},Wr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Re.Msg.MIXLY_SETTING),this.appendValueInput("pin").appendField("LED"),this.appendValueInput("bright").appendField(Re.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Kr={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_SERVO+Re.Msg.MIXLY_SETUP+Re.Msg.MIXLY_AT).appendField(Re.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},Jr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_SERVO),this.appendValueInput("angle").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_DISPLAY_MATRIX_ROTATE),this.appendDummyInput().appendField(Re.Msg.DRAW_POINTER_ANGLE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Qr={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_MOTOR+Re.Msg.MIXLY_SETUP+Re.Msg.MIXLY_AT).appendField(Re.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},zr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MOTOR),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+Re.Msg.MIXLY_SPEED),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},qr="#6C9858",jr={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(new Re.FieldDropdown([["L1","1"],["L2","2"]]),"op"),this.setOutput(!0)}},$r={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_ESP32_ON,"1"],[Re.Msg.MIXLY_ESP32_OFF,"0"],[Re.Msg.MIXLY_ESP32_TOGGLE,"-1"]]),"flag"),this.setOutput(!0),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_INOUT_HIGHLOW)}},Zr={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(Re.Msg.MIXLY_BUILDIN_LED),this.appendValueInput("bright").appendField(Re.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_LED_SETONOFF)}},el={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField(Re.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput().appendField(Re.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_LED_GETBRIGHT)}},tl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField(Re.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput().appendField(Re.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_LED_GETONOFF)}},il={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(Re.Msg.MIXLY_BUILDIN_LED),this.appendValueInput("bright").appendField(Re.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_SETTING+Re.Msg.MIXLY_BUILDIN_LED+Re.Msg.MIXLY_BRIGHTNESS+"(0-100%)")}},nl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(Re.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput("").appendField(Re.Msg.MIXLY_LCD_SETCOLOR).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_LIGHT_RED,"1"],[Re.Msg.MIXLY_LIGHT_GREEN,"2"],[Re.Msg.MIXLY_LIGHT_BLUE,"3"],[Re.Msg.MIXLY_LIGHT_YELLOW,"4"],[Re.Msg.MIXLY_LIGHT_CYAN,"5"],[Re.Msg.MIXLY_LIGHT_PURPLE,"6"],[Re.Msg.MIXLY_LIGHT_WHITE,"7"]]),"colorvalue"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip()}},sl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_SETTING).appendField(Re.Msg.MIXLY_BUILDIN_LED).appendField(new Re.FieldDropdown([[Re.Msg.COLOUR_RGB_RED,"r"],[Re.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendValueInput("bright").appendField(Re.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_LED_SETONOFF)}},_l={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Re.Msg.MIXLY_BUILDIN_LED).appendField(new Re.FieldDropdown([[Re.Msg.COLOUR_RGB_RED,"r"],[Re.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendDummyInput().appendField(Re.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_LED_GETONOFF)}},ol={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Re.Msg.MIXLY_BUILDIN_LED).appendField(new Re.FieldDropdown([[Re.Msg.COLOUR_RGB_RED,"r"],[Re.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendDummyInput().appendField(Re.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_LED_GETONOFF)}},pl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_SETTING).appendField(Re.Msg.MIXLY_BUILDIN_LED).appendField(new Re.FieldDropdown([[Re.Msg.COLOUR_RGB_RED,"r"],[Re.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendValueInput("bright").appendField(Re.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_SETTING+Re.Msg.MIXLY_BUILDIN_LED+Re.Msg.MIXLY_BRIGHTNESS+"(0-10)")}},al={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(new Re.FieldDropdown([["L1","20"],["L2","21"]]),"op"),this.setOutput(!0)}},ul={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendValueInput("_LED_").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null);switch(ce.Boards.getSelectedBoardKey()){case"micropython:esp32c3:mixgo_cc":case"micropython:esp32s2:mixgo_ce":this.setTooltip(Re.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOCC);break;case"micropython:esp32c3:mixgo_me":default:this.setTooltip(Re.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOME);break;case"micropython:esp32:mPython":this.setTooltip(Re.Msg.MIXLY_RGB_NUM_R_G_B_MPYTHON)}}},rl={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Re.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},ll={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RAINBOW),this.appendValueInput("time").setCheck(Number).appendField(Re.Msg.MIXLY_DURATION).appendField(Re.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},dl={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(Re.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(Re.Msg.PYTHON_RANGE_STEP).appendField(Re.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Il={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_RGB_WRITE),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_WRI)}},Tl={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendValueInput("_LED_").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null);switch(ce.Boards.getSelectedBoardKey()){case"micropython:esp32c3:mixgocc":this.setTooltip(Re.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOCC);break;case"micropython:esp32c3:mixgome":default:this.setTooltip(Re.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOME);break;case"micropython:esp32:mPython":this.setTooltip(Re.Msg.MIXLY_RGB_NUM_R_G_B_MPYTHON)}}},Ml={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Re.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},hl={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(Re.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(Re.Msg.PYTHON_RANGE_STEP).appendField(Re.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},ml={init:function(){this.setColour(qr),this.appendValueInput("TICKS").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_SET_TEMPO).appendField(Re.Msg.MICROBIT_ACTUATOR_ticks),this.appendValueInput("BPM").setCheck(Number).appendField(Re.Msg.MIXLY_SPEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_SET_TEMPO)}},El={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Get_current_tempo),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_GET_TEMPO)}},Ol={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Reset_music),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_RESET)}},Rl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Re.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},cl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Re.Msg.MIXLY_FREQUENCY),this.appendValueInput("time").setCheck(Number).appendField(Re.Msg.MIXLY_DURATION),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE2)}},gl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Cl={init:function(){this.setColour(qr),this.appendValueInput("LIST").appendField(Re.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Sl={init:function(){this.setColour(qr),this.appendValueInput("LIST").appendField(Re.Msg.MIXLY_BACKSTAGE+Re.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Al={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MOTOR_DC).appendField(new Re.FieldDropdown([["1","1"],["2","2"],["3","3"]]),"wheel"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Direction).appendField(new Re.FieldDropdown([[Re.Msg.CLOCKWISE,"CW"],[Re.Msg.ANTI_CLOCKWISE,"CCW"],[Re.Msg.MOTOR_P,"P"],[Re.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Ll={init:function(){this.setColour(qr),this.appendDummyInput().appendField("MixGo Car").appendField(new Re.FieldDropdown([[Re.Msg.blockpy_forward,"F"],[Re.Msg.blockpy_backward,"B"],[Re.Msg.blockpy_left,"L"],[Re.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Nl={init:function(){this.setColour(qr),this.appendDummyInput("").appendField("MixGo Car").appendField(new Re.FieldDropdown([[Re.Msg.MOTOR_P,"P"],[Re.Msg.MOTOR_N,"N"]]),"VAR"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Dl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MOTOR_DC).appendField(new Re.FieldDropdown([[Re.Msg.MIXLYCAR_WHEEL_LEFT,"L"],[Re.Msg.MIXLYCAR_WHEEL_RIGHT,"R"]]),"wheel"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Direction).appendField(new Re.FieldDropdown([[Re.Msg.CLOCKWISE,"CW"],[Re.Msg.ANTI_CLOCKWISE,"CCW"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},fl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MOTOR_DC).appendField(new Re.FieldDropdown([[Re.Msg.MIXLYCAR_WHEEL_LEFT,"L"],[Re.Msg.MIXLYCAR_WHEEL_RIGHT,"R"]]),"wheel"),this.appendDummyInput().appendField(Re.Msg.MIXLY_STOP).appendField(new Re.FieldDropdown([[Re.Msg.MOTOR_P,"P"],[Re.Msg.MOTOR_N,"N"]]),"direction"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Fl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_MOTOR_STATUS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MIXBOT_MOTOR_STATUS_TOOLTIP)}},Pl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXBOT).appendField(new Re.FieldDropdown([[Re.Msg.blockpy_forward,"F"],[Re.Msg.blockpy_backward,"B"],[Re.Msg.blockpy_left,"L"],[Re.Msg.blockpy_right,"R"]]),"VAR"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"PWR"],[Re.Msg.MIXLY_SPEED,"SPEED"],[Re.Msg.MIXLY_MIXBOT_MOTOR_TURNS,"TURNS"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MIXBOT_MOVE_TOOLTIP)}},Yl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXBOT).appendField(new Re.FieldDropdown([[Re.Msg.MOTOR_P,"P"],[Re.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},vl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXBOT).appendField(Re.Msg.MIXLY_MOTOR).appendField(new Re.FieldDropdown([[Re.Msg.TEXT_TRIM_LEFT,"1"],[Re.Msg.TEXT_TRIM_RIGHT,"2"],[Re.Msg.TEXT_TRIM_BOTH,"0"]]),"wheel"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"PWR"],[Re.Msg.MIXLY_SPEED,"SPEED"],[Re.Msg.MIXLY_MIXBOT_MOTOR_TURNS,"TURNS"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MIXBOT_MOVE_TOOLTIP)}},Xl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_BUZZER),this.appendDummyInput().appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_PY_COMMUNICATE_ON,"0"],[Re.Msg.MIXLY_MICROBIT_PY_COMMUNICATE_OFF,"1"]]),"on_off"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},yl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.BITBOT).appendField(new Re.FieldDropdown([[Re.Msg.blockpy_forward,"F"],[Re.Msg.blockpy_backward,"B"],[Re.Msg.blockpy_left,"L"],[Re.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},bl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.BITBOT).appendField(new Re.FieldDropdown([[Re.Msg.MOTOR_P,"P"],[Re.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},xl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.BITBOT).appendField(Re.Msg.MIXLY_MOTOR).appendField(new Re.FieldDropdown([[Re.Msg.TEXT_TRIM_LEFT,"0"],[Re.Msg.TEXT_TRIM_RIGHT,"1"]]),"wheel"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Direction).appendField(new Re.FieldDropdown([[Re.Msg.CLOCKWISE,"CW"],[Re.Msg.ANTI_CLOCKWISE,"CCW"],[Re.Msg.MOTOR_P,"P"],[Re.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Vl={init:function(){this.setColour(qr),this.appendValueInput("bright").appendField(Re.Msg.MIXLY_MIXBOT_SOUND_SET_LOUDNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_LED_SETONOFF)}},Bl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_SOUND_LOUDNESS+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_LED_GETONOFF)}},Gl={init:function(){this.setColour(qr),this.appendValueInput("bright").appendField(Re.Msg.MIXLY_SETTING+Re.Msg.MIXLY_MIXBOT_BUZZER+Re.Msg.MIXLY_MP3_VOL),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_LED_SETONOFF)}},Ul={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET+Re.Msg.MIXLY_MIXBOT_BUZZER+Re.Msg.MIXLY_MP3_VOL+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_LED_GETONOFF)}},wl={init:function(){this.setColour(qr),this.appendValueInput("PATH").appendField(Re.Msg.MIXLY_RECORD_AUDIO).appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.appendValueInput("TIME").setCheck(Number).appendField(Re.Msg.MIXLY_GET_PRESSES_TIME),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Hl={init:function(){this.setColour(qr),this.appendValueInput("PATH").appendField(Re.Msg.MIXLY_PLAY_AUDIO).appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},kl={init:function(){this.setColour(qr),this.appendValueInput("PATH").appendField(Re.Msg.MIXLY_PLAY_ONLINE_AUDIO).appendField("URL"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Wl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Re.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Kl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Jl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.LISTS_SET_INDEX_SET+Re.Msg.ME_GO_MOTOR_EXTERN).appendField(Re.Msg.PIN_NUMBERING);switch(ce.Boards.getSelectedBoardKey()){case"micropython:esp32c2:mixgo_mini":this.appendDummyInput().appendField(new Re.FieldDropdown([["1","1"],["2","2"]]),"index");break;case"micropython:esp32c5:mixgo_sowl":this.appendDummyInput().appendField(new Re.FieldDropdown([["1","1"],["2","2"],["4","4"],["5","5"]]),"index");break;default:this.appendDummyInput().appendField(new Re.FieldDropdown([["1","1"],["2","2"],["3","3"],["4","4"]]),"index")}this.appendValueInput("duty").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.blynk_IOT_IR_POWER+Re.Msg.MIXLY_PINMODEOUT),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip()}},Ql={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET+Re.Msg.ME_GO_MOTOR_EXTERN).appendField(Re.Msg.PIN_NUMBERING);switch(ce.Boards.getSelectedBoardKey()){case"micropython:esp32c2:mixgo_mini":this.appendDummyInput().appendField(new Re.FieldDropdown([["1","1"],["2","2"]]),"index");break;case"micropython:esp32c5:mixgo_sowl":this.appendDummyInput().appendField(new Re.FieldDropdown([["1","1"],["2","2"],["4","4"],["5","5"]]),"index");break;default:this.appendDummyInput().appendField(new Re.FieldDropdown([["1","1"],["2","2"],["3","3"],["4","4"]]),"index")}this.appendDummyInput().setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.blynk_IOT_IR_POWER+Re.Msg.MIXLY_PINMODEOUT+Re.Msg.MIXLY_DUTY_RATIO),this.setOutput(!0,Number),this.setInputsInline(!0)}},zl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.LISTS_SET_INDEX_SET+Re.Msg.ME_GO_MOTOR_EXTERN).appendField(Re.Msg.MIXLY_ALL+Re.Msg.PIN_NUMBERING),this.appendValueInput("duty").setCheck(Number).setAlign(Re.ALIGN_RIGHT).appendField(Re.Msg.blynk_IOT_IR_POWER+Re.Msg.MIXLY_PINMODEOUT+Re.Msg.MIXLY_FREQUENCY),this.appendDummyInput().appendField("Hz"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},ql={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.LISTS_SET_INDEX_SET+Re.Msg.ME_GO_MOTOR_EXTERN).appendField(new Re.FieldDropdown([["1-2","1"],["4-5","4"]]),"index"),this.appendValueInput("duty").setCheck(Number).setAlign(Re.ALIGN_RIGHT).appendField(Re.Msg.blynk_IOT_IR_POWER+Re.Msg.MIXLY_PINMODEOUT+Re.Msg.MIXLY_FREQUENCY),this.appendDummyInput().appendField("Hz"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},jl={init:function(){this.setColour(qr),this.appendDummyInput().appendField(Re.Msg.ANALOG+Re.Msg.MIXLY_KEYBOARD_INPUT),this.appendValueInput("special"),this.appendValueInput("general"),this.appendDummyInput().appendField(Re.Msg.MIXLY_RELEASE).appendField(new Re.FieldDropdown([[Re.Msg.MICROPYTHON_DISPLAY_YES,"True"],[Re.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"release"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.ANALOG+Re.Msg.MIXLY_KEYBOARD_INPUT)}},$l={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(Re.Msg.MIXLY_SPECIAL_KEY).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_SPECIAL_KEY0,"0x00"],[Re.Msg.MIXLY_SPECIAL_KEY1,"0x01"],[Re.Msg.MIXLY_SPECIAL_KEY2,"0x02"],[Re.Msg.MIXLY_SPECIAL_KEY4,"0x04"],[Re.Msg.MIXLY_SPECIAL_KEY8,"0x08"],[Re.Msg.MIXLY_SPECIAL_KEY16,"0x10"],[Re.Msg.MIXLY_SPECIAL_KEY32,"0x20"],[Re.Msg.MIXLY_SPECIAL_KEY64,"0x40"],[Re.Msg.MIXLY_SPECIAL_KEY128,"0x80"]]),"op"),this.setOutput(!0)}},Zl={init:function(){this.setColour(qr),this.appendDummyInput("").appendField(Re.Msg.MIXLY_GENERAL_KEY).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_SPECIAL_KEY0,"0x00"],["A","0x04"],["B","0x05"],["C","0x06"],["D","0x07"],["E","0x08"],["F","0x09"],["G","0x0A"],["H","0x0B"],["I","0x0C"],["J","0x0D"],["K","0x0E"],["L","0x0F"],["M","0x10"],["N","0x11"],["O","0x12"],["P","0x13"],["Q","0x14"],["R","0x15"],["S","0x16"],["T","0x17"],["U","0x18"],["V","0x19"],["W","0x1A"],["X","0x1B"],["Y","0x1C"],["Z","0x1D"],["1 !","0x1E"],["2 @","0x1F"],["3 #","0x20"],["4 $","0x21"],["5 %","0x22"],["6 ^","0x23"],["7 &","0x24"],["8 *","0x25"],["9 (","0x26"],["0 )","0x27"],["ENTER","0x28"],["ESC","0x29"],["BACKSPACE","0x2A"],["TAB","0x2B"],["SPACE","0x2C"],["- _","0x2D"],["= +","0x2E"],["[ {","0x2F"],["] }","0x30"],["\\ |","0x31"],["; :","0x33"],["' \"","0x34"],["` ~","0x35"],[", <","0x36"],[". >","0x37"],["/ ?","0x38"],["CAPS_LOCK","0x39"],["F1","0x3A"],["F2","0x3B"],["F3","0x3C"],["F4","0x3D"],["F5","0x3E"],["F6","0x3F"],["F7","0x40"],["F8","0x41"],["F9","0x42"],["F10","0x43"],["F11","0x44"],["F12","0x45"],["PRINTSCREEN","0x46"],["SCROLL_LOCK","0x47"],["PAUSE","0x48"],["INSERT","0x49"],["HOME","0x4A"],["PAGE_UP","0x4B"],["DELETE","0x4C"],["END","0x4D"],["PAGE_DOWN","0x4E"],["RIGHT","0x4F"],["LEFT","0x50"],["DOWN","0x51"],["UP","0x52"],["NUM_LOCK","0x53"],["/","0x54"],["*","0x55"],["-","0x56"],["+","0x57"],["ENTER","0x58"],["1","0x59"],["2","0x5A"],["3","0x5B"],["4","0x5C"],["5","0x5D"],["6","0x5E"],["7","0x5F"],["8","0x60"],["9","0x61"],["0","0x62"],[".","0x63"]]),"op"),this.setOutput(!0)}},ed={init:function(){this.setColour(qr),this.itemCount_=2,this.updateShape_(),this.setOutput(!0),this.setMutator(new Re.icons.MutatorIcon(["generalkey_create_with_item"],this)),this.setTooltip(Re.Msg.GENERALKEY_TUPLE_CREATE_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("generalkey_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;nnew Array(32).fill(0)))},jm={init:function(){this.jsonInit({colour:Gm,args0:[{name:"image",options:[["HEART","HEART"],["HEART_SMALL","HEART_SMALL"],["HAPPY","HAPPY"],["SAD","SAD"],["SMILE","SMILE"],["SILLY","SILLY"],["FABULOUS","FABULOUS"],["SURPRISED","SURPRISED"],["ASLEEP","ASLEEP"],["ANGRY","ANGRY"],["CONFUSED","CONFUSED"],["NO","NO"],["YES","YES"]],type:"field_dropdown"}],output:["esp32_image","List"],helpUrl:"https://microbit-micropython.readthedocs.io/en/latest/image.html#attributes",tooltip:Re.Msg.MIXLY_MICROBIT_Built_in_image1,message0:Re.Msg.MIXLY_MICROBIT_Built_in_image})}},$m={init:function(){this.setColour(Gm),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new Re.FieldDropdown(ce.Profile.default.builtinimg),"image"),this.setOutput(!0,["esp32_image","List"])}},Zm={init:function(){this.setColour(Gm),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(Re.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new Re.FieldDropdown(Zm.OPERATORS),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{"+":Re.Msg.MIXLY_MICROBIT_image_add,"-":Re.Msg.MIXLY_MICROBIT_image_reduce}[t]}))},OPERATORS:[[Re.Msg.MICROBIT_DISPLAY_UNION,"add"],[Re.Msg.MICROBIT_DISPLAY_MINUS,"sub"]]},eE={init:function(){this.setColour(Gm),this.appendValueInput("A").setCheck("esp32_image").appendField(Re.Msg.MIXLY_MICROBIT_Invert_image1),this.setInputsInline(!0),this.setOutput(!0,"esp32_image")}},tE={init:function(){this.setColour(Gm),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.appendDummyInput("").appendField(Re.Msg.DISPLAY_IMAGE_LET),this.appendDummyInput("").appendField(Re.Msg.DISPLAY_IMAGE_LET2).appendField(new Re.FieldDropdown(tE.OPERATORS),"OP"),this.appendValueInput("val").appendField(Re.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(Re.Msg.DISPLAY_IMAGE_UNIT),["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Re.Msg.MIXLY_synchronize);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP"),i=Re.Msg.DISPLAY_IMAGE_LET,n=Re.Msg.DISPLAY_IMAGE_LET2,s=Re.Msg.DISPLAY_IMAGE_LET3;return i+n+{shift_up:Re.Msg.MIXLY_UP,shift_down:Re.Msg.MIXLY_DOWN,shift_left:Re.Msg.MIXLY_LEFT,shift_right:Re.Msg.MIXLY_RIGHT}[t]+s}))},OPERATORS:[[Re.Msg.MIXLY_UP,"shift_up"],[Re.Msg.MIXLY_DOWN,"shift_down"],[Re.Msg.MIXLY_LEFT,"shift_left"],[Re.Msg.MIXLY_RIGHT,"shift_right"]]},iE={init:function(){this.setColour(Gm),this.appendValueInput("x").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_JS_MONITOR_GET_POINT),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_ESP32_JS_MONITOR_BRIGHTNESS)}},nE={init:function(){this.setColour(Gm),this.appendValueInput("x").setCheck(Number).appendField(Re.Msg.MIXLY_ESP32_JS_MONITOR_SET_BRIGHTNESS).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("STAT").setCheck([Number,Boolean]),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},sE={init:function(){this.setColour(Gm),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS)}},_E={init:function(){this.setColour(Gm),this.appendValueInput("x").setCheck(Number).appendField(Re.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS+" 0.0-1.0")}},oE={init:function(){this.setColour(Gm),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Clear_display),["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Re.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Clear_display)}},pE={init:function(){this.setColour(Gm),this.appendDummyInput().appendField(Re.Msg.MIXLY_SHOW+Re.Msg.MIXLY_DISPLAY_MATRIX_WRITE_NOW),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},aE={init:function(){this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<5;e++){let t=this.appendDummyInput();for(let i=0;i<8;i++)t.appendField(new Re.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Gm),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},uE={init:function(){this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Re.inputs.Align.CENTRE).appendField(new Re.FieldBitmap(uE.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Gm),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(8).fill(0)))},rE={init:function(){this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<8;e++){let t=this.appendDummyInput();for(let i=0;i<12;i++)t.appendField(new Re.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Gm),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},lE={init:function(){this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Re.inputs.Align.CENTRE).appendField(new Re.FieldBitmap(lE.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Gm),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(12).fill(0)))},dE={init:function(){this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<8;e++){let t=this.appendDummyInput();for(let i=0;i<16;i++)t.appendField(new Re.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0,"esp32_image"),this.setColour(Gm),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},IE={init:function(){this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Re.inputs.Align.CENTRE).appendField(new Re.FieldBitmap(IE.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Gm),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(16).fill(0)))},TE={init:function(){this.setColour(Gm),this.appendDummyInput().appendField(Re.Msg.OLED_SET_FONT).appendField(new Re.FieldDropdown(TE.OPERATORS),"OP"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)},OPERATORS:[["4x5"+Re.Msg.MIXGO_ME_DISPLAY_HORIZONTAL,"'4x5'"],["5x5"+Re.Msg.MIXGO_ME_DISPLAY_HORIZONTAL,"'5x5'"],["5x8"+Re.Msg.MIXGO_ME_DISPLAY_VERTICAL,"'5x8'"]]},ME={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.OLED_BITMAP),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.OLED_BITMAP_OR_STRING)}},hE={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.OLED_BITMAP),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_NUMBER),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.OLED_BITMAP_OR_STRING)}},mE={init:function(){this.setColour(Gm),this.appendValueInput("data").setCheck([String,"esp32_image","List","Tuple"]).appendField(Re.Msg.OLED_DRAWSTR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.OLED_BITMAP_OR_STRING)}},EE={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.OLED_DRAWSTR),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(Re.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendDummyInput("").appendField(Re.Msg.TEXT_CENTER).appendField(new Re.FieldDropdown([[Re.Msg.MICROPYTHON_DISPLAY_YES,"True"],[Re.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"center"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_SHOW_IMAGE_OR_STRING_DELAY)}},OE={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_STRING),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(Re.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendValueInput("time").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_SCROLL_IMAGE_OR_STRING_DELAY)}},RE={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.MIXLY_ESP32_MONITOR_SHOW_FRAME),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("time").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},cE={init:function(){this.setColour(Gm),this.appendValueInput("x").setCheck(Number).appendField(Re.Msg.MIXLY_ESP32_JS_MONITOR_SET_BRIGHTNESS).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("STAT").setCheck([Number,Boolean]),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},gE={init:function(){this.jsonInit({colour:Gm,args0:[{name:"state",options:[[Re.Msg.MPYTHON_DISPLAY_MODE_1,"1"],[Re.Msg.MPYTHON_DISPLAY_MODE_0,"0"]],type:"field_dropdown"},{name:"shape",options:[[Re.Msg.MPYTHON_DISPLAY_HOLLOW,"rect"],[Re.Msg.MPYTHON_DISPLAY_SOLID,"fill_rect"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"w",type:"input_value"},{name:"h",type:"input_value"}],inputsInline:!0,helpUrl:Re.Msg.mpython_HELPURL,tooltip:Re.Msg.MPYTHON_DISPLAY_SHAPE_RECT_TOOLTIP,message0:Re.Msg.MPYTHON_DISPLAY_SHAPE_RECT_MESSAGE0,nextStatement:null,previousStatement:null})}},CE={init:function(){this.jsonInit({colour:Gm,args0:[{name:"state",options:[[Re.Msg.MPYTHON_DISPLAY_MODE_1,"1"],[Re.Msg.MPYTHON_DISPLAY_MODE_0,"0"]],type:"field_dropdown"},{name:"dir_h_v",options:[[Re.Msg.mpython_vertical,"0"],[Re.Msg.mpython_horizontal,"1"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"length",type:"input_value"}],inputsInline:!0,helpUrl:Re.Msg.mpython_HELPURL,tooltip:Re.Msg.MPYTHON_DISPLAY_HVLINE_TOOLTIP,message0:Re.Msg.MPYTHON_DISPLAY_HVLINE_MESSAGE0,nextStatement:null,previousStatement:null})}},SE={init:function(){this.jsonInit({colour:Gm,args0:[{name:"state",options:[[Re.Msg.mpython_display_hline_1,"1"],[Re.Msg.mpython_display_hline_0,"0"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x1",type:"input_value"},{name:"y1",type:"input_value"},{name:"x2",type:"input_value"},{name:"y2",type:"input_value"}],inputsInline:!0,helpUrl:Re.Msg.mpython_HELPURL,tooltip:Re.Msg.mpython_display_line_TOOLTIP,message0:Re.Msg.mpython_display_line_MESSAGE0,nextStatement:null,previousStatement:null})}},AE={init:function(){this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new Re.FieldDropdown(AE.IMAGES),"path"),this.setColour(Gm),this.setOutput(!0)},IMAGES:[["Heart","expression_picture.Heart"],["Angry","expression_picture.Angry"],["Bored","expression_picture.Bored"],["Confused","expression_picture.Confused"],["Happy","expression_picture.Happy"],["Paper","expression_picture.Paper"],["Rock","expression_picture.Rock"],["Sad","expression_picture.Sad"],["Scissors","expression_picture.Scissors"],["Silly","expression_picture.Silly"],["Sleep","expression_picture.Sleep"],["Small_heart","expression_picture.Small_heart"],["Small_paper","expression_picture.Small_paper"],["Small_rock","expression_picture.Small_rock"],["Small_scissors","expression_picture.Small_scissors"],["Smile","expression_picture.Smile"],["Surprise","expression_picture.Surprise"],["Wonderful","expression_picture.Wonderful"],["Eyes_Angry","eye_picture.Eyes_Angry"],["Awake","eye_picture.Awake"],["Black_eye","eye_picture.Black_eye"],["Bottom_left","eye_picture.Bottom_left"],["Bottom_right","eye_picture.Bottom_right"],["Crazy_1","eye_picture.Crazy_1"],["Crazy_2","eye_picture.Crazy_2"],["Disappointed","eye_picture.Disappointed"],["Dizzy","eye_picture.Dizzy"],["Down","eye_picture.Down"],["Evil","eye_picture.Evil"],["Hurt","eye_picture.Hurt"],["Knocked_out","eye_picture.Knocked_out"],["Love","eye_picture.Love"],["Middle_left","eye_picture.Middle_left"],["Middle_right","eye_picture.Middle_right"],["Neutral","eye_picture.Neutral"],["Nuclear","eye_picture.Nuclear"],["Pinch_left","eye_picture.Pinch_left"],["Pinch_middle","eye_picture.Pinch_middle"],["Pinch_right","eye_picture.Pinch_right"],["Tear","eye_picture.Tear"],["Tired_left","eye_picture.Tired_left"],["Tired_middle","eye_picture.Tired_middle"],["Tired_right","eye_picture.Tired_right"],["Toxic","eye_picture.Toxic"],["Up","eye_picture.Up"],["Winking","eye_picture.Winking"],["Accept","informatio_picture.Accept"],["Backward","informatio_picture.Backward"],["Decline","informatio_picture.Decline"],["Forward","informatio_picture.Forward"],["Left","informatio_picture.Left"],["No_go","informatio_picture.No_go"],["Question_mark","informatio_picture.Question_mark"],["Right","informatio_picture.Right"],["Stop_1","informatio_picture.Stop_1"],["Stop_2","informatio_picture.Stop_2"],["Thumbs_down","informatio_picture.Thumbs_down"],["Thumbs_up","informatio_picture.Thumbs_up"],["Warning","informatio_picture.Warning"],["Bomb","object_picture.Bomb"],["Boom","object_picture.Boom"],["Fire","object_picture.Fire"],["Flowers","object_picture.Flowers"],["Forest","object_picture.Forest"],["Lightning","object_picture.Lightning"],["Light_off","object_picture.Light_off"],["Light_on","object_picture.Light_on"],["Night","object_picture.Night"],["Pirate","object_picture.Pirate"],["Snow","object_picture.Snow"],["Target","object_picture.Target"],["Bar_0","progres_picture.Bar_0"],["Bar_1","progres_picture.Bar_1"],["Bar_2","progres_picture.Bar_2"],["Bar_3","progres_picture.Bar_3"],["Bar_4","progres_picture.Bar_4"],["Dial_0","progres_picture.Dial_0"],["Dial_1","progres_picture.Dial_1"],["Dial_2","progres_picture.Dial_2"],["Dial_3","progres_picture.Dial_3"],["Dial_4","progres_picture.Dial_4"],["Dots_0","progres_picture.Dots_0"],["Dots_1","progres_picture.Dots_1"],["Dots_2","progres_picture.Dots_2"],["Dots_3","progres_picture.Dots_3"],["Hourglass_0","progres_picture.Hourglass_0"],["Hourglass_1","progres_picture.Hourglass_1"],["Hourglass_2","progres_picture.Hourglass_2"],["Timer_0","progres_picture.Timer_0"],["Timer_1","progres_picture.Timer_1"],["Timer_2","progres_picture.Timer_2"],["Timer_3","progres_picture.Timer_3"],["Timer_4","progres_picture.Timer_4"],["Water_level_0","progres_picture.Water_level_0"],["Water_level_1","progres_picture.Water_level_1"],["Water_level_2","progres_picture.Water_level_2"],["Water_level_3","progres_picture.Water_level_3"],["YES","informatio_picture.YES"],["NO","informatio_picture.NO"]]},LE={init:function(){this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<5;e++){let t=this.appendDummyInput();for(let i=0;i<5;i++)t.appendField(new Re.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Gm),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},NE={init:function(){this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Re.inputs.Align.CENTRE).appendField(new Re.FieldBitmap(NE.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Gm),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(5).fill(0)))},DE={init:function(){this.setColour(Gm),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS)}},fE={init:function(){this.setColour(Gm),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_AMBIENTBRIGHT),this.setInputsInline(!0),this.setOutput(!0,Number)}},FE={init:function(){this.setColour(Gm),this.appendValueInput("x").setCheck(Number).appendField(Re.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS+" 0.0-1.0")}},PE={init:function(){this.setColour(Gm),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXBOT_SCREEN_ROTATE).appendField(new Re.FieldDropdown(PE.OPERATORS),"OP"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)},OPERATORS:[[Re.Msg.mixpy_PL_PIE_SHADOW_N,"0"],[Re.Msg.CLOCKWISE+"90"+Re.Msg.blockpy_setheading_degree,"1"],[Re.Msg.CLOCKWISE+"180"+Re.Msg.blockpy_setheading_degree,"2"],[Re.Msg.CLOCKWISE+"270"+Re.Msg.blockpy_setheading_degree,"3"]]},YE={init:function(){this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<12;e++){let t=this.appendDummyInput();for(let i=0;i<12;i++)t.appendField(new Re.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Gm),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},vE={init:function(){this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Re.inputs.Align.CENTRE).appendField(new Re.FieldBitmap(vE.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Gm),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:12},(()=>new Array(12).fill(0)))},XE={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.OLED_BITMAP),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendValueInput("VAR").appendField(Re.Msg.HTML_COLOUR),["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Re.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},yE={init:function(){this.setColour(Gm),this.appendValueInput("x").setCheck(Number).appendField(Re.Msg.OLED_BITMAP).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("direct").setCheck(String).appendField(Re.Msg.MIXLY_AipImageClassify_Image+Re.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},bE={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.OLED_DRAWSTR),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(Re.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendDummyInput("").appendField(Re.Msg.TEXT_CENTER).appendField(new Re.FieldDropdown([[Re.Msg.MICROPYTHON_DISPLAY_YES,"True"],[Re.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"center"),this.appendValueInput("VAR").appendField(Re.Msg.HTML_COLOUR),["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Re.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_SHOW_IMAGE_OR_STRING_DELAY)}},xE={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.MIXLY_ESP32_MONITOR_SHOW_FRAME),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("time").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.appendValueInput("VAR").appendField(Re.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},VE={init:function(){this.jsonInit({colour:Gm,args0:[{name:"shape",options:[[Re.Msg.MPYTHON_DISPLAY_HOLLOW,"rect"],[Re.Msg.MPYTHON_DISPLAY_SOLID,"fill_rect"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"w",type:"input_value"},{name:"h",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:Re.Msg.mpython_HELPURL,tooltip:Re.Msg.MPYTHON_DISPLAY_SHAPE_RECT_TOOLTIP,message0:Re.Msg.ONBOARD_TFT_DISPLAY_SHAPE_RECT_MESSAGE0,nextStatement:null,previousStatement:null})}},BE={init:function(){this.jsonInit({colour:Gm,args0:[{name:"dir_h_v",options:[[Re.Msg.mpython_vertical,"0"],[Re.Msg.mpython_horizontal,"1"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"length",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:Re.Msg.mpython_HELPURL,tooltip:Re.Msg.MPYTHON_DISPLAY_HVLINE_TOOLTIP,message0:Re.Msg.ONBOARD_TFT_DISPLAY_HVLINE_MESSAGE0,nextStatement:null,previousStatement:null})}},GE={init:function(){this.jsonInit({colour:Gm,args0:[{type:"input_dummy"},{name:"x1",type:"input_value"},{name:"y1",type:"input_value"},{name:"x2",type:"input_value"},{name:"y2",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:Re.Msg.mpython_HELPURL,tooltip:Re.Msg.mpython_display_line_TOOLTIP,message0:Re.Msg.onboard_mpython_display_line_MESSAGE0,nextStatement:null,previousStatement:null})}},UE={init:function(){this.setColour(Gm),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("x").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendDummyInput().appendField(Re.Msg.HTML_COLOUR),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_ESP32_JS_MONITOR_BRIGHTNESS)}},wE={init:function(){this.setColour(Gm),this.appendValueInput("x").setCheck(Number).appendField(Re.Msg.MIXLY_LCD_SETCOLOR).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("VAR").appendField(Re.Msg.HTML_COLOUR),["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Re.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},HE={init:function(){this.setColour(Gm),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_SCREEN_FILL),["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Re.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},kE={init:function(){this.setColour(Gm),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_INIT_CLOCK),this.appendDummyInput().appendField(Re.Msg.MIXLY_CENTER_POS),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.OLED_CIRCLE_RADIUS),this.appendValueInput("VAR").appendField(Re.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},WE={init:function(){this.setColour(Gm),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Re.Msg.GET_RTCTIME),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},KE={init:function(){this.setColour(Gm),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Re.Msg.SET_TIME),this.appendValueInput("h").setCheck(Number).appendField(Re.Msg.MIXLY_HOUR),this.appendValueInput("m").setCheck(Number).appendField(Re.Msg.MIXLY_MINUTE),this.appendValueInput("s").setCheck(Number).appendField(Re.Msg.MIXLY_SECOND),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},JE={init:function(){this.setColour(Gm),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Re.Msg.DRAW_CLOCK),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},QE={init:function(){this.setColour(Gm),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Re.Msg.CLEAR_CLOCK),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_STM32_TFT_BACKGROUND_COLOR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},zE={init:function(){this.jsonInit({colour:Gm,args0:[{name:"shape",options:[[Re.Msg.MPYTHON_DISPLAY_HOLLOW,"False"],[Re.Msg.MPYTHON_DISPLAY_SOLID,"True"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"r",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:Re.Msg.mpython_HELPURL,message0:Re.Msg.ONBOARD_TFT_DISPLAY_SHAPE_CIRCLE_MESSAGE0,nextStatement:null,previousStatement:null})}},qE={init:function(){this.setColour(Gm),this.appendDummyInput().appendField(Re.Msg.DRAW_POINTER).appendField(Re.Msg.DRAW_POINTER_ANGLE),this.appendValueInput("angle"),this.appendDummyInput().appendField(Re.Msg.MIXLY_DRAW_POINTER_DU),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.DRAW_POINTER_TOOLTIP)}},jE={init:function(){this.setColour(Gm),this.appendDummyInput().appendField(Re.Msg.DRAW_POINTER).appendField(Re.Msg.DRAW_POINTER_ANGLE),this.appendValueInput("angle"),this.appendDummyInput().appendField(Re.Msg.MIXLY_DRAW_POINTER_DU),this.appendValueInput("VAR").appendField(Re.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.DRAW_POINTER_TOOLTIP)}},$E={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.MIXLY_Display_long_text),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendValueInput("VAR").appendField(Re.Msg.HTML_COLOUR),["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Re.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},ZE={init:function(){this.setColour(Gm),this.appendValueInput("direct").appendField(Re.Msg.OLED_BITMAP).appendField(Re.Msg.MIXLY_QR_CODE),["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Re.Msg.MIXLY_synchronize),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},eO={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.OLED_BITMAP).appendField(Re.Msg.MIXLY_QR_CODE),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendDummyInput("").appendField(Re.Msg.MIXLY_ERROR_RATE).appendField(new Re.FieldDropdown([["0","7%"],["1","15%"],["2","25%"],["3","30"]]),"correct"),this.appendValueInput("VAR").appendField(Re.Msg.HTML_COLOUR),["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Re.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},tO={init:function(){this.setColour(Gm),this.appendValueInput("data").appendField(Re.Msg.OLED_BITMAP),this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.OLED_BITMAP_OR_STRING),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},iO={init:function(){Hm.init.call(this),this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},nO={init:function(){Jm.init.call(this),this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},sO={init:function(){tE.init.call(this),this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},_O={init:function(){sE.init.call(this),this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},oO={init:function(){_E.init.call(this),this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},pO={init:function(){oE.init.call(this),this.appendDummyInput().appendField(`(${Re.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Re.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},aO=180,uO={init:function(){this.setColour(aO),this.setOutput(!0),this.setInputsInline(!0),this.appendValueInput("img").appendField(Re.Msg.DISPLAY_IMAGE_LET).setCheck(["esp32_image","List",String]),this.appendDummyInput("").appendField(Re.Msg.DISPLAY_IMAGE_LET2).appendField(new Re.FieldDropdown(uO.OPERATORS),"OP"),this.appendValueInput("val").appendField(Re.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(Re.Msg.DISPLAY_IMAGE_UNIT);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP"),i=Re.Msg.DISPLAY_IMAGE_LET,n=Re.Msg.DISPLAY_IMAGE_LET2,s=Re.Msg.DISPLAY_IMAGE_LET3;return i+n+{up:Re.Msg.MIXLY_UP,down:Re.Msg.MIXLY_DOWN,left:Re.Msg.MIXLY_LEFT,right:Re.Msg.MIXLY_RIGHT}[t]+s}))},OPERATORS:[[Re.Msg.MIXLY_UP,"up"],[Re.Msg.MIXLY_DOWN,"down"],[Re.Msg.MIXLY_LEFT,"left"],[Re.Msg.MIXLY_RIGHT,"right"]]},rO={init:function(){this.setColour(aO),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(Re.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new Re.FieldDropdown(rO.OPERATORS),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{"+":Re.Msg.MIXLY_MICROBIT_image_add,"-":Re.Msg.MIXLY_MICROBIT_image_reduce}[t]}))},OPERATORS:[[Re.Msg.MICROBIT_DISPLAY_UNION,"+"],[Re.Msg.MICROBIT_DISPLAY_MINUS,"-"]]},lO={init:function(){this.setColour(aO),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+Re.Msg.MIXLY_MICROBIT_IMAGE),this.appendValueInput("VAR").setCheck("esp32_image"),this.appendDummyInput("").appendField(new Re.FieldDropdown(lO.OPERATORS),"OP"),this.setInputsInline(!0),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+Re.Msg.MIXLY_MICROBIT_IMAGE+{height:Re.Msg.MIXLY_HEIGHT,width:Re.Msg.MIXLY_WIDTH}[t]}))},OPERATORS:[[Re.Msg.MIXLY_HEIGHT,"height"],[Re.Msg.MIXLY_WIDTH,"width"]]},dO={init:function(){this.setColour(aO),this.appendValueInput("VAR").appendField(Re.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RECT).appendField(new Re.FieldDropdown(dO.STATUS),"OP"),this.jsonInit({message0:Re.Msg.MIXLY_MICROBIT_SHOW_RECT,args0:[{check:Number,type:"input_value",name:"x"},{check:Number,type:"input_value",name:"y"},{check:Number,type:"input_value",name:"width"},{check:Number,type:"input_value",name:"height"},{type:"input_dummy"},{checked:!1,type:"field_checkbox",name:"fill"}]}),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Re.Msg.MIXLY_OLED_RECT)},STATUS:[[Re.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[Re.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},IO={init:function(){this.setColour(aO),this.appendValueInput("VAR").appendField(Re.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE).appendField(new Re.FieldDropdown(IO.STATUS),"OP"),this.jsonInit({message0:Re.Msg.MIXLY_HANBIT_SHOW_CIRCLE,args0:[{check:Number,type:"input_value",name:"x"},{check:Number,type:"input_value",name:"y"},{check:Number,type:"input_value",name:"r"},{type:"input_dummy"},{checked:!1,type:"field_checkbox",name:"fill"}]}),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Re.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE)},STATUS:[[Re.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[Re.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},TO={init:function(){this.setColour(aO),this.appendValueInput("VAR").appendField(Re.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_DISPLAY_DRAW+Re.Msg.MIXLY_HANBIT_DRAW_TRIANGLE).appendField(new Re.FieldDropdown(TO.STATUS),"OP"),this.jsonInit({message0:Re.Msg.MIXLY_HANBIT_SHOW_triangle,args0:[{check:Number,type:"input_value",name:"x0"},{check:Number,type:"input_value",name:"y0"},{check:Number,type:"input_value",name:"x1"},{check:Number,type:"input_value",name:"y1"},{check:Number,type:"input_value",name:"x2"},{check:Number,type:"input_value",name:"y2"},{type:"input_dummy"},{checked:!1,type:"field_checkbox",name:"fill"}]}),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Re.Msg.MIXLY_DISPLAY_DRAW+Re.Msg.MIXLY_HANBIT_DRAW_TRIANGLE)},STATUS:[[Re.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[Re.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},MO="#777777",hO={init:function(){this.setColour(MO),this.appendDummyInput("").appendField("from ").appendField(new Re.FieldTextInput("ESP32"),"path").appendField(" import ").appendField(new Re.FieldTextInput("*"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},mO={init:function(){this.setColour(MO),this.appendDummyInput("").appendField("import ").appendField(new Re.FieldTextInput("module"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},EO={init:function(){this.setColour(MO),this.appendDummyInput("").appendField(new Re.FieldTextInput("my_function"),"NAME"),this.itemCount_=1,this.arguments_=["x"],this.updateShape_(),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new Re.icons.MutatorIcon(["factory_create_with_item"],this))},mutationToDom:function(){var e=document.createElement("mutation");e.setAttribute("items",this.itemCount_);for(var t=0;tt?e[t]:'"key'+(t+1)+'"'),"KEY"+t).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},_R={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(Re.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},oR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},pR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},aR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").setCheck(String).appendField(Re.Msg.MIXLY_EMQX_SERVER).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("USERNAME").setCheck(String).appendField(Re.Msg.MIXLY_WIFI_USERNAME).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("PASSWORD").setCheck(String).appendField(Re.Msg.MIXLY_IOT_PASSWORD).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("PROJECT").setCheck(String).appendField(Re.Msg.MIXLY_EMQX_PROJECT).setAlign(Re.inputs.Align.RIGHT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},uR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(Re.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(Re.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(Re.Msg.HTML_BODY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},rR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(Re.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(Re.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(Re.Msg.HTML_BODY),this.appendDummyInput().appendField(Re.Msg.MIXLY_Service_quality_display).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_AT_MOST_ONCE,"0"],[Re.Msg.MIXLY_AT_LEAST_ONCE,"1"]]),"quality"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},lR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(Re.Msg.MIXLY_EMQX_SUBSCRIBE+Re.Msg.MIXLY_MICROBIT_MSG).appendField(Re.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("METHOD").appendField(Re.Msg.MIXLY_EMQX_SET_METHOD),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_IOT_EMQX_SUBSCRIBE_TOOLTIP)}},dR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_DISCONNECT_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},IR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Re.Msg.MIXLY_EMQX_CONNECT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},TR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_CHECK_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},MR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(Re.Msg.MQTT_Topic),this.setInputsInline(!0),this.setOutput(!0)}},hR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(Re.Msg.MIXLY_EMQX_PUBLISH_MSG),this.setInputsInline(!0),this.setOutput(!0)}},mR={init:function(){this.setColour($O),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_ESP32_IOT_MAP_FORMATING),this.setOutput(!0)}},ER={init:function(){this.setColour($O),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_MICROPYTHON_FORMAT+"(Json)"),this.setOutput(!0)}},OR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Re.Msg.MIXLY_EMQX_PING),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_IOT_EMQX_PING_TOOLTIP)}},RR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MixIO").appendField(Re.Msg.MIXLY_GET_NTP),this.appendValueInput("addr").appendField(Re.Msg.blynk_SERVER_ADD),this.setInputsInline(!0),this.setOutput(!0)}},cR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").appendField(Re.Msg.MIXLY_EMQX_SERVER).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(Re.Msg.CONTROLS_FOR_INPUT_WITH+Re.Msg.MIXLY_MIXIO_SHARE_KEY).setAlign(Re.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},gR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").appendField(Re.Msg.MIXLY_EMQX_SERVER).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(Re.Msg.CONTROLS_FOR_INPUT_WITH+"Mixly Key").setAlign(Re.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},CR={init:function(){this.VISITOR_ID=ce.Config.BOARD.visitorId.str32.substring(0,8).toUpperCase(),this.setColour($O),this.appendDummyInput("").appendField(new Re.FieldTextInput(this.visitorId),"VISITOR_ID"),this.setOutput(!0,null)},onchange:function(){const e=this.getFieldValue("VISITOR_ID");this.VISITOR_ID!==e&&this.setFieldValue(this.VISITOR_ID,"VISITOR_ID")}},SR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MixIO").appendField(Re.Msg.MSG.catEthernet_clinet),this.setOutput(!0),this.setInputsInline(!0)}},AR={init:function(){this.setColour($O),this.appendDummyInput().appendField("HTTP"+Re.Msg.MIXLY_Client),this.appendValueInput("addr").appendField(Re.Msg.DISPLAY_IMAGE_LET2),this.appendDummyInput().appendField(Re.Msg.MIXLY_REQUESTS_GET).appendField(Re.Msg.MIXLY_GET_CURRENT_TIME).appendField(Re.Msg.MIXLY_OPEN_DEBUG).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Re.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},LR={init:function(){this.setColour($O),this.appendDummyInput().appendField("HTTP"+Re.Msg.MIXLY_Client).appendField(Re.Msg.MIXLY_GET).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_REQUESTS_LEN,"client_len"],[Re.Msg.MIXLY_REQUESTS_GET_LEN,"server_len"],[Re.Msg.MIXLY_REQUESTS_MESSAGE,"text"]]),"key"),this.setOutput(!0),this.setInputsInline(!0)}},NR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MQTT"+Re.Msg.MIXLY_Client),this.appendValueInput("addr").appendField(Re.Msg.MIXLY_CONNECTTO),this.appendDummyInput().appendField(Re.Msg.MIXLY_INIT_SUBSCRIBE).appendField(Re.Msg.MQTT_Topic).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GET_CURRENT_TIME,""]]),"key").appendField(Re.Msg.MIXLY_OPEN_DEBUG).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Re.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"key2"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},DR={init:function(){this.setColour($O),this.appendDummyInput().appendField("MQTT"+Re.Msg.MIXLY_Client).appendField(Re.Msg.MIXLY_GET).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_REQUESTS_LEN,"client_len"],[Re.Msg.MIXLY_REQUESTS_GET_LEN,"server_len"],[Re.Msg.MIXLY_REQUESTS_MESSAGE,"time_msg()"]]),"key"),this.setOutput(!0),this.setInputsInline(!0)}},fR=ZO,FR=eR,PR=tR,YR=iR,vR=sR,XR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.MIXLY_CONNECT_OLLAMA),this.appendValueInput("SERVER").appendField(Re.Msg.MIXLY_EMQX_SERVER).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("NAME").appendField(Re.Msg.MODEL_NAME).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("NUMBER").appendField(Re.Msg.MIXLY_SET_MAXIMUM_HISTORICAL_SESSIONS_NUM),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},yR=XR,bR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.MIXLY_CONNECT_OPENAI),this.appendValueInput("SERVER").appendField(Re.Msg.MIXLY_EMQX_SERVER).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(Re.Msg.MIXLY_API_PRIVATE_KEY).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("NAME").appendField(Re.Msg.MODEL_NAME).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("NUMBER").appendField(Re.Msg.MIXLY_SET_MAXIMUM_HISTORICAL_SESSIONS_NUM),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},xR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.MIXLY_LLM_CHAT),this.appendValueInput("TOPIC").appendField(Re.Msg.MIXLY_MIXGO_ESPNOW_SEND),this.appendValueInput("METHOD").appendField(Re.Msg.MIXLY_LLM_CONTENT_CALLBACK),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},VR={init:function(){this.setColour($O),this.appendDummyInput().appendField(Re.Msg.MIXLY_LLM_CHAT),this.appendValueInput("TOPIC").appendField(Re.Msg.MIXLY_MIXGO_ESPNOW_SEND),this.appendDummyInput().appendField(Re.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0)}},BR={init:function(){this.setColour($O),this.appendDummyInput().appendField("Ollama "+Re.Msg.MIXLY_EMPTY_HISTORY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},GR={init:function(){this.setColour(0),this.appendDummyInput().appendField(`${Re.Msg.MIXLY_SETUP} TinyWebDB`),this.appendValueInput("ADDR").setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_EMQX_SERVER),this.appendValueInput("USERNAME").setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_EMQX_USERNAME),this.appendValueInput("PASSWORD").setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_IOT_PASSWORD),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},UR={init:function(){this.setColour(0),this.appendDummyInput().appendField(`${Re.Msg.MIXLY_SETUP} TinyWebDB`),this.appendValueInput("MQTT").setAlign(Re.inputs.Align.RIGHT).appendField(`MixIO ${Re.Msg.MIXLY_Client}`),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},wR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_TINY_WEB_DB_UPDATE_VARIABLE),this.appendValueInput("VALUE").setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},HR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").appendField(Re.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLE),this.appendDummyInput().appendField(Re.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setOutput(!0)}},kR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendDummyInput().appendField(Re.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_NUM),this.setInputsInline(!0),this.setOutput(!0)}},WR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB").appendField(Re.Msg.MIXLY_TINY_WEB_DB_SEARCH_VARIABLES),this.appendValueInput("NO").setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_TINY_WEB_DB_START_NUMBER),this.appendValueInput("COUNT").setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_TINY_WEB_DB_VARIABLE_NUMBER),this.appendValueInput("TAG").setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_TINY_WEB_DB_SEARCH_VARS),this.appendDummyInput().setAlign(Re.inputs.Align.RIGHT).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_ALL,"both"],[Re.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_TAG,"tag"],[Re.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_VALUE,"value"]]),"DTYPE"),this.setInputsInline(!1),this.setOutput(!0)}},KR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").appendField(Re.Msg.MIXLY_TINY_WEB_DB_DELETE_VARIABLE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},JR=225,QR={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_NETWORK_INIT),this.appendDummyInput().appendField(Re.Msg.MIXLY_NETWORK_MODE).appendField(new Re.FieldDropdown([["STA","STA"],["AP","AP"]]),"mode"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_INIT_TOOLTIP)}},zR={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_NETWORK_WIFI_OPEN,"True"],[Re.Msg.MIXLY_NETWORK_WIFI_CLOSE,"False"]]),"op"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_NETWORK_WIFI_FLAG),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("op"),i=Re.Msg.MIXLY_ESP32_NETWORK_OPEN_TOOLTIP;return{True:Re.Msg.MIXLY_NETWORK_WIFI_OPEN,False:Re.Msg.MIXLY_NETWORK_WIFI_CLOSE}[t]+i}))}},qR={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_NETWORK_WIFI_IS_ACTIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_NETWORK_WIFI_IS_ACTIVE)}},jR={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_NETWORK_WIFI_SCAN),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip((function(){return Re.Msg.MIXLY_ESP32_NETWORK_SCAN_TOOLTIP+{0:"ssid",1:"bssid",2:"channel",3:"RSSI",4:"authmode",5:"hidden",all:Re.Msg.MIXLY_NETWORK_WIFI_SCAN_ATTRIBUTE}.all}))}},$R={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_ESP32_NETWORK_CONNECT),this.appendValueInput("id").setCheck(String).appendField(Re.Msg.HTML_NAME),this.appendValueInput("password").setCheck(String).appendField(Re.Msg.HTML_PASSWORD),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_CONNECT_TOOLTIP)}},ZR={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_NETWORK_WIFI_CONNECT+Re.Msg.MIXLY_SYMBOL_QUESTION),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_WIFI_CONNECT_TOOLTIP)}},ec={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_ESP32_NETWORK_GET_WIFI),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_ESP32_NETWORK_IP,"0"],[Re.Msg.MIXLY_ESP32_NETWORK_MASK,"1"],[Re.Msg.MIXLY_ESP32_NETWORK_GATEWAY,"2"],["DNS","3"]]),"mode"),this.setOutput(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("mode");return Re.Msg.MIXLY_ESP32_NETWORK_GET_WIFI_TOOLTIP+{0:Re.Msg.MIXLY_ESP32_NETWORK_IP,1:Re.Msg.MIXLY_ESP32_NETWORK_MASK,2:Re.Msg.MIXLY_ESP32_NETWORK_GATEWAY,3:"DNS"}[t]}))}},tc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_ESP32_NETWORK_STOP_CONNECT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_STOP_TOOLTIP)}},ic={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_ESP32_NETWORK_GET_WIFI),this.appendDummyInput().appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_NETWORK_WIFI_ESSID,"essid"],[Re.Msg.MIXLY_NETWORK_WIFI_CHANNEL,"channel"]]),"op"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_GET_WIFI_TOOLTIP)}},nc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.LISTS_SET_INDEX_SET+Re.Msg.MIXLY_HOTSPOT),this.appendValueInput("essid").setCheck(String).appendField(Re.Msg.MIXLY_NAME),this.appendValueInput("password").setCheck(String).appendField(Re.Msg.MIXLY_EMQX_PASSWORD),this.appendValueInput("channel").setCheck(Number).appendField(Re.Msg.MIXLY_NETWORK_WIFI_CHANNEL),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_AP_CONNECT_TOOLTIP)}},sc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_ESP32_NETWORK_SERVER1),this.appendDummyInput("").appendField(Re.Msg.MIXLY_ESP32_NETWORK_SERVER2),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_CLOSE_TOOLTIP)}},_c={init:function(){this.setColour(JR),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_INIT).setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_TYPE).appendField(new Re.FieldDropdown([["TCP","TCP"],["UDP","UDP"]]),"mode"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("mode");return Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_INIT_TOOLTIP+{TCP:"TCP",UDP:"UDP"}[t]}))}},oc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_LET_SOCKET),this.appendValueInput("address").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_BIND_TO_ADDRESS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_BIND_TOOLTIP)}},pc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_LET_SOCKET),this.appendValueInput("address").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_CONNECT_TO_ADDRESS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_CONNECT_TOOLTIP)}},ac={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendValueInput("queue").setCheck(Number).appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_LISTEN).appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_QUEUE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_LISTEN_TOOLTIP)}},uc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_ACCEPT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_ACCEPT_TOOLTIP)}},rc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_READLINE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MICROPYTHON_SOCKET_READLINE_TOOLTIP)}},lc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var").appendField("TCP"),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_RECEIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_RECEIVE_TOOLTIP)}},dc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var").appendField("TCP"),this.appendValueInput("content").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_SEND),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_SEND_TOOLTIP)}},Ic={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var").appendField("UDP"),this.appendValueInput("size").setCheck(Number).appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_RECEIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_RECEIVE_FROM_TOOLTIP)}},Tc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var").appendField("UDP"),this.appendValueInput("content").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_SEND),this.appendValueInput("address").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_TO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_SEND_TO_TOOLTIP)}},Mc={init:function(){this.setColour(JR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_CLOSE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_NETWORK_SOCKET_CLOSE_TOOLTIP)}},hc={init:function(){this.setColour(JR),this.appendValueInput("DOMAIN").appendField(Re.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(Re.Msg.blockpy_REQUESTS_GET).appendField(new Re.FieldTextInput("response"),"VAR"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.blockpy_REQUESTS_GET_TOOLTIP)},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},mc={init:function(){this.appendValueInput("VAL"),this.setColour(JR),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Re.FieldDropdown(mc.ATTR),"ATTR"),this.setInputsInline(!0),this.setOutput(!0,String);var e=this;this.setTooltip((function(){var t=e.getFieldValue("DIR");return{clear:Re.Msg.MIXLY_TOOLTIP_TURTEL_CLEAR,reset:Re.Msg.MIXLY_TOOLTIP_TURTEL_RESET,home:Re.Msg.MIXLY_TOOLTIP_TURTEL_HOME}[t]}))},ATTR:[[Re.Msg.blockpy_REQUESTS_GET_ATTR_STATUS_CODE,"status_code"],[Re.Msg.blockpy_REQUESTS_GET_ATTR_TEXT,"text"],[Re.Msg.blockpy_REQUESTS_GET_ATTR_COOKIES,"cookies"],[Re.Msg.blockpy_REQUESTS_GET_ATTR_CONTENT,"content"]]},Ec={init:function(){this.appendValueInput("VAR").appendField(Re.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.setColour(JR),this.appendDummyInput("").appendField(Re.Msg.blockpy_CONDUCT).appendField(new Re.FieldDropdown(Ec.METHOD),"DIR"),this.appendDummyInput("").appendField(Re.Msg.blockpy_REQUESTS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("DIR");return{forward:Re.Msg.MIXLY_TOOLTIP_TURTEL_FORWARD,backward:Re.Msg.MIXLY_TOOLTIP_TURTEL_BACKWARD}[t]}))},METHOD:[["post","post"],["put","put"],["delete","delete"],["head","head"],["option","option"]]},Oc={init:function(){this.setColour(JR),this.appendDummyInput("").appendField(Re.Msg.MIXLY_GET_NTP+"(NTP)"),this.appendValueInput("data").appendField(Re.Msg.blynk_SERVER_ADD),this.setOutput(!0,"Tuple"),this.setInputsInline(!0)}},Rc={init:function(){this.setColour(JR),this.appendDummyInput("").appendField(new Re.FieldDropdown([["ntp.aliyun.com","ntp.aliyun.com"],["ntp1.aliyun.com","ntp1.aliyun.com"],["ntp2.aliyun.com","ntp2.aliyun.com"],["ntp3.aliyun.com","ntp3.aliyun.com"],["ntp4.aliyun.com","ntp4.aliyun.com"],["ntp5.aliyun.com","ntp5.aliyun.com"],["ntp6.aliyun.com","ntp6.aliyun.com"],["ntp7.aliyun.com","ntp7.aliyun.com"],["time1.cloud.tencent.com","time1.cloud.tencent.com"],["time2.cloud.tencent.com","time2.cloud.tencent.com"],["time3.cloud.tencent.com","time3.cloud.tencent.com"],["time4.cloud.tencent.com","time4.cloud.tencent.com"],["time5.cloud.tencent.com","time5.cloud.tencent.com"]]),"op"),this.setOutput(!0)}},cc="#3288dd",gc={init:function(){this.setColour(cc),this.appendValueInput("URL").appendField(Re.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(Re.Msg.blockpy_CONDUCT).appendField(new Re.FieldDropdown([["get","get"],["head","head"],["delete","delete"]]),"TYPE").appendField(Re.Msg.blockpy_REQUESTS).appendField(Re.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip("")}},Cc={init:function(){this.setColour(cc),this.appendValueInput("URL").appendField(Re.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(Re.Msg.blockpy_CONDUCT).appendField(new Re.FieldDropdown([["post","post"],["put","put"],["patch","patch"]]),"TYPE").appendField(Re.Msg.blockpy_REQUESTS),this.appendValueInput("data").appendField(Re.Msg.blockpy_REQUESTS+Re.Msg.OLED_STRING),this.appendDummyInput("").appendField(Re.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip("")}},Sc={init:function(){this.appendValueInput("VAL"),this.setColour(cc),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Re.FieldDropdown(Sc.ATTR),"ATTR"),this.setInputsInline(!0),this.setOutput(!0,String)},ATTR:[[Re.Msg.blockpy_REQUESTS_GET_ATTR_TEXT,"text"],[Re.Msg.blockpy_REQUESTS_GET_ATTR_JSON,"json()"],[Re.Msg.blockpy_REQUESTS_GET_ATTR_STATUS_CODE,"status_code"],[Re.Msg.blockpy_REQUESTS_GET_ATTR_CONTENT,"content"],[Re.Msg.MIXPY_TEXT_ENCODE,"encoding"]]},Ac={init:function(){this.setColour(cc),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_IOT_CONNECT_WIFI),this.appendValueInput("WIFINAME").setCheck(String).appendField(Re.Msg.HTML_NAME),this.appendValueInput("PASSWORD").setCheck(String).appendField(Re.Msg.HTML_PASSWORD),this.appendValueInput("TIMEOUT").setCheck(Number).appendField(Re.Msg.MIXLY_IR_TIMEOUT),this.appendDummyInput().appendField(Re.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_IOT_WIFI_CONNECT_TOOLTIP)}},Lc={init:function(){this.setColour(cc),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_IOT_EMQX_CONNECT_TOOLTIP),this.appendValueInput("SERVER").setCheck(String).appendField(Re.Msg.MIXLY_EMQX_SERVER).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("PORT").setCheck(Number).appendField(Re.Msg.MIXLY_EMQX_PORT).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("CLIENT_ID").setCheck(String).appendField(Re.Msg.MIXLY_EMQX_CLIENT_ID).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("USERNAME").setCheck(String).appendField(Re.Msg.MIXLY_WIFI_USERNAME).setAlign(Re.inputs.Align.RIGHT),this.appendValueInput("PASSWORD").setCheck(String).appendField(Re.Msg.MIXLY_IOT_PASSWORD).setAlign(Re.inputs.Align.RIGHT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Nc={init:function(){this.setColour(cc),this.appendValueInput("TOPIC").appendField(Re.Msg.MIXLY_EMQX_SUBSCRIBE+Re.Msg.MIXLY_MICROBIT_MSG).appendField(Re.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MESSAGE").appendField(Re.Msg.blockpy_set_of),this.setInputsInline(!0),this.setOutput(!0)}},Dc={init:function(){this.setColour(cc),this.appendDummyInput().appendField("mqtt"),this.appendValueInput("TOPIC").appendField(Re.Msg.MIXLY_EMQX_SUBSCRIBE+Re.Msg.MIXLY_MICROBIT_MSG).appendField(Re.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("METHOD").appendField(Re.Msg.MIXLY_EMQX_SET_METHOD),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},fc={init:function(){this.setColour(cc),this.appendDummyInput().appendField("mqtt"),this.appendValueInput("TOPIC").appendField(Re.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(Re.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(Re.Msg.HTML_BODY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Fc={init:function(){this.setColour(cc),this.appendDummyInput().appendField("mqtt"+Re.Msg.MIXLY_EMQX_IS_CONNECT),this.setInputsInline(!0),this.setOutput(!0)}},Pc=100,Yc={init:function(){if("mixgo_nova"==ce.Boards.getSelectedBoardKey().split(":")[2])var e="Nova G1";this.setColour(Pc),this.appendDummyInput().appendField(e).appendField(Re.Msg.MIXLY_MIXGO_NOVA_POTENTIAL_NUM),this.setOutput(!0,Number),this.setInputsInline(!0)}},vc={init:function(){if("mixgo_nova"==ce.Boards.getSelectedBoardKey().split(":")[2])var e="Nova G1";this.setColour(Pc),this.appendValueInput("PIN").appendField(e).appendField(Re.Msg.MOTOR_DC).appendField(Re.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Direction).appendField(new Re.FieldDropdown([[Re.Msg.CLOCKWISE,"CW"],[Re.Msg.ANTI_CLOCKWISE,"CCW"],[Re.Msg.MOTOR_P,"P"],[Re.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Xc={init:function(){if("mixgo_nova"==ce.Boards.getSelectedBoardKey().split(":")[2])var e="Nova G1";this.setColour(Pc),this.appendValueInput("PIN").appendField(e).appendField(Re.Msg.SET_USB),this.appendValueInput("percent").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_POWER_SUPPLY),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},yc={init:function(){if("mixgo_nova"==ce.Boards.getSelectedBoardKey().split(":")[2])var e="Nova G1";this.setColour(Pc),this.appendDummyInput().appendField(e).appendField(Re.Msg.MIXLY_SPK_STATE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_ON,"True"],[Re.Msg.MIXLY_OFF,"False"]]),"state"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},bc=100,xc={init:function(){this.setColour(bc),this.appendValueInput("I2CSUB").appendField(Re.Msg.CONTROLS_FOR_INPUT_WITH+"I2C").setCheck("var"),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_SETUP+Re.Msg.LISTS_SET_INDEX_INPUT_TO).appendField("PE GX"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},Vc={init:function(){this.setColour(bc),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MIXGO_CAR_BATTERY_LEFT),this.setOutput(!0,Number),this.setInputsInline(!0)}},Bc={init:function(){this.setColour(bc),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField(Re.Msg.MOTOR_DC).appendField(Re.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Direction).appendField(new Re.FieldDropdown([[Re.Msg.CLOCKWISE,"CW"],[Re.Msg.ANTI_CLOCKWISE,"CCW"],[Re.Msg.MOTOR_P,"P"],[Re.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Gc={init:function(){this.setColour(bc),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField(Re.Msg.MOTOR_DC).appendField(Re.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(Re.Msg.MIXLY_STEPPER_GET_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},Uc={init:function(){this.setColour(bc),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField("180°"+Re.Msg.MIXLY_SERVO).appendField(Re.Msg.LCD_NUMBERING),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_SERVO_MOVE)}},wc={init:function(){this.setColour(bc),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField("360°"+Re.Msg.MIXLY_SERVO).appendField(Re.Msg.LCD_NUMBERING),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Re.inputs.Align.RIGHT).appendField(Re.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_SERVO_SPEED_TOOLIPS)}},Hc={init:function(){this.setColour(bc),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField("180°"+Re.Msg.MIXLY_SERVO),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET+Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},kc={init:function(){this.setColour(bc),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField("360°"+Re.Msg.MIXLY_SERVO).appendField(Re.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET+Re.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},Wc="#A58C5B",Kc={init:function(){this.setColour(Wc),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_BUTTON).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_IS_PRESSED),this.appendValueInput("STAT").appendField(Re.Msg.MIXLY_ELECLEVEL),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_SENOR_IS_PRESSED)}},Jc={init:function(){this.setColour(Wc),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_BUTTON).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_WAS_PRESSED),this.appendValueInput("STAT").appendField(Re.Msg.MIXLY_ELECLEVEL),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_SENOR_WAS_PRESSED)}},Qc={init:function(){this.setColour(Wc),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_BUTTON).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET_PRESSES),this.appendValueInput("VAR").setCheck(Number).appendField(Re.Msg.MIXLY_GET_PRESSES_TIME),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Re.Msg.PROCEDURES_DEFRETURN_RETURN+Re.Msg.MIXLY_BUTTON+Re.Msg.MIXLY_GET_PRESSES)}},zc={init:function(){this.setColour(Wc),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_BUTTON).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MODE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_RISING,"machine.Pin.IRQ_RISING"],[Re.Msg.MIXLY_FALLING,"machine.Pin.IRQ_FALLING"],[Re.Msg.MIXLY_CHANGE,"(machine.Pin.IRQ_RISING | machine.Pin.IRQ_FALLING)"]]),"mode"),this.appendValueInput("DO").appendField(Re.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_INOUT_ATTACHINTERRUPT)}},qc={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_shake,"shake"],[Re.Msg.MIXLY_UP,"up"],[Re.Msg.MIXLY_DOWN,"down"],[Re.Msg.MIXLY_LEFT,"left"],[Re.Msg.MIXLY_RIGHT,"right"],[Re.Msg.MIXLY_MICROBIT_face_up,"face up"],[Re.Msg.MIXLY_MICROBIT_face_down,"face down"],[Re.Msg.MIXLY_MICROBIT_freefall,"freefall"],["3g","3g"],["6g","6g"],["8g","8g"]]),"gesture"),this.appendStatementInput("DO").appendField(Re.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("gesture"),i=Re.Msg.MIXLY_MICROBIT_JS_CURRENT,n=Re.Msg.MSG.catSensor,s=Re.Msg.MIXLY_MICROBIT_JS_STATE,_=Re.Msg.MIXLY_MICROBIT_PERFORMANCE;return i+n+s+{shake:Re.Msg.MIXLY_MICROBIT_shake,up:Re.Msg.MIXLY_UP,down:Re.Msg.MIXLY_DOWN,left:Re.Msg.MIXLY_LEFT,right:Re.Msg.MIXLY_RIGHT,"face up":Re.Msg.MIXLY_MICROBIT_face_up,"face down":Re.Msg.MIXLY_MICROBIT_face_down,freefall:Re.Msg.MIXLY_MICROBIT_freefall,"3g":"3g","6g":"6g","8g":"8g"}[t]+_}))}},jc={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_ADXL345).setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_JS_ACCELERATION).appendField(new Re.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MICROBIT_JS_ACCELERATION);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Re.Msg.MIXLY_MICROBIT_Direction,s=Re.Msg.MIXLY_MICROBIT_JS_ACCELERATION1;return i+{x:"x",y:"y",z:"z","(x,y,z)":Re.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},$c={init:function(){this.setColour(Wc),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_JS_LIGHT_LEVEL),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_SENSOR_LIGHT_LEVEL_TOOLTIP)}},Zc={init:function(){this.setColour(Wc),this.appendValueInput("PIN",Number).appendField(new Re.FieldDropdown([["DHT11","DHT11"],["DHT22","DHT22"]]),"TYPE").appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(new Re.FieldDropdown(Zc.METHOD),"WHAT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("WHAT");return{temperature:Re.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_TEM,relative_humidity:Re.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_HUM,tempandhum:Re.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_TEM_HUM}[t]}))},METHOD:[[Re.Msg.MIXLY_GETTEMPERATUE,"temperature"],[Re.Msg.MIXLY_GETHUMIDITY,"humidity"]]},eg={init:function(){this.setColour(Wc),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_EXTERN_LIGHT),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_EXTERN_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Re.Msg.ESP32_SENSOR_NIXGO_LIGHT_TOOLTIP)}},tg={init:function(){this.setColour(Wc),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_EXTERN_SOUND),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_EXTERN_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Re.Msg.ESP32_SENSOR_NIXGO_SOUND_TOOLTIP)}},ig={init:function(){this.setColour(Wc),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new Re.FieldDropdown([[Re.Msg.TEXT_TRIM_LEFT,"left"],[Re.Msg.TEXT_TRIM_RIGHT,"right"]]),"direction").appendField(Re.Msg.MIXLY_ESP32_NEAR),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("direction"),i=Re.Msg.MIXLY_ESP32_SENSOR_MIXGO_PIN_NEAR_TOOLTIP,n=Re.Msg.MIXLY_ESP32_NEAR;return i+{left:Re.Msg.TEXT_TRIM_LEFT,right:Re.Msg.TEXT_TRIM_RIGHT}[t]+n}))}},ng={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_ALTITUDE_SENSOR+" BMP280").setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GETTEMPERATUE,"get_BMP_temperature()"],[Re.Msg.MIXLY_GETPRESSURE,"get_BMP_pressure()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{"get_BMP_temperature()":Re.Msg.MIXLY_MICROBIT_SENSOR_BMP_temperature_TOOLTIP,"get_BMP_pressure()":Re.Msg.MIXLY_MICROBIT_SENSOR_BMP_press_TOOLTIP}[t]}))}},sg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+" SHT20").setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GETTEMPERATUE,"get_SHT_temperature()"],[Re.Msg.MIXLY_GETHUMIDITY,"get_SHT_relative_humidity()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{"get_SHT_temperature()":Re.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,"get_SHT_relative_humidity()":Re.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[t]}))}},_g={init:function(){this.setColour(Wc),this.appendValueInput("PIN",Number).appendField("DS18X20 "+Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(Re.Msg.MIXLY_GETTEMPERATUE),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_MICROBIT_SENSOR_DS18X20_TOOLTIP)}},og={init:function(){this.setColour(Wc),this.appendDummyInput("").appendField("LM35"+Re.Msg.MIXLY_TEMP),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(Re.Msg.MIXLY_GETTEMPERATUE),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Re.Msg.MIXLY_TOOLTIP_LM35)}},pg={init:function(){this.setColour(Wc),this.appendValueInput("I2CSUB").appendField(Re.Msg.CONTROLS_FOR_INPUT_WITH+"I2C").setCheck("var"),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_SETUP+Re.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_ESP32_EXTERN_LIGHT+"(LTR308ALS)","LTR308"],[Re.Msg.MIXLY_COLOR_SENSOR+"(LTR381RGB)","LTR381RGB"],[Re.Msg.MIXLY_COLOR_SENSOR+"(UCS12071)","UCS12071"],[Re.Msg.MIXLY_EXTERN_LIGHTUV+"(LTR390UV)","LTR390UV"],[Re.Msg.MIXLY_ALTITUDE_SENSOR+"(HP203X)","HP203X"],[Re.Msg.MIXLY_ALTITUDE_SENSOR+"(SPL06_001)","SPL06_001"],[Re.Msg.MIXLY_ALTITUDE_SENSOR+"(MS5611)","MS5611"],[Re.Msg.MIXLY_ALTITUDE_SENSOR+"(BMP280)","BMP280"],[Re.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(SHTC3)","SHTC3"],[Re.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(AHT21)","AHT21"],[Re.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(SHT20)","SHT20"],[Re.Msg.MIXLY_LASER_RANGE_SENSOR+"(VL53L0X)","VL53L0X"],[Re.Msg.MIXLY_GEOMAGNETIC_SENSOR+"(QMC5883L)","QMC5883L"],[Re.Msg.MIXLY_ESP32_MAX30102+"(MAX30102)","MAX30102"],[Re.Msg.HTML_COLOUR+"、"+Re.Msg.MIXLY_ENVIRONMENT_LIGHT+"、"+Re.Msg.MIXLY_NEXT+"、"+Re.Msg.MIXLY_ESP32_APDS9960+"(APDS9960)","APDS9960"],[Re.Msg.MIXLY_NINE_AXIS_SENSOR+"(MPU9250)","MPU9250"],[Re.Msg.MixGo_MPU9250+"(ADXL345)","ADXL345"],["RFID","RFID"],[Re.Msg.MIXLY_RADAR_SENSOR+"(CBR817)","CBR817"],[Re.Msg.MIXLY_AipSpeech_asr+"(CI130X)","CI130X"],[Re.Msg.MIXLY_TVOC_CO2_SENSOR+"(AGS10)","AGS10"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},ag={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_RADAR+"CBR817").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.LISTS_SET_INDEX_SET+Re.Msg.MIXlY_INTERACTION),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_DETECTION_THRESHOLD),this.appendValueInput("VAR2").appendField(Re.Msg.MIXLY_DELAY_TIME),this.appendDummyInput().appendField("ms"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_THRESHOLD_TOOLTIP+" ; "+Re.Msg.MIXLY_DELAY_TIME_RANGE)}},ug={init:function(){this.setColour(Wc),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RADAR).appendField(Re.Msg.LISTS_SET_INDEX_SET+Re.Msg.MIXlY_INTERACTION),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_DETECTION_THRESHOLD),this.appendValueInput("VAR2").appendField(Re.Msg.MIXLY_DELAY_TIME),this.appendDummyInput().appendField("ms"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_THRESHOLD_TOOLTIP+" ; "+Re.Msg.MIXLY_DELAY_TIME_RANGE)}},rg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_RADAR+"CBR817").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},lg={init:function(){this.setColour(Wc),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RADAR).appendField(Re.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},dg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_IDENTIFY_ONCE_AND_SAVE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Ig={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_GET).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_HELLO_XIAOZHI,"1"],[Re.Msg.MIXLY_XIAOZHIXIAOZHI,"2"],[Re.Msg.MIXLY_THE_FIRST,"3"],[Re.Msg.MIXLY_THE_SECOND,"4"],[Re.Msg.MIXLY_THE_THIRD,"5"],[Re.Msg.MIXLY_THE_FOURTH,"6"],[Re.Msg.MIXLY_THE_FIFTH,"7"],[Re.Msg.MIXLY_THE_SIXTH,"8"],[Re.Msg.MIXLY_THE_SEVENTH,"9"],[Re.Msg.MIXLY_THE_EIGHTH,"10"],[Re.Msg.MIXLY_THE_NINTH,"11"],[Re.Msg.MIXLY_THE_TENTH,"12"],[Re.Msg.MIXLY_THE_ELEVENTH,"13"],[Re.Msg.MIXLY_THE_TWELFTH,"14"],[Re.Msg.MIXLY_THE_13TH,"15"],[Re.Msg.MIXLY_THE_14TH,"16"],[Re.Msg.MIXLY_THE_15TH,"17"],[Re.Msg.MIXLY_THE_16TH,"18"],[Re.Msg.MIXLY_THE_17TH,"19"],[Re.Msg.MIXLY_THE_18TH,"20"],[Re.Msg.MIXLY_THE_19TH,"21"],[Re.Msg.MIXLY_THE_20TH,"22"],[Re.Msg.MIXLY_Turn_on_the_lights,"23"],[Re.Msg.MIXLY_Turn_off_the_lights,"24"],[Re.Msg.MIXLY_Turn_up_the_brightness,"25"],[Re.Msg.MIXLY_Turn_down_the_brightness,"26"],[Re.Msg.MIXLY_Set_it_to_red,"27"],[Re.Msg.MIXLY_Set_it_to_orange,"28"],[Re.Msg.MIXLY_Set_it_to_yellow,"29"],[Re.Msg.MIXLY_Set_it_to_green,"30"],[Re.Msg.MIXLY_Set_it_to_cyan,"31"],[Re.Msg.MIXLY_Set_it_to_blue,"32"],[Re.Msg.MIXLY_Set_it_to_purple,"33"],[Re.Msg.MIXLY_Set_it_to_white,"34"],[Re.Msg.MIXLY_Turn_on_the_fan,"35"],[Re.Msg.MIXLY_Turn_off_the_fan,"36"],[Re.Msg.MIXLY_First_gear,"37"],[Re.Msg.MIXLY_Wind_speed_second,"38"],[Re.Msg.MIXLY_Third_gear,"39"],[Re.Msg.MIXLY_Previous,"40"],[Re.Msg.MIXLY_Next_page,"41"],[Re.Msg.MIXLY_Show_smiley_face,"42"],[Re.Msg.MIXLY_Show_crying_face,"43"],[Re.Msg.MIXLY_Show_love,"44"],[Re.Msg.MIXLY_Close_display,"45"],[Re.Msg.MIXLY_Start_execution,"46"],[Re.Msg.MIXLY_FORWARD,"47"],[Re.Msg.MIXLY_BACKWARD,"48"],[Re.Msg.MIXLY_TURNLEFT,"49"],[Re.Msg.MIXLY_TURNRIGHT,"50"],[Re.Msg.MIXLY_STOP,"51"],[Re.Msg.MIXLY_Accelerate,"52"],[Re.Msg.MIXLY_retard,"53"],[Re.Msg.ROTATION_FORWARD,"54"],[Re.Msg.ROTATION_BACKWARD,"55"],[Re.Msg.MIXLY_Query_temperature,"56"],[Re.Msg.MIXLY_Query_humidity,"57"],[Re.Msg.MIXLY_Query_brightness,"58"],[Re.Msg.MIXLY_Query_sound,"59"],[Re.Msg.MIXLY_Query_time,"60"],[Re.Msg.MIXLY_Query_distance,"61"],[Re.Msg.MIXLY_Query_pressure,"62"],[Re.Msg.MIXLY_Query_key,"63"],[Re.Msg.MIXLY_Query_touch,"64"],[Re.Msg.MIXLY_Query_color,"65"]]),"cmd").appendField(Re.Msg.MIXLY_WHETHER+Re.Msg.MIXLY_BE_IDENTIFIED),this.setOutput(!0),this.setInputsInline(!0)}},Tg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_GET).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_RECOGNIZED_STATE,"status1"],[Re.Msg.MIXLY_WHETHER_BROADCAST,"status2"],[Re.Msg.MIXLY_THE_RECOGNIZED_CMD,"result"]]),"key"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_CI130X_GET_THE_RECOGNIZED_STATE_TOOLTIP)}},Mg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MP3_PLAY).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_JS_INOUT_PULL_NONE,"None"],[Re.Msg.MIXLY_WIND_SPEED,"154"],[Re.Msg.MIXLY_HYETAL,"155"],[Re.Msg.MIXLY_TEMPERATURE,"156"],[Re.Msg.MIXLY_Humidity,"157"],[Re.Msg.MIXLY_Altitude,"158"],[Re.Msg.MIXLY_SOUND,"159"],[Re.Msg.MIXLY_BRIGHTNESS,"160"],[Re.Msg.ME_GO_HALL_SENSOR_DISTANCE,"161"],[Re.Msg.MIXLY_SERVO,"162"],[Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"163"],[Re.Msg.MIXLY_BUTTON2,"164"],[Re.Msg.MIXLY_ESP32_TOUCH,"165"],[Re.Msg.MIXLY_PAY,"166"],[Re.Msg.MIXLY_CARSH_CHANGE,"167"],[Re.Msg.MIXLY_COUNTDOWN,"168"],[Re.Msg.MIXLY_TIMING,"169"],[Re.Msg.MIXLY_AT_THE_MOMENT,"170"],[Re.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE,"171"],[Re.Msg.MIXLY_FORWARD,"172"],[Re.Msg.MIXLY_BACKWARD,"173"],[Re.Msg.MIXLY_TURNLEFT,"174"],[Re.Msg.MIXLY_TURNRIGHT,"175"],[Re.Msg.MIXLY_STOP,"176"],[Re.Msg.MIXLY_Accelerate,"177"],[Re.Msg.MIXLY_retard,"178"],[Re.Msg.ROTATION_FORWARD,"179"],[Re.Msg.ROTATION_BACKWARD,"180"],[Re.Msg.TUPLE_JOIN,"181"],[Re.Msg.MIXLY_SHOW,"182"],[Re.Msg.MIXLY_LAMPLIGHT,"183"],[Re.Msg.MIXLY_ACCELERATION,"184"]]),"star"),this.appendValueInput("NUM").appendField(Re.Msg.MIXLY_NUMBER),this.appendDummyInput("").appendField(Re.Msg.MIXLY_UNIT).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_JS_INOUT_PULL_NONE,"None"],[Re.Msg.MIXLY_YEAR,"117"],[Re.Msg.MIXLY_MONTH,"118"],[Re.Msg.MIXLY_DAY,"119"],[Re.Msg.MIXLY_HOUR,"120"],[Re.Msg.MIXLY_MINUTE,"121"],[Re.Msg.MIXLY_SECOND,"122"],[Re.Msg.MIXLY_WEEK2,"123"],[Re.Msg.MIXLY_RMB_UNIT,"124"],[Re.Msg.blockpy_setheading_degree,"125"],[Re.Msg.MIXLY_GEAR,"126"],[Re.Msg.MIXLY_LAYER,"127"],[Re.Msg.MIXLY_GRAM,"128"],[Re.Msg.MIXLY_METER,"129"],[Re.Msg.MIXLY_CENTIMETER,"130"],[Re.Msg.MIXLY_MILLIMETER,"131"],[Re.Msg.MIXLY_LUMEN,"132"],[Re.Msg.MIXLY_DECIBEL,"133"],[Re.Msg.MIXLY_hectopascal,"134"],[Re.Msg.MIXLY_PERCENT,"135"],[Re.Msg.MIXLY_CELSIUS,"136"],[Re.Msg.MIXLY_METER_PER_SEC,"137"],[Re.Msg.MIXLY_MICROBIT_Turn_on_display,"138"],[Re.Msg.MIXLY_MICROBIT_Turn_off_display,"139"],[Re.Msg.MIXLY_SUCCESS,"140"],[Re.Msg.MIXLY_FAILED,"141"],[Re.Msg.MIXLY_WRONG,"142"],[Re.Msg.MIXLY_GOOD,"143"],[Re.Msg.MIXLY_blockpy_set_add,"144"],[Re.Msg.MIXLY_DECREASE,"145"],[Re.Msg.COLOUR_RGB_RED,"146"],[Re.Msg.COLOUR_RGB_ORANGE,"147"],[Re.Msg.COLOUR_YELLOW,"148"],[Re.Msg.COLOUR_RGB_GREEN,"149"],[Re.Msg.COLOUR_CYAN,"150"],[Re.Msg.COLOUR_RGB_BLUE,"151"],[Re.Msg.COLOUR_RGB_PURPLE,"152"],[Re.Msg.COLOUR_RGB_WHITE,"153"]]),"end"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},hg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.LISTS_SET_INDEX_SET+Re.Msg.MIXLY_SYSTEM+Re.Msg.MIXLY_CMD).appendField(new Re.FieldDropdown([[Re.Msg.MILXY_ENTER_WAKE_UP,"1"],[Re.Msg.MIXLY_INCREASE_VOLUME,"202"],[Re.Msg.MIXLY_REDUCE_VOLUME,"203"],[Re.Msg.MIXLY_MAX_VOLUME,"204"],[Re.Msg.MIXLY_MINIMUM,"205"],[Re.Msg.MIXLY_OPEN_RESPONSE,"206"],[Re.Msg.MIXLY_CLOSE_RESPONSE,"207"],[Re.Msg.MIXLY_QUIT_WAKE_UP,"208"]]),"cmd"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},mg={init:function(){this.setColour(Wc),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_MAX30102+" MAX30102"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_ESP32_MAX30102_IR,"[0]"],[Re.Msg.MIXLY_ESP32_MAX30102_RED,"[1]"],[Re.Msg.MIXLY_ESP32_MAX30102_IR+","+Re.Msg.MIXLY_ESP32_MAX30102_RED,""]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Eg={init:function(){this.setColour(Wc),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_APDS9960+" APDS9960"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_ESP32_APDS9960_COLOR,"color"],[Re.Msg.MIXLY_ESP32_APDS9960_GESTURE,"gesture"],[Re.Msg.MIXLY_ESP32_APDS9960_APPROACH,"proximity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Og={init:function(){this.setColour(Wc),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_EXTERN_LIGHT+" LTR308ALS"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET_LIGHT_INTENSITY),this.setOutput(!0,Number),this.setInputsInline(!0)}},Rg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.HTML_COLOUR+Re.Msg.MSG.catSensor+" LTR381RGB").setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GET+Re.Msg.HTML_COLOUR,"[2]"],[Re.Msg.MIXLY_GET+Re.Msg.MIXLY_IR_STRENGTH,"[1]"],[Re.Msg.MIXLY_GET+Re.Msg.MIXLY_LIGHT_STRENGTH,"[0]"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},cg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.HTML_COLOUR+Re.Msg.MSG.catSensor+" UCS12071").setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GET+"RGB"+Re.Msg.HTML_COLOUR,"0"],[Re.Msg.MIXLY_GET+Re.Msg.MIXLY_RGB_RAW,"1"],[Re.Msg.MIXLY_GET_ENV_LIGHT+Re.Msg.MIXLY_BRIGHTNESS,"2"],[Re.Msg.GET_IR_STRENGTH+Re.Msg.MIXLY_BRIGHTNESS,"3"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},gg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_EXTERN_LIGHTUV+" LTR390UV").setCheck("var"),this.appendDummyInput().appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GET_ENV_LIGHT,"E"],[Re.Msg.MIXLY_GET_ULTRAVIOLET,"U"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Cg={init:function(){this.setColour(Wc),this.appendDummyInput().appendField(Re.Msg.MIXLY_LASER_RANGE+" VL53L0X"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_GET_DISTANCE+"(mm)"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Sg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_TEM_HUM+" SHTC3").setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GETTEMPERATUE,"temperature"],[Re.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{temperature:Re.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,humidity:Re.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[t]}))}},Ag={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_TEM_HUM+" AHT21").setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GETTEMPERATUE,"temperature"],[Re.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{temperature:Re.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,relative_humidity:Re.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[t]}))}},Lg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_Altitude+Re.Msg.MSG.catSensor+" HP203X").setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GETPRESSURE,"pressure()"],[Re.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[Re.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Ng={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_Altitude+Re.Msg.MSG.catSensor+" SPL06_001").setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GETPRESSURE,"pressure()"],[Re.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[Re.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Dg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_Altitude+Re.Msg.MSG.catSensor+" MS5611").setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_GETPRESSURE,"pressure()"],[Re.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[Re.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},fg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_Altitude+Re.Msg.MSG.catSensor+" MS5611").setCheck("var"),this.appendValueInput("VAR").appendField(Re.Msg.MIXLY_REF_TO_PRESSURE),this.appendDummyInput().appendField(Re.Msg.MIXLY_CAL_TO_ALTITUDE),this.setOutput(!0,Number),this.setInputsInline(!0)}},Fg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MIXGOPE_FIELD+Re.Msg.MSG.catSensor+" QMC5883L").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"get_bearing()"],[Re.Msg.MIXLY_TEMPERATURE,"get_temp()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Pg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_shake,"shake"],[Re.Msg.MIXLY_UP,"up"],[Re.Msg.MIXLY_DOWN,"down"],[Re.Msg.MIXLY_LEFT,"left"],[Re.Msg.MIXLY_RIGHT,"right"],[Re.Msg.MIXLY_MICROBIT_face_up,"face up"],[Re.Msg.MIXLY_MICROBIT_face_down,"face down"]]),"gesture"),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("gesture"),i=Re.Msg.MIXLY_MICROBIT_JS_CURRENT,n=Re.Msg.MSG.catSensor,s=Re.Msg.MIXLY_MICROBIT_JS_STATE,_=Re.Msg.MIXLY_MICROBIT_PERFORMANCE;return i+n+s+{shake:Re.Msg.MIXLY_MICROBIT_shake,up:Re.Msg.MIXLY_UP,down:Re.Msg.MIXLY_DOWN,left:Re.Msg.MIXLY_LEFT,right:Re.Msg.MIXLY_RIGHT,"face up":Re.Msg.MIXLY_MICROBIT_face_up,"face down":Re.Msg.MIXLY_MICROBIT_face_down}[t]+_}))}},Yg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_JS_ACCELERATION).appendField(new Re.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MICROBIT_JS_ACCELERATION);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Re.Msg.MIXLY_MICROBIT_Direction,s=Re.Msg.MIXLY_MICROBIT_JS_ACCELERATION1;return i+{x:"x",y:"y",z:"z","(x,y,z)":Re.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},vg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_JS_GET+Re.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH).appendField(new Re.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Re.Msg.MIXLY_MICROBIT_Direction,s=Re.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH;return i+{x:"x",y:"y",z:"z","(x,y,z)":Re.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},Xg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+Re.Msg.MIXLY_ESP32_SENOR_GYRO).appendField(new Re.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Re.Msg.MIXLY_MICROBIT_Direction,s=Re.Msg.MIXLY_ESP32_SENOR_GYRO;return i+{x:"x",y:"y",z:"z","(x,y,z)":Re.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},yg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_JS_CALIBRATE_COMPASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MICROBIT_JS_CALIBRATE_COMPASS)}},bg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_GETTEMPERATUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_GETTEMPERATUE)}},xg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_JS_GET_COMPASS).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH,"strength"],[Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"heading"]]),"compass"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("compass");return Re.Msg.MIXLY_MICROBIT_JS_GET_COMPASS+{strength:Re.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH,heading:Re.Msg.MIXLY_MICROBIT_JS_BY_ANGLE}[t]}))}},Vg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_Reset_COMPASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_MICROBIT_Reset_COMPASS)}},Bg={init:function(){this.setColour(Wc),this.appendValueInput("SPISUB").appendField(Re.Msg.CONTROLS_FOR_INPUT_WITH+"SPI").setCheck("var"),this.appendValueInput("PINSUB").appendField("CS"),this.appendValueInput("SUB").appendField(Re.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_SETUP+Re.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new Re.FieldDropdown([["RFID","RFID"],["WS-LoRa","Weather"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setFieldValue("RFID","key")}},Gg={init:function(){this.setColour(Wc),this.appendDummyInput().appendField("RFID"+Re.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Re.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_RFID_READ_CARD_UID,"id"],[Re.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL,"content"],[Re.Msg.MIXLY_ALL,"ALL"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Ug={init:function(){this.setColour(Wc),this.appendDummyInput().appendField("RFID"+Re.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_RFID_READ_CARD_UID),this.setOutput(!0,Number),this.setInputsInline(!0)}},wg={init:function(){this.setColour(Wc),this.appendDummyInput().appendField("RFID"+Re.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Re.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL),this.setOutput(!0,"Tuple"),this.setInputsInline(!0)}},Hg={init:function(){this.setColour(Wc),this.appendDummyInput().appendField(Re.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Re.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(Re.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},kg={init:function(){this.setColour(Wc),this.appendDummyInput().appendField(Re.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Re.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(Re.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.appendDummyInput().appendField(Re.Msg.RETURN_SUCCESS_OR_NOT),this.setInputsInline(!0),this.setOutput(!0,Boolean)}},Wg={init:function(){this.setColour(Wc),this.appendDummyInput().appendField("RFID"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_RFID_SCAN_OK,"0"],[Re.Msg.MIXLY_RFID_SCAN_NOTAGERR,"1"],[Re.Msg.MIXLY_RFID_SCAN_ERROR,"2"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Kg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Re.FieldDropdown([["全部(元组)","data()[0]"],["全部(json)","data()[1]"],["全部(json,附带位置信息)","data()[2]"],["编号","data()[0][0]"],["电量","data()[0][1]"],["风速","data()[0][2]"],["阵风","data()[0][3]"],["风向","data()[0][4]"],["雨量","data()[0][5]"],["温度","data()[0][6]"],["湿度","data()[0][7]"],["光照","data()[0][8]"],["紫外线","data()[0][9]"],["大气压","data()[0][10]"],["信号强度","data()[0][11]"],["信噪比","data()[0][12]"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip("返回气象数据元组 data= (设备id,电池状态,风速m/s,阵风m/s,风向°,雨量mm,温度℃,湿度%,光照Lux,UVI,大气压Pa,信号强度dB,信噪比dB)")}},Jg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_SERIAL_AVAILABLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},Qg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendValueInput("BASE").appendField("以主题"),this.appendDummyInput("").appendField("串口发送至MixIO"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},zg={init:function(){this.setColour(Wc),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.itemCount_=2,this.updateShape_(),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setMutator(new Re.icons.MutatorIcon(["weather_set_label_item"],this)),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip()},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("weather_set_label_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;n>6),i.push(128|63&_)):(2048<=_&&_<=55295||57344<=_&&_<=65535)&&(n+=3,i.push(224|15&_>>12),i.push(128|63&_>>6),i.push(128|63&_))}for(s=0;s>8,255&n].concat(i)}(e,!0),i="",n=0;n=0?"0x700000":["mixgo_sant"].indexOf(n)>=0?"0xE00000":"0x3A0000","32x12 Matrix"==o?(t.definitions_.import_matrix32x12="import matrix32x12",i=s+" = matrix32x12.Matrix("+_+", font_address="+p+")\n"):"16x8 Matrix"==o&&(t.definitions_.import_matrix16x8="import matrix16x8",i=s+" = matrix16x8.Matrix("+_+")\n"),i},dv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},Iv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+", center="+this.getFieldValue("center")+")\n"},Tv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},Mv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", delay="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+")\n"},hv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},mv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", speed="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+")\n"},Ev=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},Ov=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+"."+e.getFieldValue("OP")+"("+t.valueToCode(e,"val",t.ORDER_ATOMIC)+")\n"},Rv=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".pixel(int("+t.valueToCode(e,"x",t.ORDER_ATOMIC)+"), int("+t.valueToCode(e,"y",t.ORDER_ATOMIC)+"))",t.ORDER_ATOMIC]},cv=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".pixel(int("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+"), int("+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+"), "+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"+i+".show()\n"},gv=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".get_brightness()",t.ORDER_ATOMIC]},Cv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".set_brightness("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+")\n"},Sv=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+"."+e.getFieldValue("image"),t.ORDER_ATOMIC]},Av=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".map_"+e.getFieldValue("OP")+"("+t.valueToCode(e,"A",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"B",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Lv=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".map_invert("+t.valueToCode(e,"A",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Nv=function(e,t){t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var i=t.valueToCode(this,"I2CSUB",t.ORDER_ATOMIC);return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+" = ssd1306.SSD1306_I2C("+t.valueToCode(this,"row",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"column",t.ORDER_ATOMIC)+", "+i+")\n"},Dv=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_str("+(t.valueToCode(this,"Text_line1",t.ORDER_ASSIGNMENT)||"''")+", "+(t.valueToCode(this,"Text_line2",t.ORDER_ASSIGNMENT)||"''")+", "+(t.valueToCode(this,"Text_line3",t.ORDER_ASSIGNMENT)||"''")+", "+(t.valueToCode(this,"Text_line4",t.ORDER_ASSIGNMENT)||"''")+")\n"},fv=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_line("+t.valueToCode(this,"x1",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"y1",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"x2",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"y2",t.ORDER_ATOMIC)+", 1)\n"},Fv=function(e,t){t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),n=t.valueToCode(this,"x",t.ORDER_ATOMIC),s=t.valueToCode(this,"y",t.ORDER_ATOMIC),_=t.valueToCode(this,"width",t.ORDER_ATOMIC),o=t.valueToCode(this,"height",t.ORDER_ATOMIC),p="TRUE"==this.getFieldValue("fill")?"True":"False",a=this.getFieldValue("OP");switch(p){case"True":return i+".show_fill_rect("+n+", "+s+", "+_+", "+o+", "+a+")\n";case"False":return i+".show_rect("+n+", "+s+", "+_+", "+o+", "+a+")\n"}},Pv=function(e,t){t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),n=t.valueToCode(this,"x",t.ORDER_ATOMIC),s=t.valueToCode(this,"y",t.ORDER_ATOMIC),_=t.valueToCode(this,"length",t.ORDER_ATOMIC);return i+".show_"+this.getFieldValue("direction")+"("+n+", "+s+", "+_+", 1)\n"},Yv=function(e,t){return["ON"==this.getFieldValue("ONOFF")?"1":"0",t.ORDER_ATOMIC]},vv=function(e,t){t.definitions_.import_matrix="import matrix";var i=e.getFieldValue("OP");return[t.valueToCode(e,"img",t.ORDER_ATOMIC)+".shift_"+i+"("+t.valueToCode(e,"val",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Xv=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return t.definitions_.import_ssd1306="import ssd1306",t.definitions_.import_machine="import machine",i+".show_fill("+this.getFieldValue("key")+")\n"},yv=function(e,t){return["matrix.Image."+this.getFieldValue("ANIMATION"),t.ORDER_ATOMIC]},bv=function(e,t){var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var n=t.valueToCode(this,"x",t.ORDER_ATOMIC),s=t.valueToCode(this,"y",t.ORDER_ATOMIC),_=t.valueToCode(this,"r",t.ORDER_ATOMIC),o="TRUE"==this.getFieldValue("fill")?"True":"False",p=this.getFieldValue("OP");switch(o){case"True":return i+".show_fill_circle("+n+", "+s+", "+_+", "+p+")\n";case"False":return i+".show_circle("+n+", "+s+", "+_+", "+p+")\n"}},xv=function(e,t){var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var n=t.valueToCode(this,"x0",t.ORDER_ATOMIC),s=t.valueToCode(this,"y0",t.ORDER_ATOMIC),_=t.valueToCode(this,"x1",t.ORDER_ATOMIC),o=t.valueToCode(this,"y1",t.ORDER_ATOMIC),p=t.valueToCode(this,"x2",t.ORDER_ATOMIC),a=t.valueToCode(this,"y2",t.ORDER_ATOMIC),u="TRUE"==this.getFieldValue("fill")?"True":"False",r=this.getFieldValue("OP");switch(u){case"True":return i+".show_fill_triangle("+n+", "+s+", "+_+", "+o+", "+p+", "+a+", "+r+")\n";case"False":return i+".show_triangle("+n+", "+s+", "+_+", "+o+", "+p+", "+a+", "+r+")\n"}},Vv=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_bitmap("+t.valueToCode(this,"START_X",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"START_Y",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"bitmap_name",t.ORDER_ATOMIC)+","+t.valueToCode(this,"WIDTH",t.ORDER_ATOMIC)+","+t.valueToCode(this,"HEIGHT",t.ORDER_ATOMIC)+")\n"},Bv=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_pixel("+t.valueToCode(this,"POS_X",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"POS_Y",t.ORDER_ATOMIC)+")\n"},Gv=function(e,t){var i,n=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),s=t.valueToCode(this,"CLK",t.ORDER_ATOMIC),_=t.valueToCode(this,"DIO",t.ORDER_ATOMIC),o=this.getFieldValue("key");return"TM1650"==o?(t.definitions_.import_tm1650="import tm1650",i=n+" = tm1650."+o+"(clk="+s+",dio="+_+")\n"):"TM1637"==o&&(t.definitions_.import_tm1637="import tm1637",i=n+" = tm1637."+o+"(clk="+s+",dio="+_+")\n"),i},Uv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+"."+this.getFieldValue("STAT")+"()\n"},wv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".shownum("+t.valueToCode(this,"VALUE",t.ORDER_ATOMIC)+")\n"},Hv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".showDP("+t.valueToCode(this,"NO",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"},kv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".intensity("+t.valueToCode(this,"VALUE",t.ORDER_ATOMIC)+")\n"},Wv=function(e,t){t.definitions_.import_st7789="import st7789";var i=ce.Boards.getSelectedBoardKey().split(":")[2],n="";n=["mpython","mixgo_pe","mixgo_nova"].indexOf(i)>=0?"0x700000":["mixgo_sant"].indexOf(i)>=0?"0xE00000":"0x3A0000";var s=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),_=t.valueToCode(this,"SPISUB",t.ORDER_ATOMIC),o=t.valueToCode(this,"PINCS",t.ORDER_ATOMIC),p=t.valueToCode(this,"PINDC",t.ORDER_ATOMIC);return s+" = st7789.ST7789("+_+", "+t.valueToCode(this,"WIDTH",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"HEIGHT",t.ORDER_ATOMIC)+", dc_pin="+p+", cs_pin="+o+", rotation="+this.getFieldValue("rotate")+", font_address="+n+")\n"},Kv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=i+".image("+n+", x="+s+", y="+_+", size="+o+", color="+p+")\n";else{const e=p.match(/\d+/g);var u="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");a=i+".image("+n+", x= "+s+",y="+_+", size="+o+", color=0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},Jv=function(e,t){var i="0x"+this.getFieldValue("COLOR").slice(1);return["0x"+((16252928&i)>>8|(64512&i)>>5|(255&i)>>3).toString(16),t.ORDER_ATOMIC]},Qv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),u=this.getFieldValue("center");if("0x"==a.slice(0,2))var r=i+".shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+u+", color="+a+")\n";else{const e=a.match(/\d+/g);var l="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");r=i+".shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+u+", color=0x"+((16252928&l)>>8|(64512&l)>>5|(255&l)>>3).toString(16)+")\n"}return r},zv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==o.slice(0,2))var p=i+".frame("+n+", size="+s+", delay="+_+", color="+o+")\n";else{const e=o.match(/\d+/g);var a="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");p=i+".frame("+n+", size="+s+", delay="+_+", color=0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+")\n"}return p},qv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==a.slice(0,2))var u=i+".scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color="+a+")\n";else{const e=a.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u=i+".scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+")\n"}return u},jv=function(e,t){return t.definitions_.import_st7789="import st7789",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".fill(st7789."+this.getFieldValue("key")+")\n"},$v=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"x1",t.ORDER_ATOMIC),s=t.valueToCode(this,"y1",t.ORDER_ATOMIC),_=t.valueToCode(this,"x2",t.ORDER_ATOMIC),o=t.valueToCode(this,"y2",t.ORDER_ATOMIC),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=i+".line("+n+", "+s+", "+_+", "+o+", color="+p+")\n";else{const e=p.match(/\d+/g);var u="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");a=i+".line("+n+", "+s+", "+_+", "+o+", color=0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},Zv=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"I2CSUB",t.ORDER_ATOMIC),s=this.getFieldValue("key"),_=t.valueToCode(this,"ADDR",t.ORDER_ATOMIC);return t.definitions_.import_i2clcd="import i2clcd",i+" = i2clcd.LCD("+n+", lcd_width="+s+", i2c_addr="+_+")\n"},eX=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", column="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", line="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+",center = "+this.getFieldValue("center")+")\n"},tX=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".print("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", column="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", line="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", delay="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+")\n"},iX=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".backlight("+this.getFieldValue("key")+")\n"},nX=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".clear()\n"},sX=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"I2CSUB",t.ORDER_ATOMIC),s=t.valueToCode(this,"ADDR",t.ORDER_ATOMIC),_=this.getFieldValue("driver"),o=ce.Boards.getSelectedBoardKey().split(":")[2],p="";return p=["mpython","mixgo_pe","mixgo_nova"].indexOf(o)>=0?"0x700000":["mixgo_sant"].indexOf(o)>=0?"0xE00000":"0x3A0000",t.definitions_.import_oled128x64="import oled128x64",i+" = oled128x64.OLED("+n+", address="+s+", font_address="+p+", types="+_+")\n"},_X=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".image("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},oX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".image("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", x="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", y="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+")\n"},pX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},aX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", x="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", y="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+", center="+this.getFieldValue("center")+")\n"},uX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},rX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+", delay="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+")\n"},lX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},dX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", y="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+", speed="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+")\n"},IX=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},TX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+"."+e.getFieldValue("OP")+"("+t.valueToCode(e,"val",t.ORDER_ATOMIC)+")\n"},MX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".pixel(int("+t.valueToCode(e,"x",t.ORDER_ATOMIC)+"), int("+t.valueToCode(e,"y",t.ORDER_ATOMIC)+"))",t.ORDER_ATOMIC]},hX=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".pixel(int("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+"), int("+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+"), "+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"+i+".show()\n"},mX=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"w",t.ORDER_ATOMIC),o=t.valueToCode(e,"h",t.ORDER_ATOMIC),p=e.getFieldValue("state");return i+"."+e.getFieldValue("shape")+"("+n+", "+s+", "+_+", "+o+", "+p+")\n"+i+".show()\n"},EX=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"length",t.ORDER_ATOMIC),o=e.getFieldValue("state");return i+"."+("0"==e.getFieldValue("dir_h_v")?"v":"h")+"line("+n+", "+s+", "+_+", "+o+")\n"+i+".show()\n"},OX=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".line("+t.valueToCode(e,"x1",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"y1",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"x2",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"y2",t.ORDER_ATOMIC)+", "+e.getFieldValue("state")+")\n"+i+".show()\n"},RX=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT);if(["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var s="onboard_tft.image("+(n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT))+", color=0xffff,sync="+(t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True")+")\n"}else if("educore"==i){t.definitions_["import_"+i+"_oled"]="from "+i+" import oled";s="oled.print("+n+")\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";s="onboard_matrix.shows("+n+")\n"}return s},cX=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),_=this.getFieldValue("center");if(["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform()))return t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.shows("+n+", space="+s+", center="+_+",sync="+(t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True")+")\n";if("educore"==i){t.definitions_["import_"+i+"_oled"]="from "+i+" import oled"}return t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix","onboard_matrix.shows("+n+", space="+s+", center="+_+")\n"},gX=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var s="onboard_oled.frame("+n+")\n"}else if(["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";s="onboard_tft.frame("+(n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT))+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";s="onboard_matrix.frame("+n+")\n"}return s},CX=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var _="onboard_oled.frame("+(n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT))+", delay="+s+")\n"}else if(["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";_="onboard_tft.frame("+n+", size=5 , delay="+s+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";_="onboard_matrix.frame("+n+", delay="+s+")\n"}return _},SX=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var n="onboard_oled.scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"}else if(["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";n="onboard_tft.scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix.scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"}return n},AX=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var o="onboard_oled.scroll("+n+", speed="+s+", space="+_+")\n"}else if(["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";o="onboard_tft.scroll("+n+", y=0, size=5, speed="+s+", space="+_+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";o="onboard_matrix.scroll("+n+", speed="+s+", space="+_+")\n"}return o},LX=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix","onboard_matrix.scroll_way("+this.getFieldValue("way")+")\n"},NX=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==a.slice(0,2))var u="onboard_tft.scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color="+a+")\n";else{const e=a.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+")\n"}return u},DX=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix",["onboard_matrix."+e.getFieldValue("image"),t.ORDER_ATOMIC]},fX=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];if(["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())){const i=e.getFieldValue("image").split(".");if(2!==i.length)throw Error("pin value error");t.definitions_[`import_${i[0]}_${i[1]}`]=`from ${i[0]} import ${i[1]}`;var n=i[1]}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix."+e.getFieldValue("image")}return[n,t.ORDER_ATOMIC]},FX=function(e,t){var i={"#000000":"0","#ff0000":"1"};function n(e){let t="";if(e.length%2==1&&(e="0"+e),e.length<8){let t=8-e.length;for(let i=1;i<=t;i++)e="0"+e}for(let i=1;i<=e.length;i++)i%2==0&&i!==e.length?t=t+e[i-1]+",0x":t+=e[i-1];return"0x"+t}let s=[];for(let t=0;t<12;t++){let _="",o=0,p=0;for(let n=0;n<32;n++)n<8?p=7-n:n<16?p=23-n:n<24?p=39-n:n<32&&(p=55-n),o+=Number(i[e.getFieldValue(t+"-"+n)])*Math.pow(2,31-p);_+=n(o.toString(16)),s.unshift(_)}let _=[];for(let e=0;e>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},Ty=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.picture("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+","+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+","+t.valueToCode(this,"direct",t.ORDER_ASSIGNMENT)+")\n"},My=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=this.getFieldValue("center"),u=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True",r=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==r.slice(0,2))var l="onboard_tft.shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+a+", color="+r+",sync="+u+")\n";else{const e=r.match(/\d+/g);var d="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");l="onboard_tft.shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+a+", color=0x"+((16252928&d)>>8|(64512&d)>>5|(255&d)>>3).toString(16)+",sync="+u+")\n"}return l},hy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==o.slice(0,2))var p="onboard_tft.frame("+n+", size="+s+", delay="+_+", color="+o+")\n";else{const e=o.match(/\d+/g);var a="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");p="onboard_tft.frame("+n+", size="+s+", delay="+_+", color=0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+")\n"}return p},my=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"w",t.ORDER_ATOMIC),o=t.valueToCode(e,"h",t.ORDER_ATOMIC),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=e.getFieldValue("shape"),u=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var r="onboard_tft."+a+"("+n+", "+s+", "+_+", "+o+", "+p+",sync="+u+")\n";else{const e=p.match(/\d+/g);var l="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");r="onboard_tft."+a+"("+n+", "+s+", "+_+", "+o+", 0x"+((16252928&l)>>8|(64512&l)>>5|(255&l)>>3).toString(16)+",sync="+u+")\n"}return r},Ey=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"length",t.ORDER_ATOMIC),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),p=e.getFieldValue("dir_h_v"),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==o.slice(0,2))var u="onboard_tft."+("0"==p?"v":"h")+"line("+n+", "+s+", "+_+", "+o+",sync="+a+")\n";else{const e=o.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft."+("0"==p?"v":"h")+"line("+n+", "+s+", "+_+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},Oy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x1",t.ORDER_ATOMIC),s=t.valueToCode(e,"y1",t.ORDER_ATOMIC),_=t.valueToCode(e,"x2",t.ORDER_ATOMIC),o=t.valueToCode(e,"y2",t.ORDER_ATOMIC),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var u="onboard_tft.line("+n+", "+s+", "+_+", "+o+", "+p+",sync="+a+")\n";else{const e=p.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.line("+n+", "+s+", "+_+", "+o+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},Ry=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft",["onboard_tft.pixel(int("+t.valueToCode(e,"x",t.ORDER_ATOMIC)+"), int("+t.valueToCode(e,"y",t.ORDER_ATOMIC)+"))",t.ORDER_ATOMIC]},cy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),o=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==_.slice(0,2))var p="onboard_tft.pixel(int("+n+"), int("+s+"), "+_+",sync="+o+")\n";else{const e=_.match(/\d+/g);var a="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");p="onboard_tft.pixel(int("+n+"), int("+s+"), 0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+",sync="+o+")\n"}return p},gy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"VAR",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==n.slice(0,2))var _="onboard_tft.fill("+n+",sync="+s+")\n";else{const e=n.match(/\d+/g);var o="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");_="onboard_tft.fill(0x"+((16252928&o)>>8|(64512&o)>>5|(255&o)>>3).toString(16)+",sync="+s+")\n"}return _},Cy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock";var n=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=o+"=Clock("+n+", "+s+", "+_+", "+p+")\n";else{const e=p.match(/\d+/g);var u="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");a=o+"=Clock("+n+", "+s+", "+_+", 0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},Sy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT)+".set_rtctime()\n"},Ay=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT)+".set_time("+t.valueToCode(this,"h",t.ORDER_ASSIGNMENT)+", "+t.valueToCode(this,"m",t.ORDER_ASSIGNMENT)+", "+t.valueToCode(this,"s",t.ORDER_ASSIGNMENT)+")\n"},Ly=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT)+".draw_clock()\n"},Ny=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock";var n=t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==s.slice(0,2))var _=n+".clear("+s+")\n";else{const e=s.match(/\d+/g);var o="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");_=n+".clear(0x"+((16252928&o)>>8|(64512&o)>>5|(255&o)>>3).toString(16)+")\n"}return _},Dy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"r",t.ORDER_ATOMIC),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),p=e.getFieldValue("shape"),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==o.slice(0,2))var u="onboard_tft.ellipse("+n+", "+s+", "+_+", "+_+", "+o+", "+p+",sync="+a+")\n";else{const e=o.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.ellipse("+n+", "+s+", "+_+", "+_+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+", "+p+",sync="+a+")\n"}return u},fy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];if(["Python ESP32-S3","Python ESP32-C5"].includes(ce.JSFuncs.getPlatform())){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n="onboard_tft.pointern(angle="+t.valueToCode(this,"angle",t.ORDER_ASSIGNMENT)+")\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix.pointern(angle="+t.valueToCode(this,"angle",t.ORDER_ASSIGNMENT)+")\n"}return n},Fy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"angle",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==s.slice(0,2))var _="onboard_tft.pointern(angle="+n+", color="+s+")\n";else{const e=s.match(/\d+/g);var o="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");_="onboard_tft.pointern(angle="+n+", color=0x"+((16252928&o)>>8|(64512&o)>>5|(255&o)>>3).toString(16)+")\n"}return _},Py=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var u="onboard_tft.texts("+n+", x="+s+", y="+_+", size="+o+", color="+p+",sync="+a+")\n";else{const e=p.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.texts("+n+", x="+s+", y="+_+", size="+o+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},Yy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.qrcode("+t.valueToCode(this,"direct",t.ORDER_ATOMIC)+")\n"},vy=function(e,t){var i=ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True",u=this.getFieldValue("correct");if("0x"==p.slice(0,2))var r="onboard_tft.qrcode("+n+",x="+s+",y="+_+",size="+o+",correct="+u+",color="+p+",sync="+a+")\n";else{const e=p.match(/\d+/g);var l="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");r="onboard_tft.qrcode("+n+",x="+s+",y="+_+",size="+o+",correct="+u+",color=0x"+((16252928&l)>>8|(64512&l)>>5|(255&l)>>3).toString(16)+",sync="+a+")\n"}return r},Xy=RX,yy=BX,by=bX,xy=BX,Vy=GX,By=YX,Gy=function(e,t){var i=this.getFieldValue("path"),n=this.getFieldValue("module");return t.definitions_["import_"+i+"_"+n]="from "+i+" import "+n,""},Uy=function(e,t){var i=this.getFieldValue("module");return t.definitions_["import_"+i]="import "+i,""},wy=function(e,t){for(var i=this.getFieldValue("NAME"),n=new Array(this.itemCount_),s=0;s {\n"+t.statementToCode(this,"do")+"})\n"},lw=function(){return"control.reset()\n"},dw=function(e,t){return"control.waitMicros("+(t.valueToCode(this,"data",t.ORDER_ATOMIC)||ce.Profile.default.serial)+")\n"},Iw=function(e,t){return"control.raiseEvent("+(t.valueToCode(this,"system_event_bus_source",t.ORDER_ATOMIC)||ce.Profile.default.serial)+", "+(t.valueToCode(this,"system_event_bus_value",t.ORDER_ATOMIC)||ce.Profile.default.serial)+")\n"},Tw=function(e,t){return"control.onEvent("+(t.valueToCode(this,"system_event_bus_source",t.ORDER_ATOMIC)||ce.Profile.default.serial)+", "+(t.valueToCode(this,"system_event_bus_value",t.ORDER_ATOMIC)||ce.Profile.default.serial)+", () => {\n"+t.statementToCode(this,"do")+")\n"},Mw=function(e,t){return["control.eventTimestamp()",t.ORDER_ATOMIC]},hw=function(e,t){return["control.eventValue()",t.ORDER_ATOMIC]},mw=function(e,t){return[this.getFieldValue("key"),t.ORDER_ATOMIC]},Ew=function(e,t){return[this.getFieldValue("key"),t.ORDER_ATOMIC]},Ow=function(e,t){return["control.deviceName()",t.ORDER_ATOMIC]},Rw=function(e,t){return["control.deviceSerialNumber()",t.ORDER_ATOMIC]},cw=function(e,t){return"panic("+(t.valueToCode(this,"STATUS_CODE",t.ORDER_ATOMIC)||"1000")+")\n"},gw=function(e,t){switch(t.definitions_.import_time="import time",this.getFieldValue("Time")){case"ms":return["time.ticks_ms()",t.ORDER_ATOMIC];case"us":return["time.ticks_us()",t.ORDER_ATOMIC]}},Cw=function(){return"while True:\n pass\n"},Sw=function(e,t){return t.definitions_.import_mixgo="import mixgo","reset()\n"},Aw=function(e,t){return t.definitions_.import_os="import os","os.uname()"},Lw=function(e,t){t.definitions_.import_time="import time";var i=t.valueToCode(this,"DELAY_TIME",t.ORDER_ATOMIC)||"1000";switch(this.getFieldValue("Time")){case"s":return"time.sleep("+i+")\n";case"ms":return"time.sleep_ms("+i+")\n";case"us":return"time.sleep_us("+i+")\n"}},Nw=function(e,t){t.definitions_.import_time="import time";var i=t.valueToCode(this,"DELAY_TIME",t.ORDER_ATOMIC)||"1000";switch(this.getFieldValue("Time")){case"s":return"time.sleep("+i+")\n";case"ms":return"time.sleep_ms("+i+")\n";case"us":return"time.sleep_us("+i+")\n"}},Dw=function(e,t){return t.definitions_.import_mixgo="import mixgo",(t.valueToCode(this,"VAR",t.ORDER_NONE)||"None")+".init(period="+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+", mode=Timer."+(t.valueToCode(this,"mode",t.ORDER_NONE)||"None")+", callback="+(t.valueToCode(this,"callback",t.ORDER_NONE)||"None")+")\n"},fw=function(e,t){return t.definitions_.import_machine="import machine",(t.valueToCode(this,"VAR",t.ORDER_NONE)||"None")+" = machine.Timer("+(t.valueToCode(this,"PIN",t.ORDER_NONE)||"None")+",period = "+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+", mode=machine.Timer."+this.getFieldValue("mode")+", callback="+(t.valueToCode(this,"callback",t.ORDER_NONE)||"None")+")\n"},Fw=function(e,t){return t.definitions_.import_time="import time",["time.ticks_diff("+(t.valueToCode(this,"END",t.ORDER_NONE)||"0")+", "+(t.valueToCode(this,"START",t.ORDER_NONE)||"0")+")",t.ORDER_ATOMIC]},Pw=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return t.definitions_.import_machine="import machine",i+" = machine.Timer(0)\n"},Yw=function(e,t){return t.definitions_.import_machine="import machine",(t.valueToCode(this,"VAR",t.ORDER_NONE)||"None")+".init(period = "+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+", mode=machine.Timer."+this.getFieldValue("mode")+", callback="+(t.valueToCode(this,"callback",t.ORDER_NONE)||"None")+")\n"},vw=function(e,t){return t.definitions_.import_machine="import machine","wdt = machine.WDT(timeout= "+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+")\n"},Xw=function(e,t){t.definitions_.import_machine="import machine";return"wdt.feed()\n"},yw=function(e,t){t.definitions_.import_machine="import machine";return"machine.reset()\n"},bw=function(e,t){t.definitions_.import_bitbot_onboard_bot51="from bitbot import onboard_bot51";return"onboard_bot51.shutdown()\n"},xw=Pw,Vw=Yw,Bw=Fw,Gw=Lw,Uw=function(e,t){return t.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api."+this.getFieldValue("mode")+"("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},ww=function(e,t){return t.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api."+this.getFieldValue("mode")+"("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"day",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Hw=function(e,t){return t.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api.weather_hourly("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"hour",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},kw=function(e,t){return t.definitions_["import_seniverse_api*"]="from seniverse_api import *",this.getFieldValue("mode")+".request("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+")\n"},Ww=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Weather_now.analysis()";else n='Weather_now.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},Kw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Air_now.analysis()";else n='Air_now.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},Jw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Weather_alarm.analysis()";else n='Weather_alarm.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},Qw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Life_suggestion.analysis()";else n='Life_suggestion.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},zw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Tide_daily.analysis()";else n='Tide_daily.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},qw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Location_search.analysis()";else n='Location_search.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},jw=function(e,t){return t.definitions_["import_seniverse_api*"]="from seniverse_api import *",this.getFieldValue("mode")+".request("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"day",t.ORDER_ATOMIC)+")\n"},$w=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Weather_daily.analysis("+n+")";else s="Weather_daily.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},Zw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Air_daily.analysis("+n+")";else s="Air_daily.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},eH=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Geo_sun.analysis("+n+")";else s="Geo_sun.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},tH=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Geo_moon.analysis("+n+")";else s="Geo_moon.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},iH='
\r\n
{{-d.title}}
\r\n
\r\n {{# if (d.message) { }}\r\n

\r\n {{-d.message}}\r\n

\r\n {{# } }}\r\n
\r\n
',{XML:nH}=ce,sH=nH.render(iH,{title:"烧录速度",message:"要选择烧录速度,请更改“Burn Speed”,此值将用于向设备烧录代码。如果在用较高的烧录速度时出现问题,请尝试减小此值,这可能是由于外部串行到USB芯片的限制。"}),{XML:_H}=ce,oH=_H.render(iH,{title:"燒錄速度",message:"要選擇燒錄速度,請更改“Burn Speed”,此值將用於向設備燒錄程式碼。如果在用較高的燒錄速度時出現問題,請嘗試减小此值,這可能是由於外部串列到USB晶片的限制。"}),{XML:pH}=ce,aH=pH.render(iH,{title:"Burn Speed",message:"To select the flashing speed, change the Burn Speed. This value will be used for flashing the code to the device. If you have issues while flashing the device at high speed, try to decrease this value. This could be due to the external serial-to-USB chip limitations."}),uH=new Re.Generator("Python");uH.INDENT=" ",uH.addReservedWords("False,None,True,and,as,assert,break,class,continue,def,del,elif,else,except,exec,finally,for,from,global,if,import,in,is,lambda,nonlocal,not,or,pass,print,raise,return,try,while,with,yield,NotImplemented,Ellipsis,__debug__,quit,exit,copyright,license,credits,ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EnvironmentError,Exception,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StandardError,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,ZeroDivisionError,_,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,all,any,apply,ascii,basestring,bin,bool,buffer,bytearray,bytes,callable,chr,classmethod,cmp,coerce,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,execfile,exit,file,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,intern,isinstance,issubclass,iter,len,license,list,locals,long,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,raw_input,reduce,reload,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,unichr,unicode,vars,xrange,zip"),uH.ORDER_ATOMIC=0,uH.ORDER_COLLECTION=1,uH.ORDER_STRING_CONVERSION=1,uH.ORDER_UNARY_POSTFIX=1,uH.ORDER_UNARY_PREFIX=2,uH.ORDER_MEMBER=2.1,uH.ORDER_FUNCTION_CALL=2.2,uH.ORDER_EXPONENTIATION=3,uH.ORDER_UNARY_SIGN=4,uH.ORDER_BITWISE_NOT=4,uH.ORDER_MULTIPLICATIVE=5,uH.ORDER_ADDITIVE=6,uH.ORDER_BITWISE_SHIFT=7,uH.ORDER_BITWISE_AND=8,uH.ORDER_BITWISE_XOR=9,uH.ORDER_BITWISE_OR=10,uH.ORDER_RELATIONAL=11,uH.ORDER_EQUALITY=11,uH.ORDER_LOGICAL_NOT=12,uH.ORDER_LOGICAL_AND=13,uH.ORDER_LOGICAL_OR=14,uH.ORDER_ASSIGNMENT=14,uH.ORDER_CONDITIONAL=15,uH.ORDER_LAMBDA=16,uH.ORDER_NONE=99,uH.ORDER_OVERRIDES=[[uH.ORDER_FUNCTION_CALL,uH.ORDER_MEMBER],[uH.ORDER_FUNCTION_CALL,uH.ORDER_FUNCTION_CALL],[uH.ORDER_MEMBER,uH.ORDER_MEMBER],[uH.ORDER_MEMBER,uH.ORDER_FUNCTION_CALL]],uH.init=function(){uH.PASS=this.INDENT+"pass\n",uH.definitions_=Object.create(null),uH.functionNames_=Object.create(null),uH.setups_=Object.create(null),uH.loops_=Object.create(null),uH.codeEnd_=Object.create(null),uH.variableDB_?uH.variableDB_.reset():uH.variableDB_=new Ae(uH.RESERVED_WORDS_)},uH.finish=function(e){""!==e&&(e=(e=e.replace(/\n/g,"\n")).replace(/\n\s+$/,"\n"));var t=[],i=[],n=[];for(var s in this.definitions_){var _=this.definitions_[s];0===s.indexOf("import")?t.push(_):0===s.indexOf("var_declare")?i.push(_):n.push(_)}t.length&&t.push("\n"),i.length&&i.push("\n"),n.length&&n.push("\n");var o=[];for(var s in uH.functions_)o.push(uH.functions_[s]);o.length&&o.push("\n");var p=[];for(var s in uH.setups_)p.push(uH.setups_[s]);p.length&&p.push("\n");var a=[];for(var s in uH.loops_)a.push(uH.loops_[s]);var u=[];for(var s in uH.codeEnd_)u.push(uH.codeEnd_[s]);0!==u.length&&u.push("\n");let r="";return r=a.length>0?t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+"while True:\n"+a.join("")+u.join("\n"):t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+u.join("\n"),r},uH.scrubNakedValue=function(e){return e+"\n"},uH.quote_=function(e){var t="'";return-1!==(e=e.replace(/\\/g,"\\\\").replace(/\n/g,"\\\n")).indexOf("'")&&(-1===e.indexOf('"')?t='"':e=e.replace(/'/g,"\\'")),t+e+t},uH.multiline_quote_=function(e){return"'''"+(e=e.replace(/'''/g,"\\'\\'\\'"))+"'''"},uH.scrub_=function(e,t,i){var n="";if(!e.outputConnection||!e.outputConnection.targetConnection){(_=e.getCommentText())&&(_=Re.utils.string.wrap(_,uH.COMMENT_WRAP-3),n+=uH.prefixLines(_+"\n","# "));for(var s=0;s0?"int("+p+" + "+s+")":s<0?"int("+p+" - "+-s+")":"int("+p+")",n&&(p="-"+p)),p};const rH={};rH["元控自立(SOWL)"]={description:"MicroPython[ESP32C5 MixGo SOWL]",digital_pin:ce.Profile.generate(["0-14","23-28"]),input_pin:ce.Profile.generate(["0-14","23-28"]),output_pin:ce.Profile.generate(["0-14","23-28"]),pwm_input:ce.Profile.generate(["0-14","23-28"],"pwm","pwm"),analog_input:ce.Profile.generate(["1-6"],"adc","adc"),pwm_output:ce.Profile.generate(["0-14","23-28"],"pwm","pwm"),analog_output:ce.Profile.generate(["1-6"],"adc","adc"),espnow_channel:ce.Profile.generate(["1-13"]),haskylens_model:ce.Profile.generate(["0-4"]),digital:ce.Profile.generate(["0-14","23-28"],"pin","pin"),pwm_pin:ce.Profile.generate(["0-14","23-28"]),pwm:ce.Profile.generate(["0-14","23-28"],"pwm","pwm"),analog_pin:ce.Profile.generate(["1-6"]),analog:ce.Profile.generate(["1-6"],"adc","adc"),touch:ce.Profile.generate(["1-14"],"tc","tc"),touch_pin:ce.Profile.generate(["1-14"]),button:[["B1","B1key"],["B2","B2key"],["A1","A1key"],["A2","A2key"],["A3","A3key"],["A4","A4key"]],buttonB:[["B1","B1key"],["B2","B2key"]],axis:ce.Profile.generate(["0-4"]),exlcdh:ce.Profile.generate(["0-15"]),exlcdv:ce.Profile.generate(["0-7"]),brightness:ce.Profile.generate(["0-9"]),tts_voice:ce.Profile.generate(["0-16"]),tts_builtin_music:ce.Profile.generate(["0-47"]),tts_bgmusic:ce.Profile.generate(["0-15"]),builtinimg:[["Heart","expression_picture.Heart"],["Angry","expression_picture.Angry"],["Bored","expression_picture.Bored"],["Confused","expression_picture.Confused"],["Happy","expression_picture.Happy"],["Paper","expression_picture.Paper"],["Rock","expression_picture.Rock"],["Sad","expression_picture.Sad"],["Scissors","expression_picture.Scissors"],["Silly","expression_picture.Silly"],["Sleep","expression_picture.Sleep"],["Small_heart","expression_picture.Small_heart"],["Small_paper","expression_picture.Small_paper"],["Small_rock","expression_picture.Small_rock"],["Small_scissors","expression_picture.Small_scissors"],["Smile","expression_picture.Smile"],["Surprise","expression_picture.Surprise"],["Wonderful","expression_picture.Wonderful"],["Eyes_Angry","eye_picture.Eyes_Angry"],["Awake","eye_picture.Awake"],["Black_eye","eye_picture.Black_eye"],["Bottom_left","eye_picture.Bottom_left"],["Bottom_right","eye_picture.Bottom_right"],["Crazy_1","eye_picture.Crazy_1"],["Crazy_2","eye_picture.Crazy_2"],["Disappointed","eye_picture.Disappointed"],["Dizzy","eye_picture.Dizzy"],["Down","eye_picture.Down"],["Evil","eye_picture.Evil"],["Hurt","eye_picture.Hurt"],["Knocked_out","eye_picture.Knocked_out"],["Love","eye_picture.Love"],["Middle_left","eye_picture.Middle_left"],["Middle_right","eye_picture.Middle_right"],["Neutral","eye_picture.Neutral"],["Nuclear","eye_picture.Nuclear"],["Pinch_left","eye_picture.Pinch_left"],["Pinch_middle","eye_picture.Pinch_middle"],["Pinch_right","eye_picture.Pinch_right"],["Tear","eye_picture.Tear"],["Tired_left","eye_picture.Tired_left"],["Tired_middle","eye_picture.Tired_middle"],["Tired_right","eye_picture.Tired_right"],["Toxic","eye_picture.Toxic"],["Up","eye_picture.Up"],["Winking","eye_picture.Winking"],["Accept","informatio_picture.Accept"],["Backward","informatio_picture.Backward"],["Decline","informatio_picture.Decline"],["Forward","informatio_picture.Forward"],["Left","informatio_picture.Left"],["No_go","informatio_picture.No_go"],["Question_mark","informatio_picture.Question_mark"],["Right","informatio_picture.Right"],["Stop_1","informatio_picture.Stop_1"],["Stop_2","informatio_picture.Stop_2"],["Thumbs_down","informatio_picture.Thumbs_down"],["Thumbs_up","informatio_picture.Thumbs_up"],["Warning","informatio_picture.Warning"],["Bomb","object_picture.Bomb"],["Boom","object_picture.Boom"],["DOOR_CLOSE","object_picture.DOOR_CLOSE"],["DOOR_OPEN","object_picture.DOOR_OPEN"],["DOOR_OPENING","object_picture.DOOR_OPENING"],["Fire","object_picture.Fire"],["Flowers","object_picture.Flowers"],["Forest","object_picture.Forest"],["Lightning","object_picture.Lightning"],["Light_off","object_picture.Light_off"],["Light_on","object_picture.Light_on"],["Night","object_picture.Night"],["Pirate","object_picture.Pirate"],["Snow","object_picture.Snow"],["Target","object_picture.Target"],["Bar_0","progres_picture.Bar_0"],["Bar_1","progres_picture.Bar_1"],["Bar_2","progres_picture.Bar_2"],["Bar_3","progres_picture.Bar_3"],["Bar_4","progres_picture.Bar_4"],["Dial_0","progres_picture.Dial_0"],["Dial_1","progres_picture.Dial_1"],["Dial_2","progres_picture.Dial_2"],["Dial_3","progres_picture.Dial_3"],["Dial_4","progres_picture.Dial_4"],["Dots_0","progres_picture.Dots_0"],["Dots_1","progres_picture.Dots_1"],["Dots_2","progres_picture.Dots_2"],["Dots_3","progres_picture.Dots_3"],["Hourglass_0","progres_picture.Hourglass_0"],["Hourglass_1","progres_picture.Hourglass_1"],["Hourglass_2","progres_picture.Hourglass_2"],["Timer_0","progres_picture.Timer_0"],["Timer_1","progres_picture.Timer_1"],["Timer_2","progres_picture.Timer_2"],["Timer_3","progres_picture.Timer_3"],["Timer_4","progres_picture.Timer_4"],["Water_level_0","progres_picture.Water_level_0"],["Water_level_1","progres_picture.Water_level_1"],["Water_level_2","progres_picture.Water_level_2"],["Water_level_3","progres_picture.Water_level_3"],["YES","informatio_picture.YES"],["NO","informatio_picture.NO"]],builtinimg_extern:[["HEART","matrix32x12.Matrix.HEART"],["HEART_SMALL","matrix32x12.Matrix.HEART_SMALL"],["HAPPY","matrix32x12.Matrix.HAPPY"],["SAD","matrix32x12.Matrix.SAD"],["SMILE","matrix32x12.Matrix.SMILE"],["SILLY","matrix32x12.Matrix.SILLY"],["FABULOUS","matrix32x12.Matrix.FABULOUS"],["SURPRISED","matrix32x12.Matrix.SURPRISED"],["ASLEEP","matrix32x12.Matrix.ASLEEP"],["ANGRY","matrix32x12.Matrix.ANGRY"],["CONFUSED","matrix32x12.Matrix.CONFUSED"],["NO","matrix32x12.Matrix.NO"],["YES","matrix32x12.Matrix.YES"],["LEFT_ARROW","matrix32x12.Matrix.LEFT_ARROW"],["RIGHT_ARROW","matrix32x12.Matrix.RIGHT_ARROW"],["DRESS","matrix32x12.Matrix.DRESS"],["TRANSFORMERS","matrix32x12.Matrix.TRANSFORMERS"],["SCISSORS","matrix32x12.Matrix.SCISSORS"],["EXIT","matrix32x12.Matrix.EXIT"],["TREE","matrix32x12.Matrix.TREE"],["PACMAN","matrix32x12.Matrix.PACMAN"],["TARGET","matrix32x12.Matrix.TARGET"],["TSHIRT","matrix32x12.Matrix.TSHIRT"],["ROLLERSKATE","matrix32x12.Matrix.ROLLERSKATE"],["DUCK","matrix32x12.Matrix.DUCK"],["HOUSE","matrix32x12.Matrix.HOUSE"],["TORTOISE","matrix32x12.Matrix.TORTOISE"],["BUTTERFLY","matrix32x12.Matrix.BUTTERFLY"],["STICKFIGURE","matrix32x12.Matrix.STICKFIGURE"],["GHOST","matrix32x12.Matrix.GHOST"],["PITCHFORK","matrix32x12.Matrix.PITCHFORK"],["onboard_music_QUAVERS","matrix32x12.Matrix.onboard_music_QUAVERS"],["onboard_music_QUAVER","matrix32x12.Matrix.onboard_music_QUAVER"],["onboard_music_CROTCHET","matrix32x12.Matrix.onboard_music_CROTCHET"],["COW","matrix32x12.Matrix.COW"],["RABBIT","matrix32x12.Matrix.RABBIT"],["SQUARE_SMALL","matrix32x12.Matrix.SQUARE_SMALL"],["SQUARE","matrix32x12.Matrix.SQUARE"],["DIAMOND_SMALL","matrix32x12.Matrix.DIAMOND_SMALL"],["DIAMOND","matrix32x12.Matrix.DIAMOND"],["CHESSBOARD","matrix32x12.Matrix.CHESSBOARD"],["TRIANGLE_LEFT","matrix32x12.Matrix.TRIANGLE_LEFT"],["TRIANGLE","matrix32x12.Matrix.TRIANGLE"],["SNAKE","matrix32x12.Matrix.SNAKE"],["UMBRELLA","matrix32x12.Matrix.UMBRELLA"],["SKULL","matrix32x12.Matrix.SKULL"],["GIRAFFE","matrix32x12.Matrix.GIRAFFE"],["SWORD","matrix32x12.Matrix.SWORD"]],imglist:[["ALL_CLOCKS","matrix.Image.ALL_CLOCKS"],["ALL_ARROWS","matrix.Image.ALL_ARROWS"]],playlist:[["DADADADUM","onboard_music.DADADADUM"],["ENTERTAINER","onboard_music.ENTERTAINER"],["PRELUDE","onboard_music.PRELUDE"],["ODE","onboard_music.ODE"],["NYAN","onboard_music.NYAN"],["RINGTONE","onboard_music.RINGTONE"],["FUNK","onboard_music.FUNK"],["BLUES","onboard_music.BLUES"],["BIRTHDAY","onboard_music.BIRTHDAY"],["WEDDING","onboard_music.WEDDING"],["FUNERAL","onboard_music.FUNERAL"],["PUNCHLINE","onboard_music.PUNCHLINE"],["PYTHON","onboard_music.PYTHON"],["BADDY","onboard_music.BADDY"],["CHASE","onboard_music.CHASE"],["BA_DING","onboard_music.BA_DING"],["WAWAWAWAA","onboard_music.WAWAWAWAA"],["JUMP_UP","onboard_music.JUMP_UP"],["JUMP_DOWN","onboard_music.JUMP_DOWN"],["POWER_UP","onboard_music.POWER_UP"],["POWER_DOWN","onboard_music.POWER_DOWN"]],playlist_extern:[["DADADADUM","DADADADUM"],["ENTERTAINER","ENTERTAINER"],["PRELUDE","PRELUDE"],["ODE","ODE"],["NYAN","NYAN"],["RINGTONE","RINGTONE"],["FUNK","FUNK"],["BLUES","BLUES"],["BIRTHDAY","BIRTHDAY"],["WEDDING","WEDDING"],["FUNERAL","FUNERAL"],["PUNCHLINE","PUNCHLINE"],["PYTHON","PYTHON"],["BADDY","BADDY"],["CHASE","CHASE"],["BA_DING","BA_DING"],["WAWAWAWAA","WAWAWAWAA"],["JUMP_UP","JUMP_UP"],["JUMP_DOWN","JUMP_DOWN"],["POWER_UP","POWER_UP"],["POWER_DOWN","POWER_DOWN"]],tone_notes:[["NOTE_C3","131"],["NOTE_D3","147"],["NOTE_E3","165"],["NOTE_F3","175"],["NOTE_G3","196"],["NOTE_A3","220"],["NOTE_B3","247"],["NOTE_C4","262"],["NOTE_D4","294"],["NOTE_E4","330"],["NOTE_F4","349"],["NOTE_G4","392"],["NOTE_A4","440"],["NOTE_B4","494"],["NOTE_C5","523"],["NOTE_D5","587"],["NOTE_E5","659"],["NOTE_F5","698"],["NOTE_G5","784"],["NOTE_A5","880"],["NOTE_B5","988"]],serial_pin:[["pin0","0"],["pin1","1"],["pin2","2"],["pin8","8"],["pin12","12"],["pin13","13"],["pin14","14"],["pin15","15"],["pin16","16"]],radio_power:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"]],radio_datarate:[["1Mbit","RATE_1MBIT"],["250Kbit","RATE_250KBIT"],["2Mbit","RATE_2MBIT"]],one_more:[["ONE_SHOT","ONE_SHOT"],["PERIODIC","PERIODIC"]],digital_dot:[["0","0"],["1","1"],["2","2"]]},rH["ESP32C5 Generic"]={description:"MicroPython[ESP32C5 Generic]",digital_pin:ce.Profile.generate(["0-14","23-28"]),input_pin:ce.Profile.generate(["0-14","23-28"]),output_pin:ce.Profile.generate(["0-14","23-28"]),pwm_input:ce.Profile.generate(["0-14","23-28"],"pwm","pwm"),analog_input:ce.Profile.generate(["1-6"],"adc","adc"),pwm_output:ce.Profile.generate(["0-14","23-28"],"pwm","pwm"),analog_output:ce.Profile.generate(["1-6"],"adc","adc"),espnow_channel:ce.Profile.generate(["1-13"]),haskylens_model:ce.Profile.generate(["0-4"]),digital:ce.Profile.generate(["0-14","23-28"],"pin","pin"),pwm_pin:ce.Profile.generate(["0-14","23-28"]),pwm:ce.Profile.generate(["0-14","23-28"],"pwm","pwm"),analog_pin:ce.Profile.generate(["1-6"]),analog:ce.Profile.generate(["1-6"],"adc","adc"),touch:ce.Profile.generate(["1-14"],"tc","tc"),touch_pin:ce.Profile.generate(["1-14"]),button:[["B1","B1key"],["B2","B2key"],["A1","A1key"],["A2","A2key"],["A3","A3key"],["A4","A4key"]],buttonB:[["B1","B1key"],["B2","B2key"]],axis:ce.Profile.generate(["0-4"]),exlcdh:ce.Profile.generate(["0-15"]),exlcdv:ce.Profile.generate(["0-7"]),brightness:ce.Profile.generate(["0-9"]),tts_voice:ce.Profile.generate(["0-16"]),tts_builtin_music:ce.Profile.generate(["0-47"]),tts_bgmusic:ce.Profile.generate(["0-15"]),builtinimg:rH["元控自立(SOWL)"].builtinimg,builtinimg_extern:[["HEART","matrix32x12.Matrix.HEART"],["HEART_SMALL","matrix32x12.Matrix.HEART_SMALL"],["HAPPY","matrix32x12.Matrix.HAPPY"],["SAD","matrix32x12.Matrix.SAD"],["SMILE","matrix32x12.Matrix.SMILE"],["SILLY","matrix32x12.Matrix.SILLY"],["FABULOUS","matrix32x12.Matrix.FABULOUS"],["SURPRISED","matrix32x12.Matrix.SURPRISED"],["ASLEEP","matrix32x12.Matrix.ASLEEP"],["ANGRY","matrix32x12.Matrix.ANGRY"],["CONFUSED","matrix32x12.Matrix.CONFUSED"],["NO","matrix32x12.Matrix.NO"],["YES","matrix32x12.Matrix.YES"],["LEFT_ARROW","matrix32x12.Matrix.LEFT_ARROW"],["RIGHT_ARROW","matrix32x12.Matrix.RIGHT_ARROW"],["DRESS","matrix32x12.Matrix.DRESS"],["TRANSFORMERS","matrix32x12.Matrix.TRANSFORMERS"],["SCISSORS","matrix32x12.Matrix.SCISSORS"],["EXIT","matrix32x12.Matrix.EXIT"],["TREE","matrix32x12.Matrix.TREE"],["PACMAN","matrix32x12.Matrix.PACMAN"],["TARGET","matrix32x12.Matrix.TARGET"],["TSHIRT","matrix32x12.Matrix.TSHIRT"],["ROLLERSKATE","matrix32x12.Matrix.ROLLERSKATE"],["DUCK","matrix32x12.Matrix.DUCK"],["HOUSE","matrix32x12.Matrix.HOUSE"],["TORTOISE","matrix32x12.Matrix.TORTOISE"],["BUTTERFLY","matrix32x12.Matrix.BUTTERFLY"],["STICKFIGURE","matrix32x12.Matrix.STICKFIGURE"],["GHOST","matrix32x12.Matrix.GHOST"],["PITCHFORK","matrix32x12.Matrix.PITCHFORK"],["onboard_music_QUAVERS","matrix32x12.Matrix.onboard_music_QUAVERS"],["onboard_music_QUAVER","matrix32x12.Matrix.onboard_music_QUAVER"],["onboard_music_CROTCHET","matrix32x12.Matrix.onboard_music_CROTCHET"],["COW","matrix32x12.Matrix.COW"],["RABBIT","matrix32x12.Matrix.RABBIT"],["SQUARE_SMALL","matrix32x12.Matrix.SQUARE_SMALL"],["SQUARE","matrix32x12.Matrix.SQUARE"],["DIAMOND_SMALL","matrix32x12.Matrix.DIAMOND_SMALL"],["DIAMOND","matrix32x12.Matrix.DIAMOND"],["CHESSBOARD","matrix32x12.Matrix.CHESSBOARD"],["TRIANGLE_LEFT","matrix32x12.Matrix.TRIANGLE_LEFT"],["TRIANGLE","matrix32x12.Matrix.TRIANGLE"],["SNAKE","matrix32x12.Matrix.SNAKE"],["UMBRELLA","matrix32x12.Matrix.UMBRELLA"],["SKULL","matrix32x12.Matrix.SKULL"],["GIRAFFE","matrix32x12.Matrix.GIRAFFE"],["SWORD","matrix32x12.Matrix.SWORD"]],imglist:[["ALL_CLOCKS","matrix.Image.ALL_CLOCKS"],["ALL_ARROWS","matrix.Image.ALL_ARROWS"]],playlist:[["DADADADUM",".DADADADUM"],["ENTERTAINER",".ENTERTAINER"],["PRELUDE",".PRELUDE"],["ODE",".ODE"],["NYAN",".NYAN"],["RINGTONE",".RINGTONE"],["FUNK",".FUNK"],["BLUES",".BLUES"],["BIRTHDAY",".BIRTHDAY"],["WEDDING",".WEDDING"],["FUNERAL",".FUNERAL"],["PUNCHLINE",".PUNCHLINE"],["PYTHON",".PYTHON"],["BADDY",".BADDY"],["CHASE",".CHASE"],["BA_DING",".BA_DING"],["WAWAWAWAA",".WAWAWAWAA"],["JUMP_UP",".JUMP_UP"],["JUMP_DOWN",".JUMP_DOWN"],["POWER_UP",".POWER_UP"],["POWER_DOWN",".POWER_DOWN"]],playlist_extern:[["DADADADUM","DADADADUM"],["ENTERTAINER","ENTERTAINER"],["PRELUDE","PRELUDE"],["ODE","ODE"],["NYAN","NYAN"],["RINGTONE","RINGTONE"],["FUNK","FUNK"],["BLUES","BLUES"],["BIRTHDAY","BIRTHDAY"],["WEDDING","WEDDING"],["FUNERAL","FUNERAL"],["PUNCHLINE","PUNCHLINE"],["PYTHON","PYTHON"],["BADDY","BADDY"],["CHASE","CHASE"],["BA_DING","BA_DING"],["WAWAWAWAA","WAWAWAWAA"],["JUMP_UP","JUMP_UP"],["JUMP_DOWN","JUMP_DOWN"],["POWER_UP","POWER_UP"],["POWER_DOWN","POWER_DOWN"]],tone_notes:[["NOTE_C3","131"],["NOTE_D3","147"],["NOTE_E3","165"],["NOTE_F3","175"],["NOTE_G3","196"],["NOTE_A3","220"],["NOTE_B3","247"],["NOTE_C4","262"],["NOTE_D4","294"],["NOTE_E4","330"],["NOTE_F4","349"],["NOTE_G4","392"],["NOTE_A4","440"],["NOTE_B4","494"],["NOTE_C5","523"],["NOTE_D5","587"],["NOTE_E5","659"],["NOTE_F5","698"],["NOTE_G5","784"],["NOTE_A5","880"],["NOTE_B5","988"]],serial_pin:[["pin0","0"],["pin1","1"],["pin2","2"],["pin8","8"],["pin12","12"],["pin13","13"],["pin14","14"],["pin15","15"],["pin16","16"]],radio_power:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"]],radio_datarate:[["1Mbit","RATE_1MBIT"],["250Kbit","RATE_250KBIT"],["2Mbit","RATE_2MBIT"]],one_more:[["ONE_SHOT","ONE_SHOT"],["PERIODIC","PERIODIC"]],digital_dot:[["0","0"],["1","1"],["2","2"]]};const lH=rH,dH=20,IH={init:function(){this.setColour(dH),this.appendDummyInput("").appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_HIGH,"HIGH"],[Re.Msg.MIXLY_LOW,"LOW"]]),"BOOL"),this.setOutput(!0,Boolean),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_HIGHLOW_TOOLTIP)}},TH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_Digital_PINMODEOUT).setCheck(Number),this.appendValueInput("STAT").appendField(Re.Msg.MIXLY_STAT).setCheck([Number,Boolean]),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_DIGITAL_WRITE_TOOLTIP)}},MH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Re.Msg.MIXLY_Digital_PINMODEIN).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_MACHINE_VALUE),this.setInputsInline(!0),this.setOutput(!0,[Boolean,Number]),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_DIGITAL_READ_TOOLTIP)}},hH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField("DAC"+Re.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendValueInput("NUM",Number).appendField(Re.Msg.MIXLY_VALUE2).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_TOOLTIP)}},mH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendDummyInput().appendField(Re.Msg.MIXLY_MICROBIT_JS_PERIOD_MIL).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_mSecond,"period"],[Re.Msg.MIXLY_uSecond,"period_microseconds"]]),"key"),this.appendValueInput("NUM",Number).appendField(Re.Msg.MIXLY_STAT).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_SET_TOOLTIP)}},EH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_Analog_PINMODEIN).setCheck(Number),this.appendDummyInput("").appendField(Re.Msg.MIXLY_ESP32_REF_VOLTAGE+Re.Msg.MIXLY_STAT).appendField(new Re.FieldDropdown([["3.3V","machine.ADC.ATTN_11DB"],["2.2V","machine.ADC.ATTN_6DB"],["1.5V","machine.ADC.ATTN_2_5DB"],["1.2V","machine.ADC.ATTN_0DB"]]),"atten"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_ANALOG_ATTEN_TOOLTIP)}},OH={init:function(){this.setColour(dH),this.appendValueInput("pin").appendField(Re.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Re.Msg.MIXLY_ESP32_TOUCH_SENSOR),this.appendDummyInput().appendField(Re.Msg.MIXLY_ESP32_MACHINE_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_PIN_PRESSED_TOOLTIP)}},RH={init:function(){this.setColour(20),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_ATTACHINTERRUPT_PIN).setCheck(Number),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MODE).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_RISING,"machine.Pin.IRQ_RISING"],[Re.Msg.MIXLY_FALLING,"machine.Pin.IRQ_FALLING"],[Re.Msg.MIXLY_CHANGE,"(machine.Pin.IRQ_RISING | machine.Pin.IRQ_FALLING)"]]),"mode"),this.appendValueInput("DO").appendField(Re.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_PIN_ATTACHINTERRUPT_TOOLTIP)}},cH={init:function(){this.setColour(20),this.appendDummyInput().appendField(Re.Msg.MIXLY_SETUP).appendField(new Re.FieldTextInput("pin#"),"PIN_OBJ"),this.appendDummyInput("").appendField(Re.Msg.MIXLY_MICROPYTHON_AS).appendField(new Re.FieldDropdown([[Re.Msg.MIXLY_Digital_PINMODEOUT,"machine.Pin.OUT"],[Re.Msg.MIXLY_Digital_PINMODEIN,"machine.Pin.IN"],[Re.Msg.MIXLY_PINMODEPULLUP,"machine.Pin.IN, machine.Pin.PULL_UP"],[Re.Msg.MIXLY_PINMODEPULLDOWN,"machine.Pin.IN, machine.Pin.PULL_DOWN"]]),"MODE"),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_DIGITAL_INIT_TOOLTIP)},getVars:function(){return["pin#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(t,"PIN_OBJ")}},gH={init:function(){this.setColour(dH),this.appendDummyInput("").appendField(Re.Msg.MIXLY_SETUP).appendField(new Re.FieldTextInput("dac#"),"PIN_OBJ").appendField(Re.Msg.MIXLY_MICROPYTHON_AS),this.appendDummyInput("").appendField("DAC"+Re.Msg.MIXLY_Analog_PINMODEOUT),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_INIT_TOOLTIP)},getVars:function(){return["dac#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(t,"PIN_OBJ")}},CH={init:function(){this.setColour(dH),this.appendDummyInput("").appendField(Re.Msg.MIXLY_SETUP).appendField(new Re.FieldTextInput("tc#"),"PIN_OBJ").appendField(Re.Msg.MIXLY_MICROPYTHON_AS),this.appendDummyInput("").appendField(Re.Msg.MIXLY_ESP32_TOUCH_SENSOR),this.appendValueInput("PIN",Number).appendField(Re.Msg.MIXLY_PIN).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_PIN_PRESSED_INIT_TOOLTIP)},getVars:function(){return["tc#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(e,t){Re.Names.equals(e,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(t,"PIN_OBJ")}},SH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField("PWM"+Re.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendValueInput("NUM",Number).appendField(Re.Msg.MIXLY_FREQUENCY+Re.Msg.MIXLY_STAT).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Re.Msg.MIXLY_ESP32_INOUT_PWM_ANALOG_WRITE_SET_FREQ_TOOLTIP)}},AH=cH,LH=CH,NH=OH,DH=RH,fH=230,FH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.digital),"PIN"),this.setOutput(!0)}},PH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.digital_pin),"PIN"),this.setOutput(!0,Number)}},YH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.input_pin),"PIN"),this.setOutput(!0,Number)}},vH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.output_pin),"PIN"),this.setOutput(!0,Number)}},XH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.espnow_channel),"PIN"),this.setOutput(!0,Number)}},yH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.haskylens_model),"PIN"),this.setOutput(!0,Number)}},bH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.pwm_input),"PIN"),this.setOutput(!0)}},xH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.analog_input),"PIN"),this.setOutput(!0)}},VH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.pwm_output),"PIN"),this.setOutput(!0)}},BH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.analog_output),"PIN"),this.setOutput(!0)}},GH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.i2c_A_pin),"PIN"),this.setOutput(!0,Number)}},UH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.i2c_B_pin),"PIN"),this.setOutput(!0,Number)}},wH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.spi_A_pin),"PIN"),this.setOutput(!0,Number)}},HH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.spi_B_pin),"PIN"),this.setOutput(!0,Number)}},kH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.spi_C_pin),"PIN"),this.setOutput(!0,Number)}},WH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.spi_D_pin),"PIN"),this.setOutput(!0,Number)}},KH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.analog),"PIN"),this.setOutput(!0)}},JH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.analog_pin),"PIN"),this.setOutput(!0,Number)}},QH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.dac),"PIN"),this.setOutput(!0)}},zH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.dac_pin),"PIN"),this.setOutput(!0,Number)}},qH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.button),"PIN"),this.setOutput(!0,Number)}},jH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.buttonB),"PIN"),this.setOutput(!0,Number)}},$H={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.pwm),"PIN"),this.setOutput(!0)}},ZH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.pwm_pin),"PIN"),this.setOutput(!0,Number)}},ek={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.touch_pin),"PIN"),this.setOutput(!0,Number)}},tk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.touch),"PIN"),this.setOutput(!0)}},ik={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.serial_pin),"PIN"),this.setOutput(!0,Number)}},nk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.builtinimg),"PIN"),this.setOutput(!0,"esp32_image")}},sk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.builtinimg_extern),"PIN"),this.setOutput(!0,"esp32_image")}},_k={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.imglist),"PIN"),this.setOutput(!0)}},ok={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.playlist),"PIN"),this.setOutput(!0)}},pk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.playlist_extern),"PIN"),this.setOutput(!0)}},ak={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.exlcdh),"PIN"),this.setOutput(!0,Number)}},uk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.exlcdv),"PIN"),this.setOutput(!0,Number)}},rk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.axis),"PIN"),this.setOutput(!0,Number)}},lk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.brightness),"PIN"),this.setOutput(!0,Number)}},dk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.tts_voice),"PIN"),this.setOutput(!0,Number)}},Ik={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.tts_builtin_music),"PIN"),this.setOutput(!0,Number)}},Tk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.tts_bgmusic),"PIN"),this.setOutput(!0,Number)}},Mk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.tone_notes),"PIN"),this.setOutput(!0,Number)}},hk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.radio_power),"PIN"),this.setOutput(!0,Number)}},mk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.radio_datarate),"PIN"),this.setOutput(!0,Number)}},Ek={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.one_more),"PIN"),this.setOutput(!0)}},Ok={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown(ce.Profile.default.digital_dot),"PIN"),this.setOutput(!0,Number)}},Rk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new Re.FieldDropdown([["0","0"],["1","1"],["2","2"],["3","3"]]),"PIN"),this.setOutput(!0,Number)}},ck=function(e,t){return["HIGH"==this.getFieldValue("BOOL")?"1":"0",t.ORDER_ATOMIC]},gk=function(e,t){t.definitions_.import_machine="import machine";var i="";return i+=t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".value("+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"},Ck=function(e,t){t.definitions_.import_machine="import machine";return[t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".value()",t.ORDER_ATOMIC]},Sk=function(e,t){return t.definitions_.import_machine="import machine",t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".write("+t.valueToCode(this,"NUM",t.ORDER_ATOMIC)+")\n"},Ak=function(e,t){t.definitions_.import_machine="import machine";var i=t.valueToCode(this,"PIN",t.ORDER_ATOMIC),n=t.valueToCode(this,"NUM",t.ORDER_ATOMIC);return i+".set_analog_"+this.getFieldValue("key")+"("+n+")\n"},Lk=function(e,t){return t.definitions_.import_machine="import machine",[t.valueToCode(this,"pin",t.ORDER_ATOMIC)+".read()",t.ORDER_ATOMIC]},Nk=function(e,t){t.definitions_.import_machine="import machine";var i=t.valueToCode(this,"PIN",t.ORDER_ATOMIC),n=this.getFieldValue("mode");return"machine.Pin("+i+").irq(handler = "+t.valueToCode(this,"DO",t.ORDER_ATOMIC)+", trigger = "+n+")\n"},Dk=function(e,t){t.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"pin#",n=t.valueToCode(this,"PIN",t.ORDER_ATOMIC),s=this.getFieldValue("MODE");return("pin#"==i?"pin"+n:t.variableDB_.getName(i,Re.Variables.NAME_TYPE))+" = machine.Pin("+n+", "+s+")\n"},fk=function(e,t){t.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"dac#",n=t.valueToCode(this,"PIN",t.ORDER_ATOMIC);return("dac#"==i?"dac"+n:t.variableDB_.getName(i,Re.Variables.NAME_TYPE))+" = machine.DAC(machine.Pin("+n+"))\n"},Fk=function(e,t){return t.definitions_.import_machine="import machine",t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".atten("+this.getFieldValue("atten")+")\n"},Pk=function(e,t){t.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"tc#",n=t.valueToCode(this,"PIN",t.ORDER_ATOMIC);return("tc#"==i?"tc"+n:t.variableDB_.getName(i,Re.Variables.NAME_TYPE))+" = machine.TouchPad(machine.Pin("+n+"))\n"},Yk=function(e,t){return[this.getFieldValue("PIN"),t.ORDER_ATOMIC]},vk=Yk,Xk=Yk,yk=Yk,bk=Yk,xk=Yk,Vk=Yk,Bk=Yk,Gk=Yk,Uk=Yk,wk=Yk,Hk=Yk,kk=Yk,Wk=Yk,Kk=Yk,Jk=Yk,Qk=Yk,zk=Yk,qk=Yk,jk=Yk,$k=Yk,Zk=Yk,eW=Yk,tW=Yk,iW=Yk,nW=Yk,sW=Yk,_W=Yk,oW=Yk,pW=Yk,aW=Yk,uW=Yk,rW=Yk,lW=Yk,dW=Yk,IW=Yk,TW=Yk,MW=Yk,hW=Yk,mW=Yk,EW=Yk,OW=Yk,RW=Yk,cW=Yk,gW=Yk,CW=function(e,t){const i=this.getFieldValue("PIN").split(".");if(2!==i.length)throw Error("pin value error");return t.definitions_[`import_${i[0]}_${i[1]}`]=`from ${i[0]} import ${i[1]}`,[i[1],t.ORDER_ATOMIC]};Object.assign(Re.Variables,Ce),Object.assign(Re.Procedures,Bu),Object.assign(Re.Lang.ZhHans,Ie),Object.assign(Re.Lang.ZhHant,Te),Object.assign(Re.Lang.En,Me),Re.Python=Gu,Re.generator=Gu,ce.Profile.default={},Object.assign(ce.Profile,lH),Object.assign(ce.Profile.default,lH["元控自立(SOWL)"]),Object.assign(Re.Blocks,t,i,n,s,_,o,p,a,u,r,l,d,I,x,W,k,v,V,K,f,P,H,w,U,B,F,D,N,y,X,b,Y,G,he,me),Object.assign(Re.Python.forBlock,T,M,h,m,E,O,R,c,g,C,S,A,L,ne,le,re,Z,se,de,z,q,ue,ae,pe,_e,j,Q,J,te,ee,ie,$,oe,Ee,Oe)})();