(()=>{"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:()=>xt,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:()=>be,math_indexer_number:()=>De,math_map:()=>Ne,math_max_min:()=>Ce,math_number:()=>Te,math_number_base_conversion:()=>Se,math_radian_to_degree:()=>xe,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:()=>bi,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:()=>xi,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:()=>xn,logic_is_in:()=>yn,logic_negate:()=>Pn,logic_null:()=>Yn,logic_operation:()=>Fn,logic_tobool:()=>bn,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_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:()=>Hs,set_clear:()=>Us,set_create_with:()=>xs,set_create_with_container:()=>bs,set_create_with_item:()=>Vs,set_create_with_text_return:()=>Js,set_length:()=>Bs,set_operate:()=>ws,set_operate_update:()=>ks,set_pop:()=>Gs,set_sub:()=>Ws,set_toset:()=>qs,set_update:()=>Ks});var d={};t.r(d),t.d(d,{html_content:()=>Zs,html_content_more:()=>t_,html_document:()=>zs,html_form:()=>i_,html_head_body:()=>$s,html_style:()=>e_,html_style_color:()=>s_,html_style_content:()=>n_,html_text:()=>__,html_title:()=>js});var I={};t.r(I),t.d(I,{attribute_access:()=>O_,function_call:()=>h_,function_call_container:()=>m_,function_call_item:()=>E_,raw_block:()=>a_,raw_empty:()=>r_,raw_expression:()=>u_,raw_table:()=>p_,text_comment:()=>l_,text_print_multiple:()=>I_,text_print_multiple_container:()=>T_,text_print_multiple_item:()=>M_,type_check:()=>d_});var T={};t.r(T),t.d(T,{controls_type:()=>S_,controls_typeLists:()=>A_,lists_zip:()=>L_,unpack_iterable_object:()=>N_,variables_change:()=>g_,variables_get:()=>R_,variables_global:()=>C_,variables_set:()=>c_});var M={};t.r(M),t.d(M,{Panic_with_status_code:()=>b_,base_setup:()=>f_,controls_delay:()=>x_,controls_flow_statements:()=>y_,controls_for:()=>v_,controls_forEach:()=>w_,controls_for_range:()=>Y_,controls_if:()=>F_,controls_interrupts:()=>G_,controls_lambda:()=>H_,controls_main:()=>D_,controls_millis:()=>V_,controls_nointerrupts:()=>U_,controls_pass:()=>K_,controls_range:()=>k_,controls_repeat:()=>to,controls_repeat_ext:()=>Q_,controls_thread:()=>J_,controls_try_finally:()=>P_,controls_whileUntil:()=>X_,datetime_fromtimestamp:()=>eo,do_while:()=>q_,garbage_collection:()=>z_,gene_unique_identifier:()=>io,get_mem_alloc:()=>j_,get_mem_free:()=>$_,get_unique_identifier:()=>Z_,reset:()=>B_,time_sleep:()=>W_});var h={};t.r(h),t.d(h,{base_map:()=>So,generate_cartesian_product:()=>Lo,math_arithmetic:()=>po,math_bit:()=>oo,math_constant:()=>so,math_constant_mp:()=>_o,math_constrain:()=>mo,math_dec:()=>lo,math_degree_to_radian:()=>Do,math_indexer_number:()=>Ro,math_map:()=>ho,math_max_min:()=>To,math_number:()=>no,math_number_base_conversion:()=>Eo,math_radian_to_degree:()=>No,math_random:()=>Mo,math_random_seed:()=>Oo,math_round:()=>co,math_selfcalcu:()=>ao,math_single:()=>uo,math_to_int:()=>Io,math_trig:()=>ro,text_to_number:()=>go,text_to_number_skulpt:()=>Co,turn_to_int:()=>Ao});var m={};t.r(m),t.d(m,{ascii_to_char:()=>Xo,char_to_ascii:()=>yo,number_to_text:()=>xo,os_system:()=>_p,text:()=>fo,text_bytes:()=>Po,text_capital:()=>Wo,text_center:()=>Ko,text_char:()=>vo,text_char_at:()=>Bo,text_char_at2:()=>Vo,text_char_at3:()=>ip,text_compareTo:()=>ep,text_compare_to:()=>wo,text_encode:()=>np,text_equals_starts_ends:()=>Uo,text_eval:()=>sp,text_find:()=>Jo,text_format:()=>$o,text_format_noreturn:()=>Zo,text_join:()=>Yo,text_join_seq:()=>qo,text_length:()=>bo,text_random_char:()=>Go,text_replace:()=>Qo,text_split:()=>zo,text_strip:()=>jo,text_substring:()=>Ho,text_substring2:()=>ko,text_substring3:()=>tp,text_textarea:()=>Fo});var E={};t.r(E),t.d(E,{content_in_lists:()=>Bp,enumerate:()=>Vp,list_many_input:()=>Ap,list_tolist:()=>xp,list_tolist2:()=>bp,list_trig:()=>gp,lists_2d_get_col_row_data:()=>ap,lists_2d_get_data_with_col_row:()=>pp,lists_append_extend:()=>Ip,lists_change_to:()=>Sp,lists_change_to_general:()=>Np,lists_clear:()=>Ep,lists_create_with:()=>up,lists_create_with2:()=>fp,lists_create_with_noreturn:()=>Lp,lists_create_with_text:()=>rp,lists_create_with_text2:()=>Fp,lists_del_general:()=>Dp,lists_find:()=>Op,lists_getIndex3:()=>Pp,lists_getSublist3:()=>vp,lists_get_index:()=>lp,lists_get_random_item:()=>Tp,lists_get_random_sublist:()=>Mp,lists_get_sublist:()=>op,lists_insert_value:()=>hp,lists_insert_value2:()=>Xp,lists_pop:()=>cp,lists_remove_at:()=>Rp,lists_remove_at2:()=>yp,lists_reverse:()=>mp,lists_setIndex3:()=>Yp,lists_set_index:()=>dp,lists_sort:()=>Cp});var O={};t.r(O),t.d(O,{dicts_add_change_del:()=>$p,dicts_add_or_change:()=>Hp,dicts_clear:()=>Jp,dicts_create_with:()=>Gp,dicts_create_with_noreturn:()=>ea,dicts_deldict:()=>jp,dicts_delete:()=>Wp,dicts_get:()=>wp,dicts_get_default:()=>kp,dicts_items:()=>qp,dicts_keys:()=>Up,dicts_length:()=>zp,dicts_pop:()=>Zp,dicts_setdefault:()=>ta,dicts_to_json:()=>na,dicts_to_json2:()=>oa,dicts_to_to:()=>_a,dicts_todict:()=>ia,dicts_update:()=>Kp,dicts_values:()=>Qp,json_to_dicts:()=>sa});var R={};t.r(R),t.d(R,{logic_boolean:()=>la,logic_compare:()=>pa,logic_compare_continous:()=>aa,logic_is:()=>Ma,logic_is_in:()=>Ta,logic_negate:()=>ra,logic_null:()=>da,logic_operation:()=>ua,logic_tobool:()=>ha,logic_true_or_false:()=>Ia});var c={};t.r(c),t.d(c,{sdcard_mount:()=>Ba,sdcard_use_spi_init:()=>Va,storage_can_write_ornot:()=>Aa,storage_change_dir:()=>Ya,storage_close_file:()=>Na,storage_delete_file:()=>fa,storage_file_seek:()=>va,storage_file_tell:()=>Pa,storage_file_write:()=>ca,storage_fileopen:()=>Ea,storage_fileopen_new:()=>Oa,storage_fileopen_new_encoding:()=>Ra,storage_get_a_line:()=>Sa,storage_get_contents:()=>Ca,storage_get_contents_without_para:()=>ga,storage_get_current_dir:()=>Xa,storage_get_file_size:()=>Fa,storage_get_filename:()=>La,storage_is_file:()=>ba,storage_list_all_files:()=>Da,storage_make_dir:()=>ya,storage_open_file_with_os:()=>ma,storage_rename:()=>xa});var g={};t.r(g),t.d(g,{procedures_callnoreturn:()=>ka,procedures_callreturn:()=>wa,procedures_defnoreturn:()=>Ua,procedures_defreturn:()=>Ga,procedures_ifreturn:()=>Ha,procedures_return:()=>Wa});var C={};t.r(C),t.d(C,{tuple_change_to:()=>tu,tuple_create_with:()=>Ka,tuple_create_with_noreturn:()=>su,tuple_create_with_text2:()=>Ja,tuple_create_with_text_return:()=>qa,tuple_del:()=>ja,tuple_find:()=>eu,tuple_getIndex:()=>Qa,tuple_getSublist:()=>nu,tuple_get_random_item:()=>ou,tuple_get_sublist:()=>_u,tuple_input:()=>au,tuple_join:()=>$a,tuple_length:()=>za,tuple_max:()=>Za,tuple_totuple:()=>pu,tuple_trig:()=>iu});var S={};t.r(S),t.d(S,{set_add_discard:()=>Mu,set_clear:()=>du,set_create_with:()=>uu,set_create_with_text_return:()=>Eu,set_length:()=>ru,set_operate:()=>Iu,set_operate_update:()=>Tu,set_pop:()=>lu,set_sub:()=>hu,set_toset:()=>Ou,set_update:()=>mu});var A={};t.r(A),t.d(A,{html_content:()=>Cu,html_content_more:()=>Su,html_document:()=>Ru,html_form:()=>Lu,html_head_body:()=>gu,html_style:()=>Au,html_style_content:()=>Nu,html_text:()=>Du,html_title:()=>cu});var L={};t.r(L),t.d(L,{attribute_access:()=>yu,function_call:()=>Xu,raw_block:()=>fu,raw_empty:()=>Pu,raw_expression:()=>Fu,raw_table:()=>vu,type_check:()=>Yu});var N={};t.r(N),t.d(N,{PIN_init:()=>Ur,actuator_extern_get_led_bright:()=>zu,actuator_extern_get_led_state:()=>ju,actuator_extern_led_bright:()=>Qu,actuator_extern_led_brightness:()=>$u,actuator_ms32006_dcmotor:()=>pr,actuator_ms32006_init:()=>or,actuator_ms32006_stepper:()=>ar,actuator_neopixel_init:()=>ur,actuator_neopixel_rgb:()=>rr,actuator_neopixel_rgb_all:()=>lr,actuator_neopixel_rgb_show_all_chase:()=>Tr,actuator_neopixel_rgb_show_all_rainbow:()=>Ir,actuator_neopixel_write:()=>dr,actuator_use_uart_init:()=>Mr,esp32_music_get_tempo_extern:()=>Wu,esp32_music_pitch:()=>Uu,esp32_music_pitch_init:()=>Gu,esp32_music_pitch_with_time:()=>wu,esp32_music_play_list:()=>ku,esp32_music_reset_extern:()=>Ku,esp32_music_set_tempo_extern:()=>Hu,esp32_music_stop:()=>Ju,esp32_set_music_volume:()=>qu,mixbot_actuator_extern_get_addr:()=>Br,mixbot_actuator_extern_set_addr:()=>Gr,mixbot_addr_extern:()=>Lr,parrot_PIN_init:()=>Wr,parrot_move_speed:()=>Kr,pin_led_bright:()=>wr,player_insert_music:()=>cr,player_play_music:()=>Rr,player_set_mode:()=>Or,player_set_play:()=>mr,player_set_volume:()=>Er,player_whether_stop:()=>hr,robot_led_extern:()=>Fr,robot_led_extern_get_value:()=>Pr,robot_motor_extern:()=>Nr,robot_motor_extern_get_speed:()=>Dr,robot_servo_extern_absolute_run:()=>yr,robot_servo_extern_get_status:()=>vr,robot_servo_extern_relative_continue:()=>Vr,robot_servo_extern_relative_origin:()=>xr,robot_servo_extern_relative_run:()=>br,robot_servo_extern_stop:()=>Xr,robot_servo_extern_stop_mode:()=>Yr,robot_traffic_light_extern:()=>fr,servo_PIN_init:()=>kr,servo_get_angle:()=>sr,servo_get_speed:()=>_r,servo_init:()=>Zu,servo_move:()=>tr,servo_move_angle:()=>Hr,servo_set_angle:()=>ir,servo_set_speed:()=>nr,servo_speed_360:()=>er,syn6288_builtin_voice:()=>Sr,syn6288_get_voice:()=>Cr,syn6288_set_voice:()=>gr,syn6288_tts_play:()=>Ar});var D={};t.r(D),t.d(D,{actuator_dc_motor:()=>Sl,actuator_dc_motor_stop:()=>Al,actuator_get_led_bright:()=>jr,actuator_get_led_state:()=>$r,actuator_led_bright:()=>zr,actuator_led_brightness:()=>Zr,actuator_mixbot_buzzer_on_off:()=>Fl,actuator_mixgo_nova_mic_get:()=>yl,actuator_mixgo_nova_mic_set:()=>Xl,actuator_mixgo_nova_onboard_music_pitch:()=>Ul,actuator_mixgo_nova_onboard_music_stop:()=>wl,actuator_mixgo_nova_play_audio:()=>Bl,actuator_mixgo_nova_play_online_audio:()=>Gl,actuator_mixgo_nova_record_audio:()=>Vl,actuator_mixgo_nova_voice_get:()=>bl,actuator_mixgo_nova_voice_set:()=>xl,actuator_mixgo_zero_led_color:()=>tl,actuator_onboard_neopixel_rgb:()=>ol,actuator_onboard_neopixel_rgb_all:()=>pl,actuator_onboard_neopixel_rgb_show_all_chase:()=>ul,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>al,actuator_onboard_neopixel_write:()=>rl,actuator_rm_onboard_neopixel_rgb:()=>ll,actuator_rm_onboard_neopixel_rgb_all:()=>dl,actuator_rm_onboard_neopixel_rgb_show_all_chase:()=>Il,actuator_stepper_keep:()=>gl,actuator_stepper_stop:()=>Cl,analog_ble_keyboard_init:()=>ed,analog_ble_keyboard_input:()=>sd,analog_ble_keyboard_mouse_init:()=>dd,analog_ble_keyboard_mouse_input:()=>hd,analog_ble_keyboard_mouse_send_battery:()=>Md,analog_ble_keyboard_mouse_str:()=>md,analog_ble_keyboard_send_battery:()=>od,analog_ble_keyboard_str:()=>_d,analog_ble_mouse_init:()=>pd,analog_ble_mouse_input:()=>rd,analog_ble_mouse_keyboard_input:()=>Ed,analog_ble_mouse_send_battery:()=>ld,analog_keyboard_input:()=>Kl,analog_keyboard_str:()=>td,analog_mouse_input:()=>$l,bitbot_motor:()=>Yl,bitbot_move:()=>Pl,bitbot_stop:()=>vl,ble_keyboard_connect:()=>nd,ble_keyboard_get_mac:()=>id,ble_keyboard_mouse_connect:()=>Td,ble_keyboard_mouse_get_mac:()=>Id,ble_mouse_connect:()=>ud,ble_mouse_get_mac:()=>ad,cc_number:()=>_l,educore_ble_keyboard_input:()=>Dd,educore_ble_sensor_connected:()=>Nd,educore_ble_sensor_init:()=>Ld,educore_buzzer:()=>Od,educore_buzzer_play_tone:()=>Rd,educore_buzzer_play_tone_time:()=>cd,educore_buzzer_stop:()=>gd,educore_neopixel_clear:()=>Ad,educore_neopixel_rgb:()=>Sd,educore_rgb_light:()=>Cd,esp32_music_get_tempo:()=>Ml,esp32_music_reset:()=>hl,esp32_music_set_tempo:()=>Tl,esp32_onboard_music_pitch:()=>ml,esp32_onboard_music_pitch_with_time:()=>El,esp32_onboard_music_play_list:()=>Rl,esp32_onboard_music_stop:()=>Ol,general_key:()=>ql,general_key_tuple:()=>Ql,generalkey_container:()=>zl,generalkey_create_with_item:()=>jl,get_keyboard_light:()=>fd,get_power_output:()=>Hl,ledswitch:()=>Qr,mixbot_motor:()=>fl,mixbot_motor_status:()=>Ll,mixbot_move:()=>Nl,mixbot_stop:()=>Dl,mouse_key:()=>Zl,number:()=>qr,record_audio:()=>Pd,rm_actuator_get_led_bright:()=>il,rm_actuator_get_led_state:()=>nl,rm_actuator_led_bright:()=>el,rm_actuator_led_brightness:()=>sl,rm_motor:()=>cl,set_all_power_output:()=>Wl,set_microphone_amplification:()=>Fd,set_music_volume:()=>vd,set_power_output:()=>kl,special_key:()=>Jl});var f={};t.r(f),t.d(f,{ai_sensor_20object:()=>dI,ai_sensor_ailocal_class:()=>eI,ai_sensor_ailocal_class_result:()=>iI,ai_sensor_ailocal_train:()=>tI,ai_sensor_asr_recognize:()=>pI,ai_sensor_audio_play:()=>sI,ai_sensor_audio_record:()=>nI,ai_sensor_barcode:()=>Gd,ai_sensor_circle:()=>Kd,ai_sensor_classifier_faces:()=>lI,ai_sensor_color:()=>zd,ai_sensor_color_chases:()=>Zd,ai_sensor_color_chases_result:()=>$d,ai_sensor_config:()=>Vd,ai_sensor_face:()=>rI,ai_sensor_find_20objects:()=>II,ai_sensor_find_barcodes:()=>Ud,ai_sensor_find_circles:()=>Jd,ai_sensor_find_colors:()=>jd,ai_sensor_find_licenseplates:()=>uI,ai_sensor_find_lines:()=>Wd,ai_sensor_find_qrcodes:()=>bd,ai_sensor_find_rects:()=>Qd,ai_sensor_find_tags:()=>kd,ai_sensor_licenseplate:()=>aI,ai_sensor_line:()=>Hd,ai_sensor_qrcode:()=>yd,ai_sensor_qrcode_lite:()=>xd,ai_sensor_rect:()=>qd,ai_sensor_rgb:()=>Bd,ai_sensor_tag:()=>wd,ai_sensor_use_uart_init:()=>Xd,ai_sensor_yolo_recognize:()=>_I,ai_sensor_yolo_recognize_result:()=>oI});var F={};t.r(F),t.d(F,{MICROPYTHON_AI_Speech_asr:()=>hI,MICROPYTHON_AI_Speech_unit:()=>MI,MICROPYTHON_AI_client:()=>TI});var P={};t.r(P),t.d(P,{mpython_blynk_app_data:()=>PI,mpython_blynk_app_notify:()=>SI,mpython_blynk_email:()=>NI,mpython_blynk_get_timers:()=>DI,mpython_blynk_on_connected:()=>cI,mpython_blynk_on_disconnected:()=>RI,mpython_blynk_run:()=>CI,mpython_blynk_sensor_data_to_app:()=>FI,mpython_blynk_set_property:()=>LI,mpython_blynk_setup:()=>vI,mpython_blynk_stop_timers:()=>AI,mpython_blynk_sync_virtual:()=>OI,mpython_blynk_terminal_widget_vpin:()=>EI,mpython_blynktimer:()=>fI,mpython_blynktimer_run:()=>gI});var v={};t.r(v),t.d(v,{cc_g1_init:()=>YI,cc_g1_read_bat:()=>XI,cc_g1_read_joystick:()=>yI,cc_g1_read_key:()=>xI,cc_g1_turnoff:()=>bI});var Y={};t.r(Y),t.d(Y,{ce_go_dc_motor:()=>KI,ce_go_get_led_bright:()=>UI,ce_go_get_led_state:()=>wI,ce_go_hall_attachInterrupt:()=>JI,ce_go_hall_data:()=>QI,ce_go_hall_initialize:()=>qI,ce_go_led_bright:()=>GI,ce_go_led_brightness:()=>kI,ce_go_light_number:()=>BI,ce_go_pin_light:()=>tT,ce_go_pin_near:()=>jI,ce_go_pin_near_line:()=>zI,ce_go_pin_near_state_change:()=>$I,ce_go_stepper_keep:()=>HI,ce_go_stepper_stop:()=>WI,educore_car:()=>eT,educore_car_pin_near:()=>_T,educore_car_pin_near_line:()=>sT,educore_car_stepper_keep:()=>iT,educore_car_stepper_stop:()=>nT,sensor_mixgome_eulerangles:()=>ZI});var X={};t.r(X),t.d(X,{communicate_bluetooth_central_init:()=>UT,communicate_bluetooth_connect:()=>WT,communicate_bluetooth_disconnect:()=>KT,communicate_bluetooth_handle:()=>jT,communicate_bluetooth_is_connected:()=>qT,communicate_bluetooth_mac:()=>HT,communicate_bluetooth_peripheral_init:()=>wT,communicate_bluetooth_recv:()=>QT,communicate_bluetooth_recv_only:()=>zT,communicate_bluetooth_scan:()=>kT,communicate_bluetooth_send:()=>JT,communicate_espnow_init:()=>$T,communicate_espnow_init_new:()=>ZT,communicate_i2c_available:()=>CT,communicate_i2c_init:()=>uT,communicate_i2c_master_read:()=>gT,communicate_i2c_onboard:()=>pT,communicate_i2c_read:()=>rT,communicate_i2c_scan:()=>dT,communicate_i2c_write:()=>lT,communicate_ir_recv_init:()=>PT,communicate_ir_send_init:()=>xT,communicate_ow_init:()=>AT,communicate_ow_read:()=>NT,communicate_ow_reset:()=>FT,communicate_ow_scan:()=>LT,communicate_ow_select:()=>fT,communicate_ow_write:()=>DT,communicate_spi_buffer:()=>MT,communicate_spi_init:()=>IT,communicate_spi_onboard:()=>aT,communicate_spi_read:()=>hT,communicate_spi_read_output:()=>mT,communicate_spi_readinto:()=>ET,communicate_spi_readinto_output:()=>OT,communicate_spi_set:()=>TT,communicate_spi_write:()=>RT,communicate_spi_write_readinto:()=>cT,espnow_radio_channel:()=>_M,espnow_radio_channel_new:()=>pM,espnow_radio_on_off:()=>aM,espnow_radio_rec:()=>rM,espnow_radio_recv:()=>dM,espnow_radio_recv_certain_msg:()=>IM,espnow_radio_recv_certain_msg_new:()=>MM,espnow_radio_recv_msg:()=>lM,espnow_radio_recv_new:()=>TM,espnow_radio_send:()=>uM,espnow_radio_txpower:()=>oM,i2c_available:()=>bM,i2c_init:()=>CM,i2c_master_reader2:()=>xM,i2c_read:()=>SM,i2c_scan:()=>LM,i2c_slave_onreceive:()=>ST,i2c_write:()=>AM,internal_variable:()=>vT,ir_recv_timeout:()=>yT,ir_transmit_busy:()=>GT,ir_transmit_conventional_data:()=>bT,ir_transmit_raw_code:()=>BT,ir_transmit_study_code:()=>VT,ir_whether_recv:()=>XT,lora_init:()=>hM,lora_packet:()=>mM,lora_recv:()=>OM,lora_send:()=>EM,network_espnow_info:()=>eM,network_espnow_mac:()=>tM,network_espnow_recv:()=>iM,network_espnow_recv_handle:()=>sM,network_espnow_send:()=>nM,recv_fun:()=>YT,spi_buffer:()=>fM,spi_init:()=>NM,spi_read:()=>FM,spi_read_output:()=>PM,spi_readinto:()=>vM,spi_readinto_output:()=>YM,spi_set:()=>DM,spi_write:()=>XM,spi_write_readinto:()=>yM,urequests_attribute:()=>cM,urequests_get:()=>RM,urequests_method:()=>gM});var y={};t.r(y),t.d(y,{display_animate:()=>Mh,display_blink_rate:()=>lh,display_circle:()=>hh,display_color_seclet:()=>Dh,display_draw_4strings:()=>_h,display_fill:()=>Th,display_get_screen_image:()=>rh,display_help:()=>Eh,display_image_size:()=>oh,display_lcd_use_i2c_init:()=>Xh,display_line:()=>ah,display_line_arbitrarily:()=>uh,display_matrix_extern_bright_point:()=>jM,display_matrix_extern_bright_screen:()=>ZM,display_matrix_extern_clear:()=>th,display_matrix_extern_get_pixel:()=>zM,display_matrix_extern_get_screen_pixel:()=>$M,display_matrix_extern_image_builtins:()=>eh,display_matrix_extern_scroll_string:()=>WM,display_matrix_extern_scroll_string_delay:()=>KM,display_matrix_extern_shift:()=>QM,display_matrix_extern_show_frame_string:()=>JM,display_matrix_extern_show_frame_string_delay:()=>qM,display_matrix_extern_show_image:()=>kM,display_matrix_extern_show_image_or_string_delay:()=>HM,display_matrix_use_i2c_init:()=>wM,display_oled_drawPixel:()=>Rh,display_oled_showBitmap:()=>Oh,display_oled_use_i2c_init:()=>Bh,display_onoff:()=>Ih,display_rect:()=>ph,display_rgb_color:()=>dh,display_tm1650_power:()=>gh,display_tm1650_set_brightness:()=>Ah,display_tm1650_show_dot:()=>Sh,display_tm1650_show_num:()=>Ch,display_tm_use_i2c_init:()=>ch,display_triangle:()=>mh,display_use_i2c_init:()=>sh,extern_oled_bright_point:()=>zh,extern_oled_clear:()=>jh,extern_oled_get_pixel:()=>Qh,extern_oled_hvline:()=>Zh,extern_oled_line:()=>tm,extern_oled_scroll_string:()=>Hh,extern_oled_scroll_string_delay:()=>Wh,extern_oled_shape_rect:()=>$h,extern_oled_shift:()=>qh,extern_oled_show_frame_string:()=>Kh,extern_oled_show_frame_string_delay:()=>Jh,extern_oled_show_image:()=>Gh,extern_oled_show_image_or_string_delay:()=>kh,extern_oled_show_image_xy:()=>Uh,extern_oled_show_string:()=>wh,lcd_backlight:()=>bh,lcd_clear:()=>Vh,lcd_print_string:()=>xh,lcd_show_image_or_string_delay:()=>yh,matrix_extern_image_arithmetic:()=>ih,matrix_extern_image_invert:()=>nh,tft_fill:()=>vh,tft_line_arbitrarily:()=>Yh,tft_scroll_string_delay:()=>Fh,tft_show_frame_string_delay:()=>Ph,tft_show_image_or_string_delay:()=>fh,tft_show_image_xy:()=>Nh,tft_use_spi_init:()=>Lh});var x={};t.r(x),t.d(x,{bitbot_display_bitmap_create:()=>qm,bitbot_display_image_create:()=>Jm,display_available:()=>gm,display_bitmap_create:()=>lm,display_bright_point:()=>Em,display_bright_screen:()=>Rm,display_clear:()=>cm,display_get_pixel:()=>mm,display_get_screen_pixel:()=>Om,display_image_builtins:()=>dm,display_image_builtins_all:()=>Im,display_image_create:()=>rm,display_scroll_string:()=>sm,display_scroll_string_delay:()=>_m,display_scroll_way:()=>om,display_shift:()=>hm,display_show_frame_string:()=>am,display_show_frame_string_delay:()=>um,display_show_image:()=>im,display_show_image_or_string_delay:()=>nm,draw_pointer:()=>lE,image_arithmetic:()=>Tm,image_invert:()=>Mm,mixbot_display_bitmap_create:()=>wm,mixbot_display_bright_screen:()=>Wm,mixbot_display_get_ambientbright:()=>Hm,mixbot_display_get_screen_pixel:()=>km,mixbot_display_image_create:()=>Um,mixbot_display_rotate:()=>Km,mixgo_display_bitmap_create:()=>Dm,mixgo_display_image_create_new:()=>Nm,mixgome_display_bitmap_create:()=>Sm,mixgome_display_font:()=>fm,mixgome_display_image_create:()=>Cm,mixgomini_display_bitmap_create:()=>Lm,mixgomini_display_image_create:()=>Am,mpython_display_hvline:()=>Vm,mpython_display_line:()=>Bm,mpython_display_shape_rect:()=>bm,mpython_pbm_image:()=>Gm,nova_draw_pointer:()=>dE,onboard_oled_bright_point:()=>xm,onboard_oled_scroll_string_delay:()=>Xm,onboard_oled_show_frame_string_delay:()=>ym,onboard_oled_show_image:()=>Fm,onboard_oled_show_image_or_string_delay:()=>Ym,onboard_oled_show_image_xy:()=>Pm,onboard_oled_show_string:()=>vm,onboard_tft_bright_point:()=>nE,onboard_tft_bright_screen:()=>OE,onboard_tft_clear:()=>RE,onboard_tft_clock_clear:()=>uE,onboard_tft_clock_draw:()=>aE,onboard_tft_clock_get_rtctime:()=>oE,onboard_tft_clock_init:()=>_E,onboard_tft_clock_set_time:()=>pE,onboard_tft_display_hvline:()=>tE,onboard_tft_display_line:()=>eE,onboard_tft_display_shape_circle:()=>rE,onboard_tft_display_shape_rect:()=>Zm,onboard_tft_fill:()=>sE,onboard_tft_get_pixel:()=>iE,onboard_tft_get_screen_pixel:()=>EE,onboard_tft_scroll_string:()=>ME,onboard_tft_scroll_string_delay:()=>pm,onboard_tft_shift:()=>mE,onboard_tft_show_frame_string:()=>hE,onboard_tft_show_frame_string_delay:()=>$m,onboard_tft_show_image:()=>TE,onboard_tft_show_image_or_string_delay:()=>jm,onboard_tft_show_image_xy:()=>Qm,onboard_tft_show_image_xy_direct:()=>zm,onboard_tft_show_texts:()=>IE});var b={};t.r(b),t.d(b,{factory_block:()=>VE,factory_block_return:()=>BE,factory_block_return_with_textarea:()=>UE,factory_block_with_textarea:()=>GE,factory_callMethod_noreturn:()=>xE,factory_callMethod_return:()=>bE,factory_create_with_container:()=>vE,factory_create_with_item:()=>YE,factory_declare:()=>yE,factory_from_import:()=>fE,factory_function_noreturn:()=>PE,factory_function_return:()=>XE,factory_import:()=>FE,folding_block:()=>wE});var V={};t.r(V),t.d(V,{controls_pin_attachInterrupt:()=>rO,inout_analog_atten:()=>$E,inout_analog_read:()=>jE,inout_analog_read_init:()=>sO,inout_analog_write:()=>qE,inout_analog_write_init:()=>nO,inout_analog_write_set:()=>QE,inout_analog_write_set_freq:()=>pO,inout_digital_init:()=>eO,inout_digital_read:()=>KE,inout_digital_write:()=>WE,inout_highlow:()=>HE,inout_pinMode:()=>oO,inout_pin_attachInterrupt:()=>tO,inout_pin_pressed:()=>ZE,inout_pin_pressed_init:()=>_O,inout_pwm_analog_write:()=>JE,inout_pwm_analog_write_init:()=>iO,inout_pwm_analog_write_set_freq:()=>zE,pin_pressed:()=>uO,pin_pressed_init:()=>aO});var B={};t.r(B),t.d(B,{IOT_CONNECT_OLLAMA:()=>qO,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>yO,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>XO,IOT_EMQX_PING:()=>vO,IOT_FORMATTING:()=>FO,IOT_FORMAT_STRING:()=>PO,IOT_MIXIO_NTP:()=>YO,IOT_MIXIO_PUBLISH:()=>gO,IOT_MIXIO_PUBLISHEX:()=>CO,IOT_MIXIO_SUBSCRIBE:()=>SO,iot_checkonenet:()=>WO,iot_client_onboard:()=>bO,iot_connect_ollama:()=>JO,iot_connect_openai:()=>QO,iot_create_with_item:()=>RO,iot_http_client:()=>VO,iot_http_data:()=>BO,iot_mixio_check:()=>NO,iot_mixio_connect:()=>cO,iot_mixio_connect_only:()=>LO,iot_mixio_disconnect:()=>AO,iot_mixio_format_msg:()=>fO,iot_mixio_format_topic:()=>DO,iot_mixly_key:()=>xO,iot_mqtt_client:()=>GO,iot_mqtt_data:()=>UO,iot_onenet_check:()=>MO,iot_onenet_connect:()=>IO,iot_onenet_disconnect:()=>TO,iot_onenet_publish:()=>mO,iot_onenet_publish_dict:()=>hO,iot_onenetconnect:()=>kO,iot_onenetdisconnect:()=>HO,iot_publish:()=>KO,iot_publish_container:()=>EO,iot_publish_item:()=>OO,iot_wifi_connect:()=>dO,iot_wificonnect:()=>wO,ollama_empty_history:()=>$O,use_ollama_llm_to_chat:()=>zO,use_ollama_llm_to_chat_return:()=>jO});var G={};t.r(G),t.d(G,{educore_mqtt_connect:()=>vR,educore_mqtt_connect_success:()=>xR,educore_mqtt_subscribe_message:()=>YR,educore_mqtt_topic_publish:()=>yR,educore_mqtt_topic_subscribe:()=>XR,educore_wifi_connect:()=>PR,network_ap_connect:()=>uR,network_connect:()=>sR,network_get_connect:()=>oR,network_get_wifi:()=>aR,network_init:()=>tR,network_is_active:()=>iR,network_open:()=>eR,network_scan:()=>nR,network_server:()=>rR,network_socket_accept:()=>MR,network_socket_bind:()=>dR,network_socket_close:()=>cR,network_socket_connect:()=>IR,network_socket_init:()=>lR,network_socket_listen:()=>TR,network_socket_readline:()=>hR,network_socket_receive:()=>mR,network_socket_receive_from:()=>OR,network_socket_send:()=>ER,network_socket_send_to:()=>RR,network_stop:()=>pR,network_wifi_connect:()=>_R,ntptime_address:()=>LR,ntptime_time:()=>AR,requests_attribute:()=>CR,requests_attribute2:()=>FR,requests_get:()=>gR,requests_get2:()=>DR,requests_method:()=>SR,requests_post:()=>fR});var U={};t.r(U),t.d(U,{pe_g1_battery_left:()=>BR,pe_g1_dc_motor:()=>GR,pe_g1_dc_motor_speed:()=>UR,pe_g1_servo_get_angle:()=>HR,pe_g1_servo_get_speed:()=>WR,pe_g1_servo_set_angle:()=>wR,pe_g1_servo_set_speed:()=>kR,pe_g1_use_i2c_init:()=>VR});var w={};t.r(w),t.d(w,{CI130X_BROADCAST:()=>hc,CI130X_GET_THE_RECOGNIZED_CMD:()=>Mc,CI130X_GET_WHETHER_IDENTIFY:()=>Tc,CI130X_IDENTIFY_AND_SAVE:()=>Ic,CI130X_SET_SYSTEM_CMD:()=>mc,HCSR04:()=>_g,PS2_Button:()=>ug,PS2_Buttons:()=>lg,PS2_Buttons_new:()=>Mg,PS2_State:()=>rg,PS2_init:()=>og,PS2_init_new:()=>Ig,PS2_stk:()=>dg,PS2_stk_new:()=>hg,PS2_vibration:()=>ag,PS2_vibration_new:()=>Tg,camera_sensor_init:()=>Kg,camera_sensor_result:()=>Jg,column_tube_foot:()=>$g,define_keyboards:()=>Zg,educore_body_sensor:()=>xg,educore_button_sensor_extern:()=>Gg,educore_camera_sensor:()=>Wg,educore_infrared_sensor:()=>Bg,educore_soilhum_sensor:()=>bg,educore_temp_sensor:()=>Hg,educore_temphum_sensor:()=>Vg,educore_ultrasonic_sensor:()=>wg,esp32_s2_weather_init:()=>eg,esp32_s2_weather_rain:()=>ng,esp32_s2_weather_wd:()=>ig,esp32_s2_weather_ws:()=>sg,extern_rfid_read:()=>Uc,extern_rfid_readcontent:()=>kc,extern_rfid_readid:()=>wc,extern_rfid_status:()=>Kc,extern_rfid_write:()=>Hc,extern_rfid_write_return:()=>Wc,get_keboards_value:()=>tC,gnss_get_data:()=>Rg,gnss_have_data:()=>Og,init_matrix_keyboard:()=>zg,interaction_whether_to_interaction:()=>lc,interaction_whether_to_interaction_SANT:()=>dc,line_tube_foot:()=>jg,mixbot_sensor_extern_get_addr:()=>Dg,mixbot_sensor_extern_set_addr:()=>fg,pm25_get_data:()=>Eg,radar_set_DETECTION_THRESHOLD:()=>uc,radar_set_DETECTION_THRESHOLD_SANT:()=>rc,robot_button_extern_get_value:()=>gg,robot_color_extern_get_value:()=>Ng,robot_infrared_extern_get_value:()=>Sg,robot_infrared_extern_grey_get_value:()=>Ag,robot_potentiometer_extern_get_value:()=>Lg,robot_sonar_extern_get_value:()=>Fg,robot_sonar_extern_led:()=>Pg,robot_touch_extern_get_value:()=>Cg,sensor_APDS9960_extern:()=>Oc,sensor_DS18X20:()=>oc,sensor_LTR308_extern:()=>Rc,sensor_LTR390UV_extern:()=>Cc,sensor_MAX30102_extern:()=>Ec,sensor_QMC5883L_extern:()=>Pc,sensor_VL530LX_extern:()=>Sc,sensor_adxl345_get_acceleration:()=>$R,sensor_aht11_extern:()=>Lc,sensor_bmp:()=>sc,sensor_compass_reset:()=>Bc,sensor_dht11:()=>tc,sensor_hp203_extern:()=>Nc,sensor_light_level:()=>ZR,sensor_lm35:()=>pc,sensor_ltr381_extern:()=>cc,sensor_mixgo_extern_button_attachInterrupt:()=>zR,sensor_mixgo_extern_button_get_presses:()=>QR,sensor_mixgo_extern_button_is_pressed:()=>JR,sensor_mixgo_extern_button_was_pressed:()=>qR,sensor_mixgo_extern_light:()=>ec,sensor_mixgo_extern_pin_near:()=>nc,sensor_mixgo_extern_sound:()=>ic,sensor_mixgoce_hot_wheel_degrees:()=>tg,sensor_mixgoce_hot_wheel_is_touched:()=>Zc,sensor_mpu9250_attachGestureInterrupt:()=>jR,sensor_mpu9250_calibrate_compass:()=>xc,sensor_mpu9250_field_strength:()=>Vc,sensor_mpu9250_gesture:()=>vc,sensor_mpu9250_get_acceleration:()=>Yc,sensor_mpu9250_get_gyro:()=>yc,sensor_mpu9250_get_magnetic:()=>Xc,sensor_mpu9250_temperature:()=>bc,sensor_ms5611_extern:()=>fc,sensor_ms5611_extern_altitude:()=>Fc,sensor_read_humiture:()=>Ug,sensor_sht:()=>_c,sensor_shtc3_extern:()=>Ac,sensor_spl06_001_extern:()=>Dc,sensor_ucs12071_extern:()=>gc,sensor_use_i2c_init:()=>ac,sensor_use_spi_init:()=>Gc,sensor_use_uart_init:()=>mg,sensor_weather_solo_init:()=>vg,sensor_weather_solo_rain:()=>yg,sensor_weather_solo_wd:()=>Yg,sensor_weather_solo_ws:()=>Xg,sensor_weigh_init:()=>qg,tvoc_get_data:()=>cg,ultrasonic_sensor_read_distance:()=>kg,weather_data:()=>Jc,weather_have_data:()=>qc,weather_set_label:()=>zc,weather_set_label_container:()=>jc,weather_set_label_item:()=>$c,weather_uart_mixio:()=>Qc,weigh_sensor_get_weight:()=>Qg});var k={};t.r(k),t.d(k,{HCSR04:()=>mC,RTC_set_date:()=>hC,RTC_set_time:()=>MC,bitbot_als_num:()=>LS,dht11:()=>YS,educore_button_sensor:()=>wS,educore_button_was_pressed:()=>kS,educore_gyroscope_sensor:()=>BS,educore_gyroscope_sensor_read:()=>GS,educore_gyroscope_sensor_shake:()=>US,educore_light_sensor:()=>VS,educore_rfid_sensor:()=>HS,educore_rfid_sensor_scan:()=>WS,educore_rfid_sensor_scan_data:()=>KS,educore_voice_sensor:()=>xS,number1:()=>OC,number2:()=>RC,number3:()=>cC,number4:()=>gC,number5:()=>CC,number6:()=>SC,number7:()=>AC,onboard_RTC_get_time:()=>YC,onboard_RTC_get_time_str:()=>BC,onboard_RTC_get_timestamp:()=>XC,onboard_RTC_get_timetuple_to_str:()=>GC,onboard_RTC_set_datetime:()=>bC,onboard_RTC_settime_string:()=>xC,onboard_RTC_timestamp_totuple:()=>yC,rfid_readcontent:()=>JC,rfid_readid:()=>KC,rfid_status:()=>zC,rfid_write:()=>qC,rfid_write_return:()=>QC,sensor_LTR308:()=>UC,sensor_aht11:()=>kC,sensor_bitbot_ALS:()=>AS,sensor_button_get_presses:()=>fS,sensor_button_is_pressed:()=>NS,sensor_button_was_pressed:()=>DS,sensor_distance_hrsc04:()=>TC,sensor_eulerangles:()=>$C,sensor_field_strength:()=>XS,sensor_get_acceleration:()=>jC,sensor_get_temperature:()=>HC,sensor_get_the_coprocessor_version:()=>JS,sensor_hp203:()=>WC,sensor_light:()=>vS,sensor_mixbot_get_gyro:()=>SS,sensor_mixbot_patrol_calibrate:()=>cS,sensor_mixbot_patrol_value:()=>gS,sensor_mixbot_temperature:()=>CS,sensor_mixgo_LTR308:()=>PC,sensor_mixgo_button_attachInterrupt:()=>_C,sensor_mixgo_button_get_presses:()=>sC,sensor_mixgo_button_is_pressed:()=>iC,sensor_mixgo_button_was_pressed:()=>nC,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>uS,sensor_mixgo_cc_mmc5603_get_angle:()=>aS,sensor_mixgo_cc_mmc5603_get_magnetic:()=>pS,sensor_mixgo_light:()=>EC,sensor_mixgo_nova_LTR308:()=>FC,sensor_mixgo_nova_pin_near:()=>fC,sensor_mixgo_pin_near:()=>DC,sensor_mixgo_pin_near_double:()=>NC,sensor_mixgo_pin_near_single:()=>LC,sensor_mixgo_pin_pressed:()=>rC,sensor_mixgo_sant_color:()=>vC,sensor_mixgo_touch_slide:()=>IC,sensor_mixgocar42_button_attachInterrupt:()=>uC,sensor_mixgocar42_button_get_presses:()=>aC,sensor_mixgocar42_button_is_pressed:()=>oC,sensor_mixgocar42_button_was_pressed:()=>pC,sensor_mixgocar_battery_left:()=>RS,sensor_mixgocar_pin_near:()=>ES,sensor_mixgocar_pin_near_line:()=>mS,sensor_mixgocar_pin_near_state_change:()=>OS,sensor_mixgoce_pin_pressed:()=>lC,sensor_mixgoce_temperature:()=>lS,sensor_mixgome_temperature:()=>rS,sensor_mpython_pin_pressed:()=>dC,sensor_mpython_qmi8658_get_gyro:()=>dS,sensor_mpython_qmi8658_temperature:()=>IS,sensor_onboard_compass_reset:()=>oS,sensor_onboard_mpu9250_calibrate_compass:()=>nS,sensor_onboard_mpu9250_field_strength:()=>_S,sensor_onboard_mpu9250_gesture:()=>ZC,sensor_onboard_mpu9250_get_acceleration:()=>tS,sensor_onboard_mpu9250_get_gyro:()=>iS,sensor_onboard_mpu9250_get_magnetic:()=>eS,sensor_onboard_mpu9250_temperature:()=>sS,sensor_pin_near:()=>PS,sensor_pin_pressed:()=>FS,sensor_read:()=>bS,sensor_rm_acc:()=>hS,sensor_rm_battery_left:()=>MS,sensor_rm_pin_near_double:()=>TS,sensor_rtc_init:()=>VC,sensor_sound:()=>wC,sensor_temperature:()=>yS});var H={};t.r(H),t.d(H,{serial_any:()=>nA,serial_begin:()=>aA,serial_print:()=>$S,serial_print_byte:()=>jS,serial_print_hex:()=>tA,serial_println:()=>ZS,serial_read_from_ai:()=>mA,serial_readline:()=>sA,serial_readstr:()=>iA,serial_readstr_until:()=>_A,serial_receive_data_event:()=>eA,serial_send_to_ai:()=>hA,serial_softserial:()=>pA,serial_softserial_new:()=>oA,system_input:()=>uA,system_print:()=>rA,system_print_container:()=>TA,system_print_end:()=>dA,system_print_inline:()=>lA,system_print_item:()=>MA,system_print_many:()=>IA});var W={};t.r(W),t.d(W,{Panic_with_status_code:()=>cA,Timer_init:()=>yA,base_delay:()=>VA,controls_delay:()=>RA,controls_delay_new:()=>OA,controls_millis:()=>CA,controls_uname:()=>AA,raw_block:()=>SA,reset:()=>gA,set_system_timer:()=>FA,system_bitbot_shutdown:()=>XA,system_machine_reset:()=>YA,system_ticks_diff:()=>DA,system_timer:()=>NA,system_timer_init:()=>fA,system_wdt_feed:()=>vA,system_wdt_init:()=>PA,time_ticks_diff:()=>bA,timer:()=>LA,timer2:()=>xA});var K={};t.r(K),t.d(K,{Air_daily_content:()=>$A,Air_now_content:()=>WA,Geo_moon_content:()=>tL,Geo_sun_content:()=>ZA,Life_suggestion_content:()=>JA,Location_search_content:()=>QA,Tide_daily_content:()=>qA,WEATHER_DAILY:()=>UA,WEATHER_HOUR:()=>wA,WEATHER_NOW:()=>GA,Weather_alarm_content:()=>KA,Weather_daily:()=>zA,Weather_daily_content:()=>jA,Weather_now:()=>kA,Weather_now_content:()=>HA});var J={};t.r(J),t.d(J,{PIN_init:()=>eN,actuator_extern_get_led_bright:()=>cL,actuator_extern_get_led_state:()=>gL,actuator_extern_led_bright:()=>RL,actuator_extern_led_brightness:()=>CL,actuator_ms32006_dcmotor:()=>aL,actuator_ms32006_init:()=>pL,actuator_ms32006_stepper:()=>uL,actuator_neopixel_init:()=>SL,actuator_neopixel_rgb:()=>NL,actuator_neopixel_rgb_all:()=>AL,actuator_neopixel_rgb_show_all_chase:()=>DL,actuator_neopixel_rgb_show_all_rainbow:()=>fL,actuator_neopixel_write:()=>LL,actuator_use_uart_init:()=>FL,esp32_music_get_tempo_extern:()=>hL,esp32_music_pitch:()=>lL,esp32_music_pitch_init:()=>rL,esp32_music_pitch_with_time:()=>dL,esp32_music_play_list:()=>mL,esp32_music_reset_extern:()=>EL,esp32_music_set_tempo_extern:()=>ML,esp32_music_stop:()=>IL,esp32_set_music_volume:()=>TL,mixbot_actuator_extern_get_addr:()=>ZL,mixbot_actuator_extern_set_addr:()=>tN,mixbot_addr_extern:()=>GL,parrot_PIN_init:()=>_N,parrot_move_speed:()=>oN,pin_led_bright:()=>iN,player_play_music:()=>yL,player_set_mode:()=>XL,player_set_play:()=>vL,player_set_volume:()=>YL,player_whether_stop:()=>PL,robot_led_extern:()=>HL,robot_led_extern_get_value:()=>WL,robot_motor_extern:()=>UL,robot_motor_extern_get_speed:()=>wL,robot_servo_extern_absolute_run:()=>QL,robot_servo_extern_get_status:()=>KL,robot_servo_extern_relative_continue:()=>$L,robot_servo_extern_relative_origin:()=>zL,robot_servo_extern_relative_run:()=>jL,robot_servo_extern_stop:()=>qL,robot_servo_extern_stop_mode:()=>JL,robot_traffic_light_extern:()=>kL,servo_PIN_init:()=>nN,servo_get_angle:()=>_L,servo_get_speed:()=>oL,servo_init:()=>eL,servo_move:()=>OL,servo_move_angle:()=>sN,servo_set_angle:()=>nL,servo_set_speed:()=>sL,servo_speed_360:()=>iL,syn6288_builtin_voice:()=>VL,syn6288_get_voice:()=>bL,syn6288_set_voice:()=>xL,syn6288_tts_play:()=>BL});var q={};t.r(q),t.d(q,{actuator_dc_motor:()=>XN,actuator_dc_motor_stop:()=>yN,actuator_get_led_bright:()=>mN,actuator_get_led_state:()=>EN,actuator_led_bright:()=>hN,actuator_led_brightness:()=>ON,actuator_mixbot_buzzer_on_off:()=>GN,actuator_mixgo_nova_mic_get:()=>WN,actuator_mixgo_nova_mic_set:()=>HN,actuator_mixgo_nova_onboard_music_pitch:()=>jN,actuator_mixgo_nova_onboard_music_stop:()=>$N,actuator_mixgo_nova_play_audio:()=>QN,actuator_mixgo_nova_play_online_audio:()=>zN,actuator_mixgo_nova_record_audio:()=>qN,actuator_mixgo_nova_voice_get:()=>JN,actuator_mixgo_nova_voice_set:()=>KN,actuator_mixgo_zero_led_color:()=>RN,actuator_onboard_neopixel_rgb:()=>NN,actuator_onboard_neopixel_rgb_all:()=>DN,actuator_onboard_neopixel_rgb_show_all_chase:()=>fN,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>FN,actuator_onboard_neopixel_write:()=>LN,actuator_stepper_keep:()=>vN,actuator_stepper_stop:()=>YN,analog_ble_keyboard_init:()=>uD,analog_ble_keyboard_input:()=>dD,analog_ble_keyboard_mouse_init:()=>RD,analog_ble_keyboard_mouse_input:()=>SD,analog_ble_keyboard_mouse_send_battery:()=>CD,analog_ble_keyboard_mouse_str:()=>AD,analog_ble_keyboard_send_battery:()=>TD,analog_ble_keyboard_str:()=>ID,analog_ble_mouse_init:()=>MD,analog_ble_mouse_input:()=>ED,analog_ble_mouse_keyboard_input:()=>LD,analog_ble_mouse_send_battery:()=>OD,analog_keyboard_input:()=>iD,analog_keyboard_str:()=>pD,analog_mouse_input:()=>_D,bitbot_motor:()=>kN,bitbot_move:()=>UN,bitbot_stop:()=>wN,ble_keyboard_connect:()=>lD,ble_keyboard_get_mac:()=>rD,ble_keyboard_mouse_connect:()=>gD,ble_keyboard_mouse_get_mac:()=>cD,ble_mouse_connect:()=>mD,ble_mouse_get_mac:()=>hD,cc_number:()=>cN,educore_ble_keyboard_input:()=>xD,educore_ble_sensor_connected:()=>yD,educore_ble_sensor_init:()=>XD,educore_buzzer:()=>ND,educore_buzzer_play_tone:()=>DD,educore_buzzer_play_tone_time:()=>fD,educore_buzzer_stop:()=>FD,educore_neopixel_clear:()=>YD,educore_neopixel_rgb:()=>vD,educore_rgb_light:()=>PD,esp32_music_get_tempo:()=>aN,esp32_music_reset:()=>IN,esp32_music_set_tempo:()=>pN,esp32_onboard_music_pitch:()=>uN,esp32_onboard_music_pitch_with_time:()=>rN,esp32_onboard_music_play_list:()=>dN,esp32_onboard_music_stop:()=>lN,general_key:()=>sD,general_key_tuple:()=>aD,get_keyboard_light:()=>bD,get_power_output:()=>tD,ledswitch:()=>MN,mixbot_motor:()=>BN,mixbot_motor_status:()=>xN,mixbot_move:()=>bN,mixbot_stop:()=>VN,mouse_key:()=>oD,number:()=>TN,record_audio:()=>BD,rm_actuator_get_led_bright:()=>CN,rm_actuator_get_led_state:()=>SN,rm_actuator_led_bright:()=>gN,rm_actuator_led_brightness:()=>AN,rm_motor:()=>PN,set_all_power_output:()=>eD,set_microphone_amplification:()=>VD,set_music_volume:()=>GD,set_power_output:()=>ZN,special_key:()=>nD});var Q={};t.r(Q),t.d(Q,{ai_sensor_20object:()=>Rf,ai_sensor_ailocal_class:()=>uf,ai_sensor_ailocal_class_result:()=>rf,ai_sensor_ailocal_train:()=>af,ai_sensor_asr_recognize:()=>Mf,ai_sensor_audio_play:()=>df,ai_sensor_audio_record:()=>lf,ai_sensor_barcode:()=>JD,ai_sensor_circle:()=>ZD,ai_sensor_classifier_faces:()=>Of,ai_sensor_color:()=>sf,ai_sensor_color_chases:()=>pf,ai_sensor_color_chases_result:()=>of,ai_sensor_config:()=>kD,ai_sensor_face:()=>Ef,ai_sensor_find_20objects:()=>cf,ai_sensor_find_barcodes:()=>qD,ai_sensor_find_circles:()=>tf,ai_sensor_find_colors:()=>_f,ai_sensor_find_licenseplates:()=>mf,ai_sensor_find_lines:()=>$D,ai_sensor_find_qrcodes:()=>KD,ai_sensor_find_rects:()=>nf,ai_sensor_find_tags:()=>zD,ai_sensor_licenseplate:()=>hf,ai_sensor_line:()=>jD,ai_sensor_qrcode:()=>WD,ai_sensor_qrcode_lite:()=>wD,ai_sensor_rect:()=>ef,ai_sensor_rgb:()=>HD,ai_sensor_tag:()=>QD,ai_sensor_use_uart_init:()=>UD,ai_sensor_yolo_recognize:()=>If,ai_sensor_yolo_recognize_result:()=>Tf});var z={};t.r(z),t.d(z,{MICROPYTHON_AI_Speech_asr:()=>Sf,MICROPYTHON_AI_Speech_unit:()=>Cf,MICROPYTHON_AI_client:()=>gf});var j={};t.r(j),t.d(j,{mpython_blynk_app_data:()=>xf,mpython_blynk_app_notify:()=>Pf,mpython_blynk_email:()=>bf,mpython_blynk_get_timers:()=>Yf,mpython_blynk_on_connected:()=>Df,mpython_blynk_on_disconnected:()=>Nf,mpython_blynk_run:()=>Ff,mpython_blynk_sensor_data_to_app:()=>yf,mpython_blynk_set_property:()=>Vf,mpython_blynk_setup:()=>Bf,mpython_blynk_stop_timers:()=>vf,mpython_blynk_sync_virtual:()=>Lf,mpython_blynk_terminal_widget_vpin:()=>Af,mpython_blynktimer:()=>Xf,mpython_blynktimer_run:()=>ff});var $={};t.r($),t.d($,{cc_g1_read_bat:()=>Gf,cc_g1_read_joystick:()=>Uf,cc_g1_read_key:()=>wf,cc_g1_turnoff:()=>kf});var Z={};t.r(Z),t.d(Z,{ce_go_dc_motor:()=>jf,ce_go_get_led_bright:()=>Kf,ce_go_get_led_state:()=>Jf,ce_go_hall_attachInterrupt:()=>$f,ce_go_hall_data:()=>tF,ce_go_hall_initialize:()=>Zf,ce_go_led_bright:()=>Wf,ce_go_led_brightness:()=>qf,ce_go_light_number:()=>Hf,ce_go_pin_light:()=>_F,ce_go_pin_near:()=>iF,ce_go_pin_near_line:()=>eF,ce_go_pin_near_state_change:()=>nF,ce_go_stepper_keep:()=>Qf,ce_go_stepper_stop:()=>zf,educore_car:()=>oF,educore_car_pin_near:()=>rF,educore_car_pin_near_line:()=>uF,educore_car_stepper_keep:()=>pF,educore_car_stepper_stop:()=>aF,sensor_mixgome_eulerangles:()=>sF});var tt={};t.r(tt),t.d(tt,{communicate_bluetooth_central_init:()=>WF,communicate_bluetooth_connect:()=>qF,communicate_bluetooth_disconnect:()=>QF,communicate_bluetooth_handle:()=>eP,communicate_bluetooth_is_connected:()=>jF,communicate_bluetooth_mac:()=>zF,communicate_bluetooth_peripheral_init:()=>KF,communicate_bluetooth_recv:()=>tP,communicate_bluetooth_recv_only:()=>ZF,communicate_bluetooth_scan:()=>JF,communicate_bluetooth_send:()=>$F,communicate_espnow_init:()=>iP,communicate_espnow_init_new:()=>nP,communicate_i2c_available:()=>EF,communicate_i2c_init:()=>IF,communicate_i2c_master_read:()=>mF,communicate_i2c_onboard:()=>lF,communicate_i2c_read:()=>TF,communicate_i2c_scan:()=>hF,communicate_i2c_write:()=>MF,communicate_ir_recv_init:()=>yF,communicate_ir_send_init:()=>GF,communicate_ow_init:()=>fF,communicate_ow_read:()=>vF,communicate_ow_reset:()=>PF,communicate_ow_scan:()=>FF,communicate_ow_select:()=>XF,communicate_ow_write:()=>YF,communicate_spi_buffer:()=>gF,communicate_spi_init:()=>RF,communicate_spi_onboard:()=>dF,communicate_spi_read:()=>CF,communicate_spi_read_output:()=>SF,communicate_spi_readinto:()=>AF,communicate_spi_readinto_output:()=>LF,communicate_spi_set:()=>cF,communicate_spi_write:()=>NF,communicate_spi_write_readinto:()=>DF,espnow_radio_channel:()=>uP,espnow_radio_channel_new:()=>lP,espnow_radio_on_off:()=>dP,espnow_radio_rec:()=>TP,espnow_radio_recv:()=>hP,espnow_radio_recv_certain_msg:()=>mP,espnow_radio_recv_certain_msg_new:()=>OP,espnow_radio_recv_msg:()=>MP,espnow_radio_recv_new:()=>EP,espnow_radio_send:()=>IP,espnow_radio_txpower:()=>rP,i2c_slave_onreceive:()=>OF,internal_variable:()=>xF,ir_recv_timeout:()=>BF,ir_transmit_busy:()=>HF,ir_transmit_conventional_data:()=>UF,ir_transmit_raw_code:()=>kF,ir_transmit_study_code:()=>wF,ir_whether_recv:()=>VF,lora_init:()=>RP,lora_packet:()=>cP,lora_recv:()=>CP,lora_send:()=>gP,network_espnow_info:()=>_P,network_espnow_mac:()=>sP,network_espnow_recv:()=>oP,network_espnow_recv_handle:()=>aP,network_espnow_send:()=>pP,recv_fun:()=>bF,urequests_attribute:()=>AP,urequests_get:()=>SP,urequests_method:()=>LP});var et={};t.r(et),t.d(et,{display_animate:()=>jP,display_circle:()=>$P,display_color_seclet:()=>uv,display_draw_4strings:()=>HP,display_fill:()=>zP,display_lcd_use_i2c_init:()=>Mv,display_line:()=>JP,display_line_arbitrarily:()=>WP,display_matrix_extern_bright_point:()=>bP,display_matrix_extern_bright_screen:()=>BP,display_matrix_extern_clear:()=>XP,display_matrix_extern_get_pixel:()=>xP,display_matrix_extern_get_screen_pixel:()=>VP,display_matrix_extern_image_builtins:()=>GP,display_matrix_extern_scroll_string:()=>vP,display_matrix_extern_scroll_string_delay:()=>YP,display_matrix_extern_shift:()=>yP,display_matrix_extern_show_frame_string:()=>FP,display_matrix_extern_show_frame_string_delay:()=>PP,display_matrix_extern_show_image:()=>DP,display_matrix_extern_show_image_or_string_delay:()=>fP,display_matrix_use_i2c_init:()=>NP,display_oled_drawPixel:()=>ev,display_oled_showBitmap:()=>tv,display_oled_use_i2c_init:()=>Rv,display_onoff:()=>qP,display_rect:()=>KP,display_tm1650_power:()=>nv,display_tm1650_set_brightness:()=>ov,display_tm1650_show_dot:()=>_v,display_tm1650_show_num:()=>sv,display_tm_use_i2c_init:()=>iv,display_triangle:()=>ZP,display_use_i2c_init:()=>kP,extern_oled_bright_point:()=>vv,extern_oled_clear:()=>fv,extern_oled_get_pixel:()=>Pv,extern_oled_hvline:()=>Xv,extern_oled_line:()=>yv,extern_oled_scroll_string:()=>Nv,extern_oled_scroll_string_delay:()=>Dv,extern_oled_shape_rect:()=>Yv,extern_oled_shift:()=>Fv,extern_oled_show_frame_string:()=>Av,extern_oled_show_frame_string_delay:()=>Lv,extern_oled_show_image:()=>cv,extern_oled_show_image_or_string_delay:()=>Sv,extern_oled_show_image_xy:()=>gv,extern_oled_show_string:()=>Cv,image_shift:()=>QP,lcd_backlight:()=>Ev,lcd_clear:()=>Ov,lcd_print_string:()=>mv,lcd_show_image_or_string_delay:()=>hv,matrix_extern_image_arithmetic:()=>UP,matrix_extern_image_invert:()=>wP,tft_fill:()=>Iv,tft_line_arbitrarily:()=>Tv,tft_scroll_string_delay:()=>dv,tft_show_frame_string_delay:()=>lv,tft_show_image_or_string_delay:()=>rv,tft_show_image_xy:()=>av,tft_use_spi_init:()=>pv});var it={};t.r(it),t.d(it,{bitbot_display_bitmap_create:()=>DY,bitbot_display_image_create:()=>NY,display_available:()=>Qv,display_bitmap_create:()=>Jv,display_bright_point:()=>tY,display_bright_screen:()=>iY,display_clear:()=>qv,display_get_pixel:()=>Zv,display_get_screen_pixel:()=>eY,display_image_builtins:()=>Hv,display_image_builtins_all:()=>Wv,display_image_create:()=>Kv,display_scroll_string:()=>Gv,display_scroll_string_delay:()=>Uv,display_scroll_way:()=>wv,display_shift:()=>$v,display_show_frame_string:()=>Vv,display_show_frame_string_delay:()=>Bv,display_show_image:()=>xv,display_show_image_or_string_delay:()=>bv,draw_pointer:()=>WY,image_arithmetic:()=>zv,image_invert:()=>jv,mixbot_display_bitmap_create:()=>gY,mixbot_display_bright_screen:()=>AY,mixbot_display_get_ambientbright:()=>SY,mixbot_display_get_screen_pixel:()=>CY,mixbot_display_image_create:()=>cY,mixbot_display_rotate:()=>LY,mixgo_display_bitmap_create:()=>uY,mixgo_display_image_create_new:()=>aY,mixgome_display_bitmap_create:()=>sY,mixgome_display_font:()=>pY,mixgome_display_image_create:()=>nY,mixgomini_display_bitmap_create:()=>oY,mixgomini_display_image_create:()=>_Y,mpython_display_hvline:()=>OY,mpython_display_line:()=>RY,mpython_display_shape_rect:()=>EY,mpython_pbm_image:()=>rY,nova_draw_pointer:()=>KY,onboard_oled_bright_point:()=>mY,onboard_oled_scroll_string_delay:()=>hY,onboard_oled_show_frame_string_delay:()=>MY,onboard_oled_show_image:()=>lY,onboard_oled_show_image_or_string_delay:()=>TY,onboard_oled_show_image_xy:()=>dY,onboard_oled_show_string:()=>IY,onboard_tft_bright_point:()=>bY,onboard_tft_bright_screen:()=>$Y,onboard_tft_clear:()=>ZY,onboard_tft_clock_clear:()=>kY,onboard_tft_clock_draw:()=>wY,onboard_tft_clock_get_rtctime:()=>GY,onboard_tft_clock_init:()=>BY,onboard_tft_clock_set_time:()=>UY,onboard_tft_display_hvline:()=>XY,onboard_tft_display_line:()=>yY,onboard_tft_display_shape_circle:()=>HY,onboard_tft_display_shape_rect:()=>YY,onboard_tft_fill:()=>VY,onboard_tft_get_pixel:()=>xY,onboard_tft_get_screen_pixel:()=>jY,onboard_tft_scroll_string_delay:()=>kv,onboard_tft_shift:()=>zY,onboard_tft_show_frame_string:()=>QY,onboard_tft_show_frame_string_delay:()=>vY,onboard_tft_show_image:()=>qY,onboard_tft_show_image_or_string_delay:()=>PY,onboard_tft_show_image_xy:()=>fY,onboard_tft_show_image_xy_direct:()=>FY,onboard_tft_show_texts:()=>JY});var nt={};t.r(nt),t.d(nt,{factory_block:()=>pX,factory_block_return:()=>aX,factory_block_return_with_textarea:()=>rX,factory_block_with_textarea:()=>uX,factory_callMethod_noreturn:()=>_X,factory_callMethod_return:()=>oX,factory_declare:()=>sX,factory_from_import:()=>tX,factory_function_noreturn:()=>iX,factory_function_return:()=>nX,factory_import:()=>eX,folding_block:()=>lX});var st={};t.r(st),t.d(st,{inout_analog_atten:()=>LX,inout_analog_read:()=>OX,inout_analog_read_init:()=>AX,inout_analog_write:()=>hX,inout_analog_write_init:()=>SX,inout_analog_write_set:()=>mX,inout_digital_init:()=>gX,inout_digital_read:()=>TX,inout_digital_write:()=>IX,inout_highlow:()=>dX,inout_pin_attachInterrupt:()=>cX,inout_pin_pressed:()=>RX,inout_pin_pressed_init:()=>NX,inout_pwm_analog_write:()=>MX,inout_pwm_analog_write_init:()=>CX,inout_pwm_analog_write_set_freq:()=>EX});var _t={};t.r(_t),t.d(_t,{IOT_CONNECT_OLLAMA:()=>iy,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>JX,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>WX,IOT_EMQX_PING:()=>qX,IOT_FORMATTING:()=>kX,IOT_FORMAT_STRING:()=>HX,IOT_MIXIO_NTP:()=>QX,IOT_MIXIO_PUBLISH:()=>yX,IOT_MIXIO_PUBLISHEX:()=>xX,IOT_MIXIO_SUBSCRIBE:()=>bX,iot_client_onboard:()=>zX,iot_connect_ollama:()=>ey,iot_connect_openai:()=>ny,iot_http_client:()=>jX,iot_http_data:()=>$X,iot_mixio_check:()=>GX,iot_mixio_connect:()=>XX,iot_mixio_connect_only:()=>BX,iot_mixio_disconnect:()=>VX,iot_mixio_format_msg:()=>wX,iot_mixio_format_topic:()=>UX,iot_mixly_key:()=>KX,iot_mqtt_client:()=>ZX,iot_mqtt_data:()=>ty,iot_onenet_check:()=>vX,iot_onenet_connect:()=>fX,iot_onenet_disconnect:()=>FX,iot_onenet_publish:()=>YX,iot_onenet_publish_dict:()=>PX,iot_wifi_connect:()=>DX,ollama_empty_history:()=>oy,use_ollama_llm_to_chat:()=>sy,use_ollama_llm_to_chat_return:()=>_y});var ot={};t.r(ot),t.d(ot,{educore_mqtt_connect:()=>Vy,educore_mqtt_connect_success:()=>wy,educore_mqtt_subscribe_message:()=>By,educore_mqtt_topic_publish:()=>Uy,educore_mqtt_topic_subscribe:()=>Gy,educore_wifi_connect:()=>by,network_ap_connect:()=>My,network_connect:()=>ay,network_get_connect:()=>ry,network_get_wifi:()=>Ty,network_init:()=>py,network_is_active:()=>Iy,network_open:()=>dy,network_scan:()=>hy,network_server:()=>my,network_socket_accept:()=>gy,network_socket_bind:()=>Oy,network_socket_close:()=>Dy,network_socket_connect:()=>Ry,network_socket_init:()=>Ey,network_socket_listen:()=>cy,network_socket_readline:()=>Cy,network_socket_receive:()=>Sy,network_socket_receive_from:()=>Ly,network_socket_send:()=>Ay,network_socket_send_to:()=>Ny,network_stop:()=>ly,network_wifi_connect:()=>uy,ntptime_address:()=>Yy,ntptime_time:()=>vy,requests_attribute:()=>Fy,requests_attribute2:()=>yy,requests_get:()=>fy,requests_get2:()=>Xy,requests_method:()=>Py,requests_post:()=>xy});var pt={};t.r(pt),t.d(pt,{pe_g1_battery_left:()=>Hy,pe_g1_dc_motor:()=>Wy,pe_g1_dc_motor_speed:()=>Ky,pe_g1_servo_get_angle:()=>Qy,pe_g1_servo_get_speed:()=>zy,pe_g1_servo_set_angle:()=>Jy,pe_g1_servo_set_speed:()=>qy,pe_g1_use_i2c_init:()=>ky});var at={};t.r(at),t.d(at,{CI130X_BROADCAST:()=>Ox,CI130X_GET_THE_RECOGNIZED_CMD:()=>Ex,CI130X_GET_WHETHER_IDENTIFY:()=>mx,CI130X_IDENTIFY_AND_SAVE:()=>hx,CI130X_SET_SYSTEM_CMD:()=>Rx,HCSR04:()=>$x,PS2_Button:()=>eb,PS2_Buttons:()=>ib,PS2_Buttons_new:()=>rb,PS2_State:()=>nb,PS2_init:()=>Zx,PS2_init_new:()=>ab,PS2_stk:()=>sb,PS2_stk_new:()=>lb,PS2_vibration:()=>tb,PS2_vibration_new:()=>ub,RTC_get_time:()=>ob,RTC_set_date:()=>sx,RTC_set_datetime:()=>_b,RTC_set_time:()=>nx,camera_sensor_init:()=>wb,camera_sensor_result:()=>kb,column_tube_foot:()=>Jb,define_keyboards:()=>qb,educore_body_sensor:()=>vb,educore_button_sensor_extern:()=>xb,educore_camera_sensor:()=>Ub,educore_infrared_sensor:()=>yb,educore_soilhum_sensor:()=>Yb,educore_temp_sensor:()=>Gb,educore_temphum_sensor:()=>Xb,educore_ultrasonic_sensor:()=>Vb,esp32_s2_weather_init:()=>qx,esp32_s2_weather_rain:()=>zx,esp32_s2_weather_wd:()=>Qx,esp32_s2_weather_ws:()=>jx,extern_rfid_read:()=>xx,extern_rfid_readcontent:()=>Vx,extern_rfid_readid:()=>bx,extern_rfid_status:()=>Ux,extern_rfid_write:()=>Bx,extern_rfid_write_return:()=>Gx,get_keboards_value:()=>zb,gnss_get_data:()=>Tb,gnss_have_data:()=>Mb,init_matrix_keyboard:()=>Qb,interaction_whether_to_interaction:()=>Tx,interaction_whether_to_interaction_SANT:()=>Mx,line_tube_foot:()=>Kb,mixbot_sensor_extern_get_addr:()=>Ab,mixbot_sensor_extern_set_addr:()=>Lb,pm25_get_data:()=>Ib,radar_set_DETECTION_THRESHOLD:()=>dx,radar_set_DETECTION_THRESHOLD_SANT:()=>Ix,robot_button_extern_get_value:()=>mb,robot_color_extern_get_value:()=>gb,robot_infrared_extern_get_value:()=>Ob,robot_infrared_extern_grey_get_value:()=>Rb,robot_potentiometer_extern_get_value:()=>cb,robot_sonar_extern_get_value:()=>Cb,robot_sonar_extern_led:()=>Sb,robot_touch_extern_get_value:()=>Eb,sensor_APDS9960_extern:()=>gx,sensor_DS18X20:()=>Pb,sensor_LTR308_extern:()=>Cx,sensor_LTR390UV_extern:()=>Fx,sensor_MAX30102_extern:()=>cx,sensor_QMC5883L_extern:()=>Px,sensor_VL530LX_extern:()=>Xx,sensor_aht11_extern:()=>Yx,sensor_bmp:()=>ux,sensor_dht11:()=>pb,sensor_distance_hrsc04:()=>ix,sensor_hp203_extern:()=>Sx,sensor_ltr381_extern:()=>Dx,sensor_mixgo_extern_button_attachInterrupt:()=>tx,sensor_mixgo_extern_button_get_presses:()=>Zy,sensor_mixgo_extern_button_is_pressed:()=>jy,sensor_mixgo_extern_button_was_pressed:()=>$y,sensor_mixgo_extern_light:()=>_x,sensor_mixgo_extern_pin_near:()=>px,sensor_mixgo_extern_sound:()=>ox,sensor_mixgoce_hot_wheel_degrees:()=>Jx,sensor_mixgoce_hot_wheel_is_touched:()=>Kx,sensor_mpu9250_attachGestureInterrupt:()=>ex,sensor_ms5611_extern:()=>Lx,sensor_ms5611_extern_altitude:()=>Nx,sensor_read_humiture:()=>bb,sensor_rtc_init:()=>ax,sensor_sht:()=>rx,sensor_shtc3_extern:()=>vx,sensor_spl06_001_extern:()=>Ax,sensor_ucs12071_extern:()=>fx,sensor_use_i2c_init:()=>lx,sensor_use_spi_init:()=>yx,sensor_use_uart_init:()=>db,sensor_weather_solo_init:()=>Nb,sensor_weather_solo_rain:()=>Fb,sensor_weather_solo_wd:()=>Db,sensor_weather_solo_ws:()=>fb,sensor_weigh_init:()=>Hb,tvoc_get_data:()=>hb,ultrasonic_sensor_read_distance:()=>Bb,weather_data:()=>wx,weather_have_data:()=>kx,weather_set_label:()=>Wx,weather_uart_mixio:()=>Hx,weigh_sensor_get_weight:()=>Wb});var ut={};t.r(ut),t.d(ut,{HCSR04:()=>_V,bitbot_als_num:()=>NB,dht11:()=>yB,educore_button_sensor:()=>wB,educore_button_was_pressed:()=>kB,educore_gyroscope_sensor:()=>BB,educore_gyroscope_sensor_read:()=>GB,educore_gyroscope_sensor_shake:()=>UB,educore_light_sensor:()=>VB,educore_rfid_sensor:()=>HB,educore_rfid_sensor_scan:()=>WB,educore_rfid_sensor_scan_data:()=>KB,educore_voice_sensor:()=>xB,number1:()=>oV,number2:()=>pV,number3:()=>aV,number4:()=>uV,number5:()=>rV,number6:()=>lV,number7:()=>dV,onboard_RTC_get_time:()=>nB,onboard_RTC_get_time_str:()=>oB,onboard_RTC_get_timestamp:()=>sB,onboard_RTC_get_timetuple_to_str:()=>pB,onboard_RTC_set_datetime:()=>eB,onboard_RTC_settime_string:()=>iB,onboard_RTC_timestamp_totuple:()=>_B,rfid_readcontent:()=>DV,rfid_readid:()=>NV,rfid_status:()=>PV,rfid_write:()=>fV,rfid_write_return:()=>FV,sensor_LTR308:()=>gV,sensor_adxl345_get_acceleration:()=>GV,sensor_aht11:()=>AV,sensor_bitbot_ALS:()=>LB,sensor_button_get_presses:()=>FB,sensor_button_is_pressed:()=>DB,sensor_button_was_pressed:()=>fB,sensor_compass_reset:()=>KV,sensor_ds18x20:()=>RV,sensor_eulerangles:()=>YV,sensor_get_acceleration:()=>vV,sensor_get_temperature:()=>LV,sensor_get_the_coprocessor_version:()=>JB,sensor_hp203:()=>SV,sensor_light:()=>XB,sensor_lm35:()=>cV,sensor_mixbot_get_gyro:()=>AB,sensor_mixbot_patrol_calibrate:()=>gB,sensor_mixbot_patrol_value:()=>CB,sensor_mixbot_temperature:()=>SB,sensor_mixgo_LTR308:()=>mV,sensor_mixgo_button_attachInterrupt:()=>tV,sensor_mixgo_button_get_presses:()=>Zb,sensor_mixgo_button_is_pressed:()=>jb,sensor_mixgo_button_was_pressed:()=>$b,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>rB,sensor_mixgo_cc_mmc5603_get_angle:()=>uB,sensor_mixgo_cc_mmc5603_get_magnetic:()=>aB,sensor_mixgo_light:()=>YB,sensor_mixgo_nova_LTR308:()=>OV,sensor_mixgo_nova_pin_near:()=>hV,sensor_mixgo_pin_near:()=>MV,sensor_mixgo_pin_near_double:()=>TV,sensor_mixgo_pin_near_single:()=>IV,sensor_mixgo_pin_pressed:()=>VV,sensor_mixgo_sant_color:()=>EV,sensor_mixgo_touch_slide:()=>bV,sensor_mixgocar42_button_attachInterrupt:()=>sV,sensor_mixgocar42_button_get_presses:()=>nV,sensor_mixgocar42_button_is_pressed:()=>eV,sensor_mixgocar42_button_was_pressed:()=>iV,sensor_mixgocar_battery_left:()=>cB,sensor_mixgocar_pin_near:()=>OB,sensor_mixgocar_pin_near_line:()=>EB,sensor_mixgocar_pin_near_state_change:()=>RB,sensor_mixgoce_pin_pressed:()=>xV,sensor_mixgoce_temperature:()=>dB,sensor_mixgome_temperature:()=>lB,sensor_mpu9250_calibrate_compass:()=>kV,sensor_mpu9250_field_strength:()=>WV,sensor_mpu9250_gesture:()=>XV,sensor_mpu9250_get_acceleration:()=>yV,sensor_mpu9250_get_gyro:()=>wV,sensor_mpu9250_get_magnetic:()=>UV,sensor_mpu9250_temperature:()=>HV,sensor_mpython_pin_pressed:()=>BV,sensor_mpython_qmi8658_get_gyro:()=>IB,sensor_mpython_qmi8658_temperature:()=>TB,sensor_onboard_compass_reset:()=>tB,sensor_onboard_mpu9250_calibrate_compass:()=>jV,sensor_onboard_mpu9250_field_strength:()=>ZV,sensor_onboard_mpu9250_gesture:()=>JV,sensor_onboard_mpu9250_get_acceleration:()=>qV,sensor_onboard_mpu9250_get_gyro:()=>zV,sensor_onboard_mpu9250_get_magnetic:()=>QV,sensor_onboard_mpu9250_temperature:()=>$V,sensor_pin_near:()=>vB,sensor_pin_pressed:()=>PB,sensor_read:()=>bB,sensor_rm_acc:()=>mB,sensor_rm_battery_left:()=>hB,sensor_rm_pin_near_double:()=>MB,sensor_sound:()=>CV});var rt={};t.r(rt),t.d(rt,{serial_any:()=>$B,serial_print:()=>qB,serial_print_byte:()=>QB,serial_print_hex:()=>jB,serial_println:()=>zB,serial_read_from_ai:()=>uG,serial_readline:()=>tG,serial_readstr:()=>ZB,serial_send_to_ai:()=>aG,serial_softserial:()=>eG,serial_softserial_new:()=>iG,system_input:()=>nG,system_print:()=>sG,system_print_end:()=>oG,system_print_inline:()=>_G,system_print_many:()=>pG});var lt={};t.r(lt),t.d(lt,{Panic_with_status_code:()=>cG,Timer_init:()=>bG,base_delay:()=>GG,controls_delay:()=>LG,controls_delay_new:()=>NG,controls_end_program:()=>CG,controls_millis:()=>gG,controls_uname:()=>AG,reset:()=>SG,set_system_timer:()=>fG,system_bitbot_shutdown:()=>xG,system_device_name:()=>OG,system_device_serial_number:()=>RG,system_event_bus_source:()=>mG,system_event_bus_value:()=>EG,system_machine_reset:()=>yG,system_on_event:()=>TG,system_raise_event:()=>IG,system_reset:()=>lG,system_run_in_background:()=>rG,system_ticks_diff:()=>FG,system_timer:()=>vG,system_timer_init:()=>PG,system_timestamp:()=>MG,system_value:()=>hG,system_wait:()=>dG,system_wdt_feed:()=>XG,system_wdt_init:()=>YG,time_ticks_diff:()=>BG,timer:()=>DG,timer2:()=>VG});var dt={};t.r(dt),t.d(dt,{Air_daily_content:()=>ZG,Air_now_content:()=>KG,Geo_moon_content:()=>eU,Geo_sun_content:()=>tU,Life_suggestion_content:()=>qG,Location_search_content:()=>zG,Tide_daily_content:()=>QG,WEATHER_DAILY:()=>wG,WEATHER_HOUR:()=>kG,WEATHER_NOW:()=>UG,Weather_alarm_content:()=>JG,Weather_daily:()=>jG,Weather_daily_content:()=>$G,Weather_now:()=>HG,Weather_now_content:()=>WG});var It={};t.r(It),t.d(It,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>sU});var Tt={};t.r(Tt),t.d(Tt,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>oU});var Mt={};t.r(Mt),t.d(Mt,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>aU});var ht={};t.r(ht),t.d(ht,{controls_pin_attachInterrupt:()=>DU,inout_analog_atten:()=>EU,inout_analog_write:()=>hU,inout_analog_write_init:()=>gU,inout_analog_write_set:()=>mU,inout_analog_write_set_freq:()=>SU,inout_digital_init:()=>cU,inout_digital_read:()=>MU,inout_digital_write:()=>TU,inout_highlow:()=>IU,inout_pinMode:()=>AU,inout_pin_attachInterrupt:()=>RU,inout_pin_pressed:()=>OU,inout_pin_pressed_init:()=>CU,pin_pressed:()=>NU,pin_pressed_init:()=>LU});var mt={};t.r(mt),t.d(mt,{analog_input:()=>bU,analog_output:()=>BU,espnow_channel:()=>XU,haskylens_model:()=>yU,i2c_A_pin:()=>GU,i2c_B_pin:()=>UU,pins_analog:()=>KU,pins_analog_pin:()=>JU,pins_axis:()=>rw,pins_brightness:()=>lw,pins_builtinimg:()=>nw,pins_builtinimg_extern:()=>sw,pins_button:()=>zU,pins_buttonB:()=>jU,pins_dac:()=>qU,pins_dac_pin:()=>QU,pins_digital:()=>FU,pins_digital_dot:()=>Ow,pins_digital_pin:()=>PU,pins_exlcdh:()=>aw,pins_exlcdv:()=>uw,pins_imglist:()=>_w,pins_input_pin:()=>vU,pins_one_more:()=>Ew,pins_output_pin:()=>YU,pins_playlist:()=>ow,pins_playlist_extern:()=>pw,pins_pwm:()=>$U,pins_pwm_pin:()=>ZU,pins_radio_datarate:()=>mw,pins_radio_power:()=>hw,pins_serial:()=>iw,pins_tone_notes:()=>Mw,pins_touch:()=>ew,pins_touch_pin:()=>tw,pins_tts_bgmusic:()=>Tw,pins_tts_builtin_music:()=>Iw,pins_tts_voice:()=>dw,pwm_input:()=>xU,pwm_output:()=>VU,spi_A_pin:()=>wU,spi_B_pin:()=>kU,spi_C_pin:()=>HU,spi_D_pin:()=>WU,timer_id_pin:()=>Rw});var Et={};t.r(Et),t.d(Et,{inout_analog_atten:()=>Fw,inout_analog_write:()=>Sw,inout_analog_write_init:()=>fw,inout_analog_write_set:()=>Aw,inout_digital_init:()=>Dw,inout_digital_read:()=>Cw,inout_digital_write:()=>gw,inout_highlow:()=>cw,inout_pin_attachInterrupt:()=>Nw,inout_pin_pressed:()=>Lw,inout_pin_pressed_init:()=>Pw});var Ot={};t.r(Ot),t.d(Ot,{analog_input:()=>Uw,analog_output:()=>kw,espnow_channel:()=>Bw,haskylens_model:()=>Gw,i2c_A_pin:()=>Hw,i2c_B_pin:()=>Ww,pins_analog:()=>jw,pins_analog_pin:()=>zw,pins_axis:()=>lk,pins_brightness:()=>Tk,pins_builtinimg:()=>ok,pins_builtinimg_extern:()=>pk,pins_button:()=>Yw,pins_buttonB:()=>Xw,pins_dac:()=>ek,pins_dac_pin:()=>tk,pins_digital:()=>vw,pins_digital_dot:()=>gk,pins_digital_pin:()=>yw,pins_exlcdh:()=>dk,pins_exlcdv:()=>Ik,pins_imglist:()=>ak,pins_input_pin:()=>xw,pins_interrupt:()=>sk,pins_one_more:()=>ck,pins_output_pin:()=>bw,pins_playlist:()=>uk,pins_playlist_extern:()=>rk,pins_pwm:()=>Zw,pins_pwm_input:()=>Vw,pins_pwm_pin:()=>$w,pins_radio_datarate:()=>Rk,pins_radio_power:()=>Ok,pins_serial:()=>_k,pins_tone_notes:()=>Ek,pins_touch:()=>nk,pins_touch_pin:()=>ik,pins_tts_bgmusic:()=>mk,pins_tts_builtin_music:()=>hk,pins_tts_voice:()=>Mk,pwm_output:()=>ww,spi_A_pin:()=>Kw,spi_B_pin:()=>Jw,spi_C_pin:()=>qw,spi_D_pin:()=>Qw,timer_id_pin:()=>Ck});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(bt),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(bt),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(bt),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(bt),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(bt);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(bt),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(bt),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(bt),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(bt),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(bt),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(bt),this.appendDummyInput().appendField("try"),this.appendStatementInput("STACK"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.contextMenu=!1}},te={init:function(){this.setColour(bt),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(bt),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:bt,tooltip:Rt.Msg.CONTROLS_REPEAT_TOOLTIP,helpUrl:Rt.Msg.CONTROLS_REPEAT_HELPURL}),this.appendStatementInput("DO")}},ne={init:function(){this.setColour(bt),this.appendValueInput("BOOL").appendField("lambda"),this.appendStatementInput("DO").appendField(Rt.Msg.MIXLY_STAT),this.setOutput(!0)}},se={init:function(){this.setColour(bt),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(bt),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(bt),this.setTooltip("do-while loop"),this.setHelpUrl("")}},pe={init:function(){this.setColour(bt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_OP_GARBAGE_COLLECT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},ae={init:function(){this.setColour(bt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET_MEM_ALLOC),this.setOutput(!0)}},ue={init:function(){this.setColour(bt),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET_MEM_FREE),this.setOutput(!0)}},re={init:function(){this.setColour(bt),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(bt),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(bt),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)}},xn={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)}},bn={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)}},e_={init:function(){this.setColour(Qs),this.appendDummyInput().appendField(Rt.Msg.HTML_STYLE),this.appendStatementInput("STYLE"),this.setOutput(!0)}},i_={init:function(){this.setColour(Qs),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)}},n_={init:function(){this.setColour(Qs),this.appendDummyInput().appendField(new Rt.FieldTextInput("property"),"KEY").appendField(":").appendField(new Rt.FieldTextInput("value"),"VALUE"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},s_={init:function(){this.setColour(Qs),this.appendDummyInput().appendField(new Rt.FieldTextInput("property"),"KEY").appendField(":").appendField(new Rt.FieldColour("#ff0000"),"RGB_LED_COLOR"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},__={init:function(){this.setColour(Qs),this.appendDummyInput().appendField(Rt.Msg.HTML_TEXT).appendField(new Rt.FieldTextInput("text"),"TEXT"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},o_=160,p_={init:function(){this.setColour(o_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Tabular Abstraction:"),this.appendDummyInput().appendField(new Rt.FieldTable(""),"TEXT")}},a_={init:function(){this.setColour(o_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Code Block:"),this.appendDummyInput().appendField(new Rt.FieldMultilineInput(""),"TEXT")}},u_={init:function(){this.setColour(o_),this.appendDummyInput().appendField("Code Expression:"),this.appendDummyInput().appendField(new Rt.FieldMultilineInput(""),"TEXT"),this.setOutput(!0)}},r_={init:function(){this.setColour(o_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("VALUE").appendField(""),this.setInputsInline(!1)}},l_={init:function(){this.setColour(o_),this.appendDummyInput().appendTitle("Comment:").appendTitle(new Rt.FieldTextInput(""),"TEXT"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip("This comment will be ignored by Python")}},d_={init:function(){this.setColour(o_),this.appendValueInput("VALUE").appendField(Rt.Msg.TYPE_CHECK),this.setInputsInline(!1),this.setOutput(!0,"Type")}},I_={init:function(){this.setColour(o_),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 ua=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]},ra=function(t,e){var i=e.ORDER_UNARY_PREFIX;return["not "+(e.valueToCode(this,"BOOL",i)||"False"),i]},la=function(t,e){return["TRUE"==this.getFieldValue("BOOL")?"True":"False",e.ORDER_ATOMIC]},da=function(t,e){return["None",e.ORDER_ATOMIC]},Ia=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]},Ta=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){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){return["bool("+(e.valueToCode(this,"VAR",e.ORDER_ATOMIC)||"0")+")",e.ORDER_ATOMIC]},ma=function(t,e){return e.definitions_.import_os="import os","os.startfile("+e.valueToCode(this,"fn",e.ORDER_ATOMIC)+")\n"},Ea=function(t,e){return e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+" = open("+e.valueToCode(this,"FILENAME",e.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')\n"},Oa=function(t,e){return["open("+e.valueToCode(this,"FILENAME",e.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')",e.ORDER_ATOMIC]},Ra=function(t,e){return["open("+e.valueToCode(this,"FILENAME",e.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"', encoding=\""+this.getFieldValue("CODE")+'")',e.ORDER_ATOMIC]},ca=function(t,e){var i=e.valueToCode(this,"data",e.ORDER_ATOMIC);return e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".write("+i+")\n"},ga=function(t,e){var i=this.getFieldValue("MODE");return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+"."+i+"()",e.ORDER_ATOMIC]},Ca=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]},Sa=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".readline("+e.valueToCode(this,"SIZE",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},Aa=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".writable()",e.ORDER_ATOMIC]},La=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".name()",e.ORDER_ATOMIC]},Na=function(t,e){return e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".close()\n"},Da=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"},Fa=function(t,e){return e.definitions_.import_os="import os",["os.path.getsize("+e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},Pa=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".tell()",e.ORDER_ATOMIC]},va=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"},Ya=function(t,e){return e.definitions_.import_os="import os","os.chdir("+e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+")\n"},Xa=function(t,e){e.definitions_.import_os="import os";return["os.getcwd()",e.ORDER_ATOMIC]},ya=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"},ba=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]},Va=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"},Ba=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"},Ga=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"},gu=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},Cu=function(t,e){var i=e.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"<"+n+">\n"+i+"\n"},Su=function(t,e){var i=e.statementToCode(this,"DO"),n=e.valueToCode(this,"style"),s=this.getFieldValue("LEVEL");return"<"+s+" "+n+" >\n"+i+"\n"},Au=function(t,e){return['style="'+e.statementToCode(this,"STYLE")+'"',e.ORDER_ATOMIC]},Lu=function(t,e){return'"},Nu=function(){return this.getFieldValue("KEY")+":"+this.getFieldValue("VALUE")+";"},Du=function(){return this.getFieldValue("TEXT")+"\n"},fu=function(t){return t.getFieldValue("TEXT")+"\n"},Fu=function(t,e){return[t.getFieldValue("TEXT"),e.ORDER_ATOMIC]},Pu=function(t,e){return(e.valueToCode(t,"VALUE",e.ORDER_ATOMIC)||"")+"\n"},vu=function(){return""},Yu=function(t,e){return["type("+(e.valueToCode(t,"VALUE",e.ORDER_MEMBER)||"___")+")",e.ORDER_ATOMIC]},Xu=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")},Vu.scrubNakedValue=function(t){return t+"\n"},Vu.quote_=function(t){var e="'";return-1!==t.indexOf("'")&&(-1===t.indexOf('"')?e='"':t=t.replace(/'/g,"\\'")),e+t+e},Vu.multiline_quote_=function(t){return"'''"+(t=t.replace(/'''/g,"\\'\\'\\'"))+"'''"},Vu.scrub_=function(t,e,i){var n="";if(!t.outputConnection||!t.outputConnection.targetConnection){(_=t.getCommentText())&&(_=Rt.utils.string.wrap(_,Vu.COMMENT_WRAP-3),n+=Vu.prefixLines(_+"\n","# "));for(var s=0;s0?"int("+p+" + "+s+")":s<0?"int("+p+" - "+-s+")":"int("+p+")",n&&(p="-"+p)),p};const Bu="#74A55B",Gu={init:function(){this.setColour(Bu),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)}},Uu={init:function(){this.setColour(Bu),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)}},wu={init:function(){this.setColour(Bu),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)}},ku={init:function(){this.setColour(Bu),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)}},Hu={init:function(){this.setColour(Bu),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)}},Wu={init:function(){this.setColour(Bu),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)}},Ku={init:function(){this.setColour(Bu),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)}},Ju={init:function(){this.setColour(Bu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},qu={init:function(){this.setColour(Bu),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)}},Qu={init:function(){this.setColour(Bu),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(Bu),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)}},ju={init:function(){this.setColour(Bu),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)}},$u={init:function(){this.setColour(Bu),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)}},Zu={init:function(){this.setColour(Bu),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)}},tr={init:function(){this.setColour(Bu),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)}},er={init:function(){this.setColour(Bu),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)}},ir={init:function(){this.setColour(Bu),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)}},nr={init:function(){this.setColour(Bu),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)}},sr={init:function(){this.setColour(Bu),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)}},_r={init:function(){this.setColour(Bu),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)}},or={init:function(){this.setColour(Bu),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通信")}},pr={init:function(){this.setColour(Bu),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)")}},ar={init:function(){this.setColour(Bu),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)")}},ur={init:function(){this.setColour(Bu),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)}},rr={init:function(){this.setColour(Bu),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)}},lr={init:function(){this.setColour(Bu),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)}},dr={init:function(){this.setColour(Bu),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)}},Ir={init:function(){this.setColour(Bu),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("")}},Tr={init:function(){this.setColour(Bu),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("")}},Mr={init:function(){this.setColour(Bu),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)}},hr={init:function(){this.setColour(Bu),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)}},mr={init:function(){this.setColour(Bu),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)}},Er={init:function(){this.setColour(Bu),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)}},Or={init:function(){this.setColour(Bu),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)}},Rr={init:function(){this.setColour(Bu),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)}},cr={},gr={init:function(){this.setColour(Bu),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)}},Cr={init:function(){this.setColour(Bu),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)}},Sr={init:function(){this.setColour(Bu),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)}},Ar={init:function(){this.setColour(Bu),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)}},Lr={init:function(){this.setColour(Bu),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.extern_addr),"PIN"),this.setOutput(!0,Number)}},Nr={init:function(){this.setColour(Bu),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)}},Dr={init:function(){this.setColour(Bu),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)}},fr={init:function(){this.setColour(Bu),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)}},Fr={init:function(){this.setColour(Bu),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)}},Pr={init:function(){this.setColour(Bu),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)}},vr={init:function(){this.setColour(Bu),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)}},Yr={init:function(){this.setColour(Bu),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(Bu),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)}},yr={init:function(){this.setColour(Bu),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)}},xr={init:function(){this.setColour(Bu),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)}},br={init:function(){this.setColour(Bu),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)}},Vr={init:function(){this.setColour(Bu),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)}},Br={init:function(){this.setColour(Bu),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)}},Gr={init:function(){this.setColour(Bu),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)}},Ur={init:function(){this.setColour(Bu),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(Bu),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(Bu),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)}},Hr={init:function(){this.setColour(Bu),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)}},Wr={init:function(){this.setColour(Bu),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)}},Kr={init:function(){this.setColour(Bu),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)}},Jr="#6C9858",qr={init:function(){this.setColour(Jr),this.appendDummyInput("").appendField(new Rt.FieldDropdown([["L1","1"],["L2","2"]]),"op"),this.setOutput(!0)}},Qr={init:function(){this.setColour(Jr),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(Jr),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)}},jr={init:function(){this.setColour(Jr),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_GETONOFF)}},$r={init:function(){this.setColour(Jr),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)}},Zr={init:function(){this.setColour(Jr),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%)")}},tl={init:function(){this.setColour(Jr),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()}},el={init:function(){this.setColour(Jr),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)}},il={init:function(){this.setColour(Jr),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)}},nl={init:function(){this.setColour(Jr),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)}},sl={init:function(){this.setColour(Jr),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)")}},_l={init:function(){this.setColour(Jr),this.appendDummyInput("").appendField(new Rt.FieldDropdown([["L1","20"],["L2","21"]]),"op"),this.setOutput(!0)}},ol={init:function(){this.setColour(Jr),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)}}},pl={init:function(){this.setColour(Jr),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)}},al={init:function(){this.setColour(Jr),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("")}},ul={init:function(){this.setColour(Jr),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("")}},rl={init:function(){this.setColour(Jr),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)}},ll={init:function(){this.setColour(Jr),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)}}},dl={init:function(){this.setColour(Jr),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)}},Il={init:function(){this.setColour(Jr),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("")}},Tl={init:function(){this.setColour(Jr),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)}},Ml={init:function(){this.setColour(Jr),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)}},hl={init:function(){this.setColour(Jr),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)}},ml={init:function(){this.setColour(Jr),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)}},El={init:function(){this.setColour(Jr),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)}},Ol={init:function(){this.setColour(Jr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Rl={init:function(){this.setColour(Jr),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)}},cl={init:function(){this.setColour(Jr),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)}},gl={init:function(){this.setColour(Jr),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)}},Cl={init:function(){this.setColour(Jr),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("")}},Sl={init:function(){this.setColour(Jr),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)}},Al={init:function(){this.setColour(Jr),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)}},Ll={init:function(){this.setColour(Jr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_MOTOR_STATUS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_MIXBOT_MOTOR_STATUS_TOOLTIP)}},Nl={init:function(){this.setColour(Jr),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)}},Dl={init:function(){this.setColour(Jr),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)}},fl={init:function(){this.setColour(Jr),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)}},Fl={init:function(){this.setColour(Jr),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)}},Pl={init:function(){this.setColour(Jr),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)}},vl={init:function(){this.setColour(Jr),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)}},Yl={init:function(){this.setColour(Jr),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)}},Xl={init:function(){this.setColour(Jr),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)}},yl={init:function(){this.setColour(Jr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_SOUND_LOUDNESS+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_LED_GETONOFF)}},xl={init:function(){this.setColour(Jr),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)}},bl={init:function(){this.setColour(Jr),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)}},Vl={init:function(){this.setColour(Jr),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)}},Bl={init:function(){this.setColour(Jr),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)}},Gl={init:function(){this.setColour(Jr),this.appendValueInput("PATH").appendField(Rt.Msg.MIXLY_PLAY_ONLINE_AUDIO).appendField("URL"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Ul={init:function(){this.setColour(Jr),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)}},wl={init:function(){this.setColour(Jr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},kl={init:function(){this.setColour(Jr),this.appendDummyInput().appendField(Rt.Msg.LISTS_SET_INDEX_SET+Rt.Msg.ME_GO_MOTOR_EXTERN).appendField(Rt.Msg.PIN_NUMBERING).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()}},Hl={init:function(){this.setColour(Jr),this.appendDummyInput().appendField(Rt.Msg.MIXLY_GET+Rt.Msg.ME_GO_MOTOR_EXTERN).appendField(Rt.Msg.PIN_NUMBERING).appendField(new Rt.FieldDropdown([["1","1"],["2","2"]]),"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)}},Wl={init:function(){this.setColour(Jr),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)}},Kl={init:function(){this.setColour(Jr),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)}},Jl={init:function(){this.setColour(Jr),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)}},ql={init:function(){this.setColour(Jr),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)}},Ql={init:function(){this.setColour(Jr),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)))},dm={init:function(){this.jsonInit({colour:em,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})}},Im={init:function(){this.setColour(em),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"])}},Tm={init:function(){this.setColour(em),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(Rt.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new Rt.FieldDropdown(Tm.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"]]},Mm={init:function(){this.setColour(em),this.appendValueInput("A").setCheck("esp32_image").appendField(Rt.Msg.MIXLY_MICROBIT_Invert_image1),this.setInputsInline(!0),this.setOutput(!0,"esp32_image")}},hm={init:function(){this.setColour(em),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(hm.OPERATORS),"OP"),this.appendValueInput("val").appendField(Rt.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(Rt.Msg.DISPLAY_IMAGE_UNIT);ct.Boards.getSelectedBoardKey();"Python ESP32-S3"===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"]]},mm={init:function(){this.setColour(em),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)}},Em={init:function(){this.setColour(em),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)}},Om={init:function(){this.setColour(em),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)}},Rm={init:function(){this.setColour(em),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")}},cm={init:function(){this.setColour(em),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Clear_display);ct.Boards.getSelectedBoardKey();"Python ESP32-S3"===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)}},gm={init:function(){this.setColour(em),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)}},Cm={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(em),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Sm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Rt.inputs.Align.CENTRE).appendField(new Rt.FieldBitmap(Sm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(em),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(8).fill(0)))},Am={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(em),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Lm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Rt.inputs.Align.CENTRE).appendField(new Rt.FieldBitmap(Lm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(em),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(12).fill(0)))},Nm={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(em),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Dm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Rt.inputs.Align.CENTRE).appendField(new Rt.FieldBitmap(Dm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(em),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(16).fill(0)))},fm={init:function(){this.setColour(em),this.appendDummyInput().appendField(Rt.Msg.OLED_SET_FONT).appendField(new Rt.FieldDropdown(fm.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'"]]},Fm={init:function(){this.setColour(em),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)}},Pm={init:function(){this.setColour(em),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)}},vm={init:function(){this.setColour(em),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)}},Ym={init:function(){this.setColour(em),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)}},Xm={init:function(){this.setColour(em),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)}},ym={init:function(){this.setColour(em),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)}},xm={init:function(){this.setColour(em),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)}},bm={init:function(){this.jsonInit({colour:em,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})}},Vm={init:function(){this.jsonInit({colour:em,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})}},Bm={init:function(){this.jsonInit({colour:em,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})}},Gm={init:function(){this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new Rt.FieldDropdown(Gm.IMAGES),"path"),this.setColour(em),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"]]},Um={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(em),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},wm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Rt.inputs.Align.CENTRE).appendField(new Rt.FieldBitmap(wm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(em),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(5).fill(0)))},km={init:function(){this.setColour(em),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)}},Hm={init:function(){this.setColour(em),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_AMBIENTBRIGHT),this.setInputsInline(!0),this.setOutput(!0,Number)}},Wm={init:function(){this.setColour(em),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")}},Km={init:function(){this.setColour(em),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXBOT_SCREEN_ROTATE).appendField(new Rt.FieldDropdown(Km.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"]]},Jm={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(em),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},qm={init:function(){this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Rt.inputs.Align.CENTRE).appendField(new Rt.FieldBitmap(qm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(em),this.setTooltip(Rt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:12},(()=>new Array(12).fill(0)))},Qm={init:function(){this.setColour(em),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);ct.Boards.getSelectedBoardKey();"Python ESP32-S3"===ct.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},zm={init:function(){this.setColour(em),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)}},jm={init:function(){this.setColour(em),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);ct.Boards.getSelectedBoardKey();"Python ESP32-S3"===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)}},$m={init:function(){this.setColour(em),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)}},Zm={init:function(){this.jsonInit({colour:em,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})}},tE={init:function(){this.jsonInit({colour:em,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})}},eE={init:function(){this.jsonInit({colour:em,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})}},iE={init:function(){this.setColour(em),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)}},nE={init:function(){this.setColour(em),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);ct.Boards.getSelectedBoardKey();"Python ESP32-S3"===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)}},sE={init:function(){this.setColour(em),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_SCREEN_FILL);ct.Boards.getSelectedBoardKey();"Python ESP32-S3"===ct.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},_E={init:function(){this.setColour(em),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)}},oE={init:function(){this.setColour(em),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Rt.Msg.GET_RTCTIME),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},pE={init:function(){this.setColour(em),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)}},aE={init:function(){this.setColour(em),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Rt.Msg.DRAW_CLOCK),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},uE={init:function(){this.setColour(em),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)}},rE={init:function(){this.jsonInit({colour:em,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})}},lE={init:function(){this.setColour(em),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)}},dE={init:function(){this.setColour(em),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)}},IE={init:function(){this.setColour(em),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);ct.Boards.getSelectedBoardKey();"Python ESP32-S3"===ct.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(Rt.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},TE={init:function(){this.setColour(em),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)}},ME={init:function(){sm.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},hE={init:function(){am.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},mE={init:function(){hm.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},EE={init:function(){Om.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},OE={init:function(){Rm.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},RE={init:function(){cm.init.call(this),this.appendDummyInput().appendField(`(${Rt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Rt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},cE=180,gE={init:function(){this.setColour(cE),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(gE.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"]]},CE={init:function(){this.setColour(cE),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(Rt.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new Rt.FieldDropdown(CE.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,"-"]]},SE={init:function(){this.setColour(cE),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(SE.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"]]},AE={init:function(){this.setColour(cE),this.appendValueInput("VAR").appendField(Rt.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RECT).appendField(new Rt.FieldDropdown(AE.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"]]},LE={init:function(){this.setColour(cE),this.appendValueInput("VAR").appendField(Rt.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE).appendField(new Rt.FieldDropdown(LE.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"]]},NE={init:function(){this.setColour(cE),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(NE.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"]]},DE="#777777",fE={init:function(){this.setColour(DE),this.appendDummyInput("").appendField("from ").appendField(new Rt.FieldTextInput("ESP32"),"path").appendField(" import ").appendField(new Rt.FieldTextInput("*"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},FE={init:function(){this.setColour(DE),this.appendDummyInput("").appendField("import ").appendField(new Rt.FieldTextInput("module"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},PE={init:function(){this.setColour(DE),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")}},EO={init:function(){this.setColour(lO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(Rt.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},OO={init:function(){this.setColour(lO),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}},RO={init:function(){this.setColour(lO),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}},cO={init:function(){this.setColour(lO),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)}},gO={init:function(){this.setColour(lO),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)}},CO={init:function(){this.setColour(lO),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"],[Rt.Msg.MIXLY_ONLY_ONCE,"2"]]),"quality"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Rt.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},SO={init:function(){this.setColour(lO),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)}},AO={init:function(){this.setColour(lO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_DISCONNECT_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},LO={init:function(){this.setColour(lO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_EMQX_CONNECT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},NO={init:function(){this.setColour(lO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_ESP32_CHECK_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},DO={init:function(){this.setColour(lO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(Rt.Msg.MQTT_Topic),this.setInputsInline(!0),this.setOutput(!0)}},fO={init:function(){this.setColour(lO),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(Rt.Msg.MIXLY_EMQX_PUBLISH_MSG),this.setInputsInline(!0),this.setOutput(!0)}},FO={init:function(){this.setColour(lO),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_ESP32_IOT_MAP_FORMATING),this.setOutput(!0)}},PO={init:function(){this.setColour(lO),this.appendValueInput("VAR").appendField(Rt.Msg.MIXLY_MICROPYTHON_FORMAT+"(Json)"),this.setOutput(!0)}},vO={init:function(){this.setColour(lO),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)}},YO={init:function(){this.setColour(lO),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)}},XO={init:function(){this.setColour(lO),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)}},yO={init:function(){this.setColour(lO),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)}},xO={init:function(){this.VISITOR_ID=ct.Config.BOARD.visitorId.str32.substring(0,8).toUpperCase(),this.setColour(lO),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")}},bO={init:function(){this.setColour(lO),this.appendDummyInput().appendField("MixIO").appendField(Rt.Msg.MSG.catEthernet_clinet),this.setOutput(!0),this.setInputsInline(!0)}},VO={init:function(){this.setColour(lO),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)}},BO={init:function(){this.setColour(lO),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)}},GO={init:function(){this.setColour(lO),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)}},UO={init:function(){this.setColour(lO),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)}},wO=dO,kO=IO,HO=TO,WO=MO,KO=mO,JO={init:function(){this.setColour(lO),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)}},qO=JO,QO={init:function(){this.setColour(lO),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)}},zO={init:function(){this.setColour(lO),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)}},jO={init:function(){this.setColour(lO),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)}},$O={init:function(){this.setColour(lO),this.appendDummyInput().appendField("Ollama "+Rt.Msg.MIXLY_EMPTY_HISTORY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},ZO=225,tR={init:function(){this.setColour(ZO),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)}},eR={init:function(){this.setColour(ZO),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}))}},iR={init:function(){this.setColour(ZO),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)}},nR={init:function(){this.setColour(ZO),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}))}},sR={init:function(){this.setColour(ZO),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)}},_R={init:function(){this.setColour(ZO),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)}},oR={init:function(){this.setColour(ZO),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]}))}},pR={init:function(){this.setColour(ZO),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)}},aR={init:function(){this.setColour(ZO),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)}},uR={init:function(){this.setColour(ZO),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)}},rR={init:function(){this.setColour(ZO),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)}},lR={init:function(){this.setColour(ZO),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]}))}},dR={init:function(){this.setColour(ZO),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)}},IR={init:function(){this.setColour(ZO),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)}},TR={init:function(){this.setColour(ZO),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)}},MR={init:function(){this.setColour(ZO),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)}},hR={init:function(){this.setColour(ZO),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)}},mR={init:function(){this.setColour(ZO),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)}},ER={init:function(){this.setColour(ZO),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)}},OR={init:function(){this.setColour(ZO),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)}},RR={init:function(){this.setColour(ZO),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)}},cR={init:function(){this.setColour(ZO),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)}},gR={init:function(){this.setColour(ZO),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")}},CR={init:function(){this.appendValueInput("VAL"),this.setColour(ZO),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Rt.FieldDropdown(CR.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"]]},SR={init:function(){this.appendValueInput("VAR").appendField(Rt.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.setColour(ZO),this.appendDummyInput("").appendField(Rt.Msg.blockpy_CONDUCT).appendField(new Rt.FieldDropdown(SR.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"]]},AR={init:function(){this.setColour(ZO),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)}},LR={init:function(){this.setColour(ZO),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)}},NR="#3288dd",DR={init:function(){this.setColour(NR),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("")}},fR={init:function(){this.setColour(NR),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("")}},FR={init:function(){this.appendValueInput("VAL"),this.setColour(NR),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Rt.FieldDropdown(FR.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"]]},PR={init:function(){this.setColour(NR),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)}},vR={init:function(){this.setColour(NR),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)}},YR={init:function(){this.setColour(NR),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)}},XR={init:function(){this.setColour(NR),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)}},yR={init:function(){this.setColour(NR),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)}},xR={init:function(){this.setColour(NR),this.appendDummyInput().appendField("mqtt"+Rt.Msg.MIXLY_EMQX_IS_CONNECT),this.setInputsInline(!0),this.setOutput(!0)}},bR=100,VR={init:function(){var t=ct.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(bR),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(e),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},BR={init:function(){var t=ct.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(bR),this.appendValueInput("SUB").appendField(e).setCheck("var"),this.appendDummyInput().appendField(Rt.Msg.MIXLY_MIXGO_CAR_BATTERY_LEFT),this.setOutput(!0,Number),this.setInputsInline(!0)}},GR={init:function(){var t=ct.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(bR),this.appendValueInput("SUB").appendField(e).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)}},UR={init:function(){var t=ct.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(bR),this.appendValueInput("SUB").appendField(e).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)}},wR={init:function(){var t=ct.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(bR),this.appendValueInput("SUB").appendField(e).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)}},kR={init:function(){var t=ct.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(bR),this.appendValueInput("SUB").appendField(e).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)}},HR={init:function(){var t=ct.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(bR),this.appendValueInput("SUB").appendField(e).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)}},WR={init:function(){var t=ct.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(bR),this.appendValueInput("SUB").appendField(e).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)}},KR="#A58C5B",JR={init:function(){this.setColour(KR),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)}},qR={init:function(){this.setColour(KR),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)}},QR={init:function(){this.setColour(KR),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)}},zR={init:function(){this.setColour(KR),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)}},jR={init:function(){this.setColour(KR),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]+_}))}},$R={init:function(){this.setColour(KR),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}))}},ZR={init:function(){this.setColour(KR),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(KR),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"]]},ec={init:function(){this.setColour(KR),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)}},ic={init:function(){this.setColour(KR),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)}},nc={init:function(){this.setColour(KR),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}))}},sc={init:function(){this.setColour(KR),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]}))}},_c={init:function(){this.setColour(KR),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]}))}},oc={init:function(){this.setColour(KR),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)}},pc={init:function(){this.setColour(KR),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)}},ac={init:function(){this.setColour(KR),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)}},uc={init:function(){this.setColour(KR),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)}},rc={init:function(){this.setColour(KR),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)}},lc={init:function(){this.setColour(KR),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)}},dc={init:function(){this.setColour(KR),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_RADAR).appendField(Rt.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},Ic={init:function(){this.setColour(KR),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)}},Tc={init:function(){this.setColour(KR),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)}},Mc={init:function(){this.setColour(KR),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)}},hc={init:function(){this.setColour(KR),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)}},mc={init:function(){this.setColour(KR),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)}},Ec={init:function(){this.setColour(KR),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)}},Oc={init:function(){this.setColour(KR),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)}},Rc={init:function(){this.setColour(KR),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)}},cc={init:function(){this.setColour(KR),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)}},gc={init:function(){this.setColour(KR),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)}},Cc={init:function(){this.setColour(KR),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)}},Sc={init:function(){this.setColour(KR),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)}},Ac={init:function(){this.setColour(KR),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]}))}},Lc={init:function(){this.setColour(KR),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]}))}},Nc={init:function(){this.setColour(KR),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)}},Dc={init:function(){this.setColour(KR),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)}},fc={init:function(){this.setColour(KR),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)}},Fc={init:function(){this.setColour(KR),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)}},Pc={init:function(){this.setColour(KR),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)}},vc={init:function(){this.setColour(KR),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]+_}))}},Yc={init:function(){this.setColour(KR),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}))}},Xc={init:function(){this.setColour(KR),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}))}},yc={init:function(){this.setColour(KR),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}))}},xc={init:function(){this.setColour(KR),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)}},bc={init:function(){this.setColour(KR),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)}},Vc={init:function(){this.setColour(KR),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]}))}},Bc={init:function(){this.setColour(KR),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)}},Gc={init:function(){this.setColour(KR),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")}},Uc={init:function(){this.setColour(KR),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)}},wc={init:function(){this.setColour(KR),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)}},kc={init:function(){this.setColour(KR),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)}},Hc={init:function(){this.setColour(KR),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)}},Wc={init:function(){this.setColour(KR),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)}},Kc={init:function(){this.setColour(KR),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)}},Jc={init:function(){this.setColour(KR),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)")}},qc={init:function(){this.setColour(KR),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(Rt.Msg.MIXLY_SERIAL_AVAILABLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},Qc={init:function(){this.setColour(KR),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)}},zc={init:function(){this.setColour(KR),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},DP=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},fP=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"},FP=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".frame("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},PP=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"},vP=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},YP=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"},XP=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},yP=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+"."+t.getFieldValue("OP")+"("+e.valueToCode(t,"val",e.ORDER_ATOMIC)+")\n"},xP=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]},bP=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"},VP=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".get_brightness()",e.ORDER_ATOMIC]},BP=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".set_brightness("+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+")\n"},GP=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+"."+t.getFieldValue("image"),e.ORDER_ATOMIC]},UP=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]},wP=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".map_invert("+e.valueToCode(t,"A",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},kP=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"},HP=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"},WP=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"},KP=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"}},JP=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"},qP=function(t,e){return["ON"==this.getFieldValue("ONOFF")?"1":"0",e.ORDER_ATOMIC]},QP=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]},zP=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"},jP=function(t,e){return["matrix.Image."+this.getFieldValue("ANIMATION"),e.ORDER_ATOMIC]},$P=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"}},ZP=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"}},tv=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"},ev=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"},iv=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},nv=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"},_v=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"},ov=function(t,e){return e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".intensity("+e.valueToCode(this,"VALUE",e.ORDER_ATOMIC)+")\n"},pv=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"},av=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},uv=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]},rv=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},lv=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},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,"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},Iv=function(t,e){return e.definitions_.import_st7789="import st7789",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".fill(st7789."+this.getFieldValue("key")+")\n"},Tv=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},Mv=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"},hv=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"},mv=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"},Ev=function(t,e){return e.definitions_.import_i2clcd="import i2clcd",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".backlight("+this.getFieldValue("key")+")\n"},Ov=function(t,e){return e.definitions_.import_i2clcd="import i2clcd",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".clear()\n"},Rv=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"},cv=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"},gv=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"},Cv=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"},Sv=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"},Av=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"},Lv=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"},Nv=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"},Dv=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"},fv=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"},Fv=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"},Pv=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]},vv=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"},Yv=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"},Xv=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"},yv=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"},xv=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT);if("Python ESP32-S3"===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},bv=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("mixgo_sant"==i||"mixgo_nova"==i)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"},Vv=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"===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},Bv=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"===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 _},Gv=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"===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},Uv=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"===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},wv=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"},kv=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},Hv=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]},Wv=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];if("Python ESP32-S3"===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]},Kv=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},FY=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"},PY=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},vY=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},YY=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},XY=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},yY=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},xY=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]},bY=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},VY=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 _},BY=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},GY=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"},UY=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"},wY=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"},kY=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 _},HY=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},WY=function(t,e){var i=ct.Boards.getSelectedBoardKey().split(":")[2];if("Python ESP32-S3"===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},KY=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));else{const t=s.match(/\d+/g);var _="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");((16252928&_)>>8|(64512&_)>>5|(255&_)>>3).toString(16)}return"onboard_tft.pointern(angle="+n+")\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,"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},qY=xv,QY=eY,zY=$v,jY=eY,$Y=iY,ZY=qv,tX=function(t,e){var i=this.getFieldValue("path"),n=this.getFieldValue("module");return e.definitions_["import_"+i+"_"+n]="from "+i+" import "+n,""},eX=function(t,e){var i=this.getFieldValue("module");return e.definitions_["import_"+i]="import "+i,""},iX=function(t,e){for(var i=this.getFieldValue("NAME"),n=new Array(this.itemCount_),s=0;s {\n"+e.statementToCode(this,"do")+"})\n"},lG=function(){return"control.reset()\n"},dG=function(t,e){return"control.waitMicros("+(e.valueToCode(this,"data",e.ORDER_ATOMIC)||ct.Profile.default.serial)+")\n"},IG=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"},TG=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"},MG=function(t,e){return["control.eventTimestamp()",e.ORDER_ATOMIC]},hG=function(t,e){return["control.eventValue()",e.ORDER_ATOMIC]},mG=function(t,e){return[this.getFieldValue("key"),e.ORDER_ATOMIC]},EG=function(t,e){return[this.getFieldValue("key"),e.ORDER_ATOMIC]},OG=function(t,e){return["control.deviceName()",e.ORDER_ATOMIC]},RG=function(t,e){return["control.deviceSerialNumber()",e.ORDER_ATOMIC]},cG=function(t,e){return"panic("+(e.valueToCode(this,"STATUS_CODE",e.ORDER_ATOMIC)||"1000")+")\n"},gG=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]}},CG=function(){return"while True:\n pass\n"},SG=function(t,e){return e.definitions_.import_mixgo="import mixgo","reset()\n"},AG=function(t,e){return e.definitions_.import_os="import os","os.uname()"},LG=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"}},NG=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"}},DG=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"},fG=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"},FG=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]},PG=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return e.definitions_.import_machine="import machine",i+" = machine.Timer(0)\n"},vG=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"},YG=function(t,e){return e.definitions_.import_machine="import machine","wdt = machine.WDT(timeout= "+(e.valueToCode(this,"period",e.ORDER_NONE)||"0")+")\n"},XG=function(t,e){e.definitions_.import_machine="import machine";return"wdt.feed()\n"},yG=function(t,e){e.definitions_.import_machine="import machine";return"machine.reset()\n"},xG=function(t,e){e.definitions_.import_bitbot_onboard_bot51="from bitbot import onboard_bot51";return"onboard_bot51.shutdown()\n"},bG=PG,VG=vG,BG=FG,GG=LG,UG=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]},wG=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]},kG=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]},HG=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"},WG=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]},KG=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]},JG=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]},qG=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]},QG=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]},zG=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]},jG=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"},$G=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]},ZG=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]},tU=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]},eU=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]},iU='
\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:nU}=ct,sU=nU.render(iU,{title:"烧录速度",message:"要选择烧录速度,请更改“Burn Speed”,此值将用于向设备烧录代码。如果在用较高的烧录速度时出现问题,请尝试减小此值,这可能是由于外部串行到USB芯片的限制。"}),{XML:_U}=ct,oU=_U.render(iU,{title:"燒錄速度",message:"要選擇燒錄速度,請更改“Burn Speed”,此值將用於向設備燒錄程式碼。如果在用較高的燒錄速度時出現問題,請嘗試减小此值,這可能是由於外部串列到USB晶片的限制。"}),{XML:pU}=ct,aU=pU.render(iU,{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 rU={};rU["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"]]},rU["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 lU=rU,dU=20,IU={init:function(){this.setColour(dU),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)}},TU={init:function(){this.setColour(dU),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)}},MU={init:function(){this.setColour(dU),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)}},hU={init:function(){this.setColour(dU),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)}},mU={init:function(){this.setColour(dU),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)}},EU={init:function(){this.setColour(dU),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)}},OU={init:function(){this.setColour(dU),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)}},RU={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)}},cU={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")}},gU={init:function(){this.setColour(dU),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")}},CU={init:function(){this.setColour(dU),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")}},SU={init:function(){this.setColour(dU),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)}},AU=cU,LU=CU,NU=OU,DU=RU,fU=230,FU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.digital),"PIN"),this.setOutput(!0)}},PU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.digital_pin),"PIN"),this.setOutput(!0,Number)}},vU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.input_pin),"PIN"),this.setOutput(!0,Number)}},YU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.output_pin),"PIN"),this.setOutput(!0,Number)}},XU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.espnow_channel),"PIN"),this.setOutput(!0,Number)}},yU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.haskylens_model),"PIN"),this.setOutput(!0,Number)}},xU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.pwm_input),"PIN"),this.setOutput(!0)}},bU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.analog_input),"PIN"),this.setOutput(!0)}},VU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.pwm_output),"PIN"),this.setOutput(!0)}},BU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.analog_output),"PIN"),this.setOutput(!0)}},GU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.i2c_A_pin),"PIN"),this.setOutput(!0,Number)}},UU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.i2c_B_pin),"PIN"),this.setOutput(!0,Number)}},wU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.spi_A_pin),"PIN"),this.setOutput(!0,Number)}},kU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.spi_B_pin),"PIN"),this.setOutput(!0,Number)}},HU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.spi_C_pin),"PIN"),this.setOutput(!0,Number)}},WU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.spi_D_pin),"PIN"),this.setOutput(!0,Number)}},KU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.analog),"PIN"),this.setOutput(!0)}},JU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.analog_pin),"PIN"),this.setOutput(!0,Number)}},qU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.dac),"PIN"),this.setOutput(!0)}},QU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.dac_pin),"PIN"),this.setOutput(!0,Number)}},zU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.button),"PIN"),this.setOutput(!0,Number)}},jU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.buttonB),"PIN"),this.setOutput(!0,Number)}},$U={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.pwm),"PIN"),this.setOutput(!0)}},ZU={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.pwm_pin),"PIN"),this.setOutput(!0,Number)}},tw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.touch_pin),"PIN"),this.setOutput(!0,Number)}},ew={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.touch),"PIN"),this.setOutput(!0)}},iw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.serial_pin),"PIN"),this.setOutput(!0,Number)}},nw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.builtinimg),"PIN"),this.setOutput(!0,"esp32_image")}},sw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.builtinimg_extern),"PIN"),this.setOutput(!0,"esp32_image")}},_w={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.imglist),"PIN"),this.setOutput(!0)}},ow={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.playlist),"PIN"),this.setOutput(!0)}},pw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.playlist_extern),"PIN"),this.setOutput(!0)}},aw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.exlcdh),"PIN"),this.setOutput(!0,Number)}},uw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.exlcdv),"PIN"),this.setOutput(!0,Number)}},rw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.axis),"PIN"),this.setOutput(!0,Number)}},lw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.brightness),"PIN"),this.setOutput(!0,Number)}},dw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.tts_voice),"PIN"),this.setOutput(!0,Number)}},Iw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.tts_builtin_music),"PIN"),this.setOutput(!0,Number)}},Tw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.tts_bgmusic),"PIN"),this.setOutput(!0,Number)}},Mw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.tone_notes),"PIN"),this.setOutput(!0,Number)}},hw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.radio_power),"PIN"),this.setOutput(!0,Number)}},mw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.radio_datarate),"PIN"),this.setOutput(!0,Number)}},Ew={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.one_more),"PIN"),this.setOutput(!0)}},Ow={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown(ct.Profile.default.digital_dot),"PIN"),this.setOutput(!0,Number)}},Rw={init:function(){this.setColour(fU),this.appendDummyInput("").appendField(new Rt.FieldDropdown([["0","0"],["1","1"],["2","2"],["3","3"]]),"PIN"),this.setOutput(!0,Number)}},cw=function(t,e){return["HIGH"==this.getFieldValue("BOOL")?"1":"0",e.ORDER_ATOMIC]},gw=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"},Cw=function(t,e){e.definitions_.import_machine="import machine";return[e.valueToCode(this,"PIN",e.ORDER_ATOMIC)+".value()",e.ORDER_ATOMIC]},Sw=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"},Aw=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"},Lw=function(t,e){return e.definitions_.import_machine="import machine",[e.valueToCode(this,"pin",e.ORDER_ATOMIC)+".read()",e.ORDER_ATOMIC]},Nw=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"},Dw=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"},fw=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"},Fw=function(t,e){return e.definitions_.import_machine="import machine",e.valueToCode(this,"PIN",e.ORDER_ATOMIC)+".atten("+this.getFieldValue("atten")+")\n"},Pw=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"},vw=function(t,e){return[this.getFieldValue("PIN"),e.ORDER_ATOMIC]},Yw=vw,Xw=vw,yw=vw,xw=vw,bw=vw,Vw=vw,Bw=vw,Gw=vw,Uw=vw,ww=vw,kw=vw,Hw=vw,Ww=vw,Kw=vw,Jw=vw,qw=vw,Qw=vw,zw=vw,jw=vw,$w=vw,Zw=vw,tk=vw,ek=vw,ik=vw,nk=vw,sk=vw,_k=vw,ok=vw,pk=vw,ak=vw,uk=vw,rk=vw,lk=vw,dk=vw,Ik=vw,Tk=vw,Mk=vw,hk=vw,mk=vw,Ek=vw,Ok=vw,Rk=vw,ck=vw,gk=vw,Ck=vw;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=Vu,Rt.generator=Vu,ct.Profile.default={},Object.assign(ct.Profile,lU),Object.assign(ct.Profile.default,lU["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,x,y,b,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)})();