(()=>{"use strict";var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{controls_type:()=>Pt,controls_typeLists:()=>vt,lists_zip:()=>Yt,lists_zip_container:()=>Xt,lists_zip_item:()=>yt,unpack_iterable_object:()=>bt,variables_change:()=>ft,variables_get:()=>Nt,variables_global:()=>Ft,variables_set:()=>Dt});var i={};t.r(i),t.d(i,{base_setup:()=>Bt,controls_delay:()=>Gt,controls_end_program:()=>Ut,controls_except:()=>te,controls_finally:()=>ee,controls_flow_statements:()=>Jt,controls_for:()=>qt,controls_forEach:()=>Ht,controls_for_range:()=>Qt,controls_if:()=>wt,controls_if_else:()=>$t,controls_if_elseif:()=>jt,controls_if_if:()=>zt,controls_lambda:()=>ne,controls_main:()=>Vt,controls_pass:()=>se,controls_range:()=>kt,controls_repeat_ext:()=>ie,controls_thread:()=>_e,controls_try:()=>Zt,controls_try_finally:()=>Kt,controls_whileUntil:()=>Wt,datetime_fromtimestamp:()=>le,do_while:()=>oe,garbage_collection:()=>pe,gene_unique_identifier:()=>de,get_mem_alloc:()=>ae,get_mem_free:()=>ue,get_unique_identifier:()=>re});var n={};t.r(n),t.d(n,{base_map:()=>Ye,generate_cartesian_product:()=>ye,math_arithmetic:()=>me,math_bit:()=>Oe,math_constant:()=>Me,math_constant_mp:()=>he,math_constrain:()=>Le,math_dec:()=>ce,math_degree_to_radian:()=>xe,math_indexer_number:()=>De,math_map:()=>Ne,math_max_min:()=>Ce,math_number:()=>Te,math_number_base_conversion:()=>Se,math_radian_to_degree:()=>be,math_random:()=>Ae,math_random_seed:()=>fe,math_round:()=>Fe,math_selfcalcu:()=>Ee,math_to_int:()=>ge,math_trig:()=>Re,text_to_number:()=>Pe,text_to_number_skulpt:()=>ve,turn_to_int:()=>Xe});var s={};t.r(s),t.d(s,{ascii_to_char:()=>He,char_to_ascii:()=>We,number_to_text:()=>Ke,os_system:()=>mi,text:()=>Be,text_bytes:()=>Ue,text_capital:()=>ei,text_center:()=>ii,text_char:()=>we,text_char_at:()=>Qe,text_char_at2:()=>qe,text_char_at3:()=>Ii,text_compareTo:()=>di,text_compare_to:()=>ti,text_create_with_container:()=>ui,text_create_with_item:()=>ri,text_encode:()=>Mi,text_equals_starts_ends:()=>Ze,text_eval:()=>hi,text_find:()=>ni,text_format:()=>ai,text_format_noreturn:()=>Ti,text_join:()=>ke,text_join_seq:()=>si,text_length:()=>Je,text_random_char:()=>ze,text_replace:()=>_i,text_split:()=>oi,text_strip:()=>pi,text_substring:()=>$e,text_substring2:()=>je,text_substring3:()=>li,text_textarea:()=>Ge});var _={};t.r(_),t.d(_,{ENUMERATE:()=>Zi,content_in_lists:()=>en,enumerate:()=>tn,list_many_input:()=>Gi,list_tolist:()=>Hi,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:()=>Yi,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:()=>ki,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:()=>zi,lists_pop:()=>yi,lists_remove_at:()=>Xi,lists_remove_at2:()=>ji,lists_reverse:()=>vi,lists_setIndex3:()=>Qi,lists_set_index:()=>Ni,lists_sort:()=>Vi});var o={};t.r(o),t.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={};t.r(p),t.d(p,{logic_boolean:()=>vn,logic_compare:()=>Dn,logic_compare_continous:()=>fn,logic_is:()=>bn,logic_is_in:()=>yn,logic_negate:()=>Pn,logic_null:()=>Yn,logic_operation:()=>Fn,logic_tobool:()=>xn,logic_true_or_false:()=>Xn});var a={};t.r(a),t.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:()=>zn,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:()=>Hn,storage_get_contents_without_para:()=>kn,storage_get_current_dir:()=>ts,storage_get_file_size:()=>jn,storage_get_filename:()=>Jn,storage_is_file:()=>ss,storage_list_all_files:()=>Qn,storage_make_dir:()=>es,storage_open_file_with_os:()=>Vn,storage_rename:()=>is});var u={};t.r(u),t.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={};t.r(r),t.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:()=>vs,tuple_get_sublist:()=>Ps,tuple_input:()=>Xs,tuple_join:()=>Ss,tuple_length:()=>gs,tuple_max:()=>As,tuple_totuple:()=>Ys,tuple_trig:()=>Ds});var l={};t.r(l),t.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:()=>ks,set_operate_update:()=>Hs,set_pop:()=>Us,set_sub:()=>Ks,set_toset:()=>Qs,set_update:()=>Js});var d={};t.r(d),t.d(d,{html_content:()=>t_,html_content_more:()=>e_,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={};t.r(I),t.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={};t.r(T),t.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={};t.r(M),t.d(M,{Panic_with_status_code:()=>V_,base_setup:()=>F_,controls_delay:()=>x_,controls_flow_statements:()=>b_,controls_for:()=>Y_,controls_forEach:()=>k_,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:()=>H_,controls_repeat:()=>eo,controls_repeat_ext:()=>z_,controls_thread:()=>q_,controls_try_finally:()=>v_,controls_whileUntil:()=>y_,datetime_fromtimestamp:()=>io,do_while:()=>Q_,garbage_collection:()=>j_,gene_unique_identifier:()=>no,get_mem_alloc:()=>$_,get_mem_free:()=>Z_,get_unique_identifier:()=>to,reset:()=>G_,time_sleep:()=>K_});var h={};t.r(h),t.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={};t.r(m),t.d(m,{ascii_to_char:()=>yo,char_to_ascii:()=>bo,number_to_text:()=>xo,os_system:()=>op,text:()=>Fo,text_bytes:()=>vo,text_capital:()=>Ko,text_center:()=>Jo,text_char:()=>Yo,text_char_at:()=>Go,text_char_at2:()=>Bo,text_char_at3:()=>np,text_compareTo:()=>ip,text_compare_to:()=>ko,text_encode:()=>sp,text_equals_starts_ends:()=>wo,text_eval:()=>_p,text_find:()=>qo,text_format:()=>Zo,text_format_noreturn:()=>tp,text_join:()=>Xo,text_join_seq:()=>Qo,text_length:()=>Vo,text_random_char:()=>Uo,text_replace:()=>zo,text_split:()=>jo,text_strip:()=>$o,text_substring:()=>Wo,text_substring2:()=>Ho,text_substring3:()=>ep,text_textarea:()=>Po});var E={};t.r(E),t.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:()=>vp,lists_getSublist3:()=>Yp,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={};t.r(O),t.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:()=>kp,dicts_get_default:()=>Hp,dicts_items:()=>Qp,dicts_keys:()=>wp,dicts_length:()=>jp,dicts_pop:()=>ta,dicts_setdefault:()=>ea,dicts_to_json:()=>sa,dicts_to_json2:()=>pa,dicts_to_to:()=>oa,dicts_todict:()=>na,dicts_update:()=>Jp,dicts_values:()=>zp,json_to_dicts:()=>_a});var R={};t.r(R),t.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={};t.r(c),t.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:()=>Ya,storage_file_tell:()=>va,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={};t.r(g),t.d(g,{procedures_callnoreturn:()=>Ha,procedures_callreturn:()=>ka,procedures_defnoreturn:()=>wa,procedures_defreturn:()=>Ua,procedures_ifreturn:()=>Wa,procedures_return:()=>Ka});var C={};t.r(C),t.d(C,{tuple_change_to:()=>eu,tuple_create_llm_params:()=>ru,tuple_create_with:()=>Ja,tuple_create_with_noreturn:()=>_u,tuple_create_with_text2:()=>qa,tuple_create_with_text_return:()=>Qa,tuple_del:()=>$a,tuple_find:()=>iu,tuple_getIndex:()=>za,tuple_getSublist:()=>su,tuple_get_random_item:()=>pu,tuple_get_sublist:()=>ou,tuple_input:()=>uu,tuple_join:()=>Za,tuple_length:()=>ja,tuple_max:()=>tu,tuple_totuple:()=>au,tuple_trig:()=>nu});var S={};t.r(S),t.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={};t.r(A),t.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={};t.r(L),t.d(L,{attribute_access:()=>xu,function_call:()=>bu,raw_block:()=>Pu,raw_empty:()=>Yu,raw_expression:()=>vu,raw_table:()=>Xu,type_check:()=>yu});var N={};t.r(N),t.d(N,{PIN_init:()=>Hr,actuator_extern_get_led_bright:()=>Zu,actuator_extern_get_led_state:()=>tr,actuator_extern_led_bright:()=>$u,actuator_extern_led_brightness:()=>er,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:()=>ku,esp32_music_pitch_init:()=>wu,esp32_music_pitch_with_time:()=>Hu,esp32_music_play_list:()=>Wu,esp32_music_reset_extern:()=>Qu,esp32_music_set_tempo_extern:()=>Ju,esp32_music_stop:()=>zu,esp32_set_music_volume:()=>ju,mixbot_actuator_extern_get_addr:()=>wr,mixbot_actuator_extern_set_addr:()=>kr,mixbot_addr_extern:()=>fr,parrot_PIN_init:()=>qr,parrot_move_speed:()=>Qr,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:()=>Yr,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:()=>vr,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={};t.r(D),t.d(D,{actuator_dc_motor:()=>Dl,actuator_dc_motor_stop:()=>fl,actuator_get_led_bright:()=>tl,actuator_get_led_state:()=>el,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:()=>kl,actuator_mixgo_nova_play_online_audio:()=>Hl,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:()=>Yd,educore_ble_sensor_connected:()=>vd,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:()=>td,generalkey_container:()=>ed,generalkey_create_with_item:()=>id,get_keyboard_light:()=>Xd,get_power_output:()=>ql,ledswitch:()=>$r,mixbot_motor:()=>Yl,mixbot_motor_status:()=>Fl,mixbot_move:()=>Pl,mixbot_stop:()=>vl,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:()=>Ql,set_microphone_amplification:()=>yd,set_music_volume:()=>xd,set_part_power_output:()=>zl,set_power_output:()=>Jl,special_key:()=>$l});var f={};t.r(f),t.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:()=>eI,ai_sensor_color_chases:()=>sI,ai_sensor_color_chases_result:()=>nI,ai_sensor_config:()=>kd,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:()=>zd,ai_sensor_find_qrcodes:()=>wd,ai_sensor_find_rects:()=>tI,ai_sensor_find_tags:()=>qd,ai_sensor_licenseplate:()=>II,ai_sensor_line:()=>Qd,ai_sensor_qrcode:()=>Gd,ai_sensor_qrcode_lite:()=>Ud,ai_sensor_rect:()=>Zd,ai_sensor_rgb:()=>Hd,ai_sensor_tag:()=>Jd,ai_sensor_use_uart_init:()=>Bd,ai_sensor_yolo_recognize:()=>rI,ai_sensor_yolo_recognize_result:()=>lI});var F={};t.r(F),t.d(F,{MICROPYTHON_AI_Speech_asr:()=>cI,MICROPYTHON_AI_Speech_unit:()=>RI,MICROPYTHON_AI_client:()=>OI});var P={};t.r(P),t.d(P,{mpython_blynk_app_data:()=>bI,mpython_blynk_app_notify:()=>fI,mpython_blynk_email:()=>vI,mpython_blynk_get_timers:()=>YI,mpython_blynk_on_connected:()=>LI,mpython_blynk_on_disconnected:()=>AI,mpython_blynk_run:()=>DI,mpython_blynk_sensor_data_to_app:()=>yI,mpython_blynk_set_property:()=>PI,mpython_blynk_setup:()=>xI,mpython_blynk_stop_timers:()=>FI,mpython_blynk_sync_virtual:()=>SI,mpython_blynk_terminal_widget_vpin:()=>CI,mpython_blynktimer:()=>XI,mpython_blynktimer_run:()=>NI});var v={};t.r(v),t.d(v,{cc_g1_init:()=>VI,cc_g1_read_bat:()=>BI,cc_g1_read_joystick:()=>GI,cc_g1_read_key:()=>UI,cc_g1_turnoff:()=>wI});var Y={};t.r(Y),t.d(Y,{ce_go_dc_motor:()=>jI,ce_go_get_led_bright:()=>KI,ce_go_get_led_state:()=>JI,ce_go_hall_attachInterrupt:()=>$I,ce_go_hall_data:()=>tT,ce_go_hall_initialize:()=>ZI,ce_go_led_bright:()=>WI,ce_go_led_brightness:()=>qI,ce_go_light_number:()=>HI,ce_go_pin_light:()=>_T,ce_go_pin_near:()=>iT,ce_go_pin_near_line:()=>eT,ce_go_pin_near_state_change:()=>nT,ce_go_stepper_keep:()=>QI,ce_go_stepper_stop:()=>zI,educore_car:()=>oT,educore_car_pin_near:()=>rT,educore_car_pin_near_line:()=>uT,educore_car_stepper_keep:()=>pT,educore_car_stepper_stop:()=>aT,sensor_mixgome_eulerangles:()=>sT});var X={};t.r(X),t.d(X,{communicate_bluetooth_central_init:()=>KT,communicate_bluetooth_connect:()=>zT,communicate_bluetooth_disconnect:()=>jT,communicate_bluetooth_handle:()=>iM,communicate_bluetooth_is_connected:()=>ZT,communicate_bluetooth_mac:()=>QT,communicate_bluetooth_peripheral_init:()=>JT,communicate_bluetooth_recv:()=>tM,communicate_bluetooth_recv_only:()=>eM,communicate_bluetooth_scan:()=>qT,communicate_bluetooth_send:()=>$T,communicate_espnow_init:()=>nM,communicate_espnow_init_new:()=>sM,communicate_i2c_available:()=>DT,communicate_i2c_init:()=>TT,communicate_i2c_master_read:()=>NT,communicate_i2c_onboard:()=>dT,communicate_i2c_read:()=>MT,communicate_i2c_scan:()=>mT,communicate_i2c_write:()=>hT,communicate_ir_recv_init:()=>bT,communicate_ir_send_init:()=>UT,communicate_ow_init:()=>FT,communicate_ow_read:()=>vT,communicate_ow_reset:()=>yT,communicate_ow_scan:()=>PT,communicate_ow_select:()=>XT,communicate_ow_write:()=>YT,communicate_spi_buffer:()=>RT,communicate_spi_init:()=>ET,communicate_spi_onboard:()=>IT,communicate_spi_read:()=>cT,communicate_spi_read_output:()=>gT,communicate_spi_readinto:()=>CT,communicate_spi_readinto_output:()=>ST,communicate_spi_set:()=>OT,communicate_spi_write:()=>AT,communicate_spi_write_readinto:()=>LT,espnow_radio_channel:()=>rM,espnow_radio_channel_new:()=>dM,espnow_radio_on_off:()=>IM,espnow_radio_rec:()=>MM,espnow_radio_recv:()=>mM,espnow_radio_recv_certain_msg:()=>EM,espnow_radio_recv_certain_msg_new:()=>RM,espnow_radio_recv_msg:()=>hM,espnow_radio_recv_new:()=>OM,espnow_radio_send:()=>TM,espnow_radio_txpower:()=>lM,i2c_available:()=>wM,i2c_init:()=>DM,i2c_master_reader2:()=>UM,i2c_read:()=>fM,i2c_scan:()=>PM,i2c_slave_onreceive:()=>fT,i2c_write:()=>FM,internal_variable:()=>xT,ir_recv_timeout:()=>GT,ir_transmit_busy:()=>WT,ir_transmit_conventional_data:()=>wT,ir_transmit_raw_code:()=>HT,ir_transmit_study_code:()=>kT,ir_whether_recv:()=>BT,lora_init:()=>cM,lora_packet:()=>gM,lora_recv:()=>SM,lora_send:()=>CM,network_espnow_info:()=>oM,network_espnow_mac:()=>_M,network_espnow_recv:()=>pM,network_espnow_recv_handle:()=>uM,network_espnow_send:()=>aM,recv_fun:()=>VT,spi_buffer:()=>XM,spi_init:()=>vM,spi_read:()=>yM,spi_read_output:()=>bM,spi_readinto:()=>xM,spi_readinto_output:()=>VM,spi_set:()=>YM,spi_write:()=>BM,spi_write_readinto:()=>GM,urequests_attribute:()=>LM,urequests_get:()=>AM,urequests_method:()=>NM});var y={};t.r(y),t.d(y,{display_animate:()=>Rh,display_blink_rate:()=>hh,display_circle:()=>ch,display_color_seclet:()=>Yh,display_draw_4strings:()=>rh,display_fill:()=>Oh,display_get_screen_image:()=>Mh,display_help:()=>Ch,display_image_size:()=>lh,display_lcd_use_i2c_init:()=>Bh,display_line:()=>Ih,display_line_arbitrarily:()=>Th,display_matrix_extern_bright_point:()=>ih,display_matrix_extern_bright_screen:()=>sh,display_matrix_extern_clear:()=>_h,display_matrix_extern_get_pixel:()=>eh,display_matrix_extern_get_screen_pixel:()=>nh,display_matrix_extern_image_builtins:()=>oh,display_matrix_extern_scroll_string:()=>zM,display_matrix_extern_scroll_string_delay:()=>jM,display_matrix_extern_shift:()=>th,display_matrix_extern_show_frame_string:()=>$M,display_matrix_extern_show_frame_string_delay:()=>ZM,display_matrix_extern_show_image:()=>qM,display_matrix_extern_show_image_or_string_delay:()=>QM,display_matrix_use_i2c_init:()=>JM,display_oled_drawPixel:()=>Ah,display_oled_showBitmap:()=>Sh,display_oled_use_i2c_init:()=>Hh,display_onoff:()=>Eh,display_rect:()=>dh,display_rgb_color:()=>mh,display_tm1650_power:()=>Nh,display_tm1650_set_brightness:()=>Fh,display_tm1650_show_dot:()=>fh,display_tm1650_show_num:()=>Dh,display_tm_use_i2c_init:()=>Lh,display_triangle:()=>gh,display_use_i2c_init:()=>uh,extern_oled_bright_point:()=>em,extern_oled_clear:()=>im,extern_oled_get_pixel:()=>tm,extern_oled_hvline:()=>sm,extern_oled_line:()=>_m,extern_oled_scroll_string:()=>Qh,extern_oled_scroll_string_delay:()=>zh,extern_oled_shape_rect:()=>nm,extern_oled_shift:()=>Zh,extern_oled_show_frame_string:()=>jh,extern_oled_show_frame_string_delay:()=>$h,extern_oled_show_image:()=>Wh,extern_oled_show_image_or_string_delay:()=>qh,extern_oled_show_image_xy:()=>Kh,extern_oled_show_string:()=>Jh,lcd_backlight:()=>wh,lcd_clear:()=>kh,lcd_print_string:()=>Uh,lcd_show_image_or_string_delay:()=>Gh,matrix_extern_image_arithmetic:()=>ph,matrix_extern_image_invert:()=>ah,tft_fill:()=>xh,tft_line_arbitrarily:()=>Vh,tft_scroll_string_delay:()=>yh,tft_show_frame_string_delay:()=>bh,tft_show_image_or_string_delay:()=>Xh,tft_show_image_xy:()=>vh,tft_use_spi_init:()=>Ph});var b={};t.r(b),t.d(b,{bitbot_display_bitmap_create:()=>Zm,bitbot_display_image_create:()=>$m,display_available:()=>Nm,display_bitmap_create:()=>hm,display_bright_point:()=>Cm,display_bright_screen:()=>Am,display_clear:()=>Lm,display_get_pixel:()=>gm,display_get_screen_pixel:()=>Sm,display_image_builtins:()=>mm,display_image_builtins_all:()=>Em,display_image_create:()=>Mm,display_scroll_string:()=>um,display_scroll_string_delay:()=>rm,display_scroll_way:()=>lm,display_shift:()=>cm,display_show_frame_string:()=>Im,display_show_frame_string_delay:()=>Tm,display_show_image:()=>pm,display_show_image_or_string_delay:()=>am,draw_pointer:()=>hE,image_arithmetic:()=>Om,image_invert:()=>Rm,mixbot_display_bitmap_create:()=>Jm,mixbot_display_bright_screen:()=>zm,mixbot_display_get_ambientbright:()=>Qm,mixbot_display_get_screen_pixel:()=>qm,mixbot_display_image_create:()=>Km,mixbot_display_rotate:()=>jm,mixgo_display_bitmap_create:()=>Ym,mixgo_display_image_create_new:()=>vm,mixgome_display_bitmap_create:()=>fm,mixgome_display_font:()=>Xm,mixgome_display_image_create:()=>Dm,mixgomini_display_bitmap_create:()=>Pm,mixgomini_display_image_create:()=>Fm,mpython_display_hvline:()=>km,mpython_display_line:()=>Hm,mpython_display_shape_rect:()=>wm,mpython_pbm_image:()=>Wm,nova_draw_pointer:()=>mE,onboard_oled_bright_point:()=>Um,onboard_oled_scroll_string_delay:()=>Bm,onboard_oled_show_frame_string_delay:()=>Gm,onboard_oled_show_image:()=>ym,onboard_oled_show_image_or_string_delay:()=>Vm,onboard_oled_show_image_xy:()=>bm,onboard_oled_show_string:()=>xm,onboard_tft_bright_point:()=>aE,onboard_tft_bright_screen:()=>LE,onboard_tft_clear:()=>NE,onboard_tft_clock_clear:()=>TE,onboard_tft_clock_draw:()=>IE,onboard_tft_clock_get_rtctime:()=>lE,onboard_tft_clock_init:()=>rE,onboard_tft_clock_set_time:()=>dE,onboard_tft_display_hvline:()=>_E,onboard_tft_display_line:()=>oE,onboard_tft_display_shape_circle:()=>ME,onboard_tft_display_shape_rect:()=>sE,onboard_tft_fill:()=>uE,onboard_tft_get_pixel:()=>pE,onboard_tft_get_screen_pixel:()=>AE,onboard_tft_scroll_string:()=>gE,onboard_tft_scroll_string_delay:()=>dm,onboard_tft_shift:()=>SE,onboard_tft_show_frame_string:()=>CE,onboard_tft_show_frame_string_delay:()=>nE,onboard_tft_show_image:()=>cE,onboard_tft_show_image_or_string_delay:()=>iE,onboard_tft_show_image_xy:()=>tE,onboard_tft_show_image_xy_direct:()=>eE,onboard_tft_show_qrcode:()=>OE,onboard_tft_show_qrcode_details:()=>RE,onboard_tft_show_texts:()=>EE});var x={};t.r(x),t.d(x,{factory_block:()=>WE,factory_block_return:()=>KE,factory_block_return_with_textarea:()=>qE,factory_block_with_textarea:()=>JE,factory_callMethod_noreturn:()=>kE,factory_callMethod_return:()=>HE,factory_create_with_container:()=>BE,factory_create_with_item:()=>GE,factory_declare:()=>wE,factory_from_import:()=>bE,factory_function_noreturn:()=>VE,factory_function_return:()=>UE,factory_import:()=>xE,folding_block:()=>QE});var V={};t.r(V),t.d(V,{controls_pin_attachInterrupt:()=>mO,inout_analog_atten:()=>_O,inout_analog_read:()=>sO,inout_analog_read_init:()=>lO,inout_analog_write:()=>eO,inout_analog_write_init:()=>rO,inout_analog_write_set:()=>iO,inout_analog_write_set_freq:()=>TO,inout_digital_init:()=>aO,inout_digital_read:()=>ZE,inout_digital_write:()=>$E,inout_highlow:()=>jE,inout_pinMode:()=>IO,inout_pin_attachInterrupt:()=>pO,inout_pin_pressed:()=>oO,inout_pin_pressed_init:()=>dO,inout_pwm_analog_write:()=>tO,inout_pwm_analog_write_init:()=>uO,inout_pwm_analog_write_set_freq:()=>nO,pin_pressed:()=>hO,pin_pressed_init:()=>MO});var B={};t.r(B),t.d(B,{IOT_CONNECT_OLLAMA:()=>eR,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>wO,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>UO,IOT_EMQX_PING:()=>BO,IOT_FORMATTING:()=>xO,IOT_FORMAT_STRING:()=>VO,IOT_MIXIO_NTP:()=>GO,IOT_MIXIO_PUBLISH:()=>fO,IOT_MIXIO_PUBLISHEX:()=>FO,IOT_MIXIO_SUBSCRIBE:()=>PO,iot_checkonenet:()=>$O,iot_client_onboard:()=>HO,iot_connect_ollama:()=>tR,iot_connect_openai:()=>iR,iot_create_with_item:()=>NO,iot_http_client:()=>WO,iot_http_data:()=>KO,iot_mixio_check:()=>XO,iot_mixio_connect:()=>DO,iot_mixio_connect_only:()=>YO,iot_mixio_disconnect:()=>vO,iot_mixio_format_msg:()=>bO,iot_mixio_format_topic:()=>yO,iot_mixly_key:()=>kO,iot_mqtt_client:()=>JO,iot_mqtt_data:()=>qO,iot_onenet_check:()=>gO,iot_onenet_connect:()=>RO,iot_onenet_disconnect:()=>cO,iot_onenet_publish:()=>SO,iot_onenet_publish_dict:()=>CO,iot_onenetconnect:()=>zO,iot_onenetdisconnect:()=>jO,iot_publish:()=>ZO,iot_publish_container:()=>AO,iot_publish_item:()=>LO,iot_tiny_web_db_count:()=>rR,iot_tiny_web_db_delete:()=>dR,iot_tiny_web_db_get:()=>uR,iot_tiny_web_db_init:()=>oR,iot_tiny_web_db_init_with_mqtt:()=>pR,iot_tiny_web_db_search:()=>lR,iot_tiny_web_db_update:()=>aR,iot_wifi_connect:()=>OO,iot_wificonnect:()=>QO,ollama_empty_history:()=>_R,use_ollama_llm_to_chat:()=>nR,use_ollama_llm_to_chat_return:()=>sR});var G={};t.r(G),t.d(G,{educore_mqtt_connect:()=>KR,educore_mqtt_connect_success:()=>zR,educore_mqtt_subscribe_message:()=>JR,educore_mqtt_topic_publish:()=>QR,educore_mqtt_topic_subscribe:()=>qR,educore_wifi_connect:()=>WR,network_ap_connect:()=>CR,network_connect:()=>ER,network_get_connect:()=>RR,network_get_wifi:()=>gR,network_init:()=>TR,network_is_active:()=>hR,network_open:()=>MR,network_scan:()=>mR,network_server:()=>SR,network_socket_accept:()=>fR,network_socket_bind:()=>LR,network_socket_close:()=>yR,network_socket_connect:()=>NR,network_socket_init:()=>AR,network_socket_listen:()=>DR,network_socket_readline:()=>FR,network_socket_receive:()=>PR,network_socket_receive_from:()=>YR,network_socket_send:()=>vR,network_socket_send_to:()=>XR,network_stop:()=>cR,network_wifi_connect:()=>OR,ntptime_address:()=>GR,ntptime_time:()=>BR,requests_attribute:()=>xR,requests_attribute2:()=>HR,requests_get:()=>bR,requests_get2:()=>wR,requests_method:()=>VR,requests_post:()=>kR});var U={};t.r(U),t.d(U,{pe_g1_battery_left:()=>ZR,pe_g1_dc_motor:()=>tc,pe_g1_dc_motor_speed:()=>ec,pe_g1_servo_get_angle:()=>sc,pe_g1_servo_get_speed:()=>_c,pe_g1_servo_set_angle:()=>ic,pe_g1_servo_set_speed:()=>nc,pe_g1_use_i2c_init:()=>$R});var w={};t.r(w),t.d(w,{CI130X_BROADCAST:()=>Fc,CI130X_GET_THE_RECOGNIZED_CMD:()=>fc,CI130X_GET_WHETHER_IDENTIFY:()=>Dc,CI130X_IDENTIFY_AND_SAVE:()=>Nc,CI130X_SET_SYSTEM_CMD:()=>Pc,HCSR04:()=>Og,PS2_Button:()=>Cg,PS2_Buttons:()=>Ag,PS2_Buttons_new:()=>fg,PS2_State:()=>Sg,PS2_init:()=>Rg,PS2_init_new:()=>Ng,PS2_stk:()=>Lg,PS2_stk_new:()=>Fg,PS2_vibration:()=>gg,PS2_vibration_new:()=>Dg,camera_sensor_init:()=>oC,camera_sensor_result:()=>pC,column_tube_foot:()=>dC,define_keyboards:()=>IC,educore_body_sensor:()=>zg,educore_button_sensor_extern:()=>tC,educore_camera_sensor:()=>_C,educore_infrared_sensor:()=>Zg,educore_soilhum_sensor:()=>jg,educore_temp_sensor:()=>sC,educore_temphum_sensor:()=>$g,educore_ultrasonic_sensor:()=>iC,esp32_s2_weather_init:()=>Mg,esp32_s2_weather_rain:()=>mg,esp32_s2_weather_wd:()=>hg,esp32_s2_weather_ws:()=>Eg,extern_rfid_read:()=>eg,extern_rfid_readcontent:()=>ng,extern_rfid_readid:()=>ig,extern_rfid_status:()=>og,extern_rfid_write:()=>sg,extern_rfid_write_return:()=>_g,get_keboards_value:()=>TC,gnss_get_data:()=>Xg,gnss_have_data:()=>Yg,init_init_rotary_encoder:()=>MC,init_matrix_keyboard:()=>rC,interaction_whether_to_interaction:()=>Ac,interaction_whether_to_interaction_SANT:()=>Lc,line_tube_foot:()=>lC,mixbot_sensor_extern_get_addr:()=>wg,mixbot_sensor_extern_set_addr:()=>kg,pm25_get_data:()=>vg,radar_set_DETECTION_THRESHOLD:()=>Cc,radar_set_DETECTION_THRESHOLD_SANT:()=>Sc,robot_button_extern_get_value:()=>bg,robot_color_extern_get_value:()=>Ug,robot_infrared_extern_get_value:()=>Vg,robot_infrared_extern_grey_get_value:()=>Bg,robot_potentiometer_extern_get_value:()=>Gg,robot_sonar_extern_get_value:()=>Hg,robot_sonar_extern_led:()=>Wg,robot_touch_extern_get_value:()=>xg,rotary_key:()=>hC,sensor_APDS9960_extern:()=>Yc,sensor_DS18X20:()=>Rc,sensor_LTR308_extern:()=>Xc,sensor_LTR390UV_extern:()=>xc,sensor_MAX30102_extern:()=>vc,sensor_QMC5883L_extern:()=>Wc,sensor_VL530LX_extern:()=>Vc,sensor_adxl345_get_acceleration:()=>dc,sensor_aht11_extern:()=>Gc,sensor_bmp:()=>Ec,sensor_compass_reset:()=>Zc,sensor_dht11:()=>Tc,sensor_hp203_extern:()=>Uc,sensor_light_level:()=>Ic,sensor_lm35:()=>cc,sensor_ltr381_extern:()=>yc,sensor_mixgo_extern_button_attachInterrupt:()=>rc,sensor_mixgo_extern_button_get_presses:()=>uc,sensor_mixgo_extern_button_is_pressed:()=>pc,sensor_mixgo_extern_button_was_pressed:()=>ac,sensor_mixgo_extern_light:()=>Mc,sensor_mixgo_extern_pin_near:()=>mc,sensor_mixgo_extern_sound:()=>hc,sensor_mixgoce_hot_wheel_degrees:()=>Tg,sensor_mixgoce_hot_wheel_is_touched:()=>Ig,sensor_mpu9250_attachGestureInterrupt:()=>lc,sensor_mpu9250_calibrate_compass:()=>zc,sensor_mpu9250_field_strength:()=>$c,sensor_mpu9250_gesture:()=>Kc,sensor_mpu9250_get_acceleration:()=>Jc,sensor_mpu9250_get_gyro:()=>Qc,sensor_mpu9250_get_magnetic:()=>qc,sensor_mpu9250_temperature:()=>jc,sensor_ms5611_extern:()=>kc,sensor_ms5611_extern_altitude:()=>Hc,sensor_read_humiture:()=>eC,sensor_sht:()=>Oc,sensor_shtc3_extern:()=>Bc,sensor_spl06_001_extern:()=>wc,sensor_ucs12071_extern:()=>bc,sensor_use_i2c_init:()=>gc,sensor_use_spi_init:()=>tg,sensor_use_uart_init:()=>Pg,sensor_weather_solo_init:()=>Kg,sensor_weather_solo_rain:()=>Qg,sensor_weather_solo_wd:()=>Jg,sensor_weather_solo_ws:()=>qg,sensor_weigh_init:()=>aC,tvoc_get_data:()=>yg,ultrasonic_sensor_read_distance:()=>nC,weather_data:()=>pg,weather_have_data:()=>ag,weather_set_label:()=>rg,weather_set_label_container:()=>lg,weather_set_label_item:()=>dg,weather_uart_mixio:()=>ug,weigh_sensor_get_weight:()=>uC});var k={};t.r(k),t.d(k,{HCSR04:()=>YC,RTC_set_date:()=>vC,RTC_set_time:()=>PC,bitbot_als_num:()=>wS,dht11:()=>QS,educore_button_sensor:()=>sA,educore_button_was_pressed:()=>_A,educore_gyroscope_sensor:()=>eA,educore_gyroscope_sensor_read:()=>iA,educore_gyroscope_sensor_shake:()=>nA,educore_light_sensor:()=>tA,educore_rfid_sensor:()=>oA,educore_rfid_sensor_scan:()=>pA,educore_rfid_sensor_scan_data:()=>aA,educore_voice_sensor:()=>$S,number1:()=>yC,number2:()=>bC,number3:()=>xC,number4:()=>VC,number5:()=>BC,number6:()=>GC,number7:()=>UC,onboard_RTC_get_time:()=>QC,onboard_RTC_get_time_str:()=>eS,onboard_RTC_get_timestamp:()=>zC,onboard_RTC_get_timetuple_to_str:()=>iS,onboard_RTC_set_datetime:()=>ZC,onboard_RTC_settime_string:()=>$C,onboard_RTC_timestamp_totuple:()=>jC,rfid_readcontent:()=>uS,rfid_readid:()=>aS,rfid_status:()=>dS,rfid_write:()=>rS,rfid_write_return:()=>lS,sensor_LTR308:()=>nS,sensor_aht11:()=>_S,sensor_bitbot_ALS:()=>US,sensor_button_get_presses:()=>WS,sensor_button_is_pressed:()=>kS,sensor_button_was_pressed:()=>HS,sensor_distance_hrsc04:()=>FC,sensor_eulerangles:()=>TS,sensor_field_strength:()=>zS,sensor_get_acceleration:()=>IS,sensor_get_temperature:()=>oS,sensor_get_the_coprocessor_version:()=>uA,sensor_hp203:()=>pS,sensor_light:()=>qS,sensor_mixbot_get_gyro:()=>GS,sensor_mixbot_patrol_calibrate:()=>xS,sensor_mixbot_patrol_value:()=>VS,sensor_mixbot_temperature:()=>BS,sensor_mixgo_LTR308:()=>JC,sensor_mixgo_button_attachInterrupt:()=>cC,sensor_mixgo_button_get_presses:()=>RC,sensor_mixgo_button_is_pressed:()=>EC,sensor_mixgo_button_was_pressed:()=>OC,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>AS,sensor_mixgo_cc_mmc5603_get_angle:()=>SS,sensor_mixgo_cc_mmc5603_get_magnetic:()=>CS,sensor_mixgo_light:()=>XC,sensor_mixgo_nova_LTR308:()=>KC,sensor_mixgo_nova_pin_near:()=>WC,sensor_mixgo_pin_near:()=>HC,sensor_mixgo_pin_near_double:()=>kC,sensor_mixgo_pin_near_single:()=>wC,sensor_mixgo_pin_pressed:()=>LC,sensor_mixgo_sant_color:()=>qC,sensor_mixgo_touch_slide:()=>fC,sensor_mixgocar42_button_attachInterrupt:()=>AC,sensor_mixgocar42_button_get_presses:()=>SC,sensor_mixgocar42_button_is_pressed:()=>gC,sensor_mixgocar42_button_was_pressed:()=>CC,sensor_mixgocar_battery_left:()=>bS,sensor_mixgocar_pin_near:()=>XS,sensor_mixgocar_pin_near_line:()=>YS,sensor_mixgocar_pin_near_state_change:()=>yS,sensor_mixgoce_pin_pressed:()=>NC,sensor_mixgoce_temperature:()=>NS,sensor_mixgome_temperature:()=>LS,sensor_mpython_pin_pressed:()=>DC,sensor_mpython_qmi8658_get_gyro:()=>DS,sensor_mpython_qmi8658_temperature:()=>fS,sensor_onboard_compass_reset:()=>gS,sensor_onboard_mpu9250_calibrate_compass:()=>OS,sensor_onboard_mpu9250_field_strength:()=>cS,sensor_onboard_mpu9250_gesture:()=>MS,sensor_onboard_mpu9250_get_acceleration:()=>hS,sensor_onboard_mpu9250_get_gyro:()=>ES,sensor_onboard_mpu9250_get_magnetic:()=>mS,sensor_onboard_mpu9250_temperature:()=>RS,sensor_pin_near:()=>JS,sensor_pin_pressed:()=>KS,sensor_read:()=>ZS,sensor_rm_acc:()=>vS,sensor_rm_battery_left:()=>PS,sensor_rm_pin_near_double:()=>FS,sensor_rtc_init:()=>tS,sensor_sound:()=>sS,sensor_temperature:()=>jS,simulated_light_sensor:()=>rA});var H={};t.r(H),t.d(H,{serial_any:()=>RA,serial_begin:()=>AA,serial_print:()=>MA,serial_print_byte:()=>TA,serial_print_hex:()=>mA,serial_println:()=>hA,serial_read_from_ai:()=>XA,serial_readline:()=>cA,serial_readstr:()=>OA,serial_readstr_until:()=>gA,serial_receive_data_event:()=>EA,serial_send_to_ai:()=>YA,serial_softserial:()=>SA,serial_softserial_new:()=>CA,system_input:()=>LA,system_print:()=>NA,system_print_container:()=>PA,system_print_end:()=>fA,system_print_inline:()=>DA,system_print_item:()=>vA,system_print_many:()=>FA});var W={};t.r(W),t.d(W,{Panic_with_status_code:()=>VA,Timer_init:()=>$A,base_delay:()=>eL,controls_delay:()=>xA,controls_delay_new:()=>bA,controls_millis:()=>GA,controls_uname:()=>wA,raw_block:()=>UA,reset:()=>BA,set_system_timer:()=>JA,system_bitbot_shutdown:()=>jA,system_machine_reset:()=>zA,system_ticks_diff:()=>WA,system_timer:()=>HA,system_timer_init:()=>KA,system_wdt_feed:()=>QA,system_wdt_init:()=>qA,time_ticks_diff:()=>tL,timer:()=>kA,timer2:()=>ZA});var K={};t.r(K),t.d(K,{Air_daily_content:()=>ML,Air_now_content:()=>aL,Geo_moon_content:()=>mL,Geo_sun_content:()=>hL,Life_suggestion_content:()=>rL,Location_search_content:()=>dL,Tide_daily_content:()=>lL,WEATHER_DAILY:()=>sL,WEATHER_HOUR:()=>_L,WEATHER_NOW:()=>nL,Weather_alarm_content:()=>uL,Weather_daily:()=>IL,Weather_daily_content:()=>TL,Weather_now:()=>oL,Weather_now_content:()=>pL});var J={};t.r(J),t.d(J,{PIN_init:()=>ON,actuator_extern_get_led_bright:()=>BL,actuator_extern_get_led_state:()=>GL,actuator_extern_led_bright:()=>VL,actuator_extern_led_brightness:()=>UL,actuator_ms32006_dcmotor:()=>AL,actuator_ms32006_init:()=>SL,actuator_ms32006_stepper:()=>LL,actuator_neopixel_init:()=>wL,actuator_neopixel_rgb:()=>WL,actuator_neopixel_rgb_all:()=>kL,actuator_neopixel_rgb_show_all_chase:()=>KL,actuator_neopixel_rgb_show_all_rainbow:()=>JL,actuator_neopixel_write:()=>HL,actuator_use_uart_init:()=>qL,backstage_esp32_music_play_list:()=>yL,esp32_music_get_tempo_extern:()=>YL,esp32_music_pitch:()=>DL,esp32_music_pitch_init:()=>NL,esp32_music_pitch_with_time:()=>fL,esp32_music_play_list:()=>XL,esp32_music_reset_extern:()=>bL,esp32_music_set_tempo_extern:()=>vL,esp32_music_stop:()=>FL,esp32_set_music_volume:()=>PL,mixbot_actuator_extern_get_addr:()=>mN,mixbot_actuator_extern_set_addr:()=>EN,mixbot_addr_extern:()=>sN,parrot_PIN_init:()=>CN,parrot_move_speed:()=>SN,pin_led_bright:()=>RN,player_play_music:()=>ZL,player_set_mode:()=>$L,player_set_play:()=>zL,player_set_volume:()=>jL,player_whether_stop:()=>QL,robot_led_extern:()=>aN,robot_led_extern_get_value:()=>uN,robot_motor_extern:()=>_N,robot_motor_extern_get_speed:()=>oN,robot_servo_extern_absolute_run:()=>IN,robot_servo_extern_get_status:()=>rN,robot_servo_extern_relative_continue:()=>hN,robot_servo_extern_relative_origin:()=>TN,robot_servo_extern_relative_run:()=>MN,robot_servo_extern_stop:()=>dN,robot_servo_extern_stop_mode:()=>lN,robot_traffic_light_extern:()=>pN,servo_PIN_init:()=>cN,servo_get_angle:()=>gL,servo_get_speed:()=>CL,servo_init:()=>EL,servo_move:()=>xL,servo_move_angle:()=>gN,servo_set_angle:()=>RL,servo_set_speed:()=>cL,servo_speed_360:()=>OL,syn6288_builtin_voice:()=>iN,syn6288_get_voice:()=>eN,syn6288_set_voice:()=>tN,syn6288_tts_play:()=>nN});var q={};t.r(q),t.d(q,{actuator_dc_motor:()=>ZN,actuator_dc_motor_stop:()=>tD,actuator_get_led_bright:()=>bN,actuator_get_led_state:()=>xN,actuator_led_bright:()=>yN,actuator_led_brightness:()=>VN,actuator_mixbot_buzzer_on_off:()=>_D,actuator_mixgo_nova_mic_get:()=>rD,actuator_mixgo_nova_mic_set:()=>uD,actuator_mixgo_nova_onboard_music_pitch:()=>hD,actuator_mixgo_nova_onboard_music_stop:()=>mD,actuator_mixgo_nova_play_audio:()=>TD,actuator_mixgo_nova_play_online_audio:()=>MD,actuator_mixgo_nova_record_audio:()=>ID,actuator_mixgo_nova_voice_get:()=>dD,actuator_mixgo_nova_voice_set:()=>lD,actuator_mixgo_zero_led_color:()=>BN,actuator_onboard_neopixel_rgb:()=>KN,actuator_onboard_neopixel_rgb_all:()=>JN,actuator_onboard_neopixel_rgb_show_all_chase:()=>qN,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>QN,actuator_onboard_neopixel_write:()=>WN,actuator_stepper_keep:()=>jN,actuator_stepper_stop:()=>$N,analog_ble_keyboard_init:()=>fD,analog_ble_keyboard_input:()=>vD,analog_ble_keyboard_mouse_init:()=>GD,analog_ble_keyboard_mouse_input:()=>HD,analog_ble_keyboard_mouse_send_battery:()=>kD,analog_ble_keyboard_mouse_str:()=>WD,analog_ble_keyboard_send_battery:()=>XD,analog_ble_keyboard_str:()=>YD,analog_ble_mouse_init:()=>yD,analog_ble_mouse_input:()=>VD,analog_ble_mouse_keyboard_input:()=>KD,analog_ble_mouse_send_battery:()=>BD,analog_keyboard_input:()=>gD,analog_keyboard_str:()=>ND,analog_mouse_input:()=>AD,backstage_onboard_music_play_list:()=>PN,bitbot_motor:()=>aD,bitbot_move:()=>oD,bitbot_stop:()=>pD,ble_keyboard_connect:()=>PD,ble_keyboard_get_mac:()=>FD,ble_keyboard_mouse_connect:()=>wD,ble_keyboard_mouse_get_mac:()=>UD,ble_mouse_connect:()=>xD,ble_mouse_get_mac:()=>bD,cc_number:()=>GN,educore_ble_keyboard_input:()=>nf,educore_ble_sensor_connected:()=>ef,educore_ble_sensor_init:()=>tf,educore_buzzer:()=>JD,educore_buzzer_play_tone:()=>qD,educore_buzzer_play_tone_time:()=>QD,educore_buzzer_stop:()=>zD,educore_neopixel_clear:()=>ZD,educore_neopixel_rgb:()=>$D,educore_rgb_light:()=>jD,esp32_music_get_tempo:()=>LN,esp32_music_reset:()=>vN,esp32_music_set_tempo:()=>AN,esp32_onboard_music_pitch:()=>NN,esp32_onboard_music_pitch_with_time:()=>DN,esp32_onboard_music_play_list:()=>FN,esp32_onboard_music_stop:()=>fN,general_key:()=>SD,general_key_tuple:()=>DD,get_keyboard_light:()=>sf,get_power_output:()=>OD,ledswitch:()=>XN,mixbot_motor:()=>sD,mixbot_motor_status:()=>eD,mixbot_move:()=>iD,mixbot_stop:()=>nD,mouse_key:()=>LD,number:()=>YN,record_audio:()=>of,rm_actuator_get_led_bright:()=>wN,rm_actuator_get_led_state:()=>kN,rm_actuator_led_bright:()=>UN,rm_actuator_led_brightness:()=>HN,rm_motor:()=>zN,set_all_power_output:()=>RD,set_microphone_amplification:()=>_f,set_music_volume:()=>pf,set_part_power_output:()=>cD,set_power_output:()=>ED,special_key:()=>CD});var Q={};t.r(Q),t.d(Q,{ai_sensor_20object:()=>Gf,ai_sensor_ailocal_class:()=>ff,ai_sensor_ailocal_class_result:()=>Ff,ai_sensor_ailocal_train:()=>Df,ai_sensor_asr_recognize:()=>yf,ai_sensor_audio_play:()=>vf,ai_sensor_audio_record:()=>Pf,ai_sensor_barcode:()=>Tf,ai_sensor_circle:()=>Rf,ai_sensor_classifier_faces:()=>Bf,ai_sensor_color:()=>Sf,ai_sensor_color_chases:()=>Nf,ai_sensor_color_chases_result:()=>Lf,ai_sensor_config:()=>rf,ai_sensor_face:()=>Vf,ai_sensor_find_20objects:()=>Uf,ai_sensor_find_barcodes:()=>Mf,ai_sensor_find_circles:()=>cf,ai_sensor_find_colors:()=>Af,ai_sensor_find_licenseplates:()=>xf,ai_sensor_find_lines:()=>Of,ai_sensor_find_qrcodes:()=>If,ai_sensor_find_rects:()=>Cf,ai_sensor_find_tags:()=>mf,ai_sensor_licenseplate:()=>bf,ai_sensor_line:()=>Ef,ai_sensor_qrcode:()=>df,ai_sensor_qrcode_lite:()=>uf,ai_sensor_rect:()=>gf,ai_sensor_rgb:()=>lf,ai_sensor_tag:()=>hf,ai_sensor_use_uart_init:()=>af,ai_sensor_yolo_recognize:()=>Yf,ai_sensor_yolo_recognize_result:()=>Xf});var z={};t.r(z),t.d(z,{MICROPYTHON_AI_Speech_asr:()=>Hf,MICROPYTHON_AI_Speech_unit:()=>kf,MICROPYTHON_AI_client:()=>wf});var j={};t.r(j),t.d(j,{mpython_blynk_app_data:()=>iF,mpython_blynk_app_notify:()=>jf,mpython_blynk_email:()=>nF,mpython_blynk_get_timers:()=>Zf,mpython_blynk_on_connected:()=>qf,mpython_blynk_on_disconnected:()=>Jf,mpython_blynk_run:()=>zf,mpython_blynk_sensor_data_to_app:()=>eF,mpython_blynk_set_property:()=>sF,mpython_blynk_setup:()=>_F,mpython_blynk_stop_timers:()=>$f,mpython_blynk_sync_virtual:()=>Kf,mpython_blynk_terminal_widget_vpin:()=>Wf,mpython_blynktimer:()=>tF,mpython_blynktimer_run:()=>Qf});var $={};t.r($),t.d($,{cc_g1_read_bat:()=>oF,cc_g1_read_joystick:()=>pF,cc_g1_read_key:()=>aF,cc_g1_turnoff:()=>uF});var Z={};t.r(Z),t.d(Z,{ce_go_dc_motor:()=>mF,ce_go_get_led_bright:()=>dF,ce_go_get_led_state:()=>IF,ce_go_hall_attachInterrupt:()=>EF,ce_go_hall_data:()=>RF,ce_go_hall_initialize:()=>OF,ce_go_led_bright:()=>lF,ce_go_led_brightness:()=>TF,ce_go_light_number:()=>rF,ce_go_pin_light:()=>AF,ce_go_pin_near:()=>gF,ce_go_pin_near_line:()=>cF,ce_go_pin_near_state_change:()=>CF,ce_go_stepper_keep:()=>MF,ce_go_stepper_stop:()=>hF,educore_car:()=>LF,educore_car_pin_near:()=>FF,educore_car_pin_near_line:()=>fF,educore_car_stepper_keep:()=>NF,educore_car_stepper_stop:()=>DF,sensor_mixgome_eulerangles:()=>SF});var tt={};t.r(tt),t.d(tt,{communicate_bluetooth_central_init:()=>lP,communicate_bluetooth_connect:()=>TP,communicate_bluetooth_disconnect:()=>MP,communicate_bluetooth_handle:()=>cP,communicate_bluetooth_is_connected:()=>mP,communicate_bluetooth_mac:()=>hP,communicate_bluetooth_peripheral_init:()=>dP,communicate_bluetooth_recv:()=>RP,communicate_bluetooth_recv_only:()=>OP,communicate_bluetooth_scan:()=>IP,communicate_bluetooth_send:()=>EP,communicate_espnow_init:()=>gP,communicate_espnow_init_new:()=>CP,communicate_i2c_available:()=>VF,communicate_i2c_init:()=>YF,communicate_i2c_master_read:()=>xF,communicate_i2c_onboard:()=>PF,communicate_i2c_read:()=>XF,communicate_i2c_scan:()=>bF,communicate_i2c_write:()=>yF,communicate_ir_recv_init:()=>eP,communicate_ir_send_init:()=>oP,communicate_ow_init:()=>QF,communicate_ow_read:()=>$F,communicate_ow_reset:()=>jF,communicate_ow_scan:()=>zF,communicate_ow_select:()=>tP,communicate_ow_write:()=>ZF,communicate_spi_buffer:()=>wF,communicate_spi_init:()=>GF,communicate_spi_onboard:()=>vF,communicate_spi_read:()=>kF,communicate_spi_read_output:()=>HF,communicate_spi_readinto:()=>WF,communicate_spi_readinto_output:()=>KF,communicate_spi_set:()=>UF,communicate_spi_write:()=>JF,communicate_spi_write_readinto:()=>qF,espnow_radio_channel:()=>fP,espnow_radio_channel_new:()=>PP,espnow_radio_on_off:()=>vP,espnow_radio_rec:()=>XP,espnow_radio_recv:()=>bP,espnow_radio_recv_certain_msg:()=>xP,espnow_radio_recv_certain_msg_new:()=>BP,espnow_radio_recv_msg:()=>yP,espnow_radio_recv_new:()=>VP,espnow_radio_send:()=>YP,espnow_radio_txpower:()=>FP,i2c_slave_onreceive:()=>BF,internal_variable:()=>iP,ir_recv_timeout:()=>_P,ir_transmit_busy:()=>rP,ir_transmit_conventional_data:()=>pP,ir_transmit_raw_code:()=>uP,ir_transmit_study_code:()=>aP,ir_whether_recv:()=>sP,lora_init:()=>GP,lora_packet:()=>UP,lora_recv:()=>kP,lora_send:()=>wP,network_espnow_info:()=>AP,network_espnow_mac:()=>SP,network_espnow_recv:()=>LP,network_espnow_recv_handle:()=>DP,network_espnow_send:()=>NP,recv_fun:()=>nP,urequests_attribute:()=>WP,urequests_get:()=>HP,urequests_method:()=>KP});var et={};t.r(et),t.d(et,{display_animate:()=>mv,display_circle:()=>Ev,display_color_seclet:()=>fv,display_draw_4strings:()=>rv,display_fill:()=>hv,display_lcd_use_i2c_init:()=>yv,display_line:()=>Iv,display_line_arbitrarily:()=>lv,display_matrix_extern_bright_point:()=>nv,display_matrix_extern_bright_screen:()=>_v,display_matrix_extern_clear:()=>tv,display_matrix_extern_get_pixel:()=>iv,display_matrix_extern_get_screen_pixel:()=>sv,display_matrix_extern_image_builtins:()=>ov,display_matrix_extern_scroll_string:()=>$P,display_matrix_extern_scroll_string_delay:()=>ZP,display_matrix_extern_shift:()=>ev,display_matrix_extern_show_frame_string:()=>zP,display_matrix_extern_show_frame_string_delay:()=>jP,display_matrix_extern_show_image:()=>qP,display_matrix_extern_show_image_or_string_delay:()=>QP,display_matrix_use_i2c_init:()=>JP,display_oled_drawPixel:()=>cv,display_oled_showBitmap:()=>Rv,display_oled_use_i2c_init:()=>Gv,display_onoff:()=>Tv,display_rect:()=>dv,display_tm1650_power:()=>Cv,display_tm1650_set_brightness:()=>Lv,display_tm1650_show_dot:()=>Av,display_tm1650_show_num:()=>Sv,display_tm_use_i2c_init:()=>gv,display_triangle:()=>Ov,display_use_i2c_init:()=>uv,extern_oled_bright_point:()=>$v,extern_oled_clear:()=>Qv,extern_oled_get_pixel:()=>jv,extern_oled_hvline:()=>tY,extern_oled_line:()=>eY,extern_oled_scroll_string:()=>Jv,extern_oled_scroll_string_delay:()=>qv,extern_oled_shape_rect:()=>Zv,extern_oled_shift:()=>zv,extern_oled_show_frame_string:()=>Wv,extern_oled_show_frame_string_delay:()=>Kv,extern_oled_show_image:()=>Uv,extern_oled_show_image_or_string_delay:()=>Hv,extern_oled_show_image_xy:()=>wv,extern_oled_show_string:()=>kv,image_shift:()=>Mv,lcd_backlight:()=>Vv,lcd_clear:()=>Bv,lcd_print_string:()=>xv,lcd_show_image_or_string_delay:()=>bv,matrix_extern_image_arithmetic:()=>pv,matrix_extern_image_invert:()=>av,tft_fill:()=>Yv,tft_line_arbitrarily:()=>Xv,tft_scroll_string_delay:()=>vv,tft_show_frame_string_delay:()=>Pv,tft_show_image_or_string_delay:()=>Fv,tft_show_image_xy:()=>Dv,tft_use_spi_init:()=>Nv});var it={};t.r(it),t.d(it,{bitbot_display_bitmap_create:()=>qY,bitbot_display_image_create:()=>JY,display_available:()=>MY,display_bitmap_create:()=>IY,display_bright_point:()=>RY,display_bright_screen:()=>gY,display_clear:()=>TY,display_get_pixel:()=>OY,display_get_screen_pixel:()=>cY,display_image_builtins:()=>rY,display_image_builtins_all:()=>lY,display_image_create:()=>dY,display_scroll_string:()=>oY,display_scroll_string_delay:()=>pY,display_scroll_way:()=>aY,display_shift:()=>EY,display_show_frame_string:()=>sY,display_show_frame_string_delay:()=>_Y,display_show_image:()=>iY,display_show_image_or_string_delay:()=>nY,draw_pointer:()=>lX,image_arithmetic:()=>hY,image_invert:()=>mY,mixbot_display_bitmap_create:()=>wY,mixbot_display_bright_screen:()=>WY,mixbot_display_get_ambientbright:()=>HY,mixbot_display_get_screen_pixel:()=>kY,mixbot_display_image_create:()=>UY,mixbot_display_rotate:()=>KY,mixgo_display_bitmap_create:()=>fY,mixgo_display_image_create_new:()=>DY,mixgome_display_bitmap_create:()=>SY,mixgome_display_font:()=>NY,mixgome_display_image_create:()=>CY,mixgomini_display_bitmap_create:()=>LY,mixgomini_display_image_create:()=>AY,mpython_display_hvline:()=>BY,mpython_display_line:()=>GY,mpython_display_shape_rect:()=>VY,mpython_pbm_image:()=>FY,nova_draw_pointer:()=>dX,onboard_oled_bright_point:()=>xY,onboard_oled_scroll_string_delay:()=>bY,onboard_oled_show_frame_string_delay:()=>yY,onboard_oled_show_image:()=>PY,onboard_oled_show_image_or_string_delay:()=>XY,onboard_oled_show_image_xy:()=>vY,onboard_oled_show_string:()=>YY,onboard_tft_bright_point:()=>nX,onboard_tft_bright_screen:()=>RX,onboard_tft_clear:()=>cX,onboard_tft_clock_clear:()=>uX,onboard_tft_clock_draw:()=>aX,onboard_tft_clock_get_rtctime:()=>oX,onboard_tft_clock_init:()=>_X,onboard_tft_clock_set_time:()=>pX,onboard_tft_display_hvline:()=>tX,onboard_tft_display_line:()=>eX,onboard_tft_display_shape_circle:()=>rX,onboard_tft_display_shape_rect:()=>ZY,onboard_tft_fill:()=>sX,onboard_tft_get_pixel:()=>iX,onboard_tft_get_screen_pixel:()=>OX,onboard_tft_scroll_string_delay:()=>uY,onboard_tft_shift:()=>EX,onboard_tft_show_frame_string:()=>mX,onboard_tft_show_frame_string_delay:()=>$Y,onboard_tft_show_image:()=>hX,onboard_tft_show_image_or_string_delay:()=>jY,onboard_tft_show_image_xy:()=>QY,onboard_tft_show_image_xy_direct:()=>zY,onboard_tft_show_qrcode:()=>TX,onboard_tft_show_qrcode_details:()=>MX,onboard_tft_show_texts:()=>IX});var nt={};t.r(nt),t.d(nt,{factory_block:()=>fX,factory_block_return:()=>FX,factory_block_return_with_textarea:()=>vX,factory_block_with_textarea:()=>PX,factory_callMethod_noreturn:()=>NX,factory_callMethod_return:()=>DX,factory_declare:()=>LX,factory_from_import:()=>gX,factory_function_noreturn:()=>SX,factory_function_return:()=>AX,factory_import:()=>CX,folding_block:()=>YX});var st={};t.r(st),t.d(st,{inout_analog_atten:()=>qX,inout_analog_read:()=>UX,inout_analog_read_init:()=>JX,inout_analog_write:()=>VX,inout_analog_write_init:()=>KX,inout_analog_write_set:()=>BX,inout_digital_init:()=>HX,inout_digital_read:()=>bX,inout_digital_write:()=>yX,inout_highlow:()=>XX,inout_pin_attachInterrupt:()=>kX,inout_pin_pressed:()=>wX,inout_pin_pressed_init:()=>QX,inout_pwm_analog_write:()=>xX,inout_pwm_analog_write_init:()=>WX,inout_pwm_analog_write_set_freq:()=>GX});var _t={};t.r(_t),t.d(_t,{IOT_CONNECT_OLLAMA:()=>Sy,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>My,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>Iy,IOT_EMQX_PING:()=>hy,IOT_FORMATTING:()=>ly,IOT_FORMAT_STRING:()=>dy,IOT_MIXIO_NTP:()=>my,IOT_MIXIO_PUBLISH:()=>ny,IOT_MIXIO_PUBLISHEX:()=>sy,IOT_MIXIO_SUBSCRIBE:()=>_y,iot_client_onboard:()=>Ey,iot_connect_ollama:()=>Cy,iot_connect_openai:()=>Ay,iot_http_client:()=>Oy,iot_http_data:()=>Ry,iot_mixio_check:()=>ay,iot_mixio_connect:()=>iy,iot_mixio_connect_only:()=>py,iot_mixio_disconnect:()=>oy,iot_mixio_format_msg:()=>ry,iot_mixio_format_topic:()=>uy,iot_mixly_key:()=>Ty,iot_mqtt_client:()=>cy,iot_mqtt_data:()=>gy,iot_onenet_check:()=>ty,iot_onenet_connect:()=>jX,iot_onenet_disconnect:()=>$X,iot_onenet_publish:()=>ey,iot_onenet_publish_dict:()=>ZX,iot_tiny_web_db_count:()=>Yy,iot_tiny_web_db_delete:()=>yy,iot_tiny_web_db_get:()=>vy,iot_tiny_web_db_init:()=>fy,iot_tiny_web_db_init_with_mqtt:()=>Fy,iot_tiny_web_db_search:()=>Xy,iot_tiny_web_db_update:()=>Py,iot_wifi_connect:()=>zX,ollama_empty_history:()=>Dy,use_ollama_llm_to_chat:()=>Ly,use_ollama_llm_to_chat_return:()=>Ny});var ot={};t.r(ot),t.d(ot,{educore_mqtt_connect:()=>Ib,educore_mqtt_connect_success:()=>mb,educore_mqtt_subscribe_message:()=>Tb,educore_mqtt_topic_publish:()=>hb,educore_mqtt_topic_subscribe:()=>Mb,educore_wifi_connect:()=>db,network_ap_connect:()=>Hy,network_connect:()=>xy,network_get_connect:()=>By,network_get_wifi:()=>ky,network_init:()=>by,network_is_active:()=>wy,network_open:()=>Uy,network_scan:()=>Wy,network_server:()=>Ky,network_socket_accept:()=>jy,network_socket_bind:()=>qy,network_socket_close:()=>nb,network_socket_connect:()=>Qy,network_socket_init:()=>Jy,network_socket_listen:()=>zy,network_socket_readline:()=>$y,network_socket_receive:()=>Zy,network_socket_receive_from:()=>eb,network_socket_send:()=>tb,network_socket_send_to:()=>ib,network_stop:()=>Gy,network_wifi_connect:()=>Vy,ntptime_address:()=>ab,ntptime_time:()=>pb,requests_attribute:()=>_b,requests_attribute2:()=>rb,requests_get:()=>sb,requests_get2:()=>ub,requests_method:()=>ob,requests_post:()=>lb});var pt={};t.r(pt),t.d(pt,{pe_g1_battery_left:()=>Ob,pe_g1_dc_motor:()=>Rb,pe_g1_dc_motor_speed:()=>cb,pe_g1_servo_get_angle:()=>Sb,pe_g1_servo_get_speed:()=>Ab,pe_g1_servo_set_angle:()=>gb,pe_g1_servo_set_speed:()=>Cb,pe_g1_use_i2c_init:()=>Eb});var at={};t.r(at),t.d(at,{CI130X_BROADCAST:()=>qb,CI130X_GET_THE_RECOGNIZED_CMD:()=>Jb,CI130X_GET_WHETHER_IDENTIFY:()=>Kb,CI130X_IDENTIFY_AND_SAVE:()=>Wb,CI130X_SET_SYSTEM_CMD:()=>Qb,HCSR04:()=>Nx,PS2_Button:()=>Fx,PS2_Buttons:()=>Px,PS2_Buttons_new:()=>Bx,PS2_State:()=>vx,PS2_init:()=>Dx,PS2_init_new:()=>xx,PS2_stk:()=>Yx,PS2_stk_new:()=>Gx,PS2_vibration:()=>fx,PS2_vibration_new:()=>Vx,RTC_get_time:()=>yx,RTC_set_date:()=>Yb,RTC_set_datetime:()=>Xx,RTC_set_time:()=>vb,camera_sensor_init:()=>mV,camera_sensor_result:()=>EV,column_tube_foot:()=>gV,define_keyboards:()=>CV,educore_body_sensor:()=>pV,educore_button_sensor_extern:()=>lV,educore_camera_sensor:()=>hV,educore_infrared_sensor:()=>rV,educore_soilhum_sensor:()=>aV,educore_temp_sensor:()=>MV,educore_temphum_sensor:()=>uV,educore_ultrasonic_sensor:()=>IV,esp32_s2_weather_init:()=>Cx,esp32_s2_weather_rain:()=>Ax,esp32_s2_weather_wd:()=>Sx,esp32_s2_weather_ws:()=>Lx,extern_rfid_read:()=>lx,extern_rfid_readcontent:()=>Ix,extern_rfid_readid:()=>dx,extern_rfid_status:()=>hx,extern_rfid_write:()=>Tx,extern_rfid_write_return:()=>Mx,get_keboards_value:()=>AV,gnss_get_data:()=>kx,gnss_have_data:()=>Hx,init_init_rotary_encoder:()=>LV,init_matrix_keyboard:()=>SV,interaction_whether_to_interaction:()=>kb,interaction_whether_to_interaction_SANT:()=>Hb,line_tube_foot:()=>cV,mixbot_sensor_extern_get_addr:()=>tV,mixbot_sensor_extern_set_addr:()=>eV,pm25_get_data:()=>wx,radar_set_DETECTION_THRESHOLD:()=>Ub,radar_set_DETECTION_THRESHOLD_SANT:()=>wb,robot_button_extern_get_value:()=>Kx,robot_color_extern_get_value:()=>jx,robot_infrared_extern_get_value:()=>qx,robot_infrared_extern_grey_get_value:()=>Qx,robot_potentiometer_extern_get_value:()=>zx,robot_sonar_extern_get_value:()=>$x,robot_sonar_extern_led:()=>Zx,robot_touch_extern_get_value:()=>Jx,rotary_key:()=>NV,sensor_APDS9960_extern:()=>jb,sensor_DS18X20:()=>oV,sensor_LTR308_extern:()=>$b,sensor_LTR390UV_extern:()=>_x,sensor_MAX30102_extern:()=>zb,sensor_QMC5883L_extern:()=>ox,sensor_VL530LX_extern:()=>ux,sensor_aht11_extern:()=>ax,sensor_bmp:()=>Vb,sensor_dht11:()=>bx,sensor_distance_hrsc04:()=>Pb,sensor_hp203_extern:()=>Zb,sensor_ltr381_extern:()=>nx,sensor_mixgo_extern_button_attachInterrupt:()=>fb,sensor_mixgo_extern_button_get_presses:()=>Db,sensor_mixgo_extern_button_is_pressed:()=>Lb,sensor_mixgo_extern_button_was_pressed:()=>Nb,sensor_mixgo_extern_light:()=>Xb,sensor_mixgo_extern_pin_near:()=>bb,sensor_mixgo_extern_sound:()=>yb,sensor_mixgoce_hot_wheel_degrees:()=>gx,sensor_mixgoce_hot_wheel_is_touched:()=>cx,sensor_mpu9250_attachGestureInterrupt:()=>Fb,sensor_ms5611_extern:()=>ex,sensor_ms5611_extern_altitude:()=>ix,sensor_read_humiture:()=>dV,sensor_rtc_init:()=>xb,sensor_sht:()=>Bb,sensor_shtc3_extern:()=>px,sensor_spl06_001_extern:()=>tx,sensor_ucs12071_extern:()=>sx,sensor_use_i2c_init:()=>Gb,sensor_use_spi_init:()=>rx,sensor_use_uart_init:()=>Ux,sensor_weather_solo_init:()=>iV,sensor_weather_solo_rain:()=>_V,sensor_weather_solo_wd:()=>nV,sensor_weather_solo_ws:()=>sV,sensor_weigh_init:()=>OV,tvoc_get_data:()=>Wx,ultrasonic_sensor_read_distance:()=>TV,weather_data:()=>mx,weather_have_data:()=>Ex,weather_set_label:()=>Rx,weather_uart_mixio:()=>Ox,weigh_sensor_get_weight:()=>RV});var ut={};t.r(ut),t.d(ut,{HCSR04:()=>bV,bitbot_als_num:()=>sG,dht11:()=>dG,educore_button_sensor:()=>OG,educore_button_was_pressed:()=>RG,educore_gyroscope_sensor:()=>hG,educore_gyroscope_sensor_read:()=>mG,educore_gyroscope_sensor_shake:()=>EG,educore_light_sensor:()=>MG,educore_rfid_sensor:()=>cG,educore_rfid_sensor_scan:()=>gG,educore_rfid_sensor_scan_data:()=>CG,educore_voice_sensor:()=>IG,number1:()=>xV,number2:()=>VV,number3:()=>BV,number4:()=>GV,number5:()=>UV,number6:()=>wV,number7:()=>kV,onboard_RTC_get_time:()=>XB,onboard_RTC_get_time_str:()=>xB,onboard_RTC_get_timestamp:()=>yB,onboard_RTC_get_timetuple_to_str:()=>VB,onboard_RTC_set_datetime:()=>vB,onboard_RTC_settime_string:()=>YB,onboard_RTC_timestamp_totuple:()=>bB,rfid_readcontent:()=>_B,rfid_readid:()=>sB,rfid_status:()=>aB,rfid_write:()=>oB,rfid_write_return:()=>pB,sensor_LTR308:()=>ZV,sensor_adxl345_get_acceleration:()=>mB,sensor_aht11:()=>iB,sensor_bitbot_ALS:()=>nG,sensor_button_get_presses:()=>pG,sensor_button_is_pressed:()=>_G,sensor_button_was_pressed:()=>oG,sensor_compass_reset:()=>CB,sensor_ds18x20:()=>jV,sensor_eulerangles:()=>rB,sensor_get_acceleration:()=>uB,sensor_get_temperature:()=>nB,sensor_get_the_coprocessor_version:()=>SG,sensor_hp203:()=>eB,sensor_light:()=>lG,sensor_lm35:()=>$V,sensor_mixbot_get_gyro:()=>iG,sensor_mixbot_patrol_calibrate:()=>ZB,sensor_mixbot_patrol_value:()=>tG,sensor_mixbot_temperature:()=>eG,sensor_mixgo_LTR308:()=>qV,sensor_mixgo_button_attachInterrupt:()=>PV,sensor_mixgo_button_get_presses:()=>FV,sensor_mixgo_button_is_pressed:()=>DV,sensor_mixgo_button_was_pressed:()=>fV,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>UB,sensor_mixgo_cc_mmc5603_get_angle:()=>GB,sensor_mixgo_cc_mmc5603_get_magnetic:()=>BB,sensor_mixgo_light:()=>rG,sensor_mixgo_nova_LTR308:()=>zV,sensor_mixgo_nova_pin_near:()=>JV,sensor_mixgo_pin_near:()=>KV,sensor_mixgo_pin_near_double:()=>WV,sensor_mixgo_pin_near_single:()=>HV,sensor_mixgo_pin_pressed:()=>MB,sensor_mixgo_sant_color:()=>QV,sensor_mixgo_touch_slide:()=>TB,sensor_mixgocar42_button_attachInterrupt:()=>yV,sensor_mixgocar42_button_get_presses:()=>XV,sensor_mixgocar42_button_is_pressed:()=>vV,sensor_mixgocar42_button_was_pressed:()=>YV,sensor_mixgocar_battery_left:()=>$B,sensor_mixgocar_pin_near:()=>zB,sensor_mixgocar_pin_near_line:()=>QB,sensor_mixgocar_pin_near_state_change:()=>jB,sensor_mixgoce_pin_pressed:()=>IB,sensor_mixgoce_temperature:()=>kB,sensor_mixgome_temperature:()=>wB,sensor_mpu9250_calibrate_compass:()=>RB,sensor_mpu9250_field_strength:()=>gB,sensor_mpu9250_gesture:()=>lB,sensor_mpu9250_get_acceleration:()=>dB,sensor_mpu9250_get_gyro:()=>OB,sensor_mpu9250_get_magnetic:()=>EB,sensor_mpu9250_temperature:()=>cB,sensor_mpython_pin_pressed:()=>hB,sensor_mpython_qmi8658_get_gyro:()=>HB,sensor_mpython_qmi8658_temperature:()=>WB,sensor_onboard_compass_reset:()=>PB,sensor_onboard_mpu9250_calibrate_compass:()=>DB,sensor_onboard_mpu9250_field_strength:()=>FB,sensor_onboard_mpu9250_gesture:()=>SB,sensor_onboard_mpu9250_get_acceleration:()=>AB,sensor_onboard_mpu9250_get_gyro:()=>NB,sensor_onboard_mpu9250_get_magnetic:()=>LB,sensor_onboard_mpu9250_temperature:()=>fB,sensor_pin_near:()=>uG,sensor_pin_pressed:()=>aG,sensor_read:()=>TG,sensor_rm_acc:()=>qB,sensor_rm_battery_left:()=>JB,sensor_rm_pin_near_double:()=>KB,sensor_sound:()=>tB,simulated_light_sensor:()=>AG});var rt={};t.r(rt),t.d(rt,{serial_any:()=>FG,serial_print:()=>LG,serial_print_byte:()=>NG,serial_print_hex:()=>fG,serial_println:()=>DG,serial_read_from_ai:()=>UG,serial_readline:()=>vG,serial_readstr:()=>PG,serial_send_to_ai:()=>GG,serial_softserial:()=>YG,serial_softserial_new:()=>XG,system_input:()=>yG,system_print:()=>bG,system_print_end:()=>VG,system_print_inline:()=>xG,system_print_many:()=>BG});var lt={};t.r(lt),t.d(lt,{Panic_with_status_code:()=>ZG,Timer_init:()=>MU,base_delay:()=>EU,controls_delay:()=>sU,controls_delay_new:()=>_U,controls_end_program:()=>eU,controls_millis:()=>tU,controls_uname:()=>nU,reset:()=>iU,set_system_timer:()=>pU,system_bitbot_shutdown:()=>TU,system_device_name:()=>jG,system_device_serial_number:()=>$G,system_event_bus_source:()=>QG,system_event_bus_value:()=>zG,system_machine_reset:()=>IU,system_on_event:()=>KG,system_raise_event:()=>WG,system_reset:()=>kG,system_run_in_background:()=>wG,system_ticks_diff:()=>aU,system_timer:()=>rU,system_timer_init:()=>uU,system_timestamp:()=>JG,system_value:()=>qG,system_wait:()=>HG,system_wdt_feed:()=>dU,system_wdt_init:()=>lU,time_ticks_diff:()=>mU,timer:()=>oU,timer2:()=>hU});var dt={};t.r(dt),t.d(dt,{Air_daily_content:()=>PU,Air_now_content:()=>SU,Geo_moon_content:()=>YU,Geo_sun_content:()=>vU,Life_suggestion_content:()=>LU,Location_search_content:()=>DU,Tide_daily_content:()=>NU,WEATHER_DAILY:()=>RU,WEATHER_HOUR:()=>cU,WEATHER_NOW:()=>OU,Weather_alarm_content:()=>AU,Weather_daily:()=>fU,Weather_daily_content:()=>FU,Weather_now:()=>gU,Weather_now_content:()=>CU});var It={};t.r(It),t.d(It,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>bU});var Tt={};t.r(Tt),t.d(Tt,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>VU});var Mt={};t.r(Mt),t.d(Mt,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>GU});var ht={};t.r(ht),t.d(ht,{controls_pin_attachInterrupt:()=>ow,inout_analog_atten:()=>zU,inout_analog_write:()=>qU,inout_analog_write_init:()=>tw,inout_analog_write_set:()=>QU,inout_analog_write_set_freq:()=>iw,inout_digital_init:()=>ZU,inout_digital_read:()=>JU,inout_digital_write:()=>KU,inout_highlow:()=>WU,inout_pinMode:()=>nw,inout_pin_attachInterrupt:()=>$U,inout_pin_pressed:()=>jU,inout_pin_pressed_init:()=>ew,pin_pressed:()=>_w,pin_pressed_init:()=>sw});var mt={};t.r(mt),t.d(mt,{analog_input:()=>Mw,analog_output:()=>mw,espnow_channel:()=>dw,haskylens_model:()=>Iw,i2c_A_pin:()=>Ew,i2c_B_pin:()=>Ow,pins_analog:()=>Sw,pins_analog_pin:()=>Aw,pins_axis:()=>ww,pins_brightness:()=>kw,pins_builtinimg:()=>yw,pins_builtinimg_extern:()=>bw,pins_button:()=>Dw,pins_buttonB:()=>fw,pins_dac:()=>Lw,pins_dac_pin:()=>Nw,pins_digital:()=>aw,pins_digital_dot:()=>jw,pins_digital_pin:()=>uw,pins_exlcdh:()=>Gw,pins_exlcdv:()=>Uw,pins_imglist:()=>xw,pins_input_pin:()=>rw,pins_one_more:()=>zw,pins_output_pin:()=>lw,pins_playlist:()=>Vw,pins_playlist_extern:()=>Bw,pins_pwm:()=>Fw,pins_pwm_pin:()=>Pw,pins_radio_datarate:()=>Qw,pins_radio_power:()=>qw,pins_serial:()=>Xw,pins_tone_notes:()=>Jw,pins_touch:()=>Yw,pins_touch_pin:()=>vw,pins_tts_bgmusic:()=>Kw,pins_tts_builtin_music:()=>Ww,pins_tts_voice:()=>Hw,pwm_input:()=>Tw,pwm_output:()=>hw,spi_A_pin:()=>Rw,spi_B_pin:()=>cw,spi_C_pin:()=>gw,spi_D_pin:()=>Cw,timer_id_pin:()=>$w});var Et={};t.r(Et),t.d(Et,{inout_analog_atten:()=>ak,inout_analog_write:()=>ik,inout_analog_write_init:()=>pk,inout_analog_write_set:()=>nk,inout_digital_init:()=>ok,inout_digital_read:()=>ek,inout_digital_write:()=>tk,inout_highlow:()=>Zw,inout_pin_attachInterrupt:()=>_k,inout_pin_pressed:()=>sk,inout_pin_pressed_init:()=>uk});var Ot={};t.r(Ot),t.d(Ot,{analog_input:()=>Ok,analog_output:()=>ck,espnow_channel:()=>mk,haskylens_model:()=>Ek,i2c_A_pin:()=>gk,i2c_B_pin:()=>Ck,pins_analog:()=>fk,pins_analog_pin:()=>Dk,pins_axis:()=>kk,pins_brightness:()=>Kk,pins_builtinimg:()=>Vk,pins_builtinimg_extern:()=>Bk,pins_button:()=>lk,pins_buttonB:()=>dk,pins_dac:()=>Yk,pins_dac_pin:()=>vk,pins_digital:()=>rk,pins_digital_dot:()=>tH,pins_digital_pin:()=>Ik,pins_exlcdh:()=>Hk,pins_exlcdv:()=>Wk,pins_imglist:()=>Gk,pins_input_pin:()=>Tk,pins_interrupt:()=>bk,pins_one_more:()=>Zk,pins_output_pin:()=>Mk,pins_playlist:()=>Uk,pins_playlist_extern:()=>wk,pins_pwm:()=>Pk,pins_pwm_input:()=>hk,pins_pwm_pin:()=>Fk,pins_radio_datarate:()=>$k,pins_radio_power:()=>jk,pins_serial:()=>xk,pins_tone_notes:()=>zk,pins_touch:()=>yk,pins_touch_pin:()=>Xk,pins_tts_bgmusic:()=>Qk,pins_tts_builtin_music:()=>qk,pins_tts_voice:()=>Jk,pwm_output:()=>Rk,spi_A_pin:()=>Sk,spi_B_pin:()=>Ak,spi_C_pin:()=>Lk,spi_D_pin:()=>Nk,timer_id_pin:()=>eH});const Rt=Blockly,ct=Mixly,gt={NAME_TYPE:"VARIABLE",allVariables:function(t){var e;if(t.getDescendants)e=t.getDescendants();else{if(!t.getAllBlocks)throw"Not Block or Workspace: "+t;e=t.getAllBlocks()}for(var i=Object.create(null),n=0;n1&&(o+=n)):i=o}else i="i";return i}},Ct=gt; /** * @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 St{constructor(t,e){if(this.variablePrefix_=e||"",this.reservedDict_=Object.create(null),t)for(var i=t.split(","),n=0;n0;s--)e.getInputTargetBlock("IF"+s)&&e.getInputTargetBlock("IF"+s).previousConnection?i[s]=e.getInputTargetBlock("IF"+s).previousConnection:i[s]=null,this.removeInput("IF"+s),e.getInputTargetBlock("DO"+s)&&e.getInputTargetBlock("DO"+s).previousConnection?n[s]=e.getInputTargetBlock("DO"+s).previousConnection:n[s]=null,this.removeInput("DO"+s);this.elseifCount_=parseInt(t.getAttribute("elseif"),10),this.elseCount_=parseInt(t.getAttribute("else"),10);for(s=1;s<=this.elseifCount_;s++)this.appendValueInput("IF"+s).setCheck([Boolean,Number]).appendField(Rt.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+s).appendField(Rt.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(Rt.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(t){var e=t.newBlock("controls_if_if");e.initSvg();for(var i=e.getInput("STACK").connection,n=1;n<=this.elseifCount_;n++){var s=t.newBlock("controls_if_elseif");s.initSvg(),i.connect(s.previousConnection),i=s.nextConnection}if(this.elseCount_){var _=t.newBlock("controls_if_else");_.initSvg(),i.connect(_.previousConnection)}return e},compose:function(t){this.elseCount_&&this.removeInput("ELSE"),this.elseCount_=0;for(var e=this.elseifCount_;e>0;e--)this.removeInput("IF"+e),this.removeInput("DO"+e);this.elseifCount_=0;for(var i=t.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(t){for(var e=t.getInputTargetBlock("STACK"),i=1;e;){switch(e.type){case"controls_if_elseif":var n=this.getInput("IF"+i),s=this.getInput("DO"+i);e.valueConnection_=n&&n.connection.targetConnection,e.statementConnection_=s&&s.connection.targetConnection,i++;break;case"controls_if_else":s=this.getInput("ELSE");e.statementConnection_=s&&s.connection.targetConnection;break;default:throw"Unknown block type."}e=e.nextConnection&&e.nextConnection.targetBlock()}},rebuildShape_:function(){var t=[null],e=[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),t.push(s.connection.targetConnection),e.push(_.connection.targetConnection),n++}this.updateShape_(),this.reconnectChildBlocks_(t,e,i)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var t=1;this.getInput("IF"+t);)this.removeInput("IF"+t),this.removeInput("DO"+t),t++;for(t=1;t<=this.elseifCount_;t++)this.appendValueInput("IF"+t).setCheck([Number,Boolean]).appendField(Rt.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+t).appendField(Rt.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(Rt.Msg.CONTROLS_IF_MSG_ELSE)},reconnectChildBlocks_:function(t,e,i){for(var n=1;n<=this.elseifCount_;n++)t[n]&&t[n].reconnect(this,"IF"+n),e[n]&&e[n].reconnect(this,"DO"+n);i&&i.reconnect(this,"ELSE")}},kt={init:function(){this.setColour(xt),this.appendValueInput("FROM").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.PYTHON_RANGE).appendField(Rt.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.PYTHON_RANGE_STEP),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Rt.Msg.MIXLY_PYTHON_CONTROLS_RANGE_TOOLTIP)}},Ht={init:function(){this.setColour(xt),this.appendValueInput("LIST").setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.CONTROLS_FOREACH_INPUT),this.appendValueInput("VAR").appendField(Rt.Msg.CONTROLS_FOREACH_INPUT_ITEM),this.appendStatementInput("DO").appendField(Rt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip((function(){return Rt.Msg.CONTROLS_FOR_TOOLTIP.replace("“%1”","")}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},Wt={init:function(){this.setColour(xt),this.appendValueInput("BOOL").setCheck([Boolean,Number]).appendField(Rt.Msg.MIXLY_MICROBIT_JS_CURRENT).appendField(new Rt.FieldDropdown(this.OPERATORS),"MODE"),this.appendStatementInput("DO").appendField(Rt.Msg.LANG_CONTROLS_WHILEUNTIL_TITLE_REPEAT+Rt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE");return{WHILE:Rt.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE,UNTIL:Rt.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL}[e]}))}},Kt={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PYTHON_TRY),this.appendStatementInput("try"),this.appendValueInput("IF1").appendField(Rt.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO1").appendField(""),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new Rt.icons.MutatorIcon(["controls_except","controls_finally"],this)),this.setTooltip(Rt.Msg.MIXLY_MIXPY_CONTROL_TRY_TOOLTIP),this.elseifCount_=1,this.elseCount_=0},mutationToDom:function(){if(!this.elseifCount_&&!this.elseCount_)return null;var t=document.createElement("mutation");return this.elseifCount_&&t.setAttribute("elseif",this.elseifCount_),this.elseCount_&&t.setAttribute("else",1),t},domToMutation:function(t){var e=this,i=[],n=[];this.elseCount_&&this.removeInput("ELSE");for(var s=this.elseifCount_;s>0;s--)e.getInputTargetBlock("IF"+s)&&e.getInputTargetBlock("IF"+s).previousConnection?i[s]=e.getInputTargetBlock("IF"+s).previousConnection:i[s]=null,this.removeInput("IF"+s),e.getInputTargetBlock("DO"+s)&&e.getInputTargetBlock("DO"+s).previousConnection?n[s]=e.getInputTargetBlock("DO"+s).previousConnection:n[s]=null,this.removeInput("DO"+s);this.elseifCount_=parseInt(t.getAttribute("elseif"),10),this.elseCount_=parseInt(t.getAttribute("else"),10);for(s=1;s<=this.elseifCount_;s++)this.appendValueInput("IF"+s).setCheck([Boolean,Number]).appendField(Rt.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO"+s).appendField("");this.elseCount_&&this.appendStatementInput("ELSE").appendField(Rt.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(t){var e=t.newBlock("controls_try");e.initSvg();for(var i=e.getInput("STACK").connection,n=1;n<=this.elseifCount_;n++){var s=t.newBlock("controls_except");s.initSvg(),i.connect(s.previousConnection),i=s.nextConnection}if(this.elseCount_){var _=t.newBlock("controls_finally");_.initSvg(),i.connect(_.previousConnection)}return e},compose:function(t){this.elseCount_&&this.removeInput("ELSE"),this.elseCount_=0;for(var e=this.elseifCount_;e>0;e--)this.removeInput("IF"+e),this.removeInput("DO"+e);this.elseifCount_=0;for(var i=t.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(t){for(var e=t.getInputTargetBlock("STACK"),i=1;e;){switch(e.type){case"controls_except":var n=this.getInput("IF"+i),s=this.getInput("DO"+i);e.valueConnection_=n&&n.connection.targetConnection,e.statementConnection_=s&&s.connection.targetConnection,i++;break;case"controls_finally":s=this.getInput("ELSE");e.statementConnection_=s&&s.connection.targetConnection;break;default:throw"Unknown block type."}e=e.nextConnection&&e.nextConnection.targetBlock()}},rebuildShape_:function(){var t=[null],e=[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),t.push(s.connection.targetConnection),e.push(_.connection.targetConnection),n++}this.updateShape_(),this.reconnectChildBlocks_(t,e,i)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var t=1;this.getInput("IF"+t);)this.removeInput("IF"+t),this.removeInput("DO"+t),t++;for(t=1;t<=this.elseifCount_;t++)this.appendValueInput("IF"+t).setCheck([Number,Boolean]).appendField(Rt.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO"+t).appendField("");this.elseCount_&&this.appendStatementInput("ELSE").appendField(Rt.Msg.MIXLY_PYTHON_FINALLY)},reconnectChildBlocks_:function(t,e,i){for(var n=1;n<=this.elseifCount_;n++)t[n]&&t[n].reconnect(this,"IF"+n),e[n]&&e[n].reconnect(this,"DO"+n);i&&i.reconnect(this,"ELSE")}},Jt={init:function(){this.setColour(xt);var t=new Rt.FieldDropdown(this.OPERATORS);this.appendDummyInput().appendField(t,"FLOW").appendField(Rt.Msg.LANG_CONTROLS_FLOW_STATEMENTS_INPUT_OFLOOP),this.setPreviousStatement(!0),this.setTooltip(Rt.Msg.MIXLY_PYTHON_CONTROLS_FLOW_STATEMENTS_TOOLTIP);var e=this;this.setTooltip((function(){var t=e.getFieldValue("FLOW");return{BREAK:Rt.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK,CONTINUE:Rt.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE}[t]}))},onchange:function(){if(this.workspace){var t=!1,e=this;do{if("controls_repeat"==e.type||"controls_for"==e.type||"controls_forEach"==e.type||"controls_repeat_ext"==e.type||"controls_whileUntil"==e.type||"do_while"==e.type){t=!0;break}e=e.getSurroundParent()}while(e);t?this.setWarningText(null):this.setWarningText(Rt.Msg.LANG_CONTROLS_FLOW_STATEMENTS_WARNING)}}},qt={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.LANG_CONTROLS_FOR_INPUT_WITH).appendField(new Rt.FieldTextInput("i"),"VAR"),this.appendValueInput("FROM").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_STEP),this.appendStatementInput("DO").appendField(Rt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){return Rt.Msg.CONTROLS_FOR_TOOLTIP.replace("%1",t.getFieldValue("VAR"))}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},Qt={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.LANG_CONTROLS_FOR_INPUT_WITH).appendField(new Rt.FieldTextInput("i"),"VAR"),this.appendValueInput("FROM").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_STEP),this.appendStatementInput("DO").appendField(Rt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){return Rt.Msg.MIXLY_PYTHON_CONTROLS_FOR_RANGE_TOOLTIP.replace("%1",t.getFieldValue("VAR"))}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}};Wt.OPERATORS=[[Rt.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"WHILE"],[Rt.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"UNTIL"]],Jt.OPERATORS=[[Rt.Msg.LANG_CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK,"BREAK"],[Rt.Msg.LANG_CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE,"CONTINUE"]];const zt={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.CONTROLS_IF_IF_TITLE_IF),this.appendStatementInput("STACK"),this.setTooltip(Rt.Msg.CONTROLS_IF_IF_TOOLTIP),this.contextMenu=!1}},jt={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.CONTROLS_IF_ELSEIF_TOOLTIP),this.contextMenu=!1}},$t={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.CONTROLS_IF_ELSE_TITLE_ELSE),this.setPreviousStatement(!0),this.setTooltip(Rt.Msg.CONTROLS_IF_ELSE_TOOLTIP),this.contextMenu=!1}},Zt={init:function(){this.setColour(xt),this.appendDummyInput().appendField("try"),this.appendStatementInput("STACK"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.contextMenu=!1}},te={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PYTHON_EXCEPT),this.setPreviousStatement(!0),this.setNextStatement(!0),this.contextMenu=!1,this.setTooltip(Rt.Msg.MIXLY_MIXPY_CONTROL_EXCEPT_TOOLTIP)}},ee={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PYTHON_FINALLY),this.setPreviousStatement(!0),this.contextMenu=!1,this.setTooltip(Rt.Msg.MIXLY_MIXPY_CONTROL_FINALLY_TOOLTIP)}},ie={init:function(){this.jsonInit({message0:Rt.Msg.CONTROLS_REPEAT_TITLE,args0:[{type:"input_value",name:"TIMES"}],previousStatement:null,nextStatement:null,colour:xt,tooltip:Rt.Msg.CONTROLS_REPEAT_TOOLTIP,helpUrl:Rt.Msg.CONTROLS_REPEAT_HELPURL}),this.appendStatementInput("DO")}},ne={init:function(){this.setColour(xt),this.appendValueInput("BOOL").appendField("lambda"),this.appendStatementInput("DO").appendField(Rt.Msg.MIXLY_STAT),this.setOutput(!0)}},se={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PYTHON_PASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_PYTHON_CONTROLS_PASS_TOOLTIP)}},_e={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PYTHON_CONTROLS_THREAD_START),this.appendValueInput("callback").appendField(Rt.Msg.MIXLY_PYTHON_CONTROLS_THREAD_USE),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_PYTHON_CONTROLS_THREAD_TOOLTIP)}},oe={init:function(){this.appendDummyInput().appendField(Rt.Msg.CONTROLS_REPEAT_TITLE_REPEAT+Rt.Msg.MIXLY_DO),this.appendStatementInput("input_data").setCheck(null),this.appendValueInput("select_data").setCheck(null).appendField(Rt.Msg.CONTROLS_OPERATOR_UNTIL).appendField(new Rt.FieldDropdown([[Rt.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"true"],[Rt.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"false"]]),"type"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setColour(xt),this.setTooltip("do-while loop"),this.setHelpUrl("")}},pe={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_OP_GARBAGE_COLLECT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},ae={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET_MEM_ALLOC),this.setOutput(!0)}},ue={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET_MEM_FREE),this.setOutput(!0)}},re={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET+Rt.Msg.MIXLY_DEVICE+"ID"),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Rt.Msg.PROCEDURES_DEFRETURN_RETURN+Rt.Msg.MIXLY_GET_UNIQUE_IDEN)}},le={init:function(){this.setColour(xt),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_RTC_TIMESTAMP),this.appendDummyInput().appendField(Rt.Msg.MIXLY_TIMESTAMP_TO_DATA),this.setInputsInline(!0),this.setOutput(!0,Number)}},de={init:function(){this.setColour(xt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET_UNIQUE_IDEN),this.setOutput(!0)}},Ie=230;Rt.FieldTextInput.math_number_validator=function(t){return String(t)},Rt.FieldTextInput.math_number_validator_include_blank=function(t){if(""===t)return"";return/^-?(0X|0x|0O|0o|0B|0b)?[a-fA-F0-9]{1,}(\.[a-fA-F0-9]+)?$/.test(t)?String(t):null};const Te={init:function(){this.setColour(Ie),this.appendDummyInput().appendField(new Rt.FieldTextInput("0",Rt.FieldTextInput.math_number_validator),"NUM"),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MATH_NUMBER_TOOLTIP)}},Me={init:function(){this.setColour(Ie);this.appendDummyInput("").appendField(Rt.Msg.MIXLY_PYTHON_MATH_CONSTANT).appendField(new Rt.FieldDropdown([["π","pi"],["e","e"]]),"CONSTANT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("CONSTANT");return{pi:Rt.Msg.MIXLY_PYTHON_MATH_CONSTANT_PI_TOOLTIP,e:Rt.Msg.MIXLY_PYTHON_MATH_CONSTANT_E_TOOLTIP}[e]}))}},he={init:function(){this.setColour(Ie);this.appendDummyInput("").appendField(Rt.Msg.MIXLY_PYTHON_MATH_CONSTANT).appendField(new Rt.FieldDropdown([["π","pi"],["e","e"]]),"CONSTANT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("CONSTANT");return{pi:Rt.Msg.MIXLY_PYTHON_MATH_CONSTANT_PI_MP_TOOLTIP,e:Rt.Msg.MIXLY_PYTHON_MATH_CONSTANT_E_MP_TOOLTIP}[e]}))}},me={init:function(){this.setColour(Ie),this.setOutput(!0),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Rt.FieldDropdown([["+","ADD"],["-","MINUS"],["×","MULTIPLY"],["÷","DIVIDE"],["%","QUYU"],["//","ZHENGCHU"],["**","POWER"]]),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{ADD:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,QUYU:Rt.Msg.MATH_MODULO_TOOLTIP,ZHENGCHU:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[e]}))}},Ee={init:function(){this.setColour(Ie),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Rt.FieldDropdown([["+=","ADD"],["-=","MINUS"],["×=","MULTIPLY"],["÷=","DIVIDE"],["%=","QUYU"],["//=","ZHENGCHU"],["**=","POWER"]]),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{ADD:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,QUYU:Rt.Msg.MATH_MODULO_TOOLTIP,ZHENGCHU:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:Rt.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[e]}))}},Oe={init:function(){this.setColour(Ie),this.setOutput(!0,Number),this.appendValueInput("A").setCheck(Number),this.appendValueInput("B").setCheck(Number).appendField(new Rt.FieldDropdown([["&","&"],["|","|"],[">>",">>"],["<<","<<"]]),"OP"),this.setInputsInline(!0),this.setTooltip("位运算")}},Re={init:function(){this.setColour(Ie),this.setOutput(!0,Number),this.appendValueInput("NUM").setCheck(Number).appendField(new Rt.FieldDropdown([["sin","SIN"],["cos","COS"],["tan","TAN"],["asin","ASIN"],["acos","ACOS"],["atan","ATAN"],["-","-"],["ln","LN"],["log10","LOG10"],["e^","EXP"],["10^","POW10"]]),"OP");var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{SIN:Rt.Msg.MATH_TRIG_TOOLTIP_SIN,COS:Rt.Msg.MATH_TRIG_TOOLTIP_COS,TAN:Rt.Msg.MATH_TRIG_TOOLTIP_TAN,ASIN:Rt.Msg.MATH_TRIG_TOOLTIP_ASIN,ACOS:Rt.Msg.MATH_TRIG_TOOLTIP_ACOS,ATAN:Rt.Msg.MATH_TRIG_TOOLTIP_ATAN,LN:Rt.Msg.MATH_SINGLE_TOOLTIP_LN}[e]}))}},ce={init:function(){var t=[[Rt.Msg.MATH_BIN,"bin"],[Rt.Msg.MATH_OCT,"oct"],[Rt.Msg.MATH_HEX,"hex"]];this.setColour(Ie),this.setOutput(!0,String),this.appendValueInput("NUM").setCheck(Number).appendField(new Rt.FieldDropdown(t),"OP");var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{bin:Rt.Msg.MATH_DEC_TOOLTIP_BIN,oct:Rt.Msg.MATH_DEC_TOOLTIP_OCT,hex:Rt.Msg.MATH_DEC_TOOLTIP_HEX}[t]}))}},ge={init:function(){var t=[[Rt.Msg.LANG_MATH_TO_ROUND,"round"],[Rt.Msg.LANG_MATH_TO_CEIL,"ceil"],[Rt.Msg.LANG_MATH_TO_FLOOR,"floor"],[Rt.Msg.MATH_ABS,"fabs"],[Rt.Msg.MATH_SQRT,"sqrt"]];this.setColour(Ie),this.appendValueInput("A").setCheck(Number).appendField(new Rt.FieldDropdown(t),"OP"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{sqrt:Rt.Msg.MATH_SINGLE_TOOLTIP_ROOT,fabs:Rt.Msg.MATH_SINGLE_TOOLTIP_ABS,sq:Rt.Msg.MATH_SINGLE_TOOLTIP_SQ,round:Rt.Msg.MATH_SINGLE_TOOLTIP_ROUND,ceil:Rt.Msg.MATH_SINGLE_TOOLTIP_CEIL,floor:Rt.Msg.MATH_SINGLE_TOOLTIP_FLOOR}[t]}))}},Ce={init:function(){var t=[[Rt.Msg.MIXLY_MAX,"max"],[Rt.Msg.MIXLY_MIN,"min"]];this.setColour(Ie),this.appendValueInput("A").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(new Rt.FieldDropdown(t),"OP").appendField("("),this.appendValueInput("B").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(","),this.appendDummyInput("").setAlign(Rt.inputs.Align.RIGHT).appendField(")"),this.setInputsInline(!0),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{max:Rt.Msg.MIXLY_TOOLTIP_MATH_MAX,min:Rt.Msg.MIXLY_TOOLTIP_MATH_MIN}[t]}))}},Se={init:function(){var t=[[Rt.Msg.MATH_TWO,"two"],[Rt.Msg.MATH_EIGHT,"eight"],[Rt.Msg.MATH_TEN,"ten"],[Rt.Msg.MATH_SIXTEEN,"sixteen"]];this.setColour(Ie),this.appendDummyInput("").appendField(Rt.Msg.MATH_BA),this.appendValueInput("NUM").appendField(new Rt.FieldDropdown(t),"OP").appendField(Rt.Msg.MATH_JinZhi).setCheck(Number),this.appendDummyInput("").appendField(Rt.Msg.MATH_ZHW).appendField(new Rt.FieldDropdown(t),"OP2").appendField(Rt.Msg.MATH_JinZhi),this.setFieldValue("ten","OP2"),this.setOutput(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP"),i={two:Rt.Msg.MATH_Before_two,eight:Rt.Msg.MATH_Before_eight,ten:Rt.Msg.MATH_Before_ten,sixteen:Rt.Msg.MATH_Before_sixteen},n=e.getFieldValue("OP2"),s={two:Rt.Msg.MATH_Behind_two,eight:Rt.Msg.MATH_Behind_eight,ten:Rt.Msg.MATH_Behind_ten,sixteen:Rt.Msg.MATH_Behind_sixteen};return i[t]+s[n]}))}},Ae={init:function(){var t=[[Rt.Msg.LANG_MATH_INT,"int"],[Rt.Msg.LANG_MATH_FLOAT,"float"]];this.setColour(Ie),this.setOutput(!0,Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_RANDOM).appendField(new Rt.FieldDropdown(t),"TYPE"),this.appendValueInput("FROM").setCheck(Number).appendField(Rt.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.LANG_MATH_RANDOM_INT_INPUT_TO),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("TYPE"),i={int:Rt.Msg.LANG_MATH_INT,float:Rt.Msg.LANG_MATH_FLOAT_RANDOM};return Rt.Msg.MATH_RANDOM_INT_TOOLTIP+i[t]}))}},Le={init:function(){this.setColour(Ie),this.setOutput(!0,Number),this.appendValueInput("VALUE").setCheck(Number).appendField(Rt.Msg.LANG_MATH_CONSTRAIN_INPUT_CONSTRAIN),this.appendValueInput("LOW").setCheck(Number).appendField(Rt.Msg.LANG_MATH_CONSTRAIN_INPUT_LOW),this.appendValueInput("HIGH").setCheck(Number).appendField(Rt.Msg.LANG_MATH_CONSTRAIN_INPUT_HIGH),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MATH_CONSTRAIN_TOOLTIP)}},Ne={init:function(){this.setColour(Ie),this.appendValueInput("NUM",Number).appendField(Rt.Msg.MIXLY_MAP).setCheck(Number),this.appendValueInput("fromLow",Number).appendField(Rt.Msg.MIXLY_MAP_FROM).setCheck(Number),this.appendValueInput("fromHigh",Number).appendField(",").setCheck(Number),this.appendValueInput("toLow",Number).appendField(Rt.Msg.MIXLY_MAP_TO).setCheck(Number),this.appendValueInput("toHigh",Number).appendField(",").setCheck(Number),this.appendDummyInput("").appendField("]"),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_MATH_MAP)}},De={init:function(){this.setColour(Ie),this.appendDummyInput().appendField(new Rt.FieldTextInput("0",Rt.FieldTextInput.math_number_validator_include_blank),"NUM"),this.setOutput(!0),this.setTooltip(Rt.Msg.MATH_NUMBER_TOOLTIP)}},fe={init:function(){this.setColour(Ie),this.appendValueInput("NUM").setCheck(Number).appendField(Rt.Msg.LANG_MATH_RANDOM_SEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_MATH_RANDOM_SEED)}},Fe={init:function(){this.setColour(Ie),this.setOutput(!0,Number),this.appendValueInput("VALUE").setCheck(Number),this.appendValueInput("VAR").setCheck(Number).appendField(Rt.Msg.MATH_ROUND).appendField(Rt.Msg.TEXT_KEEP),this.appendDummyInput().appendField(Rt.Msg.TEXT_DECIMAL),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MATH_ROUND_NEW_TOOLTIP)}},Pe={init:function(){var t=[[Rt.Msg.MIXLY_TO_INT,"int"],[Rt.Msg.MIXLY_TO_FLOAT,"float"],[Rt.Msg.MIXLY_TO_BITES,"b"],[Rt.Msg.LANG_MATH_BYTE+Rt.Msg.MIXLY_TO_INT,"bti"]];this.setColour(Ie),this.appendValueInput("VAR").appendField(new Rt.FieldDropdown(t),"TOWHAT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("TOWHAT");return{int:Rt.Msg.MIXLY_PYTHON_TOOLTIP_TOINT,float:Rt.Msg.MIXLY_PYTHON_TOOLTIP_TOFLOAT,b:Rt.Msg.MIXLY_TOOLTIP_TEXT_TOBYTE}[t]}))}},ve={init:function(){var t=[[Rt.Msg.MIXLY_TO_INT,"int"],[Rt.Msg.MIXLY_TO_FLOAT,"float"]];this.setColour(Ie),this.appendValueInput("VAR").appendField(new Rt.FieldDropdown(t),"TOWHAT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("TOWHAT");return{int:Rt.Msg.MIXLY_TOOLTIP_TEXT_TOINT,float:Rt.Msg.MIXLY_TOOLTIP_TEXT_TOFLOAT}[t]}))}},Ye=Ne,Xe={init:function(){this.setColour(Ie),this.appendValueInput("VAR").appendField(Rt.Msg.LANG_MATH_BYTE+Rt.Msg.MIXLY_TO_HEX),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_PYTHON_TOOLTIP_TOHEX)}},ye={init:function(){this.setColour(Ie),this.itemCount_=1,this.setMutator(new Rt.icons.MutatorIcon(["lists_create_with_item"],this)),this.appendDummyInput("DUMMY").appendField(Rt.Msg.MIXLY_PRODUCT+Rt.Msg.MIXLY_GENERATE_CARTESIAN_PRODUCT),this.appendValueInput("REPEAT").appendField(Rt.Msg.MIXLY_EVERY_PER_ELEPER_ELEMENT),this.appendDummyInput().appendField(Rt.Msg.CONTROLS_REPEAT_TITLE_TIMES),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0),this.setTooltip(Rt.Msg.LISTS_CREATE_WITH_PYTHON_TOOLTIP),this.updateShape_()},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=t.newBlock("lists_create_with_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;n1&&"\\"===t.charAt(0)){var e=t.charAt(1);if("0"===e||"b"===e||"f"===e||"n"===e||"r"===e||"t"===e||"\\"===e||"'"===e)return String(t).substring(0,2);if("x"===e&&"0"===t.charAt(2)&&"B"===t.charAt(3))return String(t).substring(0,4)}return String(t).substring(0,1)};const we={init:function(){this.setColour(Ve),this.appendDummyInput().appendField(this.newQuote_(!0)).appendField(new Rt.FieldTextInput("",Rt.FieldTextInput.char_validator),"TEXT").appendField(this.newQuote_(!1)),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.TEXT_CHAR_TOOLTIP)},newQuote_:function(t){if(1==t)var e="../../media/quote2.png";else e="../../media/quote3.png";return new Rt.FieldImage(e,7,12,'"')}},ke={init:function(){this.setColour(Ve),this.appendValueInput("A").setCheck([String,Number]),this.appendValueInput("B").setCheck([String,Number]).appendField(Rt.Msg.MIXLY_TEXT_JOIN),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_TEXT_JOIN)}},He={init:function(){this.setColour(Ve),this.appendValueInput("VAR").setCheck(Number).appendField(Rt.Msg.MIXLY_TOCHAR),this.setOutput(!0,String),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_TEXT_TOCHAR)}},We={init:function(){this.setColour(Ve),this.appendValueInput("VAR").setCheck(String).appendField(Rt.Msg.MIXLY_TOASCII),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_TEXT_TOASCII)}},Ke={init:function(){this.setColour(Ve),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_TOSTRING),this.setOutput(!0,String),this.setTooltip(Rt.Msg.MIXLY_PYTHON_TOOLTIP_TOTEXT)}},Je={init:function(){this.setColour(Ve),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_LENGTH),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_TEXT_LENGTH)}},qe={init:function(){this.WHERE_OPTIONS=[[Rt.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[Rt.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[Rt.Msg.TEXT_GET_INDEX_RANDOM+1+Rt.Msg.TEXT_CHARAT2,"RANDOM"]],this.setHelpUrl(Rt.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Ve),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT").setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.LISTS_GET_INDEX_GET,"MODE"),Rt.Msg.LISTS_GET_INDEX_TAIL&&this.appendDummyInput("TAIL").appendField(Rt.Msg.LISTS_GET_INDEX_TAIL),this.setInputsInline(!0),this.setOutput(!0),this.updateAt_(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=t.getFieldValue("WHERE"),n="";switch(e+" "+i){case"GET FROM_START":case"GET FROM_END":n=Rt.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM;break;case"GET RANDOM":n=Rt.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM;break;case"GET_REMOVE FROM_START":case"GET_REMOVE FROM_END":n=Rt.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM;break;case"GET_REMOVE RANDOM":n=Rt.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM}return"FROM_START"!=i&&"FROM_END"!=i||(n+=" "+Rt.Msg.LISTS_INDEX_FROM_START_TOOLTIP.replace("%1",Rt.Msg.ONE_BASED_INDEXING?"#1":"#0")),n}));var e=this;this.setTooltip((function(){var t=e.getFieldValue("WHERE"),i={FROM_START:Rt.Msg.LISTS_GET_INDEX_FROM_START,FROM_END:Rt.Msg.LISTS_GET_INDEX_FROM_END,RANDOM:Rt.Msg.TEXT_GET_INDEX_RANDOM};return Rt.Msg.PROCEDURES_DEFRETURN_RETURN+Rt.Msg.MIXLY_MICROBIT_TYPE_STRING+i[t]+"n"+Rt.Msg.TEXT_CHARAT2}))},mutationToDom:function(){var t=document.createElement("mutation");t.setAttribute("statement",!this.outputConnection);var e=this.getInput("AT").type==Rt.INPUT_VALUE;return t.setAttribute("at",e),t},domToMutation:function(t){var e="true"==t.getAttribute("statement");this.updateStatement_(e),t="false"!=t.getAttribute("at"),this.updateAt_(t)},updateStatement_:function(t){t!=!this.outputConnection&&(this.unplug(!0,!0),t?(this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)):(this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0)))},updateAt_:function(t){this.removeInput("AT"),this.removeInput("ORDINAL",!0),t?(this.appendValueInput("AT").setCheck(Number),Rt.Msg.TEXT_CHARAT2&&this.appendDummyInput("ORDINAL").appendField(Rt.Msg.TEXT_CHARAT2)):this.appendDummyInput("AT");var e=new Rt.FieldDropdown(this.WHERE_OPTIONS,(function(e){var i="FROM_START"==e||"FROM_END"==e;if(i!=t){var n=this.sourceBlock_;return n.updateAt_(i),n.setFieldValue(e,"WHERE"),null}}));this.getInput("AT").appendField(e,"WHERE"),Rt.Msg.LISTS_GET_INDEX_TAIL&&this.moveInputBefore("TAIL",null)}},Qe={init:function(){this.setHelpUrl(Rt.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Ve),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT").setCheck(Number).appendField(Rt.Msg.LISTS_GET_INDEX_GET+" "+Rt.Msg.LISTS_GET_INDEX_FROM_START),this.appendDummyInput().appendField(Rt.Msg.TEXT_CHARAT2),this.setOutput(!0),this.setTooltip(Rt.Msg.PROCEDURES_DEFRETURN_RETURN+Rt.Msg.MIXLY_MICROBIT_TYPE_STRING+Rt.Msg.LISTS_GET_INDEX_FROM_START+"n"+Rt.Msg.TEXT_CHARAT2)}},ze={init:function(){this.setHelpUrl(Rt.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Ve),this.appendValueInput("VAR").setCheck(String),this.appendDummyInput().appendField(Rt.Msg.TEXT_RANDOM_CHAR),this.setOutput(!0),this.setTooltip(Rt.Msg.TEXT_RANDOM_CHAR_TOOLTIP)}},je={init:function(){this.WHERE_OPTIONS_1=[[Rt.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[Rt.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[Rt.Msg.LISTS_GET_SUBLIST_START_FIRST,"FIRST"]],this.WHERE_OPTIONS_2=[[Rt.Msg.LISTS_GET_SUBLIST_END_FROM_START,"FROM_START"],[Rt.Msg.LISTS_GET_SUBLIST_END_FROM_END,"FROM_END"],[Rt.Msg.LISTS_GET_SUBLIST_END_LAST,"LAST"]],this.setHelpUrl(Rt.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(Ve),this.appendValueInput("VAR").setCheck(String),this.appendDummyInput("").appendField(Rt.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(Rt.Msg._GET_TEXT_SUBLIST_TOOLTIP)},mutationToDom:function(){var t=document.createElement("mutation"),e=this.getInput("AT1").type==Rt.INPUT_VALUE;t.setAttribute("at1",e);var i=this.getInput("AT2").type==Rt.INPUT_VALUE;return t.setAttribute("at2",i),t},domToMutation:function(t){var e="true"==t.getAttribute("at1"),i="true"==t.getAttribute("at2");this.updateAt_(1,e),this.updateAt_(2,i)},updateAt_:function(t,e){this.removeInput("AT"+t),this.removeInput("ORDINAL"+t,!0),e?(this.appendValueInput("AT"+t).setCheck(Number),Rt.Msg.TEXT_CHARAT2&&this.appendDummyInput("ORDINAL"+t).appendField(Rt.Msg.TEXT_CHARAT2)):this.appendDummyInput("AT"+t);var i=new Rt.FieldDropdown(this["WHERE_OPTIONS_"+t],(function(i){var n="FROM_START"==i||"FROM_END"==i;if(n!=e){var s=this.sourceBlock_;return s.updateAt_(t,n),s.setFieldValue(i,"WHERE"+t),null}}));this.getInput("AT"+t).appendField(i,"WHERE"+t),1==t&&(this.moveInputBefore("AT1","AT2"),this.getInput("ORDINAL1")&&this.moveInputBefore("ORDINAL1","AT2"))}},$e={init:function(){this.setHelpUrl(Rt.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(Ve),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT1").appendField(Rt.Msg.LISTS_GET_INDEX_GET+" "+Rt.Msg.LISTS_GET_INDEX_FROM_START),this.appendValueInput("AT2").appendField(Rt.Msg.LISTS_GET_SUBLIST_END_FROM_START),this.appendDummyInput().appendField(Rt.Msg.TEXT_CHARAT2),this.setInputsInline(!0),this.setOutput(!0,["List",String]),this.setTooltip(Rt.Msg._GET_TEXT_SUBLIST_TOOLTIP)}},Ze={init:function(){var t=[[Rt.Msg.MIXLY_EQUALS,"==="],[Rt.Msg.MIXLY_STARTSWITH,"startswith"],[Rt.Msg.MIXLY_ENDSWITH,"endswith"]];this.setColour(Ve),this.appendValueInput("STR1").setCheck(String),this.appendValueInput("STR2").appendField(new Rt.FieldDropdown(t),"DOWHAT").setCheck(String),this.setOutput(!0,[Boolean,Number]),this.setInputsInline(!0)}},ti={init:function(){this.setColour(Ve),this.appendValueInput("STR1").setCheck(String),this.appendValueInput("STR2").appendField(Rt.Msg.MIXLY_COMPARETO).setCheck(String),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_COMPARETO_HELP)}},ei={init:function(){var t=[[Rt.Msg.TEXT_UPPER,"upper"],[Rt.Msg.TEXT_TITLE,"title"],[Rt.Msg.TEXT_CAPITALIZE,"capitalize"],[Rt.Msg.TEXT_SWAPCASE,"swapcase"],[Rt.Msg.TEXT_LOWER,"lower"]];this.setColour(Ve),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new Rt.FieldDropdown(t),"CAPITAL").setCheck(String),this.setOutput(!0,String);var e=this;this.setTooltip((function(){var t=e.getFieldValue("CAPITAL");return{upper:Rt.Msg.MIXLY_MIXPY_TEXT_UPPER_TOOLTIP,title:Rt.Msg.MIXLY_MIXPY_TEXT_TITLE_TOOLTIP,swapcase:Rt.Msg.MIXLY_MIXPY_TEXT_SWAPCASE_TOOLTIP,capitalize:Rt.Msg.MIXLY_MIXPY_TEXT_CAPITALIZE_TOOLTIP,lower:Rt.Msg.MIXLY_MIXPY_TEXT_LOWER_TOOLTIP}[t]}))}},ii={init:function(){var t=[[Rt.Msg.TEXT_LJUST,"ljust"],[Rt.Msg.TEXT_CENTER,"center"],[Rt.Msg.TEXT_RJUST,"rjust"]];this.setColour(Ve),this.appendValueInput("VAR").appendField(new Rt.FieldDropdown(t),"CENTER").setCheck(String),this.appendValueInput("WID").appendField(Rt.Msg.MIXLY_WIDTH).setCheck(Number),this.appendValueInput("Symbol").appendField(Rt.Msg.MIXLY_RECT_Fill).setCheck(String),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Rt.Msg.MIXLY_MIXPY_TEXT_CENTER_TOOLTIP)}},ni={init:function(){this.setColour(Ve),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).setCheck(String),this.appendValueInput("STR").appendField(Rt.Msg.MIXLY_MID+Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER).setCheck(String),this.appendDummyInput().appendField(Rt.Msg.MIXLY_LIST_INDEX),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Rt.Msg.MIXLY_MIXPY_TEXT_FIND_TOOLTIP)}},si={init:function(){this.setColour(Ve),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_USE_STR).setCheck(String),this.appendValueInput("LIST").appendField(Rt.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_SEQ).setCheck("List","Tuple","Set","Dict"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_GET_STR),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Rt.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_TOOLTIP)}},_i={init:function(){this.setColour(Ve),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("STR1").appendField(Rt.Msg.MIXLY_MIXPY_REPLACE).setCheck(String),this.appendValueInput("STR2").appendField(Rt.Msg.LISTS_SET_INDEX_INPUT_TO).setCheck(String),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Rt.Msg.MIXLY_MIXPY_TEXT_REPLACE_TOOLTIP)}},oi={init:function(){this.setColour(Ve),this.appendValueInput("VAR"),this.appendValueInput("VAL").appendField(Rt.Msg.LIST_SPLIT_AS),this.appendDummyInput("").appendField(Rt.Msg.LIST_SPLIT),this.setOutput(!0,"List"),this.setTooltip(Rt.Msg.MIXLY_MIXPY_TEXT_SPLIT_TOOLTIP),this.setInputsInline(!0)}},pi={init:function(){var t=[[Rt.Msg.TEXT_TRIM_BOTH,"strip"],[Rt.Msg.TEXT_TRIM_LEFT,"lstrip"],[Rt.Msg.TEXT_TRIM_RIGHT,"rstrip"]];this.setColour(Ve),this.appendValueInput("VAR"),this.appendDummyInput("").appendField(Rt.Msg.TEXT_STRIM),this.appendDummyInput("").appendField(new Rt.FieldDropdown(t),"TOWHAT"),this.appendDummyInput("").appendField(Rt.Msg.TEXT_BLANK),this.setOutput(!0,String),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("TOWHAT");return{strip:Rt.Msg.TEXT_TRIM_BOTH_TOOLTIP,lstrip:Rt.Msg.TEXT_TRIM_LEFT_TOOLTIP,rstrip:Rt.Msg.TEXT_TRIM_RIGHT_TOOLTIP}[t]}))}},ai={init:function(){this.setColour(Ve),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROPYTHON_FORMAT),this.appendDummyInput("").appendField(new Rt.FieldTextInput("str"),"VAR"),this.itemCount_=1,this.updateShape_(),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setMutator(new Rt.icons.MutatorIcon(["text_create_with_item"],this)),this.setOutput(!0),this.setTooltip(Rt.Msg.MIXLY_MIXPY_TEXT_FORMAT_TOOLTIP)},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=t.newBlock("text_create_with_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;ne?t[e]:0==e?'"key"':'"key'+(e+1)+'"'),"KEY"+e).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},_n={init:function(){this.setColour(nn),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(Rt.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},on={init:function(){this.setColour(nn),this.appendDummyInput().appendField(Rt.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},pn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Rt.Msg.DICT_KEYS),this.setTooltip(Rt.Msg.DICTS_KEYS_TOOLTIP),this.setOutput(!0,"List")}},an={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(Rt.Msg.DICTS_GET_IN),this.appendDummyInput("").appendField(Rt.Msg.DICTS_ADD_VALUE),this.setOutput(!0),this.setTooltip(Rt.Msg.DICTS_GET_TOOLTIP)}},un={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(Rt.Msg.DICTS_GET_IN),this.appendDummyInput("").appendField(Rt.Msg.DICTS_ADD_VALUE),this.appendValueInput("VAR").appendField(Rt.Msg.DICTS_DEFAULT_VALUE),this.setOutput(!0),this.setTooltip(Rt.Msg.DICTS_GET_DEFAULT_TOOLTIP)}},rn={init:function(){this.setColour(nn),this.appendValueInput("DICT"),this.appendValueInput("KEY").appendField(Rt.Msg.DICTS_ADD),this.appendDummyInput(),this.appendValueInput("VAR").appendField(Rt.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.DICTS_ADD_OR_CHANGE_TOOLTIP)}},ln={init:function(){this.setColour(nn),this.appendValueInput("DICT"),this.appendValueInput("KEY").appendField(Rt.Msg.DICTS_DELETE_IN),this.appendDummyInput("").appendField(Rt.Msg.DICTS_DELETE_VALUE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.DICTS_DELETE_TOOLTIP)}},dn={init:function(){this.setColour(nn),this.appendValueInput("DICT2").setCheck("Dict").appendField(Rt.Msg.MAKE_DICT),this.appendValueInput("DICT").setCheck("Dict").appendField(Rt.Msg.DICT_UPDATE),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MID),this.setTooltip(Rt.Msg.DICTS_UPDATE_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},In={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Rt.Msg.DICT_CLEAR),this.setTooltip(Rt.Msg.DICTS_CLEAR_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Tn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Rt.Msg.DICT_ITEMS),this.setTooltip(Rt.Msg.DICTS_ITEMS_TOOLTIP),this.setOutput(!0,"List")}},Mn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Rt.Msg.DICT_VALUES),this.setTooltip(Rt.Msg.DICTS_VALUES_TOOLTIP),this.setOutput(!0,"List")}},hn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_LENGTH),this.setTooltip(Rt.Msg.DICT_LENGTH_TOOLTIP),this.setOutput(!0,Number)}},mn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Rt.Msg.DICT_DELDICT),this.setTooltip(Rt.Msg.DICTS_DEL_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},En={init:function(){this.MODE=[[Rt.Msg.DICTS_ADD_OR_CHANGE,"INSERT"],[Rt.Msg.MIXLY_MICROBIT_JS_DELETE_VAR,"DELETE"]],this.setHelpUrl(Rt.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("AT2"),this.appendValueInput("KEY"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).appendField(Rt.Msg.DICTS_ADD_VALUE),this.updateAt_(!0),this.setInputsInline(!0),this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0);var t=this;this.setTooltip((function(){var e="";switch(t.getFieldValue("WHERE")){case"INSERT":e=Rt.Msg.DICTS_ADD_TOOLTIP;break;case"DELETE":e=Rt.Msg.DICTS_DELETE_TOOLTIP}return e}))},mutationToDom:function(){var t=document.createElement("mutation"),e=this.getInput("AT2").type==Rt.INPUT_VALUE;return t.setAttribute("at2",e),t},domToMutation:function(t){var e="true"==t.getAttribute("at2");this.updateAt_(e)},updateAt_:function(t){this.removeInput("AT2"),this.removeInput("ORDINAL",!0),t?this.appendValueInput("AT2").setCheck(Number):this.appendDummyInput("AT2");var e=new Rt.FieldDropdown(this.MODE,(function(e){var i="INSERT"==e;if(i!=t){var n=this.sourceBlock_;return n.updateAt_(i),n.setFieldValue(e,"WHERE"),null}}));this.getInput("AT2").appendField(e,"WHERE")}},On={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Rt.Msg.blockpy_DICT_POP),this.appendValueInput("KEY"),this.appendDummyInput("").appendField(Rt.Msg.DICTS_ADD_VALUE),this.setTooltip(Rt.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(Rt.Msg.DICTS_SET_DEFAULT),this.appendDummyInput("").appendField(Rt.Msg.DICTS_DEFAULT_VALUE),this.appendValueInput("VAR"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.DICTS_SETDEFAULT_TOOLTIP)}},cn={init:function(){this.setColour(nn),this.appendDummyInput("").appendField(new Rt.FieldLabel(Rt.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 Rt.icons.MutatorIcon(["dicts_create_with_item"],this)),this.setTooltip(Rt.Msg.DICTS_CREATE_WITH_TOOLTIP)},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=t.newBlock("dicts_create_with_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;ne?t[e]:0==e?'"key"':'"key'+(e+1)+'"'),"KEY"+e).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},gn={init:function(){this.setColour(nn),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_TODICT),this.setOutput(!0),this.setTooltip(Rt.Msg.MIXLY_PYTHON_TOOLTIP_TODICT)}},Cn={init:function(){this.setColour(nn),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_TO_JSON),this.setTooltip(Rt.Msg.MIXLY_TO_JSON_TOOLTIP),this.setOutput(!0)}},Sn={init:function(){this.setColour(nn),this.appendValueInput("VAR"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_CONVERT_TO_JSON),this.setTooltip(Rt.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(Rt.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP),this.setOutput(!0)}},Ln={init:function(){this.setColour(nn),this.appendValueInput("DICT"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_TO_JSON),this.setTooltip(Rt.Msg.MIXLY_TO_JSON_TOOLTIP),this.setOutput(!0)}},Nn=210,Dn={init:function(){var t=Rt.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 Rt.FieldDropdown(t),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{EQ:Rt.Msg.LOGIC_COMPARE_TOOLTIP_EQ,NEQ:Rt.Msg.LOGIC_COMPARE_TOOLTIP_NEQ,LT:Rt.Msg.LOGIC_COMPARE_TOOLTIP_LT,LTE:Rt.Msg.LOGIC_COMPARE_TOOLTIP_LTE,GT:Rt.Msg.LOGIC_COMPARE_TOOLTIP_GT,GTE:Rt.Msg.LOGIC_COMPARE_TOOLTIP_GTE}[t]})),this.prevBlocks_=[null,null]}},fn={init:function(){var t=Rt.RTL?[[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]],e=Rt.RTL?[[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]];this.setColour(Nn),this.setOutput(!0,Boolean),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Rt.FieldDropdown(t),"OP1"),this.appendValueInput("C").appendField(new Rt.FieldDropdown(e),"OP2"),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_PYTHON_LOGIC_COMPARE_CONTINOUS_TOOLTIP)}},Fn={init:function(){var t=[[Rt.Msg.LOGIC_OPERATION_AND,"AND"],[Rt.Msg.LOGIC_OPERATION_OR,"OR"],[Rt.Msg.LOGIC_OPERATION_NOR,"NOR"],[Rt.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 Rt.FieldDropdown(t),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{AND:Rt.Msg.LOGIC_OPERATION_TOOLTIP_AND,OR:Rt.Msg.LOGIC_OPERATION_TOOLTIP_OR,NOR:Rt.Msg.LOGIC_OPERATION_TOOLTIP_NOR,XOR:Rt.Msg.LOGIC_OPERATION_TOOLTIP_XOR}[t]}))}},Pn={init:function(){this.setColour(Nn),this.setOutput(!0,Boolean),this.appendValueInput("BOOL").setCheck([Number,Boolean]).appendField(Rt.Msg.LOGIC_NEGATE_TITLE),this.setTooltip(Rt.Msg.LOGIC_NEGATE_TOOLTIP)}},vn={init:function(){var t=[[Rt.Msg.LOGIC_BOOLEAN_TRUE,"TRUE"],[Rt.Msg.LOGIC_BOOLEAN_FALSE,"FALSE"]];this.setColour(Nn),this.setOutput(!0,Boolean),this.appendDummyInput().appendField(new Rt.FieldDropdown(t),"BOOL"),this.setTooltip(Rt.Msg.LOGIC_BOOLEAN_TOOLTIP)}},Yn={init:function(){this.setColour(Nn),this.setOutput(!0),this.appendDummyInput().appendField(Rt.Msg.LOGIC_NULL),this.setTooltip(Rt.Msg.LOGIC_NULL_TOOLTIP)}},Xn={init:function(){this.setColour(Nn),this.appendValueInput("A"),this.appendValueInput("B").appendField(Rt.Msg.LOGIC_TERNARY_IF_TRUE),this.appendValueInput("C").appendField(Rt.Msg.LOGIC_TERNARY_IF_FALSE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_LOGIT_TRUEORFALSE)}},yn={init:function(){var t=[[Rt.Msg.TEXT_APPEND_TO,"in"],[Rt.Msg.MIXLY_PYTHON_LOGIC_IS_NOT_IN,"not in"]];this.setColour(Nn),this.appendValueInput("A"),this.appendValueInput("B").setCheck([String,"List"]).appendField(new Rt.FieldDropdown(t),"BOOL"),this.appendDummyInput("").appendField(Rt.Msg.MICROBIT_LOGIC_IS_IN),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Rt.Msg.IN)}},bn={init:function(){var t=[[Rt.Msg.MIXLY_PYTHON_LOGIC_IS,"is"],[Rt.Msg.MIXLY_PYTHON_LOGIC_IS_NOT,"is not"]];this.setColour(Nn),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Rt.FieldDropdown(t),"BOOL"),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_PYTHON_LOGIC_IS_TOOLTIP)}},xn={init:function(){this.setColour(Nn),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_TOBOOL),this.setOutput(!0,Boolean),this.setTooltip(Rt.Msg.MIXLY_PYTHON_TOOLTIP_TOBOOL)}},Vn={init:function(){this.setColour(0),this.appendValueInput("fn").setCheck(String).appendField(Rt.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(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"],[Rt.Msg.MIXLY_ADD,"a"],[Rt.Msg.MATH_BIN+Rt.Msg.MIXLY_ADD,"ab"],[Rt.Msg.MIXLY_R_W,"r+"],[Rt.Msg.MATH_BIN+Rt.Msg.MIXLY_R_W,"rb+"],[Rt.Msg.MIXLY_W_R,"w+"],[Rt.Msg.MATH_BIN+Rt.Msg.MIXLY_W_R,"wb+"],[Rt.Msg.MIXLY_A_R,"a+"],[Rt.Msg.MATH_BIN+Rt.Msg.MIXLY_A_R,"ab+"]]),"MODE"),this.appendValueInput("FILE").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_AS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=Rt.Msg.MIXLY_USE,n=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=Rt.Msg.MIXLY_BELONG;return i+{r:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[e]+_+n+s}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},Gn={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"]]),"MODE"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setOutput(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=Rt.Msg.MIXLY_USE,n=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=Rt.Msg.MIXLY_BELONG,o=Rt.Msg.PY_STORAGE_FILE_OBJECT;return i+{r:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[e]+_+n+s+o}))}},Un={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE);this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"]]),"MODE"),this.appendDummyInput().appendField(Rt.Msg.MIXPY_TEXT_ENCODE).appendField(new Rt.FieldDropdown([["ANSI","ANSI"],["gbk","gbk"],["utf-8","utf-8"]]),"CODE"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setOutput(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=Rt.Msg.MIXLY_USE,n=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=Rt.Msg.MIXLY_BELONG,o=Rt.Msg.PY_STORAGE_FILE_OBJECT;return i+{r:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[e]+_+n+s+o}))}},wn={init:function(){this.setColour(0),this.appendValueInput("data").setCheck(String).appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE),this.appendValueInput("FILE").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_WRITE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE+Rt.Msg.MIXLY_MICROBIT_TYPE_STRING+Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_WRITE)}},kn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.appendDummyInput().appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL,"read"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE,"readline"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES,"readlines"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String)}},Hn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.appendDummyInput().appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_NO_MORE_THAN_SIZE,"read"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE,"readline"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES_NO_MORE_THAN_SIZE,"readlines"]]),"MODE"),this.appendValueInput("SIZE").setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE,n=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER;return i+{read:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_NO_MORE_THAN_SIZE,readline:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE,readlines:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES_NO_MORE_THAN_SIZE}[e]+"x"+n}))}},Wn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.setNextStatement(!0),this.appendValueInput("SIZE").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String),this.setTooltip(Rt.Msg.MICROBIT_PYTHON_TYPE)}},Kn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Rt.Msg.HTML_FILE),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Boolean),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT1)}},Jn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILENAME),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILENAME)}},qn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CLOSE_FILE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CLOSE_FILE)}},Qn={init:function(){this.setColour(0),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_LIST_ALL_FILES),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,"List"),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_LIST_ALL_FILES)}};Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE;const zn={init:function(){this.setColour(0),this.appendDummyInput().appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE,"remove"],[Rt.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(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE)}},jn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILE_SIZE),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_SIZE),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILE_SIZE+Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_SIZE)}},$n={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_RETURN_FILE),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_PRESENT_LOCATION),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_TELL)}},Zn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_SET_FILE_POSITION),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CURRENT_POSITION),this.appendDummyInput().appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_START,"start"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_CURRENT,"current"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_END,"end"]]),"MODE"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_OFFSET),this.appendValueInput("SIZE").setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_SET_FILE_POSITION+Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CURRENT_POSITION,n=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER,s=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_OFFSET;return i+" "+{start:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_START,current:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_CURRENT,end:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_END}[e]+s+"x"+n}))}},ts={init:function(){this.setColour(0),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_CURRENT_DIR),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,"List"),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_CURRENT_DIR)}},es={init:function(){this.setColour(0),this.appendValueInput("PATH").setCheck(String).appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_PATH),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_SET),this.appendDummyInput().appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,"mkdir"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MAKEDIRS,"makedirs"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE");return Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_PATH+"x"+Rt.Msg.MIXLY_ESP32_SET+{mkdir:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,makedirs:Rt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKEDIRS}[e]}))}},is={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_RENAME),this.appendValueInput("NEWFILE").setCheck(String).appendField(Rt.Msg.MIXLY_AS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_RENAME)}},ns={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHANGE_DIR),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHANGE_DIR)}},ss={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_OR_NOT),this.appendDummyInput().appendField(new Rt.FieldDropdown([[Rt.Msg.HTML_FILE,"isfile"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_DIR,"isdir"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Boolean);let t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE");return Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH+"x"+Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_OR_NOT+{isfile:Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,isdir:Rt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKEDIRS}[e]}))}},_s={init:function(){this.setColour(0),this.appendValueInput("SPISUB").appendField(Rt.Msg.CONTROLS_FOR_INPUT_WITH+"SPI").setCheck("var"),this.appendValueInput("PINSUB").appendField("CS"),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_SETUP+Rt.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(Rt.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(Rt.Msg.MIXLY_SD_CARD),this.appendValueInput("DIR").setCheck(String).appendField(Rt.Msg.MIXLY_SDCARD_MOUNT),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip()}},ps={init:function(){var t=Rt.Procedures.findLegalName("",this),e=new Rt.FieldTextInput(t,Rt.Procedures.rename);e.setSpellcheck(!1),this.appendDummyInput().appendField(e,"NAME").appendField("","PARAMS"),this.setMutator(new Rt.icons.MutatorIcon(["procedures_mutatorarg"],this)),(this.workspace.options.comments||this.workspace.options.parentWorkspace&&this.workspace.options.parentWorkspace.options.comments)&&Rt.Msg.PROCEDURES_DEFNORETURN_COMMENT&&this.setCommentText(Rt.Msg.PROCEDURES_DEFNORETURN_COMMENT),this.setStyle("procedure_blocks"),this.setTooltip(Rt.Msg.PROCEDURES_DEFNORETURN_TOOLTIP),this.setHelpUrl(Rt.Msg.PROCEDURES_DEFNORETURN_HELPURL),this.arguments_=[],this.argumentVarModels_=[],this.setStatements_(!0),this.statementConnection_=null},setStatements_:function(t){this.hasStatements_!==t&&(t?(this.appendStatementInput("STACK").appendField(Rt.Msg.PROCEDURES_DEFNORETURN_DO),this.getInput("RETURN")&&this.moveInputBefore("STACK","RETURN")):this.removeInput("STACK",!0),this.hasStatements_=t)},updateParams_:function(){var t="";this.arguments_.length&&(t=Rt.Msg.PROCEDURES_BEFORE_PARAMS+" "+this.arguments_.join(", ")),Rt.Events.disable();try{this.setFieldValue(t,"PARAMS")}finally{Rt.Events.enable()}},mutationToDom:function(t){var e=Rt.utils.xml.createElement("mutation");t&&e.setAttribute("name",this.getFieldValue("NAME"));for(var i=0;i"),this.appendValueInput("style").appendField(Rt.Msg.MIXLY_AIP_ATTR).setAlign(Rt.inputs.Align.RIGHT),this.appendStatementInput("DO").appendField(""),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},i_={init:function(){this.setColour(zs),this.appendDummyInput().appendField(Rt.Msg.HTML_STYLE),this.appendStatementInput("STYLE"),this.setOutput(!0)}},n_={init:function(){this.setColour(zs),this.appendDummyInput().appendField(Rt.Msg.HTML_FORM_CONTENT).appendField(new Rt.FieldDropdown([[Rt.Msg.HTML_TEXT,"text"],[Rt.Msg.HTML_EMAIL,"email"],[Rt.Msg.HTML_NUMBER,"number"],[Rt.Msg.HTML_PASSWORD,"password"],[Rt.Msg.HTML_CHECKBOX,"checkbox"],[Rt.Msg.HTML_RADIOBUTTON,"radiobutton"],[Rt.Msg.HTML_BUTTON,"button"],[Rt.Msg.HTML_COLOUR,"colour"],[Rt.Msg.HTML_DATE,"date"],[Rt.Msg.HTML_LOCALTIME,"local time"],[Rt.Msg.HTML_FILE,"file"],[Rt.Msg.HTML_HIDDEN,"hidden"],[Rt.Msg.HTML_IMAGE,"image"],[Rt.Msg.HTML_MONTH,"month"],[Rt.Msg.HTML_RANGE,"range"],[Rt.Msg.HTML_RESET,"reset"],[Rt.Msg.HTML_SEARCH,"search"],[Rt.Msg.HTML_SUBMIT,"submit"],[Rt.Msg.HTML_TELEPHONENUMBER,"telephone number"],[Rt.Msg.HTML_TIME,"time"],[Rt.Msg.HTML_URL,"url"],[Rt.Msg.HTML_WEEK,"week"]]),"LEVEL"),this.appendDummyInput().appendField(Rt.Msg.HTML_NAME).appendField(new Rt.FieldTextInput("car"),"NAME"),this.appendDummyInput().appendField(Rt.Msg.HTML_VALUE).appendField(new Rt.FieldTextInput("go"),"VALUE"),this.appendValueInput("style").appendField(Rt.Msg.MIXLY_AIP_ATTR).setAlign(Rt.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},s_={init:function(){this.setColour(zs),this.appendDummyInput().appendField(new Rt.FieldTextInput("property"),"KEY").appendField(":").appendField(new Rt.FieldTextInput("value"),"VALUE"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},__={init:function(){this.setColour(zs),this.appendDummyInput().appendField(new Rt.FieldTextInput("property"),"KEY").appendField(":").appendField(new Rt.FieldColour("#ff0000"),"RGB_LED_COLOR"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},o_={init:function(){this.setColour(zs),this.appendDummyInput().appendField(Rt.Msg.HTML_TEXT).appendField(new Rt.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 Rt.FieldTable(""),"TEXT")}},u_={init:function(){this.setColour(p_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Code Block:"),this.appendDummyInput().appendField(new Rt.FieldMultilineInput(""),"TEXT")}},r_={init:function(){this.setColour(p_),this.appendDummyInput().appendField("Code Expression:"),this.appendDummyInput().appendField(new Rt.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 Rt.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(Rt.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 Rt.icons.MutatorIcon(["text_print_multiple_item"],this)),this.setTooltip(Rt.Msg.TEXT_PRINT_TOOLTIP)},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=Rt.Block.obtain(t,"text_print_multiple_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;n= stop:"," yield start"," start -= abs(step)"])};if(t=function(t,e,i){return"("+t+" <= "+e+") and "+a()+"("+t+", "+e+", "+i+") or "+u()+"("+t+", "+e+", "+i+")"},Rt.isNumber(n)&&Rt.isNumber(s)&&Rt.isNumber(_))n=parseFloat(n),s=parseFloat(s),_=Math.abs(parseFloat(_)),0==n%1&&0==s%1&&0==_%1?(n<=s?(s++,t=0==n&&1==_?s:n+", "+s,1!=_&&(t+=", "+_)):t=n+", "+--s+", -"+_,t="range("+t+")"):(t=n",GTE:">="};const ra=function(t,e){var i=this.getFieldValue("OP"),n="&&"==i?e.ORDER_LOGICAL_AND:e.ORDER_LOGICAL_OR,s=e.valueToCode(this,"A",n)||"False",_=e.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(t,e){var i=e.ORDER_UNARY_PREFIX;return["not "+(e.valueToCode(this,"BOOL",i)||"False"),i]},da=function(t,e){return["TRUE"==this.getFieldValue("BOOL")?"True":"False",e.ORDER_ATOMIC]},Ia=function(t,e){return["None",e.ORDER_ATOMIC]},Ta=function(t,e){var i=e.valueToCode(this,"A",e.ORDER_ATOMIC)||"False";return["("+(e.valueToCode(this,"B",e.ORDER_ATOMIC)||"False")+" if "+i+" else "+(e.valueToCode(this,"C",e.ORDER_ATOMIC)||"False")+")",e.ORDER_ATOMIC]},Ma=function(t,e){var i=e.valueToCode(this,"A",e.ORDER_ATOMIC)||"''",n=e.valueToCode(this,"B",e.ORDER_ATOMIC)||"''";return[i+" "+this.getFieldValue("BOOL")+" "+n,e.ORDER_ATOMIC]},ha=function(t,e){var i=e.valueToCode(this,"A",e.ORDER_ATOMIC)||"''",n=e.valueToCode(this,"B",e.ORDER_ATOMIC)||"''";return[i+" "+this.getFieldValue("BOOL")+" "+n,e.ORDER_ATOMIC]},ma=function(t,e){return["bool("+(e.valueToCode(this,"VAR",e.ORDER_ATOMIC)||"0")+")",e.ORDER_ATOMIC]},Ea=function(t,e){return e.definitions_.import_os="import os","os.startfile("+e.valueToCode(this,"fn",e.ORDER_ATOMIC)+")\n"},Oa=function(t,e){return e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+" = open("+e.valueToCode(this,"FILENAME",e.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')\n"},Ra=function(t,e){return["open("+e.valueToCode(this,"FILENAME",e.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')",e.ORDER_ATOMIC]},ca=function(t,e){return["open("+e.valueToCode(this,"FILENAME",e.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"', encoding=\""+this.getFieldValue("CODE")+'")',e.ORDER_ATOMIC]},ga=function(t,e){var i=e.valueToCode(this,"data",e.ORDER_ATOMIC);return e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".write("+i+")\n"},Ca=function(t,e){var i=this.getFieldValue("MODE");return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+"."+i+"()",e.ORDER_ATOMIC]},Sa=function(t,e){var i=this.getFieldValue("MODE");return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+"."+i+"("+e.valueToCode(this,"SIZE",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},Aa=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".readline("+e.valueToCode(this,"SIZE",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},La=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".writable()",e.ORDER_ATOMIC]},Na=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".name()",e.ORDER_ATOMIC]},Da=function(t,e){return e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".close()\n"},fa=function(t,e){e.definitions_.import_os="import os";return["os.listdir()",e.ORDER_ATOMIC]},Fa=function(t,e){return e.definitions_.import_os="import os","os."+this.getFieldValue("MODE")+"("+e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+")\n"},Pa=function(t,e){return e.definitions_.import_os="import os",["os.path.getsize("+e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},va=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".tell()",e.ORDER_ATOMIC]},Ya=function(t,e){var i=this.getFieldValue("MODE"),n=0;return n="start"==i?0:"current"==i?1:2,e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".seek("+e.valueToCode(this,"SIZE",e.ORDER_ATOMIC)+","+n+")\n"},Xa=function(t,e){return e.definitions_.import_os="import os","os.chdir("+e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+")\n"},ya=function(t,e){e.definitions_.import_os="import os";return["os.getcwd()",e.ORDER_ATOMIC]},ba=function(t,e){return e.definitions_.import_os="import os","os."+this.getFieldValue("MODE")+"("+e.valueToCode(this,"PATH",e.ORDER_ATOMIC)+")\n"},xa=function(t,e){return e.definitions_.import_os="import os","os.rename("+e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+","+e.valueToCode(this,"NEWFILE",e.ORDER_ATOMIC)+")\n"},Va=function(t,e){e.definitions_.import_os="import os";var i=e.valueToCode(this,"FILE",e.ORDER_ATOMIC);return["os."+this.getFieldValue("MODE")+"("+i+")",e.ORDER_ATOMIC]},Ba=function(t,e){return e.definitions_.import_os="import os",e.definitions_.import_sdcard="import sdcard",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+" = sdcard.SDCard("+e.valueToCode(this,"SPISUB",e.ORDER_ATOMIC)+","+e.valueToCode(this,"PINSUB",e.ORDER_ATOMIC)+")\n"},Ga=function(t,e){return e.definitions_.import_os="import os",e.definitions_.import_sdcard="import sdcard","os.mount("+e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+","+e.valueToCode(this,"DIR",e.ORDER_ATOMIC)+")\n"},Ua=function(t,e){var i=e.variableDB_.getName(this.getFieldValue("NAME"),Rt.Procedures.NAME_TYPE),n=(this.getInput("STACK")&&e.statementToCode(this,"STACK"))??" pass\n";e.INFINITE_LOOP_TRAP&&(n=e.INFINITE_LOOP_TRAP.replace(/%1/g,"'"+this.id+"'")+n);var s=e.valueToCode(this,"RETURN",e.ORDER_NONE)||"";s&&(s=" return "+s+"\n");for(var _=[],o=0;o\n\n\n\t\n"+e.statementToCode(this,"HEAD")+"\n\n"+e.statementToCode(this,"BODY")+"\n\n'''",e.ORDER_ATOMIC]},Cu=function(t,e){var i=e.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"\n"+i+"\n"},Su=function(t,e){var i=e.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(t,e){var i=e.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"<"+n+">\n"+i+"\n"},Lu=function(t,e){var i=e.statementToCode(this,"DO"),n=e.valueToCode(this,"style"),s=this.getFieldValue("LEVEL");return"<"+s+" "+n+" >\n"+i+"\n"},Nu=function(t,e){return['style="'+e.statementToCode(this,"STYLE")+'"',e.ORDER_ATOMIC]},Du=function(t,e){return'"},fu=function(){return this.getFieldValue("KEY")+":"+this.getFieldValue("VALUE")+";"},Fu=function(){return this.getFieldValue("TEXT")+"\n"},Pu=function(t){return t.getFieldValue("TEXT")+"\n"},vu=function(t,e){return[t.getFieldValue("TEXT"),e.ORDER_ATOMIC]},Yu=function(t,e){return(e.valueToCode(t,"VALUE",e.ORDER_ATOMIC)||"")+"\n"},Xu=function(){return""},yu=function(t,e){return["type("+(e.valueToCode(t,"VALUE",e.ORDER_MEMBER)||"___")+")",e.ORDER_ATOMIC]},bu=function(t,e){for(var i=t.getFieldValue("NAME"),n=t.hasReturn_,s=new Array(t.itemCount_),_=0;_0?e.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+t+"while True:\n"+a.join("")+u.join("\n"):e.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+t+u.join("\n")},Gu.scrubNakedValue=function(t){return t+"\n"},Gu.quote_=function(t){var e="'";return-1!==t.indexOf("'")&&(-1===t.indexOf('"')?e='"':t=t.replace(/'/g,"\\'")),e+t+e},Gu.multiline_quote_=function(t){return"'''"+(t=t.replace(/'''/g,"\\'\\'\\'"))+"'''"},Gu.scrub_=function(t,e,i){var n="";if(!t.outputConnection||!t.outputConnection.targetConnection){(_=t.getCommentText())&&(_=Rt.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(Rt.Msg.MIXLY_MIDI),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_SETUP).setCheck("var"),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Rt.Msg.MIXLY_RGB_PIN_COUNT)}},ku={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Rt.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Hu={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Rt.Msg.MIXLY_FREQUENCY),this.appendValueInput("time").setCheck(Number).appendField(Rt.Msg.MIXLY_DURATION),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE2)}},Wu={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendValueInput("LIST").appendField(Rt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Ku={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendValueInput("LIST").appendField(Rt.Msg.MIXLY_BACKSTAGE+Rt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_BACKSTAGE+Rt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Ju={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendValueInput("TICKS").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_SET_TEMPO).appendField(Rt.Msg.MICROBIT_ACTUATOR_ticks),this.appendValueInput("BPM").setCheck(Number).appendField(Rt.Msg.MIXLY_SPEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_SET_TEMPO)}},qu={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Get_current_tempo),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_GET_TEMPO)}},Qu={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Reset_music),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_RESET)}},zu={init:function(){this.setColour(Uu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(Rt.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(Rt.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(Rt.Msg.MIXLY_SETTING).appendField(Rt.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("bright").appendField(Rt.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_EXTERN_LED_SETONOFF)}},Zu={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Rt.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_EXTERN_LED_GETONOFF)}},tr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Rt.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_EXTERN_LED_GETONOFF)}},er={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.MIXLY_SETTING).appendField(Rt.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("bright").appendField(Rt.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_EXTERN_LED_SETBRIGHT)}},ir={init:function(){this.setColour(Uu),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_SETUP+Rt.Msg.MIXLY_SERVO),this.appendValueInput("PIN",Number).appendField(Rt.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(Rt.Msg.MIXLY_SERVO).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("DEGREE",Number).setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_DEGREE_0_180),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_SERVO_MOVE)}},sr={init:function(){this.setColour(Uu),this.appendValueInput("VAR").appendField("360°"+Rt.Msg.MIXLY_SERVO),this.appendValueInput("SPEED",Number).setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_SETTING+Rt.Msg.blockpy_turtle_rotate+Rt.Msg.MIXLY_SPEED+" (-10~10)"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_SERVO_360_TOOLTIP)}},_r={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).appendField("180°"+Rt.Msg.MIXLY_SERVO).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_SERVO_MOVE)}},or={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).appendField("360°"+Rt.Msg.MIXLY_SERVO).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_SERVO_SPEED_TOOLIPS)}},pr={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).appendField("180°"+Rt.Msg.MIXLY_SERVO).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET+Rt.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°"+Rt.Msg.MIXLY_SERVO).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET+Rt.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 Rt.FieldDropdown([["A","ms32006.ADDRESS_A"],["B","ms32006.ADDRESS_B"]]),"mode"),this.appendValueInput("SUB1").setCheck("var").setAlign(Rt.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(Rt.Msg.MIXLY_MICROBIT_Direction).appendField(new Rt.FieldDropdown([[Rt.Msg.CLOCKWISE,"ms32006.MOT_CW"],[Rt.Msg.ANTI_CLOCKWISE,"ms32006.MOT_CCW"],[Rt.Msg.MOTOR_N,"ms32006.MOT_N"],[Rt.Msg.MOTOR_P,"ms32006.MOT_P"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.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 Rt.FieldDropdown([["A","ms32006.MOT_A"],["B","ms32006.MOT_B"]]),"mode"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Direction).appendField(new Rt.FieldDropdown([[Rt.Msg.CLOCKWISE,"ms32006.MOT_CW"],[Rt.Msg.ANTI_CLOCKWISE,"ms32006.MOT_CCW"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField("转速"),this.appendValueInput("steps").setCheck(Number).setAlign(Rt.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(Rt.Msg.MIXLY_RGB),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_SETUP).setCheck("var"),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_PIN),this.appendValueInput("LEDCOUNT").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_COUNT),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Rt.Msg.MIXLY_RGB_PIN_COUNT)}},Ir={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("_LED_").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Rt.Msg.MIXLY_RGB_NUM_R_G_B_MP)}},Tr={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Rt.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},Mr={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_RGB_WRITE),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_WRI)}},hr={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RAINBOW),this.appendValueInput("time").setCheck(Number).appendField(Rt.Msg.MIXLY_DURATION).appendField(Rt.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(Rt.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(Rt.Msg.PYTHON_RANGE_STEP).appendField(Rt.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(Rt.Msg.CONTROLS_FOR_INPUT_WITH+"uart").appendField(new Rt.FieldDropdown([["uart1","uart1"],["uart2","uart2"]]),"key"),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_SETUP+Rt.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new Rt.FieldDropdown([["SYN6288"+Rt.Msg.MIXLY_AipSpeech_synthesis,"SYN6288"],["NS9300"+Rt.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(Rt.Msg.MIXLY_GET+Rt.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_WHETHER).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_STOPPED,"0"],[Rt.Msg.MIXLY_PLAYING,"1"],[Rt.Msg.MIXLY_PAUSED,"2"]]),"key"),this.setInputsInline(!0),this.setOutput(!0)}},Rr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_STAT).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MP3_PLAY,"1"],[Rt.Msg.MIXLY_MP3_PAUSE,"2"],[Rt.Msg.MIXLY_STOP,"3"],[Rt.Msg.MIXLY_MP3_PREV,"4"],[Rt.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(Rt.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendValueInput("volume").appendField(Rt.Msg.MIXLY_MP3_VOL+Rt.Msg.MIXLY_STAT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_PLAYER_SET_VOLUME_TOOLTIP)}},gr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MODE+Rt.Msg.MIXLY_STAT).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MP3_LOOP_ALL,"0"],[Rt.Msg.MIXLY_MP3_LOOP_ONE,"1"],[Rt.Msg.MIXLY_PLAYER_DIRECTORY_LOOP,"2"],[Rt.Msg.MIXLY_MP3_LOOP_RAM,"3"],[Rt.Msg.MIXLY_PLAYER_SINGLE_STOP,"4"],[Rt.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(Rt.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_JS_START_MELODY,"play"],[Rt.Msg.MIXLY_PLAYER_INSERT_MUSIC,"insert"]]),"key"),this.appendValueInput("song"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_PLAYER_PLAY_MUSIC_TOOTIP)}},Sr={},Ar={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("VOICE").setCheck(Number).appendField(Rt.Msg.MIXLY_SET_VOLUME),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_SET_VOLUME_TOOLTIP)}},Lr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET_VOLUME),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_SET_VOLUME_TOOLTIP)}},Nr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("VOICE").setCheck(Number).appendField(Rt.Msg.MIXLY_PLAY_HINTS),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PROGRAM_BLOCK).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Rt.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"mode"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_PLAY_HINTS_TOOLTIP)}},Dr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("data").setCheck(String).appendField(Rt.Msg.MIXLY_AipSpeech_synthesis),this.appendValueInput("VOICE").setCheck(Number).appendField(Rt.Msg.MIXLY_BACKGROUND_MUSIC),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PROGRAM_BLOCK).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Rt.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"mode"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_PLAY_TTS_TOOLTIP)}},fr={init:function(){this.setColour(Uu),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.extern_addr),"PIN"),this.setOutput(!0,Number)}},Fr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.ME_GO_MOTOR_EXTERN+Rt.Msg.MIXLY_MOTOR).appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},Pr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.ME_GO_MOTOR_EXTERN+Rt.Msg.MIXLY_MOTOR).appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_GET+Rt.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},vr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.ME_GO_MOTOR_EXTERN+Rt.Msg.MIXLY_TRAFFIC_LIGHT).appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.LISTS_SET_INDEX_SET).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_Turn_off_display,"0"],[Rt.Msg.MIXLY_TRAFFIC_LIGHT_RED_ON,"1"],[Rt.Msg.MIXLY_TRAFFIC_LIGHT_RED_BLINK,"2"],[Rt.Msg.MIXLY_TRAFFIC_LIGHT_YELLOW_ON,"3"],[Rt.Msg.MIXLY_TRAFFIC_LIGHT_YELLOW_BLINK,"4"],[Rt.Msg.MIXLY_TRAFFIC_LIGHT_GREEN_ON,"5"],[Rt.Msg.MIXLY_TRAFFIC_LIGHT_GREEN_BLINK,"6"]]),"light"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Yr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.ME_GO_MOTOR_EXTERN).appendField(new Rt.FieldDropdown([[Rt.Msg.COLOUR_RGB_WHITE,"W"],[Rt.Msg.COLOUR_RGB_RED,"R"],[Rt.Msg.COLOUR_RGB_YELLOW,"Y"],[Rt.Msg.COLOUR_RGB_GREEN,"G"],[Rt.Msg.COLOUR_RGB_BLUE,"B"]]),"color").appendField("LED").appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendValueInput("value").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.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(Rt.Msg.ME_GO_MOTOR_EXTERN).appendField(new Rt.FieldDropdown([[Rt.Msg.COLOUR_RGB_WHITE,"W"],[Rt.Msg.COLOUR_RGB_RED,"R"],[Rt.Msg.COLOUR_RGB_YELLOW,"Y"],[Rt.Msg.COLOUR_RGB_GREEN,"G"],[Rt.Msg.COLOUR_RGB_BLUE,"B"]]),"color").appendField("LED").appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET+Rt.Msg.BRIGHTNESS),this.setOutput(!0,Number),this.setInputsInline(!0)}},yr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.ME_GO_MOTOR_EXTERN+Rt.Msg.MIXLY_SERVO_MOTOR).appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"[0]"],[Rt.Msg.MIXLY_SPEED,"[1]"],[Rt.Msg.MATH_SINGLE_OP_ABSOLUTE+Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"[2]"],[Rt.Msg.MIXLY_RELATIVE+Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"[3]"],[Rt.Msg.MIXLY_MIXBOT_SERVO_BLOCK_OR_NOT,"[4]"],[Rt.Msg.MIXLY_MIXBOT_SERVO_FINISH_OR_NOT,"[5]"],[Rt.Msg.MIXLY_ALL,""]]),"status"),this.setOutput(!0,Number),this.setInputsInline(!0)}},br={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.ME_GO_MOTOR_EXTERN+Rt.Msg.MIXLY_SERVO_MOTOR).appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_SERVO_SET_STOP_MODE).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_KEEP,"0"],[Rt.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_COAST,"1"],[Rt.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(Rt.Msg.ME_GO_MOTOR_EXTERN+Rt.Msg.MIXLY_SERVO_MOTOR).appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_STOP),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Vr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.ME_GO_MOTOR_EXTERN+Rt.Msg.MIXLY_SERVO_MOTOR).appendField(Rt.Msg.MATH_SINGLE_OP_ABSOLUTE+Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Rt.Msg.MSG.run).appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MODE).setAlign(Rt.inputs.Align.RIGHT).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_SPEED+Rt.Msg.MIXLY_MODE,"0"],[Rt.Msg.MIXLY_MICROBIT_JS_BLE_POWER+Rt.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(Rt.inputs.Align.RIGHT).appendField("%"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_SERVO_TURN_DIRECTION).setAlign(Rt.inputs.Align.RIGHT).appendField(new Rt.FieldDropdown([[Rt.Msg.CLOCKWISE,"0"],[Rt.Msg.MIXLY_MIXBOT_SERVO_NEAREST_PATH,"1"],[Rt.Msg.ANTI_CLOCKWISE,"2"]]),"direction"),this.appendValueInput("angle").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MIXBOT_SERVO_ABSOLUTE_ANGLE_TOOLTIP)}},Br={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.ME_GO_MOTOR_EXTERN+Rt.Msg.MIXLY_SERVO_MOTOR).appendField(Rt.Msg.MIXLY_RELATIVE+Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Rt.Msg.MSG.run).appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Rt.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(Rt.Msg.ME_GO_MOTOR_EXTERN+Rt.Msg.MIXLY_SERVO_MOTOR).appendField(Rt.Msg.MIXLY_RELATIVE+Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Rt.Msg.MSG.run).appendField("("+Rt.Msg.MIXLY_MIXBOT_SERVO_LIKE_ENCODING_MOTOR+")").appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MODE).setAlign(Rt.inputs.Align.RIGHT).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_SPEED+Rt.Msg.MIXLY_MODE,"0"],[Rt.Msg.MIXLY_MICROBIT_JS_BLE_POWER+Rt.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(Rt.inputs.Align.RIGHT).appendField("%"),this.appendValueInput("angle").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MIXBOT_SERVO_RELATIVE_ANGLE_TOOLTIP)}},Ur={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.ME_GO_MOTOR_EXTERN+Rt.Msg.MIXLY_SERVO_MOTOR).appendField(Rt.Msg.MIXLY_RELATIVE+Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Rt.Msg.MSG.run).appendField("("+Rt.Msg.MIXLY_MIXBOT_SERVO_LIKE_ORDINARY_MOTOR+")").appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LEFT,"0"],[Rt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MODE).setAlign(Rt.inputs.Align.RIGHT).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_SPEED+Rt.Msg.MIXLY_MODE,"0"],[Rt.Msg.MIXLY_MICROBIT_JS_BLE_POWER+Rt.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(Rt.inputs.Align.RIGHT).appendField("%"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_SERVO_TURN_DIRECTION).setAlign(Rt.inputs.Align.RIGHT).appendField(new Rt.FieldDropdown([[Rt.Msg.CLOCKWISE,"0"],[Rt.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(Rt.Msg.MIXBOT).appendField(Rt.Msg.ME_GO_MOTOR_EXTERN).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MOTOR,"ext_motor"],[Rt.Msg.MIXLY_TRAFFIC_LIGHT,"ext_traffic"],[Rt.Msg.COLOUR_RGB_WHITE+"LED","W_LED"],[Rt.Msg.COLOUR_RGB_RED+"LED","R_LED"],[Rt.Msg.COLOUR_RGB_YELLOW+"LED","Y_LED"],[Rt.Msg.COLOUR_RGB_GREEN+"LED","G_LED"],[Rt.Msg.COLOUR_RGB_BLUE+"LED","B_LED"],[Rt.Msg.MIXLY_SERVO_MOTOR,"ext_servo"]]),"name"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_EXTERN_GET_ADDR),this.setOutput(!0),this.setInputsInline(!0)}},kr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.MIXBOT).appendField(Rt.Msg.ME_GO_MOTOR_EXTERN).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MOTOR,"ext_motor"],[Rt.Msg.MIXLY_TRAFFIC_LIGHT,"ext_traffic"],[Rt.Msg.COLOUR_RGB_WHITE+"LED","W_LED"],[Rt.Msg.COLOUR_RGB_RED+"LED","R_LED"],[Rt.Msg.COLOUR_RGB_YELLOW+"LED","Y_LED"],[Rt.Msg.COLOUR_RGB_GREEN+"LED","G_LED"],[Rt.Msg.COLOUR_RGB_BLUE+"LED","B_LED"],[Rt.Msg.MIXLY_SERVO_MOTOR,"ext_servo"]]),"name"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_EXTERN_SET_ADDR),this.appendValueInput("old").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE),this.appendValueInput("new").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_UPDATE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Hr={init:function(){this.setColour(Uu),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_SETUP+Rt.Msg.MIXLY_AT).appendField(Rt.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},Wr={init:function(){this.setColour(Uu),this.appendDummyInput().appendField(Rt.Msg.MIXLY_SETTING),this.appendValueInput("pin").appendField("LED"),this.appendValueInput("bright").appendField(Rt.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(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_SERVO+Rt.Msg.MIXLY_SETUP+Rt.Msg.MIXLY_AT).appendField(Rt.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},Jr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_SERVO),this.appendValueInput("angle").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_DISPLAY_MATRIX_ROTATE),this.appendDummyInput().appendField(Rt.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(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_MOTOR+Rt.Msg.MIXLY_SETUP+Rt.Msg.MIXLY_AT).appendField(Rt.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},Qr={init:function(){this.setColour(Uu),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_MOTOR),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+Rt.Msg.MIXLY_SPEED),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},zr="#6C9858",jr={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(new Rt.FieldDropdown([["L1","1"],["L2","2"]]),"op"),this.setOutput(!0)}},$r={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_ESP32_ON,"1"],[Rt.Msg.MIXLY_ESP32_OFF,"0"],[Rt.Msg.MIXLY_ESP32_TOGGLE,"-1"]]),"flag"),this.setOutput(!0),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_INOUT_HIGHLOW)}},Zr={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(Rt.Msg.MIXLY_BUILDIN_LED),this.appendValueInput("bright").appendField(Rt.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_SETONOFF)}},tl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField(Rt.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput().appendField(Rt.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_GETBRIGHT)}},el={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField(Rt.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_GETONOFF)}},il={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(Rt.Msg.MIXLY_BUILDIN_LED),this.appendValueInput("bright").appendField(Rt.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_SETTING+Rt.Msg.MIXLY_BUILDIN_LED+Rt.Msg.MIXLY_BRIGHTNESS+"(0-100%)")}},nl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(Rt.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_LCD_SETCOLOR).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_LIGHT_RED,"1"],[Rt.Msg.MIXLY_LIGHT_GREEN,"2"],[Rt.Msg.MIXLY_LIGHT_BLUE,"3"],[Rt.Msg.MIXLY_LIGHT_YELLOW,"4"],[Rt.Msg.MIXLY_LIGHT_CYAN,"5"],[Rt.Msg.MIXLY_LIGHT_PURPLE,"6"],[Rt.Msg.MIXLY_LIGHT_WHITE,"7"]]),"colorvalue"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip()}},sl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_SETTING).appendField(Rt.Msg.MIXLY_BUILDIN_LED).appendField(new Rt.FieldDropdown([[Rt.Msg.COLOUR_RGB_RED,"r"],[Rt.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendValueInput("bright").appendField(Rt.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_SETONOFF)}},_l={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Rt.Msg.MIXLY_BUILDIN_LED).appendField(new Rt.FieldDropdown([[Rt.Msg.COLOUR_RGB_RED,"r"],[Rt.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_GETONOFF)}},ol={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Rt.Msg.MIXLY_BUILDIN_LED).appendField(new Rt.FieldDropdown([[Rt.Msg.COLOUR_RGB_RED,"r"],[Rt.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_GETONOFF)}},pl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_SETTING).appendField(Rt.Msg.MIXLY_BUILDIN_LED).appendField(new Rt.FieldDropdown([[Rt.Msg.COLOUR_RGB_RED,"r"],[Rt.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendValueInput("bright").appendField(Rt.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_SETTING+Rt.Msg.MIXLY_BUILDIN_LED+Rt.Msg.MIXLY_BRIGHTNESS+"(0-10)")}},al={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(new Rt.FieldDropdown([["L1","20"],["L2","21"]]),"op"),this.setOutput(!0)}},ul={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendValueInput("_LED_").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null);switch(ct.Boards.getSelectedBoardKey()){case"micropython:esp32c3:mixgo_cc":case"micropython:esp32s2:mixgo_ce":this.setTooltip(Rt.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOCC);break;case"micropython:esp32c3:mixgo_me":default:this.setTooltip(Rt.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOME);break;case"micropython:esp32:mPython":this.setTooltip(Rt.Msg.MIXLY_RGB_NUM_R_G_B_MPYTHON)}}},rl={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Rt.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},ll={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RAINBOW),this.appendValueInput("time").setCheck(Number).appendField(Rt.Msg.MIXLY_DURATION).appendField(Rt.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},dl={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(Rt.Msg.PYTHON_RANGE_STEP).appendField(Rt.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Il={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_RGB_WRITE),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_WRI)}},Tl={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendValueInput("_LED_").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null);switch(ct.Boards.getSelectedBoardKey()){case"micropython:esp32c3:mixgocc":this.setTooltip(Rt.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOCC);break;case"micropython:esp32c3:mixgome":default:this.setTooltip(Rt.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOME);break;case"micropython:esp32:mPython":this.setTooltip(Rt.Msg.MIXLY_RGB_NUM_R_G_B_MPYTHON)}}},Ml={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Rt.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},hl={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(Rt.Msg.PYTHON_RANGE_STEP).appendField(Rt.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},ml={init:function(){this.setColour(zr),this.appendValueInput("TICKS").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_SET_TEMPO).appendField(Rt.Msg.MICROBIT_ACTUATOR_ticks),this.appendValueInput("BPM").setCheck(Number).appendField(Rt.Msg.MIXLY_SPEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_SET_TEMPO)}},El={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Get_current_tempo),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_GET_TEMPO)}},Ol={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Reset_music),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_RESET)}},Rl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Rt.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},cl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Rt.Msg.MIXLY_FREQUENCY),this.appendValueInput("time").setCheck(Number).appendField(Rt.Msg.MIXLY_DURATION),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE2)}},gl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Cl={init:function(){this.setColour(zr),this.appendValueInput("LIST").appendField(Rt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Sl={init:function(){this.setColour(zr),this.appendValueInput("LIST").appendField(Rt.Msg.MIXLY_BACKSTAGE+Rt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Al={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MOTOR_DC).appendField(new Rt.FieldDropdown([["1","1"],["2","2"],["3","3"]]),"wheel"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Direction).appendField(new Rt.FieldDropdown([[Rt.Msg.CLOCKWISE,"CW"],[Rt.Msg.ANTI_CLOCKWISE,"CCW"],[Rt.Msg.MOTOR_P,"P"],[Rt.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Ll={init:function(){this.setColour(zr),this.appendDummyInput().appendField("MixGo Car").appendField(new Rt.FieldDropdown([[Rt.Msg.blockpy_forward,"F"],[Rt.Msg.blockpy_backward,"B"],[Rt.Msg.blockpy_left,"L"],[Rt.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Nl={init:function(){this.setColour(zr),this.appendDummyInput("").appendField("MixGo Car").appendField(new Rt.FieldDropdown([[Rt.Msg.MOTOR_P,"P"],[Rt.Msg.MOTOR_N,"N"]]),"VAR"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Dl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MOTOR_DC).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLYCAR_WHEEL_LEFT,"L"],[Rt.Msg.MIXLYCAR_WHEEL_RIGHT,"R"]]),"wheel"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Direction).appendField(new Rt.FieldDropdown([[Rt.Msg.CLOCKWISE,"CW"],[Rt.Msg.ANTI_CLOCKWISE,"CCW"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},fl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MOTOR_DC).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLYCAR_WHEEL_LEFT,"L"],[Rt.Msg.MIXLYCAR_WHEEL_RIGHT,"R"]]),"wheel"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_STOP).appendField(new Rt.FieldDropdown([[Rt.Msg.MOTOR_P,"P"],[Rt.Msg.MOTOR_N,"N"]]),"direction"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Fl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_MOTOR_STATUS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MIXBOT_MOTOR_STATUS_TOOLTIP)}},Pl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXBOT).appendField(new Rt.FieldDropdown([[Rt.Msg.blockpy_forward,"F"],[Rt.Msg.blockpy_backward,"B"],[Rt.Msg.blockpy_left,"L"],[Rt.Msg.blockpy_right,"R"]]),"VAR"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"PWR"],[Rt.Msg.MIXLY_SPEED,"SPEED"],[Rt.Msg.MIXLY_MIXBOT_MOTOR_TURNS,"TURNS"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MIXBOT_MOVE_TOOLTIP)}},vl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXBOT).appendField(new Rt.FieldDropdown([[Rt.Msg.MOTOR_P,"P"],[Rt.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Yl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXBOT).appendField(Rt.Msg.MIXLY_MOTOR).appendField(new Rt.FieldDropdown([[Rt.Msg.TEXT_TRIM_LEFT,"1"],[Rt.Msg.TEXT_TRIM_RIGHT,"2"],[Rt.Msg.TEXT_TRIM_BOTH,"0"]]),"wheel"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"PWR"],[Rt.Msg.MIXLY_SPEED,"SPEED"],[Rt.Msg.MIXLY_MIXBOT_MOTOR_TURNS,"TURNS"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MIXBOT_MOVE_TOOLTIP)}},Xl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_BUZZER),this.appendDummyInput().appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_PY_COMMUNICATE_ON,"0"],[Rt.Msg.MIXLY_MICROBIT_PY_COMMUNICATE_OFF,"1"]]),"on_off"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},yl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.BITBOT).appendField(new Rt.FieldDropdown([[Rt.Msg.blockpy_forward,"F"],[Rt.Msg.blockpy_backward,"B"],[Rt.Msg.blockpy_left,"L"],[Rt.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},bl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.BITBOT).appendField(new Rt.FieldDropdown([[Rt.Msg.MOTOR_P,"P"],[Rt.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},xl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.BITBOT).appendField(Rt.Msg.MIXLY_MOTOR).appendField(new Rt.FieldDropdown([[Rt.Msg.TEXT_TRIM_LEFT,"0"],[Rt.Msg.TEXT_TRIM_RIGHT,"1"]]),"wheel"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Direction).appendField(new Rt.FieldDropdown([[Rt.Msg.CLOCKWISE,"CW"],[Rt.Msg.ANTI_CLOCKWISE,"CCW"],[Rt.Msg.MOTOR_P,"P"],[Rt.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Vl={init:function(){this.setColour(zr),this.appendValueInput("bright").appendField(Rt.Msg.MIXLY_MIXBOT_SOUND_SET_LOUDNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_SETONOFF)}},Bl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_SOUND_LOUDNESS+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_GETONOFF)}},Gl={init:function(){this.setColour(zr),this.appendValueInput("bright").appendField(Rt.Msg.MIXLY_SETTING+Rt.Msg.MIXLY_MIXBOT_BUZZER+Rt.Msg.MIXLY_MP3_VOL),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_SETONOFF)}},Ul={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET+Rt.Msg.MIXLY_MIXBOT_BUZZER+Rt.Msg.MIXLY_MP3_VOL+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_GETONOFF)}},wl={init:function(){this.setColour(zr),this.appendValueInput("PATH").appendField(Rt.Msg.MIXLY_RECORD_AUDIO).appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.appendValueInput("TIME").setCheck(Number).appendField(Rt.Msg.MIXLY_GET_PRESSES_TIME),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},kl={init:function(){this.setColour(zr),this.appendValueInput("PATH").appendField(Rt.Msg.MIXLY_PLAY_AUDIO).appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Hl={init:function(){this.setColour(zr),this.appendValueInput("PATH").appendField(Rt.Msg.MIXLY_PLAY_ONLINE_AUDIO).appendField("URL"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Wl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Rt.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Kl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Jl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.LISTS_SET_INDEX_SET+Rt.Msg.ME_GO_MOTOR_EXTERN).appendField(Rt.Msg.PIN_NUMBERING);switch(ct.Boards.getSelectedBoardKey()){case"micropython:esp32c2:mixgo_mini":this.appendDummyInput().appendField(new Rt.FieldDropdown([["1","1"],["2","2"]]),"index");break;case"micropython:esp32c5:mixgo_sowl":this.appendDummyInput().appendField(new Rt.FieldDropdown([["1","1"],["2","2"],["4","4"],["5","5"]]),"index");break;default:this.appendDummyInput().appendField(new Rt.FieldDropdown([["1","1"],["2","2"],["3","3"],["4","4"]]),"index")}this.appendValueInput("duty").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.blynk_IOT_IR_POWER+Rt.Msg.MIXLY_PINMODEOUT),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip()}},ql={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET+Rt.Msg.ME_GO_MOTOR_EXTERN).appendField(Rt.Msg.PIN_NUMBERING);switch(ct.Boards.getSelectedBoardKey()){case"micropython:esp32c2:mixgo_mini":this.appendDummyInput().appendField(new Rt.FieldDropdown([["1","1"],["2","2"]]),"index");break;case"micropython:esp32c5:mixgo_sowl":this.appendDummyInput().appendField(new Rt.FieldDropdown([["1","1"],["2","2"],["4","4"],["5","5"]]),"index");break;default:this.appendDummyInput().appendField(new Rt.FieldDropdown([["1","1"],["2","2"],["3","3"],["4","4"]]),"index")}this.appendDummyInput().setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.blynk_IOT_IR_POWER+Rt.Msg.MIXLY_PINMODEOUT+Rt.Msg.MIXLY_DUTY_RATIO),this.setOutput(!0,Number),this.setInputsInline(!0)}},Ql={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.LISTS_SET_INDEX_SET+Rt.Msg.ME_GO_MOTOR_EXTERN).appendField(Rt.Msg.MIXLY_ALL+Rt.Msg.PIN_NUMBERING),this.appendValueInput("duty").setCheck(Number).setAlign(Rt.ALIGN_RIGHT).appendField(Rt.Msg.blynk_IOT_IR_POWER+Rt.Msg.MIXLY_PINMODEOUT+Rt.Msg.MIXLY_FREQUENCY),this.appendDummyInput().appendField("Hz"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},zl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.LISTS_SET_INDEX_SET+Rt.Msg.ME_GO_MOTOR_EXTERN).appendField(new Rt.FieldDropdown([["1-2","1"],["4-5","4"]]),"index"),this.appendValueInput("duty").setCheck(Number).setAlign(Rt.ALIGN_RIGHT).appendField(Rt.Msg.blynk_IOT_IR_POWER+Rt.Msg.MIXLY_PINMODEOUT+Rt.Msg.MIXLY_FREQUENCY),this.appendDummyInput().appendField("Hz"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},jl={init:function(){this.setColour(zr),this.appendDummyInput().appendField(Rt.Msg.ANALOG+Rt.Msg.MIXLY_KEYBOARD_INPUT),this.appendValueInput("special"),this.appendValueInput("general"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_RELEASE).appendField(new Rt.FieldDropdown([[Rt.Msg.MICROPYTHON_DISPLAY_YES,"True"],[Rt.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"release"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.ANALOG+Rt.Msg.MIXLY_KEYBOARD_INPUT)}},$l={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_SPECIAL_KEY).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_SPECIAL_KEY0,"0x00"],[Rt.Msg.MIXLY_SPECIAL_KEY1,"0x01"],[Rt.Msg.MIXLY_SPECIAL_KEY2,"0x02"],[Rt.Msg.MIXLY_SPECIAL_KEY4,"0x04"],[Rt.Msg.MIXLY_SPECIAL_KEY8,"0x08"],[Rt.Msg.MIXLY_SPECIAL_KEY16,"0x10"],[Rt.Msg.MIXLY_SPECIAL_KEY32,"0x20"],[Rt.Msg.MIXLY_SPECIAL_KEY64,"0x40"],[Rt.Msg.MIXLY_SPECIAL_KEY128,"0x80"]]),"op"),this.setOutput(!0)}},Zl={init:function(){this.setColour(zr),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_GENERAL_KEY).appendField(new Rt.FieldDropdown([[Rt.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)}},td={init:function(){this.setColour(zr),this.itemCount_=2,this.updateShape_(),this.setOutput(!0),this.setMutator(new Rt.icons.MutatorIcon(["generalkey_create_with_item"],this)),this.setTooltip(Rt.Msg.GENERALKEY_TUPLE_CREATE_TOOLTIP)},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=t.newBlock("generalkey_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;nnew Array(32).fill(0)))},mm={init:function(){this.jsonInit({colour:om,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:Rt.Msg.MIXLY_MICROBIT_Built_in_image1,message0:Rt.Msg.MIXLY_MICROBIT_Built_in_image})}},Em={init:function(){this.setColour(om),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new Rt.FieldDropdown(ct.Profile.default.builtinimg),"image"),this.setOutput(!0,["esp32_image","List"])}},Om={init:function(){this.setColour(om),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(Rt.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new Rt.FieldDropdown(Om.OPERATORS),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{"+":Rt.Msg.MIXLY_MICROBIT_image_add,"-":Rt.Msg.MIXLY_MICROBIT_image_reduce}[e]}))},OPERATORS:[[Rt.Msg.MICROBIT_DISPLAY_UNION,"add"],[Rt.Msg.MICROBIT_DISPLAY_MINUS,"sub"]]},Rm={init:function(){this.setColour(om),this.appendValueInput("A").setCheck("esp32_image").appendField(Rt.Msg.MIXLY_MICROBIT_Invert_image1),this.setInputsInline(!0),this.setOutput(!0,"esp32_image")}},cm={init:function(){this.setColour(om),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.appendDummyInput("").appendField(Rt.Msg.DISPLAY_IMAGE_LET),this.appendDummyInput("").appendField(Rt.Msg.DISPLAY_IMAGE_LET2).appendField(new Rt.FieldDropdown(cm.OPERATORS),"OP"),this.appendValueInput("val").appendField(Rt.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(Rt.Msg.DISPLAY_IMAGE_UNIT),["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP"),i=Rt.Msg.DISPLAY_IMAGE_LET,n=Rt.Msg.DISPLAY_IMAGE_LET2,s=Rt.Msg.DISPLAY_IMAGE_LET3;return i+n+{shift_up:Rt.Msg.MIXLY_UP,shift_down:Rt.Msg.MIXLY_DOWN,shift_left:Rt.Msg.MIXLY_LEFT,shift_right:Rt.Msg.MIXLY_RIGHT}[e]+s}))},OPERATORS:[[Rt.Msg.MIXLY_UP,"shift_up"],[Rt.Msg.MIXLY_DOWN,"shift_down"],[Rt.Msg.MIXLY_LEFT,"shift_left"],[Rt.Msg.MIXLY_RIGHT,"shift_right"]]},gm={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_JS_MONITOR_GET_POINT),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_ESP32_JS_MONITOR_BRIGHTNESS)}},Cm={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(Rt.Msg.MIXLY_ESP32_JS_MONITOR_SET_BRIGHTNESS).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Rt.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(Rt.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},Sm={init:function(){this.setColour(om),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS)}},Am={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(Rt.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS+" 0.0-1.0")}},Lm={init:function(){this.setColour(om),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Clear_display),["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Clear_display)}},Nm={init:function(){this.setColour(om),this.appendDummyInput().appendField(Rt.Msg.MIXLY_SHOW+Rt.Msg.MIXLY_DISPLAY_MATRIX_WRITE_NOW),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Dm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let t=0;t<5;t++){let e=this.appendDummyInput();for(let i=0;i<8;i++)e.appendField(new Rt.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),t+"-"+i)}this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(om),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},fm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Rt.inputs.Align.CENTRE).appendField(new Rt.FieldBitmap(fm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(om),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(8).fill(0)))},Fm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let t=0;t<8;t++){let e=this.appendDummyInput();for(let i=0;i<12;i++)e.appendField(new Rt.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),t+"-"+i)}this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(om),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Pm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Rt.inputs.Align.CENTRE).appendField(new Rt.FieldBitmap(Pm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(om),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(12).fill(0)))},vm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let t=0;t<8;t++){let e=this.appendDummyInput();for(let i=0;i<16;i++)e.appendField(new Rt.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),t+"-"+i)}this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0,"esp32_image"),this.setColour(om),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Ym={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Rt.inputs.Align.CENTRE).appendField(new Rt.FieldBitmap(Ym.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(om),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(16).fill(0)))},Xm={init:function(){this.setColour(om),this.appendDummyInput().appendField(Rt.Msg.OLED_SET_FONT).appendField(new Rt.FieldDropdown(Xm.OPERATORS),"OP"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)},OPERATORS:[["4x5"+Rt.Msg.MIXGO_ME_DISPLAY_HORIZONTAL,"'4x5'"],["5x5"+Rt.Msg.MIXGO_ME_DISPLAY_HORIZONTAL,"'5x5'"],["5x8"+Rt.Msg.MIXGO_ME_DISPLAY_VERTICAL,"'5x8'"]]},ym={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.Msg.OLED_BITMAP),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.OLED_BITMAP_OR_STRING)}},bm={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.Msg.OLED_BITMAP),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_NUMBER),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.OLED_BITMAP_OR_STRING)}},xm={init:function(){this.setColour(om),this.appendValueInput("data").setCheck([String,"esp32_image","List","Tuple"]).appendField(Rt.Msg.OLED_DRAWSTR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.OLED_BITMAP_OR_STRING)}},Vm={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.Msg.OLED_DRAWSTR),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(Rt.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendDummyInput("").appendField(Rt.Msg.TEXT_CENTER).appendField(new Rt.FieldDropdown([[Rt.Msg.MICROPYTHON_DISPLAY_YES,"True"],[Rt.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"center"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_SHOW_IMAGE_OR_STRING_DELAY)}},Bm={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_STRING),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(Rt.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendValueInput("time").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_SCROLL_IMAGE_OR_STRING_DELAY)}},Gm={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.Msg.MIXLY_ESP32_MONITOR_SHOW_FRAME),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("time").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Um={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(Rt.Msg.MIXLY_ESP32_JS_MONITOR_SET_BRIGHTNESS).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Rt.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(Rt.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},wm={init:function(){this.jsonInit({colour:om,args0:[{name:"state",options:[[Rt.Msg.MPYTHON_DISPLAY_MODE_1,"1"],[Rt.Msg.MPYTHON_DISPLAY_MODE_0,"0"]],type:"field_dropdown"},{name:"shape",options:[[Rt.Msg.MPYTHON_DISPLAY_HOLLOW,"rect"],[Rt.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:Rt.Msg.mpython_HELPURL,tooltip:Rt.Msg.MPYTHON_DISPLAY_SHAPE_RECT_TOOLTIP,message0:Rt.Msg.MPYTHON_DISPLAY_SHAPE_RECT_MESSAGE0,nextStatement:null,previousStatement:null})}},km={init:function(){this.jsonInit({colour:om,args0:[{name:"state",options:[[Rt.Msg.MPYTHON_DISPLAY_MODE_1,"1"],[Rt.Msg.MPYTHON_DISPLAY_MODE_0,"0"]],type:"field_dropdown"},{name:"dir_h_v",options:[[Rt.Msg.mpython_vertical,"0"],[Rt.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:Rt.Msg.mpython_HELPURL,tooltip:Rt.Msg.MPYTHON_DISPLAY_HVLINE_TOOLTIP,message0:Rt.Msg.MPYTHON_DISPLAY_HVLINE_MESSAGE0,nextStatement:null,previousStatement:null})}},Hm={init:function(){this.jsonInit({colour:om,args0:[{name:"state",options:[[Rt.Msg.mpython_display_hline_1,"1"],[Rt.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:Rt.Msg.mpython_HELPURL,tooltip:Rt.Msg.mpython_display_line_TOOLTIP,message0:Rt.Msg.mpython_display_line_MESSAGE0,nextStatement:null,previousStatement:null})}},Wm={init:function(){this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new Rt.FieldDropdown(Wm.IMAGES),"path"),this.setColour(om),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"]]},Km={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let t=0;t<5;t++){let e=this.appendDummyInput();for(let i=0;i<5;i++)e.appendField(new Rt.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),t+"-"+i)}this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(om),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Jm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Rt.inputs.Align.CENTRE).appendField(new Rt.FieldBitmap(Jm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(om),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(5).fill(0)))},qm={init:function(){this.setColour(om),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS)}},Qm={init:function(){this.setColour(om),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_AMBIENTBRIGHT),this.setInputsInline(!0),this.setOutput(!0,Number)}},zm={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(Rt.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS+" 0.0-1.0")}},jm={init:function(){this.setColour(om),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_SCREEN_ROTATE).appendField(new Rt.FieldDropdown(jm.OPERATORS),"OP"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)},OPERATORS:[[Rt.Msg.mixpy_PL_PIE_SHADOW_N,"0"],[Rt.Msg.CLOCKWISE+"90"+Rt.Msg.blockpy_setheading_degree,"1"],[Rt.Msg.CLOCKWISE+"180"+Rt.Msg.blockpy_setheading_degree,"2"],[Rt.Msg.CLOCKWISE+"270"+Rt.Msg.blockpy_setheading_degree,"3"]]},$m={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let t=0;t<12;t++){let e=this.appendDummyInput();for(let i=0;i<12;i++)e.appendField(new Rt.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),t+"-"+i)}this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(om),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Zm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Rt.inputs.Align.CENTRE).appendField(new Rt.FieldBitmap(Zm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(om),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:12},(()=>new Array(12).fill(0)))},tE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.Msg.OLED_BITMAP),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendValueInput("VAR").appendField(Rt.Msg.HTML_COLOUR),["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},eE={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(Rt.Msg.OLED_BITMAP).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("direct").setCheck(String).appendField(Rt.Msg.MIXLY_AipImageClassify_Image+Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},iE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.Msg.OLED_DRAWSTR),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(Rt.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendDummyInput("").appendField(Rt.Msg.TEXT_CENTER).appendField(new Rt.FieldDropdown([[Rt.Msg.MICROPYTHON_DISPLAY_YES,"True"],[Rt.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"center"),this.appendValueInput("VAR").appendField(Rt.Msg.HTML_COLOUR),["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_SHOW_IMAGE_OR_STRING_DELAY)}},nE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.Msg.MIXLY_ESP32_MONITOR_SHOW_FRAME),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("time").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.appendValueInput("VAR").appendField(Rt.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},sE={init:function(){this.jsonInit({colour:om,args0:[{name:"shape",options:[[Rt.Msg.MPYTHON_DISPLAY_HOLLOW,"rect"],[Rt.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:Rt.Msg.mpython_HELPURL,tooltip:Rt.Msg.MPYTHON_DISPLAY_SHAPE_RECT_TOOLTIP,message0:Rt.Msg.ONBOARD_TFT_DISPLAY_SHAPE_RECT_MESSAGE0,nextStatement:null,previousStatement:null})}},_E={init:function(){this.jsonInit({colour:om,args0:[{name:"dir_h_v",options:[[Rt.Msg.mpython_vertical,"0"],[Rt.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:Rt.Msg.mpython_HELPURL,tooltip:Rt.Msg.MPYTHON_DISPLAY_HVLINE_TOOLTIP,message0:Rt.Msg.ONBOARD_TFT_DISPLAY_HVLINE_MESSAGE0,nextStatement:null,previousStatement:null})}},oE={init:function(){this.jsonInit({colour:om,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:Rt.Msg.mpython_HELPURL,tooltip:Rt.Msg.mpython_display_line_TOOLTIP,message0:Rt.Msg.onboard_mpython_display_line_MESSAGE0,nextStatement:null,previousStatement:null})}},pE={init:function(){this.setColour(om),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("x").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendDummyInput().appendField(Rt.Msg.HTML_COLOUR),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_ESP32_JS_MONITOR_BRIGHTNESS)}},aE={init:function(){this.setColour(om),this.appendValueInput("x").setCheck(Number).appendField(Rt.Msg.MIXLY_LCD_SETCOLOR).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("VAR").appendField(Rt.Msg.HTML_COLOUR),["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},uE={init:function(){this.setColour(om),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_SCREEN_FILL),["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},rE={init:function(){this.setColour(om),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_INIT_CLOCK),this.appendDummyInput().appendField(Rt.Msg.MIXLY_CENTER_POS),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.OLED_CIRCLE_RADIUS),this.appendValueInput("VAR").appendField(Rt.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},lE={init:function(){this.setColour(om),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Rt.Msg.GET_RTCTIME),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},dE={init:function(){this.setColour(om),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Rt.Msg.SET_TIME),this.appendValueInput("h").setCheck(Number).appendField(Rt.Msg.MIXLY_HOUR),this.appendValueInput("m").setCheck(Number).appendField(Rt.Msg.MIXLY_MINUTE),this.appendValueInput("s").setCheck(Number).appendField(Rt.Msg.MIXLY_SECOND),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},IE={init:function(){this.setColour(om),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Rt.Msg.DRAW_CLOCK),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},TE={init:function(){this.setColour(om),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Rt.Msg.CLEAR_CLOCK),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_STM32_TFT_BACKGROUND_COLOR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},ME={init:function(){this.jsonInit({colour:om,args0:[{name:"shape",options:[[Rt.Msg.MPYTHON_DISPLAY_HOLLOW,"False"],[Rt.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:Rt.Msg.mpython_HELPURL,message0:Rt.Msg.ONBOARD_TFT_DISPLAY_SHAPE_CIRCLE_MESSAGE0,nextStatement:null,previousStatement:null})}},hE={init:function(){this.setColour(om),this.appendDummyInput().appendField(Rt.Msg.DRAW_POINTER).appendField(Rt.Msg.DRAW_POINTER_ANGLE),this.appendValueInput("angle"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_DRAW_POINTER_DU),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.DRAW_POINTER_TOOLTIP)}},mE={init:function(){this.setColour(om),this.appendDummyInput().appendField(Rt.Msg.DRAW_POINTER).appendField(Rt.Msg.DRAW_POINTER_ANGLE),this.appendValueInput("angle"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_DRAW_POINTER_DU),this.appendValueInput("VAR").appendField(Rt.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.DRAW_POINTER_TOOLTIP)}},EE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.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(Rt.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendValueInput("VAR").appendField(Rt.Msg.HTML_COLOUR),["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},OE={init:function(){this.setColour(om),this.appendValueInput("direct").appendField(Rt.Msg.OLED_BITMAP).appendField(Rt.Msg.MIXLY_QR_CODE),["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},RE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.Msg.OLED_BITMAP).appendField(Rt.Msg.MIXLY_QR_CODE),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_ERROR_RATE).appendField(new Rt.FieldDropdown([["0","7%"],["1","15%"],["2","25%"],["3","30"]]),"correct"),this.appendValueInput("VAR").appendField(Rt.Msg.HTML_COLOUR),["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},cE={init:function(){this.setColour(om),this.appendValueInput("data").appendField(Rt.Msg.OLED_BITMAP),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.OLED_BITMAP_OR_STRING),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},gE={init:function(){um.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},CE={init:function(){Im.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},SE={init:function(){cm.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},AE={init:function(){Sm.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},LE={init:function(){Am.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},NE={init:function(){Lm.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},DE=180,fE={init:function(){this.setColour(DE),this.setOutput(!0),this.setInputsInline(!0),this.appendValueInput("img").appendField(Rt.Msg.DISPLAY_IMAGE_LET).setCheck(["esp32_image","List",String]),this.appendDummyInput("").appendField(Rt.Msg.DISPLAY_IMAGE_LET2).appendField(new Rt.FieldDropdown(fE.OPERATORS),"OP"),this.appendValueInput("val").appendField(Rt.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(Rt.Msg.DISPLAY_IMAGE_UNIT);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP"),i=Rt.Msg.DISPLAY_IMAGE_LET,n=Rt.Msg.DISPLAY_IMAGE_LET2,s=Rt.Msg.DISPLAY_IMAGE_LET3;return i+n+{up:Rt.Msg.MIXLY_UP,down:Rt.Msg.MIXLY_DOWN,left:Rt.Msg.MIXLY_LEFT,right:Rt.Msg.MIXLY_RIGHT}[e]+s}))},OPERATORS:[[Rt.Msg.MIXLY_UP,"up"],[Rt.Msg.MIXLY_DOWN,"down"],[Rt.Msg.MIXLY_LEFT,"left"],[Rt.Msg.MIXLY_RIGHT,"right"]]},FE={init:function(){this.setColour(DE),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(Rt.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new Rt.FieldDropdown(FE.OPERATORS),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{"+":Rt.Msg.MIXLY_MICROBIT_image_add,"-":Rt.Msg.MIXLY_MICROBIT_image_reduce}[e]}))},OPERATORS:[[Rt.Msg.MICROBIT_DISPLAY_UNION,"+"],[Rt.Msg.MICROBIT_DISPLAY_MINUS,"-"]]},PE={init:function(){this.setColour(DE),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+Rt.Msg.MIXLY_MICROBIT_IMAGE),this.appendValueInput("VAR").setCheck("esp32_image"),this.appendDummyInput("").appendField(new Rt.FieldDropdown(PE.OPERATORS),"OP"),this.setInputsInline(!0),this.setOutput(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+Rt.Msg.MIXLY_MICROBIT_IMAGE+{height:Rt.Msg.MIXLY_HEIGHT,width:Rt.Msg.MIXLY_WIDTH}[e]}))},OPERATORS:[[Rt.Msg.MIXLY_HEIGHT,"height"],[Rt.Msg.MIXLY_WIDTH,"width"]]},vE={init:function(){this.setColour(DE),this.appendValueInput("VAR").appendField(Rt.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RECT).appendField(new Rt.FieldDropdown(vE.STATUS),"OP"),this.jsonInit({message0:Rt.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(Rt.Msg.MIXLY_OLED_RECT)},STATUS:[[Rt.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[Rt.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},YE={init:function(){this.setColour(DE),this.appendValueInput("VAR").appendField(Rt.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE).appendField(new Rt.FieldDropdown(YE.STATUS),"OP"),this.jsonInit({message0:Rt.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(Rt.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE)},STATUS:[[Rt.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[Rt.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},XE={init:function(){this.setColour(DE),this.appendValueInput("VAR").appendField(Rt.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_DISPLAY_DRAW+Rt.Msg.MIXLY_HANBIT_DRAW_TRIANGLE).appendField(new Rt.FieldDropdown(XE.STATUS),"OP"),this.jsonInit({message0:Rt.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(Rt.Msg.MIXLY_DISPLAY_DRAW+Rt.Msg.MIXLY_HANBIT_DRAW_TRIANGLE)},STATUS:[[Rt.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[Rt.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},yE="#777777",bE={init:function(){this.setColour(yE),this.appendDummyInput("").appendField("from ").appendField(new Rt.FieldTextInput("ESP32"),"path").appendField(" import ").appendField(new Rt.FieldTextInput("*"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},xE={init:function(){this.setColour(yE),this.appendDummyInput("").appendField("import ").appendField(new Rt.FieldTextInput("module"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},VE={init:function(){this.setColour(yE),this.appendDummyInput("").appendField(new Rt.FieldTextInput("my_function"),"NAME"),this.itemCount_=1,this.arguments_=["x"],this.updateShape_(),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new Rt.icons.MutatorIcon(["factory_create_with_item"],this))},mutationToDom:function(){var t=document.createElement("mutation");t.setAttribute("items",this.itemCount_);for(var e=0;ee?t[e]:'"key'+(e+1)+'"'),"KEY"+e).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},AO={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(Rt.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},LO={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},NO={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},DO={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").setCheck(String).appendField(Rt.Msg.MIXLY_EMQX_SERVER).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("USERNAME").setCheck(String).appendField(Rt.Msg.MIXLY_WIFI_USERNAME).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("PASSWORD").setCheck(String).appendField(Rt.Msg.MIXLY_IOT_PASSWORD).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("PROJECT").setCheck(String).appendField(Rt.Msg.MIXLY_EMQX_PROJECT).setAlign(Rt.inputs.Align.RIGHT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},fO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(Rt.Msg.HTML_BODY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},FO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(Rt.Msg.HTML_BODY),this.appendDummyInput().appendField(Rt.Msg.MIXLY_Service_quality_display).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_AT_MOST_ONCE,"0"],[Rt.Msg.MIXLY_AT_LEAST_ONCE,"1"]]),"quality"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},PO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(Rt.Msg.MIXLY_EMQX_SUBSCRIBE+Rt.Msg.MIXLY_MICROBIT_MSG).appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("METHOD").appendField(Rt.Msg.MIXLY_EMQX_SET_METHOD),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_IOT_EMQX_SUBSCRIBE_TOOLTIP)}},vO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_DISCONNECT_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},YO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_EMQX_CONNECT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},XO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_CHECK_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},yO={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(Rt.Msg.MQTT_Topic),this.setInputsInline(!0),this.setOutput(!0)}},bO={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_MSG),this.setInputsInline(!0),this.setOutput(!0)}},xO={init:function(){this.setColour(EO),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_ESP32_IOT_MAP_FORMATING),this.setOutput(!0)}},VO={init:function(){this.setColour(EO),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_MICROPYTHON_FORMAT+"(Json)"),this.setOutput(!0)}},BO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_EMQX_PING),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_IOT_EMQX_PING_TOOLTIP)}},GO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MixIO").appendField(Rt.Msg.MIXLY_GET_NTP),this.appendValueInput("addr").appendField(Rt.Msg.blynk_SERVER_ADD),this.setInputsInline(!0),this.setOutput(!0)}},UO={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").appendField(Rt.Msg.MIXLY_EMQX_SERVER).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(Rt.Msg.CONTROLS_FOR_INPUT_WITH+Rt.Msg.MIXLY_MIXIO_SHARE_KEY).setAlign(Rt.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},wO={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").appendField(Rt.Msg.MIXLY_EMQX_SERVER).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(Rt.Msg.CONTROLS_FOR_INPUT_WITH+"Mixly Key").setAlign(Rt.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},kO={init:function(){this.VISITOR_ID=ct.Config.BOARD.visitorId.str32.substring(0,8).toUpperCase(),this.setColour(EO),this.appendDummyInput("").appendField(new Rt.FieldTextInput(this.visitorId),"VISITOR_ID"),this.setOutput(!0,null)},onchange:function(){const t=this.getFieldValue("VISITOR_ID");this.VISITOR_ID!==t&&this.setFieldValue(this.VISITOR_ID,"VISITOR_ID")}},HO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MixIO").appendField(Rt.Msg.MSG.catEthernet_clinet),this.setOutput(!0),this.setInputsInline(!0)}},WO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("HTTP"+Rt.Msg.MIXLY_Client),this.appendValueInput("addr").appendField(Rt.Msg.DISPLAY_IMAGE_LET2),this.appendDummyInput().appendField(Rt.Msg.MIXLY_REQUESTS_GET).appendField(Rt.Msg.MIXLY_GET_CURRENT_TIME).appendField(Rt.Msg.MIXLY_OPEN_DEBUG).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Rt.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},KO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("HTTP"+Rt.Msg.MIXLY_Client).appendField(Rt.Msg.MIXLY_GET).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_REQUESTS_LEN,"client_len"],[Rt.Msg.MIXLY_REQUESTS_GET_LEN,"server_len"],[Rt.Msg.MIXLY_REQUESTS_MESSAGE,"text"]]),"key"),this.setOutput(!0),this.setInputsInline(!0)}},JO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MQTT"+Rt.Msg.MIXLY_Client),this.appendValueInput("addr").appendField(Rt.Msg.MIXLY_CONNECTTO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_INIT_SUBSCRIBE).appendField(Rt.Msg.MQTT_Topic).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GET_CURRENT_TIME,""]]),"key").appendField(Rt.Msg.MIXLY_OPEN_DEBUG).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Rt.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"key2"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},qO={init:function(){this.setColour(EO),this.appendDummyInput().appendField("MQTT"+Rt.Msg.MIXLY_Client).appendField(Rt.Msg.MIXLY_GET).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_REQUESTS_LEN,"client_len"],[Rt.Msg.MIXLY_REQUESTS_GET_LEN,"server_len"],[Rt.Msg.MIXLY_REQUESTS_MESSAGE,"time_msg()"]]),"key"),this.setOutput(!0),this.setInputsInline(!0)}},QO=OO,zO=RO,jO=cO,$O=gO,ZO=SO,tR={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_CONNECT_OLLAMA),this.appendValueInput("SERVER").appendField(Rt.Msg.MIXLY_EMQX_SERVER).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("NAME").appendField(Rt.Msg.MODEL_NAME).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("NUMBER").appendField(Rt.Msg.MIXLY_SET_MAXIMUM_HISTORICAL_SESSIONS_NUM),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},eR=tR,iR={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_CONNECT_OPENAI),this.appendValueInput("SERVER").appendField(Rt.Msg.MIXLY_EMQX_SERVER).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(Rt.Msg.MIXLY_API_PRIVATE_KEY).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("NAME").appendField(Rt.Msg.MODEL_NAME).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("NUMBER").appendField(Rt.Msg.MIXLY_SET_MAXIMUM_HISTORICAL_SESSIONS_NUM),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},nR={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_LLM_CHAT),this.appendValueInput("TOPIC").appendField(Rt.Msg.MIXLY_MIXGO_ESPNOW_SEND),this.appendValueInput("METHOD").appendField(Rt.Msg.MIXLY_LLM_CONTENT_CALLBACK),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},sR={init:function(){this.setColour(EO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_LLM_CHAT),this.appendValueInput("TOPIC").appendField(Rt.Msg.MIXLY_MIXGO_ESPNOW_SEND),this.appendDummyInput().appendField(Rt.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0)}},_R={init:function(){this.setColour(EO),this.appendDummyInput().appendField("Ollama "+Rt.Msg.MIXLY_EMPTY_HISTORY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},oR={init:function(){this.setColour(0),this.appendDummyInput().appendField(`${Rt.Msg.MIXLY_SETUP} TinyWebDB`),this.appendValueInput("ADDR").setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_EMQX_SERVER),this.appendValueInput("USERNAME").setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_EMQX_USERNAME),this.appendValueInput("PASSWORD").setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_IOT_PASSWORD),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},pR={init:function(){this.setColour(0),this.appendDummyInput().appendField(`${Rt.Msg.MIXLY_SETUP} TinyWebDB`),this.appendValueInput("MQTT").setAlign(Rt.inputs.Align.RIGHT).appendField(`MixIO ${Rt.Msg.MIXLY_Client}`),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},aR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_TINY_WEB_DB_UPDATE_VARIABLE),this.appendValueInput("VALUE").setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},uR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").appendField(Rt.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLE),this.appendDummyInput().appendField(Rt.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setOutput(!0)}},rR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_NUM),this.setInputsInline(!0),this.setOutput(!0)}},lR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB").appendField(Rt.Msg.MIXLY_TINY_WEB_DB_SEARCH_VARIABLES),this.appendValueInput("NO").setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_TINY_WEB_DB_START_NUMBER),this.appendValueInput("COUNT").setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_TINY_WEB_DB_VARIABLE_NUMBER),this.appendValueInput("TAG").setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_TINY_WEB_DB_SEARCH_VARS),this.appendDummyInput().setAlign(Rt.inputs.Align.RIGHT).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_ALL,"both"],[Rt.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_TAG,"tag"],[Rt.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_VALUE,"value"]]),"DTYPE"),this.setInputsInline(!1),this.setOutput(!0)}},dR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").appendField(Rt.Msg.MIXLY_TINY_WEB_DB_DELETE_VARIABLE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},IR=225,TR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_NETWORK_INIT),this.appendDummyInput().appendField(Rt.Msg.MIXLY_NETWORK_MODE).appendField(new Rt.FieldDropdown([["STA","STA"],["AP","AP"]]),"mode"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_INIT_TOOLTIP)}},MR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_NETWORK_WIFI_OPEN,"True"],[Rt.Msg.MIXLY_NETWORK_WIFI_CLOSE,"False"]]),"op"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_NETWORK_WIFI_FLAG),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("op"),i=Rt.Msg.MIXLY_ESP32_NETWORK_OPEN_TOOLTIP;return{True:Rt.Msg.MIXLY_NETWORK_WIFI_OPEN,False:Rt.Msg.MIXLY_NETWORK_WIFI_CLOSE}[e]+i}))}},hR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_NETWORK_WIFI_IS_ACTIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_NETWORK_WIFI_IS_ACTIVE)}},mR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_NETWORK_WIFI_SCAN),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip((function(){return Rt.Msg.MIXLY_ESP32_NETWORK_SCAN_TOOLTIP+{0:"ssid",1:"bssid",2:"channel",3:"RSSI",4:"authmode",5:"hidden",all:Rt.Msg.MIXLY_NETWORK_WIFI_SCAN_ATTRIBUTE}.all}))}},ER={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_ESP32_NETWORK_CONNECT),this.appendValueInput("id").setCheck(String).appendField(Rt.Msg.HTML_NAME),this.appendValueInput("password").setCheck(String).appendField(Rt.Msg.HTML_PASSWORD),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_CONNECT_TOOLTIP)}},OR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_NETWORK_WIFI_CONNECT+Rt.Msg.MIXLY_SYMBOL_QUESTION),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_WIFI_CONNECT_TOOLTIP)}},RR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_ESP32_NETWORK_GET_WIFI),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_ESP32_NETWORK_IP,"0"],[Rt.Msg.MIXLY_ESP32_NETWORK_MASK,"1"],[Rt.Msg.MIXLY_ESP32_NETWORK_GATEWAY,"2"],["DNS","3"]]),"mode"),this.setOutput(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("mode");return Rt.Msg.MIXLY_ESP32_NETWORK_GET_WIFI_TOOLTIP+{0:Rt.Msg.MIXLY_ESP32_NETWORK_IP,1:Rt.Msg.MIXLY_ESP32_NETWORK_MASK,2:Rt.Msg.MIXLY_ESP32_NETWORK_GATEWAY,3:"DNS"}[e]}))}},cR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_ESP32_NETWORK_STOP_CONNECT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_STOP_TOOLTIP)}},gR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_ESP32_NETWORK_GET_WIFI),this.appendDummyInput().appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_NETWORK_WIFI_ESSID,"essid"],[Rt.Msg.MIXLY_NETWORK_WIFI_CHANNEL,"channel"]]),"op"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_GET_WIFI_TOOLTIP)}},CR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.LISTS_SET_INDEX_SET+Rt.Msg.MIXLY_HOTSPOT),this.appendValueInput("essid").setCheck(String).appendField(Rt.Msg.MIXLY_NAME),this.appendValueInput("password").setCheck(String).appendField(Rt.Msg.MIXLY_EMQX_PASSWORD),this.appendValueInput("channel").setCheck(Number).appendField(Rt.Msg.MIXLY_NETWORK_WIFI_CHANNEL),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_AP_CONNECT_TOOLTIP)}},SR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_ESP32_NETWORK_SERVER1),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_ESP32_NETWORK_SERVER2),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_CLOSE_TOOLTIP)}},AR={init:function(){this.setColour(IR),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_INIT).setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_TYPE).appendField(new Rt.FieldDropdown([["TCP","TCP"],["UDP","UDP"]]),"mode"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("mode");return Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_INIT_TOOLTIP+{TCP:"TCP",UDP:"UDP"}[e]}))}},LR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_LET_SOCKET),this.appendValueInput("address").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_BIND_TO_ADDRESS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_BIND_TOOLTIP)}},NR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_LET_SOCKET),this.appendValueInput("address").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_CONNECT_TO_ADDRESS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_CONNECT_TOOLTIP)}},DR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendValueInput("queue").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_LISTEN).appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_QUEUE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_LISTEN_TOOLTIP)}},fR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_ACCEPT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_ACCEPT_TOOLTIP)}},FR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_READLINE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_READLINE_TOOLTIP)}},PR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var").appendField("TCP"),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_RECEIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_RECEIVE_TOOLTIP)}},vR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var").appendField("TCP"),this.appendValueInput("content").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_SEND),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_SEND_TOOLTIP)}},YR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var").appendField("UDP"),this.appendValueInput("size").setCheck(Number).appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_RECEIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_RECEIVE_FROM_TOOLTIP)}},XR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var").appendField("UDP"),this.appendValueInput("content").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_SEND),this.appendValueInput("address").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_TO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_SEND_TO_TOOLTIP)}},yR={init:function(){this.setColour(IR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_CLOSE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_NETWORK_SOCKET_CLOSE_TOOLTIP)}},bR={init:function(){this.setColour(IR),this.appendValueInput("DOMAIN").appendField(Rt.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(Rt.Msg.blockpy_REQUESTS_GET).appendField(new Rt.FieldTextInput("response"),"VAR"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.blockpy_REQUESTS_GET_TOOLTIP)},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},xR={init:function(){this.appendValueInput("VAL"),this.setColour(IR),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Rt.FieldDropdown(xR.ATTR),"ATTR"),this.setInputsInline(!0),this.setOutput(!0,String);var t=this;this.setTooltip((function(){var e=t.getFieldValue("DIR");return{clear:Rt.Msg.MIXLY_TOOLTIP_TURTEL_CLEAR,reset:Rt.Msg.MIXLY_TOOLTIP_TURTEL_RESET,home:Rt.Msg.MIXLY_TOOLTIP_TURTEL_HOME}[e]}))},ATTR:[[Rt.Msg.blockpy_REQUESTS_GET_ATTR_STATUS_CODE,"status_code"],[Rt.Msg.blockpy_REQUESTS_GET_ATTR_TEXT,"text"],[Rt.Msg.blockpy_REQUESTS_GET_ATTR_COOKIES,"cookies"],[Rt.Msg.blockpy_REQUESTS_GET_ATTR_CONTENT,"content"]]},VR={init:function(){this.appendValueInput("VAR").appendField(Rt.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.setColour(IR),this.appendDummyInput("").appendField(Rt.Msg.blockpy_CONDUCT).appendField(new Rt.FieldDropdown(VR.METHOD),"DIR"),this.appendDummyInput("").appendField(Rt.Msg.blockpy_REQUESTS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("DIR");return{forward:Rt.Msg.MIXLY_TOOLTIP_TURTEL_FORWARD,backward:Rt.Msg.MIXLY_TOOLTIP_TURTEL_BACKWARD}[e]}))},METHOD:[["post","post"],["put","put"],["delete","delete"],["head","head"],["option","option"]]},BR={init:function(){this.setColour(IR),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_GET_NTP+"(NTP)"),this.appendValueInput("data").appendField(Rt.Msg.blynk_SERVER_ADD),this.setOutput(!0,"Tuple"),this.setInputsInline(!0)}},GR={init:function(){this.setColour(IR),this.appendDummyInput("").appendField(new Rt.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)}},UR="#3288dd",wR={init:function(){this.setColour(UR),this.appendValueInput("URL").appendField(Rt.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(Rt.Msg.blockpy_CONDUCT).appendField(new Rt.FieldDropdown([["get","get"],["head","head"],["delete","delete"]]),"TYPE").appendField(Rt.Msg.blockpy_REQUESTS).appendField(Rt.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip("")}},kR={init:function(){this.setColour(UR),this.appendValueInput("URL").appendField(Rt.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(Rt.Msg.blockpy_CONDUCT).appendField(new Rt.FieldDropdown([["post","post"],["put","put"],["patch","patch"]]),"TYPE").appendField(Rt.Msg.blockpy_REQUESTS),this.appendValueInput("data").appendField(Rt.Msg.blockpy_REQUESTS+Rt.Msg.OLED_STRING),this.appendDummyInput("").appendField(Rt.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip("")}},HR={init:function(){this.appendValueInput("VAL"),this.setColour(UR),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Rt.FieldDropdown(HR.ATTR),"ATTR"),this.setInputsInline(!0),this.setOutput(!0,String)},ATTR:[[Rt.Msg.blockpy_REQUESTS_GET_ATTR_TEXT,"text"],[Rt.Msg.blockpy_REQUESTS_GET_ATTR_JSON,"json()"],[Rt.Msg.blockpy_REQUESTS_GET_ATTR_STATUS_CODE,"status_code"],[Rt.Msg.blockpy_REQUESTS_GET_ATTR_CONTENT,"content"],[Rt.Msg.MIXPY_TEXT_ENCODE,"encoding"]]},WR={init:function(){this.setColour(UR),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_IOT_CONNECT_WIFI),this.appendValueInput("WIFINAME").setCheck(String).appendField(Rt.Msg.HTML_NAME),this.appendValueInput("PASSWORD").setCheck(String).appendField(Rt.Msg.HTML_PASSWORD),this.appendValueInput("TIMEOUT").setCheck(Number).appendField(Rt.Msg.MIXLY_IR_TIMEOUT),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_IOT_WIFI_CONNECT_TOOLTIP)}},KR={init:function(){this.setColour(UR),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_IOT_EMQX_CONNECT_TOOLTIP),this.appendValueInput("SERVER").setCheck(String).appendField(Rt.Msg.MIXLY_EMQX_SERVER).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("PORT").setCheck(Number).appendField(Rt.Msg.MIXLY_EMQX_PORT).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("CLIENT_ID").setCheck(String).appendField(Rt.Msg.MIXLY_EMQX_CLIENT_ID).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("USERNAME").setCheck(String).appendField(Rt.Msg.MIXLY_WIFI_USERNAME).setAlign(Rt.inputs.Align.RIGHT),this.appendValueInput("PASSWORD").setCheck(String).appendField(Rt.Msg.MIXLY_IOT_PASSWORD).setAlign(Rt.inputs.Align.RIGHT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},JR={init:function(){this.setColour(UR),this.appendValueInput("TOPIC").appendField(Rt.Msg.MIXLY_EMQX_SUBSCRIBE+Rt.Msg.MIXLY_MICROBIT_MSG).appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MESSAGE").appendField(Rt.Msg.blockpy_set_of),this.setInputsInline(!0),this.setOutput(!0)}},qR={init:function(){this.setColour(UR),this.appendDummyInput().appendField("mqtt"),this.appendValueInput("TOPIC").appendField(Rt.Msg.MIXLY_EMQX_SUBSCRIBE+Rt.Msg.MIXLY_MICROBIT_MSG).appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("METHOD").appendField(Rt.Msg.MIXLY_EMQX_SET_METHOD),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},QR={init:function(){this.setColour(UR),this.appendDummyInput().appendField("mqtt"),this.appendValueInput("TOPIC").appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(Rt.Msg.HTML_BODY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},zR={init:function(){this.setColour(UR),this.appendDummyInput().appendField("mqtt"+Rt.Msg.MIXLY_EMQX_IS_CONNECT),this.setInputsInline(!0),this.setOutput(!0)}},jR=100,$R={init:function(){this.setColour(jR),this.appendValueInput("I2CSUB").appendField(Rt.Msg.CONTROLS_FOR_INPUT_WITH+"I2C").setCheck("var"),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_SETUP+Rt.Msg.LISTS_SET_INDEX_INPUT_TO).appendField("PE GX"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},ZR={init:function(){this.setColour(jR),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXGO_CAR_BATTERY_LEFT),this.setOutput(!0,Number),this.setInputsInline(!0)}},tc={init:function(){this.setColour(jR),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField(Rt.Msg.MOTOR_DC).appendField(Rt.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Direction).appendField(new Rt.FieldDropdown([[Rt.Msg.CLOCKWISE,"CW"],[Rt.Msg.ANTI_CLOCKWISE,"CCW"],[Rt.Msg.MOTOR_P,"P"],[Rt.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},ec={init:function(){this.setColour(jR),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField(Rt.Msg.MOTOR_DC).appendField(Rt.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(Rt.Msg.MIXLY_STEPPER_GET_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},ic={init:function(){this.setColour(jR),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField("180°"+Rt.Msg.MIXLY_SERVO).appendField(Rt.Msg.LCD_NUMBERING),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_SERVO_MOVE)}},nc={init:function(){this.setColour(jR),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField("360°"+Rt.Msg.MIXLY_SERVO).appendField(Rt.Msg.LCD_NUMBERING),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Rt.inputs.Align.RIGHT).appendField(Rt.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_SERVO_SPEED_TOOLIPS)}},sc={init:function(){this.setColour(jR),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField("180°"+Rt.Msg.MIXLY_SERVO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET+Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},_c={init:function(){this.setColour(jR),this.appendValueInput("SUB").appendField("PE GX").setCheck("var"),this.appendValueInput("PIN").appendField("360°"+Rt.Msg.MIXLY_SERVO).appendField(Rt.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET+Rt.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},oc="#A58C5B",pc={init:function(){this.setColour(oc),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_BUTTON).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_IS_PRESSED),this.appendValueInput("STAT").appendField(Rt.Msg.MIXLY_ELECLEVEL),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_SENOR_IS_PRESSED)}},ac={init:function(){this.setColour(oc),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_BUTTON).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_WAS_PRESSED),this.appendValueInput("STAT").appendField(Rt.Msg.MIXLY_ELECLEVEL),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_SENOR_WAS_PRESSED)}},uc={init:function(){this.setColour(oc),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_BUTTON).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET_PRESSES),this.appendValueInput("VAR").setCheck(Number).appendField(Rt.Msg.MIXLY_GET_PRESSES_TIME),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Rt.Msg.PROCEDURES_DEFRETURN_RETURN+Rt.Msg.MIXLY_BUTTON+Rt.Msg.MIXLY_GET_PRESSES)}},rc={init:function(){this.setColour(oc),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_BUTTON).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MODE).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_RISING,"machine.Pin.IRQ_RISING"],[Rt.Msg.MIXLY_FALLING,"machine.Pin.IRQ_FALLING"],[Rt.Msg.MIXLY_CHANGE,"(machine.Pin.IRQ_RISING | machine.Pin.IRQ_FALLING)"]]),"mode"),this.appendValueInput("DO").appendField(Rt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_INOUT_ATTACHINTERRUPT)}},lc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_shake,"shake"],[Rt.Msg.MIXLY_UP,"up"],[Rt.Msg.MIXLY_DOWN,"down"],[Rt.Msg.MIXLY_LEFT,"left"],[Rt.Msg.MIXLY_RIGHT,"right"],[Rt.Msg.MIXLY_MICROBIT_face_up,"face up"],[Rt.Msg.MIXLY_MICROBIT_face_down,"face down"],[Rt.Msg.MIXLY_MICROBIT_freefall,"freefall"],["3g","3g"],["6g","6g"],["8g","8g"]]),"gesture"),this.appendStatementInput("DO").appendField(Rt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("gesture"),i=Rt.Msg.MIXLY_MICROBIT_JS_CURRENT,n=Rt.Msg.MSG.catSensor,s=Rt.Msg.MIXLY_MICROBIT_JS_STATE,_=Rt.Msg.MIXLY_MICROBIT_PERFORMANCE;return i+n+s+{shake:Rt.Msg.MIXLY_MICROBIT_shake,up:Rt.Msg.MIXLY_UP,down:Rt.Msg.MIXLY_DOWN,left:Rt.Msg.MIXLY_LEFT,right:Rt.Msg.MIXLY_RIGHT,"face up":Rt.Msg.MIXLY_MICROBIT_face_up,"face down":Rt.Msg.MIXLY_MICROBIT_face_down,freefall:Rt.Msg.MIXLY_MICROBIT_freefall,"3g":"3g","6g":"6g","8g":"8g"}[e]+_}))}},dc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_ADXL345).setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_JS_ACCELERATION).appendField(new Rt.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_JS_ACCELERATION);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key"),i=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Rt.Msg.MIXLY_MICROBIT_Direction,s=Rt.Msg.MIXLY_MICROBIT_JS_ACCELERATION1;return i+{x:"x",y:"y",z:"z","(x,y,z)":Rt.Msg.MIXLY_MICROBIT_Shiliang_Direction}[e]+n+s}))}},Ic={init:function(){this.setColour(oc),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_JS_LIGHT_LEVEL),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_SENSOR_LIGHT_LEVEL_TOOLTIP)}},Tc={init:function(){this.setColour(oc),this.appendValueInput("PIN",Number).appendField(new Rt.FieldDropdown([["DHT11","DHT11"],["DHT22","DHT22"]]),"TYPE").appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(new Rt.FieldDropdown(Tc.METHOD),"WHAT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("WHAT");return{temperature:Rt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_TEM,relative_humidity:Rt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_HUM,tempandhum:Rt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_TEM_HUM}[e]}))},METHOD:[[Rt.Msg.MIXLY_GETTEMPERATUE,"temperature"],[Rt.Msg.MIXLY_GETHUMIDITY,"humidity"]]},Mc={init:function(){this.setColour(oc),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_EXTERN_LIGHT),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_EXTERN_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Rt.Msg.ESP32_SENSOR_NIXGO_LIGHT_TOOLTIP)}},hc={init:function(){this.setColour(oc),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_EXTERN_SOUND),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_EXTERN_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Rt.Msg.ESP32_SENSOR_NIXGO_SOUND_TOOLTIP)}},mc={init:function(){this.setColour(oc),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new Rt.FieldDropdown([[Rt.Msg.TEXT_TRIM_LEFT,"left"],[Rt.Msg.TEXT_TRIM_RIGHT,"right"]]),"direction").appendField(Rt.Msg.MIXLY_ESP32_NEAR),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("direction"),i=Rt.Msg.MIXLY_ESP32_SENSOR_MIXGO_PIN_NEAR_TOOLTIP,n=Rt.Msg.MIXLY_ESP32_NEAR;return i+{left:Rt.Msg.TEXT_TRIM_LEFT,right:Rt.Msg.TEXT_TRIM_RIGHT}[e]+n}))}},Ec={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_ALTITUDE_SENSOR+" BMP280").setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GETTEMPERATUE,"get_BMP_temperature()"],[Rt.Msg.MIXLY_GETPRESSURE,"get_BMP_pressure()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key");return{"get_BMP_temperature()":Rt.Msg.MIXLY_MICROBIT_SENSOR_BMP_temperature_TOOLTIP,"get_BMP_pressure()":Rt.Msg.MIXLY_MICROBIT_SENSOR_BMP_press_TOOLTIP}[e]}))}},Oc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+" SHT20").setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GETTEMPERATUE,"get_SHT_temperature()"],[Rt.Msg.MIXLY_GETHUMIDITY,"get_SHT_relative_humidity()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key");return{"get_SHT_temperature()":Rt.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,"get_SHT_relative_humidity()":Rt.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[e]}))}},Rc={init:function(){this.setColour(oc),this.appendValueInput("PIN",Number).appendField("DS18X20 "+Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_GETTEMPERATUE),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_SENSOR_DS18X20_TOOLTIP)}},cc={init:function(){this.setColour(oc),this.appendDummyInput("").appendField("LM35"+Rt.Msg.MIXLY_TEMP),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_GETTEMPERATUE),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Rt.Msg.MIXLY_TOOLTIP_LM35)}},gc={init:function(){this.setColour(oc),this.appendValueInput("I2CSUB").appendField(Rt.Msg.CONTROLS_FOR_INPUT_WITH+"I2C").setCheck("var"),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_SETUP+Rt.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_ESP32_EXTERN_LIGHT+"(LTR308ALS)","LTR308"],[Rt.Msg.MIXLY_COLOR_SENSOR+"(LTR381RGB)","LTR381RGB"],[Rt.Msg.MIXLY_COLOR_SENSOR+"(UCS12071)","UCS12071"],[Rt.Msg.MIXLY_EXTERN_LIGHTUV+"(LTR390UV)","LTR390UV"],[Rt.Msg.MIXLY_ALTITUDE_SENSOR+"(HP203X)","HP203X"],[Rt.Msg.MIXLY_ALTITUDE_SENSOR+"(SPL06_001)","SPL06_001"],[Rt.Msg.MIXLY_ALTITUDE_SENSOR+"(MS5611)","MS5611"],[Rt.Msg.MIXLY_ALTITUDE_SENSOR+"(BMP280)","BMP280"],[Rt.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(SHTC3)","SHTC3"],[Rt.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(AHT21)","AHT21"],[Rt.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(SHT20)","SHT20"],[Rt.Msg.MIXLY_LASER_RANGE_SENSOR+"(VL53L0X)","VL53L0X"],[Rt.Msg.MIXLY_GEOMAGNETIC_SENSOR+"(QMC5883L)","QMC5883L"],[Rt.Msg.MIXLY_ESP32_MAX30102+"(MAX30102)","MAX30102"],[Rt.Msg.HTML_COLOUR+"、"+Rt.Msg.MIXLY_ENVIRONMENT_LIGHT+"、"+Rt.Msg.MIXLY_NEXT+"、"+Rt.Msg.MIXLY_ESP32_APDS9960+"(APDS9960)","APDS9960"],[Rt.Msg.MIXLY_NINE_AXIS_SENSOR+"(MPU9250)","MPU9250"],[Rt.Msg.MixGo_MPU9250+"(ADXL345)","ADXL345"],["RFID","RFID"],[Rt.Msg.MIXLY_RADAR_SENSOR+"(CBR817)","CBR817"],[Rt.Msg.MIXLY_AipSpeech_asr+"(CI130X)","CI130X"],[Rt.Msg.MIXLY_TVOC_CO2_SENSOR+"(AGS10)","AGS10"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},Cc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_RADAR+"CBR817").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.LISTS_SET_INDEX_SET+Rt.Msg.MIXlY_INTERACTION),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_DETECTION_THRESHOLD),this.appendValueInput("VAR2").appendField(Rt.Msg.MIXLY_DELAY_TIME),this.appendDummyInput().appendField("ms"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_THRESHOLD_TOOLTIP+" ; "+Rt.Msg.MIXLY_DELAY_TIME_RANGE)}},Sc={init:function(){this.setColour(oc),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RADAR).appendField(Rt.Msg.LISTS_SET_INDEX_SET+Rt.Msg.MIXlY_INTERACTION),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_DETECTION_THRESHOLD),this.appendValueInput("VAR2").appendField(Rt.Msg.MIXLY_DELAY_TIME),this.appendDummyInput().appendField("ms"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_THRESHOLD_TOOLTIP+" ; "+Rt.Msg.MIXLY_DELAY_TIME_RANGE)}},Ac={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_RADAR+"CBR817").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},Lc={init:function(){this.setColour(oc),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RADAR).appendField(Rt.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},Nc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_IDENTIFY_ONCE_AND_SAVE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Dc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_GET).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_HELLO_XIAOZHI,"1"],[Rt.Msg.MIXLY_XIAOZHIXIAOZHI,"2"],[Rt.Msg.MIXLY_THE_FIRST,"3"],[Rt.Msg.MIXLY_THE_SECOND,"4"],[Rt.Msg.MIXLY_THE_THIRD,"5"],[Rt.Msg.MIXLY_THE_FOURTH,"6"],[Rt.Msg.MIXLY_THE_FIFTH,"7"],[Rt.Msg.MIXLY_THE_SIXTH,"8"],[Rt.Msg.MIXLY_THE_SEVENTH,"9"],[Rt.Msg.MIXLY_THE_EIGHTH,"10"],[Rt.Msg.MIXLY_THE_NINTH,"11"],[Rt.Msg.MIXLY_THE_TENTH,"12"],[Rt.Msg.MIXLY_THE_ELEVENTH,"13"],[Rt.Msg.MIXLY_THE_TWELFTH,"14"],[Rt.Msg.MIXLY_THE_13TH,"15"],[Rt.Msg.MIXLY_THE_14TH,"16"],[Rt.Msg.MIXLY_THE_15TH,"17"],[Rt.Msg.MIXLY_THE_16TH,"18"],[Rt.Msg.MIXLY_THE_17TH,"19"],[Rt.Msg.MIXLY_THE_18TH,"20"],[Rt.Msg.MIXLY_THE_19TH,"21"],[Rt.Msg.MIXLY_THE_20TH,"22"],[Rt.Msg.MIXLY_Turn_on_the_lights,"23"],[Rt.Msg.MIXLY_Turn_off_the_lights,"24"],[Rt.Msg.MIXLY_Turn_up_the_brightness,"25"],[Rt.Msg.MIXLY_Turn_down_the_brightness,"26"],[Rt.Msg.MIXLY_Set_it_to_red,"27"],[Rt.Msg.MIXLY_Set_it_to_orange,"28"],[Rt.Msg.MIXLY_Set_it_to_yellow,"29"],[Rt.Msg.MIXLY_Set_it_to_green,"30"],[Rt.Msg.MIXLY_Set_it_to_cyan,"31"],[Rt.Msg.MIXLY_Set_it_to_blue,"32"],[Rt.Msg.MIXLY_Set_it_to_purple,"33"],[Rt.Msg.MIXLY_Set_it_to_white,"34"],[Rt.Msg.MIXLY_Turn_on_the_fan,"35"],[Rt.Msg.MIXLY_Turn_off_the_fan,"36"],[Rt.Msg.MIXLY_First_gear,"37"],[Rt.Msg.MIXLY_Wind_speed_second,"38"],[Rt.Msg.MIXLY_Third_gear,"39"],[Rt.Msg.MIXLY_Previous,"40"],[Rt.Msg.MIXLY_Next_page,"41"],[Rt.Msg.MIXLY_Show_smiley_face,"42"],[Rt.Msg.MIXLY_Show_crying_face,"43"],[Rt.Msg.MIXLY_Show_love,"44"],[Rt.Msg.MIXLY_Close_display,"45"],[Rt.Msg.MIXLY_Start_execution,"46"],[Rt.Msg.MIXLY_FORWARD,"47"],[Rt.Msg.MIXLY_BACKWARD,"48"],[Rt.Msg.MIXLY_TURNLEFT,"49"],[Rt.Msg.MIXLY_TURNRIGHT,"50"],[Rt.Msg.MIXLY_STOP,"51"],[Rt.Msg.MIXLY_Accelerate,"52"],[Rt.Msg.MIXLY_retard,"53"],[Rt.Msg.ROTATION_FORWARD,"54"],[Rt.Msg.ROTATION_BACKWARD,"55"],[Rt.Msg.MIXLY_Query_temperature,"56"],[Rt.Msg.MIXLY_Query_humidity,"57"],[Rt.Msg.MIXLY_Query_brightness,"58"],[Rt.Msg.MIXLY_Query_sound,"59"],[Rt.Msg.MIXLY_Query_time,"60"],[Rt.Msg.MIXLY_Query_distance,"61"],[Rt.Msg.MIXLY_Query_pressure,"62"],[Rt.Msg.MIXLY_Query_key,"63"],[Rt.Msg.MIXLY_Query_touch,"64"],[Rt.Msg.MIXLY_Query_color,"65"]]),"cmd").appendField(Rt.Msg.MIXLY_WHETHER+Rt.Msg.MIXLY_BE_IDENTIFIED),this.setOutput(!0),this.setInputsInline(!0)}},fc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_GET).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_RECOGNIZED_STATE,"status1"],[Rt.Msg.MIXLY_WHETHER_BROADCAST,"status2"],[Rt.Msg.MIXLY_THE_RECOGNIZED_CMD,"result"]]),"key"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_CI130X_GET_THE_RECOGNIZED_STATE_TOOLTIP)}},Fc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MP3_PLAY).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_JS_INOUT_PULL_NONE,"None"],[Rt.Msg.MIXLY_WIND_SPEED,"154"],[Rt.Msg.MIXLY_HYETAL,"155"],[Rt.Msg.MIXLY_TEMPERATURE,"156"],[Rt.Msg.MIXLY_Humidity,"157"],[Rt.Msg.MIXLY_Altitude,"158"],[Rt.Msg.MIXLY_SOUND,"159"],[Rt.Msg.MIXLY_BRIGHTNESS,"160"],[Rt.Msg.ME_GO_HALL_SENSOR_DISTANCE,"161"],[Rt.Msg.MIXLY_SERVO,"162"],[Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"163"],[Rt.Msg.MIXLY_BUTTON2,"164"],[Rt.Msg.MIXLY_ESP32_TOUCH,"165"],[Rt.Msg.MIXLY_PAY,"166"],[Rt.Msg.MIXLY_CARSH_CHANGE,"167"],[Rt.Msg.MIXLY_COUNTDOWN,"168"],[Rt.Msg.MIXLY_TIMING,"169"],[Rt.Msg.MIXLY_AT_THE_MOMENT,"170"],[Rt.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE,"171"],[Rt.Msg.MIXLY_FORWARD,"172"],[Rt.Msg.MIXLY_BACKWARD,"173"],[Rt.Msg.MIXLY_TURNLEFT,"174"],[Rt.Msg.MIXLY_TURNRIGHT,"175"],[Rt.Msg.MIXLY_STOP,"176"],[Rt.Msg.MIXLY_Accelerate,"177"],[Rt.Msg.MIXLY_retard,"178"],[Rt.Msg.ROTATION_FORWARD,"179"],[Rt.Msg.ROTATION_BACKWARD,"180"],[Rt.Msg.TUPLE_JOIN,"181"],[Rt.Msg.MIXLY_SHOW,"182"],[Rt.Msg.MIXLY_LAMPLIGHT,"183"],[Rt.Msg.MIXLY_ACCELERATION,"184"]]),"star"),this.appendValueInput("NUM").appendField(Rt.Msg.MIXLY_NUMBER),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_UNIT).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_JS_INOUT_PULL_NONE,"None"],[Rt.Msg.MIXLY_YEAR,"117"],[Rt.Msg.MIXLY_MONTH,"118"],[Rt.Msg.MIXLY_DAY,"119"],[Rt.Msg.MIXLY_HOUR,"120"],[Rt.Msg.MIXLY_MINUTE,"121"],[Rt.Msg.MIXLY_SECOND,"122"],[Rt.Msg.MIXLY_WEEK2,"123"],[Rt.Msg.MIXLY_RMB_UNIT,"124"],[Rt.Msg.blockpy_setheading_degree,"125"],[Rt.Msg.MIXLY_GEAR,"126"],[Rt.Msg.MIXLY_LAYER,"127"],[Rt.Msg.MIXLY_GRAM,"128"],[Rt.Msg.MIXLY_METER,"129"],[Rt.Msg.MIXLY_CENTIMETER,"130"],[Rt.Msg.MIXLY_MILLIMETER,"131"],[Rt.Msg.MIXLY_LUMEN,"132"],[Rt.Msg.MIXLY_DECIBEL,"133"],[Rt.Msg.MIXLY_hectopascal,"134"],[Rt.Msg.MIXLY_PERCENT,"135"],[Rt.Msg.MIXLY_CELSIUS,"136"],[Rt.Msg.MIXLY_METER_PER_SEC,"137"],[Rt.Msg.MIXLY_MICROBIT_Turn_on_display,"138"],[Rt.Msg.MIXLY_MICROBIT_Turn_off_display,"139"],[Rt.Msg.MIXLY_SUCCESS,"140"],[Rt.Msg.MIXLY_FAILED,"141"],[Rt.Msg.MIXLY_WRONG,"142"],[Rt.Msg.MIXLY_GOOD,"143"],[Rt.Msg.MIXLY_blockpy_set_add,"144"],[Rt.Msg.MIXLY_DECREASE,"145"],[Rt.Msg.COLOUR_RGB_RED,"146"],[Rt.Msg.COLOUR_RGB_ORANGE,"147"],[Rt.Msg.COLOUR_YELLOW,"148"],[Rt.Msg.COLOUR_RGB_GREEN,"149"],[Rt.Msg.COLOUR_CYAN,"150"],[Rt.Msg.COLOUR_RGB_BLUE,"151"],[Rt.Msg.COLOUR_RGB_PURPLE,"152"],[Rt.Msg.COLOUR_RGB_WHITE,"153"]]),"end"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Pc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.LISTS_SET_INDEX_SET+Rt.Msg.MIXLY_SYSTEM+Rt.Msg.MIXLY_CMD).appendField(new Rt.FieldDropdown([[Rt.Msg.MILXY_ENTER_WAKE_UP,"1"],[Rt.Msg.MIXLY_INCREASE_VOLUME,"202"],[Rt.Msg.MIXLY_REDUCE_VOLUME,"203"],[Rt.Msg.MIXLY_MAX_VOLUME,"204"],[Rt.Msg.MIXLY_MINIMUM,"205"],[Rt.Msg.MIXLY_OPEN_RESPONSE,"206"],[Rt.Msg.MIXLY_CLOSE_RESPONSE,"207"],[Rt.Msg.MIXLY_QUIT_WAKE_UP,"208"]]),"cmd"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},vc={init:function(){this.setColour(oc),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_MAX30102+" MAX30102"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_ESP32_MAX30102_IR,"[0]"],[Rt.Msg.MIXLY_ESP32_MAX30102_RED,"[1]"],[Rt.Msg.MIXLY_ESP32_MAX30102_IR+","+Rt.Msg.MIXLY_ESP32_MAX30102_RED,""]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Yc={init:function(){this.setColour(oc),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_APDS9960+" APDS9960"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_ESP32_APDS9960_COLOR,"color"],[Rt.Msg.MIXLY_ESP32_APDS9960_GESTURE,"gesture"],[Rt.Msg.MIXLY_ESP32_APDS9960_APPROACH,"proximity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Xc={init:function(){this.setColour(oc),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_EXTERN_LIGHT+" LTR308ALS"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET_LIGHT_INTENSITY),this.setOutput(!0,Number),this.setInputsInline(!0)}},yc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.HTML_COLOUR+Rt.Msg.MSG.catSensor+" LTR381RGB").setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GET+Rt.Msg.HTML_COLOUR,"[2]"],[Rt.Msg.MIXLY_GET+Rt.Msg.MIXLY_IR_STRENGTH,"[1]"],[Rt.Msg.MIXLY_GET+Rt.Msg.MIXLY_LIGHT_STRENGTH,"[0]"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},bc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.HTML_COLOUR+Rt.Msg.MSG.catSensor+" UCS12071").setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GET+"RGB"+Rt.Msg.HTML_COLOUR,"0"],[Rt.Msg.MIXLY_GET+Rt.Msg.MIXLY_RGB_RAW,"1"],[Rt.Msg.MIXLY_GET_ENV_LIGHT+Rt.Msg.MIXLY_BRIGHTNESS,"2"],[Rt.Msg.GET_IR_STRENGTH+Rt.Msg.MIXLY_BRIGHTNESS,"3"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},xc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_EXTERN_LIGHTUV+" LTR390UV").setCheck("var"),this.appendDummyInput().appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GET_ENV_LIGHT,"E"],[Rt.Msg.MIXLY_GET_ULTRAVIOLET,"U"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Vc={init:function(){this.setColour(oc),this.appendDummyInput().appendField(Rt.Msg.MIXLY_LASER_RANGE+" VL53L0X"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET_DISTANCE+"(mm)"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Bc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_TEM_HUM+" SHTC3").setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GETTEMPERATUE,"temperature"],[Rt.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key");return{temperature:Rt.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,humidity:Rt.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[e]}))}},Gc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_TEM_HUM+" AHT21").setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GETTEMPERATUE,"temperature"],[Rt.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key");return{temperature:Rt.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,relative_humidity:Rt.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[e]}))}},Uc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_Altitude+Rt.Msg.MSG.catSensor+" HP203X").setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GETPRESSURE,"pressure()"],[Rt.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[Rt.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},wc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_Altitude+Rt.Msg.MSG.catSensor+" SPL06_001").setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GETPRESSURE,"pressure()"],[Rt.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[Rt.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},kc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_Altitude+Rt.Msg.MSG.catSensor+" MS5611").setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_GETPRESSURE,"pressure()"],[Rt.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[Rt.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Hc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_Altitude+Rt.Msg.MSG.catSensor+" MS5611").setCheck("var"),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_REF_TO_PRESSURE),this.appendDummyInput().appendField(Rt.Msg.MIXLY_CAL_TO_ALTITUDE),this.setOutput(!0,Number),this.setInputsInline(!0)}},Wc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_MIXGOPE_FIELD+Rt.Msg.MSG.catSensor+" QMC5883L").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"get_bearing()"],[Rt.Msg.MIXLY_TEMPERATURE,"get_temp()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Kc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_shake,"shake"],[Rt.Msg.MIXLY_UP,"up"],[Rt.Msg.MIXLY_DOWN,"down"],[Rt.Msg.MIXLY_LEFT,"left"],[Rt.Msg.MIXLY_RIGHT,"right"],[Rt.Msg.MIXLY_MICROBIT_face_up,"face up"],[Rt.Msg.MIXLY_MICROBIT_face_down,"face down"]]),"gesture"),this.setOutput(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("gesture"),i=Rt.Msg.MIXLY_MICROBIT_JS_CURRENT,n=Rt.Msg.MSG.catSensor,s=Rt.Msg.MIXLY_MICROBIT_JS_STATE,_=Rt.Msg.MIXLY_MICROBIT_PERFORMANCE;return i+n+s+{shake:Rt.Msg.MIXLY_MICROBIT_shake,up:Rt.Msg.MIXLY_UP,down:Rt.Msg.MIXLY_DOWN,left:Rt.Msg.MIXLY_LEFT,right:Rt.Msg.MIXLY_RIGHT,"face up":Rt.Msg.MIXLY_MICROBIT_face_up,"face down":Rt.Msg.MIXLY_MICROBIT_face_down}[e]+_}))}},Jc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_JS_ACCELERATION).appendField(new Rt.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_JS_ACCELERATION);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key"),i=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Rt.Msg.MIXLY_MICROBIT_Direction,s=Rt.Msg.MIXLY_MICROBIT_JS_ACCELERATION1;return i+{x:"x",y:"y",z:"z","(x,y,z)":Rt.Msg.MIXLY_MICROBIT_Shiliang_Direction}[e]+n+s}))}},qc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_JS_GET+Rt.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH).appendField(new Rt.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key"),i=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Rt.Msg.MIXLY_MICROBIT_Direction,s=Rt.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH;return i+{x:"x",y:"y",z:"z","(x,y,z)":Rt.Msg.MIXLY_MICROBIT_Shiliang_Direction}[e]+n+s}))}},Qc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+Rt.Msg.MIXLY_ESP32_SENOR_GYRO).appendField(new Rt.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key"),i=Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Rt.Msg.MIXLY_MICROBIT_Direction,s=Rt.Msg.MIXLY_ESP32_SENOR_GYRO;return i+{x:"x",y:"y",z:"z","(x,y,z)":Rt.Msg.MIXLY_MICROBIT_Shiliang_Direction}[e]+n+s}))}},zc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_JS_CALIBRATE_COMPASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_JS_CALIBRATE_COMPASS)}},jc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GETTEMPERATUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_GETTEMPERATUE)}},$c={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_JS_GET_COMPASS).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH,"strength"],[Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"heading"]]),"compass"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("compass");return Rt.Msg.MIXLY_MICROBIT_JS_GET_COMPASS+{strength:Rt.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH,heading:Rt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE}[e]}))}},Zc={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Reset_COMPASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Reset_COMPASS)}},tg={init:function(){this.setColour(oc),this.appendValueInput("SPISUB").appendField(Rt.Msg.CONTROLS_FOR_INPUT_WITH+"SPI").setCheck("var"),this.appendValueInput("PINSUB").appendField("CS"),this.appendValueInput("SUB").appendField(Rt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_SETUP+Rt.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new Rt.FieldDropdown([["RFID","RFID"],["WS-LoRa","Weather"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setFieldValue("RFID","key")}},eg={init:function(){this.setColour(oc),this.appendDummyInput().appendField("RFID"+Rt.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Rt.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_RFID_READ_CARD_UID,"id"],[Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL,"content"],[Rt.Msg.MIXLY_ALL,"ALL"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},ig={init:function(){this.setColour(oc),this.appendDummyInput().appendField("RFID"+Rt.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RFID_READ_CARD_UID),this.setOutput(!0,Number),this.setInputsInline(!0)}},ng={init:function(){this.setColour(oc),this.appendDummyInput().appendField("RFID"+Rt.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Rt.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL),this.setOutput(!0,"Tuple"),this.setInputsInline(!0)}},sg={init:function(){this.setColour(oc),this.appendDummyInput().appendField(Rt.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Rt.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(Rt.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},_g={init:function(){this.setColour(oc),this.appendDummyInput().appendField(Rt.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Rt.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(Rt.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.appendDummyInput().appendField(Rt.Msg.RETURN_SUCCESS_OR_NOT),this.setInputsInline(!0),this.setOutput(!0,Boolean)}},og={init:function(){this.setColour(oc),this.appendDummyInput().appendField("RFID"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_RFID_SCAN_OK,"0"],[Rt.Msg.MIXLY_RFID_SCAN_NOTAGERR,"1"],[Rt.Msg.MIXLY_RFID_SCAN_ERROR,"2"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},pg={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Rt.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)")}},ag={init:function(){this.setColour(oc),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_SERIAL_AVAILABLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},ug={init:function(){this.setColour(oc),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)}},rg={init:function(){this.setColour(oc),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 Rt.icons.MutatorIcon(["weather_set_label_item"],this)),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip()},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=t.newBlock("weather_set_label_container");e.initSvg();for(var i=e.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)}(t,!0),i="",n=0;n=0?"0x700000":["mixgo_sant"].indexOf(n)>=0?"0xE00000":"0x3A0000","32x12 Matrix"==o?(e.definitions_.import_matrix32x12="import matrix32x12",i=s+" = matrix32x12.Matrix("+_+", font_address="+p+")\n"):"16x8 Matrix"==o&&(e.definitions_.import_matrix16x8="import matrix16x8",i=s+" = matrix16x8.Matrix("+_+")\n"),i},qP=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},QP=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", space="+e.valueToCode(this,"space",e.ORDER_ASSIGNMENT)+", center="+this.getFieldValue("center")+")\n"},zP=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".frame("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},jP=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".frame("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", delay="+e.valueToCode(this,"time",e.ORDER_ASSIGNMENT)+")\n"},$P=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},ZP=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", speed="+e.valueToCode(this,"time",e.ORDER_ASSIGNMENT)+", space="+e.valueToCode(this,"space",e.ORDER_ASSIGNMENT)+")\n"},tv=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},ev=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+"."+t.getFieldValue("OP")+"("+e.valueToCode(t,"val",e.ORDER_ATOMIC)+")\n"},iv=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".pixel(int("+e.valueToCode(t,"x",e.ORDER_ATOMIC)+"), int("+e.valueToCode(t,"y",e.ORDER_ATOMIC)+"))",e.ORDER_ATOMIC]},nv=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".pixel(int("+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+"), int("+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+"), "+e.valueToCode(this,"STAT",e.ORDER_ATOMIC)+")\n"+i+".show()\n"},sv=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".get_brightness()",e.ORDER_ATOMIC]},_v=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".set_brightness("+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+")\n"},ov=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+"."+t.getFieldValue("image"),e.ORDER_ATOMIC]},pv=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".map_"+t.getFieldValue("OP")+"("+e.valueToCode(t,"A",e.ORDER_ATOMIC)+", "+e.valueToCode(t,"B",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},av=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".map_invert("+e.valueToCode(t,"A",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},uv=function(t,e){e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306";var i=e.valueToCode(this,"I2CSUB",e.ORDER_ATOMIC);return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+" = ssd1306.SSD1306_I2C("+e.valueToCode(this,"row",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"column",e.ORDER_ATOMIC)+", "+i+")\n"},rv=function(t,e){return e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306",e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".show_str("+(e.valueToCode(this,"Text_line1",e.ORDER_ASSIGNMENT)||"''")+", "+(e.valueToCode(this,"Text_line2",e.ORDER_ASSIGNMENT)||"''")+", "+(e.valueToCode(this,"Text_line3",e.ORDER_ASSIGNMENT)||"''")+", "+(e.valueToCode(this,"Text_line4",e.ORDER_ASSIGNMENT)||"''")+")\n"},lv=function(t,e){return e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306",e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".show_line("+e.valueToCode(this,"x1",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"y1",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"x2",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"y2",e.ORDER_ATOMIC)+", 1)\n"},dv=function(t,e){e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306";var i=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),n=e.valueToCode(this,"x",e.ORDER_ATOMIC),s=e.valueToCode(this,"y",e.ORDER_ATOMIC),_=e.valueToCode(this,"width",e.ORDER_ATOMIC),o=e.valueToCode(this,"height",e.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"}},Iv=function(t,e){e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306";var i=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),n=e.valueToCode(this,"x",e.ORDER_ATOMIC),s=e.valueToCode(this,"y",e.ORDER_ATOMIC),_=e.valueToCode(this,"length",e.ORDER_ATOMIC);return i+".show_"+this.getFieldValue("direction")+"("+n+", "+s+", "+_+", 1)\n"},Tv=function(t,e){return["ON"==this.getFieldValue("ONOFF")?"1":"0",e.ORDER_ATOMIC]},Mv=function(t,e){e.definitions_.import_matrix="import matrix";var i=t.getFieldValue("OP");return[e.valueToCode(t,"img",e.ORDER_ATOMIC)+".shift_"+i+"("+e.valueToCode(t,"val",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},hv=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return e.definitions_.import_ssd1306="import ssd1306",e.definitions_.import_machine="import machine",i+".show_fill("+this.getFieldValue("key")+")\n"},mv=function(t,e){return["matrix.Image."+this.getFieldValue("ANIMATION"),e.ORDER_ATOMIC]},Ev=function(t,e){var i=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306";var n=e.valueToCode(this,"x",e.ORDER_ATOMIC),s=e.valueToCode(this,"y",e.ORDER_ATOMIC),_=e.valueToCode(this,"r",e.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"}},Ov=function(t,e){var i=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306";var n=e.valueToCode(this,"x0",e.ORDER_ATOMIC),s=e.valueToCode(this,"y0",e.ORDER_ATOMIC),_=e.valueToCode(this,"x1",e.ORDER_ATOMIC),o=e.valueToCode(this,"y1",e.ORDER_ATOMIC),p=e.valueToCode(this,"x2",e.ORDER_ATOMIC),a=e.valueToCode(this,"y2",e.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"}},Rv=function(t,e){return e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306",e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".show_bitmap("+e.valueToCode(this,"START_X",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"START_Y",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"bitmap_name",e.ORDER_ATOMIC)+","+e.valueToCode(this,"WIDTH",e.ORDER_ATOMIC)+","+e.valueToCode(this,"HEIGHT",e.ORDER_ATOMIC)+")\n"},cv=function(t,e){return e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306",e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".show_pixel("+e.valueToCode(this,"POS_X",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"POS_Y",e.ORDER_ATOMIC)+")\n"},gv=function(t,e){var i,n=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),s=e.valueToCode(this,"CLK",e.ORDER_ATOMIC),_=e.valueToCode(this,"DIO",e.ORDER_ATOMIC),o=this.getFieldValue("key");return"TM1650"==o?(e.definitions_.import_tm1650="import tm1650",i=n+" = tm1650."+o+"(clk="+s+",dio="+_+")\n"):"TM1637"==o&&(e.definitions_.import_tm1637="import tm1637",i=n+" = tm1637."+o+"(clk="+s+",dio="+_+")\n"),i},Cv=function(t,e){return e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+"."+this.getFieldValue("STAT")+"()\n"},Sv=function(t,e){return e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".shownum("+e.valueToCode(this,"VALUE",e.ORDER_ATOMIC)+")\n"},Av=function(t,e){return e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".showDP("+e.valueToCode(this,"NO",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"STAT",e.ORDER_ATOMIC)+")\n"},Lv=function(t,e){return e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".intensity("+e.valueToCode(this,"VALUE",e.ORDER_ATOMIC)+")\n"},Nv=function(t,e){e.definitions_.import_st7789="import st7789";var i=ct.Boards.getSelectedBoardKey().split(":")[2],n="";n=["mpython","mixgo_pe","mixgo_nova"].indexOf(i)>=0?"0x700000":["mixgo_sant"].indexOf(i)>=0?"0xE00000":"0x3A0000";var s=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),_=e.valueToCode(this,"SPISUB",e.ORDER_ATOMIC),o=e.valueToCode(this,"PINCS",e.ORDER_ATOMIC),p=e.valueToCode(this,"PINDC",e.ORDER_ATOMIC);return s+" = st7789.ST7789("+_+", "+e.valueToCode(this,"WIDTH",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"HEIGHT",e.ORDER_ATOMIC)+", dc_pin="+p+", cs_pin="+o+", rotation="+this.getFieldValue("rotate")+", font_address="+n+")\n"},Dv=function(t,e){e.definitions_.import_st7789="import st7789";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=i+".image("+n+", x="+s+", y="+_+", size="+o+", color="+p+")\n";else{const t=p.match(/\d+/g);var u="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},fv=function(t,e){var i="0x"+this.getFieldValue("COLOR").slice(1);return["0x"+((16252928&i)>>8|(64512&i)>>5|(255&i)>>3).toString(16),e.ORDER_ATOMIC]},Fv=function(t,e){e.definitions_.import_st7789="import st7789";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT),a=e.valueToCode(this,"VAR",e.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 t=a.match(/\d+/g);var l="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},Pv=function(t,e){e.definitions_.import_st7789="import st7789";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==o.slice(0,2))var p=i+".frame("+n+", size="+s+", delay="+_+", color="+o+")\n";else{const t=o.match(/\d+/g);var a="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},vv=function(t,e){e.definitions_.import_st7789="import st7789";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT),a=e.valueToCode(this,"VAR",e.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 t=a.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},Yv=function(t,e){return e.definitions_.import_st7789="import st7789",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".fill(st7789."+this.getFieldValue("key")+")\n"},Xv=function(t,e){e.definitions_.import_st7789="import st7789";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"x1",e.ORDER_ATOMIC),s=e.valueToCode(this,"y1",e.ORDER_ATOMIC),_=e.valueToCode(this,"x2",e.ORDER_ATOMIC),o=e.valueToCode(this,"y2",e.ORDER_ATOMIC),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=i+".line("+n+", "+s+", "+_+", "+o+", color="+p+")\n";else{const t=p.match(/\d+/g);var u="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},yv=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"I2CSUB",e.ORDER_ATOMIC),s=this.getFieldValue("key"),_=e.valueToCode(this,"ADDR",e.ORDER_ATOMIC);return e.definitions_.import_i2clcd="import i2clcd",i+" = i2clcd.LCD("+n+", lcd_width="+s+", i2c_addr="+_+")\n"},bv=function(t,e){return e.definitions_.import_i2clcd="import i2clcd",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", column="+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+", line="+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+",center = "+this.getFieldValue("center")+")\n"},xv=function(t,e){return e.definitions_.import_i2clcd="import i2clcd",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".print("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", column="+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+", line="+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+", delay="+e.valueToCode(this,"time",e.ORDER_ASSIGNMENT)+")\n"},Vv=function(t,e){return e.definitions_.import_i2clcd="import i2clcd",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".backlight("+this.getFieldValue("key")+")\n"},Bv=function(t,e){return e.definitions_.import_i2clcd="import i2clcd",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".clear()\n"},Gv=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"I2CSUB",e.ORDER_ATOMIC),s=e.valueToCode(this,"ADDR",e.ORDER_ATOMIC),_=this.getFieldValue("driver"),o=ct.Boards.getSelectedBoardKey().split(":")[2],p="";return p=["mpython","mixgo_pe","mixgo_nova"].indexOf(o)>=0?"0x700000":["mixgo_sant"].indexOf(o)>=0?"0xE00000":"0x3A0000",e.definitions_.import_oled128x64="import oled128x64",i+" = oled128x64.OLED("+n+", address="+s+", font_address="+p+", types="+_+")\n"},Uv=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".image("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},wv=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".image("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", x="+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+", y="+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+", size="+e.valueToCode(this,"size",e.ORDER_ASSIGNMENT)+")\n"},kv=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},Hv=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", x="+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+", y="+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+", size="+e.valueToCode(this,"size",e.ORDER_ASSIGNMENT)+", space="+e.valueToCode(this,"space",e.ORDER_ASSIGNMENT)+", center="+this.getFieldValue("center")+")\n"},Wv=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".frame("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},Kv=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".frame("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", size="+e.valueToCode(this,"size",e.ORDER_ASSIGNMENT)+", delay="+e.valueToCode(this,"time",e.ORDER_ASSIGNMENT)+")\n"},Jv=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},qv=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", y="+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+", size="+e.valueToCode(this,"size",e.ORDER_ASSIGNMENT)+", speed="+e.valueToCode(this,"time",e.ORDER_ASSIGNMENT)+", space="+e.valueToCode(this,"space",e.ORDER_ASSIGNMENT)+")\n"},Qv=function(t,e){e.definitions_.import_oled128x64="import oled128x64";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},zv=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+"."+t.getFieldValue("OP")+"("+e.valueToCode(t,"val",e.ORDER_ATOMIC)+")\n"},jv=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".pixel(int("+e.valueToCode(t,"x",e.ORDER_ATOMIC)+"), int("+e.valueToCode(t,"y",e.ORDER_ATOMIC)+"))",e.ORDER_ATOMIC]},$v=function(t,e){e.definitions_.import_oled128x64="import oled128x64";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".pixel(int("+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+"), int("+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+"), "+e.valueToCode(this,"STAT",e.ORDER_ATOMIC)+")\n"+i+".show()\n"},Zv=function(t,e){e.definitions_.import_oled128x64="import oled128x64";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(t,"x",e.ORDER_ATOMIC),s=e.valueToCode(t,"y",e.ORDER_ATOMIC),_=e.valueToCode(t,"w",e.ORDER_ATOMIC),o=e.valueToCode(t,"h",e.ORDER_ATOMIC),p=t.getFieldValue("state");return i+"."+t.getFieldValue("shape")+"("+n+", "+s+", "+_+", "+o+", "+p+")\n"+i+".show()\n"},tY=function(t,e){e.definitions_.import_oled128x64="import oled128x64";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(t,"x",e.ORDER_ATOMIC),s=e.valueToCode(t,"y",e.ORDER_ATOMIC),_=e.valueToCode(t,"length",e.ORDER_ATOMIC),o=t.getFieldValue("state");return i+"."+("0"==t.getFieldValue("dir_h_v")?"v":"h")+"line("+n+", "+s+", "+_+", "+o+")\n"+i+".show()\n"},eY=function(t,e){e.definitions_.import_oled128x64="import oled128x64";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".line("+e.valueToCode(t,"x1",e.ORDER_ATOMIC)+", "+e.valueToCode(t,"y1",e.ORDER_ATOMIC)+", "+e.valueToCode(t,"x2",e.ORDER_ATOMIC)+", "+e.valueToCode(t,"y2",e.ORDER_ATOMIC)+", "+t.getFieldValue("state")+")\n"+i+".show()\n"},iY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT);if(["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var s="onboard_tft.image("+(n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT))+", color=0xffff,sync="+(e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True")+")\n"}else if("educore"==i){e.definitions_["import_"+i+"_oled"]="from "+i+" import oled";s="oled.print("+n+")\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";s="onboard_matrix.shows("+n+")\n"}return s},nY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT),_=this.getFieldValue("center");if(["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform()))return e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.shows("+n+", space="+s+", center="+_+",sync="+(e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True")+")\n";if("educore"==i){e.definitions_["import_"+i+"_oled"]="from "+i+" import oled"}return e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix","onboard_matrix.shows("+n+", space="+s+", center="+_+")\n"},sY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){e.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(ct.JSFuncs.getPlatform())){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";s="onboard_tft.frame("+(n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT))+", color=0xffff)\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";s="onboard_matrix.frame("+n+")\n"}return s},_Y=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){e.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var _="onboard_oled.frame("+(n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT))+", delay="+s+")\n"}else if(["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";_="onboard_tft.frame("+n+", size=5 , delay="+s+", color=0xffff)\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";_="onboard_matrix.frame("+n+", delay="+s+")\n"}return _},oY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];if("mpython"==i||"educore"==i){e.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var n="onboard_oled.scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"}else if(["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";n="onboard_tft.scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", color=0xffff)\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix.scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"}return n},pY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){e.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(ct.JSFuncs.getPlatform())){e.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{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";o="onboard_matrix.scroll("+n+", speed="+s+", space="+_+")\n"}return o},aY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix","onboard_matrix.scroll_way("+this.getFieldValue("way")+")\n"},uY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT),a=e.valueToCode(this,"VAR",e.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 t=a.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},rY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix",["onboard_matrix."+t.getFieldValue("image"),e.ORDER_ATOMIC]},lY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];if(["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())){const i=t.getFieldValue("image").split(".");if(2!==i.length)throw Error("pin value error");e.definitions_[`import_${i[0]}_${i[1]}`]=`from ${i[0]} import ${i[1]}`;var n=i[1]}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix."+t.getFieldValue("image")}return[n,e.ORDER_ATOMIC]},dY=function(t,e){var i={"#000000":"0","#ff0000":"1"};function n(t){let e="";if(t.length%2==1&&(t="0"+t),t.length<8){let e=8-t.length;for(let i=1;i<=e;i++)t="0"+t}for(let i=1;i<=t.length;i++)i%2==0&&i!==t.length?e=e+t[i-1]+",0x":e+=t[i-1];return"0x"+e}let s=[];for(let e=0;e<12;e++){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[t.getFieldValue(e+"-"+n)])*Math.pow(2,31-p);_+=n(o.toString(16)),s.unshift(_)}let _=[];for(let t=0;t>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},zY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.picture("+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+","+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+","+e.valueToCode(this,"direct",e.ORDER_ASSIGNMENT)+")\n"},jY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT),a=this.getFieldValue("center"),u=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True",r=e.valueToCode(this,"VAR",e.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 t=r.match(/\d+/g);var d="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},$Y=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==o.slice(0,2))var p="onboard_tft.frame("+n+", size="+s+", delay="+_+", color="+o+")\n";else{const t=o.match(/\d+/g);var a="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},ZY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(t,"x",e.ORDER_ATOMIC),s=e.valueToCode(t,"y",e.ORDER_ATOMIC),_=e.valueToCode(t,"w",e.ORDER_ATOMIC),o=e.valueToCode(t,"h",e.ORDER_ATOMIC),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),a=t.getFieldValue("shape"),u=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var r="onboard_tft."+a+"("+n+", "+s+", "+_+", "+o+", "+p+",sync="+u+")\n";else{const t=p.match(/\d+/g);var l="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},tX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(t,"x",e.ORDER_ATOMIC),s=e.valueToCode(t,"y",e.ORDER_ATOMIC),_=e.valueToCode(t,"length",e.ORDER_ATOMIC),o=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),p=t.getFieldValue("dir_h_v"),a=e.valueToCode(this,"boolean",e.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 t=o.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},eX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(t,"x1",e.ORDER_ATOMIC),s=e.valueToCode(t,"y1",e.ORDER_ATOMIC),_=e.valueToCode(t,"x2",e.ORDER_ATOMIC),o=e.valueToCode(t,"y2",e.ORDER_ATOMIC),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),a=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var u="onboard_tft.line("+n+", "+s+", "+_+", "+o+", "+p+",sync="+a+")\n";else{const t=p.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},iX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft",["onboard_tft.pixel(int("+e.valueToCode(t,"x",e.ORDER_ATOMIC)+"), int("+e.valueToCode(t,"y",e.ORDER_ATOMIC)+"))",e.ORDER_ATOMIC]},nX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),o=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==_.slice(0,2))var p="onboard_tft.pixel(int("+n+"), int("+s+"), "+_+",sync="+o+")\n";else{const t=_.match(/\d+/g);var a="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},sX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"VAR",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==n.slice(0,2))var _="onboard_tft.fill("+n+",sync="+s+")\n";else{const t=n.match(/\d+/g);var o="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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 _},_X=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock";var n=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"SUB",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=o+"=Clock("+n+", "+s+", "+_+", "+p+")\n";else{const t=p.match(/\d+/g);var u="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},oX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",e.valueToCode(this,"SUB",e.ORDER_ASSIGNMENT)+".set_rtctime()\n"},pX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",e.valueToCode(this,"SUB",e.ORDER_ASSIGNMENT)+".set_time("+e.valueToCode(this,"h",e.ORDER_ASSIGNMENT)+", "+e.valueToCode(this,"m",e.ORDER_ASSIGNMENT)+", "+e.valueToCode(this,"s",e.ORDER_ASSIGNMENT)+")\n"},aX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",e.valueToCode(this,"SUB",e.ORDER_ASSIGNMENT)+".draw_clock()\n"},uX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock";var n=e.valueToCode(this,"SUB",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==s.slice(0,2))var _=n+".clear("+s+")\n";else{const t=s.match(/\d+/g);var o="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");_=n+".clear(0x"+((16252928&o)>>8|(64512&o)>>5|(255&o)>>3).toString(16)+")\n"}return _},rX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(t,"x",e.ORDER_ATOMIC),s=e.valueToCode(t,"y",e.ORDER_ATOMIC),_=e.valueToCode(t,"r",e.ORDER_ATOMIC),o=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),p=t.getFieldValue("shape"),a=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==o.slice(0,2))var u="onboard_tft.ellipse("+n+", "+s+", "+_+", "+_+", "+o+", "+p+",sync="+a+")\n";else{const t=o.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},lX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];if(["Python ESP32-S3","Python ESP32-C5"].includes(ct.JSFuncs.getPlatform())){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n="onboard_tft.pointern(angle="+e.valueToCode(this,"angle",e.ORDER_ASSIGNMENT)+")\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix.pointern(angle="+e.valueToCode(this,"angle",e.ORDER_ASSIGNMENT)+")\n"}return n},dX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"angle",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==s.slice(0,2))var _="onboard_tft.pointern(angle="+n+", color="+s+")\n";else{const t=s.match(/\d+/g);var o="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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 _},IX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),a=e.valueToCode(this,"boolean",e.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 t=p.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},TX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.qrcode("+e.valueToCode(this,"direct",e.ORDER_ATOMIC)+")\n"},MX=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),a=e.valueToCode(this,"boolean",e.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 t=p.match(/\d+/g);var l="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},hX=iY,mX=cY,EX=EY,OX=cY,RX=gY,cX=TY,gX=function(t,e){var i=this.getFieldValue("path"),n=this.getFieldValue("module");return e.definitions_["import_"+i+"_"+n]="from "+i+" import "+n,""},CX=function(t,e){var i=this.getFieldValue("module");return e.definitions_["import_"+i]="import "+i,""},SX=function(t,e){for(var i=this.getFieldValue("NAME"),n=new Array(this.itemCount_),s=0;s {\n"+e.statementToCode(this,"do")+"})\n"},kG=function(){return"control.reset()\n"},HG=function(t,e){return"control.waitMicros("+(e.valueToCode(this,"data",e.ORDER_ATOMIC)||ct.Profile.default.serial)+")\n"},WG=function(t,e){return"control.raiseEvent("+(e.valueToCode(this,"system_event_bus_source",e.ORDER_ATOMIC)||ct.Profile.default.serial)+", "+(e.valueToCode(this,"system_event_bus_value",e.ORDER_ATOMIC)||ct.Profile.default.serial)+")\n"},KG=function(t,e){return"control.onEvent("+(e.valueToCode(this,"system_event_bus_source",e.ORDER_ATOMIC)||ct.Profile.default.serial)+", "+(e.valueToCode(this,"system_event_bus_value",e.ORDER_ATOMIC)||ct.Profile.default.serial)+", () => {\n"+e.statementToCode(this,"do")+")\n"},JG=function(t,e){return["control.eventTimestamp()",e.ORDER_ATOMIC]},qG=function(t,e){return["control.eventValue()",e.ORDER_ATOMIC]},QG=function(t,e){return[this.getFieldValue("key"),e.ORDER_ATOMIC]},zG=function(t,e){return[this.getFieldValue("key"),e.ORDER_ATOMIC]},jG=function(t,e){return["control.deviceName()",e.ORDER_ATOMIC]},$G=function(t,e){return["control.deviceSerialNumber()",e.ORDER_ATOMIC]},ZG=function(t,e){return"panic("+(e.valueToCode(this,"STATUS_CODE",e.ORDER_ATOMIC)||"1000")+")\n"},tU=function(t,e){switch(e.definitions_.import_time="import time",this.getFieldValue("Time")){case"ms":return["time.ticks_ms()",e.ORDER_ATOMIC];case"us":return["time.ticks_us()",e.ORDER_ATOMIC]}},eU=function(){return"while True:\n pass\n"},iU=function(t,e){return e.definitions_.import_mixgo="import mixgo","reset()\n"},nU=function(t,e){return e.definitions_.import_os="import os","os.uname()"},sU=function(t,e){e.definitions_.import_time="import time";var i=e.valueToCode(this,"DELAY_TIME",e.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"}},_U=function(t,e){e.definitions_.import_time="import time";var i=e.valueToCode(this,"DELAY_TIME",e.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"}},oU=function(t,e){return e.definitions_.import_mixgo="import mixgo",(e.valueToCode(this,"VAR",e.ORDER_NONE)||"None")+".init(period="+(e.valueToCode(this,"period",e.ORDER_NONE)||"0")+", mode=Timer."+(e.valueToCode(this,"mode",e.ORDER_NONE)||"None")+", callback="+(e.valueToCode(this,"callback",e.ORDER_NONE)||"None")+")\n"},pU=function(t,e){return e.definitions_.import_machine="import machine",(e.valueToCode(this,"VAR",e.ORDER_NONE)||"None")+" = machine.Timer("+(e.valueToCode(this,"PIN",e.ORDER_NONE)||"None")+",period = "+(e.valueToCode(this,"period",e.ORDER_NONE)||"0")+", mode=machine.Timer."+this.getFieldValue("mode")+", callback="+(e.valueToCode(this,"callback",e.ORDER_NONE)||"None")+")\n"},aU=function(t,e){return e.definitions_.import_time="import time",["time.ticks_diff("+(e.valueToCode(this,"END",e.ORDER_NONE)||"0")+", "+(e.valueToCode(this,"START",e.ORDER_NONE)||"0")+")",e.ORDER_ATOMIC]},uU=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return e.definitions_.import_machine="import machine",i+" = machine.Timer(0)\n"},rU=function(t,e){return e.definitions_.import_machine="import machine",(e.valueToCode(this,"VAR",e.ORDER_NONE)||"None")+".init(period = "+(e.valueToCode(this,"period",e.ORDER_NONE)||"0")+", mode=machine.Timer."+this.getFieldValue("mode")+", callback="+(e.valueToCode(this,"callback",e.ORDER_NONE)||"None")+")\n"},lU=function(t,e){return e.definitions_.import_machine="import machine","wdt = machine.WDT(timeout= "+(e.valueToCode(this,"period",e.ORDER_NONE)||"0")+")\n"},dU=function(t,e){e.definitions_.import_machine="import machine";return"wdt.feed()\n"},IU=function(t,e){e.definitions_.import_machine="import machine";return"machine.reset()\n"},TU=function(t,e){e.definitions_.import_bitbot_onboard_bot51="from bitbot import onboard_bot51";return"onboard_bot51.shutdown()\n"},MU=uU,hU=rU,mU=aU,EU=sU,OU=function(t,e){return e.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api."+this.getFieldValue("mode")+"("+e.valueToCode(this,"key",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"addr",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},RU=function(t,e){return e.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api."+this.getFieldValue("mode")+"("+e.valueToCode(this,"key",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"addr",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"day",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},cU=function(t,e){return e.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api.weather_hourly("+e.valueToCode(this,"key",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"addr",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"hour",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},gU=function(t,e){return e.definitions_["import_seniverse_api*"]="from seniverse_api import *",this.getFieldValue("mode")+".request("+e.valueToCode(this,"key",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"addr",e.ORDER_ATOMIC)+")\n"},CU=function(t,e){e.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,e.ORDER_ATOMIC]},SU=function(t,e){e.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,e.ORDER_ATOMIC]},AU=function(t,e){e.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,e.ORDER_ATOMIC]},LU=function(t,e){e.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,e.ORDER_ATOMIC]},NU=function(t,e){e.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,e.ORDER_ATOMIC]},DU=function(t,e){e.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,e.ORDER_ATOMIC]},fU=function(t,e){return e.definitions_["import_seniverse_api*"]="from seniverse_api import *",this.getFieldValue("mode")+".request("+e.valueToCode(this,"key",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"addr",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"day",e.ORDER_ATOMIC)+")\n"},FU=function(t,e){e.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=e.valueToCode(this,"day",e.ORDER_ATOMIC);if("none"==i)var s="Weather_daily.analysis("+n+")";else s="Weather_daily.analysis("+n+', "'+i+'")';return[s,e.ORDER_ATOMIC]},PU=function(t,e){e.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=e.valueToCode(this,"day",e.ORDER_ATOMIC);if("none"==i)var s="Air_daily.analysis("+n+")";else s="Air_daily.analysis("+n+', "'+i+'")';return[s,e.ORDER_ATOMIC]},vU=function(t,e){e.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=e.valueToCode(this,"day",e.ORDER_ATOMIC);if("none"==i)var s="Geo_sun.analysis("+n+")";else s="Geo_sun.analysis("+n+', "'+i+'")';return[s,e.ORDER_ATOMIC]},YU=function(t,e){e.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=e.valueToCode(this,"day",e.ORDER_ATOMIC);if("none"==i)var s="Geo_moon.analysis("+n+")";else s="Geo_moon.analysis("+n+', "'+i+'")';return[s,e.ORDER_ATOMIC]},XU='
\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:yU}=ct,bU=yU.render(XU,{title:"烧录速度",message:"要选择烧录速度,请更改“Burn Speed”,此值将用于向设备烧录代码。如果在用较高的烧录速度时出现问题,请尝试减小此值,这可能是由于外部串行到USB芯片的限制。"}),{XML:xU}=ct,VU=xU.render(XU,{title:"燒錄速度",message:"要選擇燒錄速度,請更改“Burn Speed”,此值將用於向設備燒錄程式碼。如果在用較高的燒錄速度時出現問題,請嘗試减小此值,這可能是由於外部串列到USB晶片的限制。"}),{XML:BU}=ct,GU=BU.render(XU,{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."}),UU=new Rt.Generator("Python");UU.INDENT=" ",UU.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"),UU.ORDER_ATOMIC=0,UU.ORDER_COLLECTION=1,UU.ORDER_STRING_CONVERSION=1,UU.ORDER_UNARY_POSTFIX=1,UU.ORDER_UNARY_PREFIX=2,UU.ORDER_MEMBER=2.1,UU.ORDER_FUNCTION_CALL=2.2,UU.ORDER_EXPONENTIATION=3,UU.ORDER_UNARY_SIGN=4,UU.ORDER_BITWISE_NOT=4,UU.ORDER_MULTIPLICATIVE=5,UU.ORDER_ADDITIVE=6,UU.ORDER_BITWISE_SHIFT=7,UU.ORDER_BITWISE_AND=8,UU.ORDER_BITWISE_XOR=9,UU.ORDER_BITWISE_OR=10,UU.ORDER_RELATIONAL=11,UU.ORDER_EQUALITY=11,UU.ORDER_LOGICAL_NOT=12,UU.ORDER_LOGICAL_AND=13,UU.ORDER_LOGICAL_OR=14,UU.ORDER_ASSIGNMENT=14,UU.ORDER_CONDITIONAL=15,UU.ORDER_LAMBDA=16,UU.ORDER_NONE=99,UU.ORDER_OVERRIDES=[[UU.ORDER_FUNCTION_CALL,UU.ORDER_MEMBER],[UU.ORDER_FUNCTION_CALL,UU.ORDER_FUNCTION_CALL],[UU.ORDER_MEMBER,UU.ORDER_MEMBER],[UU.ORDER_MEMBER,UU.ORDER_FUNCTION_CALL]],UU.init=function(){UU.PASS=this.INDENT+"pass\n",UU.definitions_=Object.create(null),UU.functionNames_=Object.create(null),UU.setups_=Object.create(null),UU.loops_=Object.create(null),UU.codeEnd_=Object.create(null),UU.variableDB_?UU.variableDB_.reset():UU.variableDB_=new At(UU.RESERVED_WORDS_)},UU.finish=function(t){""!==t&&(t=(t=t.replace(/\n/g,"\n")).replace(/\n\s+$/,"\n"));var e=[],i=[],n=[];for(var s in this.definitions_){var _=this.definitions_[s];0===s.indexOf("import")?e.push(_):0===s.indexOf("var_declare")?i.push(_):n.push(_)}e.length&&e.push("\n"),i.length&&i.push("\n"),n.length&&n.push("\n");var o=[];for(var s in UU.functions_)o.push(UU.functions_[s]);o.length&&o.push("\n");var p=[];for(var s in UU.setups_)p.push(UU.setups_[s]);p.length&&p.push("\n");var a=[];for(var s in UU.loops_)a.push(UU.loops_[s]);var u=[];for(var s in UU.codeEnd_)u.push(UU.codeEnd_[s]);0!==u.length&&u.push("\n");let r="";return r=a.length>0?e.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+t+"while True:\n"+a.join("")+u.join("\n"):e.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+t+u.join("\n"),r},UU.scrubNakedValue=function(t){return t+"\n"},UU.quote_=function(t){var e="'";return-1!==(t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\\n")).indexOf("'")&&(-1===t.indexOf('"')?e='"':t=t.replace(/'/g,"\\'")),e+t+e},UU.multiline_quote_=function(t){return"'''"+(t=t.replace(/'''/g,"\\'\\'\\'"))+"'''"},UU.scrub_=function(t,e,i){var n="";if(!t.outputConnection||!t.outputConnection.targetConnection){(_=t.getCommentText())&&(_=Rt.utils.string.wrap(_,UU.COMMENT_WRAP-3),n+=UU.prefixLines(_+"\n","# "));for(var s=0;s0?"int("+p+" + "+s+")":s<0?"int("+p+" - "+-s+")":"int("+p+")",n&&(p="-"+p)),p};const wU={};wU["MixGo CE"]={description:"MicroPython[ESP32C3 MixGo CE]",digital_pin:ct.Profile.generate(["0-18","21-46"]),input_pin:ct.Profile.generate(["0-18","21-46"]),output_pin:ct.Profile.generate(["0-18","21-45"]),pwm_input:ct.Profile.generate(["0-18","21-46"],"pwm","pwm"),analog_input:ct.Profile.generate(["0-18","21-46"],"adc","adc"),pwm_output:ct.Profile.generate(["0-18","21-45"],"pwm","pwm"),analog_output:ct.Profile.generate(["0-18","21-45"],"adc","adc"),espnow_channel:ct.Profile.generate(["1-13"]),haskylens_model:ct.Profile.generate(["0-4"]),digital:ct.Profile.generate(["0-18","21-45"],"pin","pin"),pwm_pin:ct.Profile.generate(["0-18","21-45"]),pwm:ct.Profile.generate(["0-18","21-45"],"pwm","pwm"),analog_pin:ct.Profile.generate(["1-18"]),analog:ct.Profile.generate(["1-18"],"adc","adc"),dac_pin:ct.Profile.generate(["17-18"]),dac:ct.Profile.generate(["17-18"],"dac","dac"),touch:ct.Profile.generate(["1-14"],"tc","tc"),touch_pin:ct.Profile.generate(["1-14"]),button:[["B1","B1key"],["B2","B2key"],["A1","A1key"],["A2","A2key"],["A3","A3key"],["A4","A4key"]],buttonB:[["B1","B1key"],["B2","B2key"]],axis:ct.Profile.generate(["0-4"]),exlcdh:ct.Profile.generate(["0-15"]),exlcdv:ct.Profile.generate(["0-7"]),brightness:ct.Profile.generate(["0-9"]),tts_voice:ct.Profile.generate(["0-16"]),tts_builtin_music:ct.Profile.generate(["0-47"]),tts_bgmusic:ct.Profile.generate(["0-15"]),builtinimg:[["HEART","onboard_matrix.HEART"],["HEART_SMALL","onboard_matrix.HEART_SMALL"],["HAPPY","onboard_matrix.HAPPY"],["SAD","onboard_matrix.SAD"],["SMILE","onboard_matrix.SMILE"],["SILLY","onboard_matrix.SILLY"],["FABULOUS","onboard_matrix.FABULOUS"],["SURPRISED","onboard_matrix.SURPRISED"],["ASLEEP","onboard_matrix.ASLEEP"],["ANGRY","onboard_matrix.ANGRY"],["CONFUSED","onboard_matrix.CONFUSED"],["NO","onboard_matrix.NO"],["YES","onboard_matrix.YES"],["LEFT_ARROW","onboard_matrix.LEFT_ARROW"],["RIGHT_ARROW","onboard_matrix.RIGHT_ARROW"],["DRESS","onboard_matrix.DRESS"],["TRANSFORMERS","onboard_matrix.TRANSFORMERS"],["SCISSORS","onboard_matrix.SCISSORS"],["EXIT","onboard_matrix.EXIT"],["TREE","onboard_matrix.TREE"],["PACMAN","onboard_matrix.PACMAN"],["TARGET","onboard_matrix.TARGET"],["TSHIRT","onboard_matrix.TSHIRT"],["ROLLERSKATE","onboard_matrix.ROLLERSKATE"],["DUCK","onboard_matrix.DUCK"],["HOUSE","onboard_matrix.HOUSE"],["TORTOISE","onboard_matrix.TORTOISE"],["BUTTERFLY","onboard_matrix.BUTTERFLY"],["STICKFIGURE","onboard_matrix.STICKFIGURE"],["GHOST","onboard_matrix.GHOST"],["PITCHFORK","onboard_matrix.PITCHFORK"],["MUSIC_QUAVERS","onboard_matrix.MUSIC_QUAVERS"],["MUSIC_QUAVER","onboard_matrix.MUSIC_QUAVER"],["MUSIC_CROTCHET","onboard_matrix.MUSIC_CROTCHET"],["COW","onboard_matrix.COW"],["RABBIT","onboard_matrix.RABBIT"],["SQUARE_SMALL","onboard_matrix.SQUARE_SMALL"],["SQUARE","onboard_matrix.SQUARE"],["DIAMOND_SMALL","onboard_matrix.DIAMOND_SMALL"],["DIAMOND","onboard_matrix.DIAMOND"],["CHESSBOARD","onboard_matrix.CHESSBOARD"],["TRIANGLE_LEFT","onboard_matrix.TRIANGLE_LEFT"],["TRIANGLE","onboard_matrix.TRIANGLE"],["SNAKE","onboard_matrix.SNAKE"],["UMBRELLA","onboard_matrix.UMBRELLA"],["SKULL","onboard_matrix.SKULL"],["GIRAFFE","onboard_matrix.GIRAFFE"],["SWORD","onboard_matrix.SWORD"],["DOOR_CLOSE","onboard_matrix.DOOR_CLOSE"],["DOOR_OPEN","onboard_matrix.DOOR_OPEN"],["DOOR_OPENING","onboard_matrix.DOOR_OPENING"]],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"]]},wU["ESP32S2 Generic"]={description:"MicroPython[ESP32C3 MixGo CC]",digital_pin:ct.Profile.generate(["0-42","45"]),input_pin:ct.Profile.generate(["0-42","45-46"]),output_pin:ct.Profile.generate(["0-42","45"]),pwm_input:ct.Profile.generate(["0-42","45-46"],"pwm","pwm"),analog_input:ct.Profile.generate(["0-18","21-46"],"adc","adc"),pwm_output:ct.Profile.generate(["0-42","45"],"pwm","pwm"),analog_output:ct.Profile.generate(["0-42","45"],"adc","adc"),espnow_channel:ct.Profile.generate(["1-13"]),haskylens_model:ct.Profile.generate(["0-4"]),digital:ct.Profile.generate(["0-42","45"],"pin","pin"),pwm_pin:ct.Profile.generate(["0-42","45"]),pwm:ct.Profile.generate(["0-42","45"],"pwm","pwm"),analog_pin:ct.Profile.generate(["1-20"]),analog:ct.Profile.generate(["1-20"],"adc","adc"),dac_pin:ct.Profile.generate(["17-18"]),dac:ct.Profile.generate(["17-18"],"dac","dac"),touch:ct.Profile.generate(["1-14"],"tc","tc"),touch_pin:ct.Profile.generate(["1-14"]),button:[["B1","B1key"],["B2","B2key"],["A1","A1key"],["A2","A2key"],["A3","A3key"],["A4","A4key"]],buttonB:[["B1","B1key"],["B2","B2key"]],axis:ct.Profile.generate(["0-4"]),exlcdh:ct.Profile.generate(["0-15"]),exlcdv:ct.Profile.generate(["0-7"]),brightness:ct.Profile.generate(["0-9"]),tts_voice:ct.Profile.generate(["0-16"]),tts_builtin_music:ct.Profile.generate(["0-47"]),tts_bgmusic:ct.Profile.generate(["0-15"]),builtinimg:[["HEART","onboard_matrix.HEART"],["HEART_SMALL","onboard_matrix.HEART_SMALL"],["HAPPY","onboard_matrix.HAPPY"],["SAD","onboard_matrix.SAD"],["SMILE","onboard_matrix.SMILE"],["SILLY","onboard_matrix.SILLY"],["FABULOUS","onboard_matrix.FABULOUS"],["SURPRISED","onboard_matrix.SURPRISED"],["ASLEEP","onboard_matrix.ASLEEP"],["ANGRY","onboard_matrix.ANGRY"],["CONFUSED","onboard_matrix.CONFUSED"],["NO","onboard_matrix.NO"],["YES","onboard_matrix.YES"],["LEFT_ARROW","onboard_matrix.LEFT_ARROW"],["RIGHT_ARROW","onboard_matrix.RIGHT_ARROW"],["DRESS","onboard_matrix.DRESS"],["TRANSFORMERS","onboard_matrix.TRANSFORMERS"],["SCISSORS","onboard_matrix.SCISSORS"],["EXIT","onboard_matrix.EXIT"],["TREE","onboard_matrix.TREE"],["PACMAN","onboard_matrix.PACMAN"],["TARGET","onboard_matrix.TARGET"],["TSHIRT","onboard_matrix.TSHIRT"],["ROLLERSKATE","onboard_matrix.ROLLERSKATE"],["DUCK","onboard_matrix.DUCK"],["HOUSE","onboard_matrix.HOUSE"],["TORTOISE","onboard_matrix.TORTOISE"],["BUTTERFLY","onboard_matrix.BUTTERFLY"],["STICKFIGURE","onboard_matrix.STICKFIGURE"],["GHOST","onboard_matrix.GHOST"],["PITCHFORK","onboard_matrix.PITCHFORK"],["MUSIC_QUAVERS","onboard_matrix.MUSIC_QUAVERS"],["MUSIC_QUAVER","onboard_matrix.MUSIC_QUAVER"],["MUSIC_CROTCHET","onboard_matrix.MUSIC_CROTCHET"],["COW","onboard_matrix.COW"],["RABBIT","onboard_matrix.RABBIT"],["SQUARE_SMALL","onboard_matrix.SQUARE_SMALL"],["SQUARE","onboard_matrix.SQUARE"],["DIAMOND_SMALL","onboard_matrix.DIAMOND_SMALL"],["DIAMOND","onboard_matrix.DIAMOND"],["CHESSBOARD","onboard_matrix.CHESSBOARD"],["TRIANGLE_LEFT","onboard_matrix.TRIANGLE_LEFT"],["TRIANGLE","onboard_matrix.TRIANGLE"],["SNAKE","onboard_matrix.SNAKE"],["UMBRELLA","onboard_matrix.UMBRELLA"],["SKULL","onboard_matrix.SKULL"],["GIRAFFE","onboard_matrix.GIRAFFE"],["SWORD","onboard_matrix.SWORD"]],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"]]};const kU=wU,HU=20,WU={init:function(){this.setColour(HU),this.appendDummyInput("").appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_HIGH,"HIGH"],[Rt.Msg.MIXLY_LOW,"LOW"]]),"BOOL"),this.setOutput(!0,Boolean),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_HIGHLOW_TOOLTIP)}},KU={init:function(){this.setColour(HU),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_Digital_PINMODEOUT).setCheck(Number),this.appendValueInput("STAT").appendField(Rt.Msg.MIXLY_STAT).setCheck([Number,Boolean]),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_DIGITAL_WRITE_TOOLTIP)}},JU={init:function(){this.setColour(HU),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Rt.Msg.MIXLY_Digital_PINMODEIN).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_MACHINE_VALUE),this.setInputsInline(!0),this.setOutput(!0,[Boolean,Number]),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_DIGITAL_READ_TOOLTIP)}},qU={init:function(){this.setColour(HU),this.appendValueInput("PIN",Number).appendField("DAC"+Rt.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendValueInput("NUM",Number).appendField(Rt.Msg.MIXLY_VALUE2).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_TOOLTIP)}},QU={init:function(){this.setColour(HU),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_JS_PERIOD_MIL).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_mSecond,"period"],[Rt.Msg.MIXLY_uSecond,"period_microseconds"]]),"key"),this.appendValueInput("NUM",Number).appendField(Rt.Msg.MIXLY_STAT).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_SET_TOOLTIP)}},zU={init:function(){this.setColour(HU),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_Analog_PINMODEIN).setCheck(Number),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_ESP32_REF_VOLTAGE+Rt.Msg.MIXLY_STAT).appendField(new Rt.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(Rt.Msg.MIXLY_ESP32_INOUT_ANALOG_ATTEN_TOOLTIP)}},jU={init:function(){this.setColour(HU),this.appendValueInput("pin").appendField(Rt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Rt.Msg.MIXLY_ESP32_TOUCH_SENSOR),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_MACHINE_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_PIN_PRESSED_TOOLTIP)}},$U={init:function(){this.setColour(20),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_ATTACHINTERRUPT_PIN).setCheck(Number),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MODE).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_RISING,"machine.Pin.IRQ_RISING"],[Rt.Msg.MIXLY_FALLING,"machine.Pin.IRQ_FALLING"],[Rt.Msg.MIXLY_CHANGE,"(machine.Pin.IRQ_RISING | machine.Pin.IRQ_FALLING)"]]),"mode"),this.appendValueInput("DO").appendField(Rt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_PIN_ATTACHINTERRUPT_TOOLTIP)}},ZU={init:function(){this.setColour(20),this.appendDummyInput().appendField(Rt.Msg.MIXLY_SETUP).appendField(new Rt.FieldTextInput("pin#"),"PIN_OBJ"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROPYTHON_AS).appendField(new Rt.FieldDropdown([[Rt.Msg.MIXLY_Digital_PINMODEOUT,"machine.Pin.OUT"],[Rt.Msg.MIXLY_Digital_PINMODEIN,"machine.Pin.IN"],[Rt.Msg.MIXLY_PINMODEPULLUP,"machine.Pin.IN, machine.Pin.PULL_UP"],[Rt.Msg.MIXLY_PINMODEPULLDOWN,"machine.Pin.IN, machine.Pin.PULL_DOWN"]]),"MODE"),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_DIGITAL_INIT_TOOLTIP)},getVars:function(){return["pin#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(e,"PIN_OBJ")}},tw={init:function(){this.setColour(HU),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_SETUP).appendField(new Rt.FieldTextInput("dac#"),"PIN_OBJ").appendField(Rt.Msg.MIXLY_MICROPYTHON_AS),this.appendDummyInput("").appendField("DAC"+Rt.Msg.MIXLY_Analog_PINMODEOUT),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_INIT_TOOLTIP)},getVars:function(){return["dac#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(e,"PIN_OBJ")}},ew={init:function(){this.setColour(HU),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_SETUP).appendField(new Rt.FieldTextInput("tc#"),"PIN_OBJ").appendField(Rt.Msg.MIXLY_MICROPYTHON_AS),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_ESP32_TOUCH_SENSOR),this.appendValueInput("PIN",Number).appendField(Rt.Msg.MIXLY_PIN).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_PIN_PRESSED_INIT_TOOLTIP)},getVars:function(){return["tc#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(t,e){Rt.Names.equals(t,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(e,"PIN_OBJ")}},iw={init:function(){this.setColour(HU),this.appendValueInput("PIN",Number).appendField("PWM"+Rt.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendValueInput("NUM",Number).appendField(Rt.Msg.MIXLY_FREQUENCY+Rt.Msg.MIXLY_STAT).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Rt.Msg.MIXLY_ESP32_INOUT_PWM_ANALOG_WRITE_SET_FREQ_TOOLTIP)}},nw=ZU,sw=ew,_w=jU,ow=$U,pw=230,aw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.digital),"PIN"),this.setOutput(!0)}},uw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.digital_pin),"PIN"),this.setOutput(!0,Number)}},rw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.input_pin),"PIN"),this.setOutput(!0,Number)}},lw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.output_pin),"PIN"),this.setOutput(!0,Number)}},dw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.espnow_channel),"PIN"),this.setOutput(!0,Number)}},Iw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.haskylens_model),"PIN"),this.setOutput(!0,Number)}},Tw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.pwm_input),"PIN"),this.setOutput(!0)}},Mw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.analog_input),"PIN"),this.setOutput(!0)}},hw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.pwm_output),"PIN"),this.setOutput(!0)}},mw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.analog_output),"PIN"),this.setOutput(!0)}},Ew={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.i2c_A_pin),"PIN"),this.setOutput(!0,Number)}},Ow={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.i2c_B_pin),"PIN"),this.setOutput(!0,Number)}},Rw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.spi_A_pin),"PIN"),this.setOutput(!0,Number)}},cw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.spi_B_pin),"PIN"),this.setOutput(!0,Number)}},gw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.spi_C_pin),"PIN"),this.setOutput(!0,Number)}},Cw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.spi_D_pin),"PIN"),this.setOutput(!0,Number)}},Sw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.analog),"PIN"),this.setOutput(!0)}},Aw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.analog_pin),"PIN"),this.setOutput(!0,Number)}},Lw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.dac),"PIN"),this.setOutput(!0)}},Nw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.dac_pin),"PIN"),this.setOutput(!0,Number)}},Dw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.button),"PIN"),this.setOutput(!0,Number)}},fw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.buttonB),"PIN"),this.setOutput(!0,Number)}},Fw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.pwm),"PIN"),this.setOutput(!0)}},Pw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.pwm_pin),"PIN"),this.setOutput(!0,Number)}},vw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.touch_pin),"PIN"),this.setOutput(!0,Number)}},Yw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.touch),"PIN"),this.setOutput(!0)}},Xw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.serial_pin),"PIN"),this.setOutput(!0,Number)}},yw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.builtinimg),"PIN"),this.setOutput(!0,"esp32_image")}},bw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.builtinimg_extern),"PIN"),this.setOutput(!0,"esp32_image")}},xw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.imglist),"PIN"),this.setOutput(!0)}},Vw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.playlist),"PIN"),this.setOutput(!0)}},Bw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.playlist_extern),"PIN"),this.setOutput(!0)}},Gw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.exlcdh),"PIN"),this.setOutput(!0,Number)}},Uw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.exlcdv),"PIN"),this.setOutput(!0,Number)}},ww={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.axis),"PIN"),this.setOutput(!0,Number)}},kw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.brightness),"PIN"),this.setOutput(!0,Number)}},Hw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.tts_voice),"PIN"),this.setOutput(!0,Number)}},Ww={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.tts_builtin_music),"PIN"),this.setOutput(!0,Number)}},Kw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.tts_bgmusic),"PIN"),this.setOutput(!0,Number)}},Jw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.tone_notes),"PIN"),this.setOutput(!0,Number)}},qw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.radio_power),"PIN"),this.setOutput(!0,Number)}},Qw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.radio_datarate),"PIN"),this.setOutput(!0,Number)}},zw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.one_more),"PIN"),this.setOutput(!0)}},jw={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.digital_dot),"PIN"),this.setOutput(!0,Number)}},$w={init:function(){this.setColour(pw),this.appendDummyInput("").appendField(new Rt.FieldDropdown([["0","0"],["1","1"],["2","2"],["3","3"]]),"PIN"),this.setOutput(!0,Number)}},Zw=function(t,e){return["HIGH"==this.getFieldValue("BOOL")?"1":"0",e.ORDER_ATOMIC]},tk=function(t,e){e.definitions_.import_machine="import machine";var i="";return i+=e.valueToCode(this,"PIN",e.ORDER_ATOMIC)+".value("+e.valueToCode(this,"STAT",e.ORDER_ATOMIC)+")\n"},ek=function(t,e){e.definitions_.import_machine="import machine";return[e.valueToCode(this,"PIN",e.ORDER_ATOMIC)+".value()",e.ORDER_ATOMIC]},ik=function(t,e){return e.definitions_.import_machine="import machine",e.valueToCode(this,"PIN",e.ORDER_ATOMIC)+".write("+e.valueToCode(this,"NUM",e.ORDER_ATOMIC)+")\n"},nk=function(t,e){e.definitions_.import_machine="import machine";var i=e.valueToCode(this,"PIN",e.ORDER_ATOMIC),n=e.valueToCode(this,"NUM",e.ORDER_ATOMIC);return i+".set_analog_"+this.getFieldValue("key")+"("+n+")\n"},sk=function(t,e){return e.definitions_.import_machine="import machine",[e.valueToCode(this,"pin",e.ORDER_ATOMIC)+".read()",e.ORDER_ATOMIC]},_k=function(t,e){e.definitions_.import_machine="import machine";var i=e.valueToCode(this,"PIN",e.ORDER_ATOMIC),n=this.getFieldValue("mode");return"machine.Pin("+i+").irq(handler = "+e.valueToCode(this,"DO",e.ORDER_ATOMIC)+", trigger = "+n+")\n"},ok=function(t,e){e.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"pin#",n=e.valueToCode(this,"PIN",e.ORDER_ATOMIC),s=this.getFieldValue("MODE");return("pin#"==i?"pin"+n:e.variableDB_.getName(i,Rt.Variables.NAME_TYPE))+" = machine.Pin("+n+", "+s+")\n"},pk=function(t,e){e.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"dac#",n=e.valueToCode(this,"PIN",e.ORDER_ATOMIC);return("dac#"==i?"dac"+n:e.variableDB_.getName(i,Rt.Variables.NAME_TYPE))+" = machine.DAC(machine.Pin("+n+"))\n"},ak=function(t,e){return e.definitions_.import_machine="import machine",e.valueToCode(this,"PIN",e.ORDER_ATOMIC)+".atten("+this.getFieldValue("atten")+")\n"},uk=function(t,e){e.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"tc#",n=e.valueToCode(this,"PIN",e.ORDER_ATOMIC);return("tc#"==i?"tc"+n:e.variableDB_.getName(i,Rt.Variables.NAME_TYPE))+" = machine.TouchPad(machine.Pin("+n+"))\n"},rk=function(t,e){return[this.getFieldValue("PIN"),e.ORDER_ATOMIC]},lk=rk,dk=rk,Ik=rk,Tk=rk,Mk=rk,hk=rk,mk=rk,Ek=rk,Ok=rk,Rk=rk,ck=rk,gk=rk,Ck=rk,Sk=rk,Ak=rk,Lk=rk,Nk=rk,Dk=rk,fk=rk,Fk=rk,Pk=rk,vk=rk,Yk=rk,Xk=rk,yk=rk,bk=rk,xk=rk,Vk=rk,Bk=rk,Gk=rk,Uk=rk,wk=rk,kk=rk,Hk=rk,Wk=rk,Kk=rk,Jk=rk,qk=rk,Qk=rk,zk=rk,jk=rk,$k=rk,Zk=rk,tH=rk,eH=rk;Object.assign(Rt.Variables,Ct),Object.assign(Rt.Procedures,Bu),Object.assign(Rt.Lang.ZhHans,It),Object.assign(Rt.Lang.ZhHant,Tt),Object.assign(Rt.Lang.En,Mt),Rt.Python=Gu,Rt.generator=Gu,ct.Profile.default={},Object.assign(ct.Profile,kU),Object.assign(ct.Profile.default,kU["MixGo CE"]),Object.assign(Rt.Blocks,e,i,n,s,_,o,p,a,u,r,l,d,I,V,W,H,X,B,K,f,k,w,U,G,F,D,N,b,y,x,P,v,Y,ht,mt),Object.assign(Rt.Python.forBlock,T,M,h,m,E,O,R,c,g,C,S,A,L,st,lt,rt,tt,_t,dt,Q,ut,at,pt,ot,z,q,J,it,et,nt,j,$,Z,Et,Ot)})();